/* ============================================================
   SinoCars Export — B2B Used Car Export Website
   Theme: Deep navy (#0B2545) primary + Orange (#FF7A00) accent
   Fully responsive: desktop / tablet / mobile
   ============================================================ */

:root {
  --navy:        #0B2545;
  --navy-700:    #13315C;
  --navy-900:    #061A33;
  --orange:      #FF7A00;
  --orange-dark: #E96D00;
  --orange-soft: #FFF3E6;
  --bg:          #FFF7EF;  /* 整体底色：暖米白，从橙色 hero 收尾自然过渡，与白卡片形成有意的层次 */
  --yellow:      #FFD400;
  --gray-50:     #F5F7FA;
  --gray-100:    #EEF2F6;
  --gray-200:    #E2E8F0;
  --gray-300:    #CBD5E1;
  --text:        #1F2937;
  --muted:       #5B6B7B;
  --white:       #FFFFFF;
  --radius:      12px;
  --shadow:      0 6px 24px rgba(11, 37, 69, 0.10);
  --shadow-lg:   0 14px 40px rgba(11, 37, 69, 0.18);
  --maxw:        1200px;
  --header-h:    120px;
  --font:        "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--orange-soft); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.form-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-cta-row .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; height: var(--header-h);
  display: flex; align-items: center; box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.nav-inner { display: flex; align-items: center; gap: 32px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--orange);
  display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 900;
}
.brand span.accent { color: var(--orange); }
.brand .site-logo {
  height: 88px; width: auto; max-width: 380px;
  display: block; object-fit: contain;
}
/* White-on-transparent version, for headers / footers on dark backgrounds */
.brand .site-logo--white {
  height: 88px; max-width: 380px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}
/* Admin side bar — narrower rail */
.admin-side .brand .site-logo { height: 54px; max-width: 220px; }
/* Login screen — keep a white rounded card behind the (blue) logo */
.login-card .brand .site-logo {
  background: #fff; border-radius: 8px; padding: 10px 20px; height: 92px; max-width: 340px;
}

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 10px 16px; border-radius: 8px; font-weight: 500; font-size: 15px; color: #dbe4ef;
  transition: background .2s, color .2s;
}
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,.10); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch { display: flex; background: rgba(255,255,255,.10); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; color: #cdd8e6; padding: 6px 14px; border-radius: 999px;
  cursor: pointer; font-weight: 600; font-size: 14px; transition: all .2s;
}
.lang-switch button.active { background: var(--orange); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }

/* ---------- Hero / Carousel ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.slides { position: relative; height: 560px; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  display: flex; align-items: center; background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,26,51,.60) 0%, rgba(6,26,51,.30) 60%, rgba(6,26,51,.10) 100%); }
.slide-content { position: relative; z-index: 2; max-width: 640px; }
.slide .eyebrow { color: var(--orange); font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; font-size: 30px; text-shadow: 0 1px 4px rgba(6,26,51,.45); }
.slide h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.15; margin: 14px 0; font-weight: 800; text-shadow: 0 2px 12px rgba(6,26,51,.45); }
.slide p { font-size: 20px; color: #d6e0ec; font-weight: 600; margin-bottom: 26px; max-width: 560px; text-shadow: 0 1px 6px rgba(6,26,51,.55); }
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; transition: .2s; }
.hero-dots button.active { background: var(--orange); width: 30px; border-radius: 6px; }

/* ---------- Section generic ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--orange); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); color: var(--navy); margin: 10px 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }

/* —— Prominent section-head (cat / why) — 更显眼的标题层级 —— */
.section-head-prominent { max-width: 820px; margin: 0 auto 64px; }
.section-head-prominent .eyebrow {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 4px;
  padding: 8px 20px;
  background: var(--orange-soft);
  border-radius: 999px;
  margin-bottom: 24px;
  text-transform: none;
}
.section-head-prominent h2 {
  font-size: clamp(36px, 5.2vw, 54px);
  line-height: 1.16;
  margin: 0 0 20px;
  letter-spacing: 1px;
}
.section-head-prominent h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
  margin: 16px auto 0;
}
.section-head-prominent p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text);
}

/* ---------- Advantages (3 cards) ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv-card {
  background: #fff; border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow);
  border-top: 4px solid var(--orange); transition: transform .25s, box-shadow .25s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.adv-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; }
.adv-card h3 { color: var(--navy); font-size: 21px; margin-bottom: 10px; }
.adv-card p { color: var(--muted); }

/* ---------- Categories ---------- */
/* Two big "New / Used" cards on homepage — collapsed from 6 categories
   so visitors pick broad condition first, then drill down on products page. */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-grid-two { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 180px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow); color: #fff;
}
.cat-grid-two .cat-card { height: 400px; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,26,51,.02) 0%, rgba(6,26,51,.30) 55%, rgba(6,26,51,.55)); }
.cat-card .cat-label { position: relative; z-index: 2; padding: 16px 18px; font-weight: 700; font-size: 20px; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); transition: .25s; }
/* New card: navy→orange overlay chip; Used card: warm dark wash */
/* 0906: 整体蒙层大幅减薄让图更通透,文字 text-shadow 兜底仍清晰 */
.cat-card-new .cat-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,37,69,.30) 0%, rgba(11,37,69,.08) 60%, transparent); z-index: 1; }
.cat-card-used .cat-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,122,0,.15) 0%, rgba(6,26,51,.20) 55%, rgba(6,26,51,.55)); z-index: 1; }
.cat-card .cat-badge {
  position: absolute; top: 22px; left: 22px; z-index: 3;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: 1.2px; padding: 7px 14px; border-radius: 999px; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(255,122,0,.4);
}
.cat-card-used .cat-badge { background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.cat-card .cat-text { position: relative; z-index: 2; padding: 30px 32px; width: 100%; }
.cat-card .cat-text h3 { font-size: 42px; font-weight: 800; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.35); letter-spacing: .5px; }
.cat-card .cat-text p { font-size: 16px; color: #d8e3f0; margin-bottom: 18px; max-width: 90%; text-shadow: 0 1px 4px rgba(0,0,0,.3); line-height: 1.55; }
.cat-card .cat-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 20px; border-radius: 999px; transition: .2s;
}
.cat-card-used .cat-cta { background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.cat-card:hover .cat-cta { transform: translateX(4px); }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: stretch; }
.why-list { display: grid; gap: 18px; }
.why-item { display: flex; gap: 16px; }
.why-item .num { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.why-item h4 { color: var(--navy); font-size: 18px; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.why-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 560px; }
.why-media img { width: 100%; height: 100%; object-fit: cover; min-height: 560px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.testi-card .stars { color: var(--orange); font-size: 18px; margin-bottom: 12px; }
.testi-card p { color: var(--text); font-style: italic; margin-bottom: 18px; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testi-card .who b { color: var(--navy); display: block; }
.testi-card .who small { color: var(--muted); }

/* ---------- Quote / Inquiry form block ---------- */
.quote-box { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; border-radius: var(--radius); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
/* 左栏：不用 space-between，用精确 margin 按右侧位置逐一对齐 */
.quote-left { display: flex; flex-direction: column; }
/* ① 主标题 — 与右侧 h3「快速询价」平齐（下移） */
.qb-main-title { font-size: 22px; color: #fff; margin: 28px 0 6px; line-height: 1.3; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.14); }
/* ② 副标题 — 与右侧 p「我们将在12个工作小时内回复」平齐 */
.quote-box p { color: #cdd8e6; margin: 0 0 18px; font-size: 14px; line-height: 1.6; }

/* Quote box — core stats cards (2×2 grid) */
/* 数据卡区：副标题上方留大间距，下方保持与流程标题间距 */
.qb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 60px 0 70px; }
.qb-stat { background: rgba(255,255,255,0.09); border-radius: 14px; padding: 18px 12px; text-align: center; border: 1px solid rgba(255,255,255,0.14); }
.qb-stat-num { display: block; font-size: 27px; font-weight: 800; color: var(--orange); line-height: 1.15; }
.qb-stat-label { display: block; font-size: 11.5px; color: #cdd8e6; margin-top: 5px; line-height: 1.3; }

/* Quote box — process steps title（③ 业务开展流程 — 与右侧「数量」行平齐） */
.qb-steps-title { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 0; margin: 20px 0 40px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.14); line-height: 1.25; }

/* Quote box — process steps (with arrows) */
.qb-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 70px; padding: 20px 22px; background: rgba(255,255,255,0.06); border-radius: 14px; border: 1px solid rgba(255,255,255,0.11); }
.qb-step { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #e8eef5; line-height: 1.5; white-space: nowrap; font-weight: 600; }
.qb-step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.qb-step-arrow { color: var(--orange); font-size: 20px; font-weight: 700; padding: 0 6px; }

/* Quote box — feature bullets（④ 为什么选择我们 — 与右侧「上传附件」行平齐） */
.qb-feats-title { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 0; margin: 20px 0 40px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.14); line-height: 1.25; }
.quote-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.quote-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e8eef5; line-height: 1.55; }
.quote-feats .tick { color: var(--orange); font-weight: 800; flex-shrink: 0; line-height: 1.55; font-size: 16px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 10px; font-size: 15px;
  font-family: inherit; background: #fff; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field textarea { resize: vertical; min-height: 110px; }
/* Required-field marker — orange asterisk auto-injected before any label
   whose child input/textarea/select carries the required attribute. Uses
   :has() so we don't have to add a class to every <label>. Works in
   Chrome 105+, Edge 105+, Safari 15.4+, Firefox 121+. */
.field:has(> input[required]) > label::before,
.field:has(> textarea[required]) > label::before,
.field:has(> select[required]) > label::before {
  content: "*";
  color: var(--orange);
  font-weight: 700;
  margin-right: 4px;
}
/* Invalid state — red border + soft glow applied by submit-time JS when
   a required field is empty. Cleared on next input/change event. */
.inquiry-form input.invalid,
.inquiry-form select.invalid,
.inquiry-form textarea.invalid {
  border-color: #e63946 !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15) !important;
}
/* Inline form-level error message (inserted by form-submit handler). */
.inquiry-form .form-error {
  color: #e63946;
  font-size: 14px;
  margin-top: 8px;
  font-weight: 600;
  grid-column: 1 / -1;
}
.form-note { font-size: 13px; color: var(--muted); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
/* 自定义上传组件：原生 <input type=file> 的「选择文件」文案无法 i18n，用隐藏 input + 按钮替代 */
/* Custom file-upload widget: mimics the .field input box so the form looks
   uniform. The container owns the border; the button inside drops its own
   outline so we don't get a double frame. */
.file-upload {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: #fff;
  transition: border .2s, box-shadow .2s;
}
.file-upload:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.file-upload .file-btn {
  flex-shrink: 0;
  border: 0;                            /* outer .file-upload is the frame */
  padding: 8px 14px;
  background: var(--orange-soft);       /* softer than btn-outline here */
  color: var(--orange);
  font-weight: 600;
}
.file-upload .file-btn:hover { background: #FFE8D0; }
.file-upload .file-names { font-size: 13px; color: var(--muted); word-break: break-all; flex: 1; min-width: 0; }

/* Dark-card variant (homepage quote section) — keep the upload widget
   itself identical to the light look so it lines up with the .field
   inputs above (which still render white inside the dark glass card). */
.inquiry-form--dark .file-upload {
  background: #fff;
  border-color: var(--gray-300);
}
.inquiry-form--dark .file-upload:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.inquiry-form--dark .file-upload .file-btn {
  background: var(--orange-soft);
  color: var(--orange);
}
.inquiry-form--dark .file-upload .file-btn:hover { background: #FFE8D0; }
.inquiry-form--dark .file-upload .file-names { color: var(--muted); }
.attach-hint { font-size: 13px; color: var(--navy); background: var(--orange-soft); padding: 10px 14px; border-radius: 8px; border-left: 3px solid var(--orange); }
/* Dark-card variant of the inquiry form (used on homepage quote section). */
.inquiry-form--dark .field label { color: #fff; }
.inquiry-form--dark .field:has(> input[required]) > label::before,
.inquiry-form--dark .field:has(> textarea[required]) > label::before,
.inquiry-form--dark .field:has(> select[required]) > label::before { color: var(--orange); }
.inquiry-form--dark .field-hint { color: rgba(255,255,255,.72); }
.inquiry-form--dark .form-required-note { color: rgba(255,255,255,.85); font-size: 13px; }
.inquiry-form--dark .form-required-note .req { color: var(--orange); font-weight: 700; margin-right: 2px; }
.form-success { display: none; background: #e7f7ee; color: #1c7a45; padding: 14px 18px; border-radius: 10px; border: 1px solid #b7e4c7; margin-top: 16px; font-weight: 600; }
/* Base (light) required-note + Telegram link inside contact list */
.form-required-note { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.form-required-note .req { color: var(--orange); font-weight: 700; margin-right: 2px; }
/* 联系信息项：默认浅色、无下划线；鼠标悬停变黄色(#FFD400)并加下划线 */
.contact-info .ci-link {
  color: #cdd8e6;
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  word-break: break-all;
}
.contact-info .ci-link:hover,
.contact-info .ci-link:focus {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  text-decoration: underline;
}
.contact-info .ci-link:active { color: #FFE066; }
.map-links { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; }
.map-links a { color: var(--navy); text-decoration: none; font-weight: 600; }
.map-links a:hover { color: var(--orange); }

/* ---------- Products page ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 56px 0; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.page-hero p { color: #cdd8e6; margin-top: 8px; max-width: 640px; }

/* Condition chip — small "新车/二手车" pill above the body-type filter row.
   Shows only when arriving from a homepage category card (?cat=new|used). */
.condition-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 24px 0 0; padding: 6px 6px 6px 14px;
  border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .5px;
  background: #fff3e8; color: var(--orange); border: 1px solid rgba(255,122,0,.25);
}
.condition-chip[hidden] { display: none; }
.condition-chip.chip-used { background: #f1f5fa; color: var(--navy); border-color: rgba(11,37,69,.18); }
.condition-chip .condition-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(255,122,0,.18); color: var(--orange); text-decoration: none;
  font-weight: 800; line-height: 1; transition: .2s;
}
.condition-chip.chip-used .condition-clear { background: rgba(11,37,69,.12); color: var(--navy); }
.condition-chip .condition-clear:hover { transform: rotate(90deg); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 28px; }
.filter-btn { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--gray-300); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; }
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-100); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; cursor: pointer; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* 从详情页返回列表后，「刚看过」的那辆车常驻橙色描边，
   只要停留在本页就一直在（切筛选/切语言/滚动都不丢），离开本页或刷新才清空 */
@keyframes cardReturnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,122,0,0), var(--shadow); }
  55%  { box-shadow: 0 0 0 8px rgba(255,122,0,.35), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 3px var(--orange), var(--shadow-lg); }
}
.product-card.card-return-flash {
  animation: cardReturnPulse .9s ease-out both;
  box-shadow: 0 0 0 3px var(--orange), var(--shadow-lg);
  border-color: var(--orange);
}
.product-card.card-return-flash:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 3px var(--orange), var(--shadow-lg);
}
.product-thumb { position: relative; height: 200px; background: var(--gray-100); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.product-badge.used { background: var(--orange); }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: 18px; color: var(--navy); }
.product-specs { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.product-specs span b { color: var(--text); }
.product-price { font-size: 20px; font-weight: 800; color: var(--orange); }
.product-price .price-term { font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.product-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.product-foot .btn { padding: 10px; font-size: 14px; }
.product-cta-row { display: flex; gap: 8px; }
.product-cta-row .btn { flex: 1; }
.btn-wa { border-color: #25D366; color: #25D366; }
.btn-wa:hover { background: #25D366; color: #fff; }
.btn-tg { border-color: #229ED9; color: #229ED9; }
.btn-tg:hover { background: #229ED9; color: #fff; }
.product-empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--gray-300); border-radius: var(--radius); }
.product-empty-icon { font-size: 52px; margin-bottom: 12px; }
.product-empty-text { font-size: 16px; margin-bottom: 18px; }

/* ---------- Inventory split into New / Used sections ---------- */
.section-inventory { padding-top: 70px; padding-bottom: 80px; }
.condition-section { padding: 0 0 56px; }
.condition-section:first-child { padding-top: 0; }
.condition-section + .condition-section { border-top: 1px solid var(--gray-200); padding-top: 56px; margin-top: 56px; }
.condition-section .section-head-prominent { margin-bottom: 42px; }
.condition-section .section-head-prominent h2 { font-size: clamp(30px, 4.5vw, 48px); }

/* 车辆库存页：让“车辆库存”胶囊标签更醒目，避免与暖米白底色融为一体 */
.section-inventory .section-head-prominent { text-align: center; }
.section-inventory .section-head-prominent .eyebrow {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(250, 130, 50, 0.32);
  margin-bottom: 22px;
}
.section-inventory .section-head-prominent h2 { margin-top: 0; }
.section-inventory .section-head-prominent p { color: var(--muted); font-size: 17px; }

/* ---------- Product detail page (product.html?id=...) ---------- */
.pd-skeleton { color: var(--muted); padding: 60px 0; text-align: center; }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.pd-gallery { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); }

.pd-gallery-grid { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.pd-gallery-main { position: relative; aspect-ratio: 4 / 3; background: #112e54; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.pd-badge { position: absolute; top: 14px; left: 14px; background: var(--navy); color: #fff; font-weight: 700; font-size: 12px; padding: 6px 14px; border-radius: 999px; letter-spacing: .5px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pd-badge-used { background: var(--orange); }

.pd-thumbs { display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow-y: auto; padding: 2px 2px 2px 0; scrollbar-width: thin; }
.pd-thumbs::-webkit-scrollbar { width: 6px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.pd-thumb {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #112e54; aspect-ratio: 4 / 3; flex: 0 0 auto; transition: border-color .2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { border-color: var(--orange-soft); }
.pd-thumb.active { border-color: var(--orange); }
.pd-thumb::after { content: "图片"; position: absolute; bottom: 4px; right: 4px; font-size: 10px; color: #fff; background: rgba(11,37,69,.7); padding: 2px 6px; border-radius: 4px; pointer-events: none; }

.pd-tabs { display: flex; gap: 8px; margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--gray-200); }
.pd-tab { padding: 8px 22px; border-radius: 999px; border: 1px solid var(--gray-200); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; }
.pd-tab.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.pd-panel { padding: 0; }
.pd-panel-video .pd-video-stub { background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: 10px; padding: 38px 22px; text-align: center; color: var(--muted); font-size: 14px; }
.pd-video-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.pd-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; display: block; object-fit: contain; }

/* ----- 图片灯箱（全屏查看大图）----- */
.pd-lightbox { position: fixed; inset: 0; background: rgba(7, 18, 35, .94); z-index: 9999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s ease; padding: 0; }
.pd-lightbox.open { display: flex; opacity: 1; }
.pd-lightbox-img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.55); user-select: none; -webkit-user-drag: none; }
.pd-lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; backdrop-filter: blur(4px); }
.pd-lightbox-btn:hover { background: rgba(255,255,255,.24); }
.pd-lightbox-prev { left: 22px; }
.pd-lightbox-next { right: 22px; }
.pd-lightbox-close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; backdrop-filter: blur(4px); }
.pd-lightbox-close:hover { background: rgba(255,255,255,.24); }
.pd-lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.78); font-size: 14px; letter-spacing: .04em; padding: 6px 14px; background: rgba(0,0,0,.4); border-radius: 999px; }
body.pd-lb-locked { overflow: hidden; }
@media (max-width: 640px) {
  .pd-lightbox-btn { width: 42px; height: 42px; font-size: 22px; }
  .pd-lightbox-prev { left: 10px; }
  .pd-lightbox-next { right: 10px; }
  .pd-lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; }
}

.pd-info { display: flex; flex-direction: column; gap: 14px; }
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pd-head .pd-name { flex: 1; min-width: 0; font-size: clamp(20px, 2.2vw, 28px); color: var(--navy); font-weight: 800; line-height: 1.25; }
.pd-head .pd-btn-exit { flex: 0 0 auto; padding: 8px 16px; font-size: 13px; }
.pd-name { font-size: clamp(22px, 2.4vw, 30px); color: var(--navy); font-weight: 800; line-height: 1.25; }
.pd-price { display: flex; align-items: baseline; gap: 6px; }
.pd-price small { color: var(--orange); font-size: 32px; font-weight: 800; }
.pd-price b { font-size: 32px; color: var(--orange); font-weight: 800; }

.pd-spec-list { display: flex; flex-direction: column; border: 1px solid var(--gray-200); border-radius: 10px; overflow: hidden; }
/* Top 11-row block: single K-V column (long form) */
.pd-spec-list.pd-spec-top .pd-spec-row { display: grid; grid-template-columns: 100px 1fr; gap: 14px; }
.pd-spec-list.pd-spec-top .pd-spec-features .pd-spec-v { grid-column: 2 / -1; }
/* Bottom 4-column block (data form) */
.pd-spec-list.pd-spec-bottom .pd-spec-row { display: grid; grid-template-columns: 100px 1fr 100px 1fr; gap: 12px; }

.pd-spec-row { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--gray-100); align-items: start; }
.pd-spec-row:nth-child(odd) { background: var(--gray-50); }
.pd-spec-row:last-child { border-bottom: none; }
.pd-spec-k { color: var(--text); font-weight: 600; align-self: center; }
.pd-spec-v { color: var(--navy); font-weight: 500; word-break: break-word; align-self: center; }
.pd-spec-features .pd-spec-k { align-self: start; }
.pd-spec-features .pd-spec-v { grid-column: 2 / -1; line-height: 1.7; align-self: start; }
.pd-spec-list.pd-spec-top { margin-top: 4px; }
.pd-spec-list.pd-spec-bottom { margin-top: 4px; border-color: var(--gray-100); }
.pd-spec-list.pd-spec-bottom .pd-spec-row { font-size: 13.5px; padding: 9px 14px; }

/* Color swatch inside the spec table */
.pd-color-dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gray-200); vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }

.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tag { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; border: 1.5px solid; }
.pd-tag-body   { color: #1ca85c; border-color: #b8efce; background: #effbf3; }
.pd-tag-fuel   { color: #d4830c; border-color: #f5d096; background: #fef6e6; }
.pd-tag-drive  { color: #b3530e; border-color: #f5b88d; background: #feeee0; }
.pd-tag-trans  { color: #1d6dc8; border-color: #b6d6f6; background: #ebf3fc; }

.pd-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; padding: 12px 16px; font-size: 14px; min-width: 130px; justify-content: center; }
.pd-btn-exit { background: #fff; color: var(--navy); border: 1.5px solid var(--gray-300); display: inline-flex; align-items: center; gap: 6px; }
.pd-btn-exit:hover { background: var(--gray-50); border-color: var(--navy); }
.pd-btn-quote { background: var(--orange); color: #fff; }
.pd-btn-quote:hover { background: var(--orange-dark); }
.pd-btn-wa    { background: #25D366; color: #fff; border-color: #25D366; }
.pd-btn-wa:hover { background: #1ebe5d; border-color: #1ebe5d; }
.pd-actions .btn[onclick] { cursor: pointer; }

.pd-bottom-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.pd-modelcell { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pd-modelcell span { color: var(--muted); }
.pd-modelcell b { color: var(--navy); font-weight: 600; }
.pd-modelcell-tag { text-align: right; }
.pd-modelcell-tag b { line-height: 1.4; }

/* Product detail responsive */
@media (max-width: 1024px) {
  .pd-layout { grid-template-columns: 1fr; gap: 24px; }
  .pd-spec-list.pd-spec-top .pd-spec-row,
  .pd-spec-list.pd-spec-bottom .pd-spec-row { grid-template-columns: 100px 1fr; }
  .pd-spec-list.pd-spec-bottom .pd-spec-k:nth-of-type(3),
  .pd-spec-list.pd-spec-bottom .pd-spec-v:nth-of-type(4) { grid-column: 1 / -1; margin-top: 6px; }
}
@media (max-width: 640px) {
  .pd-head { flex-direction: column; align-items: flex-start; }
  .pd-actions .btn { flex: 1 1 100%; }
  .pd-gallery-grid { grid-template-columns: 1fr; }
  .pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); flex-direction: row; max-height: none; }
  .pd-bottom-row { grid-template-columns: 1fr; }
  .pd-modelcell-tag { text-align: left; }
}

/* ---------- About page ---------- */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.about-block.reverse .about-media { order: -1; }
.about-block.reverse .about-text { padding-left: 28px; text-align: center; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
/* Factory section: 2 storefront photos side by side (single column on mobile) */
.about-media--factory { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.about-media--factory figure { margin: 0; display: flex; flex-direction: column; }
.about-media--factory img { min-height: 280px; height: 100%; object-fit: cover; border-radius: 8px; }
.about-media--factory figcaption { margin-top: 8px; text-align: center; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
/* Factory section: text on top, 2 photos below (side-by-side). Overrides the default .about-block 2-column layout for this block only. */
.about-block.factory-stack { grid-template-columns: 1fr; gap: 32px; align-items: stretch; }
.about-block.factory-stack .about-text { text-align: center; max-width: 760px; margin: 0 auto; }
.about-block.factory-stack .about-media--factory { max-width: 1140px; margin: 0 auto; width: 100%; }
.about-block.factory-stack .about-media--factory img { min-height: 300px; }
.about-text h2 { color: var(--navy); font-size: 28px; margin-bottom: 14px; }

/* —— 展厅与车场 / 质控流程 标题统一为「发展历程」样式 + 黄横线 —— */
.about-block.factory-stack .about-text h2,
.about-block.reverse .about-text h2 {
  font-size: clamp(36px, 5.2vw, 54px);
  line-height: 1.16;
  letter-spacing: 1px;
  margin: 0 0 20px;
}
.about-block.factory-stack .about-text h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
  margin: 16px auto 0;
}
.about-block.reverse .about-text h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
  margin: 16px auto 0;
}

.about-text p { color: var(--muted); margin-bottom: 14px; }

.timeline { display: grid; gap: 20px; margin-top: 10px; }
.timeline li { display: flex; gap: 16px; }
.timeline .year { flex: 0 0 70px; font-weight: 800; color: var(--orange); }
.timeline .desc { color: var(--muted); }

/* Enhanced history timeline — "growth" visual:
   each milestone row gets a horizontal growth bar whose width encodes
   the milestone's weight (35% / 70% / 100%) plus a step badge
   "01/02/03", an entry animation (scaleX 0 → 1 from the left), a
   dashed spine and round nodes on every milestone. Used only for the
   History section; the QC sub-list stays on the plain .timeline look. */
.timeline-growth {
  display: block;
  margin-top: 16px;
  position: relative;
}
.timeline-growth::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 122, 0, 0.08) 0%,
    rgba(255, 122, 0, 0.30) 12%,
    rgba(255, 122, 0, 0.30) 88%,
    rgba(255, 122, 0, 0.08) 100%
  );
  pointer-events: none;
}
.timeline-growth > li {
  display: grid;
  grid-template-columns: 40px 90px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
}
.timeline-growth > li:last-child { margin-bottom: 4px; }
.timeline-growth .year {
  grid-row: 1;
  grid-column: 2;
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.25;
}
.timeline-growth .desc {
  grid-row: 1;
  grid-column: 3 / span 2;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}
.timeline-growth .growth-bar {
  grid-row: 2;
  grid-column: 3;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    rgba(255, 122, 0, 0.20) 0%,
    var(--orange) 78%,
    var(--orange) 100%
  );
  width: var(--bar, 50%);
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(255, 122, 0, 0.22);
  transform-origin: left center;
  animation: barGrow 1s cubic-bezier(.2, .8, .2, 1) both;
}
.timeline-growth .step {
  grid-row: 2;
  grid-column: 4;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  background: #fff5e8;
  border: 1px solid var(--orange);
  border-radius: 12px;
  padding: 2px 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  align-self: center;
}
.timeline-growth > li::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px #ffe9d3, 0 2px 6px rgba(255, 122, 0, 0.35);
  z-index: 1;
}
.timeline-growth > li:nth-child(2)::after {
  transform: scale(1.18);
}
.timeline-growth > li:nth-child(3)::after {
  background: linear-gradient(135deg, var(--orange) 0%, #ff8c1a 100%);
  transform: scale(1.40);
  box-shadow: 0 0 0 5px #fff5e8, 0 4px 14px rgba(255, 122, 0, 0.5);
}
.timeline-growth > li:nth-child(1) .growth-bar { animation-delay: 0.05s; }
.timeline-growth > li:nth-child(2) .growth-bar { animation-delay: 0.22s; }
.timeline-growth > li:nth-child(3) .growth-bar { animation-delay: 0.40s; }
@keyframes barGrow {
  from { transform: scaleX(0); opacity: 0.35; }
  to   { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-growth .growth-bar {
    animation: none;
    transform: scaleX(1);
  }
}
@media (max-width: 768px) {
  .timeline-growth .year { font-size: 16px; }
  .timeline-growth .desc { font-size: 14px; }
  .timeline-growth > li { row-gap: 7px; margin-bottom: 13px; }
  .timeline-growth .step { font-size: 11px; padding: 2px 9px; }
  .timeline-growth > li { grid-template-columns: 32px 78px 1fr auto; column-gap: 12px; }
  .timeline-growth::before { left: 15px; }
  .timeline-growth > li::after { left: 8px; width: 14px; height: 14px; }
}
@media (max-width: 480px) {
  .timeline-growth > li {
    grid-template-columns: 28px 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 10px;
  }
  .timeline-growth .year       { grid-column: 2; grid-row: 1; }
  .timeline-growth .desc       { grid-column: 2 / span 2; grid-row: 2; }
  .timeline-growth .growth-bar { grid-column: 2 / -1; grid-row: 3; }
  .timeline-growth .step       { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
  .timeline-growth::before { left: 13px; }
  .timeline-growth > li::after { left: 6px; }
}

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { background: #fff; border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.cert-card .cert-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; font-size: 30px; }
.cert-card h4 { color: var(--navy); font-size: 16px; }
.cert-card small { color: var(--muted); }
/* Four document cards (license / export / skills / inspection) share the
   same visual layout — 2x2 grid in desktop, single column on mobile. */
.cert-card.cert-license,
.cert-card.cert-export,
.cert-card.cert-skills,
.cert-card.cert-inspection {
  padding: 16px;
  grid-column: span 2;
}
.cert-card.cert-license img,
.cert-card.cert-export img,
.cert-card.cert-skills img,
.cert-card.cert-inspection img {
  width: 100%;
  height: 220px;
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0 auto 14px;
  display: block;
  /* per-card object-fit + object-position 各自覆写在下方（见各 cert-* 规则） */
}
/* 营业执照 (license.jpg 1432×1020 比例1.40)：顶部"营业执照"标题 +
   底部"登记机关/2025年12月26日"是关键，cover 会裁丢两端 → contain 完整显示 */
.cert-card.cert-license img {
  object-fit: contain;
  object-position: center;
  padding: 6px;
}
/* Export is a wide table screenshot (1238×452 比例2.74) — cover + anchor to LEFT
   so the unified social credit code + company name columns stay visible after crop. */
.cert-card.cert-export img {
  object-fit: cover;
  object-position: left center;
}
/* 评估师证书 (cert-skills.jpg 1280×930 比例1.38)：底部"证书序列号A: 202401"
   是唯一可验证真伪的标识，cover 会裁丢 → contain 完整显示 */
.cert-card.cert-skills img {
  object-fit: contain;
  object-position: center;
  padding: 6px;
}
/* Inspection (CheXinMeng third-party report 1600×640 比例2.50) is a wide
   screenshot. Anchor to TOP so the order header + report header rows stay
   visible; cover keeps the box filled without side letterbox. */
.cert-card.cert-inspection img {
  object-fit: cover;
  object-position: center top;
}
.cert-card.cert-license h4,
.cert-card.cert-export h4,
.cert-card.cert-skills h4,
.cert-card.cert-inspection h4 {
  font-size: 18px;
  margin-top: 4px;
  margin-bottom: 6px;
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.contact-info { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-info h3 { font-size: 22px; margin-bottom: 18px; }
.contact-info ul li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-info .ic { color: var(--orange); font-size: 20px; flex: 0 0 24px; }
.contact-info b { display: block; }
.contact-info small { color: #cdd8e6; }

.map-wrap { border-radius: var(--radius); overflow: hidden; margin-top: 22px; box-shadow: var(--shadow); min-height: 220px; background: var(--gray-100); }
.map-wrap iframe { width: 100%; height: 240px; border: 0; display: block; }
/* Static address card (replaces the embedded Google Maps iframe — iframe
   cannot load inside mainland China and shows as a blank gray box). */
.map-static {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,122,26,0.10), transparent 55%),
    linear-gradient(180deg, #102a4d 0%, #0b2342 100%);
  color: #eaf1fb;
  min-height: 220px;
}
.map-static-pin { width: 48px; height: 60px; }
.map-static-pin svg { width: 100%; height: 100%; display: block; }
.map-static-body h4 {
  margin: 0 0 4px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}
.map-static-meta {
  margin: 0 0 2px;
  font-size: 13px;
  color: #ffb27a;
  letter-spacing: 0.5px;
}
.map-static-hint {
  margin: 0;
  font-size: 13px;
  color: #cdd8e6;
  line-height: 1.45;
}
.map-static-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.map-static-link:hover { background: #e26910; color: #fff; }
.map-static-link svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .map-static {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 18px 18px;
  }
  .map-static-pin { width: 36px; height: 44px; }
  .map-static-link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
  }
}
.reply-promise { display: flex; align-items: center; gap: 12px; background: var(--orange-soft); color: var(--navy); padding: 16px 20px; border-radius: 10px; margin-top: 22px; font-weight: 600; }
.reply-promise .ic { font-size: 26px; color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebfd2; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 5px 0; color: #aebfd2; transition: color .2s; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand { text-align: center; }
.footer-brand .brand { display: inline-flex; justify-content: center; }
.footer-brand .site-logo--white { height: 96px; max-width: 400px; }
.footer-brand p { margin: 14px auto; font-size: 14px; max-width: 360px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 36px; padding-top: 20px; text-align: center; font-size: 13px; color: #7e90a6; }

/* ---------- Floating sidebar (back-to-top + WhatsApp + chat) ---------- */
.wa-float {
  position: fixed;
  right: 14px;
  bottom: 90px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wa-float .fab {
  width: 64px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #1a2540;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
  font-family: inherit;
}
.wa-float .fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.wa-float .fab-ico {
  font-size: 22px;
  line-height: 1;
}
.wa-float .fab-wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.wa-float .fab-tg {
  background: #229ED9;
  color: #fff;
  border-color: #229ED9;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
}
.wa-float .fab-wc {
  background: #07C160;
  color: #fff;
  border-color: #07C160;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.35);
}
.wa-float .fab-chat {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}
.wa-float .fab-top {
  display: none;
  background: #1a2540;
  color: #fff;
  border-color: #1a2540;
  box-shadow: 0 6px 18px rgba(26, 37, 64, 0.45);
}
.wa-float .fab-top.is-visible {
  display: flex;
  pointer-events: auto;
}
.wa-float .fab-top:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.55);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: var(--navy); color: #e8eef6;
  padding: 18px 0; box-shadow: 0 -4px 20px rgba(0,0,0,.25); display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-banner p { font-size: 14px; max-width: 760px; }
.cookie-banner a { color: var(--orange); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ---------- Admin ---------- */
.admin-body { background: var(--gray-100); }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: var(--navy); }
.login-card { background: #fff; border-radius: var(--radius); padding: 40px; width: 360px; box-shadow: var(--shadow-lg); }
.login-card h2 { color: var(--navy); text-align: center; margin-bottom: 8px; }
.login-card p { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #fff; padding: 22px 16px; }
.admin-side .brand { margin-bottom: 28px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; color: #cdd8e6; margin-bottom: 4px; transition: .2s; font-size: 15px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-side .logout { margin-top: 24px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.admin-main { padding: 28px 32px; overflow: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h1 { color: var(--navy); font-size: 24px; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.admin-table th { background: var(--gray-50); color: var(--navy); font-weight: 700; }
.admin-table img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions button { border: none; cursor: pointer; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.btn-edit { background: var(--navy); color: #fff; }
.btn-del { background: #ffe2e2; color: #c0392b; }
.btn-toggle { background: var(--gray-100); color: var(--navy); border: 1px solid var(--gray-300); }
.btn-toggle.is-on { background: #e6f7ec; color: #1e7a45; border-color: #9ad7b4; }
.btn-toggle.is-off { background: #fff4e0; color: #b9740a; border-color: #f0c785; }
.btn-add { background: var(--orange); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-left: 4px solid var(--orange); }
.stat-card .n { font-size: 30px; font-weight: 800; color: var(--navy); }
.stat-card .l { color: var(--muted); font-size: 14px; }
.modal-back { position: fixed; inset: 0; background: rgba(6,26,51,.6); display: none; place-items: center; z-index: 1200; padding: 20px; }
.modal-back.show { display: grid; }
.modal { background: #fff; border-radius: var(--radius); padding: 28px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; }
.modal.modal--wide { max-width: 960px; }
.modal h3 { color: var(--navy); margin-bottom: 18px; }

.admin-product-form { align-items: start; }
.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
}
.form-section.full { grid-column: 1 / -1; }
.form-section .section-label {
  grid-column: 1 / -1;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.form-section .form-note { grid-column: 1 / -1; }
.form-section .field.full { grid-column: 1 / -1; }
.admin-product-form .field label { font-size: 13px; }
.admin-product-form input[type="checkbox"] { width: auto; margin-right: 6px; }

/* ---------- Breadcrumb / misc ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--orange); }
.policy-content { max-width: 860px; }
.policy-content h2 { color: var(--navy); margin: 28px 0 10px; font-size: 22px; }
.policy-content h3 { color: var(--navy-700); margin: 20px 0 8px; font-size: 17px; }
.policy-content p, .policy-content li { color: var(--muted); margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
.cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-card.cert-license,
  .cert-card.cert-export,
  .cert-card.cert-skills,
  .cert-card.cert-inspection { grid-column: span 1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy); padding: 14px 20px; gap: 4px; box-shadow: var(--shadow-lg);
  }
  .nav-menu.open a { padding: 12px 14px; }
  .nav-menu.open .lang-switch { display: flex; margin: 6px 0 2px; align-self: flex-start; }

  .slides { height: 460px; }
  .slide-content { padding: 0 6px; }
  .section { padding: 56px 0; }
  .quote-box { grid-template-columns: 1fr; padding: 32px 24px; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
.why-media { min-height: 360px; }
.why-media img { min-height: 360px; }
  .about-block { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .about-block.reverse .about-media { order: 0; }
  .about-media--factory { grid-template-columns: 1fr; gap: 12px; }
  .about-block.factory-stack { gap: 20px; }
  .about-block.factory-stack .about-media--factory { max-width: 100%; }
  .about-block.factory-stack .about-media--factory img { min-height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-two .cat-card { height: 320px; }
  .cat-card .cat-text h3 { font-size: 32px; }
  .product-grid { grid-template-columns: 1fr; }
.cert-grid { grid-template-columns: 1fr; }
  .cert-card.cert-license,
  .cert-card.cert-export,
  .cert-card.cert-skills,
  .cert-card.cert-inspection { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 10px; bottom: 70px; gap: 8px; }
  .wa-float .fab { width: 56px; padding: 8px 4px 6px; font-size: 11px; }
  .wa-float .fab-ico { font-size: 18px; }
}

@media (max-width: 480px) {
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 9px 14px; font-size: 13px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid-two .cat-card { height: 280px; }
  .cat-card .cat-text h3 { font-size: 28px; }
.cert-grid { grid-template-columns: 1fr; }
  .cert-card.cert-license,
  .cert-card.cert-export,
  .cert-card.cert-skills,
  .cert-card.cert-inspection { grid-column: span 1; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---------- About: Company Profile (from 亿往开来公司简介.docx) ---------- */
.profile-section { background: #fff; }
.profile-intro {
  max-width: 900px; margin: 0 auto 44px; text-align: center;
  font-size: 19px; line-height: 1.9; color: var(--text);
}
/* Mission-quote segment inside .profile-intro: keep on a single line on
   desktop so it reads as one statement; allow normal wrap on narrow screens. */
.profile-intro .mission-no-break { white-space: nowrap; }
@media (max-width: 768px) {
  .profile-intro .mission-no-break { white-space: normal; }
}
.profile-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 56px;
}
.profile-stats .stat-card {
  text-align: center; padding: 22px 12px; border-left: none;
  background: var(--orange-soft);                  /* 淡淡的橙米底色：与 adv-icon / cert-icon 同色系，整页协调 */
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.profile-stats .stat-card:hover {
  background: #FFE8D0;                              /* hover 时稍微加深，给点回响 */
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(11, 37, 69, .12);
}
.profile-stats .stat-card .n { font-size: 26px; }
.profile-stats .stat-card .l { font-size: 12.5px; line-height: 1.35; margin-top: 6px; }
.profile-block { margin-top: 12px; }
.profile-sub {
  color: var(--navy); font-size: 26px; font-weight: 800; margin-bottom: 22px; text-align: center;
}
.profile-sub::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--orange); margin: 14px auto 0;
}
.profile-sub--left { text-align: left; }
.profile-sub--left::after { margin-left: 0; }
.profile-block--two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
.profile-col h3 { color: var(--navy); font-size: 22px; margin-bottom: 12px; }
.profile-col p { color: var(--muted); line-height: 1.8; }
@media (max-width: 1024px) {
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-block--two { grid-template-columns: 1fr; gap: 32px; }
  .profile-intro { font-size: 17px; }
}

/* ===== 后台：车型分类管理 ===== */
.cat-manager { grid-column: 1 / -1; margin-bottom: 8px; }
.cat-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-item { display: flex; align-items: center; gap: 8px; background: #f4f6f8; border: 1px solid var(--border, #e3e7ec); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.cat-name { font-weight: 600; color: var(--text); }
.cat-code { background: #e9edf2; color: #5a6b7b; border-radius: 4px; padding: 1px 6px; font-size: 12px; margin-left: 4px; }
.cat-del { border: 1px solid #e6b3b3; background: #fff; color: #c0392b; border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.cat-del:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.cat-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-input { flex: 1 1 140px; min-width: 120px; padding: 8px 10px; border: 1px solid var(--border, #e3e7ec); border-radius: 8px; font-size: 13px; }
.cat-hint { grid-column: 1 / -1; margin: 8px 0 0; font-size: 12px; color: var(--muted, #8a97a5); line-height: 1.6; }
