/* Install guide page (/guide). Scoped to .guide-*; reuses app.css colour variables. */
.guide-main{min-height:calc(100vh - 122px);padding:0 16px 42px}
.guide-hero{padding:42px 4px 22px}
.guide-hero .section-kicker{color:var(--green)}
.guide-hero h1{margin:0;font-size:32px;line-height:1.15}
.guide-hero p{margin:14px 0 0;color:var(--muted);font-size:14px;line-height:1.75}
.guide-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.guide-hero-tags span{padding:5px 11px;border-radius:999px;background:var(--green-soft);color:var(--green);font-size:12px;font-weight:650}

/* 手机品牌切换：根元素 data-phone 决定显示哪套步骤，见 guide-brand.js */
.guide-brand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 0 12px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.guide-brand button{min-height:42px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-size:15px;font-weight:680;line-height:1.25;white-space:nowrap;cursor:pointer}
.guide-brand button[aria-pressed="true"]{background:var(--green);color:#fff}
:root[data-theme="dark"] .guide-brand button[aria-pressed="true"]{color:#0f1114}
:root:not([data-phone="vivo"]) [data-only="vivo"],:root:not([data-phone="oppo"]) [data-only="oppo"],:root[data-phone="vivo"] [data-only="xiaomi"],:root[data-phone="oppo"] [data-only="xiaomi"]{display:none}
.guide-brand-body>.guide-step:first-child{border-top:0;padding-top:4px}
.guide-brand-body>.guide-sub:first-child{margin-top:0;padding-top:0;border-top:0}
.guide-brand-body>.guide-strip+.guide-step{margin-top:16px}

.guide-toc{position:sticky;z-index:20;top:0;display:flex;gap:8px;margin:0 -16px 18px;padding:10px 16px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);background:var(--surface)}
.guide-toc::-webkit-scrollbar{display:none}
.guide-toc a{flex:0 0 auto;padding:7px 13px;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-size:13px;font-weight:620;text-decoration:none}
.guide-toc a:hover,.guide-toc a:focus-visible{border-color:var(--green);color:var(--green)}

.guide-notice{margin-bottom:18px;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:8px;background:var(--soft)}
.guide-notice strong{font-size:14px}
.guide-notice p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.7}

.guide-section{scroll-margin-top:64px;margin-bottom:18px;padding:22px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.guide-section-head{margin-bottom:14px}
.guide-chapter{display:inline-block;margin-bottom:6px;color:var(--green);font-size:12px;font-weight:760}
.guide-section h2{margin:0;font-size:22px;line-height:1.3}
.guide-section h2 em,.guide-step h3 em{margin-left:6px;padding:2px 8px;border-radius:999px;background:var(--red-soft,#fdecea);color:var(--red,#d93025);font-size:12px;font-style:normal;font-weight:700;vertical-align:3px}
.guide-lead{margin:0 0 14px;color:var(--muted);font-size:14px;line-height:1.7}

.guide-step{display:grid;gap:12px;padding:16px 0;border-top:1px solid var(--line)}
.guide-section-head+.guide-step{border-top:0;padding-top:4px}
.guide-step h3{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 6px;font-size:16px;line-height:1.4}
.guide-step p{margin:0;color:var(--muted);font-size:14px;line-height:1.75}
.guide-step p+p{margin-top:6px}
.guide-step b,.guide-strip b,.guide-section p b{color:var(--ink);font-weight:700}
.n{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:var(--green);color:#fff;font-size:13px;font-weight:760}
.guide-step.must{margin:0 -16px;padding-right:16px;padding-left:16px;background:var(--green-soft)}

.guide-sub{display:flex;align-items:center;gap:8px;margin:20px 0 10px;padding-top:16px;border-top:1px solid var(--line);font-size:16px}
.guide-sub[id]{scroll-margin-top:64px}
.guide-sub em:not(.opt){padding:2px 8px;border-radius:999px;background:var(--red-soft,#fdecea);color:var(--red,#d93025);font-size:12px;font-style:normal;font-weight:700}
.guide-sub .opt{padding:2px 8px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:12px;font-style:normal;font-weight:650}

figure{margin:0}
.guide-step figure,.guide-strip figure{max-width:300px}
.guide-step img,.guide-strip img,.faq-img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:18px;background:var(--soft)}
.guide-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;align-items:start}
.guide-step figcaption{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.6}
.guide-strip figcaption{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.6}

.tip{color:var(--muted);font-size:13px;line-height:1.7}
.tip::before{content:"提示：";color:var(--green);font-weight:700}
.tip.block{margin:14px 0 0;padding:10px 12px;border-radius:8px;background:var(--soft)}
.guide-step p.tip{margin-top:8px;font-size:13px}

.guide-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:12px;padding:0 20px;border-radius:999px;background:var(--green);color:#fff;font-size:14px;font-weight:700;text-decoration:none}
:root[data-theme="dark"] .guide-button{color:#0f1114}

#faq details{border-top:1px solid var(--line)}
#faq details:first-of-type{border-top:0}
#faq summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;font-size:15px;font-weight:650;cursor:pointer;list-style:none}
#faq summary::-webkit-details-marker{display:none}
#faq summary::after{content:"+";flex:0 0 auto;color:var(--green);font-size:20px;font-weight:500}
#faq details[open] summary::after{content:"−"}
#faq details p{margin:0 0 14px;color:var(--muted);font-size:14px;line-height:1.75}
.faq-img{max-width:240px;margin:0 0 16px}

.guide-contact p{margin:0;color:var(--muted);font-size:14px;line-height:1.75}

@media(max-width:360px){.guide-strip{grid-template-columns:1fr}.guide-strip figure{max-width:300px}}
@media(min-width:720px){
  .guide-step{grid-template-columns:minmax(0,1fr) 220px;gap:28px;align-items:start}
  .guide-step:not(:has(figure)){grid-template-columns:1fr}
  .guide-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:960px){
  .mobile-shell:has(.guide-main){width:min(100%,1080px)}
  .guide-main{padding:0 28px 48px}
  .guide-toc{margin:0 -28px 22px;padding:12px 28px}
  .guide-section{padding:28px 28px}
  .guide-step.must{margin:0 -28px;padding-right:28px;padding-left:28px}
  .guide-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
}

.guide-main img{cursor:zoom-in}
.guide-zoom{position:fixed;z-index:90;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(11,15,20,.86);cursor:zoom-out}
.guide-zoom[hidden]{display:none}
.guide-zoom img{max-width:min(100%,640px);max-height:100%;border-radius:18px;object-fit:contain}
.guide-zoom-open,.guide-zoom-open body{overflow:hidden}

/* 功能说明：每个模块一个折叠块，图上的红色序号对应下面的说明 */
.guide-module{border-top:1px solid var(--line)}
.guide-module:first-of-type{border-top:0}
.guide-module summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px;padding:14px 0;cursor:pointer;list-style:none}
.guide-module summary::-webkit-details-marker{display:none}
.guide-module summary b{font-size:16px}
.guide-module summary small{grid-column:1;color:var(--muted);font-size:13px}
.guide-module summary::after{content:"+";grid-row:1/span 2;grid-column:2;color:var(--green);font-size:22px;font-weight:500}
.guide-module[open] summary::after{content:"−"}
.guide-module-body{display:grid;gap:16px;padding:2px 0 20px}
.guide-mod-figs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.guide-mod-figs figure{max-width:300px}
.guide-mod-figs img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.guide-mod-sub{margin:8px 0 0;font-size:15px}
.guide-legend{display:grid;gap:8px;margin:0;padding:0;list-style:none;counter-reset:legend}
.guide-legend li{position:relative;padding-left:34px;color:var(--muted);font-size:14px;line-height:1.65;counter-increment:legend}
.guide-legend li::before{content:counter(legend);position:absolute;top:1px;left:0;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#ff3b30;color:#fff;font-size:12px;font-weight:760;font-variant-numeric:tabular-nums}
.guide-legend b{color:var(--ink)}
.guide-module-body .tip{margin:0}
@media(min-width:720px){.guide-mod-figs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:960px){
  .guide-mod-figs{grid-template-columns:repeat(4,minmax(0,1fr))}
  .guide-legend{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
}

/* Siri AI 重点模块：默认展开，三种样式实拍并排 */
.guide-module-hero{margin:0 -16px;padding:0 16px;border-top:0;border-radius:8px;background:var(--green-soft)}
.guide-module-hero summary b{font-size:18px}
.guide-mod-intro{margin:0;color:var(--muted);font-size:14px;line-height:1.75}
.guide-fx{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start}
.guide-fx img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.guide-fx figcaption{margin-top:8px;color:var(--muted);font-size:12px;line-height:1.6}
.guide-fx figcaption b{display:block;margin-bottom:2px;color:var(--ink);font-size:14px}
@media(min-width:720px){.guide-fx{gap:16px}.guide-fx figure{max-width:260px}.guide-fx figcaption{font-size:13px}}
@media(min-width:960px){.guide-module-hero{margin:0 -28px;padding:0 28px}}

/* 联系我们：QQ 群按钮，和 App 里“联系我们”的 1–9 群一致 */
.guide-contact p+p{margin-top:12px}
.qq-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.qq-group{display:grid;gap:2px;justify-items:center;padding:12px 6px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--ink);text-decoration:none}
.qq-group:hover,.qq-group:focus-visible{border-color:var(--green);outline:none}
.qq-group b{font-size:15px}
.qq-group span{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.qq-toast{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0 0;padding:10px 12px;border-radius:8px;background:var(--green-soft);color:var(--green);font-size:13px;font-weight:650}
.qq-toast[hidden]{display:none}
.qq-copy{min-height:32px;padding:0 12px;border:1px solid var(--green);border-radius:999px;background:transparent;color:var(--green);font:inherit;font-size:12px;cursor:pointer}
@media(min-width:720px){.qq-groups{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:960px){.qq-groups{grid-template-columns:repeat(9,minmax(0,1fr))}}
