/* lexmail 官网共享样式 —— 零依赖，静态托管可用 */
:root {
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff6ff;
  --text: #1f2328;
  --muted: #57606a;
  --faint: #8b949e;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --border: #e4e7eb;
  --card: #ffffff;
  --ok: #1a7f37;
  --warn: #9a6700;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4a8bff;
    --accent-strong: #6ea1ff;
    --accent-soft: #10233f;
    --text: #e6e8eb;
    --muted: #9aa4af;
    --faint: #6e7781;
    --bg: #0d1117;
    --bg-soft: #151a21;
    --border: #262c36;
    --card: #151a21;
    --ok: #3fb950;
    --warn: #d29922;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.75 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
img, svg { vertical-align: middle; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ── 顶部导航 ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 26px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-cta {
  background: var(--accent); color: #fff !important; font-weight: 600;
  padding: 8px 16px !important; border-radius: 9px;
}
.nav-cta:hover { background: var(--accent-strong); }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Hero ─────────────────────────────────── */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 5vw, 46px); line-height: 1.2; letter-spacing: -0.5px;
  margin: 0 0 14px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub {
  font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 26px;
}
.hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  font-size: 12.5px; color: var(--muted); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px; background: var(--card);
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; font-weight: 600; font-size: 15.5px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ── CSS 产品截图模拟 ─────────────────────── */
.shot-stage { padding: 30px 0 10px; perspective: 1200px; }
.shot {
  max-width: 880px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; text-align: left; font-size: 12px; line-height: 1.5;
  transform: rotateX(4deg);
}
.shot-titlebar {
  display: flex; align-items: center; gap: 7px; padding: 9px 13px;
  border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.dot { width: 11px; height: 11px; border-radius: 50%; opacity: 0.9; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.shot-titlebar .addr {
  margin-left: 10px; flex: 1; text-align: center; color: var(--faint);
  font-size: 11px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 10px;
}
.shot-body { display: grid; grid-template-columns: 150px 235px 1fr; min-height: 320px; }
.shot-pane { border-right: 1px solid var(--border); padding: 10px; }
.shot-pane:last-child { border-right: 0; }
.snav { padding: 5px 8px; border-radius: 6px; color: var(--muted); margin-bottom: 2px; }
.snav.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.srow { display: flex; gap: 7px; padding: 8px 9px; border-radius: 8px; align-items: flex-start; }
.srow + .srow { margin-top: 2px; }
.srow.on { background: var(--bg-soft); }
.srow .av { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex: none; }
.srow .from { font-weight: 600; font-size: 11.5px; }
.srow .subj { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .meta { margin-left: auto; font-size: 10px; color: var(--faint); flex: none; }
.unread { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex: none; }
.tag { font-size: 9.5px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tag.w { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.sdetail h4 { margin: 0 0 2px; font-size: 13.5px; }
.sdetail .dm { font-size: 10.5px; color: var(--faint); margin-bottom: 9px; }
.sk { height: 7px; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--border); margin: 6px 0; }
.sk.w60 { width: 60%; } .sk.w85 { width: 85%; } .sk.w40 { width: 40%; }
.ai-callout {
  margin-top: 10px; border: 1px solid var(--accent); border-radius: 9px;
  background: var(--accent-soft); padding: 8px 10px; font-size: 11px;
}
.ai-callout b { color: var(--accent); font-size: 10.5px; }
@media (max-width: 760px) { .shot-body { grid-template-columns: 1fr; } .shot-pane { display: none; } .shot-pane:last-child { display: block; } }

/* ── 分节 ─────────────────────────────────── */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.block-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.block-head .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.block-head h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 8px 0 10px; letter-spacing: -0.3px; }
.block-head p { color: var(--muted); margin: 0; }

/* ── 功能卡片 ─────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: all 0.18s ease;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── 对比表 ───────────────────────────────── */
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 14.5px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--bg-soft); font-size: 13.5px; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; }
.compare .yes { color: var(--ok); font-weight: 600; }
.compare .no { color: var(--faint); }
.compare .col-us { color: var(--accent); font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ── 步骤 ─────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 22px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 20px; width: 30px; height: 30px;
  border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.step h3 { margin: 6px 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── 定价 ─────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
.price-grid.three { grid-template-columns: repeat(3, minmax(0, 340px)); }
@media (max-width: 960px) { .price-grid.three { grid-template-columns: 1fr; } }
.price-card {
  position: relative; background: var(--card); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 28px 26px 24px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price-card .flag {
  position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.price-card h3 { margin: 2px 0 4px; font-size: 18px; }
.price-card .desc { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.amount { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.amount small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 18px 0 22px; padding: 0; flex: 1; }
.price-card li { padding: 6px 0 6px 26px; position: relative; color: var(--text); font-size: 14.5px; }
.price-card li::before {
  content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700;
}
.price-card li.na { color: var(--faint); }
.price-card li.na::before { content: "–"; color: var(--faint); }

/* ── FAQ ──────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 11px;
  padding: 0 20px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

/* ── 下载卡 ───────────────────────────────── */
.dl-card {
  display: flex; gap: 20px; align-items: center; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.dl-card .os-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.dl-card h3 { margin: 0 0 3px; }
.dl-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.dl-card .right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dl-card .dl-btn { padding: 8px 18px; font-size: 14px; }
/* .btn 的 display:inline-flex 会盖过 UA 样式表的 [hidden]{display:none}，
   降级（无发版清单）时按钮必须真正隐藏 */
.dl-card .dl-btn[hidden] { display: none; }
.badge-ok { color: var(--ok); font-size: 12.5px; font-weight: 600; }
.badge-soon { color: var(--warn); font-size: 12.5px; font-weight: 600; }
.req { color: var(--muted); font-size: 13.5px; }
/* 发版清单渲染的 SHA-256 行（点击复制） */
.sha-line { cursor: pointer; }
.sha-line code { display: block; margin-top: 2px; font-size: 12px; word-break: break-all; color: var(--faint); }
.sha-line:hover code { color: var(--muted); }

/* ── 法律文档 ─────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 0 72px; }
.legal h1 { font-size: 26px; margin-bottom: 4px; }
.legal .note { color: var(--faint); font-size: 13px; margin-bottom: 28px; }
.legal h2 { font-size: 17.5px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--text); font-size: 15px; }
.legal pre { font-family: inherit; white-space: pre-wrap; }

/* ── 页脚 ─────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 40px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; }
.site-footer a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 18px; color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── 动效 ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: all 0.5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
