/* ==========================================================================
   V2Ray 客户端下载站 - 全局样式（浅色主题 · 创意版）
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --bg-alt: #eef4fb;
  --surface: #ffffff;
  --border: rgba(15, 23, 42, 0.09);
  --text: #0f172a;
  --text-muted: #5b6b81;
  --primary: #2563eb;
  --accent: #0891b2;
  --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --radius: 20px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer .footer-bottom {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 840px; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

code {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* 滚动浮现动画 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

body.nav-open {
  overflow: hidden;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.brand-name em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
  text-decoration: none;
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

/* 语言切换 */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lang-btn:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.lang-btn[aria-expanded="true"] {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

.lang-globe { color: var(--primary); flex-shrink: 0; }

.lang-current {
  max-width: 5.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.lang-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  min-width: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  animation: langDrop 0.16s ease;
}

.lang-menu[hidden] { display: none; }

@keyframes langDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s;
}

.lang-option:hover {
  background: rgba(37, 99, 235, 0.06);
  text-decoration: none;
}

.lang-option.is-active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.lang-code {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.lang-option.is-active .lang-code {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.lang-name { flex: 1; }

.lang-check {
  color: var(--primary);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(15, 23, 42, 0.05); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero：不对称双栏 + 渐变光斑 + 点阵
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 90px 0 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-blob-a {
  width: 520px; height: 520px;
  background: rgba(37, 99, 235, 0.16);
  top: -180px; right: -120px;
}
.hero-blob-b {
  width: 420px; height: 420px;
  background: rgba(6, 182, 212, 0.14);
  bottom: -80px; left: -140px;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 65% 60% at 40% 35%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 40% 35%, #000 10%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(8, 145, 178, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.7);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .outline-text {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(15, 23, 42, 0.75);
  letter-spacing: 0.01em;
}

.hero-sub {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 52px;
}

.hero-stats > div { display: flex; flex-direction: column; }

.hero-stats dt {
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats dd {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Hero 右侧视觉 */
.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual img {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* 协议跑马灯 */
.marquee {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

.marquee-track i {
  font-style: normal;
  font-size: 0.6rem;
  color: rgba(37, 99, 235, 0.5);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38); }

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.8);
}
.btn-ghost:hover { border-color: rgba(15, 23, 42, 0.35); }

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.25);
}

/* --------------------------------------------------------------------------
   通用 Section
   -------------------------------------------------------------------------- */

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.02rem;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   下载区：杂志式交错排版
   -------------------------------------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  padding: 56px 0;
}

.showcase + .showcase {
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.showcase-reverse .showcase-visual { order: 2; }
.showcase-reverse .showcase-copy { order: 1; }

.showcase-visual {
  position: relative;
  margin: 0;
}

.showcase-visual img {
  border-radius: 30px;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.showcase-reverse .showcase-visual img { transform: rotate(2deg); }

.showcase:hover .showcase-visual img { transform: rotate(0deg) scale(1.02); }

/* 每款客户端的彩色光晕 */
.showcase-visual::before {
  content: "";
  position: absolute;
  inset: 10% 6%;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
}
.glow-blue::before { background: rgba(37, 99, 235, 0.22); }
.glow-green::before { background: rgba(22, 163, 74, 0.20); }
.glow-purple::before { background: rgba(124, 58, 237, 0.20); }

.showcase-ribbon {
  position: absolute;
  top: 22px;
  right: -8px;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px 0 0 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.showcase-copy { position: relative; }

.showcase-index {
  position: absolute;
  top: -58px;
  left: -14px;
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(37, 99, 235, 0.22);
  user-select: none;
  pointer-events: none;
}

.showcase-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}
.tag-blue { color: #2563eb; border-color: rgba(37, 99, 235, 0.35); background: rgba(37, 99, 235, 0.06); }
.tag-green { color: #16a34a; border-color: rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.06); }
.tag-purple { color: #7c3aed; border-color: rgba(124, 58, 237, 0.35); background: rgba(124, 58, 237, 0.06); }

/* 系统匹配提示：默认隐藏，JS 检测后显示 */
.tag-os-hint {
  display: none;
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(251, 191, 36, 0.12);
}
.showcase.os-match .tag-os-hint { display: inline-block; }

.showcase-copy h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.showcase-copy > p {
  color: var(--text-muted);
  margin-bottom: 22px;
  max-width: 480px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-bottom: 30px;
}

.pill-list li {
  position: relative;
  padding: 7px 16px 7px 34px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-size: 0.88rem;
  color: var(--text);
}

.pill-list li::before {
  content: "";
  position: absolute;
  left: 13px; top: 50%;
  width: 6px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-62%) rotate(45deg);
}

.showcase-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.link-arrow {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.link-arrow::after {
  content: " →";
  transition: margin-left 0.2s;
}
.link-arrow:hover { color: var(--primary); text-decoration: none; }
.link-arrow:hover::after { margin-left: 4px; }

.download-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   对比表格
   -------------------------------------------------------------------------- */

.table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-wrap::after {
  content: "左右滑动查看完整表格";
  display: none;
  position: sticky;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(239, 246, 255, 0.96) 35%);
  pointer-events: none;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.95rem;
}

.compare-table thead th:first-child,
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 4px 0 10px rgba(15, 23, 42, 0.04);
}

.compare-table thead th:first-child {
  background: #eef4ff;
  z-index: 2;
}

.compare-table th,
.compare-table td {
  padding: 17px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: rgba(37, 99, 235, 0.06);
  font-weight: 700;
  color: var(--text);
}

.compare-table .col-hot {
  background: rgba(22, 163, 74, 0.05);
}
.compare-table thead .col-hot {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.compare-table tbody th {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   教程时间线
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  list-style: none;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, #2563eb, #06b6d4);
  border-radius: 2px;
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 28px;
  padding: 0 0 40px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3), 0 0 0 6px var(--bg);
}

.timeline-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.timeline-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   CTA 横幅
   -------------------------------------------------------------------------- */

.cta-band {
  padding: 0 24px;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at 20% -20%, rgba(255, 255, 255, 0.22), transparent),
    linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  border-radius: 28px;
  padding: 72px 32px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(29, 78, 216, 0.35);
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 90% at 80% 110%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 110%, #000, transparent 70%);
}

.cta-inner h2 {
  position: relative;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cta-inner p {
  position: relative;
  margin: 12px 0 30px;
  opacity: 0.85;
}

.cta-inner .btn { position: relative; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.faq-item summary {
  padding: 19px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 52px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  margin-top: -13px; /* 高度一半，避免用 transform 定位 */
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
}

.faq-item[open] summary::after {
  content: "×";
  background: rgba(37, 99, 235, 0.14);
}

.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-brand-link:hover { text-decoration: none; }

.footer-brand .brand-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 360px;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-nav h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    display: none;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; }

  .showcase {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0;
  }
  .showcase-reverse .showcase-visual { order: 0; }
  .showcase-reverse .showcase-copy { order: 1; }
  .showcase-visual { max-width: 460px; margin: 0 auto; }
  .showcase-index { top: -44px; font-size: 5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }

  .lang-current { display: none; }

  .lang-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 12px;
    justify-content: center;
  }

  .brand { gap: 8px; font-size: 1.05rem; }
  .brand-logo { width: 34px; height: 34px; }

  .hero { padding-top: 56px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  .hero h1 .outline-text { -webkit-text-stroke-width: 1.5px; }
  .hero-sub { font-size: 0.98rem; }
  .hero-actions { margin-top: 26px; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 28px;
    margin-top: 36px;
  }
  .hero-stats > div { min-width: 88px; }

  .showcase-index { font-size: 3.6rem; top: -28px; left: -6px; }
  .showcase-ribbon { right: 8px; }

  .table-wrap::after { display: block; }
  .compare-table { min-width: 560px; font-size: 0.88rem; }
  .compare-table th,
  .compare-table td { padding: 12px 14px; }

  .timeline::before { left: 22px; }
  .timeline-marker { width: 46px; height: 46px; font-size: 1.05rem; }
  .timeline-item { gap: 18px; }
  .timeline-card { padding: 22px 22px; }

  .cta-band { padding: 0 16px; }
  .cta-inner { padding: 40px 20px; border-radius: 20px; }

  .footer-nav { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-footer { padding-top: 48px; }
}

/* ==========================================================================
   下载页
   ========================================================================== */

.dl-page { padding-bottom: 20px; }

.dl-main {
  padding-top: 36px;
  padding-bottom: 72px;
}

.dl-page-head {
  margin-bottom: 22px;
  max-width: 720px;
}

.dl-page-head .section-eyebrow {
  margin-bottom: 8px;
}

.dl-page-head h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.dl-page-sub {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.dl-page-sub strong { color: var(--text); }

.dl-quick-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 14px;
}

.dl-quick-hints li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.dl-quick-hints span {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.dl-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.dl-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--shadow);
}

.dl-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
}

.dl-tab.is-active {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), #fff 60%);
}

.dl-tab-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  flex-shrink: 0;
}

.dl-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dl-tab-text strong {
  font-size: 1.05rem;
  color: var(--text);
}

.dl-tab-text small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.dl-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.45fr;
  gap: 24px;
  align-items: start;
}

.dl-aside {
  position: sticky;
  top: 88px;
}

.dl-visual {
  position: relative;
  margin: 0 0 14px;
}

.dl-visual img {
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.dl-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.dl-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dl-meta-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.dl-meta-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.dl-meta-item strong {
  font-size: 0.88rem;
}

.dl-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.dl-content-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.dl-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dl-content-head h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.dl-desc {
  color: var(--text-muted);
  max-width: 460px;
  font-size: 0.95rem;
}

.dl-version-card {
  flex-shrink: 0;
  min-width: 140px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.15);
  text-align: right;
}

.dl-version-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dl-version-card strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dl-updated {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dl-arch-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-alt);
}

.dl-arch-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.dl-arch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.dl-chip:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--text);
}

.dl-chip.is-active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--primary);
}

.dl-files {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dl-file:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.dl-file.is-recommended {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.04), #fff 40%);
}

.dl-file-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dl-file-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  flex-shrink: 0;
}

.dl-file-info { min-width: 0; }

.dl-file-info h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dl-file-rec {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
}

.dl-file-name {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 4px 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-file-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 6px;
}

.dl-file-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.9rem;
}

.dl-file-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dl-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 28px 12px;
}

.dl-note {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dl-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.dl-guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.dl-guide-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.dl-guide-card > p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.dl-guide-card ul {
  list-style: none;
  margin-bottom: 18px;
}

.dl-guide-card li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.dl-guide-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.dl-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.dl-extra-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.dl-extra-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.dl-changelog {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dl-changelog li {
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
}

.dl-changelog li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dl-log-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.dl-log-top strong { color: var(--primary); }
.dl-log-top time {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.dl-changelog p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dl-tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-tip-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.dl-tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(8, 145, 178, 0.4);
}

.dl-tip-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

@media (max-width: 980px) {
  .dl-panel { grid-template-columns: 1fr; }
  .dl-aside {
    position: static;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
  }
  .dl-visual { margin-bottom: 0; }
  .dl-extra { grid-template-columns: 1fr; }
  .dl-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .dl-main { padding-top: 28px; padding-bottom: 56px; }
  .dl-tabs { grid-template-columns: 1fr; }
  .dl-tab { padding: 14px 16px; }
  .dl-aside { grid-template-columns: 1fr; }
  .dl-visual { max-width: 240px; margin: 0 auto 12px; }
  .dl-meta { grid-template-columns: 1fr; }
  .dl-meta-item { text-align: left; padding: 12px 14px; }
  .dl-meta-item span,
  .dl-meta-item strong {
    display: inline;
    margin: 0;
  }
  .dl-meta-item span::after { content: "："; }
  .dl-content { padding: 16px; border-radius: 18px; }
  .dl-content-head { flex-direction: column; }
  .dl-version-card { text-align: left; width: 100%; }
  .dl-chip {
    min-height: 40px;
    padding: 8px 14px;
  }
  .dl-file {
    flex-direction: column;
    align-items: stretch;
  }
  .dl-file-btn { width: 100%; min-height: 44px; }
  .dl-quick-hints { gap: 8px; }
  .dl-page-head h1 { font-size: clamp(1.35rem, 6vw, 1.7rem); }
}

/* ==========================================================================
   教程页
   ========================================================================== */

.tu-main {
  padding-top: 40px;
  padding-bottom: 72px;
}

.tu-page-head { margin-bottom: 24px; }

.tu-page-head h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tu-page-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tu-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.tu-tab:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--text);
}

.tu-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.tu-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.tu-panel[hidden] { display: none; }

.tu-panel-intro { margin-bottom: 26px; }

.tu-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tu-panel-intro h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tu-panel-intro p {
  color: var(--text-muted);
  max-width: 640px;
}

.tu-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.tu-step {
  display: flex;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tu-step:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.tu-step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.tu-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tu-step p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 8px;
}

.tu-step p:last-child { margin-bottom: 0; }

.tu-list {
  list-style: none;
  margin: 8px 0 10px;
}

.tu-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 7px;
}

.tu-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.tu-jump {
  border: 0;
  background: none;
  padding: 0;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tu-jump:hover { text-decoration: underline; }

a.tu-jump {
  display: inline-flex;
  font-weight: 600;
}

.tu-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.tu-mini-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--bg-alt);
}

.tu-mini-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.tu-callout {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.tu-callout strong { color: var(--text); }

.tu-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tu-seo-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.tu-seo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.tu-seo-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.tu-seo-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 12px;
  line-height: 1.8;
}

.tu-seo-card p:last-of-type { margin-bottom: 16px; }

@media (max-width: 720px) {
  .tu-panel { padding: 20px; }
  .tu-tabs { gap: 8px; }
  .tu-tab { padding: 8px 14px; font-size: 0.86rem; }
  .tu-grid-2 { grid-template-columns: 1fr; }
  .tu-seo-card { padding: 22px; }
}

/* ==========================================================================
   版本对比页
   ========================================================================== */

.cp-main {
  padding-top: 40px;
  padding-bottom: 72px;
}

.cp-page-head { margin-bottom: 28px; }

.cp-page-head h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cp-page-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cp-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.cp-pick {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.cp-pick.is-hot {
  border-color: rgba(22, 163, 74, 0.4);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.06), #fff 45%);
}

.cp-pick-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.cp-pick h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 12px 0 10px;
}

.cp-pick > p {
  color: var(--text-muted);
  font-size: 0.94rem;
  flex: 1;
  margin-bottom: 18px;
}

.cp-pick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cp-table-block { margin-top: 8px; }

.cp-block-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cp-block-desc {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.cp-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 36px;
}

.cp-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.cp-detail-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cp-detail-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.cp-detail-card p:last-child { margin-bottom: 0; }

.cp-flow {
  list-style: none;
  margin-top: 8px;
}

.cp-flow li {
  position: relative;
  padding: 12px 14px 12px 18px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.cp-flow li:last-child { margin-bottom: 0; }

.cp-cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(29, 78, 216, 0.28);
}

.cp-cta-band h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.cp-cta-band p { opacity: 0.88; }

.cp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.cp-cta-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.cp-cta-band .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
  .cp-picks { grid-template-columns: 1fr; }
  .cp-cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .cp-detail-card { padding: 22px; }
}

/* ==========================================================================
   常见问题页
   ========================================================================== */

.fq-main {
  padding-top: 40px;
  padding-bottom: 72px;
}

.fq-page-head { margin-bottom: 24px; }

.fq-page-head h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.fq-page-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.fq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.fq-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.fq-tab:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--text);
}

.fq-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.fq-more {
  margin-top: 40px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.fq-more h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.fq-more p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.fq-more-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 720px) {
  .fq-tab { padding: 8px 14px; font-size: 0.84rem; }
}

/* ==========================================================================
   博客列表
   ========================================================================== */

.bl-main {
  padding-top: 40px;
  padding-bottom: 80px;
}

.bl-page-head { margin-bottom: 28px; }

.bl-page-head h1 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bl-page-sub {
  margin-top: 10px;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1rem;
}

.bl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.bl-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.bl-tab:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--text);
}

.bl-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bl-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.bl-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.bl-card-link {
  display: block;
  padding: 24px 24px 22px;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.bl-card-link:hover { text-decoration: none; }

.bl-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.bl-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.bl-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.bl-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.bl-card-more {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.bl-card-more::after {
  content: " →";
}

.bl-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.bl-cta {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(29, 78, 216, 0.28);
}

.bl-cta h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.bl-cta p { opacity: 0.9; }

.bl-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.bl-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.bl-cta .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 860px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

/* ==========================================================================
   博客文章页
   ========================================================================== */

.ba-main {
  padding-top: 32px;
  padding-bottom: 80px;
}

.ba-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.ba-crumb a { color: var(--text-muted); }
.ba-crumb a:hover { color: var(--primary); }

.ba-head { margin-bottom: 28px; }

.ba-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.ba-head h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin-bottom: 12px;
}

.ba-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.ba-body h2 {
  font-size: 1.28rem;
  font-weight: 800;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.ba-body p {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 1.02rem;
  line-height: 1.85;
}

.ba-body ul,
.ba-body ol {
  margin: 0 0 16px 1.2em;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.85;
}

.ba-body li { margin-bottom: 6px; }

.ba-body a { font-weight: 600; }

.ba-foot {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.ba-related {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.ba-related h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.ba-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ba-related li { margin-bottom: 8px; }
.ba-related li:last-child { margin-bottom: 0; }

.ba-related a {
  color: var(--text);
  font-weight: 600;
}

.ba-related a:hover { color: var(--primary); }

/* 文末下载引导卡 */
.ba-dl-card {
  margin-top: 40px;
  padding: 28px 28px 26px;
  border-radius: 22px;
  background: linear-gradient(145deg, #eff6ff 0%, #ecfeff 55%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.08);
}

.ba-dl-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.ba-dl-card > p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.ba-dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ba-dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.ba-dl-links a { font-weight: 600; }

/* 右下角下载浮窗 */
.ba-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: min(300px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.ba-float.is-hiding {
  opacity: 0;
  transform: translateY(12px);
}

.ba-float-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.ba-float-close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.ba-float-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.ba-float-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  padding-right: 24px;
}

.ba-float-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.ba-float-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 720px) {
  .ba-float {
    right: 12px;
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    padding: 14px 14px 12px;
  }
  .ba-float-close {
    width: 36px;
    height: 36px;
  }
  .ba-main { padding-bottom: 140px; }
  .ba-dl-card { padding: 22px 18px; }
  .ba-dl-actions .btn { width: 100%; }
  .ba-head h1 { font-size: clamp(1.4rem, 6.5vw, 1.85rem); }
  .ba-body { font-size: 0.98rem; }
  .ba-body h2 { font-size: 1.15rem; margin-top: 28px; }
}

/* ==========================================================================
   小屏增强（≈手机竖屏）
   ========================================================================== */

@media (max-width: 480px) {
  .nav { height: 60px; }
  .nav-links { top: 60px; max-height: calc(100vh - 60px); }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
    gap: 14px 10px;
  }
  .hero-stats dt { font-size: 1.3rem; }
  .hero-stats dd { font-size: 0.78rem; }

  .pill-list { gap: 8px; }
  .showcase-tags { flex-wrap: wrap; }
  .showcase-actions .btn { width: 100%; }
  .showcase-actions { width: 100%; }

  .btn { padding: 12px 20px; }

  .compare-table { min-width: 520px; }

  .footer-nav { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom p {
    font-size: 0.78rem;
    line-height: 1.6;
    padding: 0 4px;
  }

  .cp-pick,
  .cp-detail-card,
  .bl-card-link,
  .dl-guide-card { padding: 18px; }

  .cp-cta-band,
  .bl-cta {
    padding: 20px;
    border-radius: 18px;
  }
  .cp-cta-actions,
  .bl-cta-actions {
    width: 100%;
  }
  .cp-cta-actions .btn,
  .bl-cta-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .tu-tab,
  .fq-tab,
  .bl-tab {
    min-height: 40px;
    padding: 10px 14px;
  }

  .faq-item summary {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .ba-float-desc { display: none; }
  .ba-float-title { font-size: 0.98rem; margin-bottom: 10px; }
  .ba-float-btn { min-height: 44px; padding: 12px 16px; }

  .tu-cta-row .btn { width: 100%; }
  .dl-tab-text small { display: inline; }
  .bl-page-head h1,
  .fq-page-head h1,
  .cp-page-head h1,
  .tu-page-head h1 {
    font-size: clamp(1.35rem, 6.5vw, 1.7rem);
  }
}

