/* ==========================================================================
   clash verge · 模板 03「跨平台效率型」
   主题色：#7c3aed 紫罗兰 · 柔和大圆角 / 玻璃拟态
   ========================================================================== */

:root {
  --brand: #7c3aed;
  --brand-2: #a855f7;
  --brand-soft: rgba(124, 58, 237, .09);
  --brand-glow: rgba(124, 58, 237, .26);
  --ink: #1a1330;
  --body: #3b3554;
  --muted: #6b6785;
  --line: #e8e3f5;
  --bg: #f7f5fd;
  --card: #ffffff;
  --ok: #12a15c;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 8px 28px rgba(60, 40, 120, .07);
  --shadow-lg: 0 22px 56px rgba(60, 40, 120, .13);
}

*, *::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.76 -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, 45px); line-height: 1.22; color: var(--ink); margin: 0 0 16px; letter-spacing: -.015em; }
h2 { font-size: clamp(21px, 2.7vw, 30px); line-height: 1.32; 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: 64px 0; }
.section--alt { background: #fff; }
.section--tight { padding: 46px 0; }
.section-head { max-width: 860px; margin-bottom: 30px; }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .07em;
  color: var(--brand); background: var(--brand-soft); padding: 6px 14px;
  border-radius: 999px; margin-bottom: 12px;
}
.lead { font-size: 17px; color: var(--muted); max-width: 780px; }
.summary {
  font-size: 16.5px; color: #453e60; max-width: 900px;
  background: linear-gradient(90deg, var(--brand-soft), transparent);
  border-left: 3px solid var(--brand); border-radius: 0 14px 14px 0;
  padding: 15px 20px; margin: 0 0 24px;
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%; 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: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  padding: 10px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  box-shadow: 0 10px 22px var(--brand-glow); white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 76px 0 58px;
  background:
    radial-gradient(760px 380px at 82% -20%, rgba(168, 85, 247, .16), transparent 62%),
    radial-gradient(620px 320px at 8% 10%, rgba(124, 58, 237, .12), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg));
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border-radius: 999px; font-size: 15.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 12px 28px var(--brand-glow); }
.btn-primary:hover { transform: translateY(-2px); }
.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: 32px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.metric b { display: block; font-size: 24px; color: var(--brand); }
.metric span { font-size: 13px; color: var(--muted); }

.hero-card {
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px);
  border: 1px solid #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg);
}
.device-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.6px; }
.device-row:last-child { border-bottom: 0; }
.device-row .d {
  flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.device-row .st { margin-left: auto; font-size: 12.5px; color: var(--ok); font-weight: 700; }

/* ---------- 网格 ---------- */
.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: 24px; box-shadow: var(--shadow); transition: .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: 14.6px; color: var(--muted); }
.card-ico {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(168, 85, 247, .14));
  color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.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 13px; 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: 730px; 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: 15px 19px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: #faf8ff; 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(124, 58, 237, .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: 22px; box-shadow: var(--shadow); }
.review q { display: block; font-size: 15px; color: var(--body); font-style: normal; margin-bottom: 14px; }
.review .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatar { width: 32px; height: 32px; 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: 20px; box-shadow: var(--shadow); }
.badge .mark { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.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: 19px 24px; 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: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--brand-soft); }
.faq .answer { padding: 4px 24px 21px; font-size: 15px; color: var(--muted); }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  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: center; }
.platform .os { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.platform .dl { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: #fff; background: var(--brand); padding: 9px 18px; border-radius: 999px; }
.platform .dl:hover { filter: brightness(1.08); }
.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: 22px; box-shadow: var(--shadow); transition: .22s; }
.article:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article .thumb { flex: none; width: 86px; height: 86px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-soft), rgba(168, 85, 247, .18)); display: grid; place-items: center; color: var(--brand); font-weight: 800; font-size: 21px; }
.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: #9c98b5; }
.sidebar { position: sticky; top: 86px; display: grid; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 15px; margin-bottom: 14px; }
.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: 22px; height: 22px; border-radius: 50%; 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: 16px; margin: 0; }
.spec-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.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: #1a1330; color: #a9a3c4; padding: 52px 0 26px; }
.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, .12); 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: 34px; }
  .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: 46px 0; }
  .grid-2, .grid-3, .grid-4, .badge-row, .spec, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 42px; }
  .article { flex-direction: column; }
  .article .thumb { width: 100%; height: 78px; }
  .site-footer .f-grid { grid-template-columns: 1fr; }
}
