/* ==========================================================================
   piwei 站点 v2 · 设计系统
   风格基线：/netradio/（Apple 式大标题 + 毛玻璃导航 + 圆角卡片 + 亮暗双主题）
   作用域：html[data-v2] 下的页面；未迁移的页面不受影响
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-inset: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.14);
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 1180px;
  --nav-h: 48px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #131315;
  --bg-elevated: #1c1c1e;
  --bg-inset: #0c0c0d;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #0a84ff;
  --accent-hover: #3d9bff;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --nav-bg: rgba(20, 20, 22, 0.82);
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.7);
}

html[data-v2] { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html[data-v2] body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[data-v2] * { box-sizing: border-box; }
html[data-v2] [hidden] { display: none !important; }
html[data-v2] a { color: var(--accent); text-decoration: none; }
html[data-v2] a:hover { text-decoration: none; }
html[data-v2] button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
html[data-v2] input, html[data-v2] select, html[data-v2] textarea { font: inherit; color: inherit; }
html[data-v2] img { max-width: 100%; display: block; }
html[data-v2] ::selection { background: var(--accent-soft); }
html[data-v2] :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- 顶部导航 ---------- */
html[data-v2] .v2-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 80;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
html[data-v2] .v2-nav.is-scrolled { border-bottom-color: var(--line); }
html[data-v2] .v2-nav-inner {
  max-width: var(--shell);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
html[data-v2] .v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: none;
}
html[data-v2] .v2-brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
html[data-v2] .v2-nav-links { display: flex; gap: 2px; margin-right: auto; }
html[data-v2] .v2-nav-links a {
  font-size: 12.5px;
  color: var(--text-2);
  padding: 7px 11px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
html[data-v2] .v2-nav-links a:hover { color: var(--text); background: var(--bg-soft); }
html[data-v2] .v2-nav-links a.is-active { color: var(--text); font-weight: 600; }
html[data-v2] .v2-nav-tools { display: flex; align-items: center; gap: 6px; flex: none; }
html[data-v2] .v2-icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}
html[data-v2] .v2-icon-btn:hover { background: var(--bg-soft); color: var(--text); }
html[data-v2] .v2-icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[data-v2] .v2-icon-btn .ic-sun { display: none; }
html[data-v2][data-theme="dark"] .v2-icon-btn .ic-sun { display: block; }
html[data-v2][data-theme="dark"] .v2-icon-btn .ic-moon { display: none; }
html[data-v2] .v2-nav-toggle { display: none; }

/* ---------- 通用容器 ---------- */
html[data-v2] .v2-shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
html[data-v2] .v2-main { padding-top: var(--nav-h); }

/* ---------- Hero ---------- */
html[data-v2] .v2-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 76px 24px 52px;
  text-align: center;
}
html[data-v2] .v2-eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
html[data-v2] .v2-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.025em;
}
html[data-v2] .v2-hero-sub {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
  letter-spacing: -0.012em;
}
html[data-v2] .v2-hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 有壁纸时首屏文字直接压在插画上，亮色主题的白底字够用，
   暗色主题的浅灰副标题在亮画面上几乎看不清；这里补一层柔和径向遮罩 + 轻描边。 */
html[data-v2].elo-has-wallpaper .v2-hero { position: relative; isolation: isolate; }
html[data-v2].elo-has-wallpaper .v2-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(780px, 106%);
  height: 124%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--hero-scrim) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
html[data-v2] .v2-hero { --hero-scrim: rgba(255, 255, 255, 0.82); }
html[data-v2][data-theme="dark"] .v2-hero { --hero-scrim: rgba(0, 0, 0, 0.62); }
html[data-v2][data-theme="dark"].elo-has-wallpaper .v2-hero::before {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 100%);
}
html[data-v2].elo-has-wallpaper .v2-hero h1,
html[data-v2].elo-has-wallpaper .v2-eyebrow,
html[data-v2].elo-has-wallpaper .v2-hero-sub { text-shadow: 0 1px 18px var(--hero-scrim); }
@media (max-width: 600px) {
  html[data-v2].elo-has-wallpaper .v2-hero::before { width: 118%; height: 132%; }
}

/* ---------- 按钮 ---------- */
html[data-v2] .v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), border-color 0.2s, transform 0.2s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
}
html[data-v2] .v2-btn:active { transform: scale(0.98); }
html[data-v2] .v2-btn-primary { background: var(--accent); color: var(--accent-ink); }
html[data-v2] .v2-btn-primary:hover { background: var(--accent-hover); }
html[data-v2] .v2-btn-ghost { background: var(--bg-soft); color: var(--text); border-color: var(--line); }
html[data-v2] .v2-btn-ghost:hover { background: var(--bg-elevated); border-color: var(--line-strong); }
html[data-v2] .v2-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 分区标题 ---------- */
html[data-v2] .v2-section { padding: 40px 0; }
html[data-v2] .v2-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
html[data-v2] .v2-section-head h2 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
html[data-v2] .v2-section-head .v2-count { font-size: 13px; color: var(--text-3); }
html[data-v2] .v2-section-head .v2-more {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- 快捷入口卡片 ---------- */
html[data-v2] .v2-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
html[data-v2] .v2-quick-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid transparent;
  color: var(--text);
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
html[data-v2] .v2-quick-card:hover {
  transform: translateY(-3px);
  background: var(--bg-elevated);
  border-color: var(--line);
  box-shadow: var(--card-shadow-hover);
}
html[data-v2] .v2-quick-ic { font-size: 20px; line-height: 1; margin-bottom: 6px; }
html[data-v2] .v2-quick-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
html[data-v2] .v2-quick-desc { font-size: 12.5px; color: var(--text-3); }

/* ---------- 卡片网格（汇总页） ---------- */
html[data-v2] .v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
html[data-v2] .v2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  color: var(--text);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
html[data-v2] .v2-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--line-strong);
}
html[data-v2] .v2-card-cover {
  aspect-ratio: 16 / 7;
  background: var(--bg-soft) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
html[data-v2] .v2-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
html[data-v2] .v2-card-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
html[data-v2] .v2-card-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
html[data-v2] .v2-card.is-external .v2-card-title::after { content: " ↗"; color: var(--text-3); font-weight: 400; }

/* ---------- 搜索框 ---------- */
html[data-v2] .v2-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 16px 0 46px;
  border-radius: 980px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
html[data-v2] .v2-search:focus-within {
  background: var(--bg-elevated);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
html[data-v2] .v2-search svg {
  position: absolute; left: 17px; width: 17px; height: 17px;
  color: var(--text-3); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
html[data-v2] .v2-search input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: 15px; letter-spacing: -0.01em; min-width: 0;
}
html[data-v2] .v2-search input::placeholder { color: var(--text-3); }
html[data-v2] .v2-search kbd {
  font-size: 11px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-family: inherit;
}

/* ---------- 筛选 chips ---------- */
html[data-v2] .v2-chips { display: flex; gap: 8px; flex-wrap: wrap; }
html[data-v2] .v2-chip {
  height: 32px; padding: 0 14px;
  border-radius: 980px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
html[data-v2] .v2-chip:hover { color: var(--text); border-color: var(--line); }
html[data-v2] .v2-chip.is-active { background: var(--text); color: var(--bg); font-weight: 500; }

/* ---------- 面板 ---------- */
html[data-v2] .v2-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
  box-shadow: var(--card-shadow);
}
html[data-v2] .v2-panel + .v2-panel { margin-top: 16px; }
html[data-v2] .v2-panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
html[data-v2] .v2-panel-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
html[data-v2] .v2-panel-head .v2-tag {
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 980px;
  background: var(--accent-soft); color: var(--accent);
}
html[data-v2] .v2-panel-head .v2-more { margin-left: auto; font-size: 13px; color: var(--accent); }

/* ---------- 表单 ---------- */
html[data-v2] .v2-field-label {
  display: block; margin: 18px 0 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  letter-spacing: 0.01em;
}
html[data-v2] .v2-input {
  width: 100%; height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-s);
  background: var(--bg-inset);
  border: 1px solid var(--line);
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
html[data-v2] .v2-input:focus {
  background: var(--bg-elevated);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* 分段控件（赛事切换） */
html[data-v2] .v2-seg {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--bg-soft);
  border-radius: 980px;
  flex-wrap: wrap;
}
html[data-v2] .v2-seg .event-btn {
  height: 32px; padding: 0 15px;
  border-radius: 980px;
  font-size: 13px; color: var(--text-2);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
html[data-v2] .v2-seg .event-btn:hover { color: var(--text); }
html[data-v2] .v2-seg .event-btn.active {
  background: var(--bg-elevated); color: var(--text); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* 比分步进 */
html[data-v2] .score-control {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 4px;
}
html[data-v2] .score-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  font-size: 17px; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
html[data-v2] .score-btn:hover { background: var(--bg-soft); color: var(--text); }
html[data-v2] .score-input {
  flex: 1; width: 100%; min-width: 0;
  height: 34px; text-align: center;
  border: 0; background: none; outline: none;
  font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums;
}
html[data-v2] .score-input::-webkit-outer-spin-button,
html[data-v2] .score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- 表格 ---------- */
html[data-v2] .v2-table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
html[data-v2] .v2-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
html[data-v2] .v2-table th {
  text-align: left;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 10px 10px;
  white-space: nowrap;
}
html[data-v2] .v2-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
html[data-v2] .v2-table tbody tr { transition: background 0.15s; }
html[data-v2] .v2-table tbody tr:hover { background: var(--bg-inset); }
html[data-v2] .v2-table td:first-child, html[data-v2] .v2-table th:first-child { padding-left: 4px; }
html[data-v2] .v2-table .rank-1, html[data-v2] .v2-table .rank-2, html[data-v2] .v2-table .rank-3 { font-weight: 600; }
html[data-v2] .v2-table .rank-1 { color: #c99700; }
html[data-v2] .v2-table .rank-2 { color: #8a8a8e; }
html[data-v2] .v2-table .rank-3 { color: #b06a35; }
html[data-v2][data-theme="dark"] .v2-table .rank-1 { color: #e8b923; }
html[data-v2][data-theme="dark"] .v2-table .rank-2 { color: #c7c7cc; }
html[data-v2][data-theme="dark"] .v2-table .rank-3 { color: #d98b52; }
html[data-v2] .v2-num { font-variant-numeric: tabular-nums; }

/* 段位徽标 */
html[data-v2] .rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  font-size: 12px; font-weight: 700;
  background: var(--bg-soft); color: var(--text-2);
}
html[data-v2] .rank-S { background: rgba(255, 179, 0, 0.16); color: #b8860b; }
html[data-v2] .rank-A { background: rgba(255, 45, 85, 0.14); color: #d70015; }
html[data-v2] .rank-B { background: rgba(94, 92, 230, 0.14); color: #5e5ce6; }
html[data-v2] .rank-C { background: rgba(0, 113, 227, 0.12); color: #0071e3; }
html[data-v2] .rank-D { background: var(--bg-soft); color: var(--text-3); }
html[data-v2] .plus { color: #248a3d; font-size: 12px; margin-left: 4px; font-variant-numeric: tabular-nums; }
html[data-v2] .minus { color: #d70015; font-size: 12px; margin-left: 4px; font-variant-numeric: tabular-nums; }
html[data-v2] .win-text {
  font-size: 11px; font-weight: 600;
  color: #248a3d; background: rgba(36, 138, 61, 0.12);
  padding: 1px 6px; border-radius: 5px; margin-left: 6px;
}

/* ---------- 提示条 ---------- */
html[data-v2] .v2-flash { display: grid; gap: 8px; margin: 0 0 18px; }
html[data-v2] .v2-flash .flash-item,
html[data-v2] #flashBox .flash-item {
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 14px;
}
html[data-v2] .flash-item.ok { background: rgba(36, 138, 61, 0.1); border-color: rgba(36, 138, 61, 0.2); color: #1d6b2c; }
html[data-v2] .flash-item.err { background: rgba(215, 0, 21, 0.08); border-color: rgba(215, 0, 21, 0.2); color: #b3000f; }

/* ---------- 弹窗 ---------- */
html[data-v2] .modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-v2] .modal.show { display: flex; }
html[data-v2] .modal-content {
  position: relative;
  width: 100%; max-width: 620px;
  max-height: 84vh; overflow: auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-l);
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  animation: v2sheet 0.35s var(--ease-out) both;
}
@keyframes v2sheet { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
html[data-v2] .modal-content h2 { margin: 0 0 16px; font-size: 21px; letter-spacing: -0.02em; }
html[data-v2] .modal-content .close {
  position: absolute; top: 14px; right: 18px;
  font-size: 24px; line-height: 1; color: var(--text-3); cursor: pointer;
}
html[data-v2] .modal-content .close:hover { color: var(--text); }

/* ---------- 页脚 ---------- */
html[data-v2] .v2-foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 0 calc(36px + var(--safe-b));
}
html[data-v2] .v2-foot-inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 24px;
  display: grid; gap: 14px;
}
html[data-v2] .v2-foot-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
}
html[data-v2] .v2-foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
html[data-v2] .v2-foot-links a { font-size: 13px; color: var(--text-2); }
html[data-v2] .v2-foot-links a:hover { color: var(--accent); }
html[data-v2] .v2-foot-note { margin: 4px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.6; }


/* ---------- 旧外壳兼容：v2 页面隐藏遗留导航，避免双头部 ---------- */
html[data-v2] .sub-site-nav,
html[data-v2] .elo-global-nav { display: none !important; }
html[data-v2] body.has-site-chrome-nav { padding-top: 0 !important; }
html[data-v2] body.has-site-chrome-nav::before { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  html[data-v2] .v2-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-v2] .v2-nav-links { display: none; }
  /* 链接组被隐藏后，它身上的 margin-right:auto 也一起失效，
     工具区就贴到品牌名后面、右边留一大片空白。这里把"推到最右"的职责
     挪到工具区自己身上（toggle 上的 margin-left:auto 只在工具区内部生效）。 */
  html[data-v2] .v2-nav-tools { margin-left: auto; }
  html[data-v2] .v2-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    color: var(--text-2); font-size: 17px; margin-left: auto;
  }
  html[data-v2] .v2-nav.is-open .v2-nav-links {
    display: grid;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    gap: 2px;
  }
  html[data-v2] .v2-nav.is-open .v2-nav-links a { padding: 11px 12px; font-size: 14px; }
}
@media (max-width: 560px) {
  html[data-v2] .v2-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-v2] .v2-hero { padding: 52px 20px 36px; }
  html[data-v2] .v2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-v2] .v2-card-body { padding: 11px 12px 13px; }
  html[data-v2] .v2-card-title { font-size: 13.5px; }
  html[data-v2] .v2-card-desc { font-size: 11.5px; }
  html[data-v2] .v2-panel { padding: 18px; border-radius: var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-v2] * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
