/* 攻略页排版：沿用 tokens.css 的颜色与间距，只补文章骨架 */
.article { max-width: 820px; padding-top: 48px; padding-bottom: 96px; }
.crumb { font-size: 12px; color: var(--text-3); margin: 0 0 14px; }
.crumb a { color: var(--text-3); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.article h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.22; letter-spacing: -.4px; margin: 0 0 12px; }
.meta { font-size: 12px; color: var(--text-3); margin: 0 0 22px; }
.article .lead { font-size: 18px; line-height: 1.7; color: var(--text-2); margin: 0 0 28px;
  padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-2) var(--r-2) 0; }
.toc { border: 1px solid var(--line); border-radius: var(--r-2); padding: 16px 20px; margin: 0 0 36px; background: var(--surface); }
.toc b { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 8px; letter-spacing: .04em; }
.toc ol { margin: 0; padding-left: 18px; columns: 1; }
.toc li { font-size: 14px; color: var(--text-2); padding: 3px 0; }
.article h2 { font-size: 24px; line-height: 1.35; margin: 44px 0 14px; letter-spacing: -.2px; }
.article h3 { font-size: 16px; margin: 26px 0 8px; }
.article p { font-size: 16px; line-height: 1.85; color: var(--text-2); margin: 0 0 14px; max-width: 43em; }
.article b { color: var(--text); font-weight: 600; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { font-size: 16px; line-height: 1.8; color: var(--text-2); margin-bottom: 6px; max-width: 41em; }
.article .steps { display: block; counter-reset: s; list-style: none; padding-left: 0; margin-left: 0; }
.article .steps li { position: relative; padding-left: 38px; margin-bottom: 12px; }
.article .steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 3px; font-size: 12px; font-weight: 700; color: var(--accent);
  background: rgba(182,240,74,.1); border-radius: 6px; padding: 2px 6px; }
.note { border: 1px solid rgba(255,196,92,.28); background: rgba(255,196,92,.06);
  border-radius: var(--r-2); padding: 14px 16px; margin: 18px 0; font-size: 16px !important; color: var(--text-2); }
.gfaq { border-top: 1px solid var(--line); }
.gfaq details { border-bottom: 1px solid var(--line); }
.gfaq summary { list-style: none; cursor: pointer; padding: 18px 38px 18px 0; position: relative;
  font-size: 16px; font-weight: 600; color: var(--text); }
.gfaq summary::-webkit-details-marker { display: none; }
.gfaq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 20px; line-height: 1; }
.gfaq details[open] summary::after { content: "×"; }
.gfaq p { padding: 0 20px 18px 0; margin: 0; font-size: 16px; }
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 40px; }
.rel a { display: block; border: 1px solid var(--line); border-radius: var(--r-2); padding: 16px 18px;
  text-decoration: none; background: var(--surface); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.rel a:hover { border-color: rgba(182,240,74,.45); transform: translateY(-2px); }
.rel b { display: block; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.rel span { display: block; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.cta2 { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-3); padding: 22px 24px; background: var(--surface); margin: 8px 0 20px; }
.cta2 b { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.cta2 span { font-size: 14px; color: var(--text-3); }
.join { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.join a, .join b { color: var(--text-2); }
.join b { font-weight: 600; }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 0 0 40px; }
.gcard { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line);
  border-radius: var(--r-3); padding: 20px 22px; background: var(--surface); text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease); }
.gcard:hover { border-color: rgba(182,240,74,.45); transform: translateY(-2px); }
.gcard b { font-size: 16px; color: var(--accent); }
.gcard span { font-size: 14px; line-height: 1.7; color: var(--text-3); flex: 1; }
.gcard i { font-style: normal; font-size: 14px; color: var(--text-2); }
@media (max-width: 600px) {
  .article { padding-top: 30px; }
  .article h1 { font-size: 24px; }
  .article p, .article li { font-size: 16px; line-height: 1.8; }
  .article h2 { font-size: 20px; margin-top: 34px; }
  .cta2 { padding: 18px; }
  .cta2 .btn { width: 100%; text-align: center; }
}

/* 攻略实拍截图 */
.shotshot { margin: 18px 0; }
.shotshot img { display:block; max-width:100%; height:auto; border:1px solid var(--rule, var(--line)); border-radius:8px; }
.shotshot figcaption { font-size:12px; color:var(--ink-3, var(--text-3)); margin-top:6px; }
.shots-row { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0; }
.shots-row .shotshot { flex:1 1 240px; margin:0; min-width:0; }
.shots-row .shotshot img { width:100%; }

/* ── 大劫案攻略：表格 / 快速回答 / 步骤列表 ── */
.quickbox {
  border: 1px solid var(--rule); border-left: 3px solid var(--sea-bright);
  border-radius: var(--r-3); background: var(--surface); padding: 16px 20px; margin: 22px 0;
}
.quickbox p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.quickbox b { color: var(--sea-deep); }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--rule); border-radius: var(--r-3); background: var(--surface); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.guide-table th, .guide-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.guide-table th { background: var(--paper-2); color: var(--ink-3); font-size: 12px; font-weight: 600; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td b { color: var(--sea-deep); }
.guide-table td.muted { color: var(--ink-3); }

.numlist { counter-reset: nl; list-style: none; padding: 0; margin: 18px 0; }
.numlist li {
  position: relative; padding: 10px 0 10px 46px; border-bottom: 1px solid var(--rule-2);
  font-size: 14.5px; line-height: 1.8; color: var(--ink-2);
}
.numlist li::before {
  counter-increment: nl; content: counter(nl); position: absolute; left: 0; top: 11px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--sea-bright); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

/* ── 搬运自官方资料站的带图正文组件（浅色主题重排） ── */
.g-hero { flex: 0 0 120px; }
.g-hero img { width: 96px; height: 96px; object-fit: contain; display: block; }
.quickbox.g-quick { display: flex; gap: 20px; align-items: flex-start; }
.quickbox.g-quick > div:last-child { flex: 1; }
.quickbox.g-quick h2 { font-size: 17px; margin: 0 0 10px; color: var(--sea-deep, var(--accent)); }
.quickbox.g-quick ul { margin: 0; padding-left: 20px; }
.quickbox.g-quick li { font-size: 15px; line-height: 1.8; color: var(--ink-2, var(--text-2)); margin-bottom: 7px; }

.g-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 16px 0 22px; }
.g-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--rule, var(--line));
  border-radius: var(--r-2); padding: 12px 14px; background: var(--paper-2, var(--surface)); }
.g-item img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 52px; }
.g-item strong { display: block; font-size: 14.5px; color: var(--ink, var(--text)); margin-bottom: 3px; }
.g-item span { display: block; font-size: 13px; line-height: 1.65; color: var(--ink-2, var(--text-2)); }

.g-list { margin: 12px 0 18px; padding-left: 20px; }
.g-list li { font-size: 15px; line-height: 1.8; color: var(--ink-2, var(--text-2)); margin-bottom: 6px; }
.g-tip { border-left: 3px solid var(--sea-bright, var(--accent)); background: var(--paper-2, var(--surface));
  padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14.5px; color: var(--ink-2, var(--text-2)); margin: 14px 0; }
.g-tip strong { color: var(--sea-deep, var(--accent)); }

/* 资料站正文里的 card / faq / small */
.article section.card { border: 1px solid var(--rule); background: var(--paper-2); border-radius: var(--r-3);
  padding: 16px 20px; margin: 22px 0; }
.article section.card h2 { font-size: 17px; margin: 0 0 10px; color: var(--sea-deep, var(--accent)); }
.article section.faq { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 8px; }
.article section.faq h2 { font-size: 22px; }
.article section.faq h3 { font-size: 16px; margin: 20px 0 6px; color: var(--ink, var(--text)); }
.article p.small, .article .small { font-size: 13px; color: var(--ink-3, var(--text-3)); line-height: 1.7; }
.article .g-item img, .article .g-hero img { image-rendering: auto; }

/* 搬运正文步骤里的说明文字 */
.article .steps li strong { display: block; }
.article .steps li span { display: block; font-size: 14px; color: var(--ink-2, var(--text-2)); margin-top: 3px; }
.article .g-item img, .article .g-hero img { background: var(--paper, transparent); }

/* ════════════════════════════════════════════════════════
   攻略索引：从这里开始 + 按阶段分组
   只作用于 .guide-index，不影响文章页正文
   ════════════════════════════════════════════════════════ */
.guide-index .lead { margin-bottom: 32px; }

.start-here {
  margin: 0 0 44px;
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: var(--paper-2);
  overflow: hidden;
}
.start-here .sh-head {
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--sea-wash);
}
.start-here .sh-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 9px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--sea-deep); text-transform: uppercase;
}
.start-here .sh-kicker::before {
  content: ""; width: 18px; height: 2px; background: var(--sea); border-radius: 2px;
}
.start-here h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.8vw, 26px); line-height: 1.32; letter-spacing: -.015em;
  color: var(--ink); font-weight: 700;
}
.start-here .sh-sub {
  margin: 0; max-width: 60em;
  font-size: 14px; line-height: 1.7; color: var(--ink-2);
}

.sh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sh-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 24px 24px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}
.sh-card:last-child { border-right: 0; }
.sh-card:hover { filter: brightness(1.05); transform: translateY(-2px); }
.sh-no {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em;
}
.sh-card b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.sh-desc { font-size: 13.5px; line-height: 1.7; flex: 1; }
.sh-card i { font-style: normal; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; }

/* 三张引导卡用深蓝 / 沙金 / 浅蓝，明显区别于普通白卡 */
.sh-primary { background: var(--sea-deep); color: #fff; }
.sh-primary b { color: #fff; }
.sh-primary .sh-no, .sh-primary .sh-desc { color: rgba(255,255,255,.82); }
.sh-primary i { color: #cfe6f7; }
.sh-gold { background: var(--gold, #a9791a); color: #fff; }
.sh-gold b { color: #fff; }
.sh-gold .sh-no, .sh-gold .sh-desc { color: rgba(255,255,255,.88); }
.sh-gold i { color: #f7e8c8; }
.sh-wash { background: var(--sea-wash); color: var(--ink); }
.sh-wash .sh-no { color: var(--sea); }
.sh-wash b { color: var(--sea-deep); }
.sh-wash .sh-desc { color: var(--ink-2); }
.sh-wash i { color: var(--sea); }

/* 分组索引 */
.guide-groups { margin-top: 8px; }
.ggroup { margin: 0 0 42px; }
.gg-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  padding: 0 0 12px; margin: 0 0 16px;
  border-bottom: 1px solid var(--rule);
}
.gg-head h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -.01em;
  color: var(--ink); font-weight: 700;
}
.gg-no {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; color: var(--sea);
}
.guide-groups .gg-head p {
  margin: 0; max-width: 64em;
  font-size: 13.5px; line-height: 1.6; color: var(--ink-3);
}
/* 覆盖 site.css 的 gap:0，恢复卡片间距 */
.guide-index .gcards { gap: 14px; margin: 0; }

@media (max-width: 720px) {
  .sh-grid { grid-template-columns: 1fr; }
  .sh-card { border-right: 0; border-bottom: 1px solid var(--rule); padding: 20px; }
  .sh-card:last-child { border-bottom: 0; }
  .gg-head { display: block; }
  .guide-groups .gg-head p { margin-top: 6px; }
}

/* ════════════════════════════════════════════════════════
   统一阅读导航：上一篇 / 下一篇
   在每篇攻略正文末尾（</main> 前）插入 <nav class="guide-nav">
   ════════════════════════════════════════════════════════ */
.guide-nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 12px; align-items: center;
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.guide-nav a { text-decoration: none; }
.gn-side {
  display: flex; align-items: center; gap: 12px;
  min-width: 0; padding: 13px 16px;
  border: 1px solid var(--rule); border-radius: var(--r-3);
  background: var(--paper-2);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.gn-side:hover { border-color: var(--sea); transform: translateY(-2px); }
.gn-next { justify-content: flex-end; text-align: right; }
.gn-arrow { font-family: var(--mono); font-size: 19px; line-height: 1; color: var(--sea); flex: 0 0 auto; }
.gn-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gn-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.gn-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gn-home {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--sea-deep); white-space: nowrap;
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  background: var(--paper); padding: 9px 13px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.gn-home:hover { border-color: var(--sea); background: var(--sea-wash); }

@media (max-width: 600px) {
  .guide-nav { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gn-home { display: none; }
  .gn-side { padding: 12px; gap: 8px; }
  .gn-title { font-size: 13px; }
}

/* ════════════════════════════════════════════════════════
   正文头部统一：面包屑 / 标题 / 简介框
   各攻略页的一级结构保持同一视觉层级
   ════════════════════════════════════════════════════════ */
.article > .crumb { display: block; margin: 0 0 14px; }
.article > h1 { margin: 0 0 12px; }
.article > .meta { margin: 0 0 22px; }
.article > .lead { border-left-color: var(--sea); }
.article > .skhead { margin: 0 0 22px; }
.article > .skhead h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.22; margin: 0 0 12px; }

/* site.css 在 guide.css 之后加载，其 .article b / .article h2 会盖掉引导卡配色，
   这里用更高特异性把索引页视觉固定回来 */
.guide-index .sh-card b,
.guide-index .sh-card i,
.guide-index .sh-card .sh-no,
.guide-index .sh-card .sh-desc { color: inherit; }
.guide-index .sh-primary b, .guide-index .sh-primary i,
.guide-index .sh-primary .sh-no, .guide-index .sh-primary .sh-desc { color: #fff; }
.guide-index .sh-gold b, .guide-index .sh-gold i,
.guide-index .sh-gold .sh-no, .guide-index .sh-gold .sh-desc { color: #fff; }
.guide-index .sh-wash b { color: var(--sea-deep); }
.guide-index .sh-wash i, .guide-index .sh-wash .sh-no { color: var(--sea); }
.guide-index .sh-wash .sh-desc { color: var(--ink-2); }
.guide-index .start-here h2,
.guide-index .gg-head h2 { margin: 0; padding-top: 0; border-top: 0; }
.guide-index .start-here h2 { margin-bottom: 6px; }

/* 暗色化：正文图片统一圆角与低调底，避免白底图在深色页上突兀 */
.article img { border-radius: 8px; background: rgba(255,255,255,.035); }
.article figure img, .article .g-item img { border: 1px solid var(--line); }

/* Apple 玻璃风：白色物品装饰图（面具等）在浅底上需托盘才可见 */
.article .g-hero img {
  background: radial-gradient(circle at 50% 40%, #eef1f6, #dfe4ec) !important;
  border: 1px solid rgba(0,0,0,.05) !important;
  border-radius: 50% !important;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06), inset 0 1px 0 #fff;
}
