/* ============================================================
 * QANSUN (千乘) EV Export — 双语站点样式（EN LTR / AR RTL 自动镜像）
 * ============================================================ */
:root {
  --ink: #e9f5f3;
  --ink-soft: #a9c9cc;
  --bg: transparent;
  --card: rgba(15,44,58,.55);
  --line: rgba(133,204,198,.18);
  --brand: #17b3a0;
  --brand-dark: #0e8d7f;
  --gold: #c9a227;
  --radius: 16px;
  --shadow: 0 14px 38px rgba(2,18,28,.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #04162a; }
section[id], div[id] { scroll-margin-top: 80px; } /* 锚点跳转避开 sticky 导航条 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  /* 青绿 × 暗蓝渐变融合背景（全站统一，随内容延伸） */
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1200px 700px at 10% -10%, rgba(23,179,160,.20), transparent 55%),
    radial-gradient(ellipse 1100px 800px at 92% 8%, rgba(23,94,159,.26), transparent 58%),
    radial-gradient(ellipse 900px 650px at 50% 112%, rgba(14,124,107,.18), transparent 62%),
    linear-gradient(172deg, #052736 0%, #083748 26%, #0a2f4e 55%, #061e36 82%, #04162a 100%);
  color: var(--ink); line-height: 1.65;
}
[dir="rtl"] body { letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* ---------- Header（科技蓝背景 + 金色饰线流光） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(115deg, #061a3c 0%, #0a2f66 42%, #0d4a8f 78%, #1258ab 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110,175,255,.35);
  box-shadow: 0 4px 26px rgba(6,26,60,.5), inset 0 1px 0 rgba(150,200,255,.28);
  animation: slideInDown .55s ease both;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 35%, #f7e7a8 50%, var(--gold) 65%, var(--gold) 100%);
  background-size: 200% 100%;
  animation: goldFlow 5s ease-in-out infinite;
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), #14b8a6);
  color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 900;
}
.logo-img {
  height: 46px; width: auto; flex: none; border-radius: 8px;
  object-fit: contain; transform-origin: center;
  animation: logoCycle 5s ease-in-out infinite;
}
/* 首屏元素每 5 秒由 JS 重放入场动画 */
.pulse-in { animation: fadeUp .8s cubic-bezier(.22,.9,.3,1) both; }
.hero h1 em { animation: glowText 5s ease-in-out infinite; }

@keyframes logoCycle {
  0%   { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(201,162,39,0)); }
  6%   { transform: scale(1.14) rotate(-3deg); }
  12%  { transform: scale(1.02) rotate(2deg); }
  18%  { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.06); filter: drop-shadow(0 10px 22px rgba(201,162,39,.5)); }
  82%  { transform: scale(1); filter: drop-shadow(0 0 0 rgba(201,162,39,0)); }
  100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(201,162,39,0)); }
}
@keyframes goldFlow {
  0%,100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}
@keyframes slideInDown {
  0% { opacity: 0; transform: translateY(-24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes glowText {
  0%,100% { text-shadow: 0 0 0 rgba(94,234,212,0); }
  50% { text-shadow: 0 0 18px rgba(94,234,212,.55); }
}

/* ---------- 背景音乐按钮 ---------- */
.music-btn {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #14b8a6); color: #fff; font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(14,124,107,.4);
  display: grid; place-items: center;
  transition: transform .15s;
}
.music-btn:hover { transform: scale(1.1); }
.music-btn.on {
  background: linear-gradient(135deg, var(--gold), #e8c95c);
  box-shadow: 0 8px 24px rgba(201,162,39,.5);
  animation: musicBeat 5s ease-in-out infinite;
}
@keyframes musicBeat {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-img, .site-header, .site-header::after, .pulse-in, .hero h1 em, .music-btn.on { animation: none !important; }
}
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-weight: 600; font-size: .95rem; }
.nav a { color: #d7e7ff; text-shadow: 0 1px 2px rgba(6,26,60,.55); transition: color .15s; }
.nav a:hover { color: #7cc4ff; }
.lang-switch {
  border: 1.5px solid rgba(150,200,255,.75); color: #eaf3ff; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; white-space: nowrap;
  transition: all .15s;
}
.lang-switch:hover { background: #5ab0ff; color: #06224d; }

/* ---------- Hero（中东几何纹样背景） ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201,162,39,.18), transparent),
    radial-gradient(900px 420px at 8% 110%, rgba(20,184,166,.16), transparent),
    linear-gradient(160deg, #0b1526 0%, #123043 55%, #0e7c6b 130%);
  color: #fff; padding: 84px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23f3d97a' stroke-width='1.1'%3E%3Cpath d='M45 5 L55 35 L85 45 L55 55 L45 85 L35 55 L5 45 L35 35 Z'/%3E%3Ccircle cx='45' cy='45' r='13'/%3E%3Crect x='14' y='14' width='22' height='22' transform='rotate(45 25 25)'/%3E%3Crect x='54' y='54' width='22' height='22' transform='rotate(45 65 65)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px 90px;
}
.hero .container { position: relative; }
.hero .eyebrow {
  display: inline-block; background: rgba(201,162,39,.16); border: 1px solid rgba(243,217,122,.5);
  color: #f3d97a;
  padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
}
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.18; margin: 18px 0 14px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #5eead4; }
.hero p.lead { max-width: 620px; color: #c6d4e2; font-size: 1.06rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  padding: 12px 26px; border-radius: 12px; border: 0; cursor: pointer; font-size: .98rem;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(14,124,107,.35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.hero-stats { display: flex; gap: 42px; margin-top: 48px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.7rem; color: #5eead4; }
.stat span { color: #9db2c6; font-size: .88rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 36px; }

/* Markets */
.markets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.market-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .15s;
}
.market-card:hover { transform: translateY(-4px); }
.market-card .flag { font-size: 1.7rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif; }
.market-card .flag-img { width: 34px; height: auto; border-radius: 4px; display: inline-block; vertical-align: middle; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.market-card h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.market-card p { color: var(--ink-soft); font-size: .9rem; }

/* Vehicles */
#vehicles { background: rgba(5,26,40,.38); border-block: 1px solid var(--line); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-bar button {
  border: 1.5px solid var(--line); background: rgba(10,42,56,.5); color: var(--ink-soft);
  padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: all .15s;
}
.filter-bar button.active { border-color: var(--brand); color: #5eead4; background: rgba(23,179,160,.14); }
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.car-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s;
}
.car-card:hover { transform: translateY(-6px); }
.car-media { position: relative; background: linear-gradient(150deg, #0d3446, #0b2740); aspect-ratio: 16/9; }
.car-media img { width: 100%; height: 100%; object-fit: cover; }
.car-gallery { position: absolute; inset: 0; display: flex; flex-direction: column; }
.car-main { flex: 1; width: 100%; height: 100%; object-fit: cover; }
.car-thumbs { display: flex; gap: 6px; padding: 6px 8px; background: rgba(4,16,24,.65); overflow-x: auto; scrollbar-width: thin; }
.car-thumbs::-webkit-scrollbar { height: 4px; }
.car-thumbs::-webkit-scrollbar-thumb { background: rgba(133,204,198,.35); border-radius: 4px; }
.car-thumb { height: 44px; width: 70px; object-fit: cover; border-radius: 5px; border: 2px solid transparent; cursor: pointer; opacity: .72; transition: opacity .15s, border-color .15s; flex: none; }
.car-thumb:hover, .car-thumb.active { opacity: 1; border-color: var(--accent, var(--brand)); }
.car-cn { color: #8fb8c9; font-size: .82rem; margin-top: -4px; }
.car-badge {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: var(--accent, var(--brand)); color: #fff; font-size: .74rem; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.car-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-body h3 { font-size: 1.25rem; }
.car-tagline { color: var(--accent); font-weight: 700; font-size: .92rem; }
.car-desc { color: var(--ink-soft); font-size: .92rem; }
.car-specs {
  border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 12px;
  display: grid; gap: 6px;
}
.spec-row { display: flex; justify-content: space-between; gap: 14px; font-size: .88rem; }
.spec-k { color: var(--ink-soft); }
.spec-v { font-weight: 700; }
.btn-wa {
  margin-top: auto; align-self: flex-start;
  background: #25d366; color: #fff; padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: .9rem;
  transition: background .15s, transform .12s;
}
.btn-wa:hover { background: #1eb856; transform: translateY(-2px); }
.specs-note { margin-top: 22px; color: var(--ink-soft); font-size: .82rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service-card .ico { font-size: 1.6rem; }
.service-card h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.service-card p { color: var(--ink-soft); font-size: .9rem; }

/* Contact */
#contact { background: rgba(5,26,40,.38); border-top: 1px solid var(--line); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 16px; margin-top: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(23,179,160,.12); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.contact-item b { display: block; font-size: .95rem; }
.contact-item span { color: var(--ink-soft); font-size: .9rem; word-break: break-all; }
form.inquiry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; backdrop-filter: blur(8px); }
form.inquiry label { font-weight: 700; font-size: .88rem; display: block; margin-bottom: 5px; }
form.inquiry input, form.inquiry textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font: inherit; background: rgba(6,28,42,.6); color: var(--ink);
}
form.inquiry input::placeholder, form.inquiry textarea::placeholder { color: rgba(169,201,204,.55); }
form.inquiry input:focus, form.inquiry textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
form.inquiry .btn { justify-content: center; }

/* Footer */
.site-footer { background: rgba(3,16,26,.85); color: #9db2c6; padding: 44px 0; font-size: .9rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer .logo { color: #fff; font-size: 1rem; }

/* Mobile nav */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; align-items: center; row-gap: 8px; min-height: 0; padding: 10px 0; }
  .logo-img { height: 38px; }
  .nav {
    display: flex;
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: .9rem;
    margin-inline-start: 0;
  }
  .lang-switch { font-size: .78rem; padding: 4px 10px; }
  .hero { padding: 56px 0 64px; }
  .hero-stats { gap: 26px; }
  section { padding: 52px 0; }
}

/* ============================================================
 * 图片浏览灯箱（点击产品卡片图片区 → 详细图组浏览）
 * ============================================================ */
.car-media { cursor: zoom-in; }

.lb-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 10, 22, .94);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 16px 16px;
}
.lb-overlay.open { display: flex; animation: lbIn .22s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-figure {
  max-width: min(1080px, 92vw);
  max-height: 78vh;
  display: flex; flex-direction: column; align-items: center;
  margin: 0;
}
.lb-img {
  max-width: 100%; max-height: 68vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(133, 204, 198, .3);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  background: #0b2740;
}
.lb-cap {
  margin-top: 10px;
  display: flex; align-items: baseline; gap: 14px;
  color: #c6d4e2; font-size: .92rem;
}
.lb-cap .lb-title { font-weight: 800; color: #fff; }
.lb-cap .lb-count { color: #7fe3d5; font-weight: 700; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(133, 204, 198, .5);
  background: rgba(8, 32, 46, .85);
  color: #e8f6f2; font-size: 1.6rem; font-weight: 900; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #17b3a0; color: #04211c; transform: scale(1.08); }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev { top: 50%; inset-inline-start: 18px; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-end: 18px; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

.lb-thumbs {
  margin-top: 16px;
  display: flex; gap: 8px;
  max-width: 92vw;
  overflow-x: auto;
  padding: 6px 4px;
  scrollbar-width: thin;
}
.lb-thumbs::-webkit-scrollbar { height: 5px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(133, 204, 198, .35); border-radius: 4px; }
.lb-thumb {
  height: 52px; width: 82px; object-fit: cover;
  border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; opacity: .6; flex: none;
  transition: opacity .15s, border-color .15s;
}
.lb-thumb:hover, .lb-thumb.active { opacity: 1; border-color: #17b3a0; }

@media (max-width: 720px) {
  .lb-figure { max-width: 96vw; }
  .lb-prev { inset-inline-start: 8px; }
  .lb-next { inset-inline-end: 8px; }
  .lb-thumb { height: 44px; width: 68px; }
}

/* ---------- 背景音乐页脚署名（CC BY 4.0） ---------- */
.bgm-credit {
  margin: 10px 0 0; font-size: .72rem; color: rgba(169,201,204,.6);
  font-weight: 400; letter-spacing: .02em;
}
.bgm-credit a { color: rgba(133,204,198,.75); text-decoration: underline; text-underline-offset: 2px; }
.bgm-credit a:hover { color: #7cc4ff; }

/* ---------- 联系方式完整版（含 Tel / WhatsApp / WeChat / QR / Email） ---------- */
.contact-item a {
  color: var(--brand); text-decoration: none; font-size: .9rem; word-break: break-all;
  border-bottom: 1px dashed rgba(23,179,160,.35);
  transition: color .2s ease, border-color .2s ease;
}
.contact-item a:hover { color: #7cc4ff; border-bottom-color: rgba(124,196,255,.6); }
.contact-item.contact-qr img {
  max-width: 142px; height: auto; margin-top: 8px;
  border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.contact-qr .ico { align-self: flex-start; }
@media (max-width: 720px) {
  .contact-item.contact-qr img { max-width: 120px; }
}
