/* ============================================================
   Magisk中文网 · Magisk 开源项目中文推广站
   设计系统：魔法面具 · 暗色赛博主题
   ============================================================ */

:root {
  color-scheme: dark;
  /* 背景与表面 */
  --bg: #080b12;
  --bg-soft: #0d1220;
  --surface: #131a2b;
  --surface-2: #1a2338;
  --border: rgba(140, 170, 255, 0.12);

  /* 品牌色 */
  --brand: #00e5a0;          /* 魔法青绿 */
  --brand-dim: #00b881;
  --violet: #8a6cff;         /* 魔法紫 */
  --gold: #ffd166;           /* 咒语金 */
  --rose: #ff5d7e;           /* 警示玫红 */
  --sky: #55c6ff;            /* 天空蓝 */

  /* 文字 */
  --text: #e8ecf6;
  --text-dim: #aab3c8;
  --text-faint: #6d7890;

  /* 渐变 */
  --grad-brand: linear-gradient(135deg, #00e5a0 0%, #55c6ff 100%);
  --grad-magic: linear-gradient(135deg, #00e5a0 0%, #8a6cff 100%);
  --grad-hero: linear-gradient(180deg, #0b1222 0%, #080b12 100%);

  /* 阴影与光晕 */
  --glow-brand: 0 0 24px rgba(0, 229, 160, 0.35);
  --glow-violet: 0 0 24px rgba(138, 108, 255, 0.35);

  --radius: 16px;
  --radius-sm: 10px;

  --font-mono: "SFMono-Regular", "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 移动端交互：消除 iOS 双击缩放与 300ms 延迟 */
a, button, summary, [role="button"] { touch-action: manipulation; }

html {
  scroll-behavior: smooth;
  /* 锚点跳转时预留 sticky 导航高度，避免标题被顶栏遮挡 */
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* 阻止 iOS 横屏时自动放大文字 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* 星空背景粒子 */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  animation: twinkle 5s infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 0.9; transform: scale(1); }
}

/* 通用容器 */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 顶部导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 18, 0.72);
  border-bottom: 1px solid var(--border);
  /* 刘海屏沉浸式：导航背景延伸到状态栏，内容区通过内边距避开 */
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.brand .logo { display: flex; }
.brand b { color: var(--brand); }
.brand .sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--brand); background: rgba(0,229,160,0.08); }
/* 提高特异性，避免被 .nav-links a.active 的背景覆盖导致按钮"消失" */
.nav-links a.nav-cta {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--grad-brand) !important;
  color: #04241a !important;
  font-weight: 700;
}
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active { filter: brightness(1.1); background: var(--grad-brand) !important; color: #04241a !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 40px;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(0,229,160,0.16), transparent 65%);
  filter: blur(20px);
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(138,108,255,0.14), transparent 65%);
  filter: blur(20px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,160,0.35);
  background: rgba(0,229,160,0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-brand);
  color: #04241a;
  box-shadow: var(--glow-brand);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* 面具标志 */
.mask-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.mask-glow {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,0.35), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
.mask-svg { position: relative; width: 168px; height: 168px; filter: drop-shadow(0 8px 40px rgba(0,229,160,0.4)); animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}
.hero-stats .stat b {
  font-size: 22px;
  color: var(--brand);
  font-weight: 800;
  display: block;
}
.hero-stats .stat span { font-size: 13px; color: var(--text-faint); }

/* 区块通用 */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.sec-head { margin-bottom: 46px; }
.sec-head .tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.4px;
}
.sec-head p.desc { color: var(--text-dim); margin-top: 10px; max-width: 640px; }

/* 特性卡片 */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(0,229,160,0.4); box-shadow: var(--glow-brand); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: rgba(0,229,160,0.1);
}
.card:nth-child(3n+2) .icon { background: rgba(138,108,255,0.14); }
.card:nth-child(3n+3) .icon { background: rgba(85,198,255,0.12); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; }

/* 用户群体 */
.audiences {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.aud {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.aud:hover { transform: translateY(-4px); border-color: rgba(138,108,255,0.45); }
.aud .emoji { font-size: 34px; display: block; margin-bottom: 12px; }
.aud h3 { font-size: 16px; margin-bottom: 8px; }
.aud p { font-size: 13px; color: var(--text-faint); }

/* 教程列表 */
.tut-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tut-card {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.tut-card:hover { transform: translateY(-4px); border-color: rgba(0,229,160,0.4); box-shadow: var(--glow-brand); }
.tut-num {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  background: var(--grad-magic);
  color: #fff;
}
.tut-card .level {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}
.tut-card h3 { font-size: 17px; margin: 6px 0 8px; }
.tut-card p { font-size: 13.5px; color: var(--text-dim); }
.tut-card .meta { font-size: 12px; color: var(--text-faint); margin-top: 10px; }

/* 教程文章页 */
.article-hero {
  padding: 64px 0 40px;
  background: var(--grad-hero);
}
.article-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 22px;
}
.article-hero .back:hover { color: var(--brand); }
.article-hero h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 900; letter-spacing: -0.4px; max-width: 800px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.article-meta .chip {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.article-meta .chip.lv1 { color: var(--brand); border-color: rgba(0,229,160,0.4); }
.article-meta .chip.lv2 { color: var(--violet); border-color: rgba(138,108,255,0.4); }
.article-meta .chip.lv3 { color: var(--gold); border-color: rgba(255,209,102,0.4); }

.article-body {
  padding: 48px 0 80px;
}
.article-body .content {
  max-width: 780px;
  margin: 0 auto;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
}
.article-body h3 { font-size: 19px; font-weight: 700; margin: 30px 0 12px; color: #fff; }
.article-body p { color: var(--text-dim); margin-bottom: 16px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(0,229,160,0.4); }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: var(--text-dim); }
.article-body li { margin-bottom: 8px; }
.article-body code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  color: var(--brand);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
.article-body pre {
  background: #0a0e18;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 18px 0;
  font-size: 13.5px;
  line-height: 1.6;
}
.article-body pre code { background: none; color: var(--text); padding: 0; font-size: 1em; }

.callout {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 14.5px;
}
.callout .ico { font-size: 18px; flex: 0 0 auto; }
.callout.warn { background: rgba(255,93,126,0.08); border: 1px solid rgba(255,93,126,0.3); color: #ffd9e0; }
.callout.info { background: rgba(85,198,255,0.08); border: 1px solid rgba(85,198,255,0.3); color: #d6f0ff; }
.callout.tip { background: rgba(0,229,160,0.07); border: 1px solid rgba(0,229,160,0.3); color: #d5ffef; }

/* 步骤 */
.steps { counter-reset: step; list-style: none; margin: 20px 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 22px;
  color: var(--text-dim);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #04241a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* 下载页 */
.dl-hero { text-align: center; padding: 76px 0 30px; }
.dl-hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; }
.dl-hero .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-hero p { color: var(--text-dim); margin-top: 16px; }

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.dl-card.highlight {
  border-color: rgba(0,229,160,0.45);
  background: linear-gradient(180deg, rgba(0,229,160,0.06), var(--surface) 40%);
}
.dl-card h3 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.dl-card .ver {
  font-size: 13px;
  color: var(--text-faint);
  margin: 6px 0 18px;
}
.qr-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.qr-img {
  width: 150px;
  height: 155px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,229,160,0.25);
  flex: 0 0 auto;
  object-fit: contain;
}
.qr-box .qr-txt h4 { font-size: 15px; margin-bottom: 6px; }
.qr-box .qr-txt p { font-size: 13px; color: var(--text-faint); }

/* 下载按钮 */
.btn-drive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: #04241a;
  background: var(--grad-brand);
  box-shadow: var(--glow-brand);
  transition: transform 0.15s, filter 0.2s;
}
.btn-drive:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-drive.secondary {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: none;
  border: 1px solid var(--border);
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--text-faint); font-size: 13.5px; }
.footer h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: var(--text-faint); text-decoration: none; font-size: 13.5px; }
.footer ul a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* 滚动出现动画 */
/* 渐进增强：默认可见，确保爬虫/无JS环境下内容完整可读；仅 JS 启用后才做入场动画 */
.reveal { opacity: 1; }
.js-enabled .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-enabled .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal { opacity: 1; transform: none; transition: none; }
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #04241a;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  box-shadow: var(--glow-brand);
  z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* 响应式 */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-btns, .hero-stats { justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .audiences { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tut-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(68px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8,11,18,0.99);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .section { padding: 44px 0; }
  .sec-head { margin-bottom: 32px; }
  .hero { padding: 40px 0 32px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* 二维码卡片：窄屏下改为上下堆叠，避免提示文字被挤成竖条 */
  .qr-box { flex-direction: column; align-items: center; text-align: center; }
  .qr-box .qr-txt { width: 100%; }
}

/* ===== 首页深度内容 & FAQ ===== */
/* 长文正文（用于首页原创深度介绍） */
.prose {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 16px;
}
.prose h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 18px;
  text-align: center;
}
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(0,229,160,0.4); }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--text-dim); }
.prose li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--brand); font-weight: 700; }

/* 对比表格 */
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; max-width: 820px; margin: 0 auto; border-radius: var(--radius); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; background: var(--surface); }
.cmp-table th, .cmp-table td { padding: 13px 16px; text-align: left; border: 1px solid var(--border); }
.cmp-table thead th { color: var(--text); font-weight: 700; background: rgba(0,229,160,0.06); }
.cmp-table tbody td { color: var(--text-dim); }
.cmp-table tbody td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.cmp-table tbody td:nth-child(2) { color: var(--text); background: rgba(0,229,160,0.05); }

/* 通用数据表（机型适配 / 命令速查等） */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; background: var(--surface); }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border: 1px solid var(--border); vertical-align: top; }
.data-table thead th { color: var(--text); font-weight: 700; background: rgba(0,229,160,0.06); white-space: nowrap; }
.data-table tbody td { color: var(--text-dim); }
.data-table tbody td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.data-table code { background: rgba(138,108,255,0.14); padding: 1px 7px; border-radius: 4px; color: var(--text); font-size: 13px; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.st-ok { color: var(--brand) !important; font-weight: 700; }
.st-warn { color: var(--gold) !important; font-weight: 700; }
.st-no { color: #ff5d7e !important; font-weight: 700; }

/* 差异点（为什么与众不同） */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.diff {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.diff:hover { transform: translateY(-4px); border-color: rgba(0,229,160,0.4); }
.diff .d-icon {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad-magic);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.diff h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
a.diff { text-decoration: none; color: inherit; }
.diff p { font-size: 14px; color: var(--text-dim); }

/* FAQ 手风琴 */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(0,229,160,0.4); }
.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  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: "+";
  font-size: 22px;
  color: var(--brand);
  flex: 0 0 auto;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a {
  padding: 0 20px 18px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.faq .faq-a a { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(0,229,160,0.4); }

@media (max-width: 900px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* 仅屏幕阅读器可见：用于修正标题层级的语义占位 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 可见面包屑：与 BreadcrumbList 结构化数据对应 */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-faint);
  margin-bottom: 22px;
}
.crumb a {
  color: var(--text-dim); text-decoration: none;
  transition: color .2s ease;
}
.crumb a:hover { color: var(--brand); }
.crumb-sep { color: var(--text-faint); opacity: .6; }
.crumb-cur { color: var(--text-dim); }

/* 键盘焦点可见性：深色主题下提供清晰焦点环 */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
