/* ============================================================
   完整应用安装指引页 专属样式
   复用全局 style.css，金黄主色调，编辑感
   ============================================================ */

/* ============ 左侧悬浮快捷导航 ============ */
.guide-toc-nav {
  position: fixed;
  top: 110px;
  left: 24px;
  z-index: 40;
  width: 188px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s var(--t), opacity .25s var(--t);
}
.guide-toc-nav::-webkit-scrollbar { width: 4px; }
.guide-toc-nav::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.toc-nav-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.toc-nav-list { display: grid; gap: 2px; }
.toc-nav-list a {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--text-mute);
  border-radius: 4px;
  transition: color .2s var(--t), background .2s var(--t);
  line-height: 1.5;
}
.toc-nav-list a:hover { color: var(--text); background: rgba(255, 208, 0, .05); }
.toc-nav-list a.active {
  color: var(--accent-2);
  background: rgba(255, 208, 0, .08);
  font-weight: 500;
}
.toc-nav-list a[data-depth="2"] {
  padding-left: 18px;
  font-size: 12.5px;
}
.toc-nav-list .toc-dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.toc-nav-list .toc-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 4px;
}

@media (max-width: 1280px) {
  .guide-toc-nav { width: 168px; left: 12px; padding: 16px 14px; }
}
@media (max-width: 1100px) {
  .guide-toc-nav { display: none; }
}

/* 移动端底部 TOC */
.guide-toc-bottom {
  display: none;
}

/* ============ 主内容 ============ */
.guide-main {
  max-width: 920px;
  padding-bottom: 60px;
}

/* ============ 目录区 ============ */
.guide-toc {
  margin: 8px 0 64px;
  padding: 28px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.toc-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 16px;
}
.toc-list {
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text-mute);
}
.toc-list ul {
  margin-top: 6px;
  padding-left: 22px;
  display: grid;
  gap: 4px;
}
.toc-list a {
  color: var(--text-mute);
  border-bottom: 1px dashed var(--border);
  transition: color .2s var(--t), border-color .2s var(--t);
}
.toc-list a:hover {
  color: var(--accent-2);
  border-color: var(--accent-line);
}

/* ============ Section ============ */
.guide-section {
  margin-bottom: 80px;
  scroll-margin-top: 90px;
}
.guide-h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ============ 品牌块 ============ */
.guide-brand {
  margin-bottom: 56px;
  scroll-margin-top: 90px;
}
.guide-h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.guide-h4 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
  padding: 10px 14px;
  background: rgba(255, 208, 0, .06);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

/* ============ 警告框 ============ */
.guide-warning {
  margin: 14px 0 22px;
  padding: 12px 16px;
  border: 1px dashed var(--accent);
  border-radius: var(--r-sm);
  background: rgba(255, 208, 0, .08);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ============ 步骤文字 ============ */
.step-text { margin-bottom: 14px; }
.step-text p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.step-text strong {
  color: var(--text);
  font-weight: 500;
}
.hl {
  color: var(--accent-2);
  font-weight: 500;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
}
.hl-strong {
  color: #ff5b3a;
  font-weight: 700;
}

/* ============ 图片网格（手机截图）============ */
.guide-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0 22px;
  padding: 14px;
  background: rgba(255, 208, 0, .025);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.guide-imgs img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #000;
  transition: transform .25s var(--t), border-color .2s var(--t);
}
.guide-imgs img:hover {
  transform: scale(1.02);
  border-color: var(--accent-line);
}

/* ============ 底部提示 ============ */
.guide-note {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.7;
}

/* ============ 空状态 ============ */
.guide-empty {
  padding: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  letter-spacing: .05em;
}

/* ============ 回到顶部 ============ */
#backToTop {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 45;
  width: 42px; height: 42px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 208, 0, .25);
  transition: background .2s var(--t), transform .15s var(--t);
}
#backToTop:hover { background: var(--accent-2); transform: translateY(-2px); }
#backToTop.show { display: block; }

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .guide-toc { padding: 22px 20px; margin-bottom: 48px; }
  .guide-h2 { font-size: 22px; }
  .guide-h3 { font-size: 16px; }
  .guide-imgs { grid-template-columns: repeat(2, 1fr); padding: 10px; gap: 8px; }
  .guide-section { margin-bottom: 56px; }
  .guide-brand { margin-bottom: 44px; }
  .step-text p { font-size: 14px; }
  #backToTop { bottom: 18px; right: 18px; width: 38px; height: 38px; }
}
@media (max-width: 420px) {
  .guide-imgs { grid-template-columns: 1fr; }
}