/* ==========================================================================
   clash verge · 模板 02「技术协议解析型」
   主题色：#0f766e 深青 + #10b981 翠绿 · 终端感 / 等宽点缀
   ========================================================================== */

:root {
  --brand: #0f766e;
  --brand-2: #10b981;
  --brand-soft: rgba(15, 118, 110, .08);
  --brand-glow: rgba(15, 118, 110, .26);
  --ink: #0b1220;
  --body: #334155;
  --muted: #64748b;
  --line: #dfe7e6;
  --bg: #f4f8f7;
  --card: #ffffff;
  --ok: #0f9d58;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 18px rgba(11, 18, 32, .055);
  --shadow-lg: 0 16px 40px rgba(11, 18, 32, .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; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

h1 { font-size: clamp(27px, 4.2vw, 42px); line-height: 1.25; color: var(--ink); margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: clamp(21px, 2.6vw, 28px); 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: 60px 0; }
.section--alt { background: #fff; }
.section--tight { padding: 42px 0; }
.section-head { max-width: 860px; margin-bottom: 26px; }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--brand); background: var(--brand-soft); padding: 5px 12px;
  border-radius: 6px; margin-bottom: 12px; font-family: ui-monospace, Menlo, monospace;
}
.lead { font-size: 17px; color: var(--muted); max-width: 780px; }

.summary {
  font-size: 16.5px; color: #3f4c63; max-width: 900px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 22px;
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--ink); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800;
  font-family: ui-monospace, Menlo, monospace;
}
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--ink); color: #fff; padding: 9px 17px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 700; white-space: nowrap;
}
.nav-cta:hover { background: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 66px 0 52px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .45; mask-image: radial-gradient(600px 300px at 20% 0%, #000, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px;
  border-radius: var(--radius-sm); font-size: 15.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: .18s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.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: 28px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.metric b { display: block; font-size: 22px; color: var(--brand); font-family: ui-monospace, Menlo, monospace; }
.metric span { font-size: 13px; color: var(--muted); }

.hero-card { background: var(--ink); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg); }
.hero-card .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.hero-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.hero-card .bar i:first-child { background: var(--brand-2); }
.hero-card pre {
  margin: 0; color: #cbd5e1; font-size: 13.2px; line-height: 1.85;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap;
}
.hero-card .k { color: var(--brand-2); }
.hero-card .s { color: #fbbf24; }
.hero-card .c { color: #64748b; }

/* ---------- 网格与卡片 ---------- */
.grid { display: grid; gap: 16px; }
.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: 20px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { border-color: rgba(15, 118, 110, .32); box-shadow: var(--shadow-lg); }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: 14.6px; color: var(--muted); }
.card-ico {
  width: 38px; height: 38px; border-radius: 9px; margin-bottom: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  font-family: ui-monospace, Menlo, monospace;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: 13px; color: var(--brand); background: var(--brand-soft); padding: 4px 11px; border-radius: 6px; font-weight: 600; }

/* ---------- 代码块 ---------- */
.codeblock {
  background: #0b1220; color: #cbd5e1; border-radius: var(--radius);
  padding: 18px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.4px; line-height: 1.9; overflow-x: auto; white-space: pre; margin: 0 0 16px;
}
.codeblock .k { color: #10b981; }
.codeblock .s { color: #fbbf24; }
.codeblock .c { color: #64748b; }

/* ---------- 对比表 ---------- */
.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: 740px; border-collapse: collapse; font-size: 14.5px; }
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: 13px 17px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: #f6faf9; 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(15, 118, 110, .035); 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: 19px; 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: 8px; 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: 14px; }
.badge { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; box-shadow: var(--shadow); }
.badge .mark { flex: none; width: 42px; height: 42px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 11px; font-family: ui-monospace, Menlo, monospace; }
.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: 17px 21px; 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; font-family: ui-monospace, Menlo, monospace; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--brand-soft); }
.faq .answer { padding: 4px 21px 19px; font-size: 15px; color: var(--muted); }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  flex: none; width: 40px; height: 34px; border-radius: 8px;
  background: var(--ink); color: var(--brand-2); display: grid; place-items: center;
  font-weight: 800; font-size: 13px; font-family: ui-monospace, Menlo, monospace;
}
.step p { margin: 0; font-size: 14.6px; color: var(--muted); }

/* ---------- 平台 ---------- */
.platform .os { font-size: 13px; color: var(--muted); margin: 0 0 4px; font-family: ui-monospace, Menlo, monospace; }
.platform .dl { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: #fff; background: var(--brand); padding: 9px 16px; border-radius: var(--radius-sm); transition: .2s; }
.platform .dl:hover { background: var(--brand-2); transform: translateY(-2px); }
.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) 310px; gap: 30px; align-items: start; }
.article { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; box-shadow: var(--shadow); transition: .2s; }
.article:hover { border-color: rgba(15, 118, 110, .3); box-shadow: var(--shadow-lg); }
.article .thumb { flex: none; width: 78px; height: 78px; border-radius: 10px; background: var(--ink); color: var(--brand-2); display: grid; place-items: center; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 17px; }
.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: 80px; display: grid; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 15px; margin-bottom: 12px; }
.hot-list { display: grid; gap: 11px; 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, decimal-leading-zero);
  flex: none; width: 24px; height: 20px; border-radius: 5px; font-size: 11.5px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
  font-weight: 700; font-family: ui-monospace, Menlo, monospace;
}
.hot-list a:hover { color: var(--brand); }

/* ---------- 规格 ---------- */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.spec-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px; }
.spec-item dt { font-size: 12.6px; color: var(--muted); margin-bottom: 4px; font-family: ui-monospace, Menlo, monospace; }
.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: var(--ink); color: #94a3b8; padding: 50px 0 24px; }
.site-footer .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.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: var(--brand-2); }
.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: 30px; 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: 30px; }
  .grid-4, .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: 44px 0; }
  .grid-2, .grid-3, .grid-4, .badge-row, .spec, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 46px 0 38px; }
  .article { flex-direction: column; }
  .article .thumb { width: 100%; height: 70px; }
  .site-footer .f-grid { grid-template-columns: 1fr; }
}
