/* ==========================================================================
   HOMEPAGE MODULE (Scoped to .custom-home-page)
   Zero CLS, Mobile-Fluid Typography, GPU Accelerated
   ========================================================================== */
.custom-home-page {
    overflow-x: hidden;
    color: #0f172a;
    font-family: inherit;
    contain: paint; /* 隔绝重绘范围，提升页面滚屏帧率 */
}

.custom-home-page .home-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 1. Hero Banner */
.custom-home-page .home-hero-section {
    padding: 175px 0 95px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 580px;
    box-sizing: border-box;
}

.custom-home-page .hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.custom-home-page .hero-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.28);
}
/* 激活 PC 端双列栅格：左侧文案 1.25fr，右侧询盘卡片 0.85fr */
.custom-home-page .hero-grid,
.hero-grid {
    display: grid !important;
    grid-template-columns: 1.25fr 0.85fr !important;
    gap: 45px !important;
    align-items: center !important;
    width: 100% !important;
}

.custom-home-page .hero-text-col,
.custom-home-page .hero-card-col {
    min-width: 0 !important;
}
/* 流体字体：在手机上为 28px，大屏自适应至 42px，绝不发生长词撕裂折行 */
.custom-home-page .hero-text-col h1 {
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1.22;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px;
}

.custom-home-page .hero-text-col p {
    font-size: 16.5px;
    line-height: 1.65;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.custom-home-page .hero-action-btns {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.custom-home-page .btn-primary-orange {
    background: linear-gradient(135deg, #ff6b00 0%, #ff5e14 100%);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 94, 20, 0.4);
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform;
}

.custom-home-page .btn-primary-orange:hover {
    transform: translateY(-2px);
}

.custom-home-page .btn-outline-white {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    padding: 14px 26px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform;
}

.custom-home-page .btn-outline-white:hover {
    background: #ffffff;
    color: #0f172a !important;
}

.custom-home-page .quick-quote-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #0f172a;
}

.custom-home-page .quick-quote-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #0f172a;
}

.custom-home-page .quick-quote-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
}

.custom-home-page .card-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.custom-home-page .card-feature-list li {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.custom-home-page .card-feature-list li i {
    color: #059669;
    font-size: 15px;
}

.custom-home-page .btn-card-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ff5e14;
    color: #ffffff !important;
    padding: 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-home-page .btn-card-submit:hover {
    background: #e04b06;
}

/* 2. Trust Bar */
.custom-home-page .home-trust-bar {
    background: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.custom-home-page .trust-bar-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #475569;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.custom-home-page .trust-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    aspect-ratio: 1024 / 102; /* 锁定宽高比，防弱网环境 CLS 抖动 */
}

/* 3. About Section */
.custom-home-page .home-about-section {
    padding: 90px 0;
    background: #f8fafc;
}

.custom-home-page .about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 55px;
    align-items: center;
}

.custom-home-page .sub-title {
    font-size: 13px;
    font-weight: 800;
    color: #e04b06;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.custom-home-page .about-text h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 20px;
}

.custom-home-page .about-text p {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 16px;
}

.custom-home-page .about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.custom-home-page .hl-num {
    font-size: clamp(26px, 3.2vw, 32px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.custom-home-page .hl-txt {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.custom-home-page .about-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.custom-home-page .feat-box {
    background: #ffffff;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-home-page .feat-box:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.custom-home-page .feat-step {
    font-size: 22px;
    font-weight: 900;
    color: #ff5e14;
    line-height: 1;
    background: #fff5f0;
    padding: 10px 14px;
    border-radius: 6px;
    flex-shrink: 0;
}

.custom-home-page .feat-content h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.custom-home-page .feat-content p {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* 4. Services Matrix */
.custom-home-page .home-services-section {
    padding: 90px 0;
    background: #ffffff;
}

.custom-home-page .section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.custom-home-page .section-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px;
}

.custom-home-page .section-heading p {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.6;
}

.custom-home-page .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.custom-home-page .service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 35px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-home-page .service-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    background: #ffffff;
}

.custom-home-page .srv-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #0f172a;
    color: #ff5e14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.custom-home-page .service-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.custom-home-page .service-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}

.custom-home-page .srv-link {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.custom-home-page .srv-link:hover {
    color: #e04b06;
}

/* 5. Stats Counter Bar */
.custom-home-page .home-stats-section {
    background: #0f172a;
    padding: 60px 0;
    color: #ffffff;
}

.custom-home-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.custom-home-page .stat-num {
    font-size: clamp(30px, 3.5vw, 40px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
}

.custom-home-page .stat-lbl {
    font-size: 13.5px;
    color: #cbd5e1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 6. Testimonials */
.custom-home-page .home-testimonials-section {
    padding: 90px 0;
    background: #f8fafc;
}

.custom-home-page .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.custom-home-page .testi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 32px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.custom-home-page .testi-stars {
    color: #d97706;
    font-size: 17px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.custom-home-page .testi-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.custom-home-page .testi-card p {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin: 0 0 22px;
    flex-grow: 1;
    font-style: italic;
}

.custom-home-page .testi-author strong {
    display: block;
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 800;
}

.custom-home-page .testi-author span {
    display: block;
    font-size: 12.5px;
    color: #475569;
    margin-top: 2px;
}

/* 7. News & Guides */
.custom-home-page .home-news-section {
    padding: 90px 0;
    background: #ffffff;
}

.custom-home-page .section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.custom-home-page .section-heading-row h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.custom-home-page .btn-link-all {
    color: #e04b06;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.custom-home-page .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.custom-home-page .news-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    flex-direction: column;
}

.custom-home-page .news-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.custom-home-page .news-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.custom-home-page .news-date {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.custom-home-page .news-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.4;
}

.custom-home-page .news-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.custom-home-page .news-card h3 a:hover {
    color: #e04b06;
}

.custom-home-page .news-card p {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}

.custom-home-page .news-readmore {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.custom-home-page .news-readmore:hover {
    color: #e04b06;
}

/* 8. Bottom CTA */
.custom-home-page .home-bottom-cta {
    background: #0f172a;
    padding: 75px 0;
    color: #ffffff;
    text-align: center;
}

.custom-home-page .home-bottom-cta h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px;
}

.custom-home-page .home-bottom-cta p {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 30px;
}

.custom-home-page .bottom-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   HOMEPAGE RESPONSIVE BREAKPOINTS (全板块无缝响应式整合)
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. Hero 区域：彻底解锁高度与留白 */
    .home-hero-section,
    .custom-home-page .home-hero-section {
        padding: 85px 0 45px !important;
        min-height: auto !important;
    }

    .hero-grid,
    .custom-home-page .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .custom-home-page .hero-text-col h1 {
        font-size: 26px !important;
        line-height: 1.25 !important;
        margin: 0 0 14px !important;
    }

    .custom-home-page .hero-text-col p {
        font-size: 14.5px !important;
        line-height: 1.55 !important;
        margin-bottom: 20px !important;
    }

    /* 按钮在手机端转为全宽，便于触控 */
    .custom-home-page .hero-action-btns {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .custom-home-page .btn-primary-orange,
    .custom-home-page .btn-outline-white {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding: 12px 18px !important;
    }

    .custom-home-page .quick-quote-card {
        padding: 24px 18px !important;
    }

    /* 2. 补齐其他板块适配（防止误删导致 3 列挤扁） */
    .custom-home-page .about-grid {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }

    .custom-home-page .services-grid,
    .custom-home-page .testimonials-grid,
    .custom-home-page .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .custom-home-page .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    .custom-home-page .section-heading-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .custom-home-page .about-highlights {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* 移动端停用悬浮重绘动画，节省 GPU 开销 */
    .custom-home-page .service-card:hover,
    .custom-home-page .news-card:hover,
    .custom-home-page .feat-box:hover,
    .custom-home-page .testi-card:hover {
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }
}