:root {
  --bg: #090b13;
  --bg-elevated: #111521;
  --panel: rgba(19, 24, 36, .88);
  --ink: #f7f4ee;
  --muted: #b8becb;
  --line: rgba(218, 182, 111, .22);
  --gold: #dcb76c;
  --gold-light: #f1d69c;
  --green: #a6e85d;
  --cyan: #8de9e8;
  --red: #8e263b;
  --shadow: 0 22px 60px rgba(0, 0, 0, .34);
  --serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 3%, rgba(69, 104, 83, .19), transparent 25rem),
    radial-gradient(circle at 5% 31%, rgba(123, 38, 61, .12), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font: 16px/1.78 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.skip-link {
  position: fixed; z-index: 99; left: 1rem; top: -4rem; padding: .6rem 1rem;
  border-radius: .5rem; background: var(--gold); color: #15110a; font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.wrap { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: 2rem; }
.eyebrow {
  margin: 0 0 .65rem; color: var(--green); font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 6.2rem); letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.035em; }
h3 { margin: 0 0 .65rem; font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.lede { color: #e5e8ec; font-size: clamp(1.05rem, 2vw, 1.23rem); }
.muted { color: var(--muted); }
.prose > * + * { margin-top: 1rem; }
.prose h3 { margin-top: 2.25rem; color: var(--gold-light); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .45rem; }
.prose strong { color: var(--gold-light); }

.site-header {
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent;
  background: rgba(9, 11, 19, .68); backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { background: rgba(9, 11, 19, .92); border-color: var(--line); }
.header-inner {
  min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--serif); font-size: 1.06rem; font-weight: 800; white-space: nowrap; }
.brand-mark {
  width: 31px; height: 31px; display: grid; place-items: center; color: var(--green);
  border: 1px solid rgba(166, 232, 93, .55); border-radius: 50%; font-family: var(--serif);
}
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .48rem .7rem; border-radius: .45rem; color: var(--muted); font-size: .91rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: rgba(220, 183, 108, .1); }
.nav-toggle { display: none; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); background: transparent; }

.hero { position: relative; isolation: isolate; min-height: min(810px, calc(100vh - 70px)); display: grid; align-items: end; overflow: hidden; }
.hero-media, .page-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.82) contrast(1.04); }
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 8, 13, .96) 0%, rgba(7, 8, 13, .75) 48%, rgba(7, 8, 13, .27) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 39%);
}
.hero-content { padding: clamp(6rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem); max-width: 770px; }
.hero h1 span { display: block; color: var(--gold-light); font-size: clamp(1rem, 2.3vw, 1.85rem); letter-spacing: .14em; margin-bottom: .85rem; }
.hero .lede { max-width: 660px; margin-top: 1.35rem; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.button, button.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .7rem 1.15rem;
  border: 1px solid transparent; border-radius: .4rem; cursor: pointer; font-weight: 800; transition: transform .18s ease, background .18s ease;
}
.button:hover, button.button:hover { transform: translateY(-2px); }
.button-primary { color: #12140d; background: linear-gradient(135deg, var(--green), #d1f078); box-shadow: 0 9px 28px rgba(166, 232, 93, .18); }
.button-secondary { color: var(--gold-light); background: rgba(9, 11, 19, .48); border-color: var(--line); }
.hero-note { margin-top: 1rem; color: #d5d7db; font-size: .82rem; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 17, .73);
}
.stat-strip > div { min-height: 110px; padding: 1.25rem clamp(1rem, 3vw, 2rem); border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip span { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .08em; }
.stat-strip strong { display: block; margin-top: .35rem; color: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; }

.grid { display: grid; gap: 1.15rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .info-box, .timeline-item, details {
  border: 1px solid var(--line); border-radius: .8rem; background: linear-gradient(145deg, rgba(24, 30, 44, .88), rgba(13, 16, 26, .86)); box-shadow: var(--shadow);
}
.card { padding: clamp(1.2rem, 3vw, 1.75rem); }
.card p:last-child { margin-bottom: 0; }
.card-icon { display: inline-grid; width: 38px; height: 38px; margin-bottom: 1rem; place-items: center; border-radius: 50%; color: var(--green); background: rgba(166, 232, 93, .1); }
.feature-card { overflow: hidden; padding: 0; }
.feature-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-card > div { padding: 1.4rem; }

.split { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.image-frame { position: relative; overflow: hidden; border: 1px solid rgba(220, 183, 108, .42); border-radius: .9rem; box-shadow: var(--shadow); }
.image-frame::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(166, 232, 93, .33); pointer-events: none; z-index: 1; }
.image-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.quote { margin: 1.4rem 0 0; padding: 1rem 0 1rem 1.1rem; border-left: 2px solid var(--green); color: var(--muted); }

.entity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.4rem 0 0; }
.entity-grid > div { padding: .8rem .95rem; border: 1px solid rgba(220, 183, 108, .17); border-radius: .5rem; background: rgba(6, 8, 13, .25); }
.entity-grid dt { color: var(--muted); font-size: .78rem; }
.entity-grid dd { margin: .15rem 0 0; color: var(--gold-light); font-weight: 700; }

.route-list { counter-reset: item; display: grid; gap: .85rem; }
.route-list li { list-style: none; position: relative; padding: 1rem 1rem 1rem 3.9rem; border-radius: .65rem; border: 1px solid var(--line); background: rgba(17, 21, 33, .72); }
.route-list li::before { content: counter(item, decimal-leading-zero); counter-increment: item; position: absolute; left: 1rem; top: .98rem; color: var(--green); font: 700 1.2rem/1 var(--serif); }
.route-list h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.route-list p { margin: 0; color: var(--muted); }

.resource-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
.resource-card { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.15rem; border: 1px solid var(--line); border-radius: .75rem; background: linear-gradient(155deg, rgba(29, 38, 45, .88), rgba(14, 17, 27, .92)); transition: border-color .2s, transform .2s; }
.resource-card:hover { transform: translateY(-3px); border-color: rgba(166, 232, 93, .54); }
.resource-card span { color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.resource-card strong { font-family: var(--serif); font-size: 1.15rem; }
.resource-card small { color: var(--muted); }

.timeline { position: relative; display: grid; gap: .85rem; }
.timeline-item { padding: 1.2rem 1.3rem; }
.timeline-item time { display: block; margin-bottom: .35rem; color: var(--green); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.timeline-item h3 { color: var(--gold-light); }

.faq-list { display: grid; gap: .8rem; }
details { padding: 0 1.15rem; }
summary { padding: 1rem 2.1rem 1rem 0; cursor: pointer; font-weight: 800; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .1rem; top: .85rem; color: var(--green); font: 1.55rem/1 var(--serif); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 1.1rem; color: var(--muted); }

.callout { border: 1px solid rgba(166, 232, 93, .35); border-radius: .85rem; padding: 1.45rem; background: linear-gradient(105deg, rgba(49, 83, 50, .23), rgba(17, 21, 33, .72)); }
.callout h3 { color: var(--gold-light); }
.callout p { color: var(--muted); }
.callout p:last-child { margin-bottom: 0; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 390px; display: grid; align-items: end; }
.page-hero-content { padding: clamp(5rem, 10vw, 7.5rem) 0 4rem; max-width: 840px; }
.page-hero .lede { max-width: 730px; margin-top: 1rem; }
.breadcrumb { display: flex; gap: .45rem; margin: 0 0 1rem; color: var(--muted); font-size: .87rem; }
.breadcrumb a:hover { color: var(--green); }
.last-updated { display: inline-flex; margin-top: 1.15rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .8rem; }

.site-footer { padding: 3rem 0 2.2rem; border-top: 1px solid var(--line); background: #07090f; }
.footer-top { display: grid; grid-template-columns: 1.25fr .75fr .9fr; gap: 2rem; }
.footer-title { font-family: var(--serif); font-size: 1.2rem; }
.footer-links { display: grid; gap: .45rem; margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--gold-light); }
.friend-links { display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin-top: .7rem; }
.friend-links a { color: var(--muted); font-size: .84rem; }
.friend-links a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid rgba(220, 183, 108, .14); color: #838b99; font-size: .8rem; }

.not-found { min-height: 64vh; display: grid; place-items: center; text-align: center; }
.not-found-inner { max-width: 650px; padding: 4rem 0; }
.not-found code { display: block; margin-bottom: .7rem; color: var(--green); font: 800 1rem/1 var(--sans); letter-spacing: .15em; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0; padding: .7rem 1.25rem 1rem;
    flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); background: rgba(9, 11, 19, .98);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .75rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .wrap { width: min(100% - 1.5rem, 1160px); }
  .hero { min-height: 680px; }
  .hero::after, .page-hero::after { background: linear-gradient(90deg, rgba(7, 8, 13, .95), rgba(7, 8, 13, .55)), linear-gradient(0deg, var(--bg), transparent 42%); }
  .grid.two, .grid.three, .split { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .entity-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .button, button.button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* White-hat data slots; layout classes are supplied by the original template. */
.seo-slot-section .seo-news-grid, .seo-slot-section .seo-friend-grid { align-items: stretch; }
.seo-news-card, .seo-friend-link, .seo-news-link { min-width: 0; }
.seo-news-card time, .seo-news-card > span, .seo-news-link small { display: block; margin-bottom: .65rem; opacity: .76; font-weight: 700; }
.seo-news-card h2, .seo-news-card h3 { margin-top: 0; }
.seo-news-card p, .seo-news-link span { overflow-wrap: anywhere; }
.seo-detail-card { max-width: 980px; }
.seo-article-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.managed-download-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .66); }
.managed-download-dialog { width: min(460px, 100%); padding: 1.25rem; color: #f5f6f3; background: #1b1d1c; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.managed-download-dialog h2 { margin: 0; color: inherit; }
.managed-download-dialog p { line-height: 1.7; }
.managed-download-actions { display: flex; justify-content: flex-end; gap: .65rem; }
.managed-download-actions button { min-height: 2.45rem; padding: .45rem .85rem; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; color: inherit; background: transparent; cursor: pointer; }
.managed-download-actions [data-managed-action="confirm"] { color: #171817; background: #f1c75b; border-color: #f1c75b; }
@media (max-width: 640px) { .managed-download-actions { flex-wrap: wrap; } }

