/* ============================================================
 * QANSUN 豪华新车宣传视频展示页（三语共用）
 * 深夜蓝 × 金色奢华风，与首页横幅同一视觉语言
 * ============================================================ */

/* ---------- 顶栏当前页高亮（科技蓝顶栏上金色高亮） ---------- */
.site-header .nav a.active {
  color: #ffd88a;
  font-weight: 800;
  position: relative;
}
.site-header .nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffd88a, #f7e7a8, #e8c15a);
}

/* ---------- 视频展示区（深色奢华底） ---------- */
#new-car-videos {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(27, 20, 64, .55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 85% 100%, rgba(232, 193, 90, .08) 0%, transparent 55%),
    linear-gradient(180deg, #0b1026 0%, #0e1a33 55%, #0b1026 100%);
  padding: 78px 0 90px;
}
#new-car-videos .section-title { color: #fff; }
#new-car-videos .section-title::after {
  content: ""; display: block; width: 74px; height: 3px; margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e8c15a, #ffd88a, #b8892e);
  box-shadow: 0 0 12px rgba(232, 193, 90, .55);
}
#new-car-videos .section-sub { color: #9db2c6; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* ---------- 视频卡片 ---------- */
.video-card {
  --accent: #e8c15a;
  background: linear-gradient(160deg, #141233 0%, #0b1026 100%);
  border: 1px solid rgba(232, 193, 90, .32);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 34px rgba(4, 8, 24, .5);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  animation: vCardUp .8s cubic-bezier(.22, .9, .3, 1) both;
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 193, 90, .75);
  box-shadow: 0 18px 44px rgba(4, 8, 24, .65), 0 0 26px rgba(232, 193, 90, .14);
}
@keyframes vCardUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 视频占位媒体区（16:9 深色 + 流光扫过） */
.v-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 60% 80% at 30% 30%, rgba(47, 196, 178, .1) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 75% 75%, rgba(232, 193, 90, .12) 0%, transparent 55%),
    linear-gradient(150deg, #17143c 0%, #0b1026 100%);
  border-bottom: 1px solid rgba(232, 193, 90, .22);
  overflow: hidden;
}
.v-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 216, 138, .13) 48%, rgba(255, 255, 255, .07) 52%, transparent 70%);
  background-size: 240% 100%;
  animation: vShimmer 4.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes vShimmer { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }

/* 官方图库（gallery 字段渲染在占位动画之上） */
.v-gallery { position: absolute; inset: 0; z-index: 1; }
.v-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: vPosterIn .7s ease .12s forwards; }
@keyframes vPosterIn { to { opacity: 1; } }
.v-thumbs {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 6px; padding: 6px 8px;
  background: rgba(4,8,24,.72);
  overflow-x: auto; scrollbar-width: thin; z-index: 4;
}
.v-thumbs::-webkit-scrollbar { height: 4px; }
.v-thumbs::-webkit-scrollbar-thumb { background: rgba(232,193,90,.35); border-radius: 4px; }
.v-thumb { height: 38px; width: 64px; object-fit: cover; border-radius: 5px; border: 2px solid transparent; cursor: pointer; opacity: .72; transition: opacity .15s, border-color .15s; flex: none; }
.v-thumb:hover, .v-thumb.active { opacity: 1; border-color: #e8c15a; }
.v-media .v-shimmer { z-index: 2; }

/* “即将上线”徽标 */
.v-soon {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: rgba(11, 16, 38, .78);
  border: 1px solid rgba(232, 193, 90, .6);
  color: #ffd88a;
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  animation: vSoonBlink 2.4s ease-in-out infinite;
  z-index: 3;
}
@keyframes vSoonBlink { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

/* 序号 */
.v-num {
  position: absolute; bottom: 10px; inset-inline-end: 14px;
  font-size: 2.2rem; font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 193, 90, .38);
  font-family: "Segoe UI", Arial, sans-serif;
  z-index: 3;
}

/* 播放按钮（金色脉冲） */
.v-play {
  position: absolute; top: 50%; left: 50%;
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 216, 138, .28), rgba(11, 16, 38, .35) 70%);
  border: 2px solid #e8c15a;
  box-shadow: 0 0 22px rgba(232, 193, 90, .45), inset 0 0 14px rgba(232, 193, 90, .22);
  display: grid; place-items: center;
  animation: vPlayPulse 2.2s ease-in-out infinite;
  z-index: 3;
}
.v-play svg { width: 30px; height: 30px; fill: #ffd88a; margin-inline-start: 3px; filter: drop-shadow(0 0 6px rgba(255, 216, 138, .7)); }
[dir="rtl"] .v-play svg { margin-inline-start: 0; margin-inline-end: 3px; }
@keyframes vPlayPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(232, 193, 90, .35), inset 0 0 12px rgba(232, 193, 90, .18); }
  50% { transform: scale(1.09); box-shadow: 0 0 34px rgba(232, 193, 90, .65), inset 0 0 18px rgba(232, 193, 90, .3); }
}

/* ===== 可播放视频（点击窗口任意位置直接播放） ===== */
.v-media[data-yt] { cursor: pointer; }
.v-media[data-yt]:focus-visible {
  outline: 2px solid #ffd88a;
  outline-offset: -2px;
}
/* 第三方高清展示视频徽标（青绿） */
.v-soon.v-soon-live {
  background: linear-gradient(135deg, #2fc4b2, #1b8f81);
  border-color: #7fe3d5;
  color: #06231f;
  animation: none;
}
/* 官方频道视频徽标（金色） */
.v-soon.v-soon-live.v-soon-official {
  background: linear-gradient(135deg, #e8c15a, #c9992f);
  border-color: #ffd88a;
  color: #1a1405;
}
.v-play.v-play-live {
  cursor: pointer;
  background: radial-gradient(circle at 32% 28%, rgba(255, 216, 138, .5), rgba(232, 193, 90, .35) 75%);
  border-color: #ffd88a;
}
.v-play.v-play-live:hover { transform: scale(1.14); }

/* 视频来源标注行（如实标注来源频道） */
.v-source {
  color: #8b9bb0; font-size: .78rem;
  border-top: 1px dashed rgba(232, 193, 90, .25);
  padding-top: 8px;
}
.v-source b { color: #ffd88a; }

/* YouTube 嵌入播放层 */
.v-player {
  position: absolute; inset: 0;
  background: #000;
  z-index: 6;
  display: grid;
}
.v-player iframe {
  width: 100%; height: 100%;
  border: 0;
}
.v-close {
  position: absolute; top: 10px; inset-inline-end: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(232, 193, 90, .7);
  background: rgba(11, 16, 38, .85);
  color: #ffd88a;
  font-size: 1.25rem; font-weight: 900; line-height: 1;
  cursor: pointer;
  z-index: 7;
}
.v-close:hover { background: #e8c15a; color: #1a1405; }

/* 卡片正文 */
.v-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.v-body h3 {
  color: #fff; font-size: 1.32rem; font-weight: 900; letter-spacing: .5px;
  text-shadow: 0 0 16px rgba(255, 255, 255, .18);
}
.v-tag { color: var(--accent); font-weight: 800; font-size: .95rem; }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip {
  border: 1px solid rgba(47, 196, 178, .55); color: #7fe3d5;
  background: rgba(47, 196, 178, .08);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 12px; border-radius: 999px;
}
.v-desc { color: #c6d4e2; font-size: .92rem; }
.v-cn { color: #8b9bb0; font-size: .8rem; border-top: 1px dashed rgba(232, 193, 90, .25); padding-top: 10px; }

/* 询价按钮（金） */
.btn-vwa {
  margin-top: auto; align-self: flex-start;
  background: linear-gradient(135deg, #e8c15a, #c9982e);
  color: #141233; padding: 10px 22px; border-radius: 10px;
  font-weight: 800; font-size: .9rem;
  box-shadow: 0 8px 20px rgba(232, 193, 90, .3);
  transition: transform .12s, box-shadow .15s;
}
.btn-vwa:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(232, 193, 90, .45); }

/* ---------- 底部提示条 ---------- */
.video-note {
  margin-top: 40px; text-align: center; color: #9db2c6; font-size: .9rem;
}
.video-note b { color: #ffd88a; }

@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; }
  .v-play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .v-play svg { width: 25px; height: 25px; }
}

/* 尊重减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  .video-card, .v-shimmer, .v-soon, .v-play, .v-poster { animation: none !important; opacity: 1 !important; }
}

/* ============================================================
 * 产品展示区（showroom.js 渲染）— 青绿×暗蓝暗色主题
 * ============================================================ */

/* ---------- 通用区块 ---------- */
#luxury-fleet, #volume-fleet, #parts { padding: 78px 0; }
#luxury-fleet { border-top: 1px solid rgba(133,204,198,.14); }
#volume-fleet { background: rgba(5,26,40,.38); border-block: 1px solid rgba(133,204,198,.14); }
#parts { border-top: 1px solid rgba(133,204,198,.14); }
#contact .ct2 { margin-top: 44px; }

/* ---------- 1. 豪华车展区 ---------- */
.lux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 12px;
}
.lux-card {
  --accent: #e8c15a;
  background: linear-gradient(160deg, rgba(16,44,58,.72) 0%, rgba(8,32,46,.85) 100%);
  border: 1px solid rgba(133,204,198,.22);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 14px 34px rgba(2,18,28,.5);
  transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.lux-card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .85;
}
.lux-card:hover {
  transform: translateY(-5px);
  border-color: rgba(133,204,198,.5);
  box-shadow: 0 20px 44px rgba(2,18,28,.6), 0 0 24px rgba(23,179,160,.12);
}
.lux-top { display: flex; align-items: center; gap: 10px; }
.lux-star { color: var(--accent); font-size: 1.15rem; filter: drop-shadow(0 0 8px rgba(232,193,90,.6)); }
.lux-card h3 { color: #fff; font-size: 1.28rem; font-weight: 900; letter-spacing: .4px; }
.lux-tag { color: var(--accent); font-weight: 800; font-size: .92rem; }
.lux-card .car-specs { background: transparent; }
.lux-card .btn-wa { align-self: flex-start; }

/* ---------- 2. 走量亲民车展区（品牌分区） ---------- */
.brand-block { margin-top: 34px; }
.brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brand-dot {
  width: 12px; height: 12px; border-radius: 3px; flex: none;
  background: linear-gradient(135deg, #17b3a0, #2fc4b2);
  box-shadow: 0 0 12px rgba(47,196,178,.6);
}
.brand-head h3 { color: #fff; font-size: 1.3rem; font-weight: 900; letter-spacing: .6px; }
.brand-count {
  border: 1.5px solid rgba(232,193,90,.55); color: #ffd88a;
  font-size: .76rem; font-weight: 800; border-radius: 999px; padding: 2px 11px;
}
.vol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.vol-card {
  background: linear-gradient(160deg, rgba(15,44,58,.6) 0%, rgba(8,32,46,.78) 100%);
  border: 1px solid rgba(133,204,198,.18);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .16s, border-color .16s;
}
.vol-card:hover { transform: translateY(-4px); border-color: rgba(133,204,198,.45); }
.vol-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vol-head h4 { color: #fff; font-size: 1.08rem; font-weight: 800; }
.vol-alias { color: #8fb8c9; font-size: .8rem; }
.vol-power {
  align-self: flex-start;
  border: 1px solid rgba(47,196,178,.5); color: #7fe3d5; background: rgba(47,196,178,.08);
  font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  padding: 2px 11px; border-radius: 999px;
}
.vol-nums { display: flex; align-items: baseline; gap: 12px; }
.vol-count { color: #5eead4; font-size: 1.55rem; font-weight: 900; letter-spacing: .4px; }
.vol-yoy { font-size: .8rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.vol-yoy.up { color: #6ee7a8; background: rgba(52,199,123,.12); border: 1px solid rgba(52,199,123,.35); }
.vol-yoy.down { color: #f3a0a0; background: rgba(224,90,90,.1); border: 1px solid rgba(224,90,90,.3); }
.vol-yoy.new { color: #ffd88a; background: rgba(232,193,90,.1); border: 1px solid rgba(232,193,90,.4); }
.vol-note { color: #b9d2d5; font-size: .88rem; }
.vol-card .btn-vwa { margin-top: auto; align-self: flex-start; }
.vol-src { margin-top: 30px; color: #7d9aa6; font-size: .8rem; border-top: 1px dashed rgba(133,204,198,.2); padding-top: 14px; }

/* ---------- 3. 车配件展区 ---------- */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.part-card {
  background: linear-gradient(160deg, rgba(15,44,58,.6) 0%, rgba(8,32,46,.78) 100%);
  border: 1px solid rgba(133,204,198,.18);
  border-radius: 14px;
  padding: 22px;
  transition: transform .16s, border-color .16s;
}
.part-card:hover { transform: translateY(-4px); border-color: rgba(232,193,90,.45); }
.part-card .ico {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(23,179,160,.12); font-size: 1.35rem;
  margin-bottom: 12px;
}
.part-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.part-card p { color: var(--ink-soft); font-size: .88rem; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 720px) {
  #luxury-fleet, #volume-fleet, #parts { padding: 52px 0; }
  .vol-count { font-size: 1.3rem; }
}

/* ---------- 视频加载失败兜底提示 ---------- */
.v-fallback {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; font-size: .78rem; text-align: center;
  background: linear-gradient(0deg, rgba(8,12,18,.92), rgba(8,12,18,.55));
  border-top: 1px solid rgba(232,193,90,.25);
  animation: vPosterIn .5s ease forwards;
}
.v-fallback span { color: rgba(214,226,232,.85); }
.v-fallback a {
  color: #e8c15a; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.v-fallback a:hover { color: #fff; }
