:root {
  --bg: #07101b;
  --bg-soft: #0d1726;
  --panel: rgba(17, 29, 46, 0.88);
  --panel-strong: rgba(23, 40, 64, 0.96);
  --line: rgba(145, 174, 214, 0.18);
  --line-strong: rgba(145, 174, 214, 0.32);
  --text: #f4f7ff;
  --muted: #9db0c6;
  --soft: #d6deec;
  --primary: #8af3ff;
  --secondary: #ffb66d;
  --accent: #b9abff;
  --success: #9ae38a;
  --danger: #f29d9d;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(138, 243, 255, 0.10), transparent 26%),
    radial-gradient(circle at 82% 0%, rgba(255, 182, 109, 0.12), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(185, 171, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #07101b 0%, #0a1422 35%, #0d1726 100%);
  color: var(--text);
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input {
  font: inherit;
  color: inherit;
}
.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 16, 27, 0.76);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(138, 243, 255, 0.12);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 18px rgba(138, 243, 255, 0.5);
}
.brand__text {
  font-size: 1rem;
  line-height: 1;
}
.brand__sub {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 500;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}
.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  transition: 180ms ease;
}
.nav a:hover,
.nav a.is-current {
  color: var(--text);
  background: rgba(138, 243, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(138, 243, 255, 0.16);
}
main { padding: 2rem 0 4rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.5rem 0 2rem;
}
.hero__copy,
.hero__aside,
.panel,
.story-card,
.topic-card,
.author-card,
.timeline-card,
.route-card,
.excerpt-card,
.story-section,
.story-sidebar,
.filter-bar,
.footer__inner {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}
.hero__copy,
.hero__aside {
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}
.hero__copy::before,
.hero__aside::before,
.story-card::before,
.panel::before,
.topic-card::before,
.story-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(138, 243, 255, 0.05), transparent 30%),
    linear-gradient(315deg, rgba(255, 182, 109, 0.06), transparent 28%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: rgba(138, 243, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(138, 243, 255, 0.12);
  color: var(--primary);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
h1, h2, h3, h4, .display {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.9rem); margin-top: 1rem; }
h2 { font-size: clamp(1.65rem, 4vw, 2.35rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; color: var(--soft); }
.lead {
  font-size: 1.08rem;
  max-width: 60ch;
  color: var(--soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #081019;
  box-shadow: 0 16px 40px rgba(138, 243, 255, 0.26);
}
.ghost-button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}
.metrics,
.topics-grid,
.story-grid,
.route-grid,
.authors-grid,
.timeline-grid,
.excerpt-grid,
.meta-grid {
  display: grid;
  gap: 1rem;
}
.metrics { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); margin-top: 1.35rem; }
.metric {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.metric small,
.meta-grid dt,
.section-note,
.card-kicker,
.footer-note {
  color: var(--muted);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.metric strong {
  display: block;
  margin-top: 0.4rem;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.45rem;
  color: var(--text);
}
.panel,
.story-card,
.topic-card,
.route-card,
.excerpt-card,
.author-card,
.timeline-card {
  position: relative;
  overflow: hidden;
}
.panel { padding: 1.3rem; }
.section {
  padding-top: 1.25rem;
}
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section__head p {
  margin-top: 0.45rem;
  margin-bottom: 0;
  color: var(--muted);
}
.inline-link {
  color: var(--primary);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
}
.topics-grid,
.story-grid,
.route-grid,
.authors-grid,
.excerpt-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.topic-card,
.story-card,
.route-card,
.excerpt-card,
.author-card,
.timeline-card {
  padding: 1rem;
}
.story-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.story-card__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 220px;
  background: rgba(255, 255, 255, 0.03);
}
.story-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.story-card h3 {
  font-size: 1.28rem;
}
.story-card p {
  margin: 0;
  color: var(--soft);
  font-size: 0.98rem;
}
.badges,
.counter-strip,
.tag-cloud,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.badge,
.counter-pill,
.filter-chip,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 0.84rem;
}
.badge.is-topic,
.filter-chip.is-active {
  background: rgba(138, 243, 255, 0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(138, 243, 255, 0.22);
}
.tag { color: var(--muted); }
.counter-pill strong { font-family: "Space Grotesk", "Noto Sans SC", sans-serif; font-size: 1rem; color: var(--text); }
.pv-panel {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(138, 243, 255, 0.10), rgba(255, 182, 109, 0.12)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 0 1px rgba(138, 243, 255, 0.16),
    0 18px 36px rgba(0, 0, 0, 0.22);
}
.pv-panel__kicker {
  color: var(--primary);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pv-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}
.pv-stat {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(7, 16, 27, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.pv-stat small {
  color: var(--muted);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.pv-stat strong {
  display: block;
  margin-top: 0.45rem;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  color: var(--text);
  line-height: 1;
}
.pv-panel__note {
  margin: 0.9rem 0 0;
  color: var(--soft);
  font-size: 0.92rem;
}
.story-card__meta,
.story-hero__meta,
.story-sidebar dl,
.meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.story-card__meta,
.story-hero__meta,
.meta-grid {
  display: grid;
  gap: 0.85rem;
}
.story-card__meta span strong,
.meta-grid dd,
.story-sidebar dd {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-weight: 600;
}
.story-card__meta span small {
  color: var(--muted);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filter-bar {
  padding: 1rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 4.8rem;
  z-index: 20;
  background: rgba(11, 20, 33, 0.92);
}
.filter-chip {
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}
.search-box {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}
.search-box::placeholder { color: rgba(214, 222, 236, 0.55); }
.empty-state {
  display: none;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
.empty-state.is-visible { display: block; }
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
  gap: 1.2rem;
  align-items: start;
}
.story-hero {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.1rem;
}
.story-cover-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.story-main .panel,
.story-sidebar {
  padding: 1.15rem;
}
.story-sidebar {
  position: sticky;
  top: 5.2rem;
}
.story-sidebar dl {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 0;
}
.story-sidebar dt {
  color: var(--muted);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.story-sidebar dd {
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
  color: var(--soft);
}
.story-section {
  padding: 1.15rem;
  margin-bottom: 1rem;
  position: relative;
}
.story-section p {
  margin: 0 0 1rem;
  font-size: 1.03rem;
  color: #eef3ff;
  line-height: 1.95;
}
.story-section p:last-child { margin-bottom: 0; }
.toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.toc a {
  color: var(--soft);
  padding: 0.6rem 0.75rem;
  display: block;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.topic-hero,
.archive-grid,
.reading-grid {
  display: grid;
  gap: 1rem;
}
.archive-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.timeline-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer {
  padding: 0 0 2rem;
}
.footer__inner {
  padding: 1.2rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0.8rem 0 1rem;
}
.footer__links a {
  color: var(--muted);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.92rem;
}
.muted { color: var(--muted); }
.divider {
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}
.quote {
  padding-left: 1rem;
  border-left: 3px solid rgba(138, 243, 255, 0.24);
  color: var(--soft);
  font-size: 1.02rem;
}
.hidden { display: none !important; }
@media (max-width: 980px) {
  .hero,
  .story-layout,
  .archive-grid,
  .story-hero {
    grid-template-columns: 1fr;
  }
  .story-sidebar {
    position: static;
  }
}
@media (max-width: 720px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    justify-content: flex-start;
  }
  .hero__copy,
  .hero__aside,
  .panel,
  .story-card,
  .topic-card,
  .route-card,
  .excerpt-card,
  .author-card,
  .timeline-card,
  .story-section,
  .story-sidebar,
  .filter-bar,
  .footer__inner {
    border-radius: 22px;
  }
  .story-card__meta,
  .story-hero__meta,
  .meta-grid,
  .pv-panel__grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    top: 0.6rem;
  }
}