/**
 * 线路专题页 / 线路列表 — 对齐 test/*/code.html 主体区 max-w-7xl (1280px) + px-6 (24px)
 * 区块背景可全宽，内容始终在 .route-main 内
 */
.route-landing {
    background: #f8f9fa;
    color: #191c1d;
    padding-bottom: 0;
}

.route-main {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}

.route-section {
    padding-top: 96px;
    padding-bottom: 96px;
}

.route-section.route-hero {
    padding-top: 64px;
    padding-bottom: 80px;
    background: #f8f9fa;
}

.route-section--compact {
    padding-top: 20px;
    padding-bottom: 20px;
    background: #f8f9fa;
}

.route-section--alt {
    background: #f3f4f5;
}

.route-section--surface {
    background: #f8f9fa;
}

.route-section--white {
    background: #fff;
}

.route-section--dark {
    background: #2e3132;
    color: #fff;
}

/* ---------- Hero（原型 Editorial） ---------- */
.route-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .route-hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
    .route-hero-grid--wide-left {
        grid-template-columns: 1.15fr 0.85fr;
    }
    .route-hero-grid--7-5 {
        grid-template-columns: 1.4fr 1fr;
    }
}

.route-badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.route-h1 {
    margin: 0 0 20px;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #191c1d;
}

.route-h1 .accent,
.route-h1 span.accent {
    color: var(--primary);
    font-style: italic;
}

.route-h1 .gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.route-lead {
    margin: 0 0 28px;
    max-width: 36rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #5d5e61;
}

.route-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.route-hero-visual {
    position: relative;
}

.route-visual-card {
    aspect-ratio: 4 / 5;
    max-height: 520px;
    border-radius: 2rem;
    overflow: hidden;
    background:
        radial-gradient(520px 220px at 40% 25%, rgba(var(--primary-rgb), 0.2), transparent 62%),
        linear-gradient(165deg, #cbd5e1, #f8fafc 45%, #fce7f3);
    box-shadow: 0 32px 64px -12px rgba(var(--primary-rgb), 0.08);
}

.route-float-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    padding: 20px 24px;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-left: 4px solid var(--primary);
    max-width: 220px;
}

.route-float-card .val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.route-float-card .lbl {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #5d5e61;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- 区块标题 ---------- */
.route-block-head {
    margin-bottom: 48px;
}

.route-block-head--center {
    text-align: center;
}

.route-block-head--center .route-muted {
    margin-left: auto;
    margin-right: auto;
}

.route-block-head-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 40px;
}

.route-h2 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #191c1d;
}

.route-h2--light {
    color: #fff;
}

.route-muted {
    margin: 0;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #5d5e61;
}

.route-accent-bar {
    width: 72px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.route-link {
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.route-link:hover {
    text-decoration: underline;
}

/* ---------- 线路切换 chips ---------- */
.route-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.route-chip {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    color: #191c1d;
    text-decoration: none;
}

.route-chip:hover,
.route-chip--on {
    border-color: rgba(var(--primary-rgb), 0.35);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

/* ---------- CTA 条（容器内渐变，非全屏） ---------- */
.route-cta-box {
    padding: 48px 40px;
    border-radius: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.route-cta-box h2 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.route-cta-box > p {
    margin: 0 auto 24px;
    max-width: 32rem;
    opacity: 0.88;
    line-height: 1.75;
}

.route-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.route-cta-box .nf-btn--primary.route-cta-white {
    background: #fff !important;
    color: var(--primary) !important;
}

.route-cta-box .nf-btn--ghost.route-cta-outline {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}

.route-cta-box--split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    text-align: left;
}

.route-cta-copy h2 {
    margin: 0 0 16px;
}

.route-cta-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.route-cta-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
}

.route-cta-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

/* ---------- 兼容旧 price-page 包裹（逐步迁移） ---------- */
.route-landing.price-page,
.route-landing[class$="-page"] {
    padding: 0 !important;
    background: #f8f9fa !important;
    min-height: 0 !important;
}

.route-landing > .price-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
}

/* 取消旧版专题页内装饰层（勿影响专用线路页全宽 banner） */
.route-landing:not(.my-page):not(.au-page):not(.jp-page):not(.tw-page):not(.sg-page):not(.hk-page) [class*="-hero"]:not(.route-section):not(.route-hero):not(.route-hero-grid):not(.route-hero-visual) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 0 !important;
}

.route-landing:not(.my-page):not(.au-page):not(.jp-page):not(.tw-page):not(.sg-page):not(.hk-page) [class*="-hero-deco"],
.route-landing:not(.my-page):not(.au-page):not(.jp-page):not(.tw-page):not(.sg-page):not(.hk-page) [class*="-hero-bg"] {
    display: none !important;
}

/* 线路列表页 */
.lines-page {
    padding-bottom: 64px;
    background: #f8f9fa;
}

.lines-page .lines-filter-bar.route-section--compact {
    padding-top: 24px;
    padding-bottom: 24px;
}

.lines-page .lines-grid-section {
    padding-top: 48px;
    padding-bottom: 80px;
}

.lines-page .lines-wrap,
.lines-page .route-main {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.lines-hero {
    padding-top: 64px !important;
    padding-bottom: 48px !important;
}

/* 通用 Line 详情 */
.route-landing .price-page {
    padding: 0 !important;
    background: transparent !important;
}

.route-landing .price-wrap {
    max-width: 1280px;
    padding: 48px 24px 64px;
}

@media (max-width: 768px) {
    .route-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    .route-section.route-hero {
        padding-top: 40px;
        padding-bottom: 48px;
    }
    .route-float-card {
        position: static;
        margin-top: 16px;
        max-width: none;
    }
    .route-cta-box--split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .route-cta-side {
        align-items: center;
    }
}
