:root {
    --bg-main: #f5f8ff;
    --bg-soft: #edf4ff;
    --bg-warm: #fff8ea;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --border: #d9e5f3;
    --border-strong: #c3d7f1;
    --text-main: #18324d;
    --text-muted: #58718a;
    --text-soft: #7a90a6;
    --member: #2f6fed;
    --member-soft: #edf3ff;
    --parent: #169a84;
    --parent-soft: #e9faf5;
    --guide: #f2a526;
    --guide-soft: #fff4de;
    --shadow: 0 24px 56px rgba(43, 87, 140, 0.12);
    --shadow-soft: 0 16px 32px rgba(43, 87, 140, 0.08);
    --font-display: 'Lexend', 'Noto Sans TC', sans-serif;
    --font-body: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(86, 144, 255, 0.15), transparent 28%),
        radial-gradient(circle at top right, rgba(242, 165, 38, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f4f8ff 48%, #ffffff 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
}

.guide-bg {
    position: fixed;
    border-radius: 999px;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

.guide-bg-top {
    top: -140px;
    right: -90px;
    width: 340px;
    height: 340px;
    background: rgba(90, 147, 255, 0.18);
}

.guide-bg-bottom {
    bottom: -150px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: rgba(242, 165, 38, 0.14);
}

.guide-nav,
.guide-shell,
.guide-footer {
    position: relative;
    z-index: 1;
}

.guide-nav {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(217, 229, 243, 0.85);
    backdrop-filter: blur(18px);
}

.guide-brand {
    display: inline-flex;
    align-items: center;
}

.guide-brand-logo {
    height: 42px;
    width: auto;
}

.guide-nav-links,
.guide-nav-actions,
.guide-hero-actions,
.route-footer,
.guide-footer-actions,
.inline-links,
.feature-chips {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.guide-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
}

.guide-nav-links a:hover {
    color: var(--member);
}

.guide-shell,
.guide-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.guide-shell {
    padding: 34px 0 88px;
}

.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 22px;
    margin-bottom: 22px;
}

.guide-hero-copy,
.guide-hero-panel,
.guide-section,
.guide-footer {
    background: var(--panel);
    border: 1px solid rgba(217, 229, 243, 0.95);
    border-radius: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.guide-hero-copy,
.guide-hero-panel,
.guide-section,
.guide-footer {
    padding: 30px;
}

.guide-kicker,
.section-kicker,
.guide-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #976108;
}

.guide-hero-copy h1,
.section-heading h2 {
    margin: 14px 0 12px;
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.guide-hero-copy h1 {
    font-size: clamp(2.1rem, 4.8vw, 4rem);
    max-width: 12ch;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.9rem);
}

.guide-hero-copy p,
.section-heading p,
.decision-item p,
.compare-card p,
.task-card p,
.info-card p,
.route-tip p,
.step-card p,
.platform-card p,
.faq-card p,
.guide-footer p {
    color: var(--text-muted);
    line-height: 1.85;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.guide-hero-panel {
    background: linear-gradient(180deg, #fff8eb 0%, #ffffff 100%);
    border-color: #f0d9a4;
}

.decision-stack {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.decision-item {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--panel-strong);
}

.decision-item.is-member {
    background: linear-gradient(180deg, var(--member-soft) 0%, #ffffff 100%);
}

.decision-item.is-parent {
    background: linear-gradient(180deg, var(--parent-soft) 0%, #ffffff 100%);
}

.decision-item.is-guide {
    background: linear-gradient(180deg, var(--guide-soft) 0%, #ffffff 100%);
}

.decision-label,
.compare-tag,
.task-route,
.feature-chip,
.guide-nav-btn,
.guide-cta,
.inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.decision-label,
.compare-tag,
.task-route,
.feature-chip {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

.decision-item.is-member .decision-label,
.task-route.is-member,
.feature-chip.is-member {
    background: var(--member-soft);
    color: var(--member);
}

.decision-item.is-parent .decision-label,
.task-route.is-parent,
.feature-chip.is-parent {
    background: var(--parent-soft);
    color: var(--parent);
}

.decision-item.is-guide .decision-label {
    background: var(--guide-soft);
    color: #9d6508;
}

.decision-item h3 {
    margin: 12px 0 8px;
    font-size: 1.08rem;
    line-height: 1.55;
}

.guide-nav-btn,
.guide-cta {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-nav-btn:hover,
.guide-cta:hover,
.inline-link:hover {
    transform: translateY(-1px);
}

.guide-nav-btn.is-member,
.guide-cta.is-member {
    background: var(--member-soft);
    border-color: #c9daf8;
    color: var(--member);
}

.guide-nav-btn.is-parent,
.guide-cta.is-parent {
    background: var(--parent-soft);
    border-color: #bfe6dc;
    color: var(--parent);
}

.guide-cta.is-ghost {
    background: transparent;
    color: var(--text-main);
}

.compare-grid,
.task-grid,
.prep-grid,
.route-overview,
.step-grid,
.install-grid,
.faq-grid {
    display: grid;
    gap: 16px;
}

.compare-grid,
.route-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-grid,
.install-grid,
.faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prep-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compare-card,
.task-card,
.info-card,
.route-summary-card,
.route-tip,
.step-card,
.platform-card,
.faq-card {
    position: relative;
    height: 100%;
    border: 1px solid rgba(217, 229, 243, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.compare-card,
.route-summary-card,
.route-tip,
.platform-card,
.faq-card {
    padding: 24px;
}

.task-card,
.info-card,
.step-card {
    padding: 22px;
}

.compare-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.compare-card::before,
.route-summary-card::before,
.route-tip::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
}

.compare-card-member::before,
.route-section.route-member .route-summary-card::before,
.route-section.route-member .route-tip::before {
    background: var(--member);
}

.compare-card-parent::before,
.route-section.route-parent .route-summary-card::before,
.route-section.route-parent .route-tip::before {
    background: var(--parent);
}

.compare-icon,
.info-icon,
.platform-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.5rem;
    margin: 16px 0 14px;
}

.compare-card-member .compare-icon,
.info-card .info-icon {
    background: var(--member-soft);
    color: var(--member);
}

.compare-card-parent .compare-icon {
    background: var(--parent-soft);
    color: var(--parent);
}

.platform-icon {
    background: var(--guide-soft);
    color: var(--guide);
}

.compare-card-member .compare-tag {
    background: var(--member-soft);
    color: var(--member);
}

.compare-card-parent .compare-tag {
    background: var(--parent-soft);
    color: var(--parent);
}

.compare-card h3,
.route-summary-card h3,
.route-tip h3,
.platform-card h3,
.faq-card h3,
.info-card h3,
.step-card h3,
.task-card h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    line-height: 1.5;
}

.compare-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
}

.compare-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
    line-height: 1.8;
}

.compare-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.compare-card-member .compare-list li::before {
    background: var(--member);
}

.compare-card-parent .compare-list li::before {
    background: var(--parent);
}

.compare-note {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px dashed var(--border-strong);
    color: var(--text-muted);
    line-height: 1.8;
}

.compare-card .guide-cta {
    align-self: flex-start;
}

.task-grid {
    margin-top: 18px;
}

.task-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.inline-link {
    margin-top: 10px;
    color: var(--member);
    font-size: 0.94rem;
    font-weight: 700;
}

.route-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.98) 100%);
}

.route-parent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 251, 248, 0.98) 100%);
}

.route-overview {
    margin-bottom: 16px;
}

.step-card {
    padding-top: 68px;
    background: rgba(255, 255, 255, 0.98);
}

.step-number {
    position: absolute;
    top: 18px;
    left: 22px;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    color: rgba(24, 50, 77, 0.2);
}

.guide-footer {
    margin-bottom: 40px;
    text-align: center;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.96em;
}

@media (max-width: 1120px) {
    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-grid,
    .prep-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 940px) {
    .guide-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .guide-hero,
    .compare-grid,
    .route-overview {
        grid-template-columns: 1fr;
    }

    .install-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .guide-shell,
    .guide-footer {
        width: min(100% - 20px, 1180px);
    }

    .guide-nav {
        padding: 14px 16px;
    }

    .guide-nav-links {
        justify-content: center;
    }

    .guide-hero-copy,
    .guide-hero-panel,
    .guide-section,
    .guide-footer {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .task-grid,
    .prep-grid,
    .step-grid {
        grid-template-columns: 1fr;
    }
}
