* {
      box-sizing: border-box
    }

    body {
      margin: 0;
      font: 13px 'Microsoft YaHei', sans-serif;
      color: #615546;
      background: #fff9ee;
      background-image: radial-gradient(ellipse at 50% 50%, #f7e9c5, transparent 55%)
    }

    button,
    select,
    a {
      font: inherit
    }

    button,
    select {
      cursor: pointer;
      border: 1px solid #d6b584;
      background: #fffaf0;
      color: #865122;
      padding: 8px 12px;
      border-radius: 4px
    }

    button:hover,
    a:hover {
      background: #f6dfb6
    }

    header {
      height: 89px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 25px;
      border-bottom: 1px solid #dcb47a;
      background: linear-gradient(#fffdf7, #fff7e7);
      position: relative
    }

    header:after {
      content: '';
      position: absolute;
      bottom: -3px;
      height: 4px;
      width: 46%;
      left: 27%;
      background: linear-gradient(90deg, transparent, #df9637, transparent)
    }

    h1 {
      margin: 0;
      font-size: 27px;
      letter-spacing: 5px;
      color: #b86922;
      text-shadow: 0 2px #fff, 0 0 22px #f0bc76
    }

    header small {
      display: block;
      text-align: center;
      letter-spacing: 4px;
      font-size: 9px;
      color: #b29360;
      margin-top: 7px
    }

    .sub {
      font-size: 11px;
      line-height: 1.8;
      color: #958471
    }

    .brand {
      font-weight: bold;
      color: #9a752f;
      letter-spacing: 2px
    }

    .layout {
      display: grid;
      grid-template-columns: 280px minmax(380px, 1fr) 280px;
      gap: 17px;
      padding: 21px 19px 10px;
      max-width: 1920px;
      margin: auto
    }

    .side {
      display: flex;
      flex-direction: column;
      gap: 16px
    }

    .panel {
      border: 1px solid #e9d8b8;
      background: linear-gradient(130deg, #fffdf5de, #fff7e8aa);
      padding: 17px;
      position: relative;
      min-height: 165px;
      box-shadow: 0 8px 30px #bd9b5210
    }

    .panel:before,
    .panel:after {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      border: solid #c5914c;
      pointer-events: none
    }

    .panel:before {
      left: -1px;
      top: -1px;
      border-width: 1px 0 0 1px
    }

    .panel:after {
      right: -1px;
      bottom: -1px;
      border-width: 0 1px 1px 0
    }

    h2 {
      font-size: 14px;
      font-weight: 500;
      margin: 0 0 19px;
      border-left: 3px solid #dba650;
      padding-left: 9px
    }

    h2 small {
      float: right;
      font-size: 8px;
      color: #b6a78e;
      margin-top: 4px
    }

    p {
      line-height: 1.8
    }

    .big {
      font: 32px 'Microsoft YaHei', Arial, sans-serif;
      font-variant-numeric: tabular-nums;
      color: #b9772c;
      margin: 10px 0
    }

    .unit {
      font: 11px sans-serif;
      color: #a49a86
    }

    .row {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      font-size: 11px;
      margin: 11px 0
    }

    .bar {
      height: 6px;
      background: #f1e7d7;
      border-radius: 4px
    }

    .bar i {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, #d57b31, #efca75);
      border-radius: 4px;
      box-shadow: 0 0 8px #e6b84750
    }

    .center {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 670px
    }

    .tools {
      display: flex;
      justify-content: space-between;
      gap: 8px
    }

    .tag {
      color: #a87a39;
      letter-spacing: 2px;
      padding: 10px 0;
      font-size: 12px
    }

    .mapbox {
      flex: 1;
      min-height: 445px;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden
    }

    .mapbox:before {
      content: '';
      position: absolute;
      width: 84%;
      height: 56%;
      border: 1px solid #c8a86255;
      border-radius: 50%;
      transform: rotate(-18deg);
      box-shadow: 0 0 0 15px #dcc17510, 0 0 0 32px #dcc1750a
    }

    .mapbox svg {
      width: 100%;
      height: 100%;
      position: absolute;
      filter: drop-shadow(0 18px 9px #8f876d66)
    }

    .mapbox text {
      font-size: 12px;
      fill: #634c30;
      paint-order: stroke;
      stroke: #fff9e8;
      stroke-width: 4px;
      stroke-linejoin: round
    }

    .mapbox circle {
      fill: #df963e;
      stroke: #fff3cc;
      stroke-width: 2
    }

    .mapbox g[data-name] {
      cursor: pointer
    }

    .mapbox g[data-name]:hover circle {
      fill: #be5029;
      r: 7
    }

    .mapinfo {
      padding: 12px 14px;
      border: 1px solid #e3cea4;
      background: #fff9edcf;
      line-height: 1.8;
      min-height: 63px
    }

    .kpis {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 16px
    }

    .kpi {
      text-align: center;
      padding: 17px 4px;
      border-top: 2px solid #d7ac60;
      background: linear-gradient(#f9ebcd70, transparent)
    }

    .kpi b {
      display: block;
      font: 25px 'Microsoft YaHei', Arial, sans-serif;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      color: #aa712b;
      margin-bottom: 7px
    }

    .notice {
      font-size: 11px;
      color: #947c5c;
      line-height: 1.8;
      margin: 8px 0
    }

    .state {
      font-size: 11px;
      color: #997e59
    }

    .state.error {
      color: #ba4d2c
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px
    }

    td,
    th {
      padding: 9px 2px;
      border-bottom: 1px solid #e9ddc9;
      text-align: left
    }

    th {
      font-weight: normal;
      color: #a89a84
    }

    td:last-child,
    th:last-child {
      text-align: right
    }

    .empty {
      color: #ac9d86;
      padding: 22px 0;
      text-align: center;
      font-size: 12px
    }

    .donut {
      position: relative;
      isolation: isolate;
      width: 115px;
      height: 115px;
      border: 12px solid #ecdcbf;
      border-radius: 50%;
      display: grid;
      place-items: center;
      margin: 10px auto;
      color: #ad7933;
      font: 24px 'Microsoft YaHei', Arial, sans-serif;
      font-weight: 600;
      font-variant-numeric: tabular-nums
    }

    .donut:after {
      content: "";
      position: absolute;
      inset: 9px;
      background: #fff9ed;
      border-radius: 50%;
      z-index: -1
    }

    .legend {
      font-size: 11px;
      text-align: center;
      color: #978261;
      margin: 5px 0 12px
    }

    .footer {
      max-width: 1500px;
      margin: 12px auto;
      display: flex;
      justify-content: center;
      gap: 13px
    }

    .footer a {
      display: block;
      padding: 12px 19px;
      border: 1px solid #d8ab6b;
      color: #a56f2e;
      text-decoration: none;
      background: #fff4dc;
      box-shadow: 0 5px 15px #d7b88325
    }

    .footnote {
      text-align: center;
      color: #ad9c82;
      font-size: 10px;
      padding: 8px 15px 18px
    }

    .muted {
      color: #9d927e
    }

    .loading {
      color: #a7763e
    }

    @media(min-width:1550px) {
      .layout {
        grid-template-columns: 330px 1fr 330px
      }

      .center {
        min-height: 760px
      }

      .panel {
        padding: 22px;
        min-height: 190px
      }
    }

    @media(max-width:1050px) {
      .layout {
        grid-template-columns: 1fr 1fr
      }

      .center {
        grid-row: 1;
        grid-column: 1/-1;
        min-height: 580px
      }

      header .sub {
        display: none
      }
    }

    @media(max-width:600px) {
      header {
        height: 85px;
        padding: 15px
      }

      .brand {
        display: none
      }

      h1 {
        font-size: 19px;
        letter-spacing: 2px
      }

      .layout {
        display: flex;
        flex-direction: column;
        padding: 10px
      }

      .center {
        order: -1;
        min-height: 540px
      }

      .tools {
        flex-wrap: wrap
      }

      .footer {
        flex-wrap: wrap
      }

      .kpi b {
        font-size: 21px
      }
    }

    @media(prefers-reduced-motion:no-preference) {
      .panel {
        animation: in .6s ease both
      }

      @keyframes in {
        from {
          opacity: 0;
          transform: translateY(8px)
        }

        to {
          opacity: 1;
          transform: none
        }
      }
    }

    .year-panel {
      padding: 16px 18px;
      margin: 0 0 14px;
      border: 1px solid #dfbd83;
      background: linear-gradient(115deg, #fff8e7, #f9e7c6);
      box-shadow: 0 6px 20px #c9a35a16
    }

    .year-heading {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
      color: #95632d
    }

    .year-heading label {
      font-weight: bold;
      letter-spacing: 2px
    }

    .year-heading span {
      font-size: 11px
    }

    .year-controls {
      display: flex;
      gap: 10px;
      margin-top: 12px
    }

    .year-controls select {
      flex: 1;
      min-width: 100px;
      text-align: center;
      font-size: 17px;
      background: #fffdf6
    }

    .year-controls button {
      min-width: 38px
    }

    button:disabled,
    select:disabled {
      cursor: not-allowed;
      opacity: .5
    }

    .year-panel .notice {
      margin-bottom: 0
    }

    .scope-bar {
      max-width: 1920px;
      margin: auto;
      padding: 12px 20px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #92662e;
      font-size: 12px
    }

    .scope-bar button {
      padding: 5px 12px
    }

    .layout {
      padding-top: 12px;
      grid-template-columns: 270px minmax(380px, 1fr) 280px
    }

    .panel {
      min-height: 0;
      padding: 16px
    }

    .center {
      min-height: 680px
    }

    .core .kpis {
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin: 0
    }

    .core .kpi:first-child {
      grid-column: 1/-1
    }

    .core .kpi:first-child b {
      font-size: 36px
    }

    .kpi {
      padding: 10px 3px
    }

    .kpi b {
      font-size: 23px
    }

    .reference {
      padding: 12px;
      border: 1px dashed #dabe8c;
      background: #f9ecd530;
      margin-top: 12px
    }

    .reference b {
      display: block;
      font: 25px Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
      font-variant-numeric: lining-nums tabular-nums;
      color: #a97530;
      margin: 6px 0
    }

    .reference small {
      display: block;
      color: #958269;
      font-size: 10px
    }

    .reference span {
      font-size: 11px
    }

    .year-chips {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 12px
    }

    .year-chips button[aria-pressed=true] {
      color: white;
      background: #ad752f;
      border-color: #ad752f
    }

    .year-controls select {
      font-size: 14px
    }

    .year-panel {
      padding: 13px 16px
    }

    .map-actions {
      display: flex;
      gap: 6px;
      justify-content: flex-end;
      padding-top: 9px
    }

    .map-actions button {
      font-size: 11px;
      padding: 5px 9px
    }

    .mapbox {
      min-height: 380px
    }

    .mapbox g[data-name].selected circle {
      fill: #a44522;
      r: 7;
      stroke: #fff;
      stroke-width: 3
    }

    .mapbox g[data-name].selected text {
      font-weight: bold;
      fill: #a44522
    }

    #district {
      width: 100%;
      margin-top: 8px
    }

    #districtDetail {
      text-align: left;
      padding: 10px 0;
      line-height: 1.8
    }

    #districtDetail strong {
      display: block;
      font: 28px Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
      font-variant-numeric: lining-nums tabular-nums;
      color: #a97530;
      margin: 8px 0
    }

    .rank-button {
      background: none;
      border: 0;
      padding: 0;
      text-align: left;
      color: inherit;
      width: 100%
    }

    .rank-button:hover,
    .rank-button.active {
      color: #b26825;
      background: #f8ebd3
    }

    .year-chips button:focus-visible,
    button:focus-visible,
    select:focus-visible,
    g:focus-visible {
      outline: 2px solid #a26f24;
      outline-offset: 3px
    }

    dialog {
      max-width: 540px;
      width: 90%;
      border: 1px solid #cfaa71;
      background: #fff9ef;
      color: #635443;
      padding: 28px;
      border-radius: 8px;
      box-shadow: 0 30px 90px #3d2b1b55
    }

    dialog::backdrop {
      background: #3d2b1b70;
      backdrop-filter: blur(3px)
    }

    dialog p {
      font-size: 13px
    }

    .loading-shade {
      opacity: .6
    }

    @media(max-width:1050px) {
      .layout {
        grid-template-columns: 1fr 1fr
      }

      .center {
        min-height: 650px
      }
    }

    @media(max-width:600px) {
      .layout {
        display: flex
      }

      .center {
        min-height: 650px
      }

      .mapbox {
        min-height: 300px
      }

      .scope-bar {
        align-items: flex-start;
        gap: 8px
      }

      #scope {
        line-height: 1.8
      }

      .year-chips button {
        font-size: 11px
      }

      .tools {
        flex-wrap: wrap
      }

      .year-controls {
        gap: 5px
      }
    }

    @media(min-width:1550px) {
      .layout {
        grid-template-columns: 300px 1fr 310px
      }

      .center {
        min-height: 720px
      }
    }

    @media(min-width:1051px) {
      .layout {
        align-items: start
      }

      .side {
        gap: 12px
      }

      .panel {
        padding: 13px
      }

      .panel h2 {
        margin-bottom: 12px
      }

      .core .kpi {
        padding: 6px 2px
      }

      .core .kpi:first-child b {
        font-size: 30px
      }

      .reference {
        padding: 9px;
        margin-top: 8px
      }

      .reference b {
        margin: 3px 0
      }

      .empty {
        padding: 12px 0
      }

      .district-panel #districtDetail {
        padding: 7px 0
      }

      .district-panel #districtDetail strong {
        font-size: 24px;
        margin: 5px 0
      }

      .donut {
        width: 76px;
        height: 76px;
        border-width: 8px;
        font-size: 17px;
        margin: 5px auto
      }

      .donut:after {
        inset: 6px
      }

      .row {
        margin: 8px 0
      }

      td,
      th {
        padding: 7px 2px
      }

      .center {
        min-height: 0
      }

      .mapbox {
        height: clamp(340px, 49vh, 590px);
        min-height: 340px;
        flex: none
      }

      .year-panel {
        padding: 10px 12px;
        margin-bottom: 10px
      }

      .year-chips {
        margin-top: 8px
      }

      .year-controls {
        margin-top: 8px
      }

      .mapinfo {
        min-height: 45px;
        padding: 9px 12px
      }

      .footer {
        margin-top: 8px
      }

      .notice {
        line-height: 1.65
      }
    }

    .notice,
    .legend,
    .muted,
    .unit,
    .footnote,
    .sub {
      color: #78684f
    }

    .state {
      color: #76613f
    }

    .empty {
      color: #857153
    }

    th {
      color: #78684f
    }

    h2 small {
      color: #897959
    }

    .nav-current {
      padding: 11px 16px;
      background: #a86f2d;
      color: #fff;
      border-radius: 3px
    }

    .footer {
      align-items: center;
      flex-wrap: wrap
    }

    .provenance #source {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden
    }

    dialog .panel {
      margin: 12px 0
    }

    dialog {
      max-height: 85vh;
      overflow: auto
    }

    .center #mapState {
      font-size: 10px
    }

    .mapinfo {
      font-size: 12px
    }

    .rank-button.active {
      border-left: 3px solid #a86f2d;
      padding-left: 7px
    }

    .year-heading label {
      font-size: 13px
    }

    @media(min-width:1051px) {
      header {
        height: 72px
      }

      h1 {
        font-size: 24px
      }

      .scope-bar {
        padding-top: 8px
      }

      .layout {
        padding-top: 9px;
        gap: 14px;
        grid-template-columns: 260px minmax(380px, 1fr) 270px
      }

      .panel {
        padding: 12px
      }

      .side {
        gap: 10px
      }

      .core .kpi:first-child b {
        font-size: 29px
      }

      .core .kpi b {
        margin-bottom: 4px
      }

      .reference {
        padding: 7px
      }

      .reference b {
        font-size: 22px
      }

      .panel h2 {
        margin-bottom: 10px
      }

      .mapbox {
        height: clamp(260px, calc(100vh - 540px), 490px);
        min-height: 260px
      }

      .year-panel {
        padding: 9px 12px
      }

      .year-chips {
        margin-top: 7px
      }

      .year-controls {
        margin-top: 7px
      }

      .year-controls select {
        padding: 5px
      }

      .year-chips button {
        padding: 6px 12px
      }

      .mapinfo {
        padding: 8px 11px;
        min-height: 35px
      }

      .legend {
        margin-bottom: 8px
      }

      .tools button {
        padding: 6px 10px
      }

      .map-actions {
        padding-top: 5px
      }

      .footer a,
      .nav-current {
        padding: 9px 15px
      }

      .footnote {
        padding-bottom: 10px
      }

      .reference small {
        font-size: 11px
      }

      .row,
      table {
        font-size: 12px
      }

      .empty {
        padding: 10px 0
      }

      .notice {
        font-size: 12px
      }

      .core .notice,
      .provenance .notice {
        font-size: 11px
      }

      .kpi {
        font-size: 12px
      }

      .layout .side:first-child #trend {
        padding: 4px 0
      }
    }

    .map-service {
      font-size: 11px;
      color: #78684f;
      margin: 5px 0
    }

    .map-service summary {
      cursor: pointer
    }

    .provenance #source {
      display: block;
      overflow: visible
    }

    .heat-legend {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 9px;
      font-size: 11px;
      margin: 4px 0 8px;
      color: #785731
    }

    .heat-legend i {
      display: block;
      width: 100px;
      height: 7px;
      background: linear-gradient(90deg, #eee59b, #ffc72c, #ff871b, #e82e19);
      border-radius: 6px
    }

    #heatLayer circle {
      stroke: none;
      fill: revert-layer
    }

    #heatNote {
      font-size: 11px;
      margin: 0 0 7px
    }

    #heatToggle[aria-pressed=true] {
      background: #b47a30;
      color: white
    }

    .map-actions {
      flex-wrap: wrap
    }

    #qualityIssues {
      font-size: 12px;
      line-height: 1.8;
      padding-left: 20px
    }

    .heat-legend {
      flex-wrap: wrap
    }

    .district-region {
      cursor: pointer;
      outline: none
    }

    .boundary-halo {
      fill: none;
      stroke: #fffbed;
      stroke-width: 3.6;
      pointer-events: none
    }

    .boundary-fill {
      fill: var(--district-color);
      fill-opacity: .13;
      stroke: #665843;
      stroke-width: 1.15;
      stroke-linejoin: round;
      transition: fill-opacity .18s, stroke .18s
    }

    .district-region:hover .boundary-fill,
    .district-region:focus-visible .boundary-fill {
      fill-opacity: .38;
      stroke: #a2571e;
      stroke-width: 2
    }

    .district-region.selected .boundary-fill {
      fill: #edb940;
      fill-opacity: .38;
      stroke: #b85417;
      stroke-width: 2.8
    }

    .district-region.selected .boundary-halo {
      stroke: white;
      stroke-width: 5
    }

    .mapbox .district-label text {
      font-size: 14px;
      font-weight: 600;
      stroke: #fff9eb;
      stroke-width: 4px;
      fill: #54422e
    }

    .mapbox .district-label.selected text {
      fill: #a94716;
      font-weight: 800;
      font-size: 15px
    }

    .district-label:hover text {
      fill: #a94716
    }

    .district-label:focus-visible {
      outline: 2px solid #a46c27
    }

    /* Agriculture palette: neutral canvas, forest controls, mushroom accents.
   Cyan = selected geography; orange/red = area heat. */
    :root {
      --canvas: #f5f5ed;
      --surface: #fffdf7;
      --forest: #285943;
      --forest-hover: #1d4533;
      --ink: #293c32;
      --muted: #596b5c;
      --line: #cbd8c7;
      --mushroom: #846449;
      --selection: #176c87;
      --selection-fill: #80c9d5;
      --wash: #eaf0e5
    }

    body {
      color: var(--ink);
      background: var(--canvas);
      background-image: none
    }

    header {
      background: var(--surface);
      border-bottom: 1px solid var(--line)
    }

    header:after {
      height: 2px;
      bottom: -1px;
      background: linear-gradient(90deg, transparent, #6d9076, transparent)
    }

    h1 {
      color: var(--forest);
      text-shadow: none
    }

    header small,
    .brand {
      color: var(--mushroom)
    }

    h2 {
      color: var(--forest);
      border-left-color: #74977a
    }

    h2 small {
      color: #637160
    }

    button,
    select {
      background: var(--surface);
      border-color: #aebfa8;
      color: var(--forest);
      box-shadow: none
    }

    button:hover,
    a:hover {
      background: var(--wash)
    }

    button:active {
      background: #dce8d6
    }

    button:focus-visible,
    select:focus-visible,
    .year-chips button:focus-visible,
    g:focus-visible {
      outline-color: var(--selection)
    }

    .panel {
      background: var(--surface);
      border-color: var(--line);
      box-shadow: 0 2px 9px #263f2e06
    }

    .panel:before,
    .panel:after {
      border-color: #8fa88a
    }

    .scope-bar,
    .tag,
    .year-heading {
      color: var(--forest)
    }

    .notice,
    .legend,
    .muted,
    .unit,
    .footnote,
    .sub,
    .state,
    .empty,
    .map-service {
      color: var(--muted)
    }

    .state.error {
      color: #a33428
    }

    .loading {
      color: var(--forest)
    }

    th {
      color: #596b5c
    }

    td,
    th {
      border-color: #dce3d5
    }

    .big,
    .kpi b,
    #districtDetail strong {
      color: var(--forest)
    }

    .kpi {
      border-top-color: #84a080;
      background: linear-gradient(#ecf1e5, transparent)
    }

    .reference {
      border-color: #c9baa4;
      background: #f6f2e9
    }

    .reference b {
      color: var(--mushroom)
    }

    .reference small {
      color: #6f6252
    }

    .bar {
      background: #e3e9dc
    }

    .bar i {
      background: linear-gradient(90deg, #35684d, #8dac77);
      box-shadow: none
    }

    .rank-button {
      color: var(--ink)
    }

    .rank-button:hover {
      color: var(--forest);
      background: #edf2e7
    }

    .rank-button.active {
      color: var(--selection);
      background: #e7f2f3;
      border-left-color: var(--selection)
    }

    .year-panel {
      border-color: #bdccb4;
      background: #eef2e7;
      box-shadow: none
    }

    .year-controls select {
      background: var(--surface);
      color: var(--forest)
    }

    .year-chips button[aria-pressed=true],
    #heatToggle[aria-pressed=true],
    .nav-current {
      color: #fffdf7;
      background: var(--forest);
      border-color: var(--forest)
    }

    .year-chips button[aria-pressed=true]:hover,
    #heatToggle[aria-pressed=true]:hover {
      background: var(--forest-hover)
    }

    .mapinfo {
      background: #f8faf2;
      border-color: var(--line);
      color: var(--ink)
    }

    .mapbox:before {
      border-color: #a9bca247;
      box-shadow: none
    }

    .mapbox svg {
      filter: drop-shadow(0 9px 6px #3d4a352d)
    }

    .mapbox text {
      fill: #344737;
      stroke: #fffdf3
    }

    .boundary-halo {
      stroke: #fffdf3
    }

    .boundary-fill {
      stroke: #526650;
      fill-opacity: .09
    }

    .district-region:hover .boundary-fill,
    .district-region:focus-visible .boundary-fill {
      fill: var(--selection-fill);
      fill-opacity: .3;
      stroke: var(--selection)
    }

    .district-region.selected .boundary-fill {
      fill: var(--selection-fill);
      fill-opacity: .4;
      stroke: var(--selection);
      stroke-width: 2.8
    }

    .district-region.selected .boundary-halo {
      stroke: #fffdf7
    }

    .mapbox .district-label text {
      fill: #304633;
      stroke: #fffdf3
    }

    .mapbox .district-label.selected text,
    .mapbox .district-label:hover text,
    .mapbox g[data-name].selected text {
      fill: #125b73;
      stroke: #f7fffd
    }

    .district-label:focus-visible {
      outline-color: var(--selection)
    }

    .heat-legend {
      color: var(--muted)
    }

    .selection-key {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #24596a
    }

    .selection-key b {
      width: 13px;
      height: 9px;
      border: 2px solid var(--selection);
      background: #b2dce3;
      display: inline-block
    }

    .donut {
      border-color: #dce5d3;
      color: var(--forest)
    }

    .donut:after {
      background: var(--surface)
    }

    .footer a {
      border-color: #afc2a7;
      color: var(--forest);
      background: var(--surface);
      box-shadow: none
    }

    .footer a:hover {
      background: var(--wash)
    }

    dialog {
      border-color: var(--line);
      background: var(--surface);
      color: var(--ink);
      box-shadow: 0 18px 65px #203b3033
    }

    dialog::backdrop {
      background: #203b3066
    }


    /* Primary website navigation, placed below the brand header. */
    .top-nav {
      display: flex;
      align-items: stretch;
      justify-content: center;
      gap: 12px;
      margin: 0;
      padding: 12px 20px;
      background: var(--surface);
      border-bottom: 1px solid var(--line)
    }

    .top-nav>a,
    .top-nav>.nav-current,
    .top-nav>button {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 9px 20px;
      border: 1px solid #afc2a7;
      border-radius: 4px;
      font: inherit;
      line-height: 1.4;
      white-space: nowrap;
      text-decoration: none;
      color: var(--forest);
      background: var(--surface);
      box-shadow: none
    }

    .top-nav>.nav-current {
      background: var(--forest);
      border-color: var(--forest);
      color: var(--surface);
      font-weight: 600
    }

    .top-nav>a:hover,
    .top-nav>button:hover {
      background: var(--wash);
      border-color: #6d9076
    }

    .top-nav>a:focus-visible {
      outline: 2px solid var(--selection);
      outline-offset: 3px
    }

    @media(max-width:680px) {
      .top-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px
      }

      .top-nav>a,
      .top-nav>.nav-current,
      .top-nav>button {
        font-size: 12px;
        padding: 9px 4px;
        min-height: 40px
      }
    }

    @media(max-width:360px) {
      .top-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr))
      }
    }

    /* Lightweight district relief model; no DEM/elevation claims. */
    .view-switch {
      display: inline-flex;
      gap: 0
    }

    .view-switch button:first-child {
      border-radius: 4px 0 0 4px
    }

    .view-switch button:last-child {
      border-radius: 0 4px 4px 0;
      margin-left: -1px
    }

    .view-switch button[aria-pressed=true] {
      background: var(--forest);
      border-color: var(--forest);
      color: var(--surface)
    }

    .tilt-control {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      color: var(--muted)
    }

    .tilt-control input {
      width: 64px;
      accent-color: var(--forest);
      margin: 0
    }

    .tilt-control output {
      min-width: 26px;
      font-variant-numeric: tabular-nums
    }

    .view-notice {
      font-size: 11px;
      color: var(--muted);
      margin: 6px 0 0;
      line-height: 1.6
    }

    .map-actions {
      align-items: center
    }

    .raised-texture {
      display: none
    }

    .mapbox[data-view=relief] .district-region.selected .raised-texture {
      display: block
    }

    .mapbox[data-view=relief] .district-region.selected .boundary-fill {
      fill-opacity: .27
    }

    .mapbox[data-view=relief] svg {
      filter: drop-shadow(0 13px 7px #344a343b)
    }

    @media(max-width:600px) {
      .view-notice {
        font-size: 10px
      }

      .tilt-control input {
        width: 55px
      }

      .map-actions {
        justify-content: flex-start;
        gap: 6px
      }
    }

    #demHost {
      position: absolute;
      inset: 0;
      background: var(--canvas);
      overflow: hidden
    }

    #demHost[hidden],
    #demReadout[hidden],
    #demControls[hidden],
    .tilt-control[hidden],
    #retryMap[hidden] {
      display: none !important
    }

    #demHost canvas {
      display: block;
      width: 100%;
      height: 100%;
      touch-action: none;
      outline-offset: -3px
    }

    .dem-labels {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden
    }

    .dem-place {
      position: absolute;
      left: 0;
      top: 0;
      pointer-events: auto;
      padding: 2px 4px !important;
      border: 1px solid #c5d1b5;
      background: #fffdf0df;
      color: #2d4635;
      font-size: 11px !important;
      white-space: nowrap;
      box-shadow: 0 1px 4px #20302015
    }

    .dem-place.selected {
      background: #e2f4f6;
      border-color: #176c87;
      color: #125b73;
      font-weight: bold
    }

    .dem-place[hidden] {
      display: none
    }

    #demReadout {
      position: absolute;
      bottom: 6px;
      left: 6px;
      right: 6px;
      pointer-events: none;
      background: #fffdf0df;
      color: #4d604a;
      padding: 5px 8px;
      border-radius: 3px;
      font-size: 11px
    }

    .mapbox.dem-mode:before {
      display: none
    }

    #demControls {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px
    }

    #heightScale {
      padding: 4px 5px;
      font-size: 11px
    }

    .mapbox.dem-mode {
      height: clamp(420px, calc(100vh - 450px), 650px);
      min-height: 420px
    }

    .view-notice {
      color: #41614b
    }

    @media(max-width:600px) {
      .mapbox.dem-mode {
        height: 400px;
        min-height: 400px
      }

      .dem-place {
        font-size: 10px !important
      }
    }

    .terrain-badge {
      display: inline-flex;
      align-items: center;
      padding: 5px 9px;
      color: var(--forest);
      font-size: 11px;
      background: var(--wash);
      border: 1px solid var(--line);
      border-radius: 4px
    }

    .dem-error {
      position: absolute;
      inset: 0;
      z-index: 4;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 24px;
      text-align: center;
      color: var(--ink);
      background: var(--surface)
    }

    .dem-error[hidden] {
      display: none
    }

    .dem-error strong {
      font-size: 18px;
      color: var(--forest)
    }

    .dem-error p {
      max-width: 440px;
      font-size: 13px;
      margin: 0
    }

    .dem-error small {
      color: var(--muted);
      max-width: 400px;
      line-height: 1.8
    }

    /* 2026-10-07 官网科技风同步：仅覆盖视觉样式，不改动数据、接口与交互逻辑 */
    :root {
      --tech-bg: #071824;
      --tech-bg-2: #0b2535;
      --tech-panel: rgba(10, 30, 48, .84);
      --tech-panel-2: rgba(12, 39, 59, .72);
      --tech-cyan: #28d8ff;
      --tech-blue: #4a9dff;
      --tech-text: #e7f6ff;
      --tech-muted: #8eafc2;
      --tech-line: rgba(55, 205, 255, .22);
      --tech-glow: rgba(0, 205, 255, .28)
    }

    html {
      background: var(--tech-bg)
    }

    body {
      font-family: Inter, "Microsoft YaHei", Arial, sans-serif !important;
      color: var(--tech-text) !important;
      background: radial-gradient(ellipse at 50% -10%, rgba(0, 157, 220, .22), transparent 45%), linear-gradient(135deg, #071824 0%, #0a1f30 52%, #06131e 100%) !important;
      background-attachment: fixed !important;
      position: relative
    }

    body:before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .42;
      background-image: linear-gradient(rgba(58, 197, 238, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 197, 238, .055) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, black, transparent 86%);
      z-index: 0
    }

    header,
    .top-nav,
    .scope-bar,
    .layout,
    .footnote {
      position: relative;
      z-index: 1
    }

    header {
      height: 102px !important;
      padding: 0 34px !important;
      border-bottom: 1px solid var(--tech-line) !important;
      background: linear-gradient(180deg, rgba(10, 35, 53, .94), rgba(7, 24, 36, .86)) !important;
      box-shadow: 0 10px 32px rgba(0, 0, 0, .2), inset 0 -1px rgba(45, 207, 255, .16) !important
    }

    header:after {
      bottom: -2px !important;
      height: 2px !important;
      width: 58% !important;
      left: 21% !important;
      background: linear-gradient(90deg, transparent, var(--tech-cyan), transparent) !important;
      box-shadow: 0 0 16px var(--tech-cyan) !important
    }

    .brand {
      color: #a9ddf1 !important;
      letter-spacing: 3px !important
    }

    .sub {
      color: #7da4b8 !important;
      letter-spacing: 3px !important
    }

    h1 {
      color: #effbff !important;
      font-weight: 600 !important;
      letter-spacing: 6px !important;
      text-shadow: 0 0 18px rgba(42, 211, 255, .5) !important
    }

    header small {
      color: #63b8d5 !important;
      letter-spacing: 4px !important
    }

    .top-nav {
      padding: 9px 34px !important;
      border-bottom: 1px solid rgba(57, 196, 237, .15) !important;
      background: rgba(5, 20, 31, .82) !important;
      box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
      backdrop-filter: blur(14px)
    }

    .top-nav a,
    .top-nav span,
    .top-nav button {
      color: #a7c9d8 !important;
      border-color: rgba(61, 195, 237, .3) !important;
      background: rgba(13, 48, 69, .62) !important;
      border-radius: 3px !important;
      transition: .2s ease !important
    }

    .top-nav a:hover,
    .top-nav button:hover,
    .top-nav .nav-current {
      color: #eaffff !important;
      background: linear-gradient(135deg, rgba(0, 191, 255, .28), rgba(46, 110, 255, .2)) !important;
      border-color: var(--tech-cyan) !important;
      box-shadow: 0 0 14px rgba(0, 206, 255, .2) !important
    }

    .scope-bar {
      color: var(--tech-muted) !important;
      border-color: var(--tech-line) !important;
      background: rgba(8, 29, 44, .72) !important
    }

    .scope-bar button {
      color: var(--tech-cyan) !important;
      background: transparent !important;
      border-color: rgba(40, 216, 255, .38) !important
    }

    .layout {
      gap: 18px !important;
      padding: 20px 24px 12px !important
    }

    .panel,
    .mapinfo,
    .year-panel,
    .map-actions,
    .heat-legend {
      border: 1px solid var(--tech-line) !important;
      background: linear-gradient(145deg, rgba(13, 45, 66, .86), rgba(7, 25, 39, .78)) !important;
      box-shadow: 0 12px 30px rgba(0, 0, 0, .2), inset 0 1px rgba(131, 230, 255, .05) !important;
      color: var(--tech-text) !important;
      backdrop-filter: blur(10px)
    }

    .panel:before,
    .panel:after {
      border-color: var(--tech-cyan) !important;
      opacity: .7
    }

    h2 {
      color: #dff7ff !important;
      border-left-color: var(--tech-cyan) !important
    }

    h2 small {
      color: #6e9bad !important
    }

    .panel p,
    .notice,
    .muted,
    .empty {
      color: var(--tech-muted) !important
    }

    .kpi b,
    .big {
      color: #48ddff !important;
      text-shadow: 0 0 14px rgba(35, 211, 255, .35) !important;
      font-family: Inter, "Microsoft YaHei", Arial, sans-serif !important;
      font-variant-numeric: tabular-nums
    }

    button,
    select {
      color: #cceefa !important;
      background: rgba(11, 47, 68, .85) !important;
      border-color: rgba(49, 201, 242, .38) !important;
      border-radius: 3px !important
    }

    button:hover,
    select:hover {
      background: rgba(0, 174, 226, .2) !important;
      border-color: var(--tech-cyan) !important;
      box-shadow: 0 0 12px rgba(0, 208, 255, .16) !important
    }

    .bar {
      background: rgba(120, 183, 205, .16) !important
    }

    .bar i {
      background: linear-gradient(90deg, #00bfe8, #4a8dff) !important;
      box-shadow: 0 0 10px rgba(0, 202, 255, .5) !important
    }

    .mapbox {
      background: radial-gradient(ellipse, rgba(0, 177, 224, .1), transparent 66%) !important
    }

    .mapbox:before {
      border-color: rgba(48, 213, 255, .3) !important;
      box-shadow: 0 0 0 15px rgba(54, 193, 255, .05), 0 0 0 32px rgba(54, 193, 255, .025) !important
    }

    .mapbox text {
      fill: #c8effc !important;
      stroke: #092031 !important
    }

    .mapbox circle {
      fill: #2cd8ff !important;
      stroke: #d8fbff !important;
      filter: drop-shadow(0 0 5px rgba(0, 220, 255, .8))
    }

    .mapbox g[data-name]:hover circle {
      fill: #fff !important
    }

    table th {
      color: #8ddbf0 !important;
      border-bottom-color: rgba(65, 208, 241, .25) !important
    }

    table td {
      color: #c1dce7 !important;
      border-bottom-color: rgba(65, 208, 241, .12) !important
    }

    .footnote {
      color: #6f9bad !important;
      border-top-color: var(--tech-line) !important;
      background: rgba(5, 20, 31, .68) !important
    }

    .legend,
    .heat-legend,
    .view-notice,
    .tag {
      color: #8ec4d7 !important
    }

    .terrain-badge {
      color: #63e2ff !important;
      border-color: rgba(56, 222, 255, .45) !important;
      background: rgba(0, 160, 210, .14) !important
    }

    .donut {
      filter: drop-shadow(0 0 10px rgba(0, 203, 255, .32))
    }

    dialog {
      color: var(--tech-text) !important;
      background: #0a2537 !important;
      border: 1px solid var(--tech-cyan) !important;
      box-shadow: 0 0 40px rgba(0, 206, 255, .22) !important
    }

    dialog::backdrop {
      background: rgba(1, 10, 17, .72) !important;
      backdrop-filter: blur(5px)
    }

    @media(max-width:900px) {
      header {
        height: auto !important;
        min-height: 96px;
        padding: 18px !important;
        gap: 12px;
        flex-wrap: wrap
      }

      .top-nav {
        padding: 8px 14px !important
      }

      .layout {
        padding: 14px !important
      }
    }

    /* 2026-10-07 官网首页增强版：沉浸式 HUD / 霓虹科技视觉，仅调整视觉表现 */
    body {
      overflow-x: hidden !important
    }

    body:after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 20;
      opacity: .08;
      background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, .22) 1px, transparent 1px, transparent 4px);
      mix-blend-mode: screen
    }

    body:before {
      opacity: .55 !important;
      background-size: 36px 36px !important;
      animation: gridDrift 28s linear infinite
    }

    @keyframes gridDrift {
      from {
        background-position: 0 0, 0 0
      }

      to {
        background-position: 36px 36px, -36px -36px
      }
    }

    header {
      min-height: 112px !important;
      overflow: hidden !important
    }

    header:before {
      content: "";
      position: absolute;
      inset: -70px -10%;
      background: radial-gradient(ellipse at 50% 35%, rgba(0, 218, 255, .2), transparent 40%), radial-gradient(circle at 12% 45%, rgba(68, 110, 255, .14), transparent 24%), radial-gradient(circle at 88% 45%, rgba(0, 246, 198, .12), transparent 22%);
      filter: blur(12px);
      animation: headerPulse 7s ease-in-out infinite alternate;
      pointer-events: none
    }

    @keyframes headerPulse {
      from {
        opacity: .65;
        transform: scale(1)
      }

      to {
        opacity: 1;
        transform: scale(1.08)
      }
    }

    header>* {
      position: relative;
      z-index: 1
    }

    .brand {
      font-size: 13px !important;
      text-shadow: 0 0 12px rgba(52, 217, 255, .45)
    }

    h1 {
      font-size: clamp(24px, 2.3vw, 38px) !important;
      letter-spacing: clamp(3px, .65vw, 10px) !important;
      background: linear-gradient(90deg, #b9f5ff, #fff, #66dfff, #b9f5ff);
      background-size: 240% auto;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent !important;
      animation: titleShine 6s linear infinite
    }

    @keyframes titleShine {
      to {
        background-position: 240% center
      }
    }

    header small {
      opacity: .86 !important;
      text-shadow: 0 0 10px rgba(38, 212, 255, .7)
    }

    .top-nav {
      position: relative !important;
      overflow: hidden
    }

    .top-nav:before {
      content: "SYSTEM ONLINE  //  DATA STREAM ACTIVE  //  XIANGYANG AGRICULTURE DIGITAL TWIN";
      position: absolute;
      left: 34px;
      bottom: -1px;
      font-size: 8px;
      letter-spacing: 3px;
      color: rgba(78, 209, 241, .28);
      white-space: nowrap;
      pointer-events: none
    }

    .top-nav a,
    .top-nav span,
    .top-nav button {
      position: relative;
      overflow: hidden
    }

    .top-nav a:after,
    .top-nav button:after {
      content: "";
      position: absolute;
      top: 0;
      left: -120%;
      width: 70%;
      height: 100%;
      background: linear-gradient(100deg, transparent, rgba(151, 246, 255, .28), transparent);
      transform: skewX(-22deg);
      transition: .55s
    }

    .top-nav a:hover:after,
    .top-nav button:hover:after {
      left: 140%
    }

    .scope-bar {
      box-shadow: inset 0 1px rgba(108, 232, 255, .08), 0 0 28px rgba(0, 188, 255, .05) !important;
      min-height: 42px !important
    }

    .scope-bar:before {
      content: "◈";
      color: var(--tech-cyan);
      margin-right: 9px;
      text-shadow: 0 0 10px var(--tech-cyan)
    }

    .panel,
    .mapinfo,
    .year-panel,
    .map-actions,
    .heat-legend {
      overflow: hidden !important;
      transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease !important
    }

    .panel:after {
      width: 34px !important;
      height: 34px !important
    }

    .panel:hover {
      transform: translateY(-3px);
      border-color: rgba(76, 225, 255, .5) !important;
      box-shadow: 0 17px 40px rgba(0, 0, 0, .3), 0 0 22px rgba(0, 189, 255, .11), inset 0 1px rgba(144, 240, 255, .12) !important
    }

    .panel:before,
    .panel:after {
      transition: all .3s ease
    }

    .panel:hover:before,
    .panel:hover:after {
      width: 48px;
      height: 48px;
      filter: drop-shadow(0 0 5px var(--tech-cyan))
    }

    .panel h2 {
      letter-spacing: 1.5px !important;
      text-shadow: 0 0 12px rgba(92, 224, 255, .24)
    }

    .panel h2:after {
      content: "";
      display: block;
      width: 64px;
      height: 1px;
      margin-top: 8px;
      background: linear-gradient(90deg, var(--tech-cyan), transparent);
      box-shadow: 0 0 8px var(--tech-cyan)
    }

    .kpi {
      position: relative
    }

    .kpi:after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -5px;
      width: 46px;
      height: 1px;
      background: var(--tech-cyan);
      box-shadow: 0 0 8px var(--tech-cyan);
      opacity: .55
    }

    .kpi b {
      font-size: clamp(26px, 2.2vw, 42px) !important;
      letter-spacing: 1px !important
    }

    .mapbox {
      border: 1px solid rgba(55, 211, 255, .26) !important;
      box-shadow: inset 0 0 40px rgba(0, 170, 230, .09), 0 0 35px rgba(0, 180, 255, .08) !important
    }

    .mapbox:after {
      content: "LIVE TERRAIN / ASTER DEM";
      position: absolute;
      top: 12px;
      left: 15px;
      color: rgba(114, 225, 247, .65);
      font: 10px Inter, Arial, sans-serif;
      letter-spacing: 2px;
      pointer-events: none
    }

    .mapbox:before {
      animation: radarSpin 18s linear infinite;
      border-color: rgba(65, 224, 255, .36) !important
    }

    @keyframes radarSpin {
      from {
        transform: rotate(-18deg)
      }

      to {
        transform: rotate(342deg)
      }
    }

    .map-actions,
    .heat-legend {
      box-shadow: 0 0 18px rgba(0, 172, 255, .07), inset 0 1px rgba(141, 238, 255, .08) !important
    }

    .terrain-badge {
      box-shadow: 0 0 10px rgba(0, 222, 255, .16) !important
    }

    .map-actions button {
      font-weight: 600 !important
    }

    #refresh {
      position: relative
    }

    .state:before {
      content: "●";
      color: #27e69b;
      margin-right: 7px;
      text-shadow: 0 0 8px #27e69b
    }

    .footnote {
      letter-spacing: 1px !important
    }

    @media(max-width:900px) {
      .top-nav:before {
        display: none
      }

      header:before {
        opacity: .45
      }

      .panel:hover {
        transform: none
      }
    }

    /* 2026-10-07 官网首页终极视觉层：数字孪生指挥中心风格；不改动业务内容 */
    :root {
      --neon: #19d8ff;
      --violet: #6574ff;
      --mint: #37f5c2;
      --ink: #061521;
      --glass: rgba(7, 28, 45, .74)
    }

    body {
      background-color: #040d16 !important;
      background-image: radial-gradient(ellipse at 50% -20%, rgba(29, 195, 255, .23), transparent 42%), radial-gradient(ellipse at 10% 100%, rgba(93, 58, 255, .15), transparent 36%), linear-gradient(135deg, #040d16 0%, #071d2c 48%, #030a12 100%) !important
    }

    body:before {
      opacity: .32 !important;
      background-image: linear-gradient(rgba(25, 216, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 216, 255, .09) 1px, transparent 1px) !important;
      background-size: 54px 54px !important;
      mask-image: linear-gradient(to bottom, black 0%, transparent 100%) !important
    }

    body:after {
      opacity: .045 !important;
      background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, .5) 1px, transparent 1px, transparent 5px) !important
    }

    header {
      height: 128px !important;
      padding: 0 clamp(24px, 4vw, 72px) !important;
      background: linear-gradient(180deg, rgba(6, 25, 40, .95), rgba(4, 17, 29, .68)) !important;
      border-bottom: 1px solid rgba(25, 216, 255, .28) !important;
      box-shadow: 0 12px 50px rgba(0, 0, 0, .34), inset 0 -24px 45px rgba(0, 197, 255, .04) !important
    }

    header:before {
      inset: 0 !important;
      background: linear-gradient(90deg, transparent 0%, rgba(25, 216, 255, .09) 35%, rgba(101, 116, 255, .1) 65%, transparent 100%), radial-gradient(ellipse at 50% 100%, rgba(25, 216, 255, .19), transparent 54%) !important;
      filter: none !important
    }

    header:after {
      width: 70% !important;
      left: 15% !important;
      height: 3px !important;
      bottom: -2px !important;
      background: linear-gradient(90deg, transparent, var(--violet), var(--neon), var(--mint), transparent) !important;
      box-shadow: 0 0 22px var(--neon), 0 0 42px rgba(101, 116, 255, .7) !important
    }

    header .brand {
      font-size: 14px !important;
      color: #b9e9f8 !important;
      line-height: 1.7 !important;
      letter-spacing: 4px !important
    }

    header .brand:before {
      content: "◈  DIGITAL AGRICULTURE";
      display: block;
      font-size: 9px;
      color: var(--mint);
      letter-spacing: 2px;
      margin-bottom: 4px;
      text-shadow: 0 0 12px rgba(55, 245, 194, .8)
    }

    header h1 {
      font-size: clamp(25px, 3vw, 45px) !important;
      letter-spacing: clamp(4px, 1vw, 14px) !important;
      line-height: 1.2 !important
    }

    header small {
      font-size: 10px !important;
      color: #72d9f3 !important;
      letter-spacing: 6px !important
    }

    #clock {
      padding: 10px 14px;
      border: 1px solid rgba(25, 216, 255, .25);
      background: rgba(3, 21, 34, .58);
      color: #91cfe0 !important;
      box-shadow: inset 0 0 15px rgba(0, 195, 255, .06), 0 0 16px rgba(0, 194, 255, .06);
      font-variant-numeric: tabular-nums
    }

    .top-nav {
      min-height: 64px !important;
      padding: 11px clamp(18px, 4vw, 72px) !important;
      justify-content: flex-start !important;
      gap: 9px !important;
      background: rgba(3, 16, 27, .86) !important;
      border-bottom: 1px solid rgba(25, 216, 255, .14) !important
    }

    .top-nav:before {
      left: auto !important;
      right: clamp(18px, 4vw, 72px) !important;
      bottom: 50% !important;
      transform: translateY(50%);
      font-size: 8px !important;
      letter-spacing: 2px !important;
      color: rgba(119, 222, 243, .44) !important
    }

    .top-nav>a,
    .top-nav>.nav-current,
    .top-nav>button {
      min-height: 42px !important;
      padding: 10px 18px !important;
      border: 1px solid rgba(45, 185, 224, .24) !important;
      background: linear-gradient(180deg, rgba(18, 61, 83, .7), rgba(7, 30, 47, .7)) !important;
      clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)) !important;
      box-shadow: inset 0 1px rgba(184, 246, 255, .08) !important
    }

    .top-nav>.nav-current {
      color: #fff !important;
      border-color: var(--neon) !important;
      background: linear-gradient(135deg, rgba(0, 185, 232, .35), rgba(89, 87, 255, .35)) !important;
      box-shadow: 0 0 18px rgba(25, 216, 255, .22), inset 0 0 16px rgba(25, 216, 255, .1) !important
    }

    .scope-bar {
      max-width: 1920px !important;
      margin: auto !important;
      padding: 12px clamp(18px, 2vw, 30px) !important;
      background: linear-gradient(90deg, rgba(11, 48, 66, .72), rgba(7, 24, 39, .56), rgba(11, 48, 66, .72)) !important;
      border: 0 !important;
      border-bottom: 1px solid rgba(25, 216, 255, .14) !important;
      border-top: 1px solid rgba(25, 216, 255, .08) !important;
      letter-spacing: .6px
    }

    .layout {
      max-width: 1920px !important;
      padding: 22px clamp(18px, 2vw, 34px) 16px !important;
      gap: 20px !important
    }

    .side {
      gap: 20px !important
    }

    .panel,
    .mapinfo,
    .year-panel,
    .map-actions,
    .heat-legend {
      background: linear-gradient(145deg, rgba(11, 43, 62, .88), rgba(4, 19, 32, .86)) !important;
      border: 1px solid rgba(55, 211, 255, .24) !important;
      border-radius: 5px !important;
      box-shadow: 0 18px 40px rgba(0, 0, 0, .24), inset 0 1px rgba(162, 239, 255, .08), inset 0 0 30px rgba(10, 175, 230, .035) !important
    }

    .panel {
      padding: 20px !important
    }

    .panel:before,
    .panel:after {
      border-color: var(--neon) !important;
      opacity: .75 !important
    }

    .panel h2 {
      font-size: 15px !important;
      letter-spacing: 2px !important;
      margin-bottom: 20px !important
    }

    .panel h2 small {
      font-size: 9px !important;
      letter-spacing: 1px !important;
      color: #5eb5cb !important
    }

    .panel h2:after {
      width: 90px !important;
      height: 2px !important;
      background: linear-gradient(90deg, var(--neon), var(--violet), transparent) !important;
      box-shadow: 0 0 10px var(--neon) !important
    }

    .kpis {
      gap: 8px !important
    }

    .kpi {
      padding: 17px 5px !important;
      border: 1px solid rgba(25, 216, 255, .13) !important;
      border-top: 2px solid var(--neon) !important;
      background: linear-gradient(150deg, rgba(22, 82, 106, .3), rgba(2, 19, 31, .2)) !important;
      box-shadow: inset 0 0 18px rgba(0, 198, 255, .05) !important
    }

    .kpi b {
      font-size: clamp(28px, 2.5vw, 48px) !important;
      color: #c9fbff !important;
      text-shadow: 0 0 8px rgba(25, 216, 255, .9), 0 0 24px rgba(25, 216, 255, .36) !important
    }

    .kpi span,
    .kpi {
      color: #8fbdcd !important
    }

    .reference {
      border-color: rgba(55, 245, 194, .26) !important;
      background: rgba(22, 100, 89, .12) !important
    }

    .reference b {
      color: var(--mint) !important;
      text-shadow: 0 0 12px rgba(55, 245, 194, .6) !important
    }

    .center {
      min-height: 720px !important
    }

    .tools {
      align-items: center !important
    }

    .tag {
      font-size: 14px !important;
      font-weight: 600 !important;
      color: #c9f8ff !important;
      letter-spacing: 3px !important;
      text-shadow: 0 0 12px rgba(25, 216, 255, .5)
    }

    .tag:before {
      content: "◉  ";
      color: var(--mint);
      font-size: 10px;
      text-shadow: 0 0 8px var(--mint)
    }

    .map-actions {
      padding: 10px 13px !important;
      gap: 10px !important
    }

    .mapbox {
      min-height: 500px !important;
      border: 1px solid rgba(25, 216, 255, .4) !important;
      background: radial-gradient(ellipse at 50% 46%, rgba(0, 198, 255, .15), transparent 48%), linear-gradient(145deg, rgba(6, 39, 57, .7), rgba(3, 17, 28, .86)) !important;
      box-shadow: inset 0 0 70px rgba(0, 194, 255, .1), 0 0 30px rgba(0, 174, 255, .1) !important
    }

    .mapbox:after {
      top: 16px !important;
      left: 18px !important;
      color: var(--mint) !important;
      font-size: 9px !important;
      letter-spacing: 3px !important
    }

    .mapbox:before {
      width: 72% !important;
      height: 62% !important;
      border: 1px solid rgba(25, 216, 255, .42) !important;
      box-shadow: 0 0 0 20px rgba(25, 216, 255, .04), 0 0 0 44px rgba(25, 216, 255, .025), inset 0 0 25px rgba(25, 216, 255, .08) !important
    }

    .mapbox circle {
      fill: #28e2ff !important;
      filter: drop-shadow(0 0 7px #19d8ff) !important
    }

    .mapbox g[data-name]:hover circle {
      fill: #fff !important;
      filter: drop-shadow(0 0 12px #fff) !important
    }

    .year-panel {
      margin-top: 15px !important;
      border-left: 3px solid var(--violet) !important
    }

    .year-heading {
      color: #c6f5ff !important
    }

    .year-heading label {
      letter-spacing: 2px !important
    }

    .year-panel button {
      min-width: 44px !important
    }

    .heat-legend {
      padding: 12px 15px !important
    }

    .heat-legend i {
      box-shadow: 0 0 14px var(--neon) !important
    }

    button,
    select {
      min-height: 34px !important;
      box-shadow: inset 0 0 10px rgba(25, 216, 255, .04) !important
    }

    button:hover,
    select:hover {
      transform: translateY(-1px) !important
    }

    .footnote {
      padding: 14px 15px 22px !important;
      color: #6faabd !important;
      border-top: 1px solid rgba(25, 216, 255, .18) !important;
      letter-spacing: 2px !important
    }

    @media(max-width:1050px) {
      header {
        height: auto !important;
        min-height: 128px;
        padding: 22px !important;
        gap: 14px !important
      }

      .top-nav:before {
        display: none
      }

      .top-nav {
        justify-content: center !important;
        flex-wrap: wrap
      }

      .center {
        min-height: 600px !important
      }

      .mapbox {
        min-height: 420px !important
      }
    }

    @media(max-width:600px) {
      header {
        display: block;
        text-align: center
      }

      header .brand {
        margin-bottom: 15px
      }

      #clock {
        display: inline-block;
        margin-top: 14px
      }

      .layout {
        padding: 12px !important
      }

      .panel {
        padding: 15px !important
      }

      .mapbox {
        min-height: 330px !important
      }
    }

    /* 地图科技风增强：地图成为视觉主角，HUD 只做叠加不遮挡地形交互 */
    .mapbox {
      isolation: isolate !important;
      border-radius: 8px !important;
      clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px)) !important
    }

    .mapbox:after {
      display: none !important
    }

    .mapbox:before {
      z-index: 2 !important;
      pointer-events: none !important;
      opacity: .75 !important
    }

    .mapbox:has(#demHost canvas) {
      box-shadow: inset 0 0 70px rgba(0, 0, 0, .34), inset 0 0 120px rgba(0, 190, 255, .12), 0 0 0 1px rgba(45, 231, 255, .36), 0 0 40px rgba(0, 175, 255, .16) !important
    }

    #demHost {
      position: absolute !important;
      inset: 0 !important;
      z-index: 1 !important
    }

    #demHost canvas {
      display: block !important;
      filter: saturate(1.2) contrast(1.08) !important
    }

    .map-hud {
      position: absolute;
      inset: 0;
      z-index: 5;
      pointer-events: none;
      color: #8ceeff;
      font-family: Inter, "Microsoft YaHei", Arial, sans-serif;
      font-size: 9px;
      letter-spacing: 2px;
      text-shadow: 0 0 8px rgba(29, 220, 255, .8)
    }

    .hud-corner {
      position: absolute;
      width: 42px;
      height: 42px;
      border-color: #31ddff;
      border-style: solid;
      opacity: .9;
      filter: drop-shadow(0 0 5px rgba(25, 216, 255, .8))
    }

    .hud-tl {
      left: 16px;
      top: 16px;
      border-width: 2px 0 0 2px
    }

    .hud-tr {
      right: 16px;
      top: 16px;
      border-width: 2px 2px 0 0
    }

    .hud-bl {
      left: 16px;
      bottom: 16px;
      border-width: 0 0 2px 2px
    }

    .hud-br {
      right: 16px;
      bottom: 16px;
      border-width: 0 2px 2px 0
    }

    .hud-topline,
    .hud-bottomline {
      position: absolute;
      left: 30px;
      right: 30px;
      display: flex;
      justify-content: space-between;
      align-items: center
    }

    .hud-topline {
      top: 18px
    }

    .hud-bottomline {
      bottom: 18px;
      color: rgba(152, 225, 239, .67);
      font-size: 8px;
      letter-spacing: 1.4px
    }

    .live-dot {
      display: inline-block;
      width: 7px;
      height: 7px;
      margin-right: 7px;
      background: #40ffc7;
      border-radius: 50%;
      box-shadow: 0 0 7px #40ffc7;
      animation: liveBlink 1.25s ease-in-out infinite
    }

    @keyframes liveBlink {
      50% {
        opacity: .25;
        box-shadow: 0 0 2px #40ffc7
      }
    }

    .hud-reticle {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 70px;
      height: 70px;
      transform: translate(-50%, -50%);
      border: 1px solid rgba(83, 227, 255, .32);
      border-radius: 50%;
      box-shadow: 0 0 0 12px rgba(39, 201, 255, .035), 0 0 0 26px rgba(39, 201, 255, .025)
    }

    .hud-reticle:before,
    .hud-reticle:after {
      content: "";
      position: absolute;
      background: rgba(111, 235, 255, .65)
    }

    .hud-reticle:before {
      left: 50%;
      top: -18px;
      width: 1px;
      height: 106px
    }

    .hud-reticle:after {
      top: 50%;
      left: -18px;
      width: 106px;
      height: 1px
    }

    .hud-reticle b,
    .hud-reticle i {
      position: absolute;
      display: block;
      width: 5px;
      height: 5px;
      border: 1px solid #5eeaff;
      border-radius: 50%
    }

    .hud-reticle b {
      left: 50%;
      top: -3px;
      transform: translateX(-50%)
    }

    .hud-reticle i {
      left: 50%;
      bottom: -3px;
      transform: translateX(-50%)
    }

    .hud-scan {
      position: absolute;
      left: 8%;
      right: 8%;
      height: 1px;
      top: 20%;
      background: linear-gradient(90deg, transparent, #48edff, transparent);
      box-shadow: 0 0 9px #25dfff;
      opacity: .45;
      animation: scanMove 5s ease-in-out infinite
    }

    @keyframes scanMove {

      0%,
      100% {
        top: 20%;
        opacity: .08
      }

      45% {
        opacity: .7
      }

      50% {
        top: 78%;
        opacity: .7
      }

      55% {
        opacity: .08
      }
    }

    .hud-compass {
      position: absolute;
      right: 28px;
      top: 58px;
      width: 48px;
      height: 48px;
      border: 1px solid rgba(69, 220, 255, .5);
      border-radius: 50%;
      font-size: 8px;
      text-align: center;
      color: #a5f4ff
    }

    .hud-compass b {
      position: absolute;
      left: 23px;
      top: 8px;
      height: 16px;
      border-left: 1px solid #35e5ff
    }

    .hud-compass b:after {
      content: "";
      position: absolute;
      left: -4px;
      top: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-bottom: 7px solid #35e5ff
    }

    .hud-compass span {
      position: absolute;
      left: 20px;
      top: -13px
    }

    .hud-compass em {
      position: absolute;
      right: -12px;
      top: 18px;
      font-style: normal
    }

    .hud-compass small {
      position: absolute;
      left: 20px;
      bottom: -14px
    }

    .hud-compass strong {
      position: absolute;
      left: -13px;
      top: 18px;
      font-weight: 400
    }

    .hud-scale {
      position: absolute;
      left: 30px;
      bottom: 47px;
      color: #83d6e8;
      letter-spacing: 1px
    }

    .hud-scale span {
      display: block;
      width: 66px;
      height: 6px;
      border: 1px solid #72e9ff;
      border-top: 0;
      background: linear-gradient(90deg, #72e9ff 0 2px, transparent 2px 31px, #72e9ff 31px 33px, transparent 33px 64px, #72e9ff 64px 66px);
      margin-bottom: 5px
    }

    .hud-scale label {
      font-size: 8px
    }

    .hud-status {
      position: absolute;
      right: 30px;
      bottom: 47px;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 5px;
      color: rgba(136, 229, 242, .72);
      font-size: 8px;
      letter-spacing: 1px
    }

    .hud-status span:first-child {
      color: #54f2c2
    }

    @media(max-width:600px) {

      .hud-compass,
      .hud-bottomline,
      .hud-status {
        display: none
      }

      .hud-topline {
        left: 22px;
        right: 22px
      }

      .hud-corner {
        width: 28px;
        height: 28px
      }

      .hud-reticle {
        transform: translate(-50%, -50%) scale(.72)
      }
    }

    /* 地图颜色方案：冷色数字孪生地形，不改变地图数据和交互 */
    .mapbox {
      background: radial-gradient(ellipse at 50% 45%, rgba(0, 221, 205, .17), transparent 46%), linear-gradient(145deg, #082c3a, #04131f 78%) !important
    }

    #demHost canvas {
      filter: saturate(1.28) hue-rotate(8deg) contrast(1.12) brightness(.92) !important
    }

    .mapbox:after {
      content: "CYAN RELIEF / HEAT FIELD" !important;
      display: block !important;
      color: #54f2d0 !important;
      text-shadow: 0 0 10px rgba(55, 245, 194, .8) !important
    }

    .heat-legend i {
      background: linear-gradient(90deg, #19e9c0, #24cfff, #826dff, #ff3c72) !important
    }

    .selection-key b {
      background: #38dbff !important;
      box-shadow: 0 0 10px #38dbff !important
    }

    /* 地图色彩精修：深海蓝 / 青玉 / 暖金热度，降低荧光和杂色 */
    .mapbox {
      background: radial-gradient(ellipse at 50% 45%, rgba(28, 142, 143, .13), transparent 48%), linear-gradient(145deg, #071f2e, #03111d 78%) !important
    }

    #demHost canvas {
      filter: saturate(1.02) contrast(1.08) brightness(.94) !important
    }

    .mapbox:after {
      content: "DIGITAL TERRAIN / ELEVATION FIELD" !important;
      color: #87d8c2 !important;
      text-shadow: 0 0 8px rgba(95, 220, 190, .42) !important
    }

    .heat-legend i {
      background: linear-gradient(90deg, #1dbda9, #49d6c0, #f0b55b, #ef754c) !important;
      box-shadow: 0 0 8px rgba(50, 210, 185, .35) !important
    }

/* Keep every dashboard number upright, same-height and aligned. */
    :root {
      --number-font: Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif
    }

    body {
      font-variant-numeric: lining-nums tabular-nums
    }

    .big,
    .kpi b,
    .reference b,
    #districtDetail strong,
    .donut,
    .row strong,
    td,
    th,
    #clock,
    #updated,
    #sum,
    #demReadout,
    .map-hud,
    .heat-legend,
    .year-panel,
    button,
    select,
    input,
    output {
      font-family: var(--number-font) !important;
      font-style: normal !important;
      font-variant-numeric: lining-nums tabular-nums !important;
      font-feature-settings: "lnum" 1, "tnum" 1 !important;
      font-synthesis: none;
    }

    .big,
    .kpi b,
    .reference b,
    #districtDetail strong,
    .donut {
      font-weight: 600;
      letter-spacing: normal !important;
      text-shadow: none !important;
    }

    #districtDetail strong {
      color: var(--tech-text, var(--forest, #285943)) !important
    }

/* 标题居中修正：以页面中心为基准，不受左右品牌与时钟宽度影响。 */
    header {
      position: relative;
    }

    header .site-title {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: min(72vw, 1100px);
      text-align: center;
      z-index: 2;
    }

    header .site-title h1 {
      white-space: nowrap;
      overflow: visible;
      text-align: center;
    }

    header .site-title small {
      text-align: center;
    }

    @media (max-width: 1050px) {
      header .site-title {
        width: 68vw;
      }

      header .site-title h1 {
        font-size: 22px;
        letter-spacing: 3px;
      }
    }

    @media (max-width: 600px) {
      header .site-title {
        width: 92vw;
      }

      header .site-title h1 {
        font-size: 18px;
        letter-spacing: 2px;
      }

      header .site-title small {
        display: none;
      }
    }

.site-filing {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-top: 12px;
      letter-spacing: normal;
      line-height: 20px
    }

    .site-filing a {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #8fa3b8;
      font-size: 13px;
      text-decoration: none
    }

    .site-filing img {
      display: block;
      object-fit: contain;
      flex-shrink: 0
    }

    .site-filing a:hover {
      color: #8ddbf0;
      background: transparent;
      text-decoration: underline
    }

    .site-filing a:focus-visible {
      outline: 2px solid #53e6e5;
      outline-offset: 4px
    }
