/* 车行天下 — National Geographic × Apple */

:root {
    --bg: #0a0a0a;
    --bg-elevated: #141414;
    --bg-card: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #c8c8cc;
    --text-muted: #aeaeb2;
    --text-on-accent: #fffef5;
    --accent: #f5a623;
    --accent-hover: #ffc04d;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(20, 20, 20, 0.72);
    --radius: 16px;
    --radius-lg: 24px;
    --font-serif: "Playfair Display", "Noto Serif SC", Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
    --max-width: 1200px;
    --nav-height: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    background-color: var(--bg);
    color: var(--text);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
strong, b {
    color: var(--text);
}

p, li, label {
    color: var(--text-secondary);
}

button,
input,
select,
textarea {
    font-family: inherit;
    color: var(--text);
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

/* 防止 Chrome 自动深色模式把文字改成黑色 */
.section,
.section-inner,
.route-card-body,
.detail-inner,
.detail-body,
.footer,
.stat-item,
.spec-item,
.nav {
    color: var(--text);
}

a:link {
    color: inherit;
}

a:visited {
    color: inherit;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ── Navigation ── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 48px);
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

/* ── Hero ── */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 clamp(20px, 5vw, 48px) clamp(60px, 10vh, 100px);
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    font-weight: 400;
    margin-bottom: 36px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-on-accent);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Sections ── */

.section {
    padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 48px);
}

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

.section-header {
    margin-bottom: 56px;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
}

.section-desc {
    margin-top: 16px;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ── Feature Grid (Homepage sections) ── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    group: feature;
}

.feature-card.large {
    grid-row: span 2;
    aspect-ratio: auto;
}

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

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

.feature-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: background 0.3s;
}

.feature-card:hover .feature-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.25) 100%);
}

.feature-card-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.feature-card-title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.feature-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.feature-card-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── Stats Bar ── */

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 80px;
}

.stat-item {
    background: var(--bg-elevated);
    padding: 36px 24px;
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

/* ── Vehicle Spotlight ── */

.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.spotlight-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.feature-card img {
    object-position: center;
}

.spotlight-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.spec-item {
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.spec-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

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

/* ── Route Cards (Travel page) ── */

.route-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
    font-weight: 600;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.route-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s;
}

.route-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.3);
}

.route-card-image {
    height: 200px;
    overflow: hidden;
}

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

.route-card:hover .route-card-image img {
    transform: scale(1.06);
}

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

.route-card-region {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.route-card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.route-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.route-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.route-meta-item strong {
    color: var(--text);
    font-weight: 600;
}

.route-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.route-tag {
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 12px;
    background: rgba(245, 166, 35, 0.18);
    color: #ffd080;
    border: 1px solid rgba(245, 166, 35, 0.25);
}

/* ── Quote Banner ── */

.quote-banner {
    position: relative;
    padding: clamp(80px, 12vw, 120px) clamp(20px, 5vw, 48px);
    text-align: center;
    overflow: hidden;
}

.quote-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
}

.quote-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.quote-author {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.1em;
}

/* ── Footer ── */

.footer {
    padding: 64px clamp(20px, 5vw, 48px) 40px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.footer-brand span {
    color: var(--accent);
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

/* ── Page Hero (subpages) ── */

.page-hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 0;
}

.page-hero .hero-content {
    padding-bottom: 60px;
}

.page-hero .hero-title {
    font-size: clamp(40px, 6vw, 72px);
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.large {
        grid-row: span 1;
        aspect-ratio: 4 / 3;
    }

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

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

    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-toggle {
        display: block;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        justify-content: center;
    }
}

/* ── Animations ── */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeUp 0.8s ease backwards;
}

.hero-eyebrow { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.5s; }
