/* ============================================
   XIAOMI AUTO - Global Stylesheet
   Website: xiaomisu7.store
   ============================================ */

/* CSS Custom Properties */
:root {
    --primary: #ff4d00;
    --primary-dark: #e04400;
    --primary-light: #ff6a2a;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --bg-white: #ffffff;
    --bg-light: #f7f7f7;
    --bg-lighter: #fafafa;
    --border-color: #e8e8e8;
    --border-light: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --radius: 6px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --header-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    /* Prevent mobile Safari rendering artifacts */
    pointer-events: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 40px;
}

.hero-content h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 36px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 2px solid var(--primary);
}

.hero-cta:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Hero for sub-pages */
.hero-sub {
    position: relative;
    height: 55vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-sub .hero-content h1 {
    font-size: clamp(30px, 5vw, 56px);
}

/* ============================================
   SECTION LAYOUTS
   ============================================ */
.section {
    padding: 100px 40px;
}

.section-alt {
    background: var(--bg-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header .accent-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 20px auto 0;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse>* {
    direction: ltr;
}

.content-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.content-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

.content-text ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.content-text ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.content-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.content-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
    border-radius: var(--radius-lg);
}


.content-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    min-height: 300px;
    aspect-ratio: auto;
}


/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   FEATURE GRID
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: #fff;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   CAR MODEL CARDS
   ============================================ */
.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.car-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.car-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.car-card-image {
    aspect-ratio: 16/10;
    background: var(--bg-light);
    overflow: hidden;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.car-card:hover .car-card-image img {
    transform: scale(1.05);
}

.car-card-body {
    padding: 28px;
}

.car-card-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.car-card-body .price {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.car-card-body p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.car-specs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.spec {
    font-size: 13px;
    color: var(--text-muted);
}

.spec strong {
    display: block;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   SAFETY COLUMNS
   ============================================ */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.safety-card {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.safety-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.safety-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.safety-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.safety-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   FAQ / Q&A SECTION
   ============================================ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-question::before {
    content: 'Q: ';
    color: var(--primary);
    font-weight: 700;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    padding-left: 28px;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    margin: 40px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.video-section video,
.video-section iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}


.video-section video,
.video-section iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px dashed var(--border-color);
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-block {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-block:last-child {
    border-bottom: none;
}

.contact-info-block h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-info-block p,
.contact-info-block a {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.6;
}

.qr-code-section {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.qr-code-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-white);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: var(--text-primary);
    color: #fff;
    padding: 80px 40px;
    text-align: center;
}

.cta-banner h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn-light {
    display: inline-block;
    padding: 16px 48px;
    background: #fff;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.cta-banner .btn-light:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-light);
    padding: 60px 40px 40px;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
}

/* ============================================
   PAGE CONTENT STYLES
   ============================================ */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 16px;
    color: var(--text-primary);
}

.page-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 36px 0 12px;
    color: var(--text-primary);
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 16px;
}

.page-content ul,
.page-content ol {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Two-column text layout */
.text-columns {
    columns: 2;
    column-gap: 48px;
}

/* Image gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.image-gallery>* {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.image-gallery .image-placeholder {
    min-height: 250px;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tr:hover td {
    background: var(--bg-lighter);
}

/* ============================================
   MILESTONES — 4-Column Grid
   ============================================ */
.milestones-section {
    padding: 0;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.milestone-column {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.milestone-column:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.milestone-col-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.milestone-col-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 10px;
}

.milestone-col-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.milestone-timeline {
    position: relative;
    flex: 1;
    padding-left: 18px;
    border-left: 2px solid var(--border-color);
}

.milestone-entry {
    position: relative;
    margin-bottom: 22px;
    padding-left: 18px;
}

.milestone-entry:last-child {
    margin-bottom: 0;
}

.milestone-entry::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary);
}

.milestone-date {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}

.milestone-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.milestone-text strong {
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .content-block {
        gap: 48px;
    }

    .feature-grid,
    .car-grid,
    .safety-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .milestone-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* ===========================
       移动端导航 — 无红线无灰线
       =========================== */

    /* Header: 纯白底，无边框，无滤镜，无动画 */
    .site-header {
        background: #fff;
        border: none;
        outline: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
        transition: none;
        will-change: auto;
    }

    .site-header.scrolled {
        box-shadow: none;
        border: none;
        outline: none;
    }

    .section {
        padding: 64px 24px;
    }

    .header-inner {
        padding: 0 24px;
    }

    /* 导航链接: 干掉一切装饰，只保留文字和点击变色 */
    .nav-links a {
        position: static;
        display: block;
        width: 100%;
        padding: 0 12px;
        min-height: 48px;
        line-height: 48px;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
        color: #333;
        background: transparent;
        border: none;
        outline: none;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }

    /* 杀死 ::after — 用 content:none 彻底移除 */
    .nav-links a::after {
        content: none !important;
        display: none !important;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after,
    .nav-links a:focus::after,
    .nav-links a:visited::after {
        content: none !important;
        display: none !important;
    }

    /* hover 也不要有下划线 */
    .nav-links a:hover {
        color: #333;
        text-decoration: none;
        background: transparent;
        border: none;
    }

    .nav-links a.active {
        color: #333;
        text-decoration: none;
        border: none;
    }

    .nav-links a.active:hover::after,
    .nav-links a:hover:hover::after {
        content: none !important;
        display: none !important;
    }

    /* 点击时: 文字变色 + 背景反馈 */
    .nav-links a:active {
        color: #ff4d00;
        background: #f5f5f5;
        text-decoration: none;
        border: none;
    }

    /* 下拉菜单: 无边框，阴影代替分隔 */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 8px 0;
        gap: 0;
        border: none;
        outline: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .nav-links.open {
        display: flex;
    }

    /* 列表项: 无边框，用底部分隔线代替 */
    .nav-links li {
        width: 100%;
        list-style: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    .nav-links li + li {
        border-top: 1px solid #f0f0f0;
    }

    /* 菜单按钮 */
    .menu-toggle {
        display: flex;
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        background: none;
        border: none;
        outline: none;
    }

    .content-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .content-block.reverse {
        direction: ltr;
    }

    .feature-grid,
    .car-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .hero-content {
        padding: 0 24px;
    }

    .text-columns {
        columns: 1;
    }

    .image-gallery {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .image-gallery>* {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
    }

    .milestone-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 48px 24px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .hero,
    .hero-sub {
        min-height: 500px;
    }
}

/* Hero image background (replaces video) */
.hero-image-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

/* 大屏幕 */
@media (min-width: 1440px) {
    .hero-image-bg {
        background-position: center 40%;
    }
}

/* 平板 */
@media (max-width: 1024px) {
    .hero-image-bg {
        background-position: center center;
        background-attachment: scroll;
    }

    .hero-sub.hero-image-bg {
        min-height: 45vh;
    }
}

/* 手机横屏 */
@media (max-width: 768px) {
    .hero-image-bg {
        background-position: center center;
        background-attachment: scroll;
    }

    .hero.hero-image-bg {
        min-height: 500px;
        height: 70vh;
    }

    .hero-sub.hero-image-bg {
        min-height: 350px;
        height: 50vh;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero.hero-image-bg {
        min-height: 420px;
        height: 60vh;
    }

    .hero-sub.hero-image-bg {
        min-height: 300px;
        height: 45vh;
    }
}

/* 画廊中视频和图片混合排列 */
/* 画廊统一尺寸 */
/* 画廊统一尺寸 — 强制所有格子等高 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
    align-items: stretch;
}

.image-gallery>* {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
}

.image-gallery .video-section {
    margin: 0;
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
}

.image-gallery .video-section video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.image-gallery .content-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    background: var(--bg-light);
}

.image-gallery .content-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: var(--bg-light);
}

.image-gallery .image-placeholder {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
}

.image-gallery .video-placeholder {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    margin: 0;
}

/* ====== Car Models Compare ====== */
.section-compare {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.section-compare .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text, #1a1a2e);
}

.section-compare .section-subtitle {
    color: var(--text-muted, #666);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

/* ── Cards ── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.card--orange::before {
    background: linear-gradient(135deg, #ff6d00, #ff9100);
}

.card--blue::before {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
}

.card--purple::before {
    background: linear-gradient(135deg, #7b1fa2, #ce93d8);
}

.card--orange:hover {
    border-color: #ff6d00;
}

.card--blue:hover {
    border-color: #1976d2;
}

.card--purple:hover {
    border-color: #7b1fa2;
}

.card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.card--orange .card-badge {
    background: rgba(255, 109, 0, .1);
    color: #ff6d00;
}

.card--blue .card-badge {
    background: rgba(25, 118, 210, .1);
    color: #1976d2;
}

.card--purple .card-badge {
    background: rgba(123, 31, 162, .1);
    color: #7b1fa2;
}

.card-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.card--orange .card-price {
    color: #ff6d00;
}

.card--blue .card-price {
    color: #1976d2;
}

.card--purple .card-price {
    color: #7b1fa2;
}

.card-specs {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.card-specs li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f5;
    font-size: 0.9rem;
}

.card-specs li:last-child {
    border-bottom: none;
}

.spec-label {
    color: #888;
}

.spec-value {
    font-weight: 600;
    text-align: right;
}

.highlight {
    color: #00c853;
    font-weight: 600;
}

.card-tagline {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid #e8e8ee;
}

/* ── Spec Table ── */
.table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e8e8ee;
    background: #fff;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 700px;
}

.table-wrap thead th {
    padding: 16px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    border-bottom: 2px solid #e8e8ee;
}

.table-wrap thead th:nth-child(2) {
    color: #ff6d00;
}

.table-wrap thead th:nth-child(3) {
    color: #1976d2;
}

.table-wrap thead th:nth-child(4) {
    color: #7b1fa2;
}

.table-wrap tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #f5f5fa;
}

.table-wrap tbody tr:hover {
    background: #fafafe;
}

.table-wrap tbody td:first-child {
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Audience Grid ── */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.audience-for {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.card--orange .audience-for {
    color: #ff6d00;
}

.card--blue .audience-for {
    color: #1976d2;
}

.card--purple .audience-for {
    color: #7b1fa2;
}

.audience-grid .card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── FAQ ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s;
}

.faq-item:hover {
    border-color: #ccc;
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    line-height: 1.5;
}

.faq-q::after {
    content: '+';
    font-size: 1.3rem;
    color: #aaa;
    transition: transform .25s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-q.active::after {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}

.faq-a.open {
    max-height: 400px;
    padding: 0 24px 20px;
}

.faq-a p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .section-compare {
        padding: 48px 16px 0;
    }

    .cards,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px 20px;
    }
}

/* ── Who Should Buy — car images ─ */
.audience-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* ─ Who Should Buy — video ── */
.audience-video-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.audience-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}
