/* CN Henry Auto — homepage layout & mobile */
.home-legacy { display: none !important; }

.site-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
}
.logo-text { line-height: 1.25; }
.logo-title-en {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-2, #f7c531);
    letter-spacing: 0.02em;
}
.logo-title-zh {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
}
@media (max-width: 768px) {
    .logo-title-en { font-size: 11px; }
    .logo-title-zh { display: none; }
    .site-logo-img { width: 40px; height: 40px; }
}

.export-hero {
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 55%, #0d1f35 100%);
    color: #fff;
    overflow: hidden;
}
.export-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,22,40,0.35) 0%, rgba(10,22,40,0.85) 100%);
    pointer-events: none;
    z-index: 1;
}
.export-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 40px;
}
.export-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    min-height: 420px;
}
.export-hero-copy h1 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.export-hero-copy h1 span {
    color: var(--accent-2, #f7c531);
}
.export-hero-copy .lead {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    margin-bottom: 22px;
    max-width: 520px;
}
.export-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.export-hero-tags span {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}
.export-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.export-hero-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.export-hero-cta .btn-primary {
    background: var(--race-red, #e63946);
    color: #fff;
    box-shadow: 0 4px 16px rgba(230,57,70,0.35);
}
.export-hero-cta .btn-outline {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
}
.export-hero-cta a:hover { transform: translateY(-2px); }
.export-hero-media {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.export-hero-media video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
}

.export-trust {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.export-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.export-trust-item {
    text-align: center;
    padding: 12px 8px;
}
.export-trust-item strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--race-red, #e63946);
    line-height: 1.1;
}
.export-trust-item span {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: block;
}

.export-cat-nav {
    background: var(--bg-light, #f8f9fa);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.export-cat-nav .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.export-cat-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.export-cat-scroll::-webkit-scrollbar { display: none; }
.export-cat-nav [data-lang] { display: none !important; }
body:not([class*="lang-"]) .export-cat-nav [data-lang="en"],
body.lang-en .export-cat-nav [data-lang="en"] { display: inline-flex !important; }
body.lang-zh .export-cat-nav [data-lang="zh"] { display: inline-flex !important; }
body.lang-ru .export-cat-nav [data-lang="ru"] { display: inline-flex !important; }
body.lang-ar .export-cat-nav [data-lang="ar"] { display: inline-flex !important; }
body.lang-fr .export-cat-nav [data-lang="fr"] { display: inline-flex !important; }
body.lang-es .export-cat-nav [data-lang="es"] { display: inline-flex !important; }
.export-cat-chip {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.export-cat-chip:hover,
.export-cat-chip:focus {
    border-color: var(--race-red);
    color: var(--race-red);
}

/* 二手车定制出口提示 */
.export-used-nav-note {
    margin: 14px 0 0;
    padding: 12px 16px;
    background: linear-gradient(90deg, #fff8e6 0%, #fff3cd 100%);
    border-left: 4px solid var(--race-red, #e63946);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #8a4b00;
    line-height: 1.55;
}
.export-used-nav-note strong {
    color: var(--race-red, #e63946);
    font-weight: 700;
}
.used-export-banner {
    margin: 0 0 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--accent, #c9a227);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.2);
}
.used-export-banner-title {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: var(--accent, #f7c531);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.used-export-banner-text {
    font-size: clamp(14px, 1.8vw, 16px);
    color: #fff;
    line-height: 1.65;
    max-width: 920px;
    margin: 0 auto;
}
.used-export-banner-text strong {
    color: var(--accent, #f7c531);
}
.used-export-banner-cta {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 22px;
    background: var(--race-red, #e63946);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}
.used-export-banner-cta:hover {
    background: #ff8f00;
}

.export-brands {
    padding: 36px 0;
    background: #fff;
}
.export-brands-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    max-width: 900px;
    margin: 16px auto 0;
}
.export-brand-pill {
    padding: 8px 16px;
    background: #f4f5f7;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.03em;
}

.export-section {
    padding: 56px 0;
    scroll-margin-top: 120px;
}
.export-section .section-title h2 {
    font-size: clamp(22px, 3vw, 28px);
}
.export-section .section-sub {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: -36px auto 32px;
    max-width: 560px;
}

.export-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.export-why-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.export-why-card:hover {
    border-color: var(--race-red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.export-why-card .ico {
    font-size: 32px;
    margin-bottom: 12px;
}
.export-why-card h3 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 6px;
}
.export-why-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.export-process-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    counter-reset: step;
}
.export-process-item {
    text-align: center;
    padding: 20px 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    position: relative;
}
.export-process-item::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}
.export-process-item h3 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 6px;
}
.export-process-item p {
    font-size: 12px;
    color: #666;
    line-height: 1.45;
}

.export-logistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.export-log-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
}
.export-log-card h3 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 8px;
}
.export-log-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.export-log-card li {
    font-size: 13px;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.export-log-card li:last-child { border: none; }

.export-faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.export-faq-item {
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}
.export-faq-q {
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    background: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.export-faq-a {
    padding: 0 18px 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: none;
}
.export-faq-item.open .export-faq-a { display: block; }
.export-faq-item.open .export-faq-q span:last-child { transform: rotate(45deg); }

.export-cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2d4a 100%);
    color: #fff;
    text-align: center;
    padding: 48px 20px;
}
.export-cta-band h2 {
    font-size: clamp(20px, 3vw, 26px);
    margin-bottom: 10px;
}
.export-cta-band p {
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 15px;
}
.export-cta-band .export-hero-cta {
    justify-content: center;
}

/* Homepage inventory — always expanded, never collapsed */
.home-inventory-section .vehicle-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    overflow: visible !important;
    max-height: none !important;
    min-height: 120px;
    width: 100%;
}
.home-inventory-section .vehicle-card {
    min-height: 320px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.home-inventory-section .vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    border-color: var(--race-red, #e63946);
}
.home-inventory-section .vehicle-image {
    height: 200px !important;
    min-height: 200px;
    background: #eef1f5 !important;
}
.home-inventory-section .vehicle-image::after {
    display: none !important;
}
.home-inventory-section .vehicle-card {
    display: block !important;
    visibility: visible !important;
}
.home-inventory-count {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: -24px 0 20px;
}
/* Category listing pages (new / used / pickup) */
.category-page .brand-section { margin-bottom: 48px; }
.category-page .brand-header {
    background: linear-gradient(135deg, var(--primary, #0a1628) 0%, #1a2d4a 100%);
    color: #fff;
    padding: 20px 28px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.category-page .brand-icon { font-size: 32px; }
.category-page .brand-name { font-size: 20px; font-weight: 600; }
.category-page .brand-count { font-size: 13px; opacity: 0.75; margin-top: 4px; }
.category-page .vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.category-page .vehicle-image img {
    opacity: 1 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-inventory-empty {
    text-align: center;
    padding: 32px 16px;
    color: #666;
    font-size: 15px;
    grid-column: 1 / -1;
}

/* Product grids — sharp images (no parent fade) */
.vehicle-image,
.pickup-image {
    opacity: 1 !important;
}
.vehicle-image img,
.pickup-image img,
.home-inventory-section img {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}
main .section {
    padding: 48px 0;
}
main .section::before { display: none; }
.vehicle-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    overflow: visible;
    max-height: none;
}
.vehicle-info { padding: 16px; }
.vehicle-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.vehicle-spec { font-size: 12px; color: #666; margin-bottom: 12px; }
.price-section {
    background: var(--primary);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
}
.price-label { font-size: 10px; color: rgba(255,255,255,0.7); text-transform: uppercase; }
.price-value { font-size: 22px; font-weight: 700; color: var(--accent-2, #f7c531); }
.inquiry-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--race-red);
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.view-all-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    gap: 10px;
}
.mobile-sticky-cta a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.mobile-sticky-cta .msc-wa {
    background: #25d366;
    color: #fff;
}
.mobile-sticky-cta .msc-quote {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 992px) {
    .export-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 24px;
    }
    .export-hero-media { order: -1; }
    .export-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .export-why-grid { grid-template-columns: repeat(2, 1fr); }
    .export-process-row { grid-template-columns: repeat(2, 1fr); }
    .export-logistics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .export-cat-nav { top: 56px; }
    .export-section { padding: 40px 0; scroll-margin-top: 100px; }
    .export-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .export-trust-item strong { font-size: 22px; }
    .vehicle-grid:not(.home-inventory-section .vehicle-grid) {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .vehicle-image { height: 120px; }
    .vehicle-name { font-size: 13px; }
    .price-value { font-size: 18px; }
    .inquiry-btn { padding: 10px; font-size: 12px; min-height: 44px; }
    .mobile-sticky-cta { display: flex; }
    body { padding-bottom: 72px; }
    .floating-contact { bottom: 80px; }
    .export-why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .export-process-row { grid-template-columns: 1fr; }
    .section-title { margin-bottom: 28px; }
    .section-title h2 { font-size: 22px; }
    #homepageVideo { max-height: 220px; width: 100%; }
    .export-hero-media video { border-radius: 8px; }
}

/* Category pages (used-cars filters) */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}
.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--primary, #1a1a2e);
}
.filter-btn.active {
    background: var(--primary, #1a1a2e);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 992px) {
    .home-inventory-section .vehicle-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    /* Homepage inventory: 2 columns on tablet/phone (overrides desktop 5-col) */
    .home-inventory-section .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .home-inventory-section .vehicle-image {
        height: 130px !important;
        min-height: 130px !important;
    }
    .home-inventory-section .vehicle-card {
        min-height: 0 !important;
    }
    .home-inventory-section .vehicle-name { font-size: 12px; line-height: 1.35; }
    .home-inventory-section .price-value { font-size: 17px; }
    .home-inventory-count { font-size: 12px; margin: -16px 0 14px; }

    .export-used-nav-note {
        font-size: 12px;
        padding: 10px 12px;
        margin-top: 10px;
        line-height: 1.5;
    }
    .used-export-banner {
        padding: 16px 14px;
        margin-bottom: 20px;
    }
    .used-export-banner-title { font-size: 17px; }
    .used-export-banner-text { font-size: 13px; line-height: 1.55; }
    .used-export-banner-cta {
        display: block;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .category-page .container { padding: 0 16px; }
    .category-page .hero { padding: 48px 0; }
    .category-page .hero h1 { font-size: 26px; }
    .category-page .hero-stats { gap: 24px; }
    .category-page .section { padding: 48px 0; }
    .category-page .brand-header {
        padding: 14px 16px;
        flex-wrap: wrap;
    }
    .category-page .brand-name { font-size: 17px; }
    .category-page .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .category-page .vehicle-image { height: 130px; }
    .category-page .vehicle-name { font-size: 13px; }
    .category-page .vehicle-spec { font-size: 11px; margin-bottom: 10px; padding-bottom: 10px; }
    .category-page .price-value { font-size: 18px; }
    .category-page .inquiry-btn { padding: 11px; font-size: 12px; }
    .category-page .floating-contact { bottom: 82px; right: 12px; }
    body.category-page { padding-bottom: 72px; }
    body.category-page .mobile-sticky-cta { display: flex; }

    .about-company-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }
    .about-company-card img { width: 72px; height: 72px; margin: 0 auto; }
    .about-content { padding: 24px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .export-hero-inner { padding: 0 16px 32px; }
    .export-hero-copy h1 { font-size: 26px; }
    .export-cat-nav { padding: 12px 0; }
    .export-cat-scroll { gap: 8px; }

    /* Sticky CTA: show one label per language */
    .mobile-sticky-cta [data-lang] { display: none !important; }
    body.lang-zh .mobile-sticky-cta [data-lang="zh"],
    body.lang-en .mobile-sticky-cta [data-lang="en"],
    body.lang-ru .mobile-sticky-cta [data-lang="ru"],
    body.lang-ar .mobile-sticky-cta [data-lang="ar"],
    body.lang-fr .mobile-sticky-cta [data-lang="fr"],
    body.lang-es .mobile-sticky-cta [data-lang="es"] {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    body:not([class*="lang-"]) .mobile-sticky-cta [data-lang="en"] {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home-inventory-section .vehicle-grid {
        grid-template-columns: 1fr !important;
    }
    .home-inventory-section .vehicle-image {
        height: 180px !important;
        min-height: 180px !important;
    }
    .category-page .vehicle-grid {
        grid-template-columns: 1fr !important;
    }
    .category-page .vehicle-image { height: 200px; }
    .vehicle-grid { grid-template-columns: 1fr; }
    .export-hero-copy .lead { font-size: 14px; }
    .export-hero-cta { flex-direction: column; }
    .export-hero-cta a { width: 100%; text-align: center; box-sizing: border-box; }
    .export-why-grid { grid-template-columns: 1fr; }
    .export-trust-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .lang-switch { top: auto; bottom: 88px; right: 8px; z-index: 997; }
}
