/* ==========================================================================
   银河主站 · 共享样式表 /assets/site.css
   深空蓝黑基底 · 银河紫唯一强调 · 星云青与暖金编号点缀
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }
li { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #05070E;
  --ink-800: #0B1020;
  --ink-700: #131A2E;
  --line:    #2A3450;
  --mute:    #6E7BA6;
  --body:    #C7CEE4;
  --hi:      #F2F4FF;
  --violet:  #6E4BFF;
  --cyan:    #4BE3D0;
  --gold:    #E8B45C;
  --dim:     #3A4256;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Source Han Sans SC", "Noto Sans CJK SC", system-ui,
               -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --shell: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;

  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, .6);
  --shadow-soft: 0 24px 60px -34px rgba(0, 0, 0, .95);
  --glass: rgba(11, 16, 32, .74);
  --glass-strong: rgba(5, 7, 14, .92);
}

/* ---------- 3. 基底与中文排版 ---------- */
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 78% -6%, rgba(110, 75, 255, .24), transparent 62%),
    radial-gradient(860px 540px at 6% 10%, rgba(75, 227, 208, .09), transparent 66%),
    radial-gradient(1500px 900px at 50% 116%, rgba(110, 75, 255, .13), transparent 72%);
  background-attachment: fixed;
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(110, 75, 255, .45); color: var(--hi); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

main { display: block; padding-top: clamp(104px, 13vw, 156px); }

/* ---------- 4. 通用工具 ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: clamp(56px, 8vw, 120px); }
.section--tight { padding-block: clamp(32px, 4.5vw, 64px); }

.divider {
  height: 1px;
  border: 0;
  margin: clamp(36px, 6vw, 80px) 0;
  background: linear-gradient(90deg, var(--line), rgba(42, 52, 80, .15));
}

.mono {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}
.mono--gold { font-family: var(--font-mono); color: var(--gold); letter-spacing: .08em; }

/* ---------- 5. 字体层级 ---------- */
.display {
  font-size: clamp(52px, 11.5vw, 160px);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--hi);
  text-shadow: 0 0 70px rgba(110, 75, 255, .38);
}

.h-sec {
  font-size: clamp(28px, 4.6vw, 56px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--hi);
}

.h-sub {
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--hi);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.lede {
  max-width: 54ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
  color: var(--mute);
}

.prose {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--body);
}
.prose p + p { margin-top: 1.2em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; color: var(--hi); line-height: 1.35; }
.prose h3 { margin-top: 1.5em; font-size: 19px; font-weight: 500; color: var(--hi); }
.prose ul, .prose ol { margin-top: .8em; display: grid; gap: .5em; padding-left: 0; }
.prose li { display: flex; gap: 10px; align-items: baseline; }
.prose li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- 6. 框景 ---------- */
.frame {
  position: relative;
  padding: clamp(24px, 4.5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 16, 32, .74), rgba(5, 7, 14, .88));
  overflow: hidden;
}
.frame::before {
  content: "";
  position: absolute;
  inset: clamp(8px, 1.4vw, 14px);
  border: 1px solid rgba(42, 52, 80, .6);
  border-radius: 2px;
  pointer-events: none;
}
.frame > * { position: relative; z-index: 1; }

/* ---------- 7. 卡片 / 索引行 / 标签 / 状态点 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 16, 32, .76);
  box-shadow: var(--shadow-hard);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover,
.card:focus-within {
  transform: translate(-2px, -2px);
  border-color: rgba(110, 75, 255, .7);
  box-shadow: 8px 8px 0 rgba(110, 75, 255, .26);
}

.index-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 36px);
  padding: clamp(20px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
}
.index-row__num {
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 26, 46, .72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mute);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(75, 227, 208, .14);
}
.status-dot--gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 180, 92, .14); }
.status-dot--dim { background: var(--dim); box-shadow: none; }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mute);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; padding: 0 10px; color: var(--line); }
.breadcrumb a { text-decoration: none; color: var(--mute); }
.breadcrumb a:hover { color: var(--hi); }

/* ---------- 9. 图片容器基础规则（页面阶段放占位） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  background:
    radial-gradient(120% 90% at 28% 12%, rgba(110, 75, 255, .38), transparent 60%),
    radial-gradient(100% 80% at 82% 92%, rgba(75, 227, 208, .16), transparent 62%),
    var(--ink-800);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(242, 244, 255, .3) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .32;
  pointer-events: none;
}
.media-frame > img,
.media-frame > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame__caption {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mute);
}

/* ---------- 10. 显现协议 ---------- */
[data-reveal] { opacity: 1; transform: none; }
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .24s ease, transform .24s ease;
  will-change: opacity, transform;
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 11. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 400;
  padding: 13px 24px;
  border-radius: 0 0 999px 999px;
  background: var(--violet);
  color: var(--hi);
  font-size: 14px;
  letter-spacing: .1em;
  text-decoration: none;
  transform: translate(-50%, -110%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }
.skip-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- 12. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 18px rgba(110, 75, 255, .8);
  pointer-events: none;
}

/* ==========================================================================
   13. 头部
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 16px 0 0;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- 品牌浮岛 --- */
.brand { flex: 0 0 auto; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 7px 18px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, min-height .2s ease;
}
.brand-link:hover { border-color: rgba(110, 75, 255, .65); }

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%,
              #F2F4FF 0 7%, var(--violet) 36%, rgba(110, 75, 255, .12) 64%, transparent 74%);
  box-shadow: 0 0 16px rgba(110, 75, 255, .85), inset 0 0 8px rgba(75, 227, 208, .6);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -6px -3px;
  border-radius: 50%;
  border: 1px solid rgba(75, 227, 208, .5);
  transform: rotate(-24deg);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--hi);
}
.brand-tag {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--mute);
}

/* --- 悬浮胶囊导航 --- */
.nav-capsule {
  margin-inline: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color .24s ease, border-color .24s ease,
              padding .24s ease, box-shadow .24s ease;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--mute);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, min-height .2s ease;
}
.nav-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .18s ease, transform .18s ease;
}
.nav-link:hover { color: var(--hi); background: rgba(110, 75, 255, .14); }
.nav-link[aria-current="page"] {
  color: var(--hi);
  background: rgba(110, 75, 255, .2);
}
.nav-link[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 10px var(--violet);
}

/* --- 右侧动作区 --- */
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease,
              color .18s ease, border-color .18s ease, min-height .2s ease;
}

.btn-primary {
  background: var(--violet);
  color: var(--hi);
  box-shadow: 0 12px 32px -14px rgba(110, 75, 255, .95),
              inset 0 0 0 1px rgba(242, 244, 255, .2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -14px rgba(110, 75, 255, 1),
              inset 0 0 0 1px rgba(242, 244, 255, .34);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--glass);
  color: var(--body);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover { color: var(--hi); border-color: rgba(110, 75, 255, .75); }

/* 星轨描边 */
.btn-orbit { position: relative; }
.btn-orbit::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px dashed rgba(75, 227, 208, .6);
  opacity: 0;
  pointer-events: none;
  animation: orbit-spin 9s linear infinite;
  animation-play-state: paused;
  transition: opacity .3s ease;
}
.btn-orbit:hover::after,
.btn-orbit:focus-visible::after {
  opacity: 1;
  animation-play-state: running;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* --- 移动导航按钮 --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--hi);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar + .nav-toggle-bar { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 桌面滚动收缩态 --- */
@media (min-width: 1001px) {
  .site-header[data-scrolled="true"] .nav-capsule {
    padding: 4px;
    background: var(--glass-strong);
    border-color: rgba(110, 75, 255, .42);
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .95);
  }
  .site-header[data-scrolled="true"] .nav-link { min-height: 36px; }
  .site-header[data-scrolled="true"] .brand-link,
  .site-header[data-scrolled="true"] .btn { min-height: 40px; }
}

/* ==========================================================================
   14. 页脚
   ========================================================================== */
.site-footer {
  margin-top: clamp(96px, 14vw, 200px);
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
}

.footer-frame {
  position: relative;
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: clamp(26px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-hard);
  background: linear-gradient(180deg, rgba(11, 16, 32, .92), rgba(5, 7, 14, .96));
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: .16em;
  color: var(--hi);
}
.footer-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mute);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(28px, 4vw, 44px);
}

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mute);
}

.footer-list { display: grid; gap: 10px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  font-size: 15px;
  color: var(--body);
  text-decoration: none;
  transition: color .18s ease;
}
.footer-link::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: .55;
  transition: opacity .18s ease, box-shadow .18s ease;
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--hi); }
.footer-link:hover::before,
.footer-link:focus-visible::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--cyan);
}

.footer-col--quiet .footer-link { color: var(--mute); opacity: .88; }
.footer-col--quiet .footer-link:hover,
.footer-col--quiet .footer-link:focus-visible { color: var(--hi); opacity: 1; }

.footer-note {
  display: block;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mute);
}

.footer-contact {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px 32px;
}
.contact-item { display: grid; gap: 4px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--dim);
}
.contact-value {
  font-size: 15px;
  color: var(--body);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(26px, 4vw, 42px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mute);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--dim);
}

/* ==========================================================================
   15. 响应式
   ========================================================================== */
@media (max-width: 1000px) {
  .header-actions .btn-ghost { display: none; }

  .nav-toggle { display: inline-flex; }

  .nav-capsule {
    position: fixed;
    top: calc(16px + 60px);
    left: var(--gutter);
    right: var(--gutter);
    margin: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(5, 7, 14, .95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-hard), var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav-capsule[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
  }

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

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; line-height: 1.8; background-attachment: scroll; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .brand-tag { display: none; }
  .brand-link { padding: 7px 14px 7px 12px; }
  .header-actions .btn-primary { padding: 0 14px; font-size: 13px; letter-spacing: .05em; }
  .index-row { grid-template-columns: 52px minmax(0, 1fr); }
  .footer-frame { box-shadow: 4px 4px 0 rgba(0, 0, 0, .6); }
}

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

  html.js [data-reveal] {
    transform: none;
    transition: opacity .18s linear;
  }

  .btn-orbit::after { animation: none !important; opacity: 0 !important; }
  .skip-link { transition: none; }
  .card,
  .btn,
  .nav-link,
  .footer-link { transition: none; }
  .card:hover,
  .card:focus-within { transform: none; }
  .btn-primary:hover { transform: none; }
}
