/* ============================================================
   猫娘计划中转指引站 —— 深色 · 克制 · 高级感（移动端优先适配）
   仅使用系统字体，零外部资源依赖，保证任何网络环境可渲染
   ============================================================ */
:root {
  --bg: #0f0e13;
  --bg-soft: #16141d;
  --bg-card: rgba(255, 255, 255, 0.025);
  --ink: #ece7dd;
  --ink-soft: #b9b2c2;
  --muted: #837c92;
  --line: rgba(236, 231, 221, 0.12);
  --line-strong: rgba(236, 231, 221, 0.28);
  --accent: #f0a8bd;          /* 猫娘柔粉 */
  --accent-deep: #d97e9c;
  --gold: #e8c39e;
  --serif: Georgia, "Palatino Linotype", "STZhongsong", "SimSun", serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: Consolas, "Courier New", monospace;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(240, 168, 189, 0.32); color: #fff; }

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

/* ---------- 背景氛围 ---------- */
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.16; }
.orb-pink {
  width: 560px; height: 560px; top: -180px; right: -120px;
  background: radial-gradient(circle, #f0a8bd, transparent 65%);
}
.orb-gold {
  width: 480px; height: 480px; bottom: -160px; left: -140px;
  background: radial-gradient(circle, #e8c39e, transparent 65%);
  opacity: 0.1;
}
.grain {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.88 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(15, 14, 19, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.06rem; letter-spacing: 0.04em; white-space: nowrap; }
.paw { fill: var(--accent); opacity: 0.9; flex: none; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); min-width: 0; }
.nav-links a {
  font-size: 0.86rem; color: var(--ink-soft); letter-spacing: 0.08em;
  position: relative; transition: color 0.25s;
  padding: 6px 0; /* 触控热区 */
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
/* 分板块标签按钮 */
.nav-tab {
  background: none; border: 0; font-family: var(--sans);
  font-size: 0.86rem; color: var(--ink-soft); letter-spacing: 0.08em;
  position: relative; transition: color 0.25s; cursor: pointer;
  padding: 6px 0; white-space: nowrap; /* 触控热区 */
}
.nav-tab::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-tab:hover { color: var(--ink); }
.nav-tab:hover::after { width: 100%; }
.nav-tab.active { color: var(--ink); }
.nav-tab.active::after { width: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }

.lang-toggle {
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  transition: all 0.25s; flex: none;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 86vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 80px 24px 60px;
}
.hero-kicker {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.42em;
  color: var(--accent); margin-bottom: 26px;
  animation: rise 0.9s 0.05s both;
}
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 3rem; /* 旧浏览器回退 */
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 1.18; letter-spacing: 0.04em;
  animation: rise 0.9s 0.18s both;
}
.hero-sub {
  margin-top: 24px; max-width: 560px; color: var(--ink-soft);
  font-size: 0.98rem; /* 旧浏览器回退 */
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  animation: rise 0.9s 0.32s both;
}
.hero-stats {
  display: flex; align-items: center; gap: clamp(28px, 6vw, 64px);
  margin-top: 54px; padding: 26px clamp(28px, 6vw, 60px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card);
  animation: rise 0.9s 0.46s both;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num {
  font-family: var(--serif); font-size: 2.2rem; /* 旧浏览器回退 */
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.22em; }
.stat-divider { width: 1px; height: 42px; background: var(--line-strong); }
.hero-cta {
  margin-top: 46px; font-size: 0.88rem; letter-spacing: 0.28em; color: var(--ink-soft);
  animation: rise 0.9s 0.6s both; transition: color 0.3s;
  padding: 10px; /* 触控热区 */
  background: none; border: 0; font-family: var(--sans); cursor: pointer;
}
.hero-cta:hover { color: var(--accent); }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 区块 ---------- */
.section {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 40px) 0;
}
.section-head { margin-bottom: 44px; }
.section-index {
  font-family: var(--mono); font-size: 0.76rem; color: var(--gold);
  letter-spacing: 0.3em; display: block; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 2rem; /* 旧浏览器回退 */
  font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: 0.06em;
  display: inline-block; position: relative;
}
.section-head h2::after {
  content: ""; display: block; width: 44px; height: 1px;
  background: var(--accent); margin-top: 12px;
}
.section-note { margin-top: 16px; color: var(--muted); font-size: 0.88rem; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-kicker, .hero-title, .hero-sub, .hero-stats, .hero-cta { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 跳转卡片 ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* 回退 */
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); cursor: pointer; text-align: left;
  font-family: var(--sans); color: var(--ink); width: 100%;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s;
  overflow: hidden;
}
.link-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 168, 189, 0.09), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
@media (hover: hover) {
  .link-card:hover { transform: translateY(-4px); border-color: rgba(240, 168, 189, 0.5); background: rgba(240, 168, 189, 0.04); }
  .link-card:hover::before { opacity: 1; }
  .link-card:hover .lc-arrow { color: var(--accent); transform: translate(3px, -3px); }
}
.link-card:active { transform: scale(0.985); }
.link-card .lc-arrow {
  position: absolute; top: 24px; right: 22px; color: var(--muted);
  font-family: var(--mono); font-size: 0.9rem; transition: all 0.3s;
}
.lc-name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: 0.04em; padding-right: 28px; }
.lc-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.lc-safe {
  margin-top: auto; padding-top: 12px; font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.18em; color: var(--gold); opacity: 0.85;
}

/* ---------- QQ 群 ---------- */
.qq-block { margin-top: 44px; }
.qq-title {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.26em;
  color: var(--gold); margin-bottom: 16px;
}
.qq-list { display: flex; flex-wrap: wrap; gap: 12px; }
.qq-chip {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 30px; border: 1px dashed var(--line-strong); border-radius: 16px;
  background: var(--bg-card); color: var(--ink); cursor: pointer;
  font-family: var(--sans); min-height: 44px;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.qq-chip:active { transform: scale(0.97); }
.qq-chip.copied { border-color: var(--gold); border-style: solid; background: rgba(232, 195, 158, 0.07); }
.qq-num { font-family: var(--mono); font-size: 1.02rem; letter-spacing: 0.08em; }
.qq-hint { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.12em; }
.qq-chip.copied .qq-hint { color: var(--gold); }

/* ---------- 资讯 ---------- */
.news-list { list-style: none; }
.news-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.news-item:hover { background: rgba(255, 255, 255, 0.015); }
.news-date { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); padding-top: 4px; letter-spacing: 0.08em; }
.news-title { font-family: var(--serif); font-size: 1.22rem; margin-bottom: 6px; letter-spacing: 0.03em; }
.news-body { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- 文档 ---------- */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px;
  flex-wrap: wrap; width: 100%; text-align: left; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; color: var(--ink); cursor: pointer;
  font-family: var(--sans); min-height: 44px;
  transition: border-color 0.3s, transform 0.3s;
}
.doc-row:hover { border-color: rgba(232, 195, 158, 0.5); transform: translateX(4px); }
.doc-row:active { transform: scale(0.99); }
.doc-row .dr-title { font-family: var(--serif); font-size: 1.16rem; letter-spacing: 0.03em; }
.doc-row .dr-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.doc-row .dr-open { color: var(--gold); font-family: var(--mono); font-size: 0.8rem; flex: none; margin-left: auto; }

/* 文档模态 */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 7, 11, 0.72); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; max-width: 720px; margin: 8vh auto; max-height: 80vh; overflow-y: auto;
  background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 44px 46px;
  animation: modalIn 0.35s ease;
  -webkit-overflow-scrolling: touch;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 1.05rem; cursor: pointer; transition: color 0.25s;
  padding: 10px; min-width: 44px; min-height: 44px; /* 触控热区 */
}
.modal-close:hover { color: var(--accent); }
.modal-meta { font-family: var(--mono); font-size: 0.74rem; color: var(--gold); letter-spacing: 0.14em; margin-bottom: 14px; }
.modal-title { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; margin-bottom: 24px; letter-spacing: 0.04em; }

.doc-body h2 { font-family: var(--serif); font-size: 1.45rem; margin: 28px 0 12px; color: var(--accent); }
.doc-body h3 { font-family: var(--serif); font-size: 1.18rem; margin: 22px 0 10px; color: var(--gold); }
.doc-body p { margin: 10px 0; color: var(--ink-soft); }
.doc-body ul { margin: 10px 0 10px 22px; color: var(--ink-soft); }
.doc-body li { margin: 5px 0; }
.doc-body strong { color: var(--ink); font-weight: 500; }
.doc-body a { color: var(--accent); border-bottom: 1px solid rgba(240, 168, 189, 0.4); word-break: break-all; }
.doc-body code { font-family: var(--mono); font-size: 0.85em; background: rgba(255,255,255,0.07); padding: 2px 7px; border-radius: 5px; }
.doc-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 120px; padding: 44px 24px calc(48px + env(safe-area-inset-bottom)); text-align: center;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.paw-footer { opacity: 0.55; }
.footer p { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.12em; }

/* ---------- 反调试遮罩 ---------- */
#guard-veil {
  position: fixed; inset: 0; z-index: 9999; display: none;
  background: var(--bg); align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
#guard-veil.show { display: flex; }
.veil-box { max-width: 420px; }
.veil-mark { font-size: 2rem; color: var(--accent); margin-bottom: 18px; }
.veil-box p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.9; margin-bottom: 22px; }
.veil-box .lang-toggle { padding: 10px 22px; min-height: 44px; }

/* ---------- 平板 ---------- */
@media (max-width: 860px) {
  .news-item { grid-template-columns: 96px 1fr; gap: 18px; }
  .modal-panel { margin: 6vh 18px; padding: 38px 34px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  .nav { padding: 13px 18px; }
  .nav-brand { font-size: 0.95rem; gap: 8px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.8rem; }
  .lang-toggle { padding: 6px 12px; }

  .hero { min-height: 78vh; padding: 56px 18px 40px; }
  .hero-kicker { letter-spacing: 0.3em; font-size: 0.7rem; margin-bottom: 20px; }
  .hero-sub { margin-top: 18px; }
  .hero-stats {
    width: 100%; max-width: 320px; justify-content: space-between;
    gap: 16px; margin-top: 40px; padding: 18px 26px;
  }
  .stat-divider { height: 36px; }
  .hero-cta { margin-top: 34px; }

  .section { padding-top: 62px; }
  .section-head { margin-bottom: 32px; }
  .card-grid { gap: 12px; }
  .link-card { padding: 22px 20px; }
  .lc-name { font-size: 1.14rem; }

  .news-item { grid-template-columns: 1fr; gap: 6px; padding: 20px 2px; }
  .news-date { padding-top: 0; }
  .doc-row { padding: 18px 20px; }

  .modal-panel { margin: 0; max-height: 100vh; min-height: 100dvh; border-radius: 0; padding: 30px 24px; }
  .modal-title { font-size: 1.5rem; }

  .footer { margin-top: 80px; }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 380px) {
  .hero-stats { max-width: 280px; padding: 16px 20px; }
  .stat-num { font-size: 1.7rem; }
  .qq-chip { width: 100%; flex-direction: row; justify-content: space-between; padding: 14px 20px; }
}

/* ============================================================
   v3 新增：人机验证 / 分组嵌套 / 跳转确认 / GitHub 区块
   ============================================================ */

/* ---------- 人机验证 ---------- */
#human-gate {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(15, 14, 19, 0.97); backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 24px;
}
#human-gate.show { display: flex; }
.gate-box {
  max-width: 400px; width: 100%; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 38px 30px; background: var(--bg-soft);
  animation: rise 0.5s both;
}
.gate-mark { margin-bottom: 8px; }
.gate-mark svg { display: inline-block; }
.gate-title { font-family: var(--serif); font-size: 1.55rem; letter-spacing: 0.06em; margin-bottom: 8px; }
.gate-tip { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; letter-spacing: 0.04em; }
.gate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.gate-tile {
  font-size: 1.4rem; padding: 15px 0; min-height: 56px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.15s;
  font-family: var(--sans); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.gate-tile:hover { border-color: var(--line-strong); }
.gate-tile:active { transform: scale(0.94); }
.gate-tile.chosen { border-color: var(--gold); background: rgba(232, 195, 158, 0.09); }
.gate-grid.shake { animation: shake 0.45s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.gate-status { min-height: 1.5em; font-size: 0.82rem; margin-bottom: 14px; letter-spacing: 0.04em; }
.gate-status.err { color: var(--accent-deep); }
.gate-status.ok { color: var(--gold); }
/* 进站声明（验证弹窗 + 页脚） */
.gate-disclaimer {
  margin-top: 16px; font-size: 0.72rem; line-height: 1.7;
  color: var(--muted); letter-spacing: 0.04em;
}
.footer-disclaimer { font-size: 0.68rem !important; opacity: 0.75; margin-top: 6px; }

/* ---------- 分组嵌套面板 ---------- */
.group-panel {
  border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 24px; background: rgba(255, 255, 255, 0.014);
  margin-bottom: 18px;
}
.group-title {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.26em;
  color: var(--gold); margin-bottom: 16px;
}
.group-panel .card-grid { gap: 14px; }
.group-panel .qq-block { margin-top: 22px; }

/* ---------- 跳转二次确认 ---------- */
.go-panel { max-width: 460px; }
.go-line { margin: 8px 0; color: var(--ink-soft); font-size: 0.95rem; }
.go-name { color: var(--ink); font-weight: 500; }
.go-domain { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); background: rgba(240, 168, 189, 0.08); padding: 3px 10px; border-radius: 6px; word-break: break-all; }
.go-note { color: var(--muted); font-size: 0.8rem; line-height: 1.8; margin: 16px 0 24px; }
.go-actions { display: flex; gap: 12px; justify-content: flex-end; }
.go-cancel {
  background: none; border: 1px solid var(--line-strong); color: var(--ink-soft);
  padding: 10px 24px; border-radius: 999px; cursor: pointer; font-size: 0.88rem;
  font-family: var(--sans); transition: border-color 0.25s, color 0.25s; min-height: 44px;
}
.go-cancel:hover { border-color: var(--ink); color: var(--ink); }
.go-ok {
  background: var(--accent); border: none; color: #241019;
  padding: 10px 26px; border-radius: 999px; cursor: pointer;
  font-weight: 500; font-size: 0.88rem; font-family: var(--sans);
  transition: filter 0.25s; min-height: 44px;
}
.go-ok:hover { filter: brightness(1.08); }
.go-ok:active { transform: scale(0.97); }

/* ---------- GitHub 区块 ---------- */
.gh-wrap { display: flex; flex-direction: column; gap: 16px; }
.gh-loading, .gh-fail { color: var(--muted); font-size: 0.88rem; }
.gh-meta {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.06em; margin-bottom: 2px;
}
.gh-panel {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; background: rgba(255, 255, 255, 0.014);
}
.gh-panel-title {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.26em;
  color: var(--gold); margin-bottom: 8px;
}
.rel-item { padding: 14px 0; border-top: 1px dashed var(--line); }
.gh-panel .rel-item:first-of-type { border-top: none; }
.rel-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.rel-tag { font-family: var(--mono); color: var(--accent); font-size: 0.95rem; }
.rel-item.latest .rel-tag { color: var(--gold); }
.rel-item.latest .rel-tag::after { content: " · latest"; font-size: 0.66rem; color: var(--muted); letter-spacing: 0.12em; }
.rel-name { color: var(--ink); font-size: 0.92rem; }
.rel-date { margin-left: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.rel-notes { margin-top: 8px; }
.rel-notes.doc-body h2, .rel-notes.doc-body h3 { margin: 14px 0 6px; }
.asset-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.asset-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  transition: border-color 0.25s, background 0.25s;
}
.asset-row:hover { border-color: rgba(240, 168, 189, 0.5); background: rgba(240, 168, 189, 0.03); }
.asset-name { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); word-break: break-all; }
.asset-meta { margin-left: auto; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.dl-btn {
  flex: none; display: inline-block; border: 1px solid rgba(232, 195, 158, 0.5);
  color: var(--gold); font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.1em; padding: 5px 14px; border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.asset-row:hover .dl-btn, a.dl-btn:hover { background: var(--gold); color: #241019; }
.clone-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clone-cmd {
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.06); padding: 9px 14px;
  border-radius: 8px; word-break: break-all; flex: 1; min-width: 200px;
}
.copy-btn {
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 8px; padding: 9px 16px; cursor: pointer;
  font-size: 0.78rem; font-family: var(--sans); transition: border-color 0.25s, color 0.25s;
  min-height: 38px;
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.gh-readme { margin-top: 2px; }

/* ---------- v3 移动端适配 ---------- */
@media (max-width: 640px) {
  .gate-box { padding: 30px 20px; border-radius: 16px; }
  .gate-grid { gap: 8px; }
  .gate-tile { font-size: 1.15rem; min-height: 48px; padding: 12px 0; }

  .group-panel { padding: 16px 14px 18px; border-radius: 14px; }
  .gh-panel { padding: 16px 14px; }
  .rel-date { display: none; }
  .rel-name { width: 100%; order: 3; }
  .asset-row { padding: 10px 12px; }
  .go-actions { flex-direction: row-reverse; }
  .go-cancel, .go-ok { flex: 1; }
}
@media (max-width: 420px) {
  .asset-meta { display: none; }
  .clone-row { flex-direction: column; align-items: stretch; }
  .clone-cmd { min-width: 0; }
  .copy-btn, .clone-row .dl-btn { text-align: center; }
  .card-grid { grid-template-columns: 1fr; } /* 极窄屏防溢出 */
}

/* ---------- v4 补充：GitHub 加载失败态 ---------- */
.gh-fail-box {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 34px 20px; border: 1px dashed var(--line-strong); border-radius: 14px;
  text-align: center;
}
.gh-fail-box .lang-toggle { padding: 9px 22px; min-height: 44px; }

/* ---------- v6 补充：分板块标签 ---------- */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabIn 0.45s ease both; }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel.active { animation: none; }
}

/* ---------- v6 补充：关于板块 ---------- */
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.about-card {
  display: flex; flex-direction: column; gap: 9px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-card); padding: 24px 22px;
}
.about-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.about-name { font-family: var(--serif); font-size: 1.28rem; color: var(--ink); }
.about-desc { font-size: 0.88rem; line-height: 1.75; color: var(--ink-soft); }
.about-link {
  margin-top: auto; align-self: flex-start;
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.04em;
  padding: 9px 20px; min-height: 42px; border-radius: 999px;
  cursor: pointer; transition: all 0.25s;
}
.about-link:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- v6 补充：窄屏导航横滑 ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-tab { font-size: 0.8rem; }
}
