/* ============================================================
   MarkText 中文站 - 全站样式
   配色提取自 MarkText 官方图标：青蓝渐变 (#7C5CFC / #A78BFF) + 深炭灰
   ============================================================ */
:root {
  --primary: #7c5cfc;
  --primary-dark: #5b3fd8;
  --primary-light: #a78bff;
  --primary-bg: rgba(124, 92, 252, 0.07);
  --accent: #a78bff;
  --bg: #f8f7fd;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5eaf0;
  --dark: #22282b;
  --success: #16a34a;
  --warning: #d97706;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(38, 22, 92, 0.06), 0 8px 24px rgba(38, 22, 92, 0.06);
  --shadow-hover: 0 4px 12px rgba(38, 22, 92, 0.08), 0 16px 40px rgba(38, 22, 92, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .brand-accent { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--primary); }
.nav a.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 9px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(124, 92, 252, 0.35);
}
.nav a.nav-cta:hover { color: #fff; filter: brightness(1.06); }
.nav a.active { color: var(--primary); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px; font-size: 16px; font-weight: 600;
  transition: all 0.18s ease; cursor: pointer; border: 0;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 14px rgba(124, 92, 252, 0.38);
}
.btn-primary:hover { color: #fff; filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 92, 252, 0.45); }
.btn-secondary { background: #fff; color: var(--primary-dark); border: 1.5px solid #ddd1ff; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-bg); }
.btn-lg { padding: 15px 34px; font-size: 17px; border-radius: 13px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #f4f1ff 0%, var(--bg) 100%);
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero-inner { display: flex; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 46%; min-width: 0; }
.hero-copy .hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--primary-dark);
  background: var(--primary-bg); border: 1px solid rgba(124, 92, 252, 0.22);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; letter-spacing: -0.5px; margin-bottom: 16px; }
.hero h1 .hero-brand { color: var(--primary-dark); }
.hero-desc { font-size: 16.5px; color: var(--text-muted); max-width: 560px; margin-bottom: 22px; }
.hero-pills { display: flex; flex-wrap: nowrap; gap: 10px; margin-bottom: 26px; }
.hero-pills .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; box-shadow: 0 1px 2px rgba(38, 22, 92, 0.04);
  white-space: nowrap;
}
.hero-pills .pill svg { width: 14px; height: 14px; stroke: var(--primary); }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hero-note { font-size: 13px; color: var(--text-muted); }

.hero-visual { flex: 1 1 54%; min-width: 0; }
.mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(15, 23, 42, 0.06);
}
.mockup-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: #f1f5f9; border-bottom: 1px solid var(--border);
}
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; }
.mockup-bar i:nth-child(1) { background: #ff5f57; }
.mockup-bar i:nth-child(2) { background: #febc2e; }
.mockup-bar i:nth-child(3) { background: #28c840; }
.mockup-screen { background: #1e2528; border-radius: 0; overflow: hidden; border: 0; }
.mockup-screen img { width: 100%; height: auto; display: block; }
.mockup-caption { text-align: center; font-size: 12px; color: var(--text-muted); padding: 10px 14px 12px; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--primary); text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* 数据背书 */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 16px; text-align: center; box-shadow: var(--shadow);
}
.stat-card .stat-num {
  font-size: 32px; font-weight: 800; color: var(--primary-dark);
  font-variant-numeric: tabular-nums; line-height: 1.2; margin-bottom: 6px;
}
.stat-card .stat-label { font-size: 13.5px; color: var(--text-muted); }

/* 功能卡片 */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: all 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(124, 92, 252, 0.35); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--primary-dark); }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* 原理区块 */
.how-grid { display: flex; align-items: center; gap: 44px; }
.how-copy { flex: 1 1 50%; }
.how-copy h2 { font-size: 28px; margin-bottom: 16px; }
.how-copy p { color: var(--text-muted); margin-bottom: 14px; }
.how-copy ul { margin: 14px 0 0; padding: 0; list-style: none; }
.how-copy ul li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--text); }
.how-copy ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 700;
}
.how-visual { flex: 1 1 50%; text-align: center; }
.how-visual svg { width: 100%; height: auto; max-width: 520px; }
.how-visual .visual-note { font-size: 12px; color: #94a3b8; margin-top: 8px; }

/* 场景模块 */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.scene-card .scene-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-bg); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.scene-card h3 { font-size: 18px; margin-bottom: 8px; }
.scene-card > p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.scene-card ul { list-style: none; }
.scene-card ul li { padding-left: 24px; position: relative; font-size: 14px; margin-bottom: 7px; }
.scene-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* 对比表 */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { background: #f2eeff; font-weight: 700; white-space: nowrap; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { font-weight: 600; white-space: nowrap; }
.compare-table .col-hl { background: rgba(124, 92, 252, 0.05); }
.compare-table th.col-hl { color: var(--primary-dark); }
.table-note { font-size: 12.5px; color: #94a3b8; margin-top: 10px; text-align: center; }

/* 更新日志时间线 */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: #e5dcff; }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
}
.timeline-item .tl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.timeline-item .tl-ver { font-weight: 800; font-size: 17px; color: var(--primary-dark); }
.timeline-item .tl-date { font-size: 13px; color: var(--text-muted); }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
}
.badge-latest { background: #dcfce7; color: var(--success); }
.badge-major { background: var(--primary-bg); color: var(--primary-dark); }
.timeline-item p { font-size: 14.5px; color: var(--text-muted); }

/* 用户评价 marquee */
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
  width: 360px; flex: none; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.review-card .review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-card .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff; line-height: 1;
}
.review-card .review-name { font-size: 14px; font-weight: 700; }
.review-card .review-src { font-size: 12px; color: var(--text-muted); }
.review-card p { font-size: 13.8px; color: #4b5563; }
.review-stars { color: #f59e0b; font-size: 13px; letter-spacing: 2px; margin-bottom: 8px; }

/* 快捷键精选 */
.kbd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.kbd-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.kbd-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.kbd-table td { padding: 11px 18px; border-bottom: 1px solid var(--border); }
.kbd-table tr:last-child td { border-bottom: 0; }
.kbd-table td:first-child { color: var(--text-muted); }
kbd {
  display: inline-block; background: #f1f5f9; border: 1px solid #cbd5e1; border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 8px; font-size: 12.5px; font-family: inherit; color: #334155;
  white-space: nowrap;
}

/* 系统要求 / 安全说明 双栏 */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.info-card h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { width: 20px; height: 20px; stroke: var(--primary); }
.info-card ul { list-style: none; }
.info-card ul li { padding-left: 24px; position: relative; margin-bottom: 9px; font-size: 14.5px; }
.info-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.req-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.req-table td { padding: 9px 6px; border-bottom: 1px dashed var(--border); }
.req-table tr:last-child td { border-bottom: 0; }
.req-table td:first-child { color: var(--text-muted); white-space: nowrap; width: 96px; }

/* FAQ 手风琴 */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(124, 92, 252, 0.35); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 17px 22px; font-size: 15.5px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: inherit;
}
.faq-q::after {
  content: "+"; font-size: 20px; color: var(--primary); font-weight: 400; flex: none;
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 22px 18px; font-size: 14.5px; color: var(--text-muted); }
.faq-a-inner a { font-weight: 600; }
.faq-group-title { font-size: 17px; font-weight: 700; margin: 34px 0 14px; display: flex; align-items: center; gap: 8px; }
.faq-group-title:first-child { margin-top: 0; }

/* CTA 收尾 */
.cta-final {
  background: linear-gradient(135deg, #7c5cfc 0%, #5b3fd8 60%, #0a6aa8 100%);
  padding: 72px 0; text-align: center; color: #fff;
}
.cta-final h2 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.cta-final p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; font-size: 16px; }
.cta-final .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.cta-final .btn-primary:hover { color: var(--primary-dark); filter: brightness(0.97); }
.cta-final .btn-primary svg { stroke: var(--primary-dark); }

/* ---------- 页面 Hero（内页） ---------- */
.page-hero { background: linear-gradient(180deg, #f4f1ff, var(--bg)); padding: 46px 0 40px; }
.breadcrumb { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.page-hero h1 { font-size: 34px; margin-bottom: 10px; }
.page-hero .page-desc { color: var(--text-muted); font-size: 16px; max-width: 720px; }

/* ---------- 下载卡片 ---------- */
.edition-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.edition-wrap-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1120px; }
.ed-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ed-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-bg); color: var(--primary);
}
.ed-icon svg { width: 22px; height: 22px; }
.edition-card .ed-alt {
  margin-top: 12px; font-size: 12.5px; line-height: 1.65; color: var(--text-muted);
}
.edition-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.edition-card .ed-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.edition-card .ed-badge {
  font-size: 12.5px; font-weight: 700; color: #fff; background: var(--primary);
  padding: 3px 12px; border-radius: 999px; flex: none;
}
.edition-card h2 { font-size: 21px; }
.edition-card .ed-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.edition-card .dl-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 8px; margin-bottom: 20px; }
.edition-card .dl-grid dt { font-size: 12.5px; color: #94a3b8; }
.edition-card .dl-grid dd { font-size: 14px; font-weight: 600; color: var(--text); }
.edition-card .dl-item { display: flex; flex-direction: column; }
.edition-card .edition-action { width: 100%; margin-top: auto; }
/* 卡片内文件清单 */
.ed-files-label { margin: -6px 0 8px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.ed-files { list-style: none; margin-bottom: 20px; }
.ed-files li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px;
}
.ed-files li:last-child { border-bottom: 0; }
.ed-file-name { color: var(--text); font-weight: 600; word-break: break-all; line-height: 1.5; }
.ed-file-size { color: var(--text-muted); white-space: nowrap; flex: none; }
.dl-advice {
  max-width: 980px; margin: 22px auto 0; background: var(--primary-bg);
  border: 1px solid rgba(124, 92, 252, 0.2); border-radius: 12px;
  padding: 16px 22px; font-size: 14.5px; color: var(--text);
}
.dl-advice b { color: var(--primary-dark); }
.other-platform {
  max-width: 980px; margin: 24px auto 0; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow);
}
.other-platform h3 { font-size: 17px; margin-bottom: 10px; }
.other-platform p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 6px; }
.other-platform code {
  background: #f4f1ff; color: var(--primary-dark); padding: 2px 6px; border-radius: 5px;
  font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.plat-scroll { overflow-x: auto; margin: 16px 0 4px; -webkit-overflow-scrolling: touch; }
.plat-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.plat-table th {
  background: #f2eeff; font-weight: 700; color: var(--text); white-space: nowrap;
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border);
}
.plat-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.plat-table tr:last-child td { border-bottom: 0; }
.plat-table td:first-child { font-weight: 600; white-space: nowrap; }
.plat-table td:nth-child(2) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.8px; color: var(--primary-dark); white-space: nowrap;
}
.plat-table td:nth-child(3) { white-space: nowrap; color: var(--text-muted); }
.plat-table td:nth-child(4) { color: var(--text-muted); font-size: 13.5px; }

/* ---------- 教程页 ---------- */
.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.guide-toc {
  position: sticky; top: 88px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); font-size: 14px;
}
.guide-toc .toc-title { font-weight: 700; margin-bottom: 10px; font-size: 13px; color: var(--text-muted); letter-spacing: 1px; }
.guide-toc a { display: block; padding: 5px 0; color: var(--text); }
.guide-toc a:hover { color: var(--primary); }
.guide-toc a.toc-sub { padding-left: 14px; font-size: 13px; color: var(--text-muted); }
.guide-body { min-width: 0; }
.guide-body h2 { font-size: 24px; margin: 44px 0 16px; padding-top: 6px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { font-size: 18px; margin: 26px 0 10px; }
.guide-body p, .guide-body li { color: #4b5563; font-size: 15px; }
.guide-body ul, .guide-body ol { padding-left: 22px; margin-bottom: 12px; }
.guide-body li { margin-bottom: 7px; }
.guide-body strong { color: var(--text); }
.step-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0; }
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.step-card .step-num {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 13.8px; color: var(--text-muted); }
.guide-tip {
  background: var(--primary-bg); border-left: 3px solid var(--primary);
  padding: 12px 18px; border-radius: 0 10px 10px 0; font-size: 14px; margin: 16px 0;
  color: var(--text);
}
.guide-next {
  margin-top: 46px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 24px; font-size: 14.5px; color: var(--text-muted); box-shadow: var(--shadow);
}

/* ---------- 关于页 ---------- */
.about-block { max-width: 860px; margin: 0 auto; }
.about-block h2 { font-size: 24px; margin: 40px 0 16px; }
.about-block h2:first-of-type { margin-top: 0; }
.about-block p { color: #4b5563; font-size: 15px; margin-bottom: 12px; }
.about-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.about-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.about-table tr:last-child td { border-bottom: 0; }
.about-table td:first-child { color: var(--text-muted); white-space: nowrap; width: 130px; }
.oss-note {
  background: var(--primary-bg); border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: var(--radius); padding: 20px 24px; font-size: 14.5px; margin-top: 18px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cbd5e1; padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand .brand-accent { color: var(--accent); }
.footer-brand p { font-size: 13.8px; color: #94a3b8; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: #94a3b8; font-size: 14px; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15); padding: 20px 0 26px;
  text-align: center; font-size: 12.8px; color: #7b8794;
}
.footer-bottom .disclaimer { margin-bottom: 4px; }
.footer-bottom .oss-line { font-size: 12px; color: #64748b; }

/* ---------- 二维码弹窗 ---------- */
.qr-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.qr-modal[hidden] { display: none; }
.qr-modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.qr-modal-card {
  position: relative; background: #fff; border-radius: 20px; padding: 36px 40px 30px; text-align: center;
  width: min(400px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); animation: qrPop 0.18s ease;
}
@keyframes qrPop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qr-modal-card h3 { margin: 0 0 22px; font-size: 21px; font-weight: 700; }
.qr-modal-qr {
  position: relative; width: 200px; height: 200px; margin: 0 auto; padding: 12px; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 14px;
}
.qr-qr-canvas, .qr-qr-canvas svg { display: block; width: 100%; height: 100%; }
.qr-modal-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; padding: 5px; background: #fff; border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12); object-fit: contain;
}
.qr-modal-tip { font-size: 14px; color: #6b7280; line-height: 1.7; margin: 20px 0 0; }
.qr-modal-tip strong { color: #1f2937; }
.qr-modal-x {
  position: absolute; top: 12px; right: 16px; border: 0; background: none;
  font-size: 24px; color: #9ca3af; cursor: pointer; line-height: 1;
}

/* ---------- 404 ---------- */
.nf-wrap { text-align: center; padding: 90px 0 100px; }
.nf-wrap img { width: 72px; margin: 0 auto 20px; }
.nf-wrap h1 { font-size: 56px; color: var(--primary-dark); margin-bottom: 8px; }
.nf-wrap p { color: var(--text-muted); margin-bottom: 26px; }
.nf-actions { display: flex; gap: 14px; justify-content: center; }

/* ---------- Reveal 动效 ---------- */
.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-anim .marquee-track { animation: none !important; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .scene-grid { grid-template-columns: 1fr; }
  .step-cards { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
}
@media (max-width: 768px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 18px; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(38, 22, 92, 0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid #f1f5f9; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .hero { padding: 46px 0 48px; }
  .hero-inner { flex-direction: column; gap: 34px; }
  .hero h1 { font-size: 29px; }
  .hero-pills { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section { padding: 52px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { flex-direction: column; }
  .info-grid, .kbd-grid { grid-template-columns: 1fr; }
  .edition-wrap { grid-template-columns: 1fr; }
  .edition-wrap-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 27px; }
  .review-card { width: 300px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 25px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
