/* ============================================================
   7安装游戏站 · /assets/site.css
   共享外壳：reset / tokens / 排版 / 刊头 / 页脚 / 通用组件
   ============================================================ */

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

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

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

ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; text-decoration: none; }

/* ---------- 2. tokens ---------- */
:root {
  --ink: #0B0F14;
  --panel: #131B22;
  --panel-2: #18232C;
  --cyan: #00E5FF;
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --mist: #7CF7FF;
  --orange: #FF6B35;
  --gold: #FFC857;
  --paper: #EAF6F8;
  --slate: #93A6B0;
  --line: #24313B;
  --neon: linear-gradient(120deg, #00E5FF, #5A6BFF);

  --font-display: "DIN Condensed", "Oswald", "Bebas Neue", "Haettenschweiler", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --font-gift: "HarmonyOS Sans Rounded", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;

  --r-card: 24px;
  --r-media: 20px;
  --r-pill: 999px;
  --r-cell: 8px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;
  --sp-7: 160px;

  --w-max: 1280px;
  --w-wide: 1440px;
  --header-pad: clamp(18px, 3vw, 32px);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at 78% -8%, rgba(0, 229, 255, 0.10), transparent 62%),
    radial-gradient(900px 540px at 4% 2%, rgba(90, 107, 255, 0.10), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(0, 229, 255, 0.28); color: #ffffff; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: clamp(17px, 1.8vw, 19px); }

p { color: #C6D8DE; }

strong { color: var(--paper); }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }

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

/* ---------- 4. 工具类 ---------- */
.shell {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.shell--wide { max-width: var(--w-wide); }

.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--open { padding-block: clamp(80px, 10vw, 160px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section__head h2 { margin: 0; }

.stack { display: flex; flex-direction: column; gap: var(--sp-2); }
.stack--lg { gap: var(--sp-3); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rule { height: 1px; border: 0; background: var(--line); margin: 0; }

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

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

.vlabel {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--slate);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.display,
.num {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.86;
  color: var(--paper);
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.8;
  color: #C6D8DE;
  max-width: 38ch;
}

.note {
  border-left: 2px solid var(--orange);
  padding-left: 14px;
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease,
              border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn--primary {
  background: var(--cyan);
  color: #04141A;
  box-shadow: 0 12px 30px -14px rgba(0, 229, 255, 0.85);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(0, 229, 255, 0.95);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--legacy {
  background: var(--orange);
  color: #1A0800;
  box-shadow: 0 12px 26px -16px rgba(255, 107, 53, 0.9);
}
.btn--legacy:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold);
  color: #241A00;
  font-family: var(--font-gift);
  box-shadow: 0 12px 26px -16px rgba(255, 200, 87, 0.9);
}
.btn--gold:hover { transform: translateY(-2px); }

.btn--sm { padding: 9px 16px; font-size: 13px; }

.btn__arrow { font-family: var(--font-mono); font-size: 0.9em; }

/* ---------- 6. 芯片与标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(36, 49, 59, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

.chip--cyan {
  background: var(--cyan);
  border-color: transparent;
  color: #04141A;
  font-weight: 700;
}

.chip--orange {
  background: rgba(255, 107, 53, 0.12);
  border-color: rgba(255, 107, 53, 0.5);
  color: var(--orange);
}

.chip--gold {
  background: var(--gold);
  border-color: transparent;
  color: #2A1F00;
  font-family: var(--font-gift);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
}

.chip--mist {
  border-color: rgba(124, 247, 255, 0.4);
  color: var(--mist);
}

/* ---------- 7. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.card:hover {
  border-color: rgba(0, 229, 255, 0.45);
  transform: translateY(-3px);
}

.card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.card__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.3;
}

.card__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

.card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.card--accent {
  background:
    linear-gradient(160deg, rgba(0, 229, 255, 0.12), rgba(19, 27, 34, 0.9) 46%),
    var(--panel);
  border-color: rgba(0, 229, 255, 0.4);
}

.card--legacy { border-color: rgba(255, 107, 53, 0.38); }
.card--legacy .card__tag { color: var(--orange); }
.card--legacy .card__arrow { color: var(--orange); }

.card--gift {
  font-family: var(--font-gift);
  background:
    linear-gradient(160deg, rgba(255, 200, 87, 0.14), rgba(19, 27, 34, 0.92) 52%),
    var(--panel);
  border-color: rgba(255, 200, 87, 0.38);
}
.card--gift .card__tag { color: var(--gold); }
.card--gift .card__text { color: #D9C7A2; }
.card--gift::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -58%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.22), transparent 70%);
  pointer-events: none;
}

/* ---------- 8. 目录列表 ---------- */
.dir-list { display: flex; flex-direction: column; gap: 2px; }

.dir-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  transition: background 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
}
.dir-list__item:last-child { border-bottom: 1px solid transparent; }
.dir-list__item:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.25);
  padding-left: 22px;
}

.dir-list__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.dir-list__label {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--paper);
}

.dir-list__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

/* ---------- 9. 图片容器 ---------- */
.media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  background: linear-gradient(150deg, #1A2833, #0E161D 62%);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--crop { aspect-ratio: 3 / 2; }
.media--tilt { transform: rotate(-1.4deg); }

.media--ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 49, 59, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 49, 59, 0.55) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.55;
}

.media__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(11, 15, 20, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.media__badge { position: absolute; top: 12px; left: 12px; }

/* ---------- 10. 表格 ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  background: rgba(36, 49, 59, 0.4);
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 12px 14px;
  color: #C6D8DE;
  border-bottom: 1px solid var(--line);
}

.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(0, 229, 255, 0.05); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb { margin-top: clamp(18px, 3vw, 30px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.breadcrumb__list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__list li + li::before { content: "/"; color: var(--line); }

.breadcrumb__link { color: var(--slate); }
.breadcrumb__link:hover { color: var(--cyan); }
.breadcrumb__current { color: var(--paper); }

/* ---------- 12. 进度环 ---------- */
.ring {
  --p: 68;
  --size: clamp(150px, 18vw, 230px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--cyan) calc(var(--p) * 1%), rgba(36, 49, 59, 0.9) 0);
  box-shadow: 0 0 60px -22px rgba(0, 229, 255, 0.7);
}
.ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--ink);
}
.ring__value {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.ring__label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- 13. 滚动显现协议 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.48s ease-out, transform 0.48s ease-out;
  transition-delay: calc(var(--reveal-order, 0) * 60ms);
}
.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 刊头 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04141A;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease-out;
}
.skip-link:focus,
.skip-link:focus-visible { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(11, 15, 20, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header__progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 2;
  background: var(--neon);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
  transition: transform 0.15s linear;
}

.masthead { position: relative; }

.masthead__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding: 18px var(--header-pad);
  transition: padding 0.3s ease;
}

.site-header[data-scrolled="true"] .masthead__inner { padding-block: 9px; }

/* 品牌署名 */
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
  justify-self: start;
}

.brand-mark__name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.brand-mark__name::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transition: box-shadow 0.25s ease;
}
.brand-mark:hover .brand-mark__name::before {
  box-shadow: 0 0 20px 2px rgba(0, 229, 255, 0.9);
}

.brand-mark__tag {
  padding-left: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

/* 导航 */
.masthead__nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav-link {
  display: inline-block;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  color: #BFD3DA;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-link:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}
.nav-link[aria-current="page"] {
  color: #04141A;
  background: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.7), 0 10px 24px -14px rgba(0, 229, 255, 0.95);
}

/* 右侧工具区 */
.masthead__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.version-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
}

.version-switch__label {
  padding: 0 8px 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.version-switch__btn {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.version-switch__btn:hover { color: var(--paper); }

.version-switch__btn[aria-pressed="true"] {
  background: var(--cyan);
  color: #04141A;
  font-weight: 700;
}

.version-switch__btn[data-version-toggle="legacy"][aria-pressed="true"] {
  background: var(--orange);
  color: #1A0800;
}

.entry-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease,
              color 0.22s ease, background 0.22s ease;
}

.entry-pill--primary {
  background: var(--cyan);
  color: #04141A;
  box-shadow: 0 12px 26px -16px rgba(0, 229, 255, 0.95);
}
.entry-pill--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(0, 229, 255, 1);
}

.entry-pill--ghost {
  border-color: var(--line);
  color: #C9DCE3;
}
.entry-pill--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle__bar:nth-child(2) { width: 70%; }

.site-header[data-open="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { line-height: 1; }

/* 扫描线 */
.masthead__scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.masthead__scan::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 18px 2px rgba(0, 229, 255, 0.8);
  opacity: 0;
}
.site-header[data-scan="true"] .masthead__scan::after {
  animation: scanline 0.72s ease-out;
}

@keyframes scanline {
  0% { left: -2px; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 120px);
  background: linear-gradient(180deg, var(--panel), #0D151B 72%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 32px) clamp(28px, 3vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.footer-brand__name::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.footer-brand__name:hover { color: var(--cyan); }

.footer-brand__line {
  max-width: 26em;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--slate);
}

.footer-brand__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  font-size: 14px;
  line-height: 1.6;
  color: #A9BEC7;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover { color: var(--cyan); padding-left: 4px; }

.footer-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.footer-text--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #A9BEC7;
  word-break: break-all;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 18px clamp(20px, 4vw, 32px) 26px;
  border-top: 1px solid var(--line);
}

.legal-copy,
.legal-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- 16. 栅格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.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--duo { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1180px) {
  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0;
  }

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

  .masthead__nav,
  .masthead__tools { display: none; grid-column: 1 / -1; }

  .site-header[data-open="true"] .masthead__nav {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    max-height: calc(100dvh - 200px);
    overflow-y: auto;
  }

  .site-header[data-open="true"] .masthead__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-block: 14px 18px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(19, 27, 34, 0.6);
    font-size: 15px;
  }

  .nav-link[aria-current="page"] {
    border-color: transparent;
    background: var(--cyan);
  }

  .entry-links { flex: 1 1 auto; }
  .entry-pill { flex: 1 1 140px; }
}

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

  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

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

  .brand-mark__tag { font-size: 9.5px; letter-spacing: 0.12em; }

  .section__head { gap: 8px 16px; }

  .site-footer__legal { flex-direction: column; align-items: flex-start; }

  .ring { --size: clamp(130px, 46vw, 190px); }
}

@media (max-width: 520px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .dir-list__item { grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; }
  .dir-list__meta { grid-column: 2; }
  .nav-toggle { padding: 9px 13px; }
  .nav-toggle__label { display: none; }
}

/* ---------- 18. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .card:hover,
  .btn:hover,
  .entry-pill--primary:hover { transform: none; }
}
