/* =========================================================
   山海房车 SHANHAI RV · 移动端订购页
   风格：皇冠假日式（深海军蓝 + 金色 + 衬线标题）× 汽车选配器
   ========================================================= */

:root {
    --navy: #1a2233;
    --navy-deep: #121826;
    --ink: #2a2f3a;
    --gold: #c9a25e;
    --gold-light: #e3c98f;
    --cream: #f7f4ee;
    --white: #ffffff;
    --gray: #8a8f9a;
    --line: rgba(201, 162, 94, .35);
    --radius: 14px;
    --shadow: 0 8px 28px rgba(18, 24, 38, .10);
    --serif: "Noto Serif SC", "Songti SC", serif;
    --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    padding-bottom: calc(96px + env(safe-area-inset-bottom)); /* 底部固定栏 */
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

button { font-family: inherit; cursor: pointer; }

/* ---------- 金色分割线 ---------- */
.gold-divider {
    width: 56px; height: 2px; margin: 14px auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- 顶部进度导航 ---------- */
.topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(18, 24, 38, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 94, .25);
}
.topnav-inner {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 720px; margin: 0 auto;
}
.topnav-inner::-webkit-scrollbar { display: none; }
.nav-item {
    flex: 1 0 auto; min-width: 64px;
    display: flex; flex-direction: column; align-items: center;
    padding: 10px 12px 8px;
    color: rgba(255, 255, 255, .65);
    text-decoration: none; font-size: 13px; letter-spacing: .05em;
    border-bottom: 2px solid transparent;
    transition: color .25s, border-color .25s;
}
.nav-item i {
    font-style: normal; font-family: var(--serif);
    font-size: 11px; color: var(--gold); opacity: .8;
}
.nav-item.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
    position: relative; height: 100svh; min-height: 560px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: var(--navy-deep) url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1600&q=70") center/cover no-repeat;
    animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.hero-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18,24,38,.55) 0%, rgba(18,24,38,.35) 45%, rgba(18,24,38,.85) 100%);
}
.hero-content { position: relative; padding: 0 24px; }
.hero-eyebrow {
    font-size: 12px; letter-spacing: .35em; color: var(--gold-light);
    margin-bottom: 14px;
}
.hero-title {
    font-family: var(--serif); font-weight: 900;
    font-size: clamp(42px, 12vw, 72px);
    letter-spacing: .12em;
}
.hero-slogan {
    font-family: var(--serif); font-size: clamp(16px, 4.5vw, 22px);
    letter-spacing: .2em; color: rgba(255, 255, 255, .92);
}
.hero-sub {
    margin-top: 10px; font-size: 13px;
    color: rgba(255, 255, 255, .6); letter-spacing: .15em;
}
.hero-cta {
    display: inline-block; margin-top: 34px;
    padding: 13px 44px; min-height: 48px; line-height: 22px;
    border: 1px solid var(--gold); border-radius: 999px;
    color: var(--gold-light); text-decoration: none;
    font-size: 15px; letter-spacing: .25em;
    transition: background .25s, color .25s;
}
.hero-cta:active { background: var(--gold); color: var(--navy-deep); }
.hero-scrollhint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px;
}
.hero-scrollhint span {
    position: absolute; top: 7px; left: 50%; margin-left: -1.5px;
    width: 3px; height: 8px; border-radius: 2px; background: var(--gold);
    animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60% { transform: translateY(14px); opacity: 0; }
}

/* ---------- 区块通用 ---------- */
.section {
    padding: 64px 20px;
    max-width: 720px; margin: 0 auto;
    scroll-margin-top: 64px;
}
.section-dark {
    max-width: none;
    background: var(--navy);
    color: rgba(255, 255, 255, .85);
}
.section-dark > * { max-width: 680px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 36px; }
.section-no {
    font-family: var(--serif); font-size: 12px;
    letter-spacing: .4em; color: var(--gold);
}
.section-title {
    font-family: var(--serif); font-weight: 700;
    font-size: clamp(26px, 7vw, 34px);
    letter-spacing: .1em; margin: 8px 0 4px;
    color: inherit;
}
.section:not(.section-dark) .section-title { color: var(--navy); }
.section-head::after {
    content: ""; display: block;
    width: 44px; height: 2px; margin: 14px auto 12px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-desc { font-size: 14px; color: var(--gray); }
.section-dark .section-desc { color: rgba(255, 255, 255, .55); }

/* ---------- 车型卡片 ---------- */
.model-list { display: flex; flex-direction: column; gap: 24px; }
.model-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: border-color .25s, transform .25s;
    cursor: pointer;
}
.model-card:active { transform: scale(.985); }
.model-media { position: relative; height: 200px; background: var(--navy); }
.model-badge {
    position: absolute; top: 14px; left: 14px;
    padding: 4px 14px; border-radius: 999px;
    background: rgba(18, 24, 38, .72); color: var(--gold-light);
    font-size: 12px; letter-spacing: .2em;
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
}
.model-body { padding: 20px; }
.model-row {
    display: flex; align-items: baseline; justify-content: space-between;
}
.model-name {
    font-family: var(--serif); font-size: 26px; font-weight: 700;
    color: var(--navy); letter-spacing: .06em;
}
.model-price { color: var(--gold); font-size: 26px; font-weight: 700; font-family: var(--serif); }
.model-price em { font-style: normal; font-size: 14px; margin-right: 2px; }
.model-price span { font-size: 13px; font-weight: 400; color: var(--gray); margin-left: 3px; }
.model-tagline { margin-top: 4px; font-size: 14px; color: var(--gray); }
.model-tags {
    list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 14px;
}
.model-tags li {
    padding: 4px 12px; border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px; color: var(--navy); background: rgba(201, 162, 94, .08);
}
.model-choose {
    margin-top: 16px; padding: 11px 0; min-height: 44px;
    text-align: center; border-radius: 10px;
    border: 1px solid var(--gold); color: var(--gold);
    font-size: 14px; letter-spacing: .2em;
    transition: background .25s, color .25s;
}
.model-card.selected { border-color: var(--gold); }
.model-card.selected .model-choose {
    background: linear-gradient(135deg, var(--gold), #b08a45);
    color: var(--white);
}
.model-card.selected .model-choose::before { content: "✓ "; }

/* ---------- 外观颜色 ---------- */
.color-list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.color-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 8px; min-height: 44px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px; color: rgba(255, 255, 255, .85);
    transition: border-color .25s, background .25s;
}
.swatch {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--c);
    border: 2px solid rgba(255, 255, 255, .25);
    box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .18);
}
.color-name { font-size: 13px; letter-spacing: .08em; }
.color-item.selected {
    border-color: var(--gold);
    background: rgba(201, 162, 94, .12);
}
.color-item.selected .swatch { border-color: var(--gold); }
.color-item.selected .color-name { color: var(--gold-light); }

/* ---------- 内饰风格 ---------- */
.interior-list { display: flex; flex-direction: column; gap: 18px; }
.interior-card {
    position: relative; height: 160px; border-radius: var(--radius);
    overflow: hidden; border: 2px solid transparent;
    background: var(--navy); text-align: left;
    box-shadow: var(--shadow);
    transition: border-color .25s;
}
.interior-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(18,24,38,.78) 0%, rgba(18,24,38,.15) 70%);
}
.interior-name {
    position: absolute; left: 20px; bottom: 44px; z-index: 1;
    font-family: var(--serif); font-size: 21px; font-weight: 700;
    color: var(--white); letter-spacing: .1em;
}
.interior-desc {
    position: absolute; left: 20px; bottom: 20px; z-index: 1;
    font-size: 12px; color: rgba(255, 255, 255, .7); letter-spacing: .1em;
}
.interior-card.selected { border-color: var(--gold); }
.interior-card.selected::before {
    content: "✓ 已选择"; position: absolute; top: 14px; right: 14px; z-index: 1;
    padding: 4px 12px; border-radius: 999px;
    background: var(--gold); color: var(--navy-deep);
    font-size: 12px; letter-spacing: .1em;
}

/* ---------- 选装包 ---------- */
.package-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.package-card {
    position: relative; padding: 18px 16px; min-height: 44px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px; text-align: left;
    color: rgba(255, 255, 255, .85);
    transition: border-color .25s, background .25s;
}
.package-name {
    display: block; font-family: var(--serif);
    font-size: 16px; font-weight: 700; letter-spacing: .06em;
    padding-right: 26px;
}
.package-desc {
    display: block; margin-top: 6px;
    font-size: 12px; color: rgba(255, 255, 255, .55);
}
.package-check {
    position: absolute; top: 16px; right: 14px;
    width: 20px; height: 20px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    transition: background .25s, border-color .25s;
}
.package-card.selected {
    border-color: var(--gold);
    background: rgba(201, 162, 94, .12);
}
.package-card.selected .package-name { color: var(--gold-light); }
.package-card.selected .package-check {
    background: var(--gold); border-color: var(--gold);
}
.package-card.selected .package-check::after {
    content: "✓"; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--navy-deep);
}

/* ---------- 交付门店 ---------- */
.store-card {
    background: var(--navy); color: rgba(255, 255, 255, .85);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.store-body { padding: 28px 24px; }
.store-name {
    font-family: var(--serif); font-size: 22px; font-weight: 700;
    color: var(--gold-light); letter-spacing: .08em;
}
.store-addr {
    margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .65);
    letter-spacing: .05em;
}
.store-points {
    list-style: none; margin-top: 18px;
    display: flex; flex-direction: column; gap: 10px;
}
.store-points li {
    position: relative; padding-left: 20px; font-size: 14px;
}
.store-points li::before {
    content: ""; position: absolute; left: 0; top: 9px;
    width: 8px; height: 8px; transform: rotate(45deg);
    background: var(--gold);
}

/* ---------- 页脚 ---------- */
.footer {
    background: var(--navy-deep); color: rgba(255, 255, 255, .55);
    text-align: center; padding: 44px 20px 32px;
}
.footer-brand {
    font-family: var(--serif); font-size: 18px; font-weight: 700;
    letter-spacing: .2em; color: var(--gold-light);
}
.footer-line { font-size: 13px; letter-spacing: .15em; }
.footer-icp { margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .35); }

/* ---------- 底部固定选配栏 ---------- */
.dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(18, 24, 38, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 162, 94, .35);
}
.dock-info { flex: 1; min-width: 0; }
.dock-model {
    font-family: var(--serif); font-size: 15px; font-weight: 700;
    color: var(--white); letter-spacing: .05em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dock-price { font-size: 14px; color: var(--gold-light); font-weight: 700; }
.dock-note { font-size: 11px; color: rgba(255, 255, 255, .45); }
.dock-cta {
    flex-shrink: 0;
    padding: 12px 26px; min-height: 46px; line-height: 22px;
    border-radius: 999px; text-decoration: none;
    background: linear-gradient(135deg, var(--gold), #b08a45);
    color: var(--navy-deep); font-size: 15px; font-weight: 700;
    letter-spacing: .15em;
    box-shadow: 0 4px 14px rgba(201, 162, 94, .35);
}
.dock-cta:active { filter: brightness(1.1); }

/* ---------- 桌面端适配 ---------- */
@media (min-width: 768px) {
    .model-list { flex-direction: row; }
    .model-card { flex: 1; }
    .model-media { height: 170px; }
    .interior-list { flex-direction: row; }
    .interior-card { flex: 1; height: 200px; }
    .package-grid { grid-template-columns: repeat(4, 1fr); }
    .color-list { grid-template-columns: repeat(6, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg, .hero-scrollhint span { animation: none; }
}
