/* 泽国镇秸秆焚烧预警统计平台 - 优化样式 */
/* 基础样式 */
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", sans-serif;
  background-color: #f5f7fa;
}

/* 平台标题样式 */
.platform-header {
  text-align: center;
  padding: 20px 0;
  background: linear-gradient(135deg, #1e5799 0%,#207cca 51%,#2989d8 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.platform-title {
  font-size: 28px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  margin: 0;
  padding: 10px 0;
}

.platform-subtitle {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 5px;
}

.update-info {
  font-size: 12px;
  margin-top: 5px;
  color: rgba(255,255,255,0.7);
}

/* 仪表盘样式 */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  justify-content: center;
}

.dashboard-card {
  flex: 1;
  min-width: 280px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.dashboard-card h3 {
  margin: 0 0 15px 0;
  color: #555;
  font-size: 16px;
  text-align: center;
  font-weight: normal;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.dashboard-value {
  font-size: 32px;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
}

.dashboard-today {
  border-top: 4px solid #4CAF50;
}

.dashboard-month {
  border-top: 4px solid #2196F3;
}

.dashboard-today-z {
  color: #4CAF50;
}

.dashboard-today-s {
  color: #ff6600;
  font-weight: bold;
}

/* 修改本月镇级颜色为橙色 */
.dashboard-month-z {
  color: #FFA500; /* 橙色 */
  font-weight: bold;
}

.dashboard-month-s {
  color: #e74c3c;
  font-weight: bold;
}

/* 表格容器样式 */
.table-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.div_shadow {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.grid-main {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 表格控制按钮 */
.table-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 10px;
}

.table-control-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 14px;
}

.table-control-btn:hover {
  background: #2980b9;
}

/* 表格样式 */
.gm-thead {
  background-color: #f8f9fa !important;
}

.gm-thead th {
  text-align: center !important;
  vertical-align: middle !important;
  font-weight: bold !important;
  padding: 12px 8px !important;
  background-color: #2c3e50 !important;
  color: white !important;
}

.gm-tbody td {
  text-align: center !important;
  padding: 10px 8px !important;
  border-bottom: 1px solid #eee !important;
}

.gm-row-total {
  background-color: #f8f9fa !important;
  font-weight: bold;
}

.gm-row-total td {
  /*color: #2c3e50 !important;*/
  color: #EE82EE  !important;
  background-color: #ecf0f1 !important;
}

/* 树形结构样式 */
.gm-tree-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: left;
  white-space: nowrap;
}

.gm-tree-icon:before {
  content: "▼";
  margin-right: 5px;
  font-size: 12px;
  color: #7f8c8d;
}

.gm-tree-close .gm-tree-icon:before {
  content: "▶";
}

/* 表格中的0值显示为绿色横杠 */
.zero-value {
  color: #2ecc71 !important;
}

.zero-value:before {
  content: "-";
}

/* 响应式调整 - 桌面端隐藏控制按钮 */
@media (min-width: 769px) {
  .table-controls {
    display: none;
  }
}

/* 手机适配优化 */
@media (max-width: 768px) {
  .platform-header {
    padding: 15px 0;
  }
  
  .platform-title {
    font-size: 20px;
  }
  
  .platform-subtitle {
    font-size: 12px;
    margin-top: 3px;
  }
  
  .dashboard {
    flex-direction: column;
    gap: 15px;
  }
  
  .dashboard-card {
    min-width: 100%;
    padding: 15px;
  }
  
  .dashboard-value {
    font-size: 24px;
  }
  
  .div_shadow {
    padding: 15px;
  }
  
  .gm-thead th, 
  .gm-tbody td {
    min-width: auto !important;
    padding: 8px 5px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  
  .gm-thead th:first-child, 
  .gm-tbody td:first-child {
    position: sticky;
    left: 0;
    background: #f8f9fa;
    z-index: 2;
    width: 80px !important;
  }
  
  .gm-thead th:nth-child(2), 
  .gm-tbody td:nth-child(2) {
    position: sticky;
    left: 80px;
    background: white;
    z-index: 2;
    width: 120px !important;
  }
  
  .gm-tree-icon {
    padding-left: 15px;
  }
  
  .gm-tree-icon:before {
    left: 0;
  }
}

/* 查看详情链接样式 */
.view-details-link {
  text-align: center;
  margin: 15px 0;
  padding: 0 10px;
}

.view-details-link a {
  display: inline-block;
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.view-details-link a:hover {
  color: #2980b9;
  background-color: rgba(52, 152, 219, 0.1);
}

/* 手机端样式调整 */
@media (max-width: 768px) {
  .view-details-link {
    margin: 10px 0;
  }
  
  .view-details-link a {
    padding: 8px 10px;
    font-size: 14px;
  }
}