:root {
  --bg: #070b0a;
  --bg-panel: rgba(16, 23, 22, 0.9);
  --bg-panel-strong: rgba(20, 31, 29, 0.96);
  --line: rgba(183, 199, 188, 0.18);
  --line-strong: rgba(210, 184, 117, 0.34);
  --text: #edf3ed;
  --muted: #9fb1ab;
  --muted-strong: #c5d2ca;
  --jade: #45d08d;
  --cyan: #58c8df;
  --amber: #d7b56d;
  --coral: #df7560;
  --steel: #8fa8b2;
  --warm: #f0a06f;
  --cold: #6fc6e8;
  --neutral: #aeb8c9;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius: 10px;
  --radius-small: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(14, 24, 22, 0.96), rgba(5, 8, 8, 0.98) 56%, #030504),
    repeating-linear-gradient(90deg, rgba(215, 181, 109, 0.055) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(88, 200, 223, 0.045) 0 1px, transparent 1px 72px);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(69, 208, 141, 0.06) 18% 18.8%, transparent 18.8% 62%, rgba(215, 181, 109, 0.06) 62% 62.6%, transparent 62.6%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1680px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 12, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-badge {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: var(--radius-small);
  display: grid;
  place-items: center;
  color: #08100d;
  font-weight: 900;
  font-size: 16px;
  background: linear-gradient(135deg, var(--jade), var(--amber));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 16px 36px rgba(69, 208, 141, 0.18);
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1,
.brand-copy h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.brand-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.topbar nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(183, 199, 188, 0.14);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-pill:hover,
.nav-pill.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(215, 181, 109, 0.12);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 18px;
  margin-bottom: 18px;
}

.search-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.55fr);
}

.hero-panel,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(180deg, var(--bg-panel-strong), var(--bg-panel));
  box-shadow: var(--shadow);
}

.hero-panel::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(215, 181, 109, 0.08) 62% 63%, transparent 63%),
    linear-gradient(90deg, transparent, rgba(88, 200, 223, 0.04), transparent);
}

.hero-panel {
  min-height: 228px;
  padding: 26px;
}

.hero-primary {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 26px;
  min-height: 500px;
}

.hero-copy,
.hero-metrics,
.coverage-list,
.mini-stat-grid,
.search-shell > *,
.panel > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: var(--radius-small);
  background: rgba(69, 208, 141, 0.09);
  border: 1px solid rgba(69, 208, 141, 0.24);
  color: #bce8ca;
  font-size: 12px;
  font-weight: 700;
}

.hero-kicker {
  margin-top: 18px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
}

.hero h2 {
  margin: 16px 0 16px;
  display: grid;
  gap: 8px;
  font-size: 54px;
  line-height: 1.08;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-weight: 700;
  text-wrap: balance;
}

.hero h2 span:first-child {
  color: #ffffff;
}

.hero h2 span:last-child {
  color: #d7e9df;
}

.hero p {
  margin: 0;
  max-width: 880px;
  color: #cbd9d1;
  line-height: 1.85;
  font-size: 15px;
}

.hero-intro {
  max-width: 850px;
}

.hero-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(183, 199, 188, 0.16);
  background: rgba(3, 6, 6, 0.42);
  color: #e8f1eb;
  font-size: 13px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 126px;
  padding: 16px;
  border-radius: var(--radius-small);
  background: rgba(3, 6, 6, 0.44);
  border: 1px solid rgba(183, 199, 188, 0.14);
}

.metric .label,
.mini-stat .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric .value {
  margin-top: 10px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 900;
  color: #f4f8f4;
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.metric .date-value {
  font-size: 22px;
  line-height: 1.35;
}

.aside-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.aside-title {
  margin-top: 16px;
  max-width: 420px;
  color: #f4f7f4;
  font-size: 26px;
  line-height: 1.35;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-weight: 700;
}

.coverage-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.coverage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(183, 199, 188, 0.13);
  background: rgba(4, 8, 7, 0.5);
}

.coverage-row span {
  color: var(--muted);
  font-size: 13px;
}

.coverage-row strong {
  color: var(--amber);
  text-align: right;
  font-size: 14px;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.mini-stat {
  min-height: 106px;
  padding: 14px;
  border-radius: var(--radius-small);
  background: rgba(4, 8, 7, 0.52);
  border: 1px solid rgba(183, 199, 188, 0.13);
}

.mini-stat strong {
  display: block;
  margin-top: 10px;
  color: #f3f7f3;
  font-size: 24px;
  line-height: 1.2;
  word-break: break-word;
}

.action-stat {
  border-color: rgba(69, 208, 141, 0.28);
  background: rgba(69, 208, 141, 0.08);
}

.compact-panel {
  min-height: 0;
}

.board {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 18px;
}

.panel h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-weight: 700;
}

.panel-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.chart {
  width: 100%;
  height: 100%;
  min-height: 250px;
}

.map-chart {
  min-height: 590px;
}

.graph-stage {
  position: relative;
  margin-top: 18px;
  min-height: 370px;
  border-radius: var(--radius-small);
  overflow: hidden;
  border: 1px solid rgba(183, 199, 188, 0.16);
  background:
    repeating-linear-gradient(90deg, rgba(88, 200, 223, 0.055) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(215, 181, 109, 0.045) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, rgba(8, 16, 15, 0.98), rgba(4, 7, 7, 0.98));
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.42);
}

.graph-stage::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(215, 181, 109, 0.12);
  pointer-events: none;
}

.graph-chart {
  position: relative;
  z-index: 1;
  min-height: 370px;
}

.word-chart,
.radar-chart,
.bar-chart,
.indication-chart {
  min-height: 260px;
}

.list {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.compact-list {
  gap: 8px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 13px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(183, 199, 188, 0.12);
  background: rgba(4, 8, 7, 0.46);
}

.list-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.list-item strong {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--amber);
  font-size: 13px;
}

.legend-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.search-shell {
  display: grid;
  gap: 20px;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr) 100px;
  gap: 10px;
  margin-top: 2px;
}

.input,
.select,
.button {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(183, 199, 188, 0.16);
  border-radius: var(--radius-small);
  background: rgba(4, 8, 7, 0.72);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.input::placeholder {
  color: #7f918b;
}

.input:focus,
.select:focus {
  border-color: rgba(69, 208, 141, 0.46);
  box-shadow: 0 0 0 4px rgba(69, 208, 141, 0.08);
}

.button {
  cursor: pointer;
  border-color: rgba(215, 181, 109, 0.38);
  background: linear-gradient(135deg, rgba(215, 181, 109, 0.28), rgba(69, 208, 141, 0.18));
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 181, 109, 0.62);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.source-note {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(183, 199, 188, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.source-note strong {
  color: var(--amber);
  text-align: right;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.55fr);
  gap: 18px;
  align-items: start;
}

.western-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.western-search-bar {
  grid-template-columns: minmax(240px, 2fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) 100px;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.pager {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button {
  width: auto;
  min-width: 88px;
  min-height: 40px;
  padding: 9px 12px;
}

.button:disabled {
  cursor: not-allowed;
  color: #788782;
  border-color: rgba(183, 199, 188, 0.1);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
  transform: none;
}

.card-grid {
  column-count: 2;
  column-gap: 14px;
  margin-top: 18px;
}

.western-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.card {
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 16px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(183, 199, 188, 0.13);
  background:
    linear-gradient(135deg, rgba(69, 208, 141, 0.055), transparent 36%),
    rgba(7, 12, 11, 0.84);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.western-card {
  margin: 0;
}

.card h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-weight: 700;
}

.card h4 small {
  display: block;
  margin-top: 4px;
  color: var(--amber);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.card-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: var(--radius-small);
  font-size: 12px;
  border: 1px solid transparent;
}

.tag.cold {
  color: #b8e5f5;
  background: rgba(111, 198, 232, 0.13);
  border-color: rgba(111, 198, 232, 0.26);
}

.tag.warm {
  color: #ffd2b8;
  background: rgba(240, 160, 111, 0.13);
  border-color: rgba(240, 160, 111, 0.26);
}

.tag.neutral {
  color: #d9dfeb;
  background: rgba(174, 184, 201, 0.12);
  border-color: rgba(174, 184, 201, 0.22);
}

.kv {
  display: grid;
  gap: 9px;
}

.kv-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  color: #d7e2dc;
  font-size: 14px;
  line-height: 1.72;
}

.kv-row span {
  color: var(--muted);
}

.scroll-list {
  max-height: 640px;
  overflow: auto;
  padding-right: 5px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.pill-trigger {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: var(--radius-small);
  background: rgba(88, 200, 223, 0.08);
  border: 1px solid rgba(88, 200, 223, 0.16);
  color: #c6edf4;
  font-size: 12px;
}

.pill-trigger {
  cursor: pointer;
}

.empty {
  padding: 30px 18px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-small);
  border: 1px dashed rgba(183, 199, 188, 0.22);
}

.footer {
  margin-top: 24px;
  padding: 20px 18px 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  text-align: center;
}

.footer-line {
  display: block;
}

.footer-line + .footer-line {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (max-width: 1320px) {
  .board,
  .result-layout,
  .western-layout,
  .hero,
  .search-hero {
    grid-template-columns: 1fr;
  }

  .hero-primary {
    min-height: 0;
  }

  .map-chart {
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100vw - 18px, 100%);
    padding-top: 10px;
  }

  .topbar {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero h2 {
    font-size: 38px;
  }

  .hero-metrics,
  .mini-stat-grid,
  .search-bar,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .search-bar {
    gap: 9px;
  }

  .card-grid,
  .western-card-grid {
    column-count: 1;
    grid-template-columns: 1fr;
  }

  .result-toolbar {
    flex-direction: column;
  }

  .pager {
    width: 100%;
  }

  .pager .button {
    flex: 1;
  }

  .map-chart {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
  }

  .brand-badge {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 14px;
  }

  .brand-copy h1,
  .brand-copy h2 {
    font-size: 20px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero p {
    font-size: 14px;
  }

  .panel,
  .card {
    padding: 15px;
  }

  .list-item,
  .coverage-row,
  .source-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-item strong,
  .coverage-row strong,
  .source-note strong {
    white-space: normal;
    text-align: left;
  }

  .kv-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
