/* ===== 鲲豪汽车官网 基础样式 ===== */
:root {
  --red: #C8102E;
  --red-dark: #9c0c24;
  --ink: #15161A;
  --ink-2: #2b2d33;
  --gray: #6b6e76;
  --line: #e7e8ec;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --gold: #c9a24a;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 22, 26, .08);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 6px 16px rgba(200, 16, 46, .35);
}
.brand-text { font-size: 16px; line-height: 1.2; }
.brand-text small { font-weight: 400; font-size: 11px; color: var(--gray); }

.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink-2);
  transition: .2s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--red); }
.nav-links a.active { color: var(--red); font-weight: 600; }

.nav-cta {
  background: var(--red); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; transition: .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

.nav-phones {
  display: flex; flex-direction: column; gap: 2px;
  margin-left: auto; margin-right: 10px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  text-align: right; line-height: 1.3;
}
.nav-phones a { white-space: nowrap; transition: .2s; }
.nav-phones a:hover { color: var(--red); }
.nav-phones span { display: inline-block; background: var(--red); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-right: 5px; vertical-align: middle; }

.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ===== 通用区块 ===== */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--red); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.section-head h2 { font-size: 30px; margin-top: 8px; }
.section-head p { color: var(--gray); margin-top: 10px; }

/* ===== 首页全屏主推 Banner ===== */
.home-banner {
  position: relative;
  width: 100%;
  height: 88vh;            /* 占满首屏绝大部分 */
  min-height: 520px;
  overflow: hidden;
}
.home-banner__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;        /* 撑满屏幕，不露白边 */
  object-position: center;
}
.home-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,16,20,.55) 0%, rgba(15,16,20,0) 35%);
}
.home-banner__content {
  position: absolute; left: 0; right: 0; bottom: 7%;
  z-index: 2;
  text-align: right;
}
.home-banner__btn {
  display: inline-block; background: var(--red); color: #fff;
  padding: 14px 32px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.home-banner__btn:hover { background: var(--red-dark); transform: translateY(-2px); }

.home-banner__colors {
  position: absolute; left: 0; right: 0; bottom: 7%;
  z-index: 3;
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
}
.home-banner__colors .color-dot {
  pointer-events: auto;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: .2s;
}
.home-banner__colors .color-dot:hover { background: rgba(255,255,255,.35); }
.home-banner__colors .color-dot.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ===== 首页 Hero（内页 Banner）===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef0f4 100%);
  color: var(--ink); padding: 96px 0 110px;
  border-bottom: 1px solid var(--line);
}
/* 去掉深色背景上的红色光晕，改为极淡的红色装饰，不抢眼 */
.hero::after {
  content: ""; position: absolute; right: -160px; top: -100px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,.08), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .tag {
  display: inline-block; background: #fff; color: var(--red);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 18px;
  border: 1px solid rgba(200,16,46,.25);
  box-shadow: 0 2px 8px rgba(20,22,26,.05);
}
.hero h1 { font-size: 46px; line-height: 1.2; margin-bottom: 18px; }
.hero h1 span { color: var(--red); }
.hero h1 .red-title { color: var(--red); }
.hero p.lead { color: var(--gray); font-size: 18px; max-width: 600px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.about-intro { margin-top: 22px; color: var(--gray); max-width: 900px; font-size: 15px; line-height: 1.9; }
.about-intro p { margin-bottom: 14px; }
.about-intro p:last-child { margin-bottom: 0; }
.about-intro strong { color: var(--ink); font-weight: 600; }
/* 浅色 Banner 里的幽灵按钮改为深色边框，保证可见 */
.hero .btn-ghost { border: 1px solid var(--ink-2); color: var(--ink-2); }
.hero .btn-ghost:hover { background: var(--bg-soft); color: var(--red); border-color: var(--red); }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ===== 卡片 / 车型 ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,22,26,.12); }

.model-image {
  height: 180px; display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, #f1f2f5, #e3e6ec);
}
.model-image svg { width: 120px; height: auto; opacity: .55; }
.model-image img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.model-image .badge { z-index:2; }
.model-image .badge {
  position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.model-body { padding: 18px 20px 22px; }
.model-body h3 { font-size: 19px; }
.model-body .energy { color: var(--gray); font-size: 13px; margin: 4px 0 10px; }
.model-body p { color: var(--gray); font-size: 14px; }
.model-body .more {
  display: inline-block; margin-top: 14px; color: var(--red); font-weight: 600; font-size: 14px;
}
.model-body .more:hover { text-decoration: underline; }

/* ===== 特征条 ===== */
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.feature .ic {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  background: rgba(200,16,46,.1); color: var(--red); display: grid; place-items: center; font-size: 22px;
}
.feature h4 { font-size: 17px; }
.feature p { color: var(--gray); font-size: 14px; margin-top: 4px; }

/* ===== 信息列表 ===== */
.info-list li {
  padding: 14px 0; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; gap: 16px;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label { color: var(--gray); }
.info-list .value { font-weight: 600; text-align: right; }

/* ===== 表单 ===== */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
  transition: .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 8px; }

/* ===== 页脚 ===== */
.footer { background: var(--ink); color: #c9ccd3; padding: 48px 0 28px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h5 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer p, .footer li { font-size: 14px; line-height: 2; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2b2d33; margin-top: 30px; padding-top: 18px;
  text-align: center; font-size: 13px; color: #8a8d95;
}

/* ===== 面包屑 ===== */
.crumb { padding: 18px 0; font-size: 14px; color: var(--gray); }
.crumb a:hover { color: var(--red); }

/* ===== 服务卡片可点 ===== */
.book-card { transition: .2s; }
.book-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }

/* ===== 预约弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(8,9,12,.55); }
.modal-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(440px, 92vw); background: #fff; border-radius: 14px;
  padding: 30px 28px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 26px; line-height: 1; color: #999; cursor: pointer;
}
.modal-close:hover { color: #333; }
.modal-box h3 { font-size: 21px; margin-bottom: 18px; color: var(--ink); }
.modal-box .form-row { margin-bottom: 13px; }
.modal-box label { font-size: 13px; }
.modal-box .btn { width: 100%; margin-top: 6px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 22px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .hero h1 { font-size: 32px; }
  .home-banner { height: 70vh; min-height: 420px; }
  .home-banner__title { font-size: 34px; }
  .home-banner__desc { font-size: 15px; }
  .home-banner__colors { bottom: 5%; gap: 6px; }
  .home-banner__colors .color-dot { padding: 5px 9px; font-size: 11px; }
  .home-banner__btn { padding: 11px 22px; font-size: 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
}
