/* ==========================================================================
   Rail Freight Page Dedicated Stylesheet (High-Performance, Scoped)
   Optimized for Core Web Vitals, 0ms TBT, Zero CLS, Mobile-First
   ========================================================================== */

.rail-freight-page-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: hidden;
}

.rf-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. HERO SECTION */
.rf-hero-section {
    position: relative;
    color: #ffffff;
    padding: 40px 0 65px;
    overflow: hidden;
    background-color: #0b1120;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rf-hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rf-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: 0.65;
}

.rf-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.85) 45%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 2;
}

.rf-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

.rf-breadcrumb-nav a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.rf-breadcrumb-nav a:hover {
    color: #ff5e14;
}

.rf-sep {
    font-size: 0.72rem;
    color: #64748b;
}

.rf-current {
    color: #fdba74;
    font-weight: 600;
}

.rf-hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 36px;
    align-items: center;
}

.rf-hero-content .luxury-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 94, 20, 0.4);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fdba74;
    margin-bottom: 18px;
}

.rf-hero-content .pulse-beacon {
    width: 8px;
    height: 8px;
    background-color: #ff5e14;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 94, 20, 0.7);
    animation: rfPulse 2s infinite;
}

@keyframes rfPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 94, 20, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 94, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 94, 20, 0); }
}

.rf-hero-content h1 {
    font-size: clamp(2rem, 3.8vw, 2.75rem);
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.rf-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 28px;
}

.rf-hero-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b2b 0%, #ff5e14 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 94, 20, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 20, 0.45);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

.rf-hero-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 30px 26px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3);
}

.rf-stat-card-inner h3 {
    font-size: 1.22rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
}

/* 规避文字错位：包裹容器与锁定图标 */
.rf-quick-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.rf-quick-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.rf-quick-bullets li i {
    color: #10b981;
    font-size: 1.05rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.rf-bullet-content {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.55;
    flex-grow: 1;
}

.rf-bullet-content strong {
    color: #ffffff;
    font-weight: 700;
    margin-right: 4px;
}

.rf-card-callout {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.rf-card-callout a {
    color: #fdba74;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 2. ROUTE & HUB STRIP */
.rf-carrier-strip {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 22px 0;
}

.rf-strip-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #64748b;
    margin: 0 0 14px;
}

.rf-carrier-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.carrier-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.carrier-tag i {
    color: #ff5e14;
}

/* 3. SECTION HEADERS */
.section-header-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 46px;
}

.sub-heading-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff5e14;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.section-header-center h2 {
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.25;
}

.section-header-center p {
    font-size: 1.02rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* 4. SERVICES GRID (FCL, LCL, Carriage) */
.rf-services-section {
    padding: 70px 0 75px;
}

.rf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.rf-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rf-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px -6px rgba(15, 23, 42, 0.1);
}

.rf-service-card.highlight-card {
    border-color: #ff5e14;
    box-shadow: 0 10px 24px -4px rgba(255, 94, 20, 0.12);
}

.rf-card-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.rf-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rf-service-card:hover .rf-card-img {
    transform: scale(1.04);
}

.rf-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background: #ecfdf5;
    color: #047857;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.lcl-badge  { background: #e0f2fe; color: #0369a1; }
.spec-badge { background: #fef9c3; color: #a16207; }

.rf-card-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rf-card-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.rf-card-body p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 18px;
}

.rf-card-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    flex-grow: 1;
}

.rf-card-checklist li {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 9px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rf-card-checklist li i {
    color: #10b981;
    font-size: 0.82rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #0f172a;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}

.btn-card-action:hover {
    background: #1e293b;
}

.btn-orange-action {
    background: #ff5e14;
}

.btn-orange-action:hover {
    background: #e04b06;
}

/* 摄影实景横幅 (撑满 1240px 容器) */
.rf-visual-banner {
    margin-top: 40px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.rf-visual-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.rf-visual-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 0.6) 65%, transparent 100%);
    padding: 24px 28px;
    color: #ffffff;
}

.caption-title {
    font-weight: 700;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.caption-title i {
    color: #ff5e14;
}

.caption-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-top: 6px;
    line-height: 1.5;
}

/* 5. CORRIDORS MATRIX TABLE */
.rf-corridors-section {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 70px 0 75px;
    content-visibility: auto;
}

.rf-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.rf-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.rf-specs-table th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 2px solid #334155;
    white-space: nowrap;
}

.rf-specs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.5;
    background: #ffffff;
}

.rf-specs-table tr.highlight-row td {
    background: #fffbf7;
}

.rf-specs-table tr:hover td {
    background: #f8fafc;
}

/* 6. 5 CORE PILLARS */
.rf-pillars-section {
    padding: 75px 0 80px;
    content-visibility: auto;
}

.rf-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rf-pillar-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px 22px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.pillar-icon {
    width: 46px;
    height: 46px;
    background: #fff7ed;
    color: #ff5e14;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.rf-pillar-box h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.rf-pillar-box p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

/* 7. WORKFLOW */
.rf-workflow-section {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 70px 0 75px;
    content-visibility: auto;
}

.rf-steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.rf-step-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
}

.step-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1;
}

.rf-step-item h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.rf-step-item p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

/* 8. ZERO JS FAQ ACCORDION */
.rf-faq-section {
    padding: 75px 0 80px;
    content-visibility: auto;
}

.rf-faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.rf-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.rf-faq-item[open] {
    border-color: #fdba74;
}

.rf-faq-header {
    list-style: none;
    padding: 18px 22px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.rf-faq-header::-webkit-details-marker {
    display: none;
}

.rf-faq-arrow {
    font-size: 0.85rem;
    color: #ff5e14;
    transition: transform 0.2s ease;
}

.rf-faq-item[open] .rf-faq-arrow {
    transform: rotate(45deg);
}

.rf-faq-content {
    padding: 0 22px 20px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: #475569;
}

.rf-faq-content p {
    margin: 0;
}

/* 9. BOTTOM CTA */
.rf-cta-section {
    padding: 0 0 75px;
    content-visibility: auto;
}

.rf-cta-card {
    background: radial-gradient(circle at 15% 50%, #1e293b 0%, #0b1120 100%);
    border-radius: 18px;
    padding: 55px 36px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.25);
}

.rf-cta-card h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.3rem);
    font-weight: 800;
    margin: 0 0 14px;
    color: #ffffff;
}

.rf-cta-card p {
    font-size: 1.08rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.rf-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .rf-hero-grid {
        grid-template-columns: 1fr;
    }
    .rf-services-grid {
        grid-template-columns: 1fr;
    }
    .rf-pillars-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rf-steps-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .rf-hero-section {
        padding: 30px 0 50px;
    }
    .rf-visual-img {
        height: 220px;
    }
    .rf-visual-caption {
        padding: 16px 18px;
    }
    .caption-title {
        font-size: 0.95rem;
    }
    .caption-desc {
        font-size: 0.82rem;
    }
    .rf-pillars-grid {
        grid-template-columns: 1fr;
    }
    .rf-steps-row {
        grid-template-columns: 1fr;
    }
    .rf-cta-card {
        padding: 38px 20px;
    }
}