/* ============================================================
   Rescuezilla 中文站 (www.rescuezilla.cn) 全站样式
   配色取自 Logo：黑 #111111 / 浅灰紫 #E2E2EE / 中性灰体系
   风格：扁平 · 现代 · 专业 · 无渐变滥用 · 无 emoji
   ============================================================ */

:root {
  --c-primary: #111111;
  --c-primary-soft: #2a2a2e;
  --c-accent: #E2E2EE;
  --c-accent-deep: #c9c9dd;
  --c-bg: #ffffff;
  --c-bg-alt: #f6f6fa;
  --c-bg-dark: #111111;
  --c-text: #1a1a1e;
  --c-text-2: #4a4a52;
  --c-text-3: #71717c;
  --c-border: #e4e4ec;
  --c-success: #1f7a3d;
  --c-warn: #b3541e;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(17, 17, 17, 0.07);
  --shadow-lg: 0 10px 40px rgba(17, 17, 17, 0.14);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Courier New", monospace;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand .logo-mark { width: 36px; height: 36px; border-radius: 8px; display: block; }
.brand .site-name { letter-spacing: 0.5px; }
.brand .site-name small { display: block; font-size: 11px; font-weight: 400; color: var(--c-text-3); letter-spacing: 2px; line-height: 1.2; }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 14px; font-size: 15px; color: var(--c-text-2);
  border-radius: 6px; transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--c-primary); background: var(--c-accent); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-github { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-text-2); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--c-border); transition: all 0.2s; }
.nav-github:hover { border-color: var(--c-primary); color: var(--c-primary); }
.nav-github svg { width: 16px; height: 16px; fill: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }
.btn-lg { padding: 14px 34px; font-size: 16px; border-radius: 10px; }
.btn .btn-icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-white { background: #fff; color: var(--c-primary); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* 移动端菜单 */
.menu-toggle { display: none; background: none; border: none; padding: 8px; }
.menu-toggle svg { width: 24px; height: 24px; stroke: var(--c-primary); }

/* ---------- Hero ---------- */
.hero {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
  padding: 72px 0 64px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--c-text-2);
  background: #fff; border: 1px solid var(--c-border);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); }
.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px); line-height: 1.25; font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 18px;
}
.hero h1 .hl { position: relative; display: inline-block; background: var(--c-accent); padding: 0 6px; border-radius: 4px; }
.hero .lead { font-size: 18px; color: var(--c-text-2); margin-bottom: 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--c-text-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; fill: none; stroke: var(--c-text-3); stroke-width: 2; }

.hero-visual { position: relative; }
.hero-img {
  width: 100%; max-width: 460px; margin: 0 auto;
  border-radius: var(--radius-lg); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg); position: relative; z-index: 2; background: #fff;
  aspect-ratio: 1 / 1; object-fit: cover;
}
.hero-badge-float {
  position: absolute; right: -14px; top: -18px; z-index: 3;
  background: var(--c-primary); color: #fff; border-radius: 12px;
  padding: 12px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
}
.hero-badge-float svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.hero-badge-float b { font-size: 14px; display: block; line-height: 1.3; }
.hero-badge-float small { font-size: 11px; opacity: 0.75; }

/* ---------- 通用 Section ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-bg-dark); color: #f0f0f5; }
.section-dark .section-head p { color: #a8a8b4; }
.section-dark .feature-card { background: #1c1c20; border-color: #2e2e34; }
.section-dark .feature-card h3 { color: #fff; }
.section-dark .feature-card p { color: #a8a8b4; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { font-size: 13px; font-weight: 700; color: var(--c-text-3); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.3px; margin-bottom: 14px; }
.section-head p { color: var(--c-text-2); font-size: 16px; }
.section-dark .section-head .kicker { color: #8a8a96; }
.section-dark .section-head h2 { color: #fff; }

/* ---------- 场景卡片 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scene-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: all 0.25s;
}
.scene-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--c-accent-deep); }
.scene-card .scene-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--c-accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.scene-card .scene-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--c-primary); stroke-width: 1.8; }
.scene-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.scene-card p { font-size: 14.5px; color: var(--c-text-2); }
.scene-card .scene-tag {
  display: inline-block; margin-top: 14px; font-size: 12px; color: var(--c-text-3);
  background: var(--c-bg-alt); border: 1px solid var(--c-border);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- 优势（深色区） ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #1c1c20; border: 1px solid #2e2e34; border-radius: var(--radius-lg);
  padding: 28px 26px; transition: border-color 0.25s;
}
.feature-card:hover { border-color: #4a4a54; }
.feature-card .f-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(226, 226, 238, 0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card .f-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: #a8a8b4; line-height: 1.7; }

/* ---------- 数据条 ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-item { text-align: center; padding: 8px 0; }
.stat-item b { display: block; font-size: 34px; font-weight: 800; color: #fff; font-family: var(--font-mono); letter-spacing: -1px; }
.stat-item span { font-size: 13px; color: #a8a8b4; }
.stat-item + .stat-item { border-left: 1px solid #2e2e34; }

/* ---------- 版本信息条 ---------- */
.version-bar {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.version-bar .v-info { display: flex; align-items: center; gap: 16px; }
.version-bar .v-badge {
  background: var(--c-primary); color: #fff; font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  padding: 8px 14px; border-radius: 8px;
}
.version-bar .v-desc b { display: block; font-size: 16px; }
.version-bar .v-desc span { font-size: 13px; color: var(--c-text-3); }

/* ---------- 步骤流程 ---------- */
.steps-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 28px 26px; position: relative;
}
.step-card .step-num {
  font-family: var(--font-mono); font-size: 44px; font-weight: 800;
  color: var(--c-accent); -webkit-text-stroke: 1.5px var(--c-primary);
  display: block; margin-bottom: 12px; line-height: 1;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14.5px; color: var(--c-text-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item details summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; font-size: 16px; font-weight: 600;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary .faq-arrow { transition: transform 0.25s; flex: none; }
.faq-item details summary .faq-arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--c-text-3); stroke-width: 2.2; }
.faq-item details[open] summary .faq-arrow { transform: rotate(180deg); }
.faq-item details .faq-body { padding: 0 22px 18px; font-size: 14.5px; color: var(--c-text-2); border-top: 1px dashed var(--c-border); padding-top: 14px; }

/* ---------- CTA ---------- */
.cta-panel {
  background: var(--c-primary); color: #fff; border-radius: var(--radius-lg);
  padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,226,238,0.18) 0%, transparent 70%);
}
.cta-panel h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-panel p { color: #c9c9d4; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-panel .hero-cta { justify-content: center; margin-bottom: 0; position: relative; z-index: 1; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--c-primary); color: #b9b9c4; padding: 56px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-brand .logo-mark { width: 32px; height: 32px; border-radius: 7px; display: block; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 1px; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: #b9b9c4; transition: color 0.2s; }
.site-footer ul a:hover { color: #fff; }
.footer-desc { line-height: 1.8; font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid #2e2e34; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8a8a96;
}

/* ---------- 下载弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(17, 17, 17, 0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
  padding: 20px;
}
.modal-mask.show { opacity: 1; visibility: visible;  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
 }
 button { outline: none } 
.modal-box {
  background: #fff; border-radius: var(--radius-lg); width: min(560px, 100%);
  box-shadow: var(--shadow-lg); transform: translateY(16px) scale(0.98); transition: transform 0.25s;
  max-height: 90vh; overflow-y: auto;
}
.modal-mask.show .modal-box { transform: translateY(0) scale(1); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--c-border);
}
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-close {
  background: none; border: none; padding: 6px; border-radius: 6px; color: var(--c-text-3);
  display: flex; transition: all 0.2s;
}
.modal-close:hover { background: var(--c-bg-alt); color: var(--c-primary); }
.modal-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.modal-body { padding: 24px; }
.modal-body .dl-version {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-text-3); margin-bottom: 20px; flex-wrap: wrap;
}
.modal-body .dl-version .v-pill {
  background: var(--c-primary); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-family: var(--font-mono); font-size: 12px;
}
.qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qr-item {
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px 16px;
  text-align: center; background: var(--c-bg-alt); transition: all 0.2s;
}
.qr-item:hover { border-color: var(--c-accent-deep); background: #fff; }
.qr-box {
  width: 168px; height: 168px; margin: 0 auto 14px;
  background: #fff; border: 1px dashed var(--c-accent-deep); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-3); font-size: 12px;
}
.qr-item h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.qr-item p { font-size: 12px; color: var(--c-text-3); }
.qr-item .qr-note { margin-top: 10px; font-size: 12px; color: var(--c-text-2); background: #fff; border: 1px solid var(--c-border); border-radius: 6px; padding: 4px 8px; display: inline-block; }
.modal-body .dl-tip {
  margin-top: 20px; font-size: 13px; color: var(--c-text-3);
  background: var(--c-bg-alt); border: 1px solid var(--c-border);
  border-radius: 8px; padding: 12px 16px; line-height: 1.8;
}
.modal-body .dl-tip b { color: var(--c-text-2); }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 18px 0 0; font-size: 13px; color: var(--c-text-3); }
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span[aria-current] { color: var(--c-text-2); }

/* ---------- 页面 Hero（内页） ---------- */
.page-hero { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); padding: 48px 0 52px; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.4px; margin-bottom: 14px; }
.page-hero .page-lead { font-size: 16.5px; color: var(--c-text-2); max-width: 760px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.data-table th {
  text-align: left; padding: 14px 18px; background: var(--c-bg-alt);
  font-weight: 700; border-bottom: 1px solid var(--c-border); white-space: nowrap;
}
.data-table td { padding: 13px 18px; border-bottom: 1px solid var(--c-border); color: var(--c-text-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--c-text); font-weight: 600; }
.data-table .mono { font-family: var(--font-mono); font-size: 13px; }

/* ---------- 版本时间线 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--c-accent); }
.timeline-item { position: relative; padding: 0 0 30px 22px; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-primary);
}
.timeline-item .t-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.timeline-item .t-ver { font-size: 17px; font-weight: 800; font-family: var(--font-mono); }
.timeline-item .t-date { font-size: 13px; color: var(--c-text-3); }
.timeline-item .t-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  background: var(--c-primary); color: #fff; border-radius: 4px; padding: 2px 8px;
}
.timeline-item p { font-size: 14px; color: var(--c-text-2); }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.badge-dark { background: var(--c-primary); color: #fff; }
.badge-gray { background: var(--c-bg-alt); color: var(--c-text-2); border: 1px solid var(--c-border); }
.badge-outline { background: #fff; color: var(--c-primary); border: 1px solid var(--c-primary); }

/* ---------- TOC / 侧栏 ---------- */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc .toc-title { font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--c-text-3); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--c-text-2); border-left: 2px solid var(--c-border); transition: all 0.2s; }
.toc a:hover, .toc a.active { color: var(--c-primary); border-left-color: var(--c-primary); font-weight: 600; }

/* ---------- 文章内容 ---------- */
.article { max-width: 800px; }
.article h2 {
  font-size: 24px; font-weight: 800; margin: 52px 0 18px; letter-spacing: -0.3px;
  padding-bottom: 10px; border-bottom: 2px solid var(--c-accent);
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; font-weight: 700; margin: 30px 0 12px; }
.article p { font-size: 15.5px; color: var(--c-text-2); margin-bottom: 14px; }
.article ul.feature-list { margin: 14px 0 20px; }
.article ul.feature-list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; color: var(--c-text-2); }
.article ul.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--c-primary);
}
.article .note {
  background: var(--c-bg-alt); border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary);
  border-radius: 8px; padding: 14px 18px; font-size: 14px; color: var(--c-text-2); margin: 18px 0;
}
.article .note b { color: var(--c-text); }

/* ---------- 对比表 ---------- */
.compare-table th:first-child, .compare-table td:first-child { width: 26%; }
.compare-table .yes { color: var(--c-success); font-weight: 700; }
.compare-table .no { color: var(--c-text-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .scene-grid, .adv-grid, .steps-flow { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-item + .stat-item { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .scene-grid, .adv-grid, .steps-flow { grid-template-columns: 1fr; }
  .qr-row { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--c-border);
    display: none; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 4%; gap: 2px; }
  .menu-toggle { display: flex; }
  .nav-github { display: none; }
  .hero-badge-float { right: 6px; }
  .cta-panel { padding: 40px 24px; }
  .version-bar { flex-direction: column; align-items: flex-start; }
}
