@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

/* ── 变量 ── */
:root {
  --c-bg: #0a0a0f;
  --c-cyan: #00e5ff;
  --c-gold: #c9a84c;
  --c-text: #d0d8e8;
  --c-text-dim: #7a8599;
  --c-border: rgba(0, 229, 255, 0.18);
  --c-border-gold: rgba(201, 168, 76, 0.25);
  --c-card-bg: rgba(0, 229, 255, 0.04);
  --c-overlay: rgba(10, 10, 15, 0.7);
  --font-head: 'Orbitron', 'Exo 2', system-ui, sans-serif;
  --font-body: 'Exo 2', system-ui, sans-serif;
  --nav-h: 60px;
  --radius-card: 18px;
  --max-w: 1100px;
  --prose-w: 780px;
}

/* ── 重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--c-cyan); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--c-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, menu { list-style: none; }
details { display: block; }

/* ── 站点包装 ── */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ══════════════════════════
   导航：details > summary + menu > li > a
══════════════════════════ */
.nav-details {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-border);
}

.nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  height: var(--nav-h);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nav-summary::-webkit-details-marker { display: none; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-cyan);
  letter-spacing: .05em;
  min-height: 40px;
}
.brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-toggle-icon {
  width: 22px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--c-cyan);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.nav-details[open] .nav-toggle-icon::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-details[open] .nav-toggle-icon::after  { transform: rotate(-45deg) translate(5px, -5px); }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .8rem 1.2rem 1rem;
  border-top: 1px solid var(--c-border);
  max-height: 60vh;
  overflow-y: auto;
}
.nav-menu li { display: contents; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-text);
  background: transparent;
  transition: border-color .2s, color .2s, background .2s;
  min-height: 40px;
  white-space: nowrap;
}
.nav-pill:hover,
.nav-pill--active {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(0, 229, 255, 0.07);
}

/* 右侧 CTA 按钮（最后一个 pill 特殊处理） */
.nav-pill:last-child {
  border-color: var(--c-gold);
  color: var(--c-gold);
  margin-left: auto;
}
.nav-pill:last-child:hover {
  background: rgba(201, 168, 76, 0.1);
}

/* ══════════════════════════
   通用 Hero 区
══════════════════════════ */
.hero-section,
.faq-hero-section,
.about-hero-section,
.contact-hero-section,
.privacy-hero-section,
.default-hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem 3rem;
  padding-bottom: calc(3rem + var(--nav-h));
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(4rem, 18vw, 14rem);
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(0, 229, 255, 0.05);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero-aside {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .25em;
  color: var(--c-gold);
  text-transform: uppercase;
}
.article-date {
  font-size: .78rem;
  color: var(--c-text-dim);
  letter-spacing: .05em;
}

.hero-figure,
.faq-hero-figure,
.about-hero-figure,
.contact-hero-figure,
.privacy-hero-figure,
.default-hero-figure {
  position: relative;
  z-index: 2;
  margin-bottom: .8rem;
}
.hero-icon-mark {
  font-size: 2.2rem;
  color: var(--c-cyan);
  line-height: 1;
}

.hero-content,
.faq-hero-content,
.about-hero-content,
.contact-hero-content,
.privacy-hero-content,
.default-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-h1,
.faq-h1,
.about-h1,
.contact-h1,
.privacy-h1,
.default-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .03em;
  color: #fff;
  margin-bottom: .8rem;
}

.hero-lead,
.faq-lead,
.about-lead,
.contact-lead,
.privacy-lead,
.default-lead {
  font-size: 1.05rem;
  color: var(--c-text-dim);
  max-width: 580px;
  margin: 0 auto .8rem;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

/* ══════════════════════════
   按钮
══════════════════════════ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.8rem;
  background: linear-gradient(135deg, var(--c-cyan), #0096aa);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 999px;
  border: none;
  min-height: 44px;
  transition: opacity .2s, transform .15s;
}
.btn-cta:hover { opacity: .88; transform: translateY(-1px); color: var(--c-bg); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1.6rem;
  background: transparent;
  color: var(--c-gold);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  border: 1.5px solid var(--c-gold);
  min-height: 44px;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: rgba(201, 168, 76, 0.1); color: var(--c-gold); }
.btn-sm { padding: .5rem 1.2rem; font-size: .8rem; min-height: 40px; }

/* ══════════════════════════
   主体区块（section + aside + figure 交错）
══════════════════════════ */
.content-section,
.guides-section,
.nav-section,
.faq-body-section,
.about-body-section,
.about-cta-section,
.contact-body-section,
.privacy-body-section,
.default-body-section {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
}

.section-aside {
  position: sticky;
  top: 1rem;
  align-self: start;
  padding-right: 1.5rem;
  border-right: 1px solid var(--c-border);
}

.aside-label {
  font-family: var(--font-head);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.aside-nav {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.aside-link {
  font-size: .83rem;
  color: var(--c-text-dim);
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-link:hover { color: var(--c-cyan); border-bottom-color: var(--c-border); }

.aside-brand-card {
  margin-top: 1.5rem;
  padding: .8rem;
  border: 1px solid var(--c-border-gold);
  border-radius: var(--radius-card);
  background: var(--c-card-bg);
}
.aside-brand-name {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: .05em;
}
.aside-brand-type {
  font-size: .75rem;
  color: var(--c-text-dim);
  margin-top: .2rem;
}

.aside-related {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.aside-related-link {
  display: block;
  padding: .4rem 0;
  font-size: .82rem;
  color: var(--c-text-dim);
  border-bottom: 1px solid var(--c-border);
  transition: color .2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-related-link strong {
  font-weight: 500;
  color: inherit;
}
.aside-related-link:hover { color: var(--c-cyan); }

.aside-contact-info {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: .8rem;
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.contact-info-label {
  font-size: .7rem;
  color: var(--c-text-dim);
  letter-spacing: .05em;
}
.contact-info-val {
  font-size: .82rem;
  color: var(--c-cyan);
  font-weight: 500;
}

.aside-privacy-note {
  margin-top: 1rem;
  padding: .8rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-size: .78rem;
  color: var(--c-text-dim);
  line-height: 1.6;
}

/* ── figure 装饰 ── */
.body-figure,
.guides-figure,
.nav-section-figure,
.cta-figure {
  position: absolute;
  top: 2rem;
  right: 1.5rem;
  pointer-events: none;
  z-index: 0;
}
.figure-deco {
  font-family: var(--font-head);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: rgba(201, 168, 76, 0.06);
  line-height: 1;
  letter-spacing: -.02em;
  user-select: none;
}

.section-body {
  position: relative;
  z-index: 1;
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: baseline;
  gap: .7rem;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: .8rem;
}
.seq-num {
  font-size: .7em;
  color: var(--c-cyan);
  letter-spacing: .15em;
  font-weight: 400;
}

/* ══════════════════════════
   正文 prose
══════════════════════════ */
.prose-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-text);
  max-width: var(--prose-w);
}
.prose-content h2,
.prose-content h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  margin: 2rem 0 .8rem;
  letter-spacing: .03em;
}
.prose-content h2 { font-size: 1.25rem; }
.prose-content h3 { font-size: 1.05rem; color: var(--c-cyan); }
.prose-content p { margin-bottom: 1.1rem; }
.prose-content ul,
.prose-content ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.prose-content li { margin-bottom: .4rem; }
.prose-content a { color: var(--c-cyan); text-decoration: underline; text-decoration-color: rgba(0,229,255,.3); }
.prose-content a:hover { color: var(--c-gold); }
.prose-content strong { color: var(--c-gold); font-weight: 600; }
.prose-content code {
  background: rgba(0,229,255,.08);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .88em;
  font-family: 'Courier New', monospace;
  color: var(--c-cyan);
}
.prose-content blockquote {
  border-left: 3px solid var(--c-gold);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  color: var(--c-text-dim);
  font-style: italic;
}
.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
  font-size: .9rem;
}
.prose-content th,
.prose-content td {
  border: 1px solid var(--c-border);
  padding: .6rem .8rem;
  text-align: left;
}
.prose-content th {
  background: rgba(0,229,255,.06);
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--c-cyan);
}

/* ══════════════════════════
   卡片网格（首页指南）
══════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}

/* 子页列表：a 块，直接子 strong（契约） */
.card-block {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.1rem 1.2rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-card);
  background: var(--c-card-bg);
  color: var(--c-text);
  transition: border-color .2s, background .2s, transform .15s;
  min-height: 80px;
}
.card-block:hover {
  border-color: var(--c-cyan);
  background: rgba(0,229,255,.07);
  transform: translateY(-2px);
  color: var(--c-text);
}
.card-block > strong {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-cyan);
  letter-spacing: .03em;
  display: block;
}
.card-desc {
  font-size: .8rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}

/* ══════════════════════════
   站点地图链接（首页）
══════════════════════════ */
.sitemap-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .8rem;
}
.sitemap-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--c-border-gold);
  border-radius: var(--radius-card);
  background: rgba(201, 168, 76, 0.03);
  color: var(--c-text);
  transition: border-color .2s, background .2s;
  min-height: 70px;
}
.sitemap-item:hover {
  border-color: var(--c-gold);
  background: rgba(201, 168, 76, 0.07);
  color: var(--c-text);
}
.sitemap-item > strong {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-gold);
  letter-spacing: .03em;
}
.sitemap-item > span {
  font-size: .78rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}

/* ══════════════════════════
   CTA 行（about / contact）
══════════════════════════ */
.cta-row,
.faq-footer-nav,
.contact-links-row,
.privacy-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

/* ══════════════════════════
   页脚：footer > article(footer-inner) + article(footer-bottom)
   footer-inner 内有 nav.footer-nav（契约：footer 内有 nav）
══════════════════════════ */
.site-footer {
  margin-top: auto;
  background: rgba(0, 0, 0, .4);
  border-top: 1px solid var(--c-border);
  padding-bottom: calc(var(--nav-h) + 1rem);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 1.5rem 2rem;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.footer-brand-big {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(0, 229, 255, 0.12);
  line-height: 1;
  user-select: none;
}
.footer-brand-desc {
  font-size: .85rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-top: .4rem;
}
.footer-nav-link {
  font-size: .83rem;
  color: var(--c-text-dim);
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.footer-nav-link:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-border);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem 2rem;
  font-size: .78rem;
  color: var(--c-text-dim);
  text-align: center;
}
.footer-note {
  color: rgba(201, 168, 76, .5);
}

/* ══════════════════════════
   视差动效（parallax scroll）
══════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg-text {
    transition: transform .05s linear;
  }
  .parallax-layer {
    will-change: transform;
  }
  .card-block,
  .sitemap-item {
    transition: border-color .2s, background .2s, transform .2s cubic-bezier(.2,.8,.3,1), opacity .3s;
  }
  /* Intersection Observer targets */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ══════════════════════════
   主页专属
══════════════════════════ */
.main-home > .content-section { padding-top: 5rem; }
.main-home > .guides-section  { background: rgba(0,229,255,.02); }
.main-home > .nav-section     { background: rgba(201,168,76,.02); }

/* ══════════════════════════
   移动端
══════════════════════════ */
@media (max-width: 720px) {
  :root { --nav-h: 56px; }

  .content-section,
  .guides-section,
  .nav-section,
  .faq-body-section,
  .about-body-section,
  .about-cta-section,
  .contact-body-section,
  .privacy-body-section,
  .default-body-section {
    grid-template-columns: 1fr;
    padding: 2.5rem 1rem;
    gap: 1.5rem;
  }

  .section-aside {
    position: static;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 1.2rem;
  }

  .hero-section,
  .faq-hero-section,
  .about-hero-section,
  .contact-hero-section,
  .privacy-hero-section,
  .default-hero-section {
    min-height: 50vh;
    padding: 3.5rem 1rem 2.5rem;
    padding-bottom: calc(2.5rem + var(--nav-h));
  }

  .hero-bg-text {
    font-size: clamp(3rem, 20vw, 7rem);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 1.5rem;
  }

  .footer-brand-big {
    font-size: clamp(2.2rem, 14vw, 4rem);
  }

  .nav-menu {
    flex-direction: column;
    gap: .4rem;
  }
  .nav-pill {
    width: 100%;
    justify-content: center;
  }
  .nav-pill:last-child { margin-left: 0; }

  .hero-cta-row,
  .cta-row {
    flex-direction: column;
    align-items: center;
  }
  .btn-cta, .btn-outline {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .body-figure,
  .guides-figure,
  .nav-section-figure,
  .cta-figure {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .content-section,
  .faq-body-section,
  .about-body-section,
  .contact-body-section,
  .privacy-body-section,
  .default-body-section {
    grid-template-columns: 160px 1fr;
    gap: 2rem;
  }
}

/* ══════════════════════════
   滚动条样式
══════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: rgba(0,229,255,.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,.4); }

/* ══════════════════════════
   选中色
══════════════════════════ */
::selection { background: rgba(0,229,255,.2); color: #fff; }
