/* =========================================================
   银河娱乐会 · 共享样式 /assets/site.css
   星图蓝图系统：框架式导航 + 轨道节点 + 技术索引
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

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

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

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --deep-space: #0B1026;
  --star-black: #05080F;
  --panel-stardust: #151B3D;
  --galaxy-violet: #7B5CFF;
  --nebula-cyan: #00E0C6;
  --warm-gold: #FFC857;
  --star-white: #E9ECFF;
  --mist-blue: #A6ADD8;
  --grid-line: #2A3468;
  --violet-mid: #3A2E7A;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 页面底色 · 网格 · 星尘 ---------- */
body {
  background-color: var(--deep-space);
  background-image:
    radial-gradient(900px 540px at 10% -10%, rgba(123, 92, 255, .28), transparent 62%),
    radial-gradient(780px 480px at 92% 4%, rgba(0, 224, 198, .14), transparent 60%),
    radial-gradient(680px 520px at 50% 108%, rgba(58, 46, 122, .42), transparent 66%),
    linear-gradient(180deg, #0B1026 0%, #0A0E22 55%, #05080F 100%);
  color: var(--star-white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

/* 蓝图坐标网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 52, 104, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 52, 104, .34) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 82%);
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 82%);
}

/* 微光粒子 */
body::after {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  opacity: .75;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(233, 236, 255, .85), transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 68%, rgba(0, 224, 198, .7), transparent 60%),
    radial-gradient(1.8px 1.8px at 47% 14%, rgba(233, 236, 255, .6), transparent 60%),
    radial-gradient(1.3px 1.3px at 66% 52%, rgba(255, 200, 87, .6), transparent 60%),
    radial-gradient(1.5px 1.5px at 81% 28%, rgba(123, 92, 255, .8), transparent 60%),
    radial-gradient(1.1px 1.1px at 92% 74%, rgba(233, 236, 255, .6), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 90%, rgba(0, 224, 198, .55), transparent 60%);
  animation: galaxy-drift 110s linear infinite;
}

@keyframes galaxy-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-3.5%, -2.5%, 0); }
}

/* ---------- 4. 中文排版与通用工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main {
  display: block;
  position: relative;
  z-index: 1;
}

.mono { font-family: var(--font-mono); letter-spacing: .04em; }

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist-blue);
}

.lede {
  font-size: 17px;
  line-height: 1.9;
  color: var(--mist-blue);
  max-width: 60ch;
}

.index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--galaxy-violet);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(42, 52, 104, .95), rgba(42, 52, 104, 0));
}

.rule--dashed {
  height: 0;
  border-top: 1px dashed rgba(42, 52, 104, .9);
  background: none;
}

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 20px;
  background: var(--warm-gold);
  color: #0B1026;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 0 0 10px 10px;
  transition: top .22s var(--ease);
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 6. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(42, 52, 104, .5);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--galaxy-violet), var(--nebula-cyan) 55%, var(--warm-gold));
}

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(11, 16, 38, .97), rgba(11, 16, 38, .9));
  border-bottom: 1px solid var(--grid-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--star-white);
}

.header-scale {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 22px;
  padding-inline: var(--gutter);
  border-bottom: 1px dashed rgba(42, 52, 104, .7);
  background-image: repeating-linear-gradient(90deg, rgba(42, 52, 104, .95) 0 1px, transparent 1px 26px);
  background-position: left bottom;
  background-size: 100% 8px;
  background-repeat: repeat-x;
}

.header-scale__label {
  padding-inline: 12px;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist-blue);
  background: var(--deep-space);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 36px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
}

/* 品牌署名 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(123, 92, 255, .65);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(123, 92, 255, .32), rgba(11, 16, 38, .9));
  transition: box-shadow .26s var(--ease), border-color .26s var(--ease);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px dashed rgba(0, 224, 198, .35);
  border-radius: 50%;
}

.brand-mark svg { width: 24px; height: 24px; }

.brand:hover .brand-mark {
  border-color: var(--nebula-cyan);
  box-shadow: 0 0 18px rgba(0, 224, 198, .28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .07em;
  color: var(--star-white);
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist-blue);
}

/* 主导航 */
.primary-nav {
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.3vw, 22px);
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--star-white);
  transition: color .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--nebula-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}

.nav-link:hover { color: var(--nebula-cyan); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--nebula-cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm-gold);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(255, 200, 87, .9);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 9px 14px;
  border: 1px solid var(--grid-line);
  border-radius: 10px;
  color: var(--mist-blue);
  transition: border-color .22s var(--ease), color .22s var(--ease);
}

.nav-toggle-text {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .26s var(--ease), top .26s var(--ease);
}

.nav-toggle-bars::before { top: 2px; }
.nav-toggle-bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] {
  color: var(--nebula-cyan);
  border-color: var(--nebula-cyan);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }

/* 双星入口 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.star-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 13px;
  border: 1px solid rgba(123, 92, 255, .6);
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 18% 20%, rgba(123, 92, 255, .34), rgba(21, 27, 61, .65));
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--star-white);
  white-space: nowrap;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}

.star-entry__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--nebula-cyan);
}

.star-entry__label { line-height: 1; }

.star-entry:hover {
  border-color: var(--nebula-cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 224, 198, .3), 0 10px 24px rgba(0, 224, 198, .16);
}

.star-entry--alt {
  border-color: rgba(255, 200, 87, .58);
  background: radial-gradient(circle at 18% 20%, rgba(255, 200, 87, .26), rgba(21, 27, 61, .65));
}

.star-entry--alt .star-entry__index { color: var(--warm-gold); }

.star-entry--alt:hover {
  border-color: var(--warm-gold);
  box-shadow: 0 0 0 1px rgba(255, 200, 87, .32), 0 10px 24px rgba(255, 200, 87, .18);
}

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-pill);
  background: rgba(21, 27, 61, .72);
  color: var(--star-white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: color .24s var(--ease), border-color .24s var(--ease),
              background-color .24s var(--ease), background-size .32s var(--ease),
              box-shadow .24s var(--ease), transform .24s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--warm-gold);
  border-color: var(--warm-gold);
  color: #0B1026;
}

.btn--gold:hover {
  background: #FFD98A;
  border-color: #FFD98A;
  box-shadow: 0 10px 26px rgba(255, 200, 87, .26);
}

.btn--ghost {
  border-color: rgba(0, 224, 198, .6);
  color: var(--nebula-cyan);
  background: rgba(0, 224, 198, .06);
}

.btn--ghost:hover {
  background: rgba(0, 224, 198, .16);
  border-color: var(--nebula-cyan);
  box-shadow: 0 10px 26px rgba(0, 224, 198, .18);
}

.btn--violet {
  border-color: rgba(123, 92, 255, .65);
  color: #D8CFFF;
  background: rgba(123, 92, 255, .16);
}

.btn--violet:hover {
  background: rgba(123, 92, 255, .3);
  border-color: var(--galaxy-violet);
}

.btn--fill {
  border-color: rgba(255, 200, 87, .65);
  color: var(--warm-gold);
  background-color: rgba(21, 27, 61, .6);
  background-image: linear-gradient(var(--warm-gold), var(--warm-gold));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
}

.btn--fill:hover {
  background-size: 100% 100%;
  border-color: var(--warm-gold);
  color: #0B1026;
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: .45;
  pointer-events: none;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist-blue);
}

.breadcrumb a {
  color: var(--mist-blue);
  transition: color .2s var(--ease);
}

.breadcrumb a:hover { color: var(--nebula-cyan); }

.breadcrumb [aria-current="page"] { color: var(--star-white); }

.crumb-sep { color: var(--grid-line); }

/* ---------- 10. 章节与标题 ---------- */
.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--tight { padding-block: clamp(30px, 4vw, 56px); }

.section--band {
  background: linear-gradient(180deg, rgba(21, 27, 61, .55), rgba(11, 16, 38, 0));
  border-block: 1px solid rgba(42, 52, 104, .55);
}

.section-head {
  max-width: 66ch;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--nebula-cyan);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--nebula-cyan);
}

.section-title {
  margin-top: 14px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.3;
}

.section-lede {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--mist-blue);
  max-width: 62ch;
}

/* ---------- 11. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

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

@media (max-width: 1000px) {
  .grid--3,
  .grid--4,
  .grid--sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 12. 星尘面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: linear-gradient(150deg, rgba(21, 27, 61, .9), rgba(11, 16, 38, .58));
  border-left: 2px solid var(--galaxy-violet);
}

.panel--frame {
  border: 1px solid rgba(42, 52, 104, .9);
  border-left: 2px solid var(--galaxy-violet);
}

.panel--star {
  background: radial-gradient(120% 100% at 0% 0%, rgba(123, 92, 255, .3), rgba(21, 27, 61, .9) 58%);
  border-left-color: var(--nebula-cyan);
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.45;
}

.panel-body {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--mist-blue);
}

/* ---------- 13. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(123, 92, 255, .55);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C4B7FF;
  white-space: nowrap;
}

.tag--cyan {
  border-color: rgba(0, 224, 198, .5);
  color: var(--nebula-cyan);
}

.tag--gold {
  border-color: rgba(255, 200, 87, .58);
  color: var(--warm-gold);
}

/* ---------- 14. 轨道浏览 ---------- */
.rail { position: relative; }

.rail-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 92, 255, .7) transparent;
}

.rail-track::-webkit-scrollbar { height: 6px; }
.rail-track::-webkit-scrollbar-track { background: rgba(42, 52, 104, .35); }
.rail-track::-webkit-scrollbar-thumb {
  background: rgba(123, 92, 255, .75);
  border-radius: var(--radius-pill);
}

.rail-item {
  flex: 0 0 clamp(238px, 32vw, 336px);
  scroll-snap-align: start;
  min-width: 0;
}

.rail-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.rail-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--grid-line);
  border-radius: 50%;
  color: var(--mist-blue);
  font-family: var(--font-mono);
  font-size: 15px;
  transition: border-color .22s var(--ease), color .22s var(--ease), background-color .22s var(--ease);
}

.rail-btn:hover {
  border-color: var(--nebula-cyan);
  color: var(--nebula-cyan);
  background: rgba(0, 224, 198, .1);
}

.rail-btn[disabled] {
  opacity: .32;
  cursor: not-allowed;
}

/* ---------- 15. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(42, 52, 104, .9);
  background:
    radial-gradient(120% 110% at 12% 8%, rgba(58, 46, 122, .7), transparent 62%),
    linear-gradient(150deg, rgba(21, 27, 61, .9), rgba(5, 8, 15, .95));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 52, 104, .45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 52, 104, .45) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5;
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist-blue);
}

.media-corner {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  border: 1px solid var(--nebula-cyan);
}

.media-corner--tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.media-corner--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.media-corner--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.media-corner--br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* ---------- 16. 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--star-white);
}

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
}

.prose h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: .5em; }

.prose strong { color: var(--nebula-cyan); font-weight: 700; }

.prose a {
  color: var(--nebula-cyan);
  border-bottom: 1px solid rgba(0, 224, 198, .4);
  transition: border-color .2s var(--ease);
}

.prose a:hover { border-bottom-color: var(--nebula-cyan); }

.prose blockquote {
  padding-left: 18px;
  border-left: 2px solid var(--galaxy-violet);
  color: var(--mist-blue);
}

/* ---------- 17. 筛选 ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 18px;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--mist-blue);
  transition: border-color .22s var(--ease), color .22s var(--ease), background-color .22s var(--ease);
}

.chip:hover {
  border-color: var(--galaxy-violet);
  color: var(--star-white);
  background: rgba(123, 92, 255, .14);
}

.chip[aria-pressed="true"] {
  border-color: var(--nebula-cyan);
  background: rgba(0, 224, 198, .14);
  color: var(--nebula-cyan);
}

/* ---------- 18. 折叠面板 ---------- */
.accordion {
  border-top: 1px solid rgba(42, 52, 104, .85);
}

.accordion-item {
  border-bottom: 1px solid rgba(42, 52, 104, .85);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 4px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .2s var(--ease);
}

.accordion-trigger:hover { color: var(--nebula-cyan); }

.accordion-trigger::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--nebula-cyan);
  transition: transform .26s var(--ease);
}

.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .32s var(--ease);
}

.accordion-panel-inner {
  padding: 0 4px 20px;
  max-width: 70ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--mist-blue);
}

/* ---------- 19. 步骤节点 ---------- */
.steps {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid rgba(42, 52, 104, .9);
}

.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm-gold);
  box-shadow: 0 0 12px rgba(255, 200, 87, .8);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--warm-gold);
}

.step-title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
}

.step-body {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist-blue);
}

/* ---------- 20. 时间轴 ---------- */
.timeline {
  position: relative;
  padding-left: 26px;
  border-left: 1px solid rgba(42, 52, 104, .9);
}

.timeline-item {
  position: relative;
  padding-bottom: clamp(22px, 3vw, 38px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--galaxy-violet);
  background: var(--deep-space);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.timeline-item:hover::before {
  border-color: var(--nebula-cyan);
  box-shadow: 0 0 12px rgba(0, 224, 198, .8);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--nebula-cyan);
}

.timeline-title {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
}

.timeline-body {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--mist-blue);
  max-width: 64ch;
}

/* ---------- 21. 显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 22. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(40px, 6vw, 76px) 0 26px;
  background: linear-gradient(180deg, #0A0E22 0%, var(--star-black) 100%);
  border-top: 1px solid var(--grid-line);
  color: var(--star-white);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 92, 255, .85) 30%, rgba(0, 224, 198, .7) 70%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3.2vw, 52px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.footer-brand {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.3;
}

.footer-tagline {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist-blue);
}

.footer-cadence {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nebula-cyan);
}

.footer-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(42, 52, 104, .85);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist-blue);
}

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

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: var(--star-white);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--nebula-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}

.footer-link:hover {
  color: var(--nebula-cyan);
  transform: translateX(2px);
}

.footer-link:hover::after { transform: scaleX(1); }

.footer-contact {
  display: grid;
  gap: 16px;
}

.footer-contact__item {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist-blue);
}

.footer-contact__value {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--star-white);
  word-break: break-word;
}

.footer-contact__value--mono {
  font-family: var(--font-mono);
  letter-spacing: .05em;
}

.copy-btn {
  margin-top: 4px;
  padding: 0 0 2px;
  border-bottom: 1px dashed rgba(0, 224, 198, .5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nebula-cyan);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.copy-btn:hover,
.copy-btn[data-copied] {
  color: var(--warm-gold);
  border-bottom-color: var(--warm-gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--wrap);
  margin: clamp(32px, 4vw, 60px) auto 0;
  padding: 20px var(--gutter) 0;
  border-top: 1px dashed rgba(42, 52, 104, .85);
  font-size: 13px;
  color: var(--mist-blue);
}

.footer-bottom__meta {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  color: var(--mist-blue);
}

.copy-status {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 8px var(--gutter) 0;
  min-height: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--warm-gold);
}

.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 30px);
  bottom: clamp(14px, 2vw, 30px);
  z-index: 90;
  padding: 11px 20px;
  border: 1px solid rgba(0, 224, 198, .55);
  border-radius: var(--radius-pill);
  background: rgba(11, 16, 38, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--nebula-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  transition: border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}

.to-top:hover {
  border-color: var(--warm-gold);
  color: var(--warm-gold);
  transform: translateY(-2px);
}

.to-top[hidden] { display: none; }

/* ---------- 23. 响应式：页头 / 页脚 ---------- */
@media (max-width: 1160px) {
  .nav-toggle { display: inline-flex; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding-block: 12px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height .32s var(--ease), border-color .32s var(--ease), padding .32s var(--ease);
  }

  .primary-nav[data-open] {
    max-height: 76vh;
    overflow-y: auto;
    padding-block: 12px;
    border-top-color: var(--grid-line);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
  }

  .nav-link {
    display: block;
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px dashed rgba(42, 52, 104, .6);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"]::before {
    left: auto;
    right: 6px;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
  }
}

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

@media (max-width: 620px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .brand-name { font-size: 17px; }
  .brand-domain { font-size: 9.5px; letter-spacing: .14em; }
  .nav-toggle-text { display: none; }
  .star-entry { padding: 8px 13px; font-size: 13px; }
  .header-scale__label { font-size: 9.5px; letter-spacing: .16em; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  body::after { animation: none; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
