/* ==========================================================================
   哈狗游戏主站 · 共享外壳 /assets/site.css
   城市坐标体系：深墨蓝夜空 + 信号橙站点 + 霓虹青绿进度
   ========================================================================== */

:root {
  --ink: #0E1B2B;
  --ink-2: #1A2C42;
  --ink-3: #22384f;
  --signal: #FF6A2B;
  --signal-soft: #FFD8C4;
  --teal: #17E3A8;
  --paper: #F6F1E7;
  --paper-2: #E7DFD1;
  --char: #0B121A;
  --muted: #5B6B7C;

  --line-teal: rgba(23, 227, 168, 0.30);
  --line-teal-soft: rgba(23, 227, 168, 0.18);
  --line-ink: rgba(11, 18, 26, 0.14);
  --line-paper: rgba(246, 241, 231, 0.16);
  --grid-ink: rgba(246, 241, 231, 0.05);

  --sans: "Inter Tight", "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;

  --r-lg: 24px;
  --r: 16px;
  --r-sm: 12px;
  --pill: 999px;

  --wrap: 1240px;
  --header-h: 84px;
  --header-h-compact: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 16px);
}

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

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

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--char);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

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

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

/* ---------- 中文排版基调 ---------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.01em; }
h4 { font-size: 17px; letter-spacing: 0; }

p { text-wrap: pretty; }

strong { font-weight: 800; }

::selection {
  background: var(--signal);
  color: #180c06;
}

/* ---------- 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 900;
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--signal);
  color: #180c06;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: top 0.18s var(--ease);
}

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

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-ink) 1px, transparent 1px);
  background-size: 96px 100%, 100% 42px;
  background-position: right top;
  color: var(--paper);
  border-bottom: 1px solid var(--line-paper);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: min-height 0.2s var(--ease);
}

.site-header[data-scrolled] .header-inner { min-height: var(--header-h-compact); }

/* 品牌块 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--paper);
}

.brand-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--signal);
  color: #180c06;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: width 0.2s var(--ease), height 0.2s var(--ease),
              border-radius 0.2s var(--ease), background 0.15s var(--ease),
              transform 0.15s var(--ease);
}

.brand-badge-num { line-height: 1; }

.brand-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.52);
}

.brand:hover .brand-badge {
  background: var(--teal);
  color: var(--ink);
  transform: translateY(-2px);
}

.site-header[data-scrolled] .brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.site-header[data-scrolled] .brand-sub { display: none; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: var(--pill);
  border: 1px solid rgba(246, 241, 231, 0.24);
  background: rgba(246, 241, 231, 0.06);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s var(--ease), color 0.12s var(--ease);
}

.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }

.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.16s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

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

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

/* 导航组 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--pill);
  background: rgba(246, 241, 231, 0.05);
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  color: rgba(246, 241, 231, 0.78);
  transition: background 0.12s var(--ease), color 0.12s var(--ease),
              transform 0.12s var(--ease);
}

.nav-coord {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--signal);
  opacity: 0.9;
}

.nav-link:hover {
  background: rgba(246, 241, 231, 0.10);
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-link[aria-current="page"] {
  background: var(--signal);
  color: #180c06;
  font-weight: 700;
}

.nav-link[aria-current="page"] .nav-coord {
  color: #180c06;
  opacity: 0.55;
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collect-btn {
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(246, 241, 231, 0.28);
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s var(--ease), color 0.12s var(--ease),
              background 0.12s var(--ease), transform 0.12s var(--ease);
}

.collect-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.collect-btn[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}

.issue-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-teal);
  background: rgba(23, 227, 168, 0.14);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: background 0.12s var(--ease), color 0.12s var(--ease),
              transform 0.12s var(--ease);
}

.issue-pill:hover {
  background: var(--teal);
  color: var(--ink);
  transform: translateY(-2px);
}

.issue-num { font-size: 15px; font-weight: 700; }

/* 收藏提示条带 */
.collect-strip {
  background: var(--ink-2);
  border-top: 1px solid var(--line-teal-soft);
  color: var(--paper);
}

.collect-strip-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.collect-strip-text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 231, 0.78);
}

.collect-strip-text strong { color: var(--teal); font-weight: 700; }

.collect-strip-close {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid rgba(246, 241, 231, 0.24);
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s var(--ease), color 0.12s var(--ease);
}

.collect-strip-close:hover { border-color: var(--teal); color: var(--teal); }

/* 阅读进度条（JS 注入） */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(23, 227, 168, 0.07), transparent 46%);
  color: rgba(246, 241, 231, 0.86);
  border-top: 1px solid var(--line-teal);
  padding: clamp(48px, 6vw, 76px) 0 26px;
}

.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--signal);
  color: #180c06;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.footer-brand-text { display: block; }

.footer-brand-name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--paper);
}

.footer-tagline {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1fr;
  border-top: 1px solid var(--line-teal);
  padding-top: clamp(24px, 3vw, 34px);
}

.footer-col {
  padding: 0 26px;
  border-left: 1px solid var(--line-teal-soft);
  min-width: 0;
}

.footer-col:first-child { padding-left: 0; border-left: 0; }
.footer-col:last-child { padding-right: 0; }

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 15px;
}

.footer-link {
  display: inline-block;
  color: rgba(246, 241, 231, 0.76);
  border-bottom: 1px solid transparent;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease),
              transform 0.12s var(--ease);
}

.footer-link:hover {
  color: var(--paper);
  border-bottom-color: var(--signal);
  transform: translateY(-2px);
}

.footer-contact { gap: 12px; }

.contact-line {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.62);
  word-break: break-word;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px dashed rgba(23, 227, 168, 0.45);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease);
}

.copy-btn:hover { color: var(--teal); border-bottom-color: var(--teal); }

.copy-btn-text { word-break: break-all; }

.copy-btn-hint {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: var(--pill);
  border: 1px solid rgba(246, 241, 231, 0.22);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 231, 0.5);
}

.copy-btn:hover .copy-btn-hint {
  border-color: var(--teal);
  color: var(--teal);
}

.copy-status {
  min-height: 20px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.footer-legal {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line-teal);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: rgba(246, 241, 231, 0.55);
}

.footer-copy { margin: 0; }

.footer-sign {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(23, 227, 168, 0.78);
}

/* ==========================================================================
   通用布局与容器
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

.wrap--narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
}

.section--paper { background-color: var(--paper); color: var(--char); }
.section--tint { background-color: var(--paper-2); color: var(--char); }

.section--ink {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-ink) 1px, transparent 1px);
  background-size: 120px 100%, 100% 120px;
  color: var(--paper);
}

.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--paper); }

/* 索引与说明小字 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.section--ink .eyebrow { color: var(--teal); }

.coord {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.section--ink .coord { color: rgba(246, 241, 231, 0.55); }

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

.lede {
  max-width: 62ch;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.72;
  color: #2b3a4a;
}

.section--ink .lede { color: rgba(246, 241, 231, 0.78); }

.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;
}

/* 网格 */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ==========================================================================
   通用组件
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.12s var(--ease),
              color 0.12s var(--ease), border-color 0.12s var(--ease),
              box-shadow 0.12s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(11, 18, 26, 0.18);
}

.btn--signal {
  background: var(--signal);
  color: #180c06;
}

.btn--signal:hover { background: #ff7d45; }

.btn--ghost {
  background: transparent;
  border-color: rgba(11, 18, 26, 0.24);
  color: var(--char);
}

.btn--ghost:hover { border-color: var(--signal); color: #a1360b; }

.section--ink .btn--ghost {
  border-color: rgba(246, 241, 231, 0.34);
  color: var(--paper);
}

.section--ink .btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--paper-2);
  color: var(--char);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.section--ink .pill {
  background: rgba(246, 241, 231, 0.1);
  color: rgba(246, 241, 231, 0.85);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.tag--teal {
  background: rgba(23, 227, 168, 0.16);
  border: 1px solid rgba(23, 227, 168, 0.42);
  color: #0b6b52;
}

.tag--orange {
  background: rgba(255, 106, 43, 0.14);
  border: 1px solid rgba(255, 106, 43, 0.42);
  color: #a1360b;
}

.section--ink .tag--teal { color: var(--teal); }
.section--ink .tag--orange { color: var(--signal-soft); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  color: var(--signal);
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.12s var(--ease);
}

.arrow-link::after {
  content: "→";
  font-family: var(--mono);
  transition: transform 0.12s var(--ease);
}

.arrow-link:hover { border-bottom-color: currentColor; }
.arrow-link:hover::after { transform: translateX(4px); }

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(91, 107, 124, 0.55);
}

.breadcrumbs a {
  border-bottom: 1px solid transparent;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.breadcrumbs [aria-current="page"] {
  color: var(--char);
  font-weight: 600;
}

/* 图片容器基础规则（页面阶段放入占位图） */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(14, 27, 43, 0.10) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 27, 43, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

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

.media--map { background: var(--ink); }

.media--map::after {
  background-image:
    linear-gradient(90deg, rgba(23, 227, 168, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 227, 168, 0.22) 1px, transparent 1px);
  mix-blend-mode: normal;
  opacity: 0.5;
}

.media-cap {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.section--ink .media-cap { color: rgba(246, 241, 231, 0.55); }

/* 卡片 */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--r);
  background: var(--paper);
  color: var(--char);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(11, 18, 26, 0.16);
}

.section--ink .card { background: var(--ink-2); color: var(--paper); }

.card-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--signal);
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* 数据指标 */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--signal);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

.section--ink .stat-label { color: rgba(246, 241, 231, 0.6); }

/* 提示条 */
.note {
  padding: 16px 18px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--teal);
  background: rgba(23, 227, 168, 0.12);
  font-size: 15px;
  line-height: 1.7;
}

.section--ink .note {
  background: rgba(23, 227, 168, 0.1);
  color: rgba(246, 241, 231, 0.9);
}

/* 长文 */
.prose {
  max-width: 70ch;
}

.prose p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.8em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; }

.prose ul,
.prose ol {
  margin-bottom: 1.1em;
  padding-left: 1.35em;
}

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }

.prose a {
  color: #0b6b52;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--signal); }

.prose code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.9em;
}

.section--ink .prose a { color: var(--teal); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-link { padding: 9px 11px; font-size: 14px; }
  .collect-btn { padding: 9px 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .footer-col { padding: 0 20px; }
  .footer-col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .footer-col:nth-child(even) { padding-right: 0; }
}

@media (max-width: 980px) {
  .header-inner { min-height: 64px; padding-inline: 20px; }
  .site-header[data-scrolled] .header-inner { min-height: 56px; }

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

  .site-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 300;
    display: block;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
    background: var(--ink);
    color: var(--paper);
    border-top: 2px solid var(--teal);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    box-shadow: 0 -22px 50px rgba(6, 12, 20, 0.55);
    transform: translateY(112%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    background: var(--ink-2);
    font-size: 16px;
  }

  .nav-link .nav-coord {
    order: 2;
    font-size: 12px;
    color: var(--teal);
  }

  .nav-link[aria-current="page"] {
    background: var(--signal);
    color: #180c06;
  }

  .nav-link[aria-current="page"] .nav-coord { color: #180c06; }

  .nav-utility {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-paper);
    justify-content: space-between;
  }

  .collect-btn,
  .issue-pill {
    flex: 1 1 0;
    justify-content: center;
    padding: 12px 14px;
  }

  .collect-strip-inner { padding-inline: 20px; }

  .grid-12 > .col-3,
  .grid-12 > .col-4,
  .grid-12 > .col-5,
  .grid-12 > .col-6 { grid-column: span 6; }

  .grid-12 > .col-7,
  .grid-12 > .col-8,
  .grid-12 > .col-9 { grid-column: span 12; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: 20px; }
  .header-inner { padding-inline: 16px; gap: 12px; }
  .footer-inner { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .footer-col { padding: 0; border-left: 0; }
  .footer-col + .footer-col {
    border-top: 1px solid var(--line-teal-soft);
    padding-top: 22px;
  }
  .copy-btn { font-size: 13px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-badge { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .collect-strip-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .collect-strip-close { align-self: flex-end; }
  .grid-12 > .col-3,
  .grid-12 > .col-4,
  .grid-12 > .col-5,
  .grid-12 > .col-6,
  .grid-12 > .col-7,
  .grid-12 > .col-8,
  .grid-12 > .col-9 { grid-column: span 12; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- 减少动态 ---------- */
@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;
  }

  .btn:hover,
  .card:hover,
  .nav-link:hover,
  .brand:hover .brand-badge,
  .footer-link:hover,
  .collect-btn:hover,
  .issue-pill:hover { transform: none; }

  .scroll-progress { transition: none; }
}
