:root {
  --bg: #0f1117;
  --bg-card: #171a23;
  --border: #2a2d37;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #60a5fa;
  --warn: #fbbf24;
  --radius: 10px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
}

.hero {
  padding: 28px 0 12px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 640px;
}

.search-box {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
}

.search-box button,
.btn {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--accent);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.search-box button:hover,
.btn:hover {
  background: rgba(96, 165, 250, 0.25);
}

.search-results {
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.stock-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.stock-title {
  margin: 0;
  font-size: 24px;
}

.stock-meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.module-header h2 {
  margin: 0;
  font-size: 16px;
}

.module-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.module-body {
  padding: 16px;
}

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

.metric {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.list-plain {
  margin: 0;
  padding-left: 18px;
}

.list-plain li {
  margin-bottom: 6px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
}

.chip-link:hover {
  border-color: rgba(96, 165, 250, 0.5);
  text-decoration: none;
}

.review-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  color: #d1d5db;
  white-space: pre-wrap;
}

.muted {
  color: var(--text-muted);
}

.error-box,
.loading-box {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
}

.site-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

/* ---- 首页叙事流（review.js 渲染） ---- */

.hero-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-line h1 {
  margin: 0;
  font-size: 22px;
}

.hero-line p {
  margin: 0;
  font-size: 13px;
}

.up { color: #ef4444; }
.down { color: #22c55e; }

.flow { margin-top: 20px; }
.date-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.date-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  width: 140px;
}
.flow-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.flow-section h2 { margin: 0 0 12px; font-size: 16px; }
.flow-section .section-more { float: right; font-size: 12px; color: var(--accent); }
.flow-summary {
  font-size: 15px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.big-number-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.big-number { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 8px; padding: 12px; text-align: center; }
.big-number .label { font-size: 12px; color: var(--text-muted); }
.big-number .value { margin-top: 4px; font-size: 22px; font-weight: 700; }
.chart-box { height: 320px; }
.chart-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-grid-2 .chart-box { height: 260px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.data-table th { color: var(--text-muted); font-weight: 500; }
.data-table .btn { padding: 4px 10px; font-size: 12px; }
.ladder-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.ladder-tag { color: var(--warn); font-weight: 700; min-width: 56px; }
.updating-box { color: var(--text-muted); font-size: 13px; padding: 8px 0; }

@media (max-width: 720px) {
  .feature-grid,
  .metric-grid,
  .big-number-grid,
  .chart-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---- v0.3 市场全景：只作用于新首页与题材页 ---- */

.atlas-page {
  --atlas-bg: #080d14;
  --atlas-panel: #0e1621;
  --atlas-panel-2: #111c29;
  --atlas-line: #223044;
  --atlas-text: #edf2f7;
  --atlas-muted: #8290a3;
  --atlas-cyan: #55d6be;
  --atlas-blue: #7ea7ff;
  --atlas-amber: #f1c46b;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(85, 214, 190, 0.08), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(126, 167, 255, 0.08), transparent 26%),
    var(--atlas-bg);
  color: var(--atlas-text);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.atlas-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(126, 167, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 167, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
}

.page-shell {
  position: relative;
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: 240px 1fr 44px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(130, 144, 163, 0.18);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  min-height: 44px;
  color: var(--atlas-text);
}

.brand-lockup:hover { text-decoration: none; }
.brand-lockup > span:last-child { display: grid; line-height: 1.15; }
.brand-lockup strong { font-size: 16px; letter-spacing: 0.02em; }
.brand-lockup small { margin-top: 5px; color: var(--atlas-muted); font-size: 11px; letter-spacing: 0.08em; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(85, 214, 190, 0.48);
  border-radius: 9px;
  color: var(--atlas-cyan);
  background: linear-gradient(145deg, rgba(85, 214, 190, 0.12), rgba(126, 167, 255, 0.06));
  font: 800 16px/1 Georgia, serif;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  color: #9aa6b6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--atlas-text);
  text-decoration: none;
  background: rgba(126, 167, 255, 0.08);
}

.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--atlas-cyan);
  border-radius: 2px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--atlas-line);
  color: var(--atlas-text);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.global-search {
  position: absolute;
  z-index: 20;
  top: 68px;
  right: 0;
  width: min(440px, 100%);
  padding: 12px;
  border: 1px solid var(--atlas-line);
  border-radius: 12px;
  background: rgba(14, 22, 33, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.global-search > input {
  width: calc(100% - 78px);
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--atlas-line);
  border-radius: 8px 0 0 8px;
  color: var(--atlas-text);
  background: #0a111a;
  outline: none;
}

.global-search > button {
  width: 78px;
  min-height: 44px;
  padding: 11px 8px;
  border: 1px solid rgba(85, 214, 190, 0.35);
  border-radius: 0 8px 8px 0;
  color: var(--atlas-cyan);
  background: rgba(85, 214, 190, 0.08);
  cursor: pointer;
}

.global-search .search-item {
  color: var(--atlas-text);
  font-size: 13px;
}

.global-search .search-item small { color: var(--atlas-muted); }

.atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 44px;
  min-height: 0;
  padding: 44px 0 38px;
}

.eyebrow,
.section-kicker {
  color: var(--atlas-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--atlas-cyan);
  box-shadow: 0 0 0 5px rgba(85, 214, 190, 0.08);
}

.atlas-hero h1 {
  margin: 18px 0 12px;
  font: 600 clamp(40px, 4.2vw, 60px)/1.08 Georgia, "Noto Serif SC", serif;
  letter-spacing: -0.045em;
}

.atlas-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--atlas-cyan), var(--atlas-blue));
  background-clip: text;
  -webkit-background-clip: text;
}

.atlas-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--atlas-muted);
  font-size: 15px;
}

.asof-card {
  padding: 18px 20px;
  border: 1px solid var(--atlas-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(126, 167, 255, 0.07), rgba(85, 214, 190, 0.025));
}

.asof-card span,
.asof-card small { display: block; color: var(--atlas-muted); font-size: 11px; }
.asof-card strong { display: block; margin: 5px 0 0; font: 600 25px/1.1 Georgia, serif; }

.asof-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.asof-card-head small { max-width: 180px; text-align: right; line-height: 1.45; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(130, 144, 163, 0.16);
}

.hero-facts > div { min-width: 0; }
.hero-facts span { font-size: 11px; }
.hero-facts strong {
  overflow: hidden;
  margin-top: 6px;
  font: 700 17px/1.2 "Inter", "PingFang SC", sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section-block { margin-top: 56px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}
.section-heading.compact { margin-bottom: 13px; }
.section-heading h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -0.02em; }
.section-heading p { margin: 0 0 4px; color: var(--atlas-muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--atlas-blue); font-size: 12px; }

.index-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--atlas-line);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(14, 22, 33, 0.66);
}

.index-card {
  position: relative;
  min-width: 0;
  padding: 14px 15px 15px;
  border-right: 1px solid var(--atlas-line);
}
.index-card:last-child { border-right: 0; }
.index-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: #667084; }
.index-card.up::before { background: #df5b5f; }
.index-card.down::before { background: #27a36a; }
.index-card > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.index-card span { overflow: hidden; color: #aeb8c6; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.index-card small { color: #738095; font-size: 11px; }
.index-card strong { display: block; margin-top: 8px; font-size: 16px; }
.index-card em { display: block; margin-top: 1px; color: var(--atlas-muted); font-size: 11px; font-style: normal; }
.index-card.up em { color: #ee7478; }
.index-card.down em { color: #48bd83; }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--atlas-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(17, 28, 41, 0.92), rgba(10, 17, 26, 0.92));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.breadth-panel { padding: 22px; }
.fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fact-item { min-width: 0; padding: 13px 14px; border: 1px solid rgba(130, 144, 163, 0.15); border-radius: 10px; background: rgba(255, 255, 255, 0.018); }
.fact-item span { display: block; color: var(--atlas-muted); font-size: 11px; }
.fact-item strong { display: block; overflow: hidden; margin-top: 7px; font-size: 18px; white-space: nowrap; text-overflow: ellipsis; }

.breadth-ratio { margin-top: 20px; }
.ratio-labels { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 11px; }
.ratio-track { display: flex; height: 7px; overflow: hidden; border-radius: 20px; background: #283243; }
.ratio-track i { display: block; height: 100%; }
.ratio-up { background: #df5b5f; }
.ratio-flat { background: #657084; }
.ratio-down { background: #27a36a; }
.distribution-chart { height: 232px; margin-top: 12px; }

.panel-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--atlas-line); }
.panel-tab { min-height: 44px; padding: 12px 14px; border: 0; color: var(--atlas-muted); background: transparent; cursor: pointer; font-weight: 600; }
.panel-tab.active { color: var(--atlas-cyan); background: rgba(85, 214, 190, 0.055); box-shadow: inset 0 -2px var(--atlas-cyan); }
.structure-list { padding: 5px 18px 10px; }
.structure-row { display: grid; grid-template-columns: 108px 1fr 120px; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid rgba(130, 144, 163, 0.12); }
.structure-row:last-child { border-bottom: 0; }
.structure-name strong,
.structure-name small,
.structure-stat strong,
.structure-stat small { display: block; }
.structure-name strong { font-size: 13px; }
.structure-name small,
.structure-stat small { color: var(--atlas-muted); font-size: 11px; }
.structure-stat { text-align: right; }
.structure-stat strong { font-size: 15px; }
.mini-breadth { height: 4px; overflow: hidden; border-radius: 5px; background: rgba(39, 163, 106, 0.42); }
.mini-breadth i { display: block; height: 100%; border-radius: 5px; background: #df5b5f; }

.theme-radar-section { position: relative; }
.theme-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--atlas-line); border-radius: 10px; background: rgba(14, 22, 33, 0.8); }
.segmented button { min-height: 44px; padding: 8px 13px; border: 0; border-radius: 7px; color: var(--atlas-muted); background: transparent; cursor: pointer; font-size: 11px; }
.segmented button.active { color: #06120f; background: var(--atlas-cyan); font-weight: 700; }
.source-note { color: var(--atlas-muted); font-size: 11px; }
.theme-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.theme-card {
  position: relative;
  min-height: 226px;
  padding: 17px;
  border: 1px solid var(--atlas-line);
  border-radius: 13px;
  color: var(--atlas-text);
  background: linear-gradient(155deg, rgba(17, 28, 41, 0.96), rgba(9, 16, 25, 0.96));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.theme-card:hover { transform: translateY(-3px); border-color: rgba(85, 214, 190, 0.42); text-decoration: none; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22); }
.theme-card-top,
.theme-meta,
.theme-lead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.theme-card-top span { color: var(--atlas-cyan); font: 700 11px/1 monospace; }
.theme-card-top em,
.theme-lead em { font-style: normal; font-size: 11px; }
.theme-card h3 { margin: 15px 0 10px; font-size: 19px; letter-spacing: -0.02em; }
.theme-count { display: flex; align-items: baseline; gap: 6px; margin-bottom: 17px; }
.theme-count strong { font: 600 31px/1 Georgia, serif; }
.theme-count span { color: var(--atlas-muted); font-size: 11px; }
.theme-meta { padding: 10px 0; border-top: 1px solid rgba(130, 144, 163, 0.12); border-bottom: 1px solid rgba(130, 144, 163, 0.12); color: var(--atlas-muted); font-size: 11px; }
.theme-lead { margin-top: 12px; font-size: 11px; }
.theme-lead > span { color: var(--atlas-muted); }
.theme-lead strong { margin-right: auto; font-size: 11px; }

.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.industry-grid .panel { padding: 18px 20px 8px; }
.panel-label { padding-bottom: 12px; color: var(--atlas-muted); border-bottom: 1px solid var(--atlas-line); font-size: 11px; letter-spacing: 0.08em; }
.rank-row { display: grid; grid-template-columns: 32px 1fr 74px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(130, 144, 163, 0.1); }
.rank-row:last-child { border-bottom: 0; }
.rank-number { color: #68758a; font: 700 11px/1 monospace; }
.rank-row strong,
.rank-row small { display: block; }
.rank-row strong { font-size: 12px; }
.rank-row small { margin-top: 3px; color: var(--atlas-muted); font-size: 11px; }
.rank-row em { text-align: right; font-style: normal; font-size: 13px; font-weight: 700; }

.method-card { display: grid; grid-template-columns: 100px 1fr; gap: 18px; margin-top: 60px; padding: 18px 20px; border: 1px dashed rgba(130, 144, 163, 0.28); border-radius: 12px; }
.method-card span { color: var(--atlas-amber); font-size: 11px; font-weight: 700; }
.method-card p { margin: 0; color: var(--atlas-muted); font-size: 11px; }
.atlas-footer { display: flex; justify-content: space-between; gap: 20px; color: #647186; border-color: rgba(130, 144, 163, 0.15); }
.atlas-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #8290a3; }

.atlas-page .up { color: #ee7478; }
.atlas-page .down { color: #48bd83; }
.atlas-page .flat { color: #a8b2bf; }
.empty-inline { padding: 20px; color: var(--atlas-muted); font-size: 12px; }
.error-banner { margin: 20px 0; padding: 14px 16px; border: 1px solid rgba(241, 196, 107, 0.34); border-radius: 10px; color: var(--atlas-amber); background: rgba(241, 196, 107, 0.06); font-size: 12px; }
.skeleton-row,
.skeleton-block { min-height: 90px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.055), rgba(255,255,255,.025)); background-size: 200% 100%; animation: atlas-shimmer 1.4s infinite; }
@keyframes atlas-shimmer { to { background-position: -200% 0; } }

/* ---- v0.3 题材目录、题材详情与行业全景 ---- */

.header-asof {
  justify-self: end;
  color: var(--atlas-muted);
  font: 700 11px/1.2 monospace;
  letter-spacing: 0.08em;
}

.directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 48px;
  padding: 54px 0 40px;
}

.directory-hero h1 {
  margin: 18px 0 14px;
  font: 600 clamp(38px, 4.4vw, 58px)/1.1 Georgia, "Noto Serif SC", serif;
  letter-spacing: -0.04em;
}

.directory-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--atlas-cyan), var(--atlas-blue));
  background-clip: text;
  -webkit-background-clip: text;
}

.directory-hero p {
  max-width: 690px;
  margin: 0;
  color: var(--atlas-muted);
  font-size: 14px;
  line-height: 1.8;
}

.coverage-card,
.date-control {
  padding: 22px;
  border: 1px solid var(--atlas-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(85, 214, 190, 0.065), rgba(126, 167, 255, 0.035));
}

.coverage-card strong,
.coverage-card span,
.coverage-card small { display: block; }
.coverage-card strong { color: var(--atlas-cyan); font: 600 42px/1 Georgia, serif; }
.coverage-card span { margin-top: 6px; font-size: 12px; font-weight: 700; }
.coverage-card small { margin-top: 12px; color: var(--atlas-muted); font-size: 11px; line-height: 1.55; }

.directory-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--atlas-line);
  border-radius: 13px;
  background: rgba(14, 22, 33, 0.68);
}

.directory-search { flex: 0 1 390px; }
.directory-search span,
.date-control label { display: block; margin-bottom: 7px; color: var(--atlas-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.directory-search input,
.date-control input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--atlas-line);
  border-radius: 8px;
  color: var(--atlas-text);
  background: #0a111a;
  outline: none;
}
.directory-search input:focus,
.date-control input:focus { border-color: rgba(85, 214, 190, 0.52); }

.directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.directory-card { min-height: 218px; }
.directory-message { grid-column: 1 / -1; }
.directory-empty { padding: 54px; border: 1px dashed var(--atlas-line); border-radius: 13px; color: var(--atlas-muted); text-align: center; }
.directory-method { margin-top: 42px; }

.load-more-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  color: var(--atlas-muted);
  font-size: 12px;
}

.load-more-wrap[hidden] { display: none; }
.load-more-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(85, 214, 190, 0.34);
  border-radius: 9px;
  color: var(--atlas-cyan);
  background: rgba(85, 214, 190, 0.07);
  cursor: pointer;
  font-weight: 700;
}

.breadcrumbs { display: flex; align-items: center; gap: 8px; padding: 34px 0 18px; color: var(--atlas-muted); font-size: 11px; }
.breadcrumbs a { color: var(--atlas-blue); }

.theme-detail-hero {
  display: grid;
  grid-template-columns: minmax(270px, 0.75fr) minmax(520px, 1.25fr);
  gap: 56px;
  min-height: 260px;
  padding: 38px;
  border: 1px solid var(--atlas-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 15%, rgba(85, 214, 190, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(17, 28, 41, 0.95), rgba(9, 16, 25, 0.96));
}

.theme-title-block { align-self: center; }
.theme-title-block h1 { margin: 12px 0 13px; font: 600 46px/1.05 Georgia, "Noto Serif SC", serif; letter-spacing: -0.04em; }
.theme-title-block p { margin: 0; color: var(--atlas-muted); font-size: 12px; line-height: 1.8; }
.theme-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-self: center; }
.theme-detail-facts > div { min-height: 86px; padding: 14px; border: 1px solid rgba(130, 144, 163, 0.15); border-radius: 10px; background: rgba(255, 255, 255, 0.018); }
.theme-detail-facts span,
.theme-detail-facts strong,
.theme-detail-facts small { display: block; }
.theme-detail-facts span { color: var(--atlas-muted); font-size: 11px; }
.theme-detail-facts strong { margin-top: 8px; font-size: 18px; }
.theme-detail-facts small { margin-top: 3px; font-size: 11px; }
.detail-section { margin-top: 50px; }

.member-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--atlas-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(17, 28, 41, 0.9), rgba(10, 17, 26, 0.9));
}

.member-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.member-table th { padding: 13px 15px; color: var(--atlas-muted); background: rgba(255, 255, 255, 0.018); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-align: left; white-space: nowrap; }
.member-table td { padding: 15px; border-top: 1px solid rgba(130, 144, 163, 0.12); color: #c3ccd8; vertical-align: top; }
.member-table tbody tr:hover { background: rgba(126, 167, 255, 0.025); }
.member-table th:last-child { width: 43%; }
.member-table .loading-box,
.member-table .error-box { min-width: 280px; }

.company-link { display: inline-grid; min-width: 92px; color: var(--atlas-text); }
.company-link strong { font-size: 12px; }
.company-link small { margin-top: 4px; color: var(--atlas-muted); font: 11px/1 monospace; }
.metric-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.association-reason { min-width: 280px; max-width: 540px; margin: 0; color: #aab5c4; font-size: 11px; line-height: 1.7; }

.industry-hero { grid-template-columns: minmax(0, 1fr) 300px; }
.date-control div { display: grid; grid-template-columns: 1fr 68px; }
.date-control input { border-radius: 8px 0 0 8px; }
.date-control button { min-height: 44px; border: 1px solid rgba(85, 214, 190, 0.34); border-radius: 0 8px 8px 0; color: var(--atlas-cyan); background: rgba(85, 214, 190, 0.075); cursor: pointer; }
.industry-table-section { margin-top: 10px; }
.industry-table { min-width: 1050px; }
.industry-table th:last-child { width: auto; }
.industry-table td { vertical-align: middle; }
.row-rank { color: #68758a !important; font: 700 11px/1 monospace; }
.table-sub { display: block; margin-top: 4px; color: var(--atlas-muted); font-size: 11px; white-space: nowrap; }
.coverage-meter { width: 64px; height: 4px; overflow: hidden; border-radius: 4px; background: #273243; }
.coverage-meter i { display: block; height: 100%; border-radius: 4px; background: var(--atlas-blue); }
.about-grid { margin-top: 8px; }
.about-panel { padding: 24px; }
.about-panel > span { color: var(--atlas-cyan); font: 700 10px/1 monospace; }
.about-panel h2 { margin: 14px 0 8px; font-size: 18px; }
.about-panel p { margin: 0; color: var(--atlas-muted); font-size: 12px; line-height: 1.75; }

.atlas-page a:focus-visible,
.atlas-page button:focus-visible,
.atlas-page input:focus-visible {
  outline: 2px solid var(--atlas-cyan);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .topbar { grid-template-columns: 200px 1fr 40px; gap: 12px; }
  .primary-nav a { padding-inline: 8px; }
  .index-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .index-card:nth-child(4) { border-right: 0; }
  .index-card:nth-child(n+5) { border-top: 1px solid var(--atlas-line); }
  .theme-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-detail-hero { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 24px, 1240px); }
  .topbar { grid-template-columns: 1fr 44px; gap: 10px; }
  .primary-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { flex: 0 0 auto; scroll-snap-align: start; }
  .atlas-hero { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding: 30px 0 28px; }
  .atlas-hero h1 { margin-top: 15px; font-size: 36px; }
  .atlas-hero p { font-size: 14px; line-height: 1.65; }
  .asof-card { width: 100%; }
  .asof-card-head { align-items: start; }
  .asof-card-head small { max-width: 150px; }
  .hero-facts { gap: 8px; }
  .hero-facts strong { font-size: 15px; }
  .section-block { margin-top: 44px; }
  .index-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-card:nth-child(even) { border-right: 0; }
  .index-card:nth-child(n+3) { border-top: 1px solid var(--atlas-line); }
  .overview-grid,
  .industry-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .theme-toolbar { align-items: flex-start; flex-direction: column; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented { scrollbar-width: none; }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented button { flex: 1 0 auto; min-height: 44px; }
  .theme-radar-section .theme-card-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-inline: -12px;
    padding: 0 12px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .theme-radar-section .theme-card { flex: 0 0 min(82vw, 320px); scroll-snap-align: start; }
  .directory-grid { grid-template-columns: 1fr; }
  .method-card { grid-template-columns: 1fr; }
  .atlas-footer { flex-direction: column; }
  .directory-hero,
  .industry-hero { grid-template-columns: 1fr; gap: 22px; padding: 36px 0 30px; }
  .directory-hero h1 { font-size: 38px; }
  .coverage-card { padding: 18px; }
  .directory-controls { align-items: stretch; flex-direction: column; padding: 12px; }
  .directory-search { flex-basis: auto; }
  .theme-detail-hero { gap: 20px; min-height: 0; padding: 20px; }
  .theme-title-block h1 { font-size: 36px; }
  .theme-detail-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-detail-facts > div { min-height: 76px; padding: 12px; }
  .theme-detail-facts strong { font-size: 16px; line-height: 1.3; }
  .member-table-wrap { overflow: hidden; border: 0; background: transparent; }
  .member-table:not(.industry-table),
  .member-table:not(.industry-table) tbody { display: block; width: 100%; }
  .member-table:not(.industry-table) thead { display: none; }
  #theme-members tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 16px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--atlas-line);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(17, 28, 41, 0.92), rgba(10, 17, 26, 0.92));
  }
  #theme-members td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  #theme-members td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--atlas-muted);
    font-size: 11px;
    font-weight: 700;
  }
  #theme-members td:first-child,
  #theme-members td:last-child { grid-column: 1 / -1; }
  #theme-members td:last-child {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(130, 144, 163, 0.14);
  }
  #theme-members td[colspan] { grid-column: 1 / -1; }
  #theme-members td[colspan]::before { display: none; }
  .company-link { min-width: 0; }
  .association-reason { min-width: 0; max-width: none; }
}
