/* =========================================================
   Clash Verge - 站点样式
   ========================================================= */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6b82;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --cyan: #0891b2;
  --line: #e3e9f2;
  --line-strong: #cbd5e1;
  --ok: #047857;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75;
  color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.075rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

/* 导航 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 66px; position: relative; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.25rem; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex: none; display: block; object-fit: contain; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.is-active { color: var(--brand); background: #eaf1ff; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 76px 0 84px;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(8,145,178,.35), transparent 60%),
              linear-gradient(140deg, #0b1220 0%, #12203c 55%, #16305c 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 420px at 70% 0%, #000, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 24ch; }
.hero .lede { font-size: 1.075rem; color: #c7d5ea; max-width: 64ch; margin-bottom: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8fd2e8; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: #8fd2e8; border-radius: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .96rem; border: 1px solid transparent; cursor: pointer; transition: .18s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: #0f172a; box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: #eaf1ff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(6px); }
.stat b { display: block; font-size: 1.6rem; color: #fff; line-height: 1.2; }
.stat span { font-size: .83rem; color: #a8bdd8; }

/* 区块 */
.section { padding: 68px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 800px; margin-bottom: 34px; }
.section-head .kicker { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.answer { font-size: 1.03rem; color: var(--ink-2); max-width: 80ch; }
.answer strong { color: var(--ink); }

/* 卡片 */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: .18s ease; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #eaf1ff, #e0f4fa); color: var(--brand); font-weight: 800; font-size: 1rem; margin-bottom: 14px; }
.card .meta { font-size: .84rem; color: var(--muted); margin: 0; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 720px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafcff; }
td:first-child { font-weight: 600; color: var(--ink); }
.tag-yes { color: var(--ok); font-weight: 600; }
.tag-no { color: var(--muted); }

/* 评价 */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 14px; color: var(--ink); font-size: .98rem; }
.quote .who { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }

/* 背书 */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: .88rem; color: var(--ink-2); box-shadow: var(--shadow); }
.badge::before { content: "\2713"; color: var(--ok); font-weight: 800; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--ink); list-style: none; position: relative; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq .a { padding: 16px 20px 20px; color: var(--ink-2); border-top: 1px solid var(--line); }
.faq .a p:last-child { margin-bottom: 0; }

/* 平台切换 */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: .93rem; font-weight: 600; color: var(--ink-2); font-family: inherit; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.panel { display: none; }
.panel.is-active { display: block; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel-card h3 { font-size: 1.15rem; }
.panel-card ul { margin: 0 0 18px; padding-left: 20px; }
.panel-card li { margin-bottom: 6px; }

/* 步骤 */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 1rem; margin-bottom: .35em; }
.step p { font-size: .92rem; margin: 0; }

/* 资讯 */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .18s ease; }
.post:hover { transform: translateY(-3px); border-color: var(--line-strong); text-decoration: none; }
.post-cover { height: 132px; background: linear-gradient(135deg, #dbeafe, #cffafe); position: relative; }
.post-cover span { position: absolute; left: 16px; bottom: 14px; font-size: .75rem; font-weight: 700; color: #0e3a63; background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 999px; }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 { font-size: 1.02rem; margin: 0; color: var(--ink); }
.post-body p { font-size: .9rem; color: var(--muted); margin: 0; }
.post-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; }

.side { position: sticky; top: 90px; display: grid; gap: 18px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.side-box h2 { font-size: 1.02rem; margin-bottom: .7em; }
.side-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.side-list li { counter-increment: p; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; display: flex; gap: 10px; }
.side-list li:last-child { border-bottom: none; }
.side-list li::before { content: counter(p); color: var(--brand); font-weight: 800; flex: none; }
.side-list a { color: var(--ink-2); }
.side-list a:hover { color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .87rem; cursor: pointer; color: var(--ink-2); font-family: inherit; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* CTA */
.cta { background: linear-gradient(135deg, #12203c, #16305c); color: #fff; border-radius: 20px; padding: 46px; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; }
.cta p { color: #c7d5ea; max-width: 62ch; }

/* 页脚 */
.site-footer { background: #0b1220; color: #93a4bd; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: .9rem; }
.site-footer a { color: #93a4bd; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-seo { font-weight: 700; font-size: 1rem; color: #fff; letter-spacing: .02em; }
.disclaimer { background: rgba(255,255,255,.04); border-left: 3px solid #f59e0b; padding: 14px 16px; border-radius: 8px; font-size: .85rem; color: #b6c4d8; margin-bottom: 26px; }

/* 预留样式：当前正文中已无占位标记，故 .ph 与 .tag-demo 不会被引用。
   若后续需临时标注待补数据，可复用这两个类；用完请一并删除，避免占位内容随页面发布。 */
.ph { color: #b45309; background: #fef6e7; border-bottom: 1px dashed #d99a2b; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.tag-demo { display: inline-block; font-size: .72rem; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 4px; padding: 2px 6px; margin-bottom: 8px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

@media (max-width: 980px) {
  .grid-4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 66px; left: -20px; right: -20px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { border-radius: 8px; padding: 12px 14px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .article-grid, .stats, .steps { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 52px 0 60px; }
  .cta { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   clashvergeau.com.cn 主题：墨绿 · 隐私安全导向
   ========================================================= */
:root {
  --brand: #047857;
  --brand-dark: #065f46;
  --cyan: #0f766e;
}
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(4,120,87,.40), transparent 60%),
              linear-gradient(140deg, #031f18 0%, #06352a 55%, #0a4a3a 100%);
}
.eyebrow { color: #6ee7b7; }
.eyebrow::before { background: #6ee7b7; }
.cta { background: linear-gradient(135deg, #06352a, #0a4a3a); }
.post-cover { background: linear-gradient(135deg, #d1fae5, #ccfbf1); }
.post-cover span { color: #064e3b; }
.nav a.is-active { color: var(--brand); background: #ecfdf5; }
.card-icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--brand); }

/* 数据流向链 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; }
.flow-step { background: var(--surface); border: 1px solid var(--line); padding: 20px; position: relative; }
.flow-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.flow-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.flow-step + .flow-step { border-left: none; }
.flow-step b { display: block; color: var(--ink); margin-bottom: 6px; font-size: .96rem; }
.flow-step span { font-size: .85rem; color: var(--muted); }
.flow-step::after { content: "\2192"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: .7rem; z-index: 2; }
.flow-step:last-child::after { display: none; }
@media (max-width: 980px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .flow-step, .flow-step:first-child, .flow-step:last-child { border-radius: var(--radius); border-left: 1px solid var(--line); }
  .flow-step::after { display: none; }
}
@media (max-width: 720px) { .flow { grid-template-columns: 1fr; } }

/* 面包屑导航 */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.breadcrumb li[aria-current="page"] { color: var(--ink); font-weight: 600; }