/**
 * 台湾线路专题 — 对齐 test/tw/code.html
 */
.tw-page.route-landing {
    background: #f8f9fa;
    color: #191c1d;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.tw-page .route-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.tw-page .route-section.route-hero.tw-hero-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
    background: #f8f9fa;
}

.tw-page .route-section--compact {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.tw-page .route-section--alt {
    background: #f3f4f5;
}

.tw-page .route-section--surface {
    background: #f8f9fa;
}

.tw-page .route-main {
    max-width: 1280px;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}

.tw-page .tw-stack-shadow {
    box-shadow: 0 32px 64px -12px rgba(var(--primary-rgb), 0.06);
}

/* —— 按钮 —— */
.tw-page .nf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    box-sizing: border-box;
}

.tw-page .tw-btn-gradient,
.tw-page .nf-btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.22);
}

.tw-page .tw-btn-gradient:hover,
.tw-page .nf-btn--primary:hover {
    transform: scale(0.98);
    color: #fff;
}

.tw-page .tw-btn-muted,
.tw-page .nf-btn--ghost {
    background: #e1e3e4;
    color: #191c1d;
}

.tw-page .tw-btn-muted:hover,
.tw-page .nf-btn--ghost:hover {
    background: #d9dadb;
    color: #191c1d;
}

.tw-page .tw-btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.tw-page .tw-btn-block {
    width: 100%;
}

.tw-page .tw-btn-tier {
    padding: 1rem 1.5rem;
    width: 100%;
}

.tw-page .tw-btn-cta-white {
    background: #fff !important;
    color: var(--primary) !important;
    padding: 1.25rem 3rem !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.tw-page .tw-btn-cta-white:hover {
    transform: scale(1.05);
    color: var(--primary) !important;
}

/* —— Hero —— */
.tw-page .tw-hero-section {
    position: relative;
    min-height: min(870px, 92vh);
    display: flex;
    align-items: center;
}

.tw-page .tw-hero-deco {
    position: absolute;
    top: 5rem;
    right: 0;
    width: 33.333%;
    height: 66.666%;
    background: #f3f4f5;
    border-radius: 10rem 0 0 10rem;
    z-index: 0;
    pointer-events: none;
}

.tw-page .tw-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .tw-page .tw-hero-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 3rem;
    }
}

.tw-page .tw-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 9999px;
    background: #ffd9e1;
    color: #8f0044;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tw-page .tw-h1 {
    margin: 0 0 2rem;
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #191c1d;
}

.tw-page .tw-h1-accent {
    color: var(--primary);
    font-style: italic;
}

.tw-page .tw-lead {
    margin: 0 0 2.5rem;
    max-width: 32rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #5d5e61;
}

.tw-page .tw-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tw-page .tw-hero-visual {
    position: relative;
}

.tw-page .tw-hero-img-wrap {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5;
    max-height: 520px;
    border-radius: 2rem;
    overflow: hidden;
    background: #f3f4f5;
}

.tw-page .tw-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tw-page .tw-float-card {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    z-index: 2;
    padding: 2rem;
    border-radius: 1.5rem;
    background: #fff;
    border-left: 4px solid var(--primary);
    box-shadow: 0 32px 64px -12px rgba(var(--primary-rgb), 0.06);
}

.tw-page .tw-float-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.tw-page .tw-float-lbl {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5d5e61;
}

/* —— 线路切换 —— */
.tw-page .route-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tw-page .route-chip {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e1e3e4;
    background: #fff;
    color: #191c1d;
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
}

.tw-page .route-chip:hover,
.tw-page .route-chip--on {
    border-color: rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

/* —— 核心优势 Bento —— */
.tw-page .tw-advantages-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.tw-page .tw-section-head {
    margin-bottom: 5rem;
}

.tw-page .tw-h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #191c1d;
}

.tw-page .tw-muted {
    margin: 0;
    font-size: 1rem;
    color: #5d5e61;
    line-height: 1.75;
    max-width: 42rem;
}

.tw-page .tw-section-head--center {
    text-align: center;
}

.tw-page .tw-section-head--center .tw-muted {
    margin-left: auto;
    margin-right: auto;
}

.tw-page .tw-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .tw-page .tw-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tw-page .tw-bento-card {
    padding: 2.5rem;
    border-radius: 2.5rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.tw-page .tw-bento-card--wide {
    grid-column: span 1;
    background: #f3f4f5;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .tw-page .tw-bento-card--wide {
        grid-column: span 2;
    }
}

.tw-page .tw-bento-card--wide:hover {
    background: #e7e8e9;
}

.tw-page .tw-bento-card--side {
    background: #e7e8e9;
}

.tw-page .tw-bento-card--white {
    background: #fff;
    border: 1px solid #f3f4f5;
    box-shadow: 0 32px 64px -12px rgba(var(--primary-rgb), 0.06);
}

.tw-page .tw-bento-card--row {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    background: #f3f4f5;
}

.tw-page .tw-bento-card--row:hover {
    background: #e7e8e9;
}

@media (min-width: 768px) {
    .tw-page .tw-bento-card--row {
        grid-column: span 2;
    }
}

.tw-page .tw-bento-ico {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.tw-page .tw-bento-ico .material-symbols-outlined {
    font-size: 2.5rem;
    font-variation-settings: "FILL" 1;
}

.tw-page .tw-bento-card h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #191c1d;
}

.tw-page .tw-bento-card--wide h3 {
    font-size: 1.875rem;
}

.tw-page .tw-bento-card p {
    margin: 0;
    color: #5d5e61;
    line-height: 1.75;
    font-size: 0.9375rem;
}

.tw-page .tw-bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.tw-page .tw-bento-link:hover {
    gap: 0.75rem;
}

.tw-page .tw-bento-link .material-symbols-outlined {
    font-size: 1rem;
}

.tw-page .tw-bento-foot {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tw-page .tw-bento-foot-k {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #5d5e61;
}

.tw-page .tw-bento-foot-v {
    font-size: 1.5rem;
    font-weight: 800;
    color: #191c1d;
}

.tw-page .tw-bento-photo {
    display: none;
    width: 12rem;
    height: 12rem;
    flex-shrink: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
    .tw-page .tw-bento-photo {
        display: block;
    }
}

.tw-page .tw-bento-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* —— 资费方案 —— */
.tw-page .tw-pricing-section {
    background: #f3f4f5;
}

.tw-page .tw-tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 992px) {
    .tw-page .tw-tiers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

.tw-page .tw-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border-radius: 2.5rem;
    background: #fff;
    box-shadow: 0 32px 64px -12px rgba(var(--primary-rgb), 0.06);
    text-align: left;
}

.tw-page .tw-tier--hot {
    outline: 4px solid rgba(var(--primary-rgb), 0.1);
    z-index: 1;
}

@media (min-width: 992px) {
    .tw-page .tw-tier--hot {
        transform: scale(1.05);
    }
}

.tw-page .tw-tier-tag {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tw-page .tw-tier h4 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: #5d5e61;
}

.tw-page .tw-tier--hot h4 {
    color: var(--primary);
}

.tw-page .tw-tier-price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.tw-page .tw-tier-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #191c1d;
    letter-spacing: -0.02em;
}

.tw-page .tw-tier--hot .tw-tier-num {
    font-size: 3rem;
}

.tw-page .tw-tier-unit {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #5d5e61;
}

.tw-page .tw-tier-list {
    margin: 0 0 2.5rem;
    padding: 0;
    list-style: none;
    flex: 1;
}

.tw-page .tw-tier-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #5d5e61;
}

.tw-page .tw-tier-list li:first-child {
    margin-top: 0;
}

.tw-page .tw-tier-list .material-symbols-outlined {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tw-page .tw-tier-list .ico-green {
    color: #22c55e;
    font-variation-settings: "FILL" 1;
}

.tw-page .tw-tier-list .ico-primary {
    color: var(--primary);
    font-variation-settings: "FILL" 1;
}

.tw-page .tw-tier-list .ico-blue {
    color: #3b82f6;
    font-variation-settings: "FILL" 1;
}

.tw-page .tw-tier--hot .tw-tier-list li {
    color: #191c1d;
}

.tw-page .tw-tier-note {
    margin: 3rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #5d5e61;
}

/* —— FAQ —— */
.tw-page .tw-faq-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.tw-page .tw-faq-wrap {
    max-width: 48rem;
    margin: 0 auto;
}

.tw-page .tw-faq-title {
    text-align: center;
    margin-bottom: 4rem;
}

.tw-page .tw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tw-page .tw-faq-item {
    border-radius: 1rem;
    background: #f3f4f5;
    overflow: hidden;
    transition: background 0.2s ease;
}

.tw-page .tw-faq-item:hover {
    background: #e7e8e9;
}

.tw-page .tw-faq-q {
    width: 100%;
    padding: 1.5rem;
    border: none;
    background: transparent;
    text-align: left;
    font-weight: 800;
    font-size: 1rem;
    color: #191c1d;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tw-page .tw-faq-q .material-symbols-outlined {
    flex-shrink: 0;
    color: #5d5e61;
    transition: transform 0.2s ease;
}

.tw-page .tw-faq-q[aria-expanded="true"] .material-symbols-outlined {
    transform: rotate(45deg);
}

.tw-page .tw-faq-a {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: #5d5e61;
    line-height: 1.75;
    font-size: 0.9375rem;
}

.tw-page .tw-faq-q[aria-expanded="true"] + .tw-faq-a {
    display: block;
}

/* —— CTA —— */
.tw-page .tw-cta-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.tw-page .tw-cta-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 3rem 2rem;
    border-radius: 3rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

@media (min-width: 768px) {
    .tw-page .tw-cta-banner {
        flex-direction: row;
        padding: 5rem;
        gap: 3rem;
    }
}

.tw-page .tw-cta-copy {
    position: relative;
    z-index: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .tw-page .tw-cta-copy {
        text-align: left;
    }
}

.tw-page .tw-cta-copy h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
}

.tw-page .tw-cta-copy p {
    margin: 0;
    max-width: 28rem;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.tw-page .tw-cta-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .tw-page .tw-cta-side {
        align-items: flex-start;
    }
}

.tw-page .tw-cta-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
    .tw-page .tw-cta-meta {
        justify-content: flex-start;
    }
}

.tw-page .tw-cta-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tw-page .tw-cta-meta .material-symbols-outlined {
    font-size: 1rem;
}

.tw-page .tw-cta-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.tw-page .tw-cta-glow {
    position: absolute;
    right: -5rem;
    bottom: -5rem;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(100px);
    pointer-events: none;
}

.tw-page .tw-cta-ring {
    position: absolute;
    top: 2.5rem;
    right: 25%;
    width: 10rem;
    height: 10rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.tw-page .material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    display: inline-block;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 991px) {
    .tw-page .tw-hero-section {
        min-height: auto;
    }

    .tw-page .tw-hero-deco {
        display: none;
    }

    .tw-page .tw-float-card {
        position: static;
        margin-top: 1rem;
        max-width: 16rem;
    }

    .tw-page .tw-bento-card--row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tw-page .tw-tier--hot {
        transform: none;
    }
}
