/* ============================================================
   7zip-zh.cn - 主样式表
   设计语言：工程师桌面 + 终端美学 + 琥珀橙高光
   ============================================================ */

:root {
  /* 配色 - 深色工程美学 */
  --bg-base: #0b0d10;
  --bg-elevated: #14171c;
  --bg-card: #1a1f26;
  --bg-card-hover: #20262f;
  --border: #262c36;
  --border-strong: #323a47;
  --text-primary: #e6e8eb;
  --text-secondary: #8a93a3;
  --text-muted: #5a6473;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.1);
  --accent-glow: rgba(245, 158, 11, 0.25);
  --success: #10b981;
  --code-bg: #0f1217;
  --code-border: #1f2630;

  /* 字体 */
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular,
    "Cascadia Code", Consolas, monospace;

  /* 节奏 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 150ms ease-out;
  --container: 1200px;
  --header-h: 64px;
}

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

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

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

code,
pre,
.mono {
  font-family: var(--font-mono);
}

::selection {
  background: var(--accent);
  color: var(--bg-base);
}

/* ============== 容器 ============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== 顶部导航 ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand:hover {
  color: var(--text-primary);
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.brand-text .num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

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

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.cta-header {
  padding: 8px 18px;
  background: var(--accent);
  color: var(--bg-base);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.cta-header:hover {
  background: var(--accent-hover);
  color: var(--bg-base);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

@media (max-width: 768px) {
  .nav a:not(.active) {
    display: none;
  }
}

/* ============== 按钮 ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-base);
  box-shadow: 0 6px 20px -6px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16.5px;
}

/* ============== 通用结构 ============== */
main {
  flex: 1;
}

section {
  padding: 80px 0;
}

section.compact {
  padding: 56px 0;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head .lead {
  margin: 0;
}

/* ============== Hero ============== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg-base) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-title .num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.hero-title .gradient {
  background: linear-gradient(120deg, var(--accent) 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust .check {
  color: var(--success);
  font-weight: 700;
}

/* Hero 终端窗口 */
.terminal {
  background: var(--code-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(245, 158, 11, 0.06);
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #161a21;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3f4a;
}

.terminal-dot:nth-child(1) {
  background: #ef4444;
}
.terminal-dot:nth-child(2) {
  background: #f59e0b;
}
.terminal-dot:nth-child(3) {
  background: #10b981;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 20px 22px 24px;
  color: var(--text-primary);
  line-height: 1.9;
  min-height: 240px;
}

.terminal-body .prompt {
  color: var(--accent);
  user-select: none;
}

.terminal-body .comment {
  color: var(--text-muted);
}

.terminal-body .ok {
  color: var(--success);
}

.terminal-body .cmd {
  color: #c9d1d9;
}

.terminal-body .file {
  color: #79c0ff;
}

.terminal-body .out {
  color: var(--text-secondary);
}

.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1.1s infinite step-end;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 64px 0 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============== 数据条 ============== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-secondary);
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ============== 卡片 ============== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 14.5px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ============== 格式矩阵表 ============== */
.matrix {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.matrix-head,
.matrix-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
}

.matrix-head {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.matrix-head > div,
.matrix-row > div {
  padding: 14px 20px;
}

.matrix-row {
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  transition: background var(--transition);
}

.matrix-row:last-child {
  border-bottom: none;
}

.matrix-row:hover {
  background: var(--bg-elevated);
}

.matrix-row .fmt-name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.matrix-row .fmt-ext {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--code-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--code-border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid;
}

.badge.yes {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.badge.no {
  color: var(--text-muted);
  background: var(--code-bg);
  border-color: var(--border);
}

.badge.partial {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(245, 158, 11, 0.25);
}

@media (max-width: 700px) {
  .matrix {
    font-size: 13px;
  }
  .matrix-head,
  .matrix-row {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .matrix-head > div,
  .matrix-row > div {
    padding: 12px 14px;
  }
}

/* ============== 步骤教程 ============== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ============== 下载页主入口 ============== */
.pan-card {
  position: relative;
  background: linear-gradient(135deg, #1a1f26 0%, #14171c 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
}

.pan-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}

.pan-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

@media (max-width: 800px) {
  .pan-card {
    padding: 28px 24px;
  }
  .pan-card-content {
    grid-template-columns: 1fr;
  }
}

.pan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.pan-meta .ver {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.pan-meta .dot {
  color: var(--text-muted);
  margin: 0 4px;
}

.pan-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pan-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pan-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 100%;
  overflow: hidden;
}

.pan-link-box code {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.copy-btn {
  flex-shrink: 0;
  padding: 4px 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  transition: all var(--transition);
}

.copy-btn:hover {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
}

.copy-btn.copied {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.pan-cta-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.pan-cta-side .btn-lg {
  width: 100%;
}

.pan-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 800px) {
  .pan-cta-side {
    width: 100%;
  }
}

/* ============== 下载版本列表 ============== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
}

.dl-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.dl-card.recommended {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.04) 100%);
}

.dl-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.dl-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
}

.dl-card-title {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.dl-card-recommend {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--accent);
  color: var(--bg-base);
  border-radius: 100px;
}

.dl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dl-card-meta span strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.dl-card-action {
  margin-top: auto;
  padding-top: 8px;
}

.dl-card-action .btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* ============== FAQ ============== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 50px;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.75;
}

.faq-item .faq-body code {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--code-border);
}

/* ============== 对比表 ============== */
.compare-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: center;
}

.compare-head {
  background: var(--bg-elevated);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.compare-head > div,
.compare-row > div {
  padding: 14px 18px;
}

.compare-row {
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row .row-name {
  font-weight: 600;
}

.compare-row .highlight {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 700px) {
  .compare-head,
  .compare-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    font-size: 13px;
  }
  .compare-head > div,
  .compare-row > div {
    padding: 12px 12px;
  }
}

/* ============== 底部 ============== */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 80px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============== 时间线 ============== */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}

.tl-item {
  position: relative;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.tl-item:hover {
  border-color: var(--accent);
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-base);
}

.tl-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tl-ver {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--accent);
}

.tl-date {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tl-tag {
  font-size: 11.5px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.tl-tag.gray {
  background: var(--code-bg);
  color: var(--text-muted);
  border-color: var(--border);
}

.tl-changes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tl-changes li {
  position: relative;
  padding-left: 16px;
}

.tl-changes li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 4px;
}

/* ============== 内容正文（7z-format / license）============== */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.625rem;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--accent);
  font-weight: 600;
}

.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--text-primary);
}

.prose code {
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--accent);
  border: 1px solid var(--code-border);
}

.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 13px;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 16px;
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.prose blockquote p {
  color: var(--text-primary);
  margin: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.prose table th,
.prose table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.prose table th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-primary);
}

/* ============== 滚动入场动画 ============== */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== 工具样式 ============== */
.text-muted {
  color: var(--text-muted);
}

.text-mono {
  font-family: var(--font-mono);
}

.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 48px 0;
}

.alert {
  padding: 14px 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.4;
}

.alert .alert-body {
  flex: 1;
}

.alert .alert-body strong {
  color: var(--accent);
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* 可访问性 - 键盘焦点 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
 * 补充组件: pan-card / tl-item / prose / faq / matrix
 * ============================================================ */

/* 主下载网盘卡片 (Hero 下方的网盘主入口) */
.pan-card {
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(251,191,36,0.04) 50%, rgba(245,158,11,0.08));
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(245,158,11,0.18);
}
.pan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(245,158,11,0.12), transparent 60%);
  pointer-events: none;
}
.pan-card-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: center;
  position: relative;
}
.pan-card .ver {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  background: rgba(245,158,11,0.12);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.pan-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 14px 0 10px;
  letter-spacing: -0.5px;
}
.pan-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.pan-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.pan-link-box code {
  flex: 1;
  color: var(--accent);
  word-break: break-all;
  font-size: 12.5px;
}
.pan-cta-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.pan-cta-side .btn-lg {
  padding: 14px 18px;
  font-size: 15px;
  justify-content: center;
}
.pan-cta-side .btn-ghost {
  font-size: 12.5px;
  padding: 8px;
  text-align: center;
  justify-content: center;
}
.pan-hint {
  font-size: 11.5px;
  color: var(--text-secondary);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.2px;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .pan-card { padding: 24px 20px; }
  .pan-card-content { grid-template-columns: 1fr; gap: 20px; }
  .pan-title { font-size: 1.375rem; }
  .pan-link-box { flex-direction: column; align-items: stretch; }
  .pan-link-box code { font-size: 11.5px; }
}

/* 6 张下载卡片网格 */
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.18s ease-out;
}
.dl-card:hover {
  border-color: rgba(245,158,11,0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(245,158,11,0.15);
}
.dl-card.recommended {
  border-color: rgba(245,158,11,0.4);
  background: linear-gradient(160deg, var(--bg-card), rgba(245,158,11,0.05));
}
.dl-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dl-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.dl-card-title {
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
}
.dl-card-recommend {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(245,158,11,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.dl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.dl-card-meta strong { color: var(--text-primary); font-weight: 600; }
.dl-card-action { margin-top: auto; }
.dl-card-action .btn {
  width: 100%;
  justify-content: center;
  padding: 9px 12px;
  font-size: 13px;
}

/* 时间线 (更新历史页) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 50%, transparent 100%);
}
.tl-item {
  position: relative;
  padding: 0 0 36px 12px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg-base), 0 0 12px rgba(245,158,11,0.4);
}
.tl-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.tl-ver {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.tl-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.tl-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(245,158,11,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.tl-tag.gray {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.tl-changes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-changes li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}
.tl-changes li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}
.tl-changes code {
  font-size: 12.5px;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--accent);
}

/* 文章正文 prose */
.prose {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-primary);
  font-size: 15.5px;
  line-height: 1.85;
}
.prose h2 {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 48px 0 18px;
  letter-spacing: -0.3px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.prose h2:first-of-type { border-top: none; padding-top: 0; }
.prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-primary);
}
.prose p { margin: 0 0 16px; color: var(--text-primary); }
.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.prose ul li, .prose ol li {
  margin-bottom: 8px;
  color: var(--text-primary);
}
.prose strong { color: var(--accent); font-weight: 600; }
.prose code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent);
  word-break: break-all;
}
.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  overflow-x: auto;
  margin: 16px 0 22px;
  font-size: 13px;
  line-height: 1.7;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 13px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.prose table thead {
  background: var(--bg-elevated);
}
.prose table th,
.prose table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.prose table th {
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.prose table tbody tr:last-child td { border-bottom: none; }
.prose table tbody tr:hover { background: rgba(245,158,11,0.04); }
.prose blockquote {
  margin: 18px 0;
  padding: 16px 20px;
  background: rgba(245,158,11,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-primary);
  font-size: 14.5px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  transition: all 0.18s ease-out;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
  background: var(--bg-elevated);
  border-color: rgba(245,158,11,0.3);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text-primary);
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--accent); }
.faq-body {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.8;
}
.faq-body code {
  font-family: var(--font-mono);
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--accent);
  font-size: 12.5px;
}

/* Header 滚动状态 */
.site-header.scrolled {
  background: rgba(11,13,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-strong);
}
