* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Microsoft YaHei', Arial, sans-serif;
    }
    
    html, body {
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    
    body {
      background: #0a1929;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0;
      overflow: hidden;
    }
    
    .bigscreen-container {
      position: relative;
      width: 100vw;
      height: 0;
      padding-bottom: 56.25%;
      max-width: 177.78vh;
      max-height: 100vh;
      background: linear-gradient(to bottom, #0a1929, #132f4c);
      border-radius: 12px;
      box-shadow: 0 0 40px rgba(0, 100, 200, 0.3);
      overflow: hidden;
    }
    
    .bigscreen-content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: grid;
      grid-template-rows: 70px 1fr;
      grid-template-columns: 1fr 0.35fr;
      grid-template-areas:
        "header header"
        "map right-panel";
      gap: 10px;
      padding: 15px;
    }
    
    .bigscreen-header {
      grid-area: header;
      background: linear-gradient(to right, #102a43, #1e4a76);
      display: flex;
      align-items: center;
      padding: 0 25px;
      color: white;
      z-index: 10;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .time-display {
      font-size: 1.2rem;
      color: #ffffff;
      margin-right: 15px;
      font-family: 'Courier New', monospace;
      background: rgba(0, 0, 0, 0.2);
      padding: 6px 12px;
      border-radius: 5px;
      min-width: 180px;
      font-weight: bold;
    }
    
    .web-version-link {
      font-size: 0.7rem;
      color: #a0d1ff;
      text-decoration: none;
      margin-right: 25px;
      opacity: 0.8;
      transition: opacity 0.3s;
    }
    
    .web-version-link:hover {
      opacity: 1;
      text-decoration: underline;
    }
    
    .logo-container {
      display: flex;
      align-items: center;
      margin-right: 15px;
    }
    
    .logo {
      width: 45px;
      height: 45px;
      margin-right: 15px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    
    .logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .title-container {
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
    }
    
    .title-text {
      font-size: 1.6rem;
      letter-spacing: 1px;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
      font-weight: bold;
      white-space: nowrap;
    }
    
    .platform-info-container {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin: 0 20px;
    }
    
    .platform-info {
      font-size: 0.75rem;
      color: rgba(200, 225, 255, 0.8);
      text-align: center;
      line-height: 1.2;
    }
    
    .fullscreen-controls {
      margin-left: auto;
      display: flex;
      gap: 10px;
    }
    
    .fullscreen-btn {
      background: linear-gradient(to right, #1a75bc, #2e9ce9);
      border: none;
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.3s;
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .fullscreen-btn:hover {
      opacity: 0.9;
      transform: translateY(-2px);
    }

    .user-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .login-btn, .logout-btn, .admin-btn, .duty-btn {
      background: linear-gradient(to right, #1a75bc, #2e9ce9);
      border: none;
      color: white;
      padding: 6px 12px;
      border-radius: 15px;
      cursor: pointer;
      transition: all 0.3s;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 5px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .login-btn:hover, .logout-btn:hover, .admin-btn:hover, .duty-btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .user-info {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #a0d1ff;
      font-size: 0.8rem;
    }

    #username-display {
      font-weight: bold;
    }
    
    .map-container {
      grid-area: map;
      position: relative;
      background: #0c1d2f;
      overflow: hidden;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      border: 1px solid #1e3a5c;
    }
    
    #cesiumContainer {
      width: 100%;
      height: 100%;
      position: relative;
    }
    
    .cesium-widget-credits {
      display: none !important;
    }
    
    .cesium-viewer-bottom {
      display: none;
    }
    
    .map-controls {
      position: absolute;
      top: 15px;
      right: 15px;
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: flex-end;
    }
    
    .map-control-btn {
      background: rgba(26, 117, 188, 0.8);
      border: 1px solid #3a5f8a;
      border-radius: 4px;
      padding: 8px 12px;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.85rem;
      transition: all 0.3s;
      width: 107px;
      justify-content: space-between;
    }
    
    .map-control-btn:hover {
      background: rgba(26, 117, 188, 1);
    }
    
    .map-pollutant-dropdown {
      position: relative;
      display: inline-block;
      width: 107px;
    }
    
    .dropdown-toggle {
      width: 100%;
      text-align: left;
      justify-content: space-between;
    }
    
    .dropdown-toggle::after {
      content: '\f078';
      font-family: 'Font Awesome 5 Free';
      font-weight: 900;
      font-size: 0.8rem;
      transition: transform 0.3s ease;
    }
    
    .map-pollutant-dropdown.open .dropdown-toggle::after {
      transform: rotate(180deg);
    }
    
    .dropdown-menu {
      position: absolute;
      top: 40px;
      right: 0;
      background: rgba(16, 42, 67, 0.95);
      border-radius: 6px;
      border: 1px solid #2e4e7c;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.3s ease-out;
      z-index: 1000;
      width: 107px;
    }
    
    .map-pollutant-dropdown.open .dropdown-menu {
      max-height: 260px;
    }
    
    .map-pollutant-option {
      background: rgba(40, 80, 140, 0.4);
      border-radius: 4px;
      padding: 6px;
      text-align: center;
      color: #c9e1ff;
      cursor: pointer;
      transition: all 0.3s;
      border: 1px solid #3a5f8a;
      font-size: 0.75rem;
      margin: 4px;
    }
    
    .map-pollutant-option:hover {
      background: rgba(50, 100, 180, 0.6);
    }
    
    .map-pollutant-option.active {
      background: rgba(26, 117, 188, 0.4);
      border-color: #4db8ff;
      color: #ffffff;
      font-weight: bold;
    }
    
    .region-selector {
      position: absolute;
      top: 15px;
      left: 15px;
      z-index: 100;
      background: rgba(16, 42, 67, 0.9);
      border-radius: 6px;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      border: 1px solid #2e4e7c;
    }
    
    .medium-scale-option {
      padding: 8px 12px;
      border-radius: 4px;
      background: rgba(40, 80, 140, 0.4);
      color: #c9e1ff;
      cursor: pointer;
      transition: all 0.3s;
      text-align: center;
      font-size: 0.9rem;
      position: relative;
    }
    
    .medium-scale-option:hover {
      background: rgba(50, 100, 180, 0.6);
    }
    
    .medium-scale-option.active {
      background: rgba(26, 117, 188, 0.4);
      color: #ffffff;
      font-weight: bold;
    }
    
    .sub-scale-panel {
      position: absolute;
      left: 100%;
      top: 0;
      background: rgba(16, 42, 67, 0.95);
      border-radius: 6px;
      padding: 8px;
      display: none;
      flex-direction: column;
      gap: 5px;
      border: 1px solid #2e4e7c;
      margin-left: 5px;
      min-width: 80px;
      z-index: 101;
    }
    
    .sub-scale-option {
      padding: 6px 10px;
      border-radius: 4px;
      background: rgba(40, 80, 140, 0.4);
      color: #c9e1ff;
      cursor: pointer;
      transition: all 0.3s;
      text-align: center;
      font-size: 0.8rem;
    }
    
    .sub-scale-option:hover {
      background: rgba(50, 100, 180, 0.6);
    }
    
    .sub-scale-option.active {
      background: rgba(26, 117, 188, 0.4);
      color: #ffffff;
      font-weight: bold;
    }
    
    .medium-scale-option:hover .sub-scale-panel {
      display: flex;
    }
    
    .city-selector {
      position: absolute;
      top: 15px;
      left: 15px;
      z-index: 100;
      background: rgba(16, 42, 67, 0.9);
      border-radius: 6px;
      padding: 8px;
      display: none;
      flex-direction: column;
      gap: 5px;
      border: 1px solid #2e4e7c;
    }
    
    .city-option {
      padding: 8px 12px;
      border-radius: 4px;
      background: rgba(40, 80, 140, 0.4);
      color: #c9e1ff;
      cursor: pointer;
      transition: all 0.3s;
      text-align: center;
      font-size: 0.9rem;
    }
    
    .city-option:hover {
      background: rgba(50, 100, 180, 0.6);
    }
    
    .city-option.active {
      background: rgba(26, 117, 188, 0.4);
      color: #ffffff;
      font-weight: bold;
    }

    .region-selector {
      position: absolute;
      top: 15px;
      left: 15px;
      z-index: 100;
      background: rgba(16, 42, 67, 0.9);
      border-radius: 6px;
      padding: 8px;
      display: none;
      flex-direction: column;
      gap: 5px;
      border: 1px solid #2e4e7c;
    }
    
    .medium-scale-option {
      padding: 8px 12px;
      border-radius: 4px;
      background: rgba(40, 80, 140, 0.4);
      color: #c9e1ff;
      cursor: pointer;
      transition: all 0.3s;
      text-align: center;
      font-size: 0.9rem;
      position: relative;
    }
    
    .medium-scale-option:hover {
      background: rgba(50, 100, 180, 0.6);
    }
    
    .medium-scale-option.active {
      background: rgba(26, 117, 188, 0.4);
      color: #ffffff;
      font-weight: bold;
    }
    
    .sub-scale-panel {
      position: absolute;
      left: 100%;
      top: 0;
      background: rgba(16, 42, 67, 0.95);
      border-radius: 6px;
      padding: 8px;
      display: none;
      flex-direction: column;
      gap: 5px;
      border: 1px solid #2e4e7c;
      margin-left: 5px;
      min-width: 80px;
      z-index: 101;
    }
    
    .sub-scale-option {
      padding: 6px 10px;
      border-radius: 4px;
      background: rgba(40, 80, 140, 0.4);
      color: #c9e1ff;
      cursor: pointer;
      transition: all 0.3s;
      text-align: center;
      font-size: 0.8rem;
    }
    
    .sub-scale-option:hover {
      background: rgba(50, 100, 180, 0.6);
    }
    
    .sub-scale-option.active {
      background: rgba(26, 117, 188, 0.4);
      color: #ffffff;
      font-weight: bold;
    }
    
    .medium-scale-option:hover .sub-scale-panel {
      display: flex;
    }
    
    .high-res-title {
      position: absolute;
      top: 15px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(26, 117, 188, 0.85);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.95rem;
      font-weight: bold;
      z-index: 100;
      display: none;
    }
    
    .city-selector {
      position: absolute;
      top: 15px;
      left: 15px;
      z-index: 100;
      background: rgba(16, 42, 67, 0.9);
      border-radius: 6px;
      padding: 8px;
      display: none;
      flex-direction: column;
      gap: 5px;
      border: 1px solid #2e4e7c;
    }
    
    .city-option {
      padding: 8px 12px;
      border-radius: 4px;
      background: rgba(40, 80, 140, 0.4);
      color: #c9e1ff;
      cursor: pointer;
      transition: all 0.3s;
      text-align: center;
      font-size: 0.9rem;
    }
    
    .city-option:hover {
      background: rgba(50, 100, 180, 0.6);
    }
    
    .city-option.active {
      background: rgba(26, 117, 188, 0.4);
      color: #ffffff;
      font-weight: bold;
    }
    
    .sub-scale-selector {
      position: absolute;
      top: 15px;
      left: 15px;
      z-index: 100;
      background: rgba(16, 42, 67, 0.9);
      border-radius: 6px;
      padding: 8px;
      display: none;
      flex-direction: column;
      gap: 5px;
      border: 1px solid #2e4e7c;
    }
    
    .sub-scale-selector-option {
      padding: 8px 12px;
      border-radius: 4px;
      background: rgba(40, 80, 140, 0.4);
      color: #c9e1ff;
      cursor: pointer;
      transition: all 0.3s;
      text-align: center;
      font-size: 0.9rem;
    }
    
    .sub-scale-selector-option:hover {
      background: rgba(50, 100, 180, 0.6);
    }
    
    .sub-scale-selector-option.active {
      background: rgba(26, 117, 188, 0.4);
      color: #ffffff;
      font-weight: bold;
    }
    
.exit-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 100;
  background: rgba(26, 117, 188, 0.4);
  color: #c9e1ff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-size: 0.9rem;
  display: none;
}


.exit-btn.active {
  background: rgba(26, 117, 188, 0.4);
  color: #ffffff;
  font-weight: bold;
}
    
.exit-btn:hover {
  background: rgba(50, 100, 180, 0.6);
}
    
    .timeline-overlay {
      position: absolute;
      bottom: 15px;
      left: 50%;
      transform: translateX(-50%);
      width: 80%;
      background: rgba(16, 42, 67, 0.9);
      border-radius: 8px;
      padding: 8px;
      z-index: 100;
      display: none;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      border: 1px solid #2e4e7c;
    }
    
    .right-panel {
      grid-area: right-panel;
      background: rgba(16, 42, 67, 0.7);
      padding: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      gap: 10px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      border: 1px solid #1e3a5c;
    }
    
    .panel-title {
      color: #a0d1ff;
      text-align: center;
      font-size: 1.1rem;
      padding-bottom: 8px;
      margin-bottom: 8px;
      border-bottom: 1px solid #2e4e7c;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .station-selector-btn {
      background: linear-gradient(to right, #1a75bc, #2e9ce9);
      border: none;
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.3s;
      font-size: 0.7rem;
      margin-left: 10px;
    }
    
    .station-selector-btn:hover {
      opacity: 0.9;
    }
    
    .monitoring-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
      height: 60%;
    }
    
    .aqi-summary-container {
      background: rgba(26, 65, 119, 0.5);
      border-radius: 8px;
      padding: 12px;
      border: 1px solid #2e4e7c;
      display: flex;
      align-items: center;
      gap: 15px;
      justify-content: center;
    }
    
    .aqi-value-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .aqi-value {
      font-size: 3.5rem;
      font-weight: bold;
      line-height: 1;
      text-align: center;
      margin-bottom: 5px;
    }
    
    .aqi-info-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
    .aqi-status {
      font-size: 0.9rem;
      color: #a0d1ff;
      margin-bottom: 5px;
    }
    
    .update-time {
      font-size: 0.75rem;
      color: #ffffff;
      margin-bottom: 5px;
    }
    
    .data-source {
      font-size: 0.75rem;
      color: #ffffff;
    }
    
    .pollutant-selector {
      background: rgba(26, 65, 119, 0.5);
      border-radius: 8px;
      padding: 8px;
      border: 1px solid #2e4e7c;
      display: none; 
    }
    
    .pollutant-selector h3 {
      color: #a0d1ff;
      margin-bottom: 10px;
      text-align: center;
      font-size: 0.95rem;
    }
    
    .pollutant-grid {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    
    .pollutant-option {
      background: rgba(40, 80, 140, 0.4);
      border-radius: 4px;
      padding: 8px;
      text-align: center;
      color: #c9e1ff;
      cursor: pointer;
      transition: all 0.3s;
      border: 1px solid #3a5f8a;
      font-size: 0.8rem;
    }
    
    .pollutant-option:hover {
      background: rgba(50, 100, 180, 0.6);
    }
    
    .pollutant-option.active {
      background: rgba(26, 117, 188, 0.4);
      border-color: #4db8ff;
      color: #ffffff;
      font-weight: bold;
    }
    
    .concentration-table-container {
      background: rgba(26, 65, 119, 0.5);
      border-radius: 8px;
      padding: 12px;
      border: 1px solid #2e4e7c;
      overflow: auto;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    
    .concentration-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    
    .pollutant-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 8px;
      background: rgba(40, 80, 140, 0.3);
      border-radius: 4px;
      border: 1px solid #3a5f8a;
    }
    
    .pollutant-name {
      color: #c9e1ff;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    
    .pollutant-value {
      color: #ffffff;
      font-size: 0.8rem;
      font-weight: bold;
    }
    
    .timeline-container {
      background: rgba(26, 65, 119, 0.5);
      border-radius: 8px;
      padding: 8px;
      border: 1px solid #2e4e7c;
    }
    
    .timeline-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }
    
    .current-time-display {
      color: #c9e1ff;
      font-size: 0.85rem;
      font-weight: bold;
    }
    
    .timeline-controls {
      display: flex;
      align-items: center;
      color: #c9e1ff;
      font-size: 0.85rem;
    }
    
    .play-controls {
      display: flex;
      gap: 4px;
    }
    
    .control-btn {
      background: rgba(26, 117, 188, 0.3);
      border: 1px solid #3a5f8a;
      border-radius: 4px;
      width: 28px;
      height: 28px;
      color: #a0d1ff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      transition: all 0.3s;
    }
    
    .control-btn:hover {
      background: rgba(26, 117, 188, 0.5);
    }
    
    .timeline-bar-container {
      background: rgba(40, 80, 140, 0.3);
      border-radius: 4px;
      height: 6px;
      position: relative;
      margin: 8px 0;
    }
    
    .timeline-bar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 100%;
      cursor: pointer;
    }
    
    .timeline-progress {
      height: 100%;
      width: 10%;
      background: linear-gradient(90deg, #4db8ff, #1a75bc);
      border-radius: 4px;
      transition: width 0.3s;
    }
    
.date-labels {
  display: flex;
  justify-content: space-between;
  color: #8fbde6;
  font-size: 0.5rem;
  position: relative;
}

.date-labels span {
  position: absolute;
  transform: translateX(-50%);
}

    
    .additional-sections {
      display: flex;
      flex-direction: column;
      gap: 10px;
      height: 40%;
    }
    
    .download-section, .about-section {
      background: rgba(26, 65, 119, 0.5);
      border-radius: 8px;
      padding: 12px;
      border: 1px solid #2e4e7c;
      overflow: auto;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    
    .download-section h3, .about-section h3 {
      color: #a0d1ff;
      text-align: center;
      font-size: 1.1rem;
      padding-bottom: 8px;
      margin-bottom: 8px;
      border-bottom: 1px solid #2e4e7c;
    }
    
    .section-content {
      color: #c9e1ff;
      font-size: 0.9rem;
      text-align: center;
      padding: 20px 0;
    }
    
    .download-section-btn {
      background: linear-gradient(to right, #1a75bc, #2e9ce9);
      border: none;
      color: white;
      padding: 8px 16px;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.3s;
      font-size: 0.85rem;
      margin: 4px auto;
      display: block;
      text-decoration: none;
      width: 90%;
      text-align: center;
      height: 40px;
      line-height: 24px;
    }
    
    .download-section-btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }
    
    .download-btn {
      background: linear-gradient(to right, #1a75bc, #2e9ce9);
      border: none;
      color: white;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.3s;
      font-size: 0.9rem;
      margin: 10px auto;
      display: block;
      text-decoration: none;
      width: 80%;
      text-align: center;
    }
    
    .download-btn:hover {
      opacity: 0.9;
      transform: translateY(-2px);
    }
    
    .download-btn-small {
      background: linear-gradient(to right, #1a75bc, #2e9ce9);
      border: none;
      color: white;
      padding: 8px 12px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.3s;
      font-size: 0.8rem;
      margin: 10px auto;
      display: inline-block;
      text-decoration: none;
      width: auto;
      min-width: 40px;
      text-align: center;
    }
    
    .download-btn-small:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }
    
    .tooltip {
      position: relative;
      display: inline-block;
      cursor: help;
    }
    
    .tooltip .tooltiptext {
      visibility: hidden;
      width: 200px;
      background-color: rgba(16, 42, 67, 0.95);
      color: #c9e1ff;
      text-align: center;
      border-radius: 6px;
      padding: 10px;
      position: absolute;
      z-index: 1;
      bottom: 125%;
      left: 50%;
      margin-left: -100px;
      opacity: 0;
      transition: opacity 0.3s;
      font-size: 0.8rem;
      border: 1px solid #2e4e7c;
    }
    
    .tooltip:hover .tooltiptext {
      visibility: visible;
      opacity: 1;
    }
    
    @media (max-width: 1600px) {
      .bigscreen-content {
        grid-template-rows: 60px 1fr;
      }
      
      .title-text {
        font-size: 1.4rem;
      }
      
      .aqi-value {
        font-size: 3rem;
      }
    }
    
    @media (max-height: 900px) {
      .bigscreen-content {
        grid-template-rows: 60px 1fr;
      }
      
      .aqi-value {
        font-size: 2.5rem;
      }
    }

    .cesium-widget-credits {
      display: none !important;
    }

    .heatmap-legend {
      position: absolute;
      bottom: 15px;
      left: 15px;
      z-index: 100;
      background: rgba(16, 42, 67, 0.9);
      border-radius: 6px;
      padding: 8px;
      border: 1px solid #2e4e7c;
      display: none;
      transform: scale(1);
      transform-origin: left bottom;
      height: 180px;
      width: 80px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .legend-title {
      color: #a0d1ff;
      font-size: 0.8rem;
      margin-bottom: 5px;
      text-align: center;
    }
    
    .legend-gradient {
      height: 120px;
      width: 15px;
      background: linear-gradient(to bottom, #7e0023, #99004c, #ff0000, #ff7e00, #ffff00, #00e400);
      margin: 0 auto;
    }
    
    .legend-labels {
      display: flex;
      flex-direction: column-reverse;
      justify-content: space-between;
      height: 150px;
      margin-left: 5px;
    }
    
    .legend-label {
      color: #c9e1ff;
      font-size: 0.6rem;
    }
    
    .legend-container {
      display: flex;
      align-items: stretch;
    }

    .loading-indicator {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 10px 20px;
      border-radius: 5px;
      z-index: 1000;
      display: none;
    }

     .wind-mode-toggle {
       position: absolute;
       top: 2px;
       left: 5px;
       color: #a0d1ff;
       cursor: pointer;
       font-size: 0.7rem;
       z-index: 101;
       transition: color 0.3s;
    }

     .wind-mode-toggle:hover {
       color: #ffffff;
    }

     .wind-mode-toggle.active {
       color: #4db8ff;
    }

    .wind-legend {
      position: absolute;
      bottom: 15px;
      left: 15px;
      z-index: 100;
      background: rgba(16, 42, 67, 0.9);
      border-radius: 6px;
      padding: 8px;
      border: 1px solid #2e4e7c;
      display: none;
      transform: scale(1);
      transform-origin: left bottom;
      height: 160px;
      width: 80px;
    }
    
    .wind-legend-title {
      color: #a0d1ff;
      font-size: 0.8rem;
      margin-bottom: 5px;
      text-align: center;
    }
    
    .wind-legend-items {
      display: flex;
      flex-direction: column-reverse;
      height: 150px;
      justify-content: space-between;
      gap: 0;
    }
    
    .wind-legend-item {
      display: flex;
      align-items: center;
      gap: 5px;
      margin: 0;
    }
    
    .wind-legend-color {
      width: 20px;
      height: 15px;
      border-radius: 0;
    }
    
    .wind-legend-label {
      color: #c9e1ff;
      font-size: 0.6rem;
    }
    
    .legend-close-btn {
      position: absolute;
      top: 2px;
      right: 5px;
      color: #a0d1ff;
      cursor: pointer;
      font-size: 0.7rem;
    }
    
    .legend-switch-btn {
      position: absolute;
      top: 2px;
      right: 20px;
      color: #a0d1ff;
      cursor: pointer;
      font-size: 0.7rem;
      display: none;
    }
    
.minimal-dot {
  background: linear-gradient(to right, #1a75bc, #2e9ce9);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  width: auto;
  height: auto;
  margin-right: 10px;
}

.minimal-dot:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

    .nanjing-outline {
      position: absolute;
      z-index: 50;
      pointer-events: none;
    }
    
    .nanjing-label {
      position: absolute;
      color: white;
      font-size: 24px;
      font-weight: 300;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
      z-index: 51;
      pointer-events: none;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      white-space: nowrap;
    }
    
    .station-marker-entity {
      position: absolute;
      width: 12px;
      height: 12px;
      background-color: #ff6b6b;
      border: 2px solid white;
      border-radius: 50%;
      cursor: pointer;
      z-index: 200;
      transform: translate(-50%, -50%);
      box-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
      animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
      }
      70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
      }
    }
    
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10000;
      display: none;
    }
    
    .modal-content {
      width: 80%;
      height: 80%;
      max-width: 1200px;
      background: linear-gradient(to bottom, #0a1929, #132f4c);
      border-radius: 12px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      box-shadow: 0 0 40px rgba(0, 100, 200, 0.3);
      position: relative;
    }
    
    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid #2e4e7c;
    }
    
    .modal-title {
      color: #a0d1ff;
      font-size: 1.5rem;
      font-weight: bold;
    }
    
    .modal-close {
      color: #a0d1ff;
      font-size: 1.5rem;
      cursor: pointer;
      background: none;
      border: none;
    }
    
    .modal-body {
      display: flex;
      flex: 1;
      overflow: hidden;
      gap: 20px;
    }
    
    .modal-left, .modal-right {
      flex: 1;
      overflow-y: auto;
      padding: 10px;
    }
    
    .modal-left {
      border-right: 1px solid #2e4e7c;
    }
    
    #forecast-modal .modal-body,
#assessment-modal .modal-body {
  display: block; 
  overflow: visible; 
  gap: 0;
}

#forecast-modal .modal-section,
#assessment-modal .modal-section {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#forecast-modal .modal-section-title,
#assessment-modal .modal-section-title {
  flex-shrink: 0; 
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2e4e7c;
}

#forecast-content,
#assessment-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: rgba(16, 42, 67, 0.3);
  border-radius: 6px;
  border: 1px solid #2e4e7c;
  min-height: 0; 
}

#forecast-content::-webkit-scrollbar,
#assessment-content::-webkit-scrollbar {
  width: 8px;
}

#forecast-content::-webkit-scrollbar-track,
#assessment-content::-webkit-scrollbar-track {
  background: rgba(16, 42, 67, 0.5);
  border-radius: 4px;
}

#forecast-content::-webkit-scrollbar-thumb,
#assessment-content::-webkit-scrollbar-thumb {
  background: rgba(26, 117, 188, 0.8);
  border-radius: 4px;
}

#forecast-content::-webkit-scrollbar-thumb:hover,
#assessment-content::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 117, 188, 1);
}

#forecast-modal .modal-content,
#assessment-modal .modal-content {
  overflow: hidden; 
}

#forecast-modal .modal-body,
#assessment-modal .modal-body {
  overflow: hidden; 
}

    .modal-section {
      margin-bottom: 20px;
    }
    
    .modal-section-title {
      color: #a0d1ff;
      font-size: 1.2rem;
      margin-bottom: 10px;
      font-weight: bold;
    }
    
    .modal-section-content {
      color: #c9e1ff;
      font-size: 0.9rem;
      line-height: 1.6;
    }
    
    .team-member {
      margin-bottom: 15px;
    }
    
    .member-name {
      font-weight: bold;
      color: #ffffff;
    }
    
    .modal-logo {
      text-align: center;
      margin-bottom: 20px;
    }
    
    .modal-logo img {
      max-width: 200px;
      max-height: 100px;
    }
    
    .heatmap-legend .legend-container {
      height: 120px;
      display: flex;
      flex-direction: row;
      align-items: stretch;
    }
    
    .heatmap-legend .legend-gradient {
      order: 2;
      height: 120px;
      width: 20px;
      margin-left: 5px;
      background: linear-gradient(to bottom, #7e0023, #99004c, #ff0000, #ff7e00, #ffff00, #00e400);
    }
    
    .heatmap-legend .legend-labels {
      order: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
      margin-right: 5px;
      padding: 0 5px;
    }
    
    .heatmap-legend .legend-label {
      font-size: 0.6rem;
      text-align: left;
    }
    
    .wind-legend .wind-legend-items {
      height: 120px;
      justify-content: space-around;
    }

    @media (max-aspect-ratio: 16/9) {
      .bigscreen-container {
        width: 177.78vh;
        height: 100vh;
        padding-bottom: 0;
        max-width: none;
      }
    }
    
    @media (min-aspect-ratio: 16/9) {
      .bigscreen-container {
        width: 100vw;
        height: 56.25vw;
        padding-bottom: 0;
        max-height: none;
      }
    }

    .station-tooltip {
      position: absolute;
      background: rgba(16, 42, 67, 0.9);
      color: white;
      padding: 8px;
      border-radius: 4px;
      font-size: 0.8rem;
      white-space: nowrap;
      z-index: 202;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s;
      transform: translate(-50%, -100%);
      margin-top: -10px;
    }

    .about-us-btn {
      background: linear-gradient(to right, #1a75bc, #2e9ce9);
      border: none;
      color: white;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.3s;
      font-size: 0.9rem;
      margin: 10px auto;
      display: block;
      text-decoration: none;
      width: 80%;
      text-align: center;
    }
    
    .about-us-btn:hover {
      opacity: 0.9;
      transform: translateY(-2px);
    }

    .timeline-controls-right {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: auto;
    }

    .chart-controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      padding: 10px;
      background: rgba(26, 65, 119, 0.5);
      border-radius: 6px;
      border: 1px solid #2e4e7c;
    }

    .chart-info {
      color: #c9e1ff;
      font-size: 0.9rem;
      font-weight: bold;
    }

    .pollutant-checkboxes {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .pollutant-checkbox {
      color: #c9e1ff;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
    }

    .pollutant-checkbox input[type="checkbox"] {
      margin: 0;
      cursor: pointer;
    }

    .chart-container {
      flex: 1;
      background: rgba(16, 42, 67, 0.8);
      border-radius: 6px;
      padding: 15px;
      position: relative;
      border: 1px solid #2e4e7c;
    }

    #time-series-chart {
      width: 100%;
      height: 100%;
    }

    #chart-loading {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(160, 209, 255, 0.35);
      border-top-color: #a0d1ff;
      border-radius: 50%;
      pointer-events: none;
    }

    @media (prefers-reduced-motion: no-preference) {
      #chart-loading {
        animation: chart-loading-spin 0.9s linear infinite;
      }
    }

    @keyframes chart-loading-spin {
      to { transform: rotate(360deg); }
    }

    #chart-error {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 10px 20px;
      border-radius: 5px;
      z-index: 1000;
    }

.forecast-modal-body {
  display: flex;
  gap: 20px;
  height: calc(100% - 60px);
  overflow: hidden;
}

.modal-left, .modal-middle, .modal-right {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  max-height: 100%;
}

.modal-left {
  border-right: 1px solid #2e4e7c;
}

.modal-middle {
  border-right: 1px solid #2e4e7c;
}

#forecast-modal .modal-body,
#assessment-modal .modal-body {
  overflow-y: auto;
  max-height: calc(100% - 70px); 
  padding: 15px;
}

#forecast-content,
#assessment-content {
  overflow-y: auto;
  max-height: 100%;
  padding-right: 10px; 
}

#forecast-modal .modal-body::-webkit-scrollbar,
#assessment-modal .modal-body::-webkit-scrollbar,
#forecast-content::-webkit-scrollbar,
#assessment-content::-webkit-scrollbar {
  width: 8px;
}

#forecast-modal .modal-body::-webkit-scrollbar-track,
#assessment-modal .modal-body::-webkit-scrollbar-track,
#forecast-content::-webkit-scrollbar-track,
#assessment-content::-webkit-scrollbar-track {
  background: rgba(16, 42, 67, 0.5);
  border-radius: 4px;
}

#forecast-modal .modal-body::-webkit-scrollbar-thumb,
#assessment-modal .modal-body::-webkit-scrollbar-thumb,
#forecast-content::-webkit-scrollbar-thumb,
#assessment-content::-webkit-scrollbar-thumb {
  background: rgba(26, 117, 188, 0.8);
  border-radius: 4px;
}

#forecast-modal .modal-body::-webkit-scrollbar-thumb:hover,
#assessment-modal .modal-body::-webkit-scrollbar-thumb:hover,
#forecast-content::-webkit-scrollbar-thumb:hover,
#assessment-content::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 117, 188, 1);
}

.download-sidebar {
  flex: 0 0 250px;
  background: rgba(16, 42, 67, 0.8);
  border-radius: 6px;
}

.file-list-container {
  max-height: 500px;
  overflow-y: auto;
}

.file-item {
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(26, 65, 119, 0.5);
  border-radius: 4px;
  border: 1px solid #2e4e7c;
  cursor: pointer;
  transition: all 0.3s;
}

.file-item:hover {
  background: rgba(26, 117, 188, 0.3);
  border-color: #4db8ff;
}

.file-name {
  color: #c9e1ff;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.file-meta {
  color: #8fbde6;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.ice-var-btn {
  background: rgba(40, 80, 140, 0.8);
  border: 1px solid #3a5f8a;
  border-radius: 4px;
  padding: 8px 12px;
  color: #c9e1ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  transition: all 0.3s;
  width: 107px;
  justify-content: space-between;
  margin-top: 5px;
}

.ice-var-btn:hover {
  background: rgba(50, 100, 180, 0.8);
}

.ice-var-btn.active {
  background: rgba(26, 117, 188, 0.4);
  border-color: #4db8ff;
  color: #ffffff;
  font-weight: bold;
}

    .forecast-content .modal-section-content {
      white-space: pre-line;
      line-height: 1.6;
      color: #c9e1ff;
      font-size: 0.9rem;
    }

    .ai-assistant {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 9999;
      user-select: none;
    }

    .ai-icon {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      cursor: pointer;
      position: relative;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      transition: all 0.3s ease;
      overflow: hidden;
      border: 3px solid rgba(255, 255, 255, 0.8);
    }

    .ai-icon:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .ai-icon:hover .ai-avatar {
      bottom: 0;
    }

    .ai-avatar {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      bottom: -30px;
      transition: bottom 0.5s ease;
      border-radius: 50%;
    }

    .ai-chat-window {
      position: absolute;
      bottom: 80px;
      right: 0;
      width: 350px;
      height: 500px;
      background: linear-gradient(to bottom, #1a2a3a, #0d1824);
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      display: none;
      flex-direction: column;
      border: 1px solid #2e4e7c;
      overflow: hidden;
      resize: both;
      min-width: 300px;
      min-height: 400px;
      max-width: 600px;
      max-height: 800px;
    }

    .ai-chat-window.dragging {
      user-select: none;
    }

    .ai-chat-header {
      background: linear-gradient(to right, #1a75bc, #2e9ce9);
      padding: 12px 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: move;
      border-bottom: 1px solid #2e4e7c;
    }

    .ai-chat-title {
      color: white;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .ai-chat-controls {
      display: flex;
      gap: 5px;
    }

    .ai-btn {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.3s;
    }

    .ai-btn:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    .ai-chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 15px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      background: rgba(16, 42, 67, 0.7);
    }

    .ai-message {
      max-width: 85%;
      padding: 10px 14px;
      border-radius: 18px;
      line-height: 1.5;
      word-wrap: break-word;
      animation: fadeIn 0.3s ease;
    }

.ai-quick-questions {
  margin: 15px 0;
  padding: 15px;
  background: #2e4e7e;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.ai-quick-title {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 10px;
  font-weight: 500;
}

.ai-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-quick-btn {
  padding: 6px 12px;
  background: #a1afc9;
  border: 1px solid #2e4e7e;
  border-radius: 20px;
  font-size: 13px;
  color: #2e4e7e;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ai-quick-btn:hover {
  background: #2e4e7e;
  color: #a1afc9;
  border-color: #2e4e7e;
}

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .ai-message.user {
      align-self: flex-end;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #a1afc9;
      border-bottom-right-radius: 4px;
    }

    .ai-message.assistant {
      align-self: flex-start;
      background: rgba(26, 65, 119, 0.8);
      color: #c9e1ff;
      border: 1px solid #2e4e7c;
      border-bottom-left-radius: 4px;
    }

    .ai-welcome-message {
      background: rgba(26, 117, 188, 0.2);
      padding: 15px;
      border-radius: 10px;
      border: 1px solid #3a5f8a;
      color: #c9e1ff;
      font-size: 0.9rem;
    }

    .ai-welcome-message ul {
      margin: 10px 0;
      padding-left: 20px;
    }

    .ai-welcome-message li {
      margin-bottom: 5px;
    }

    .ai-chat-input-area {
      border-top: 1px solid #2e4e7c;
      padding: 12px;
      background: rgba(16, 42, 67, 0.9);
    }

    .ai-chat-input {
      width: 100%;
      background: rgba(26, 65, 119, 0.5);
      border: 1px solid #3a5f8a;
      border-radius: 8px;
      padding: 10px;
      color: #c9e1ff;
      resize: none;
      font-family: inherit;
      font-size: 0.9rem;
      margin-bottom: 10px;
    }

    .ai-chat-input:focus {
      outline: none;
      border-color: #4db8ff;
      box-shadow: 0 0 0 2px rgba(77, 184, 255, 0.2);
    }

    .ai-input-controls {
      display: flex;
      justify-content: flex-end;
    }

    .ai-send-btn {
      background: linear-gradient(to right, #1a75bc, #2e9ce9);
      border: none;
      color: white;
      padding: 8px 20px;
      border-radius: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
      transition: all 0.3s;
    }

    .ai-send-btn:hover {
      opacity: 0.9;
      transform: translateY(-2px);
    }

    .ai-send-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .ai-typing-indicator {
      display: flex;
      gap: 5px;
      padding: 10px;
      align-self: flex-start;
    }

    .ai-typing-dot {
      width: 8px;
      height: 8px;
      background: #4db8ff;
      border-radius: 50%;
      animation: typingAnimation 1.4s infinite ease-in-out;
    }

    .ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
    .ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

    @keyframes typingAnimation {
      0%, 80%, 100% { transform: scale(0); }
      40% { transform: scale(1); }
    }

    @media (max-width: 768px) {
      .ai-chat-window {
        width: 300px;
        height: 400px;
      }
      
      .ai-icon {
        width: 50px;
        height: 50px;
      }
    }
