/* ============================================================
   比亚迪门店营销官网  home.css
   品牌红 #e60012 · 深色质感 · 移动优先（桌面端居中展示）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --red: #e60012;
  --red-dark: #b3000e;
  --red-soft: #fff1f0;
  --ink: #191919;
  --ink-2: #555;
  --ink-3: #999;
  --bg: #f3f4f6;
  --card: #fff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0,0,0,.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #e6e7ea;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0,0,0,.12);
  padding-bottom: 84px;
}

@media (min-width: 721px) {
  .notice-bar { max-width: 720px; margin: 0 auto; }
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- ① 公告栏 ---------- */
.notice-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: linear-gradient(90deg, #b3000e, #e60012 55%, #f22318);
  color: #fff;
  box-shadow: 0 2px 10px rgba(230,0,18,.35);
}
.notice-icon { width: 18px; height: 18px; flex-shrink: 0; animation: shake 2.4s infinite; }
@keyframes shake { 0%,92%,100%{transform:rotate(0)} 94%{transform:rotate(-14deg)} 96%{transform:rotate(14deg)} 98%{transform:rotate(-8deg)} }
.notice-viewport { flex: 1; overflow: hidden; }
.notice-track {
  white-space: nowrap; display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}
.notice-bar:hover .notice-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.notice-track .dot { color: rgba(255,255,255,.55); margin: 0 14px; }
.notice-tag {
  flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45);
  padding: 2px 7px; border-radius: 10px;
}

/* ---------- 自媒体身份声明条 ---------- */
.media-strip {
  background: #fff8e8; color: #8a6116;
  font-size: 11.5px; line-height: 1.6; text-align: center;
  padding: 7px 14px; border-bottom: 1px solid #f2e2b8;
}

/* ---------- 头部 ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 300px at 85% -40%, rgba(230,0,18,.55), transparent 60%),
    linear-gradient(135deg, #141414 0%, #2a2a2a 55%, #7a0c12 100%);
  color: #fff;
  padding: 26px 20px 46px;
  overflow: hidden;
}
.hero::after {
  content: "W"; position: absolute; right: -6px; bottom: -40px;
  font-size: 150px; font-weight: 700; font-style: italic;
  font-family: Didot, "Bodoni MT", Georgia, serif;
  color: rgba(255,255,255,.045); letter-spacing: 0; pointer-events: none;
}
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand-logo {
  width: 66px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.5)) drop-shadow(0 0 2px rgba(255,255,255,.35));
}
.brand-logo .logo-svg { width: 100%; height: auto; display: block; }
.brand-cn {
  font-size: 11.5px; font-weight: 600; letter-spacing: 2.5px;
  color: rgba(255,255,255,.82); margin-bottom: 1px;
}
.brand-name {
  font-size: 18px; font-weight: 800; letter-spacing: 1.2px;
  background: linear-gradient(92deg, #f8ecb0 0%, #e9cd75 45%, #c9a13e 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #e9cd75;
}
.brand-sub { font-size: 10px; color: rgba(255,255,255,.55); letter-spacing: 2.5px; margin-top: 2px; }
.hero h1 { font-size: 25px; font-weight: 900; line-height: 1.35; margin-bottom: 8px; }
.hero p { font-size: 13px; color: rgba(255,255,255,.78); margin-bottom: 18px; }
.hero-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: rgba(255,255,255,.72); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 24px; padding: 12px 20px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: transform .1s, opacity .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(90deg, var(--red), #ff3b30);
  color: #fff; box-shadow: 0 6px 18px rgba(230,0,18,.4);
}
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-outline { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn-block { width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- 快捷入口 ---------- */
.quick-nav {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); margin: -24px 12px 0; border-radius: var(--radius);
  padding: 14px 6px; position: relative; z-index: 5;
  box-shadow: var(--shadow);
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.quick-ico {
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--red-soft); display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

/* ---------- 通用版块 ---------- */
.section { padding: 26px 14px 0; }
.section-dark { }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; }
.sec-title .bar { width: 5px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--red), #ff6b5e); }
.sec-title h2 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.sec-more { font-size: 11px; color: var(--ink-3); }
.sec-note { font-size: 12px; color: var(--ink-2); background: #fff8e8; border: 1px solid #ffe4a8; padding: 9px 12px; border-radius: 10px; margin-bottom: 14px; }

/* ---------- ② 优惠专场 ---------- */
.offer-list { display: flex; flex-direction: column; gap: 14px; }
.offer-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.offer-img-wrap { position: relative; aspect-ratio: 16/10; background: #f0f0f2; overflow: hidden; }
.offer-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.offer-card:active .offer-img { transform: scale(1.03); }
.offer-badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, var(--red), #ff5a4e);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; box-shadow: 0 3px 10px rgba(230,0,18,.4);
}
.offer-tag {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  color: #ffd75e; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 8px;
}
.offer-body { padding: 14px; }
.offer-title { font-size: 18px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.offer-sub { font-size: 12.5px; color: var(--ink-3); margin: 3px 0 10px; }
.offer-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.offer-price { font-size: 24px; font-weight: 900; color: var(--red); }
.offer-price::first-letter { font-size: 15px; }
.offer-original { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }
.offer-features { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.offer-features span {
  font-size: 11px; color: var(--red-dark); background: var(--red-soft);
  border: 1px solid #ffd5d2; padding: 3px 9px; border-radius: 6px;
}
.offer-actions { display: flex; gap: 10px; }
.offer-actions .btn { flex: 1; padding: 10px; font-size: 14px; border-radius: 20px; }
.btn-call-soft { background: var(--red-soft); color: var(--red); }

/* 横幅CTA */
.banner-cta {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, #1f1f1f, #4a0a0e 60%, #8a0f14);
  border-radius: var(--radius); padding: 16px 18px; color: #fff;
  box-shadow: 0 8px 22px rgba(120,10,16,.3);
}
.banner-cta strong { font-size: 15px; display: block; }
.banner-cta span { font-size: 11.5px; color: rgba(255,255,255,.7); }
.banner-arrow { font-size: 28px; color: #ff7a6e; font-weight: 300; }

/* ---------- ⑫ 二手车 ---------- */
.used-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.used-card { display: flex; gap: 12px; background: var(--card); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
.used-img { width: 118px; height: 86px; border-radius: 10px; object-fit: cover; background: #f0f0f2; flex-shrink: 0; }
.used-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.used-title { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.used-meta { display: flex; gap: 8px; margin: 5px 0; flex-wrap: wrap; }
.used-meta span { font-size: 11px; color: var(--ink-2); background: #f3f4f6; padding: 2px 7px; border-radius: 6px; }
.used-price { font-size: 17px; font-weight: 900; color: var(--red); margin-top: auto; }
.sold-flag { opacity: .62; }
.sold-flag .used-price { color: #999; }
.sold-tag { display: inline-block; font-size: 10px; background: #999; color: #fff; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }

.assess-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow); border-top: 3px solid var(--red);
}
.assess-title { font-size: 17px; font-weight: 800; }
.assess-sub { font-size: 12px; color: var(--ink-3); margin: 3px 0 14px; }

.form .row2 { display: flex; gap: 10px; }
.input, .textarea {
  width: 100%; border: 1.5px solid #e6e8ec; border-radius: 10px;
  padding: 11px 13px; font-size: 14px; background: #fafafa;
  outline: none; font-family: inherit; margin-bottom: 10px;
  transition: border-color .2s, background .2s;
}
.input:focus, .textarea:focus { border-color: var(--red); background: #fff; }
.textarea { resize: none; height: 76px; }
.input::placeholder, .textarea::placeholder { color: #b5b8bf; }
.agree { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; color: var(--ink-3); margin: 2px 0 4px; }
.agree input { margin-top: 2px; accent-color: var(--red); width: 15px; height: 15px; flex-shrink: 0; }
.agree a { color: var(--red); }

/* ---------- ④ 门店 ---------- */
.store-images { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.store-images::-webkit-scrollbar { display: none; }
.store-img { width: 260px; height: 168px; object-fit: cover; border-radius: 14px; flex-shrink: 0; background: #e8e8eb; box-shadow: var(--shadow); }
.store-card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.store-intro { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.info-row { display: flex; gap: 9px; font-size: 13.5px; margin-bottom: 10px; align-items: flex-start; }
.info-ico { flex-shrink: 0; }
.phone-link { color: var(--red); font-weight: 800; font-size: 16px; letter-spacing: .5px; }
.nav-buttons { display: flex; gap: 10px; margin-top: 12px; }
.nav-btn {
  flex: 1; text-align: center; border: 1.5px solid var(--red); color: var(--red);
  border-radius: 22px; padding: 9px 0; font-size: 13.5px; font-weight: 700;
  background: var(--red-soft);
}
.nav-btn:active { background: #ffe1de; }

/* ---------- ⑤ 商圈 ---------- */
.district-list { display: flex; flex-direction: column; gap: 12px; }
.district-card {
  background: var(--card); border-radius: var(--radius); padding: 15px 16px;
  box-shadow: var(--shadow); display: flex; gap: 13px; align-items: flex-start;
}
.district-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff8a5c, #ff5a4e);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.district-name { font-size: 15.5px; font-weight: 800; }
.district-distance { font-size: 11.5px; color: var(--red); font-weight: 600; margin: 1px 0 4px; }
.district-desc { font-size: 12.5px; color: var(--ink-2); }
.district-tags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.district-tags span { font-size: 10.5px; background: #f3f4f6; color: var(--ink-2); padding: 2px 8px; border-radius: 5px; }

/* ---------- ⑨ 松山湖 ---------- */
.lake-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lake-img-wrap { position: relative; aspect-ratio: 16/9; background: #dfe6ee; }
.lake-img { width: 100%; height: 100%; object-fit: cover; }
.lake-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(20,60,50,.82); color: #b9ffe0;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.lake-desc { font-size: 13px; color: var(--ink-2); padding: 14px 16px 0; }
.lake-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 0; }
.lake-points span {
  font-size: 12px; background: #eef7f1; color: #1d7a4c;
  padding: 7px 10px; border-radius: 8px; text-align: center; font-weight: 600;
}
#lakeNav { margin: 14px 16px 16px; width: calc(100% - 32px); }

/* ---------- ⑧ 留言 ---------- */
.msg-form { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-item { background: var(--card); border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow); }
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--red);
  color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.msg-name { font-size: 13px; font-weight: 700; }
.msg-time { font-size: 10.5px; color: var(--ink-3); margin-left: auto; }
.msg-content { font-size: 13.5px; color: var(--ink); }
.msg-reply {
  margin-top: 9px; background: #f7f8fa; border-radius: 10px; padding: 9px 11px;
  font-size: 12.5px; color: var(--ink-2); border-left: 3px solid var(--red);
}
.msg-reply b { color: var(--red); }
.msg-empty { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 18px 0; }

/* ---------- ⑥ 页脚 ---------- */
.footer { margin-top: 30px; background: #141414; color: rgba(255,255,255,.75); padding: 28px 18px 30px; text-align: center; }
.footer-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: 1px; }
.social-row { display: flex; justify-content: center; gap: 26px; margin-bottom: 20px; }
.social { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,.7); }
.social svg { width: 34px; height: 34px; color: #fff; background: rgba(255,255,255,.1); border-radius: 50%; padding: 7px; }
.social:active svg { background: var(--red); }
.social.configured svg { background: var(--red); }
.footer-links { display: flex; justify-content: center; gap: 18px; font-size: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.55); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.4); }
.footer-disc { font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.75; margin-top: 8px; }
.footer-icp { font-size: 10.5px; color: rgba(255,255,255,.32); margin-top: 6px; padding: 0 10px; }
.footer-beian { font-size: 10.5px; margin-top: 6px; }
.footer-beian a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-beian a:hover { color: rgba(255,255,255,.7); }

/* ---------- 底部操作栏 ---------- */
.action-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 720px; z-index: 55;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid #eee; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(0,0,0,.06);
}
.act { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--ink-2); background: none; border: none; cursor: pointer; font-family: inherit; padding: 0 8px; }
.act svg { width: 22px; height: 22px; }
.act-call svg { color: #2aa86b; }
.act-lead {
  flex: 1; background: linear-gradient(90deg, var(--red), #ff3b30);
  color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 2px;
  border-radius: 24px; padding: 13px 0; text-align: center;
  box-shadow: 0 5px 16px rgba(230,0,18,.4);
}
.act-lead:active { transform: scale(.98); }

/* ---------- 弹层 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 26px;
}
.mask.show { display: flex; }
.qr-box, .privacy-box {
  background: #fff; border-radius: 18px; padding: 26px 22px;
  width: 100%; max-width: 330px; position: relative; text-align: center;
  animation: pop .25s ease;
}
.privacy-box { max-width: 420px; text-align: left; max-height: 82vh; display: flex; flex-direction: column; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mask-close {
  position: absolute; top: 8px; right: 12px; width: 32px; height: 32px;
  border: none; background: #f2f2f4; border-radius: 50%; font-size: 18px;
  color: #888; cursor: pointer; line-height: 1;
}
.qr-title { font-size: 18px; font-weight: 800; }
.qr-sub { font-size: 12px; color: var(--ink-3); margin: 4px 0 16px; }
.qr-img { width: 220px; height: 220px; object-fit: contain; margin: 0 auto; border: 1px solid #eee; border-radius: 12px; }
.qr-tip { font-size: 12px; color: var(--ink-3); margin-top: 14px; }

.privacy-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; text-align: center; }
.privacy-body { overflow-y: auto; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.privacy-body p { margin-bottom: 10px; }
.privacy-body b { color: var(--ink); }
.privacy-version { color: var(--ink-3); font-size: 11px; text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.82); color: #fff; font-size: 13.5px;
  padding: 11px 20px; border-radius: 24px; z-index: 100;
  opacity: 0; pointer-events: none; transition: all .25s; max-width: 80%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
