/* ==========================================================================
   clash verge · 模板 01「隐私安全权威型」
   主题色：#1d4ed8 深蓝 + #0ea5e9 天青
   移动优先 / 自适应
   ========================================================================== */

:root {
  --brand: #1d4ed8;
  --brand-2: #0ea5e9;
  --brand-soft: rgba(29, 78, 216, .08);
  --brand-glow: rgba(29, 78, 216, .28);
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f8fd;
  --card: #ffffff;
  --ok: #0f9d58;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.24; color: var(--ink); margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: clamp(21px, 2.7vw, 30px); line-height: 1.34; color: var(--ink); margin: 0 0 12px; }
h3 { font-size: 16px; color: var(--ink); margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 12px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 62px 0; }
.section--alt { background: #fff; }
.section--tight { padding: 44px 0; }
.section-head { max-width: 860px; margin-bottom: 28px; }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--brand); background: var(--brand-soft); padding: 5px 13px;
  border-radius: 999px; margin-bottom: 12px;
}
.lead { font-size: 17px; color: var(--muted); max-width: 780px; }

/* H2 摘要段：可脱离上下文被 AI 独立引用 */
.summary {
  position: relative; font-size: 16.5px; color: #3f4c63; max-width: 900px;
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 0 0 22px;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff; padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 700; box-shadow: 0 6px 16px var(--brand-glow); white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 70px 0 54px;
  background:
    radial-gradient(720px 340px at 12% -10%, var(--brand-soft), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; right: -160px; top: -120px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 68%); opacity: .5;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 44px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
  border-radius: 12px; font-size: 15.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: .18s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px var(--brand-glow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.hero-metrics { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.metric b { display: block; font-size: 23px; color: var(--brand); line-height: 1.2; }
.metric span { font-size: 13px; color: var(--muted); }

.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { margin-bottom: 14px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.checkline:last-child { border-bottom: 0; }
.checkline i {
  flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
  font-size: 11px; font-style: normal; font-weight: 800;
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(29, 78, 216, .22); }
.card p:last-child { margin-bottom: 0; }
.card-ico {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.card p { font-size: 14.6px; color: var(--muted); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 13px; color: var(--brand); background: var(--brand-soft);
  padding: 5px 12px; border-radius: 999px; font-weight: 600;
}

/* ---------- 对比表 ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.6px; }
table.cmp caption { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 0 10px; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: #f8fafc; color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
table.cmp thead th:nth-child(2) { background: var(--brand-soft); color: var(--brand); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody td:first-child { color: var(--ink); font-weight: 600; }
table.cmp tbody td:nth-child(2) { background: rgba(29, 78, 216, .03); font-weight: 600; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #b91c1c; font-weight: 700; }

/* ---------- 用户评价 ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.review q { display: block; font-size: 15px; color: var(--body); font-style: normal; margin-bottom: 12px; }
.review .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* ---------- 认证背书 ---------- */
.badge-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.badge {
  display: flex; gap: 14px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.badge .mark {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 12px; text-align: center;
}
.badge b { display: block; color: var(--ink); font-size: 15px; }
.badge span { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700;
  color: var(--ink); font-size: 16px; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 19px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--brand-soft); }
.faq .answer { padding: 4px 22px 20px; font-size: 15px; color: var(--muted); }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.step p { margin: 0; font-size: 14.6px; color: var(--muted); }

/* ---------- 平台卡 ---------- */
.platform { text-align: left; }
.platform .os { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.platform .dl {
  display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700;
  color: #fff; background: var(--brand); padding: 10px 18px; border-radius: 10px;
  box-shadow: 0 6px 16px var(--brand-glow); transition: .2s;
}
.platform .dl:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: 0 10px 24px var(--brand-glow); }
.platform .unavailable {
  display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: rgba(15, 23, 42, .045);
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 11px 14px; text-align: center; line-height: 1.55;
}

/* ---------- 资讯页 ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.article { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: .2s; }
.article:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.article .thumb {
  flex: none; width: 84px; height: 84px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(14, 165, 233, .18));
  display: grid; place-items: center; color: var(--brand); font-weight: 800; font-size: 20px;
}
.article h3 { margin: 0 0 6px; font-size: 16.5px; }
.article p { font-size: 14.4px; color: var(--muted); margin: 0 0 8px; }
.article .meta { font-size: 12.6px; color: #94a3b8; }

.sidebar { position: sticky; top: 84px; display: grid; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 15px; margin-bottom: 12px; }
.hot-list { display: grid; gap: 12px; counter-reset: h; }
.hot-list li { display: flex; gap: 10px; font-size: 14.4px; color: var(--body); }
.hot-list li::before {
  counter-increment: h; content: counter(h);
  flex: none; width: 20px; height: 20px; border-radius: 6px; font-size: 12px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700;
}
.hot-list a:hover { color: var(--brand); }

/* ---------- 规格表 / 定义列表 ---------- */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.spec-item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: 16px 18px; }
.spec-item dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.spec-item dd { margin: 0; font-size: 15.5px; color: var(--ink); font-weight: 700; }

/* ---------- 内容页（关于 / 联系 / 隐私 / 条款 / 404 / 文章详情） ---------- */
.page-head { padding: 46px 0 28px; background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.crumb { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.crumb a { color: var(--brand); }
.crumb span { margin: 0 6px; color: #cbd5e1; }
.prose { max-width: 840px; }
.prose h2 { margin: 34px 0 12px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; }
.prose p, .prose li { font-size: 15.6px; color: var(--body); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; list-style: revert; }
.prose li { margin-bottom: 8px; }
.prose .updated { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 26px; }
.note { background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; font-size: 14.5px; color: #3f4c63; margin: 0 0 22px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.trust-links a { font-size: 14.5px; font-weight: 600; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.trust-links a:hover { border-color: var(--brand); color: var(--brand); }
.err-code { font-size: clamp(64px, 14vw, 120px); font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: -.02em; margin: 0 0 8px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 52px 0 26px; margin-top: 8px; }
.site-footer .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 14.5px; margin: 0 0 12px; }
.site-footer a { font-size: 14px; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .f-logo { color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
.site-footer p { font-size: 14px; line-height: 1.8; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .site-footer .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding: 46px 0; }
  .grid-2, .grid-3, .grid-4, .badge-row, .spec, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-metrics { gap: 20px; }
  .article { flex-direction: column; }
  .article .thumb { width: 100%; height: 76px; }
  .site-footer .f-grid { grid-template-columns: 1fr; }
}
