.guide-hero { padding: 56px 0 40px; text-align: center; background: radial-gradient(ellipse at top, #eef2ff, transparent 70%); }
.guide-hero h1 { font-size: clamp(30px, 4.6vw, 48px); max-width: 820px; margin: 0 auto 14px; }
.guide-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 36px; }

.ch-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.ch-tab {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; border-radius: 18px; border: 2px solid var(--line);
  background: #fff; cursor: pointer; transition: all .2s; font-weight: 700; font-size: 16px;
}
.ch-tab small { font-weight: 500; color: var(--muted); font-size: 13px; }
.ch-tab:hover { border-color: #c7d2fe; transform: translateY(-2px); }
.ch-tab.active { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12), var(--shadow); }

.guide-main { max-width: 980px; padding-bottom: 64px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 28px; }
.sum-box { background: var(--bg-2); border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); }
.sum-box .k { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.sum-box .v { font-size: 18px; font-weight: 700; margin-top: 4px; }
.sum-box ul { margin: 6px 0 0; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.sum-box.need { grid-column: span 1; }
.note-box { grid-column: 1 / -1; background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 14px 18px; font-size: 15px; color: #92400e; }

.progress-wrap { position: sticky; top: 68px; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); padding: 14px 0; margin-bottom: 8px; }
.progress-text { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 15px; }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #34d399); transition: width .4s; border-radius: 999px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; }

.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.gstep {
  display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 28px; transition: border-color .2s, background .2s;
}
.gstep.done { border-color: #a7f3d0; background: #f6fefb; }
.gstep-head { display: flex; gap: 16px; align-items: flex-start; }
.gstep-num {
  flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 22px; font-weight: 800; display: grid; place-items: center;
}
.gstep.done .gstep-num { background: var(--accent); }
.gstep h3 { font-size: 21px; margin: 4px 0 8px; }
.gstep p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 12px; }
.gstep .tip { background: var(--brand-soft); color: #3730a3; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; margin: 0 0 14px; }
.gstep .warn { background: #fff7ed; color: #9a3412; }
.kbd {
  display: inline-flex; align-items: center; gap: 6px; background: #f1f5f9; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 8px;
  padding: 2px 10px; font-weight: 700; font-size: .95em; font-family: ui-monospace, Menlo, monospace; cursor: pointer;
}
.done-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 15px; user-select: none; padding: 10px 16px; border-radius: 12px; border: 1px dashed #cbd5e1; }
.done-check input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.gstep.done .done-check { border-style: solid; border-color: #a7f3d0; color: #047857; background: #ecfdf5; }

/* --- Mock illustrations --- */
.mock { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); font-size: 13px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mock-bar i:nth-child(1) { background: #fca5a5; } .mock-bar i:nth-child(2) { background: #fcd34d; } .mock-bar i:nth-child(3) { background: #86efac; }
.mock-url { flex: 1; margin-left: 8px; background: #fff; border-radius: 8px; padding: 4px 10px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 18px; min-height: 180px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.mock-title { font-weight: 700; font-size: 15px; text-align: center; }
.mock-line { height: 9px; border-radius: 6px; background: #eef2f7; }
.mock-input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink-2); background: #fff; }
.mock-btn {
  align-self: center; position: relative; padding: 9px 18px; border-radius: 10px; color: #fff; font-weight: 700; background: var(--brand);
}
.mock-btn.tap::after {
  content: ""; position: absolute; inset: -6px; border-radius: 14px; border: 3px solid #f59e0b; animation: ring 1.6s infinite;
}
.mock-btn.tap::before {
  content: "👆"; position: absolute; right: -18px; bottom: -22px; font-size: 24px; animation: tapf 1.6s infinite;
}
@keyframes ring { 0% { opacity: 1; transform: scale(.95); } 80%, 100% { opacity: 0; transform: scale(1.15); } }
@keyframes tapf { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -4px); } }
.mock-chat { background: #e5edf6; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; justify-content: flex-end; }
.mock-chat .b { max-width: 85%; padding: 8px 12px; border-radius: 14px; background: #fff; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.mock-chat .b.me { align-self: flex-end; background: #2b5278; color: #fff; }
.mock-chat .b.hl { outline: 3px solid #f59e0b; outline-offset: 2px; }
.mock-chat .b code { background: #fef3c7; padding: 1px 4px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.mock-qr { width: 110px; height: 110px; margin: 0 auto; background:
  conic-gradient(#0f172a 25%, #fff 0 50%, #0f172a 0 75%, #fff 0) 0 0 / 22px 22px; border: 8px solid #fff; outline: 1px solid var(--line); border-radius: 6px; }
.mock-perm { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.mock-perm b { flex: 1; font-weight: 600; }
.toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.mock-row.sel { border-color: var(--brand); background: var(--brand-soft); }
.mock-row .av { width: 30px; height: 30px; border-radius: 50%; background: #fde68a; display: grid; place-items: center; }
.radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cbd5e1; margin-left: auto; }
.mock-row.sel .radio { border: 5px solid var(--brand); }
.mock-success { text-align: center; font-size: 40px; }

.done-card { display: none; text-align: center; padding: 48px 24px; margin-top: 24px; border-radius: 24px; background: linear-gradient(135deg, #ecfdf5, #eef2ff); border: 1px solid #a7f3d0; }
.done-card.show { display: block; animation: pop .4s ease-out; }
.done-card p { color: var(--ink-2); font-size: 17px; }

.advanced { margin-top: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.advanced summary { cursor: pointer; padding: 20px 24px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::after { content: "▾"; font-size: 20px; color: var(--muted); transition: transform .2s; }
.advanced[open] summary::after { transform: rotate(180deg); }
.advanced summary span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.advanced ol { margin: 0; padding: 0 24px 24px 48px; display: grid; gap: 10px; color: var(--ink-2); }
.advanced code, .help code { background: #fff; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 13.5px; word-break: break-all; }

.help-card { margin-top: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 28px 32px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.help-card h3 { font-size: 20px; }
.help-card p { color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .ch-tabs { grid-template-columns: repeat(2, 1fr); }
  .gstep { grid-template-columns: 1fr; padding: 22px; }
  .summary { grid-template-columns: 1fr; }
  .help-card { flex-direction: column; align-items: flex-start; }
  .progress-wrap { top: 68px; }
}
