        /* ── Guide Page Layout ── */
        html {
            scroll-padding-top: 92px;
        }

        .guide-hero {
            padding: 56px 0 44px;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
            background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
        }

        .guide-hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 5px 14px;
            background: var(--primary-light);
            color: var(--primary);
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.04em;
            margin-bottom: 20px;
        }

        .guide-hero h1 {
            font-size: clamp(1.75rem, 3.5vw, 2.6rem);
            font-weight: 600;
            letter-spacing: -0.03em;
            line-height: 1.15;
            color: var(--text-main);
            margin-bottom: 14px;
        }

        .guide-hero p {
            font-size: 1rem;
            color: var(--text-muted);
            max-width: 500px;
            margin: 0 auto 28px;
            line-height: 1.7;
        }

        .guide-hero-steps {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 10px 20px;
            font-size: 0.8rem;
            color: var(--text-muted);
            box-shadow: var(--shadow-soft);
        }

        .guide-hero-steps .step-dot {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            font-size: 0.65rem;
            font-weight: 600;
            flex-shrink: 0;
        }

        .guide-hero-steps .step-item {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }

        .guide-hero-steps .step-sep {
            color: #cbd5e1;
            font-size: 0.7rem;
        }

        /* ── Page body layout ── */
        .guide-body {
            display: grid;
            grid-template-columns: 240px 1fr;
            gap: 40px;
            align-items: start;
            padding: 40px 0 80px;
        }

        /* ── Left sidebar TOC ── */
        .guide-toc {
            position: sticky;
            top: 92px;
            max-height: calc(100vh - 112px);
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: none;
            padding-right: 4px;
        }

        .guide-toc::-webkit-scrollbar { display: none; }

        .guide-toc-title {
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 12px;
            padding-left: 10px;
        }

        .guide-toc-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .guide-toc-item a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 10px;
            font-size: 0.825rem;
            color: #64748b;
            text-decoration: none;
            border-radius: 8px;
            border-left: 2px solid transparent;
            transition: color 0.2s, background 0.2s, border-color 0.2s;
            line-height: 1.4;
        }

        .guide-toc-item a i {
            width: 14px;
            font-size: 0.7rem;
            flex-shrink: 0;
            color: #94a3b8;
            transition: color 0.2s;
        }

        .guide-toc-item a:hover {
            color: var(--primary);
            background: var(--primary-light);
        }

        .guide-toc-item a:hover i { color: var(--primary); }

        .guide-toc-item.is-active a {
            color: var(--primary);
            background: var(--primary-light);
            border-left-color: var(--primary);
            font-weight: 500;
        }

        .guide-toc-item.is-active a i { color: var(--primary); }

        .guide-toc-divider {
            height: 1px;
            background: var(--border-color);
            margin: 10px 0;
        }

        /* ── Main content area ── */
        .guide-main {
            min-width: 0;
        }

        .guide-section {
            margin-bottom: 56px;
            scroll-margin-top: 92px;
        }

        .guide-section-header {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            margin-bottom: 24px;
            padding-bottom: 18px;
            border-bottom: 1px solid var(--border-color);
        }

        .guide-section-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            background: var(--primary-light);
            color: var(--primary);
        }

        .guide-section-meta h2 {
            font-size: 1.25rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            color: var(--text-main);
            margin-bottom: 4px;
        }

        .guide-section-meta p {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* ── Steps ── */
        .steps-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .step-item {
            display: grid;
            grid-template-columns: 32px 1fr;
            gap: 0 16px;
        }

        .step-line-col {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .step-num {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            font-size: 0.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0;
        }

        .step-connector {
            flex: 1;
            width: 2px;
            background: linear-gradient(to bottom, #c7d2fe, transparent);
            margin: 4px 0;
            min-height: 24px;
        }

        .step-item:last-child .step-connector {
            display: none;
        }

        .step-body {
            padding-bottom: 28px;
        }

        .step-item:last-child .step-body {
            padding-bottom: 0;
        }

        .step-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 8px;
            padding-top: 5px;
        }

        .step-desc {
            font-size: 0.875rem;
            line-height: 1.7;
            color: #475569;
        }

        .step-desc code {
            font-family: var(--font-mono);
            font-size: 0.82em;
            padding: 2px 6px;
            background: var(--bg-neutral);
            border-radius: 4px;
            color: var(--primary);
        }

        .step-tip {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-top: 10px;
            padding: 10px 14px;
            background: #fefce8;
            border: 1px solid #fef08a;
            border-radius: 8px;
            font-size: 0.8rem;
            color: #713f12;
            line-height: 1.5;
        }

        .step-tip i {
            color: #ca8a04;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .step-tip span,
        .step-warn span {
            flex: 1;
            min-width: 0;
        }

        .step-warn {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-top: 10px;
            padding: 10px 14px;
            background: #fff1f2;
            border: 1px solid #fecdd3;
            border-radius: 8px;
            font-size: 0.8rem;
            color: #881337;
            line-height: 1.5;
        }

        .step-warn i {
            color: #e11d48;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .step-success {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-top: 10px;
            padding: 10px 14px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 8px;
            font-size: 0.8rem;
            color: #14532d;
            line-height: 1.5;
        }

        .step-success i {
            color: var(--success);
            flex-shrink: 0;
            margin-top: 1px;
        }

        /* ── Platform install tabs ── */
        .platform-tabs {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .ptab-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 16px;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-muted);
            background: var(--bg-neutral);
            border: 1px solid var(--border-color);
            border-radius: 999px;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.18s;
        }

        .ptab-btn:hover {
            color: var(--primary);
            border-color: #c7d2fe;
            background: var(--primary-light);
        }

        .ptab-btn.is-active {
            color: white;
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 2px 8px rgba(79,70,229,0.3);
        }

        .ptab-panel {
            display: none;
        }

        .ptab-panel.is-active {
            display: block;
        }

        /* ── Proxy mode cards ── */
        .mode-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-top: 4px;
        }

        .mode-card {
            background: var(--bg-surface);
            border: 1.5px solid var(--border-color);
            border-radius: 14px;
            padding: 20px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .mode-card:hover {
            border-color: #c7d2fe;
            box-shadow: 0 4px 20px rgba(79,70,229,0.07);
        }

        .mode-card-icon {
            width: 36px;
            height: 36px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            margin-bottom: 12px;
        }

        .mode-card-icon.rule   { background: #ede9fe; color: #7c3aed; }
        .mode-card-icon.global { background: #fce7f3; color: #be185d; }
        .mode-card-icon.direct { background: #dcfce7; color: #15803d; }

        .mode-card h3 {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 6px;
        }

        .mode-card p {
            font-size: 0.82rem;
            line-height: 1.6;
            color: var(--text-muted);
        }

        .mode-card-rec {
            display: inline-block;
            margin-top: 10px;
            font-size: 0.7rem;
            font-weight: 500;
            padding: 2px 8px;
            border-radius: 6px;
            background: var(--primary-light);
            color: var(--primary);
        }

        /* ── FAQ accordion ── */
        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .faq-item {
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            transition: border-color 0.2s;
        }

        .faq-item:hover {
            border-color: #c7d2fe;
        }

        .faq-question {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            width: 100%;
            padding: 16px 18px;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-main);
            text-align: left;
            background: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
            line-height: 1.5;
        }

        .faq-question .faq-icon {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            border-radius: 6px;
            background: var(--bg-neutral);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            color: var(--text-muted);
            transition: background 0.2s, color 0.2s, transform 0.25s;
        }

        .faq-item.is-open .faq-question .faq-icon {
            background: var(--primary-light);
            color: var(--primary);
            transform: rotate(45deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .faq-answer-inner {
            padding: 0 18px 16px;
            font-size: 0.875rem;
            line-height: 1.75;
            color: #475569;
        }

        .faq-answer-inner code {
            font-family: var(--font-mono);
            font-size: 0.82em;
            padding: 2px 6px;
            background: var(--bg-neutral);
            border-radius: 4px;
            color: var(--primary);
        }

        .faq-answer-inner a {
            color: var(--primary);
        }

        /* ── Install code block ── */
        .install-code {
            margin-top: 12px;
            padding: 14px 16px;
            background: #0f172a;
            border: 1px solid #1e293b;
            border-radius: 10px;
            overflow-x: auto;
            max-width: 100%;
            box-sizing: border-box;
        }

        .install-code code {
            font-family: var(--font-mono);
            font-size: 0.78rem;
            line-height: 1.7;
            color: #e2e8f0;
            white-space: pre;
            display: block;
        }

        /* ── Info card ── */
        .info-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 20px 22px;
            margin-bottom: 20px;
        }

        .info-card-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .info-card-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .info-card-row:first-child {
            padding-top: 0;
        }

        .info-card-label {
            flex-shrink: 0;
            width: 76px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #94a3b8;
            padding-top: 2px;
        }

        .info-card-value {
            font-size: 0.85rem;
            color: var(--text-main);
            line-height: 1.6;
        }

        .info-card-value code {
            font-family: var(--font-mono);
            font-size: 0.82em;
            padding: 2px 6px;
            background: var(--bg-neutral);
            border-radius: 4px;
            color: var(--primary);
            word-break: break-all;
            overflow-wrap: break-word;
        }

        /* ── Download CTA banner ── */
        .guide-cta-banner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
            padding: 24px 28px;
            background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
            border-radius: 16px;
            margin-bottom: 48px;
        }

        .guide-cta-text h3 {
            font-size: 1rem;
            font-weight: 600;
            color: white;
            margin-bottom: 4px;
        }

        .guide-cta-text p {
            font-size: 0.82rem;
            color: rgba(255,255,255,0.75);
        }

        .guide-cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 22px;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--primary);
            background: white;
            border-radius: 10px;
            text-decoration: none;
            white-space: nowrap;
            transition: transform 0.2s, box-shadow 0.2s;
            flex-shrink: 0;
        }

        .guide-cta-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0,0,0,0.18);
        }

        /* ── Responsive ── */
        @media (max-width: 900px) {
            .guide-body { grid-template-columns: 1fr; }
            .guide-toc { display: none; }
            .mode-cards { grid-template-columns: 1fr; }

            .guide-cta-banner {
                flex-direction: column;
                align-items: flex-start;
                gap: 14px;
                padding: 20px 20px;
            }
        }

        @media (max-width: 640px) {
            .guide-hero { padding: 36px 0 28px; }
            .guide-hero h1 { font-size: 1.65rem; }
            .guide-hero p { font-size: 0.88rem; }

            .guide-hero-steps {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px 12px;
                padding: 14px 20px;
            }

            .guide-hero-steps .step-sep { display: none; }

            .guide-section { padding: 28px 0 8px; }
            .guide-section-header { flex-wrap: wrap; gap: 8px; }

            
            .guide-main { min-width: 0; overflow: hidden; }
            .install-code code { white-space: pre-wrap; word-break: break-all; }

            /* Platform tabs: scrollable row on mobile */
            .platform-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
            .platform-tab-btn { white-space: nowrap; flex-shrink: 0; }

            .step-item { gap: 12px; }
            .step-num { width: 28px; height: 28px; font-size: 0.75rem; flex-shrink: 0; }

            .info-card-row { flex-wrap: wrap; gap: 6px; }
        }

        @media (max-width: 480px) {
            .guide-hero h1 { font-size: 1.45rem; }
            .mode-card { padding: 18px 16px; }
            .guide-section-body { font-size: 0.88rem; }
        }
