:root {
  color-scheme: dark;
  --bg: #120d0b;
  --bg-deep: #090604;
  --paper: rgba(255, 247, 235, 0.06);
  --paper-strong: rgba(255, 247, 235, 0.1);
  --line: rgba(215, 182, 128, 0.18);
  --line-strong: rgba(235, 205, 154, 0.3);
  --text: #f1e4cf;
  --text-soft: #c8b290;
  --text-muted: #8b755d;
  --gold: #c59a5a;
  --gold-strong: #f3d7a1;
  --red: #8f2d21;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: min(1160px, calc(100% - 36px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(197, 154, 90, 0.26) 0, rgba(197, 154, 90, 0) 35%),
    radial-gradient(circle at 100% 15%, rgba(143, 45, 33, 0.24) 0, rgba(143, 45, 33, 0) 30%),
    linear-gradient(180deg, #17100d 0%, var(--bg) 38%, #0d0908 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.72), transparent 90%);
}

h1,
h2,
h3,
.brand__text,
.name-dossier__name,
.stat__value {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 80;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff2de;
  color: #2d180d;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
}

.page-glow,
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-glow--left {
  inset: auto auto 52% -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(197, 154, 90, 0.16);
  filter: blur(34px);
}

.page-glow--right {
  inset: 22% -180px auto auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(143, 45, 33, 0.16);
  filter: blur(48px);
}

.page-noise {
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px);
  background-size: 22px 22px, 30px 30px;
  mix-blend-mode: screen;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: var(--content-width);
  margin: 14px auto 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 235, 205, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(24, 18, 14, 0.9) 0%, rgba(14, 10, 8, 0.78) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(235, 205, 154, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

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

.brand__seal {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(241, 228, 207, 0.66);
}

.brand__text {
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--gold-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: rgba(241, 228, 207, 0.84);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-strong), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.nav a:hover {
  color: var(--gold-strong);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(235, 205, 154, 0.26);
  background: rgba(255, 247, 235, 0.06);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--gold);
}

main {
  width: var(--content-width);
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section--plain {
  border-top: 1px solid rgba(235, 205, 154, 0.08);
  border-bottom: 1px solid rgba(235, 205, 154, 0.08);
}

.section--ribbon {
  padding-top: 24px;
  padding-bottom: 24px;
}

.section__head {
  margin-bottom: 28px;
}

.section__head--row,
.section__head--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.14;
  max-width: 860px;
}

.section__desc {
  margin: 10px 0 0;
  max-width: 420px;
  color: var(--text-soft);
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding-top: 38px;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.28);
}

.hero__desc {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.92;
}

.hero__actions,
.cta__actions,
.stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 28px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-item {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(235, 205, 154, 0.26);
  background: rgba(255, 247, 235, 0.05);
  color: var(--gold-strong);
  font-size: 13px;
}

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

.hero-metric {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(235, 205, 154, 0.14);
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.06) 0%, rgba(255, 247, 235, 0.03) 100%);
  backdrop-filter: blur(10px);
}

.hero-metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--gold-strong);
}

.hero-metric span {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.72;
}

.btn,
.mini-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.btn:hover,
.mini-btn:hover {
  transform: translateY(-2px);
}

.btn {
  padding: 13px 20px;
  border-radius: 999px;
}

.btn--compact {
  padding-inline: 16px;
}

.btn--primary {
  color: #201107;
  background: linear-gradient(135deg, #c89e5d 0%, #f1d59f 56%, #a57439 100%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn--ghost,
.mini-btn {
  border: 1px solid rgba(235, 205, 154, 0.32);
  background: rgba(255, 247, 235, 0.06);
  color: var(--gold-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover,
.mini-btn:hover {
  background: rgba(255, 247, 235, 0.1);
}

.mini-btn {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.archive-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(31, 20, 15, 0.96) 0%, rgba(17, 11, 8, 0.96) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.archive-frame::before,
.archive-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.archive-frame::before {
  width: 280px;
  height: 280px;
  right: -120px;
  top: -140px;
  background: rgba(197, 154, 90, 0.12);
  filter: blur(8px);
}

.archive-frame::after {
  width: 220px;
  height: 220px;
  left: -120px;
  bottom: -140px;
  background: rgba(143, 45, 33, 0.14);
  filter: blur(18px);
}

.archive-frame__head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px;
  color: rgba(241, 228, 207, 0.8);
  font-size: 13px;
}

.archive-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(235, 205, 154, 0.24);
  background: rgba(255, 247, 235, 0.06);
  color: var(--gold-strong);
}

.archive-frame__body {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(235, 205, 154, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 247, 235, 0.08) 0%, rgba(255, 247, 235, 0.03) 100%);
}

.archive-kicker {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.name-dossier {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(235, 205, 154, 0.16);
  background: rgba(255, 247, 235, 0.05);
}

.name-dossier__row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.name-dossier__name {
  margin: 0;
  font-size: 28px;
  color: var(--gold-strong);
}

.name-dossier__meta {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.name-dossier__score {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(197, 154, 90, 0.24), rgba(143, 45, 33, 0.24));
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 700;
}

.name-dossier__desc {
  margin: 10px 0 0;
  color: rgba(241, 228, 207, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

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

.archive-summary div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 247, 235, 0.05);
  border: 1px solid rgba(235, 205, 154, 0.14);
}

.archive-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.archive-summary strong {
  font-size: 15px;
  color: var(--gold-strong);
}

.section--showcase {
  padding-top: 20px;
}

.showcase-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.showcase-item {
  margin: 0;
  width: 128px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(235, 205, 154, 0.16);
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.06) 0%, rgba(255, 247, 235, 0.03) 100%);
}

.showcase-item img {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid rgba(235, 205, 154, 0.2);
  background: #0f0b08;
}

.showcase-item figcaption {
  margin-top: 6px;
  color: var(--gold-strong);
  font-size: 12px;
  text-align: center;
}

.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.promise {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(235, 205, 154, 0.14);
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.06) 0%, rgba(255, 247, 235, 0.03) 100%);
}

.promise__idx {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.promise h2,
.feature h3,
.scene h3,
.step h3,
.cta h2 {
  margin: 0;
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1.18;
  color: var(--gold-strong);
}

.promise p,
.feature p,
.scene p,
.step p,
.flow-note__text,
.cta p,
.stats-panel__desc,
.stat__meta {
  color: var(--text-soft);
  line-height: 1.84;
}

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

.feature,
.scene,
.step,
.stat,
.flow-note,
.stats-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(235, 205, 154, 0.14);
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.06) 0%, rgba(255, 247, 235, 0.03) 100%);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.feature:hover,
.scene:hover,
.step:hover,
.stat:hover,
.flow-note:hover,
.stats-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 205, 154, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.feature__tag,
.scene__tag,
.step__idx,
.flow-note__label,
.stats-panel__label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature p,
.scene p,
.step p {
  margin: 10px 0 0;
}

.feature__list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(241, 228, 207, 0.88);
}

.feature__list li + li {
  margin-top: 8px;
}

.scene-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-note {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(143, 45, 33, 0.18) 0%, rgba(255, 247, 235, 0.05) 62%);
}

.flow-note__text {
  margin: 0;
  max-width: 780px;
}

.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

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

.stat {
  min-height: 188px;
  justify-content: space-between;
}

.stat__label {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat__value {
  margin: 0;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1;
  color: var(--gold-strong);
}

.stat__meta {
  margin: 16px 0 0;
  font-size: 14px;
}

.status {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(241, 228, 207, 0.92);
}

.status--ok {
  color: #f0deb9;
}

.status--err {
  color: #ffb4ab;
}

.stats-panel__grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.stats-panel__item {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 247, 235, 0.05);
  border: 1px solid rgba(235, 205, 154, 0.12);
}

.stats-panel__item span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.stats-panel__item strong {
  color: var(--gold-strong);
  font-size: 15px;
  line-height: 1.7;
}

.cta {
  text-align: center;
}

.cta p {
  max-width: 700px;
  margin: 14px auto 0;
}

.cta__actions {
  justify-content: center;
  margin-top: 22px;
}

.footer {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0 0 38px;
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
}

.icp-record {
  margin-top: 8px;
}

.icp-record a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 208, 173, 0.4);
}

.icp-record a:hover {
  color: var(--gold-strong);
  border-bottom-color: rgba(228, 208, 173, 0.75);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(235, 205, 154, 0.2);
  border-radius: 50%;
  background: rgba(17, 11, 8, 0.86);
  color: var(--gold-strong);
  font-size: 20px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.back-top.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    width: calc(100% - 20px);
    padding: 14px 16px;
  }

  main,
  .footer {
    width: calc(100% - 20px);
  }

  .hero,
  .stats-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .promise-strip,
  .feature-grid,
  .scene-grid,
  .timeline,
  .hero-metrics,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section__head--row,
  .section__head--split {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .showcase-item {
    width: 116px;
  }

  .showcase-item img {
    height: 214px;
  }

  .topbar {
    border-radius: 24px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(235, 205, 154, 0.14);
    background: rgba(19, 13, 10, 0.96);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.3);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .nav a:hover {
    background: rgba(255, 247, 235, 0.06);
  }

  .nav a::after {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 60px);
  }

  .hero__desc {
    font-size: 15px;
  }

  .brand__text {
    font-size: 18px;
  }

  .brand__seal {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .showcase-grid {
    justify-content: space-between;
  }

  .showcase-item {
    width: calc(50% - 6px);
  }

  .showcase-item img {
    height: 190px;
  }

  .topbar,
  main,
  .footer {
    width: calc(100% - 16px);
  }

  .topbar {
    margin-top: 10px;
    padding: 12px 14px;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
  }

  .section {
    padding: 64px 0;
  }

  .hero__actions,
  .cta__actions,
  .stats-actions {
    flex-direction: column;
  }

  .btn,
  .mini-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .archive-summary {
    grid-template-columns: 1fr;
  }
}
