﻿:root {
      --page: #f4f6f9;
      --surface: #ffffff;
      --ink: #172033;
      --muted: #657186;
      --faint: #8a95a8;
      --line: #d9e1ea;
      --line-2: #c6d0dc;
      --navy: #1f3a5f;
      --blue: #2563eb;
      --green: #0f766e;
      --amber: #b45309;
      --red: #b42318;
      --blue-soft: #edf4ff;
      --green-soft: #eaf7f4;
      --amber-soft: #fff7e6;
      --shadow: 0 14px 36px rgba(31, 58, 95, .08);
      --radius: 6px;
      --wrap: 1280px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      background: var(--page);
      color: var(--ink);
      font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
      font-size: 14px;
      line-height: 1.55;
      letter-spacing: 0;
    }

    a { color: inherit; text-decoration: none; }
    button, input, select { font: inherit; letter-spacing: 0; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 10;
      background: #fff;
      border-bottom: 1px solid var(--line);
      box-shadow: 0 8px 22px rgba(31, 58, 95, .04);
    }

    .header-inner {
      width: min(var(--wrap), calc(100vw - 32px));
      min-height: 66px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 230px minmax(300px, 1fr) auto;
      gap: 18px;
      align-items: center;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 18px;
      font-weight: 900;
      color: var(--navy);
      white-space: nowrap;
    }

    .brand-mark {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 7px;
      background: var(--navy);
      color: #fff;
      font-size: 15px;
      font-weight: 900;
    }

    .global-search {
      display: grid;
      grid-template-columns: 1fr 112px 82px;
      gap: 8px;
      max-width: 680px;
    }

    .global-search input,
    .global-search select,
    .filters input,
    .filters select {
      height: 38px;
      width: 100%;
      border: 1px solid var(--line-2);
      border-radius: var(--radius);
      background: #fff;
      color: var(--ink);
      padding: 0 11px;
      outline: none;
    }

    .global-search input:focus,
    .global-search select:focus,
    .filters input:focus,
    .filters select:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    }

    .btn {
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      border: 1px solid var(--line-2);
      border-radius: var(--radius);
      background: #fff;
      color: var(--ink);
      padding: 0 12px;
      font-weight: 800;
      cursor: pointer;
      white-space: nowrap;
    }

    .btn.primary {
      border-color: var(--blue);
      background: var(--blue);
      color: #fff;
    }

    .btn.green {
      border-color: var(--green);
      background: var(--green);
      color: #fff;
    }

    .btn.disabled {
      background: #eef2f6;
      color: var(--faint);
      cursor: default;
    }

    .header-links {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      align-items: center;
      color: var(--muted);
      white-space: nowrap;
    }

    .header-links a,
    .pill,
    .crumb,
    .tag,
    .status {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #fff;
      white-space: nowrap;
    }

    .header-links a { padding: 5px 9px; }
    .pill { padding: 5px 9px; color: var(--muted); font-size: 12px; }
    .crumb { padding: 4px 9px; color: var(--muted); font-size: 13px; }
    .tag { padding: 6px 10px; color: var(--navy); font-weight: 700; font-size: 13px; }

    .status {
      padding: 4px 8px;
      color: var(--green);
      background: var(--green-soft);
      border-color: #b9e3dc;
      font-size: 12px;
      font-weight: 900;
    }

    .status.warn {
      color: var(--amber);
      background: var(--amber-soft);
      border-color: #efd8a5;
    }

    .prototype-tabs {
      background: #fff;
      border-bottom: 1px solid var(--line);
    }

    .tabs-inner {
      width: min(var(--wrap), calc(100vw - 32px));
      margin: 0 auto;
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding: 9px 0;
    }

    .tab {
      height: 34px;
      min-width: max-content;
      border: 1px solid transparent;
      border-radius: var(--radius);
      background: transparent;
      color: var(--muted);
      padding: 0 12px;
      cursor: pointer;
      font-weight: 700;
    }

    .tab[aria-selected="true"] {
      border-color: #b9c9ff;
      background: var(--blue-soft);
      color: #1d4ed8;
      font-weight: 900;
    }

    .screen {
      display: none;
      width: min(var(--wrap), calc(100vw - 32px));
      margin: 0 auto;
      padding: 22px 0 34px;
    }

    .screen.active { display: block; }

    .crumbs {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-bottom: 14px;
    }

    .page-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: end;
      margin-bottom: 16px;
    }

    h1, h2, h3, p, dl { margin: 0; }

    h1 {
      font-size: 28px;
      line-height: 1.2;
      font-weight: 900;
      color: var(--ink);
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    h2 {
      font-size: 18px;
      line-height: 1.25;
      font-weight: 900;
      color: var(--ink);
    }

    h3 {
      font-size: 15px;
      line-height: 1.3;
      font-weight: 900;
      color: var(--ink);
    }

    .lead {
      margin-top: 8px;
      max-width: 760px;
      color: var(--muted);
      font-size: 15px;
    }

    .head-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
    }

    .metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 16px;
    }

    .metric {
      min-height: 86px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 14px;
    }

    .metric span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .metric strong {
      display: block;
      margin-top: 7px;
      color: var(--navy);
      font-size: 25px;
      line-height: 1.1;
      font-weight: 900;
    }

    .metric small {
      display: block;
      margin-top: 6px;
      color: var(--faint);
      font-size: 12px;
    }

    .layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 316px;
      gap: 16px;
      align-items: start;
    }

    .panel,
    .side-panel {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .panel { padding: 16px; }
    .side-panel { padding: 14px; }
    .side-panel + .side-panel { margin-top: 12px; }

    .section-title {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      margin-bottom: 13px;
    }

    .section-title p {
      margin-top: 3px;
      color: var(--muted);
      font-size: 13px;
    }

    .region-panel {
      padding: 16px;
    }

    .region-index {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .region-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 13px;
    }

    .region-card header {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: baseline;
      padding-bottom: 9px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 10px;
    }

    .region-card header span {
      color: var(--muted);
      font-size: 12px;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .city-list {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .city-list a {
      min-height: 30px;
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fbfcfe;
      padding: 4px 10px;
      color: var(--navy);
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .city-list a:hover {
      border-color: #9db7ff;
      background: var(--blue-soft);
      color: #1d4ed8;
    }

    .quick-city-strip,
    .tag-strip,
    .friend-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .province-table,
    .directory-table,
    .field-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      background: #fff;
    }

    .province-table th,
    .province-table td,
    .directory-table th,
    .directory-table td,
    .field-table th,
    .field-table td {
      border-bottom: 1px solid var(--line);
      padding: 11px 12px;
      text-align: left;
      vertical-align: top;
    }

    .province-table th,
    .directory-table th,
    .field-table th {
      color: #40506a;
      background: #f7f9fc;
      font-size: 13px;
      font-weight: 900;
    }

    .province-table tr:last-child td,
    .directory-table tr:last-child td,
    .field-table tr:last-child th,
    .field-table tr:last-child td {
      border-bottom: 0;
    }

    .province-name,
    .city-name,
    .company-name {
      color: var(--navy);
      font-weight: 900;
    }

    .count {
      color: var(--blue);
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }

    .muted { color: var(--muted); }

    .city-wall,
    .city-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .city-link,
    .industry-link {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      min-height: 50px;
      padding: 11px 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
    }

    .city-link:hover,
    .industry-link:hover,
    .company-row:hover {
      border-color: #9db7ff;
      background: #fbfdff;
    }

    .industry-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .industry-link strong,
    .city-link strong {
      color: var(--navy);
      font-weight: 900;
    }

    .industry-link span,
    .city-link span {
      color: var(--muted);
      font-size: 13px;
      font-variant-numeric: tabular-nums;
    }

    .filters {
      display: grid;
      grid-template-columns: 1.2fr repeat(4, minmax(116px, .55fr)) auto;
      gap: 8px;
      margin-bottom: 12px;
    }

    .company-list {
      display: grid;
      gap: 9px;
    }

    .company-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 150px;
      gap: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 13px;
    }

    .company-title {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }

    .company-meta {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 7px 12px;
      color: var(--muted);
      font-size: 13px;
    }

    .company-meta strong {
      color: var(--ink);
      font-weight: 800;
    }

    .company-desc {
      margin-top: 9px;
      color: var(--muted);
      font-size: 13px;
    }

    .company-actions {
      display: grid;
      gap: 8px;
      align-content: start;
    }

    .company-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .company-cloud a {
      min-height: 32px;
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fbfcfe;
      color: var(--navy);
      padding: 4px 10px;
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .company-cloud a:hover {
      border-color: #9db7ff;
      background: var(--blue-soft);
      color: #1d4ed8;
    }

    .friend-links a {
      min-height: 32px;
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fbfcfe;
      color: var(--navy);
      padding: 4px 10px;
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .pager {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-top: 13px;
      color: var(--muted);
    }

    .pager-buttons {
      display: flex;
      gap: 6px;
    }

    .field-table th {
      width: 150px;
      color: var(--muted);
    }

    .scope-text {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fbfcfe;
      padding: 14px;
      color: #46556c;
    }

    .side-panel dl {
      display: grid;
      gap: 9px;
    }

    .side-panel .row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 9px;
      border-bottom: 1px dashed var(--line);
    }

    .side-panel .row:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .side-panel dt { color: var(--muted); }
    .side-panel dd { margin: 0; text-align: right; font-weight: 900; }

    .notice {
      margin-bottom: 12px;
      border: 1px solid #c8d8ff;
      background: var(--blue-soft);
      color: #1e3a8a;
      border-radius: var(--radius);
      padding: 10px 12px;
      font-weight: 800;
    }

    .footer {
      width: min(var(--wrap), calc(100vw - 32px));
      margin: 0 auto 32px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 16px;
      color: var(--muted);
    }

    .footer strong {
      display: block;
      margin-bottom: 10px;
      color: var(--ink);
      font-size: 15px;
    }

    @media (max-width: 1100px) {
      .header-inner,
      .layout {
        grid-template-columns: 1fr;
      }

      .header-links,
      .head-actions {
        justify-content: flex-start;
      }

        .city-wall,
        .city-grid,
        .region-index,
        .industry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 760px) {
      html,
      body {
        overflow-x: hidden;
      }

      .header-inner,
      .tabs-inner,
      .screen,
      .footer {
        width: min(calc(100vw - 20px), var(--wrap));
      }

      .header-inner {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
        padding: 8px 0 10px;
      }

      .brand {
        white-space: normal;
      }

      .tabs-inner {
        overflow-x: auto;
      }

      .tab {
        flex: 0 0 auto;
      }

      .header-links,
      .section-title {
        align-items: flex-start;
        flex-wrap: wrap;
      }

      .section-title {
        flex-direction: column;
      }

      .section-title > div,
      .page-head > div,
      .lead {
        min-width: 0;
      }

      .lead {
        overflow-wrap: anywhere;
      }

      .global-search,
      .metrics,
        .city-wall,
        .city-grid,
        .region-index,
      .industry-grid,
      .filters,
      .company-row,
      .company-meta {
        grid-template-columns: 1fr;
      }

      .page-head {
        display: block;
        width: 100%;
        max-width: 100%;
      }

      .head-actions {
        justify-content: flex-start;
        margin-top: 14px;
      }

      h1 {
        display: block;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        font-size: 20px;
        line-height: 1.28;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-all !important;
      }

      .province-table,
      .directory-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
      }

      .field-table,
      .field-table tbody,
      .field-table tr,
      .field-table th,
      .field-table td {
        display: block;
        width: 100%;
      }

      .field-table tr {
        border-bottom: 1px solid var(--line);
      }

      .field-table th,
      .field-table td {
        border-bottom: 0;
        padding: 8px 10px;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .field-table th {
        width: auto;
        padding-bottom: 4px;
      }

      .field-table td {
        padding-top: 4px;
      }

      .field-table tr:last-child {
        border-bottom: 0;
      }

      .pager {
        align-items: flex-start;
        flex-direction: column;
      }
    }
