/* ==========================================================================
   6676网页版 · 共享样式表 /assets/site.css
   深墨蓝仪表盘底色 + 电光青路径 + 荧光橙节点
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-950: #0A1A2F;
  --ink-800: #12304F;
  --ink-700: #17456F;
  --signal-cyan: #35E0F0;
  --signal-orange: #FF7A2F;
  --paper-white: #F6F2EA;
  --slate-300: #A9BCCF;
  --state-mint: #7FE3C4;
  --state-amber: #FFC857;
  --paper-layer: #EDE6D8;
  --grid-line: rgba(53, 224, 240, 0.18);

  --rail-w: 240px;
  --shell-max: 1180px;
  --radius: 2px;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-display: "PingFang SC", "Source Han Sans SC", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul { margin: 0; }

img, picture, svg, video { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 3. 基础与中文排版 ---------- */
body {
  position: relative;
  min-height: 100vh;
  background-color: var(--ink-950);
  color: var(--paper-white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(130% 100% at 15% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(130% 100% at 15% 0%, #000 0%, transparent 78%);
}

main { position: relative; z-index: 1; }

p { max-width: 38em; }

strong, b { font-weight: 600; color: var(--paper-white); }

::selection { background: var(--signal-cyan); color: var(--ink-950); }

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--signal-cyan);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--signal-orange);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

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

/* ---------- 5. 头部与侧边轨道 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 26, 47, 0.94);
  border-bottom: 1px solid var(--grid-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 9px 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--paper-white);
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--slate-300);
}

/* 导航：移动端抽屉 */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  width: min(320px, 86vw);
  padding: 78px 18px 30px;
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-950) 100%);
  border-right: 1px solid var(--grid-line);
  box-shadow: 26px 0 64px rgba(0, 0, 0, 0.55);
  transform: translateX(-103%);
  transition: transform 0.34s cubic-bezier(0.22, 0.68, 0.28, 1);
  overflow-y: auto;
}

.site-nav[data-open] { transform: translateX(0); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 14px;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  color: var(--slate-300);
  border-left: 2px solid rgba(169, 188, 207, 0.22);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(169, 188, 207, 0.55);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  color: var(--paper-white);
  background: rgba(53, 224, 240, 0.08);
  border-left-color: var(--signal-cyan);
}

.nav-link[aria-current="page"] {
  color: var(--paper-white);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(53, 224, 240, 0.18), transparent 92%);
  border-left-color: var(--signal-orange);
}

.nav-link[aria-current="page"]::before {
  background: var(--signal-cyan);
  border-color: var(--signal-cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 240, 0.2);
}

.nav-cta {
  display: none;
}

/* 汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(53, 224, 240, 0.06);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav-toggle:hover { background: rgba(53, 224, 240, 0.16); }

.nav-toggle-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper-white);
  transition: background-color 0.2s ease;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--paper-white);
  transition: transform 0.24s ease;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* 头部右侧工具区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.path-code {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--signal-cyan);
  border: 1px dashed rgba(53, 224, 240, 0.45);
  border-radius: var(--radius);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--signal-orange);
  color: var(--ink-950);
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(255, 122, 47, 0.26);
}

.btn-primary:hover {
  background: #FF8F4D;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 122, 47, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--paper-white);
  border-color: rgba(53, 224, 240, 0.4);
}

.btn-ghost:hover {
  background: rgba(53, 224, 240, 0.1);
  border-color: var(--signal-cyan);
  color: var(--signal-cyan);
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  padding: 56px 24px 26px;
  border-top: 1px solid var(--grid-line);
  background: linear-gradient(180deg, rgba(18, 48, 79, 0.55) 0%, var(--ink-950) 72%);
}

.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 36px 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--grid-line);
}

.footer-col { min-width: 0; }

.footer-brand-mark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--paper-white);
}

.footer-tagline {
  margin: 10px 0 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate-300);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-cyan);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--signal-cyan); }

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-300);
  word-break: break-word;
}

.footer-contact-key {
  flex: 0 0 auto;
  min-width: 58px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(169, 188, 207, 0.72);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
}

.footer-icp {
  max-width: none;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(169, 188, 207, 0.85);
}

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------- 8. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }

.grid-2,
.grid-3 {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.divider {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--grid-line) 0 8px,
    transparent 8px 16px
  );
}

/* ---------- 9. 基础组件 ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper-white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-cyan);
}

.lede {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(246, 242, 234, 0.88);
}

.prose { font-size: 17px; line-height: 1.85; }
.prose p { max-width: 38em; margin-bottom: 1.1em; color: rgba(246, 242, 234, 0.86); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 1.6em 0 0.7em; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -0.01em; }
.prose h3 { margin: 1.4em 0 0.6em; font-size: 1.15rem; font-weight: 600; }
.prose ul, .prose ol { max-width: 38em; margin: 0 0 1.1em; padding-left: 1.3em; color: rgba(246, 242, 234, 0.86); }
.prose li { margin-bottom: 0.45em; }

.chapter {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
  padding: 10px 0 12px 16px;
  border-left: 3px solid var(--signal-cyan);
  border-bottom: 1px solid var(--grid-line);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-orange);
  white-space: nowrap;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card {
  position: relative;
  padding: 22px;
  background: linear-gradient(160deg, rgba(18, 48, 79, 0.9) 0%, rgba(10, 26, 47, 0.92) 100%);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(237, 230, 216, 0.08);
  border-radius: var(--radius);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(53, 224, 240, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.card-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate-300);
}

.card--paper {
  background: var(--paper-layer);
  border-color: rgba(10, 26, 47, 0.24);
  color: #16283D;
}

.card--paper::after { border-color: rgba(10, 26, 47, 0.12); }
.card--paper .card-text { color: rgba(22, 40, 61, 0.78); }
.card--paper .card-title { color: #0A1A2F; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid transparent;
}

.badge--live {
  background: rgba(127, 227, 196, 0.16);
  color: var(--state-mint);
  border-color: rgba(127, 227, 196, 0.42);
}

.badge--soon {
  background: rgba(255, 200, 87, 0.14);
  color: var(--state-amber);
  border-color: rgba(255, 200, 87, 0.42);
}

.badge--new {
  background: rgba(255, 122, 47, 0.16);
  color: #FFB07A;
  border-color: rgba(255, 122, 47, 0.46);
}

.badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--state-mint);
}

.badge--soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--state-amber);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--slate-300);
  background: transparent;
  border: 1px solid rgba(169, 188, 207, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  color: var(--paper-white);
  border-color: var(--signal-cyan);
}

.chip[aria-pressed="true"] {
  background: var(--signal-cyan);
  color: #07202B;
  border-color: var(--signal-cyan);
  font-weight: 600;
}

.accordion { border-top: 1px solid var(--grid-line); }
.accordion-item { border-bottom: 1px solid var(--grid-line); }

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper-white);
  cursor: pointer;
}

.accordion-trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--signal-cyan);
}

.accordion-trigger[aria-expanded="true"]::after { content: "–"; }

.accordion-panel {
  padding: 0 4px 20px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--slate-300);
}

.accordion-panel[hidden] { display: none; }

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate-300);
}

.crumb-sep { color: rgba(53, 224, 240, 0.6); }

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--signal-cyan);
}

/* 图片容器基础规则（页面阶段直接放 <img>） */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 10px;
  background: var(--paper-layer);
  border: 1px solid rgba(237, 230, 216, 0.42);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}

.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 10. 滚动辅助元素（由 JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--signal-cyan), var(--signal-orange));
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--signal-cyan);
  background: rgba(18, 48, 79, 0.92);
  border: 1px solid var(--signal-cyan);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 11. 显现 ---------- */
body[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

body[data-reveal-ready] [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---------- 12. 动效 ---------- */
@keyframes kit-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@media (prefers-reduced-motion: no-preference) {
  .badge--live::before,
  .badge--soon::before {
    animation: kit-pulse 2.6s ease-in-out infinite;
  }
}

/* ---------- 13. 断点：桌面侧边轨道 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    border-bottom: 0;
    border-right: 1px solid var(--grid-line);
    background: linear-gradient(180deg, rgba(18, 48, 79, 0.96) 0%, rgba(10, 26, 47, 0.99) 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
    min-height: 0;
    padding: 28px 20px 22px;
    overflow-y: auto;
  }

  .brand { margin-bottom: 26px; }
  .brand-name { font-size: 20px; }
  .brand-line { letter-spacing: 0.14em; }

  .site-nav {
    position: static;
    width: auto;
    flex: 1 1 auto;
    padding: 0;
    transform: none;
    background: transparent;
    border-right: 0;
    box-shadow: none;
    overflow-y: auto;
  }

  .nav-cta { display: none; }

  .nav-toggle { display: none; }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 20px 0 0;
  }

  .header-actions .btn { width: 100%; }
  .header-actions .path-code { align-self: flex-start; }

  .to-top { right: 28px; bottom: 28px; }
}

/* ---------- 14. 断点：平板与手机 ---------- */
@media (max-width: 1023px) {
  .nav-cta {
    display: flex;
    width: 100%;
    margin-top: 22px;
  }

  .header-actions .btn-primary { display: none; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { margin-top: 76px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { padding: 0 18px; }
  .section { padding: 46px 0; }
  .path-code { font-size: 10px; padding: 3px 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .card { padding: 18px; }
}

@media (max-width: 420px) {
  .header-actions .path-code { display: none; }
}

/* ---------- 15. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .site-nav { transition: none; }

  body[data-reveal-ready] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
