:root {
  /* 与固定顶栏对齐，供筛选侧栏 sticky 使用（略大于 logo+padding，避免被挡） */
  --header-sticky-offset: calc(72px + env(safe-area-inset-top));
  /* 筛选侧栏可视高度：顶栏下沿至屏幕底，无额外缩进留白 */
  --sidebar-filter-fill-height: calc(100vh - var(--header-sticky-offset));
  --bg: #0a0b0f;
  --bg-secondary: #0f1115;
  --panel: #171a21;
  --muted: #8b93a7;
  --text: #e8ecf8;
  --brand: #ff6b35;
  --brand-light: #ff8c69;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --card: #1d2129;
  --border: #2b2b2b;
  --gold-start: #f7a614;
  --gold-end: #ffcc6a;
  --purple: #1c2140;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --sticky-offset: 280px;
  /* 选车页侧栏：与顶栏下沿至屏幕底的可视高度一致（切换筛选展示时高度不变） */
  --car-sidebar-viewport-height: calc(100vh - 56px);
}

/* 开屏动画：苹果发布会风（纯黑场、Logo 由虚到实「对焦」、舞台柔光、倒影、克制缓动） */
.splash-screen--apple {
  background: #000000;
  animation: splashFadeOut 0.85s cubic-bezier(0.25, 0.1, 0.25, 1) 3.65s forwards;
}

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.splash-screen.splash-hidden {
  display: none;
}

.splash-bg-apple {
  position: absolute;
  inset: 0;
  background: #000000;
  pointer-events: none;
}

/* 近年发布会常见：极淡冷暖光晕层（慢显，不抢 Logo） */
.splash-bg-apple::before {
  content: '';
  position: absolute;
  inset: -5%;
  background:
    radial-gradient(ellipse 70% 55% at 45% 42%, rgba(45, 78, 120, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 62% 58%, rgba(95, 40, 65, 0.08) 0%, transparent 50%);
  opacity: 0;
  animation: appleAmbientMesh 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes appleAmbientMesh {
  0%,
  12% {
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  100% {
    opacity: 0.85;
  }
}

/* 顶部柔光（略带动，接近盘点片里的舞台灯感） */
.splash-spotlight {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 58% 48% at 50% 38%, rgba(55, 55, 58, 0.5) 0%, transparent 58%);
  pointer-events: none;
  opacity: 0;
  animation: appleSpotlightIn 3.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes appleSpotlightIn {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  28% {
    opacity: 1;
  }
  55% {
    transform: translate(-1.5%, 0.8%) scale(1.02);
  }
  100% {
    opacity: 0.92;
    transform: translate(0.5%, -0.3%) scale(1);
  }
}

.splash-vignette-apple {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 100px rgba(0, 0, 0, 0.85),
    inset 0 -80px 140px rgba(0, 0, 0, 0.55);
}

.splash-floor-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 150%;
  max-width: 1000px;
  height: 46vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 48% 36% at 50% 100%, rgba(255, 255, 255, 0.09) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  animation: appleFloorGlow 3.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes appleFloorGlow {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.88);
  }
  32% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0.92;
    transform: translateX(-50%) scale(1);
  }
}

/* 中心扩散环（历年 Keynote / 盘点类视频里常见的 ripple） */
.splash-pulse-rings {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 1;
  width: min(300px, 78vw);
  height: min(300px, 78vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.splash-pulse-ring {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  opacity: 0;
  animation: appleRipple 2.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.15s forwards;
}

.splash-pulse-ring--delayed {
  animation-delay: 0.45s;
}

@keyframes appleRipple {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  12% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vh, 28px);
  animation: splashContentFade 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Logo + 倒影：整体做「对焦」模糊 → 清晰（类 AE / Keynote） */
.splash-logo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, filter, opacity;
  animation: appleLogoStage 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo-img {
  display: block;
  width: min(200px, 48vw);
  height: auto;
  position: relative;
  z-index: 1;
}

/* Logo 与倒影之间的细亮缝（舞台边缘感） */
.splash-stage-line {
  width: min(200px, 48vw);
  height: 1px;
  margin-top: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.12) 80%,
    transparent 100%
  );
  opacity: 0;
  animation: appleStageLine 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes appleStageLine {
  0%,
  20% {
    opacity: 0;
    transform: scaleX(0.6);
  }
  32%,
  72% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

.splash-reflection {
  width: min(200px, 48vw);
  margin-top: 0;
  height: clamp(52px, 15vw, 76px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 90%);
  pointer-events: none;
}

.splash-logo-img--mirror {
  width: 100%;
  height: auto;
  transform: scaleY(-1);
  opacity: 0.32;
  filter: blur(0.3px);
}

.splash-tagline {
  margin: 0;
  font-size: clamp(12px, 2.8vw, 14px);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: rgba(255, 255, 255, 0.38);
  opacity: 0;
  transform: translateY(12px);
  animation: appleTagline 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* 淡入 + 轻微缩放，无「对焦」模糊（末段仅透明度淡出） */
@keyframes appleLogoStage {
  0% {
    opacity: 0;
    filter: brightness(1.12);
    transform: scale(1.12);
  }
  14% {
    opacity: 0.5;
    filter: brightness(1.06);
    transform: scale(1.05);
  }
  28% {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
  }
  38% {
    filter: brightness(1);
    transform: scale(1.014);
  }
  42% {
    transform: scale(1);
  }
  72% {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    filter: brightness(1.04);
    transform: scale(1.04);
  }
}

@keyframes appleTagline {
  0%,
  18% {
    opacity: 0;
    transform: translateY(16px);
  }
  32%,
  68% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes splashFadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes splashContentFade {
  0%,
  100% {
    opacity: 0;
  }
  6%,
  90% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-bg-apple::before {
    animation: none;
    opacity: 0.6;
  }
  .splash-bg-apple,
  .splash-spotlight,
  .splash-floor-glow,
  .splash-stage-line,
  .splash-pulse-ring {
    animation: none;
  }
  .splash-pulse-ring,
  .splash-pulse-ring--delayed {
    opacity: 0;
  }
  .splash-spotlight {
    opacity: 0.9;
    transform: none;
  }
  .splash-floor-glow {
    opacity: 0.85;
    transform: translateX(-50%) scale(1);
  }
  .splash-stage-line {
    opacity: 0.5;
    transform: none;
  }
  .splash-logo-stage {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
  .splash-tagline {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .splash-content {
    animation: none;
  }
  .splash-screen--apple {
    animation: splashFadeOut 0.5s ease-out 1s forwards;
  }
}

/* ─── Pro 片头结构 + 品牌橙（--brand / --brand-light）影棚光与车漆高光 ─── */
.splash-screen--keynote-pro {
  background: #000000;
  animation: splashFadeOut 0.85s cubic-bezier(0.25, 0.1, 0.25, 1) 3.65s forwards;
}

.splash-screen--keynote-pro .splash-pulse-rings {
  display: none;
}

.splash-screen--keynote-pro .splash-bg-apple,
.splash-screen--keynote-pro .splash-bg-apple::before {
  background: #000000;
  animation: none;
  opacity: 0;
}

/* 顶光：暖橙柔光（品牌色） */
.splash-screen--keynote-pro .splash-spotlight {
  background: radial-gradient(
    ellipse 52% 44% at 50% 36%,
    color-mix(in srgb, var(--brand) 22%, transparent) 0%,
    color-mix(in srgb, var(--brand-light) 8%, transparent) 40%,
    transparent 62%
  );
  animation: keynoteSpotlightIn 4.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes keynoteSpotlightIn {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  26% {
    opacity: 1;
  }
  72% {
    opacity: 0.62;
    transform: translate(0.2%, -0.15%) scale(1.008);
  }
  100% {
    opacity: 0.52;
    transform: translate(0.15%, -0.1%) scale(1);
  }
}

.splash-screen--keynote-pro .splash-vignette-apple {
  box-shadow:
    inset 0 0 140px rgba(0, 0, 0, 0.94),
    inset 0 -120px 200px rgba(12, 4, 0, 0.55),
    inset 0 -40px 80px color-mix(in srgb, var(--brand) 12%, transparent);
}

.splash-screen--keynote-pro .splash-floor-glow {
  background: radial-gradient(
    ellipse 48% 34% at 50% 100%,
    color-mix(in srgb, var(--brand) 28%, transparent) 0%,
    color-mix(in srgb, var(--brand-light) 6%, transparent) 45%,
    transparent 76%
  );
  animation: keynoteFloorGlow 4.3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes keynoteFloorGlow {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0.72;
    transform: translateX(-50%) scale(1.015);
  }
}

/* 与 car.js 4.5s 对齐；Pro 片头常见极轻 dolly-in */
.splash-screen--keynote-pro .splash-content {
  animation: keynoteSplashContent 4.5s cubic-bezier(0.2, 0.08, 0.2, 1) forwards;
}

@keyframes keynoteSplashContent {
  0% {
    opacity: 0;
    transform: scale(0.988);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1.022);
  }
  92% {
    opacity: 0.88;
    transform: scale(1.026);
  }
  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

.splash-screen--keynote-pro .splash-logo-stage {
  animation: keynoteLogoStage 4.5s cubic-bezier(0.18, 1, 0.3, 1) forwards;
}

.splash-screen--keynote-pro .splash-logo-rim {
  position: relative;
  width: min(200px, 48vw);
  line-height: 0;
}

.splash-screen--keynote-pro .splash-logo-img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0)
    drop-shadow(0 0 0.5px color-mix(in srgb, var(--brand-light) 95%, white))
    drop-shadow(0 0 2px color-mix(in srgb, var(--brand) 75%, transparent))
    drop-shadow(0 0 5px color-mix(in srgb, var(--brand) 55%, transparent))
    drop-shadow(-1px -2px 7px color-mix(in srgb, var(--brand) 40%, transparent))
    drop-shadow(2px 2px 12px color-mix(in srgb, var(--gold-end) 35%, var(--brand) 65%))
    drop-shadow(0 0 28px color-mix(in srgb, var(--brand) 28%, transparent));
}

.splash-screen--keynote-pro .splash-logo-rim-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: url("media-webp/photos/index/logo/logo2.webp");
  mask-image: url("media-webp/photos/index/logo/logo2.webp");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.24s ease;
}

/* 横向高光：金橙掠过高光（品牌漆） */
.splash-screen--keynote-pro .splash-logo-rim-sheen-inner {
  position: absolute;
  left: -30%;
  top: -35%;
  width: 55%;
  height: 200%;
  margin: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 28%,
    color-mix(in srgb, var(--brand) 18%, transparent) 40%,
    color-mix(in srgb, var(--gold-end) 45%, white) 48%,
    color-mix(in srgb, var(--brand-light) 70%, white) 52%,
    color-mix(in srgb, var(--brand) 35%, transparent) 60%,
    transparent 72%,
    transparent 100%
  );
  filter: blur(0.35px);
  transform: translateX(-120%) skewX(-10deg);
  opacity: 0;
  animation: keynoteSpecularSweep 4.5s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

@keyframes keynoteSpecularSweep {
  0% {
    transform: translateX(-130%) skewX(-10deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  42% {
    transform: translateX(42%) skewX(-10deg);
    opacity: 1;
  }
  68% {
    opacity: 0.35;
  }
  100% {
    transform: translateX(130%) skewX(-10deg);
    opacity: 0;
  }
}

.splash-screen--keynote-pro .splash-logo-rim--reflect {
  width: 100%;
}

.splash-screen--keynote-pro .splash-logo-rim-sheen--reflect {
  opacity: 0;
}

.splash-screen--keynote-pro.splash-mask-ready .splash-logo-rim-sheen {
  opacity: 0.92;
}

.splash-screen--keynote-pro.splash-mask-ready .splash-logo-rim-sheen--reflect {
  opacity: 0.42;
}

.splash-screen--keynote-pro .splash-logo-rim-sheen--reflect .splash-logo-rim-sheen-inner {
  animation: keynoteSpecularSweepReflect 4.5s cubic-bezier(0.33, 0, 0.2, 1) 0.12s forwards;
}

@keyframes keynoteSpecularSweepReflect {
  0% {
    transform: translateX(125%) skewX(10deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  48% {
    transform: translateX(-38%) skewX(10deg);
    opacity: 0.55;
  }
  100% {
    transform: translateX(-125%) skewX(10deg);
    opacity: 0;
  }
}

.splash-screen--keynote-pro .splash-logo-img--mirror {
  opacity: 0.44;
  filter: brightness(0)
    drop-shadow(0 0 0.5px color-mix(in srgb, var(--brand-light) 80%, transparent))
    drop-shadow(0 0 3px color-mix(in srgb, var(--brand) 45%, transparent))
    drop-shadow(0 0 10px color-mix(in srgb, var(--brand) 25%, transparent));
}

.splash-screen--keynote-pro .splash-reflection {
  width: min(200px, 48vw);
}

@keyframes keynoteLogoStage {
  0% {
    opacity: 0;
    filter: brightness(1.06);
  }
  12% {
    opacity: 0.88;
    filter: brightness(1);
  }
  24% {
    opacity: 1;
    filter: brightness(1);
  }
  78% {
    opacity: 1;
    filter: brightness(1);
  }
  100% {
    opacity: 0;
    filter: brightness(1.02);
  }
}

.splash-screen--keynote-pro .splash-stage-line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--brand) 22%, transparent) 22%,
    color-mix(in srgb, var(--brand-light) 55%, white) 50%,
    color-mix(in srgb, var(--brand) 22%, transparent) 78%,
    transparent 100%
  );
  animation: keynoteStageLine 4.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes keynoteStageLine {
  0%,
  18% {
    opacity: 0;
    transform: scaleX(0.58);
  }
  28%,
  76% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

.splash-screen--keynote-pro .splash-tagline {
  color: color-mix(in srgb, var(--brand-light) 72%, rgba(255, 248, 245, 0.9));
  font-weight: 400;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  animation: keynoteTagline 4.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes keynoteTagline {
  0%,
  15% {
    opacity: 0;
    transform: translateY(12px);
  }
  26%,
  75% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen--keynote-pro .splash-logo-rim-sheen-inner {
    animation: none;
    opacity: 0;
    transform: none;
  }
  .splash-screen--keynote-pro .splash-spotlight,
  .splash-screen--keynote-pro .splash-floor-glow,
  .splash-screen--keynote-pro .splash-stage-line {
    animation: none;
  }
  .splash-screen--keynote-pro .splash-spotlight {
    opacity: 0.42;
    transform: none;
  }
  .splash-screen--keynote-pro .splash-floor-glow {
    opacity: 0.48;
    transform: translateX(-50%) scale(1);
  }
  .splash-screen--keynote-pro .splash-stage-line {
    opacity: 0.4;
    transform: none;
  }
  .splash-screen--keynote-pro .splash-logo-stage {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .splash-screen--keynote-pro .splash-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .splash-screen--keynote-pro .splash-tagline {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .splash-screen--keynote-pro {
    animation: splashFadeOut 0.5s ease-out 1s forwards;
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

html, body {
  height: 100%;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 1400px 800px at 50% 0%, #1a1d29 0%, var(--bg) 50%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-text-size-adjust: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) clamp(20px, 8vw, 120px) 16px;
  background: rgba(10, 11, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.header-logo-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-menu-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 0;
  border-radius: 10px;
}

.header-logo-menu-btn:focus {
  outline: none;
}

.header-logo-menu-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.header-logo-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 148px;
  padding: 6px 0;
  background: rgba(18, 20, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  z-index: 220;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-logo-menu-panel a {
  display: block;
  padding: 12px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}

.header-logo-menu-panel a:hover,
.header-logo-menu-panel a:focus-visible {
  background: rgba(255, 107, 53, 0.12);
  color: var(--brand);
}

.header-logo-menu-panel a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-logo-center {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: none;
  pointer-events: none;
}

@media (min-width: 1025px) {
  .header-logo-menu-btn {
    pointer-events: none;
    cursor: default;
  }
}

@media (max-width: 1024px) {
  .header-logo-menu-btn {
    cursor: pointer;
    pointer-events: auto;
  }

  .header-logo-menu-panel:not([hidden]) {
    display: block;
  }
}

@media (max-width: 480px) {
  .header-logo-menu-panel {
    min-width: 132px;
  }

  .header-logo-menu-panel a {
    padding: 10px 14px;
    font-size: 14px;
  }
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.mobile-filter-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.close-filter-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-logo-right {
  height: 32px;
  width: auto;
  display: block; /* 恢复显示 */
}

.brand-text {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--text);
}

.header-cta {
  font-size: 14px;
  padding: 8px 16px;
}

/* =========================================================
   选车天数弹窗 (Days Select Modal)
   ========================================================= */
.days-select-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* 必须比筛选面板等还要高 */
  opacity: 1;
  transition: opacity 0.3s ease;
}

.days-select-modal[hidden] {
  display: none;
  opacity: 0;
}

.days-select-content {
  position: relative;
  background: #fff; /* 恢复白底背景 */
  color: #333; /* 恢复深色文字 */
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  padding: 32px 24px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* 恢复黑色阴影 */
  animation: modal-pop 0.3s ease;
}

@keyframes modal-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.days-select-header {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 32px;
  padding: 0;
  border: none; /* 去掉边框 */
  width: auto;
  letter-spacing: 1px;
}

.days-select-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.days-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.days-label {
  font-size: 15px;
  font-weight: 500;
  width: 120px; /* 把宽度稍微调大一点，容纳括号里的文字 */
  text-align: left;
}

.days-price {
  font-size: 16px;
  color: #ff6b35; /* 在白底上，恢复橙色高亮价格 */
  flex: 1;
  text-align: center;
  font-weight: 700;
}

.days-confirm-btn {
  padding: 8px 24px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%); /* 按钮换成主题橙色 */
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3); /* 按钮橙色光晕 */
}

.days-confirm-btn:hover {
  background: linear-gradient(135deg, #ff8c42 0%, #ffa56a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

.days-select-footer {
  text-align: center;
  font-size: 13px;
  color: #888; /* 恢复深灰色提示文字 */
  margin-top: 10px;
}

.days-select-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s ease;
}

.days-select-close:hover {
  color: #333;
  background: transparent; /* 去除悬浮背景，只变深颜色 */
}

.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
}

.phone-modal[hidden] {
  display: none;
}

.phone-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.phone-modal__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  border-radius: 14px;
  padding: 18px 16px 14px;
  background: rgba(17, 20, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.phone-modal__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
}

.phone-modal__input {
  margin-top: 12px;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  padding: 0 12px;
  outline: none;
}

.phone-modal__error {
  margin: 8px 2px 0;
  color: #ff8f8f;
  font-size: 13px;
}

.phone-modal__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.phone-modal__actions--center {
  justify-content: center;
}

.phone-modal__card--success {
  width: min(88vw, 320px);
}

.phone-modal__card--success .phone-modal__title {
  text-align: center;
}

.phone-modal__btn {
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
}

.phone-modal__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f3f5ff;
}

.phone-modal__btn--primary {
  background: rgba(255, 107, 53, 0.24);
  border-color: rgba(255, 107, 53, 0.62);
  color: #ffe7dc;
}

/* Hero Section */
/* Hero section has been moved to index.html */
/* Keep these if needed by index but we already separated them, 
   so we can safely leave them or remove them. We'll just leave them for safety 
   but they won't be used in index.html anymore */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to top, rgba(10, 11, 15, 1) 0%, rgba(10, 11, 15, 0.4) 30%, transparent 70%),
    linear-gradient(to right, rgba(10, 11, 15, 0.8) 0%, transparent 50%);
  z-index: 2;
}

/* 电影级颗粒感滤镜 */
.hero-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: left;
  max-width: 1200px;
  width: 100%;
  padding: 0 clamp(20px, 8vw, 120px) 12vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  margin-left: 5vw; /* 向右移动整个内容区域 */
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-eyebrow {
  font-family: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  font-size: clamp(14px, 2vw, 24px);
  font-weight: 500; /* 变细 */
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 0;
  border: none;
  background: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  backdrop-filter: none;
  margin-bottom: 0;
  transform: none;
  display: inline-flex;
  align-items: baseline;
}

.hero-eyebrow-highlight {
  font-size: clamp(24px, 4vw, 42px); /* 比 racing 大，比下面 mango(40-90px) 小 */
  font-weight: 800;
  margin-left: 16px; /* 往右一点 */
  font-style: italic; /* 字体倾斜 */
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  
  /* 流光渐变样式 */
  background: linear-gradient(90deg, #ff6b35, #ffcc6a, #ff6b35, #ffcc6a);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 4s linear infinite;
  
  /* 发光阴影效果（由于文字透明度，阴影需加在伪元素或使用 filter） */
  filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.5));
  
  transform: scaleX(1) scaleY(1); /* 重置父级的缩放影响（如果有的话） */
}

@keyframes textShine {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

.hero-title {
  font-family: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 500; /* 变细 */
  line-height: 1;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
  white-space: nowrap;
  font-style: normal;
  color: #fff;
  transform: scaleX(0.7) scaleY(1.3);
  transform-origin: left;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 50px;
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}



/* 进场动画 */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滚动提示指示器 */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: clamp(20px, 8vw, 120px);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 6px;
  background: var(--brand);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* Buttons */
.btn-primary {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, var(--brand), #ff3b00);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: none;
}

.btn-primary:hover::after {
  animation: sweepLight 0.8s ease-in-out;
}

@keyframes sweepLight {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-ghost {
  appearance: none;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

a.btn-primary {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

/* Content Layout */
.content-wrapper {
  display: flex;
  height: calc(100vh - 64px);
  padding: 0 clamp(20px, 8vw, 120px);
  margin-top: 64px; /* header 是 16px padding + 32px logo + 16px padding = 64px */
  overflow: hidden;
}

/* 选车页：整区纵向滚动（列表到底后再滚出现 footer）；侧栏见下方 sticky */
#carSection.content-wrapper {
  flex-direction: column;
  align-items: stretch;
  height: calc(100vh - 56px);
  margin-top: 56px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#carSection.content-wrapper::-webkit-scrollbar {
  display: none;
}

#carSection .car-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex: 1 0 auto;
  width: 100%;
  min-height: calc(100vh - 56px);
  min-width: 0;
}

/* 选车主栏：仅横向占满，高度随列表增高，不再单独纵向滚动 */
#carSection .main-content {
  flex: 1;
  min-width: 0;
  height: auto;
  overflow: visible;
}

/* Sidebar Filter：基础样式；进入选车区后 body.car-section-active 时吸顶（见下方媒体查询） */
.sidebar-filter {
  width: 280px;
  background: transparent;
  border-right: 1px solid var(--border);
  padding: 10px 14px 12px;
  align-self: flex-start;
  flex-shrink: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* 滚轮/触控链式滚动不冒泡到 #carSection；与 car.js 侧栏 wheel 配合 */
  overscroll-behavior: contain;
  /* 筛选芯片行高：分类/品牌网格用固定行高，避免切换筛选时上下抖动 */
  --filter-chip-row: 40px;
  /* 侧栏标签网格行列间距（芯片之间留白） */
  --filter-chip-gap: 9px;
}

/* 桌面端：侧栏 sticky，随 #carSection 滚动；列表滚到底后再滚 footer 时整行上移 */
@media (min-width: 769px) {
  #carSection .sidebar-filter {
    position: sticky;
    top: 0;
    align-self: flex-start;
    width: 280px;
    flex-shrink: 0;
    height: var(--car-sidebar-viewport-height);
    min-height: var(--car-sidebar-viewport-height);
    max-height: var(--car-sidebar-viewport-height);
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* 侧栏固定高度内筛选块整体垂直居中；展开品牌长列表时见 .brand-expanded-scroll */
    justify-content: center;
    align-items: stretch;
    padding: clamp(10px, 2vh, 22px) 12px clamp(12px, 2.5vh, 26px);
    z-index: 2;
  }

  #carSection .sidebar-filter.brand-expanded-scroll {
    overflow-y: auto;
    justify-content: flex-start;
  }

  body.car-section-active #carSection .sidebar-filter {
    align-self: flex-start;
  }
}

.sidebar-filter::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera 隐藏滚动条 */
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.filter-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.filter-result-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.filter-group {
  margin-bottom: 16px;
}

/* 价格与重置之间再收一点，避免重置按钮贴底或被裁切 */
.sidebar-filter .filter-group:last-of-type {
  margin-bottom: 10px;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: start;
}

/* 侧栏：场景 / 分类 / 品牌芯片统一高度与内边距，避免点一侧筛选后另一侧「突然变高」或三块高度不一致 */
.sidebar-filter .filter-buttons {
  align-items: stretch;
  gap: var(--filter-chip-gap, 9px);
}

/* :not(.hidden-brand) 必须保留，否则 display:inline-flex 会盖过 .hidden-brand{display:none}，折叠时多余品牌会全部露出来 */
.sidebar-filter .filter-buttons .filter-btn:not(.hidden-brand) {
  box-sizing: border-box;
  min-height: var(--filter-chip-row, 40px);
  height: var(--filter-chip-row, 40px);
  max-height: var(--filter-chip-row, 40px);
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 0;
  text-align: center;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

.filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-btn.active {
  background: transparent;
  color: white;
  border-color: white;
}

.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-bottom: 18px solid white;
  border-left: 18px solid transparent;
}

.filter-btn.active::before {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 4px;
  height: 8px;
  border: solid black;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  z-index: 1;
}

/* 品牌展开按钮逻辑 */
.hidden-brand {
  display: none;
}

/* 默认品牌筛选区域：固定4行，避免点击时下方内容上移 */
#brandFilterButtons:not(.brand-filter--category-mode) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, var(--filter-chip-row, 40px));
  gap: var(--filter-chip-gap, 9px);
  min-height: calc(4 * var(--filter-chip-row, 40px) + 3 * var(--filter-chip-gap, 9px));
  align-items: stretch;
  contain: layout;
}

/* 默认模式展开时，自然展开 */
#brandFilterButtons:not(.brand-filter--category-mode).brand-expanded {
  grid-template-rows: unset;
  grid-auto-rows: minmax(var(--filter-chip-row, 40px), auto);
  min-height: 0;
}

/* 需高于 .sidebar-filter .filter-buttons .filter-btn:not(.hidden-brand) 的 display，否则展开后仍被盖住 */
#brandFilterButtons.brand-expanded .filter-btn.hidden-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--filter-chip-row, 40px);
  height: var(--filter-chip-row, 40px);
  max-height: var(--filter-chip-row, 40px);
  padding: 0 8px;
  box-sizing: border-box;
  line-height: 1.2;
}

/* 需带 #id，否则盖不过侧栏统一芯片的 display:inline-flex */
#brandFilterButtons.brand-expanded .expand-btn {
  display: none;
}

/* 选分类后：品牌区固定 4 行 × 3 列；「全部」+ 最多 10 个品牌占前 11 格，超过时第 12 格为「...」展开 */
#brandFilterButtons.brand-filter--category-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--filter-chip-gap, 9px);
}

/* 折叠：固定行高 + 容器 min-height，避免可选数量变化时仍有像素级上移 */
#brandFilterButtons.brand-filter--category-mode:not(.brand-expanded) {
  grid-template-rows: repeat(4, var(--filter-chip-row, 40px));
  align-items: stretch;
  min-height: calc(4 * var(--filter-chip-row, 40px) + 3 * var(--filter-chip-gap, 9px));
  contain: layout;
}

#brandFilterButtons.brand-filter--category-mode.brand-expanded {
  grid-template-rows: unset;
  grid-auto-rows: minmax(var(--filter-chip-row, 40px), auto);
  align-items: start;
  min-height: 0;
}

#brandFilterButtons.brand-filter--category-mode .filter-btn.hidden-brand {
  display: block;
}

#brandFilterButtons.brand-filter--category-mode:not(.brand-expanded) .filter-btn.is-overflow-hidden {
  display: none !important;
}

#brandFilterButtons.brand-filter--category-mode.brand-expanded .filter-btn.is-overflow-hidden {
  display: block !important;
}

/* 默认分类筛选区域：固定4行，避免点击品牌时下方内容上移 */
#categoryFilterButtons:not(.category-filter--brand-mode) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, var(--filter-chip-row, 40px));
  gap: var(--filter-chip-gap, 9px);
  align-items: stretch;
  min-height: calc(4 * var(--filter-chip-row, 40px) + 3 * var(--filter-chip-gap, 9px));
  contain: layout;
}

/* 选品牌后：分类区固定 4 行 × 3 列（全部 + 8 个分类，无「...」） */
#categoryFilterButtons.category-filter--brand-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, var(--filter-chip-row, 40px));
  gap: var(--filter-chip-gap, 9px);
  align-items: stretch;
  min-height: calc(4 * var(--filter-chip-row, 40px) + 3 * var(--filter-chip-gap, 9px));
  contain: layout;
}

/* Price Slider */
.price-range-labels {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.price-slider-container {
  position: relative;
  height: 20px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.slider-track {
  position: absolute;
  height: 4px;
  background: var(--border);
  width: 100%;
  border-radius: 2px;
  z-index: 1;
}

.slider-track::before {
  content: '';
  position: absolute;
  height: 100%;
  background: white; /* 两个滑块之间的高亮颜色 */
  left: var(--left, 0%);
  right: var(--right, 0%);
  border-radius: 2px;
}

.price-slider {
  position: absolute;
  width: 100%;
  pointer-events: none;
  appearance: none;
  background: none;
  height: 4px;
  outline: none;
  z-index: 2;
  margin: 0;
}

.price-slider::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none; /* 移除边框，确保圆形完整 */
  box-shadow: 0 0 0 2px var(--brand); /* 用阴影代替边框，避免被裁切 */
  position: relative;
}

.price-slider::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 2px var(--brand);
}

.price-range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.reset-btn {
  width: 100%;
  background: white;
  color: black;
  border: none;
  padding: 10px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sidebar-filter .reset-btn {
  padding: 13px 16px;
  min-height: 48px;
  margin-top: 10px;
}

.reset-btn:hover {
  background: #f0f0f0;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 40px;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-content::-webkit-scrollbar {
  display: none;
}

#carGrid {
  scroll-margin-top: calc(72px + env(safe-area-inset-top));
}

/* 返回选车区（悬浮；默认可见，仅首屏 Hero 时 .is-at-hero 隐藏） */
.back-to-cars-btn {
  position: fixed;
  z-index: 500;
  right: clamp(16px, 4vw, 32px);
  bottom: calc(114px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(23, 26, 33, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    visibility 0.3s ease;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.back-to-cars-btn.is-at-hero {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.back-to-cars-btn:hover {
  border-color: rgba(255, 107, 53, 0.55);
  box-shadow:
    0 6px 28px rgba(255, 107, 53, 0.2),
    0 0 0 1px rgba(255, 107, 53, 0.15) inset;
}

.back-to-cars-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.back-to-cars-icon {
  flex-shrink: 0;
  color: var(--brand-light);
  display: block;
}

.back-to-cars-label {
  color: var(--gold-end);
}

.car-checklist-btn {
  position: fixed;
  z-index: 500;
  right: clamp(16px, 4vw, 32px);
  bottom: calc(188px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(23, 26, 33, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    visibility 0.3s ease;
}

.car-checklist-btn__icon {
  color: #ffffff;
}

.car-checklist-btn.has-items .car-checklist-btn__icon {
  color: var(--brand-light);
}

.car-checklist-btn__count {
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  background: var(--brand);
  color: #fff;
}

.car-checklist-btn:hover {
  border-color: rgba(255, 107, 53, 0.55);
  box-shadow:
    0 6px 28px rgba(255, 107, 53, 0.2),
    0 0 0 1px rgba(255, 107, 53, 0.15) inset;
}

.car-checklist-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.car-checklist-panel {
  position: fixed;
  z-index: 700;
  right: clamp(16px, 4vw, 32px);
  bottom: calc(238px + env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 24px));
  max-height: min(70vh, 680px);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(18, 20, 28, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.car-checklist-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.car-checklist-panel__header h3 {
  margin: 0;
  font-size: 17px;
}

.car-checklist-panel__close {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.car-checklist-panel__body {
  padding: 12px 14px 14px;
  overflow: auto;
  max-height: calc(min(70vh, 680px) - 60px);
}

.car-checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.car-checklist-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.car-checklist-item__name {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.car-checklist-item__remove {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  cursor: pointer;
}

.car-checklist-empty {
  margin: 10px 2px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.car-checklist-send-btn {
  margin-top: 10px;
  width: 100%;
  border: 1px solid rgba(255, 107, 53, 0.55);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 107, 53, 0.14);
  color: #ffe2d5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.car-checklist-original {
  margin: 8px 2px 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  text-align: right;
  text-decoration: line-through;
}

.car-checklist-total {
  margin: 6px 2px 0;
  color: #ffd8c7;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.brand-section {
  margin-bottom: 60px;
}

.brand-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
}

@media (min-width: 1025px) {
  /* 确保桌面端导航栏水平居中 */
  .header-nav {
    display: flex;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .brand-logo-center {
    display: block;
  }
  .header-left .brand-logo {
    display: block; /* 保持原样以防布局坍塌，或让左侧占位 */
    opacity: 0;
  }
  .close-filter-btn {
    display: flex;
  }
  .sidebar-filter {
    width: 240px;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 24px;
    border-left: 1px solid var(--border);
    max-height: 100vh;
  }
  .sidebar-filter.active {
    right: 0;
  }
  .header-nav {
    display: none;
  }
  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 选车页 769–1024：保留左侧筛选列 + sticky，不占用侧滑抽屉布局 */
  @media (min-width: 769px) {
    #carSection .sidebar-filter {
      position: sticky;
      top: 0;
      right: auto;
      left: auto;
      width: 240px;
      height: var(--car-sidebar-viewport-height);
      min-height: var(--car-sidebar-viewport-height);
      max-height: var(--car-sidebar-viewport-height);
      background: transparent;
      z-index: 2;
      transition: none;
      border-left: none;
      border-right: 1px solid var(--border);
      overflow-y: auto;
    }
    body:has(#carSection) .mobile-filter-btn {
      display: none !important;
    }
    body:has(#carSection) .close-filter-btn {
      display: none !important;
    }
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  /* 收窄选车区与屏幕左右间距（避免与 .main-content、.car-grid 叠加过宽） */
  #carSection.content-wrapper {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }
  /*
   * 移动端：列表区不要 flex 占满视口高度，否则主栏易被算成一屏高 + 内部滚动，
   * footer 顶线会出现在第一屏底；改为高度随列表增长，整区 #carSection 单根滚动条，footer 只在全部车辆之后。
   */
  #carSection .car-row {
    flex: 0 0 auto;
    min-height: 0;
  }
  #carSection .main-content {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  /*
   * 选车页移动端：由 html 整页滚动（与 about 页一致），不再用 #carSection 定高做唯一滚动容器。
   * 否则部分 WebKit 下 flex/定高组合仍会让 footer 顶线出现在视口内，列表却继续向下延伸。
   */
  html:has(body.car-section-active) {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
  }

  body.car-section-active {
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
    min-height: 100%;
  }

  body.car-section-active #carSection.content-wrapper {
    height: auto;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    max-height: none;
    overflow: visible;
  }

  .sidebar-filter {
    width: 280px;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    position: fixed;
    top: 0;
    right: -100%;
    border-right: none;
    border-left: 1px solid var(--border);
    border-bottom: none;
    background: var(--bg-secondary);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 24px 16px;
  }
  .sidebar-filter.active {
    right: 0;
  }
  /* 移动端不再需要吸顶筛选条的逻辑，因为改成了侧滑抽屉 */
  body.car-section-active .sidebar-filter {
    position: fixed;
    top: 0;
    max-height: 100vh;
    z-index: 1000;
  }

  /* 拖价格条时勿触发侧栏横向滚动/橡皮筋；由 range 接管横向位移 */
  .sidebar-filter .price-slider-container {
    touch-action: none;
    position: relative;
    z-index: 2;
  }

  .main-content {
    padding: 24px 8px;
  }
}

/* Hero Section Padding */
.hero {
  margin-bottom: 0;
}

/* 车辆列表分页：Google 风格 + Mango（桌面 40 / 平板 20 / 手机 10 由 script.js 控制） */
.car-pagination.mango-pagination {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
  padding: 16px clamp(12px, 4vw, 48px) 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.car-pagination.is-hidden {
  display: none;
}

.mango-page-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  flex-shrink: 0;
  color: var(--brand);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mango-page-nav:hover:not(:disabled) {
  color: var(--brand-light);
}

.mango-page-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: var(--muted);
}

.mango-chevron {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  font-weight: 300;
  color: inherit;
}

.mango-nav-label {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}

.mango-pagination-center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.mango-matrix {
  display: grid;
  grid-template-rows: auto auto;
  /* 与字母行共用列，数字与上方 a 严格对齐；字母列之间几乎无额外空隙 */
  column-gap: 0;
  row-gap: 6px;
  justify-content: center;
  align-items: end;
  justify-items: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
}

.mango-grid-cell {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.mango-grid-cell-letters {
  font-weight: 400;
}

.mango-grid-cell-nums {
  font-size: 0.58em;
  font-weight: 500;
  line-height: 1;
  padding-top: 2px;
}

.mango-lit {
  color: #ffffff;
  user-select: none;
}

.mango-lit-ngo {
  white-space: nowrap;
}

.mango-num-slot {
  display: block;
  min-height: 1.2em;
}

.mango-a-btn,
.mango-num-btn {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.15s ease;
}

.mango-a-btn {
  color: #ffffff;
  margin: 0;
}

/* 分页字母 a 之间与「Mango」中 g 与 o 的视觉间距一致（PC / 平板 / 手机统一） */
.mango-grid-cell:has(.mango-a-btn) + .mango-grid-cell:has(.mango-a-btn) {
  padding-left: 0.08em;
}

.mango-a-btn.is-current {
  color: var(--brand);
}

.mango-num-btn {
  color: var(--brand);
}

.mango-num-btn.is-current {
  color: #ffffff;
}

.mango-a-btn:focus-visible,
.mango-num-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .mango-page-nav {
    padding: 4px 4px;
  }

  .mango-nav-label {
    font-size: 12px;
  }
}

.car-card {
  position: relative;
  background: linear-gradient(145deg, #1e2329, #181c24);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 107, 53, 0.5);
}

.car-card:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(59, 130, 246, 0.05));
  pointer-events: none;
  z-index: 1;
}

.car-card picture {
  display: block;
  width: 100%;
  flex-shrink: 0;
}

.car-checklist-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  user-select: none;
}

.car-checklist-toggle.is-picked {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
}

.car-image {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.car-image-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #1e2329, #181c24);
}

/* 分类标签：文字栏右侧，与车名同一行 */
.car-badge {
  position: static;
  display: inline-block;
  margin: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  backdrop-filter: blur(10px);
}

.car-badge-inline {
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
}

/* Category Badge Colors — 全部为双色线性渐变（色相与原先一致） */
.car-badge {
  background: linear-gradient(135deg, #ff6b35, #ff8c69);
}

.sedan-badge {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

/* 行政级轿车等角标（与选车页 data-category 一致） */
.luxsedan-badge {
  background: linear-gradient(135deg, #f7a614, #ffcc6a);
}

.perf-badge {
  /* 性能车：玫红/竞速红 */
  background: linear-gradient(135deg, #be123c, #fb7185);
}

.biz-badge {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.ev-badge {
  /* 深翠→亮绿，避免同色双止点看起来像纯色 */
  background: linear-gradient(135deg, #059669, #34d399);
}

.exec-badge {
  background: linear-gradient(135deg, #f7a614, #ffcc6a);
}

.lux-badge,
.luxsuv-badge {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.mpv-badge {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.suv-badge {
  /* 保留：若仍有旧数据或城市 SUV 扩展可用；与轿车蓝区分 */
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.pickup-badge {
  /* 皮卡：琥珀→金黄，与轿车蓝、默认橙、越野灰、新能源绿均不混淆 */
  background: linear-gradient(135deg, #b45309, #fbbf24);
  color: #fff;
}

.off-badge {
  /* 越野SUV：浅灰纯色（略提亮）；深色字保证对比度 */
  background: #a8b4c4;
  color: #0f172a;
}

/* Category Background Images */
.car-image.supercar {
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.3), transparent 60%),
    linear-gradient(135deg, #2d2f3a, #1b1f29);
}

.car-image.sedan {
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.25), transparent 60%),
    linear-gradient(135deg, #2a2e38, #181c24);
}

.car-image.luxsedan {
  background-image: 
    radial-gradient(circle at 50% 22%, rgba(247, 166, 20, 0.26), transparent 58%),
    linear-gradient(135deg, #2d2a1e, #1e1c18);
}

.car-image.performance {
  background-image: 
    radial-gradient(circle at 50% 80%, rgba(190, 18, 60, 0.32), transparent 60%),
    linear-gradient(135deg, #2a1f24, #1a1518);
}

.car-image.business {
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.25), transparent 60%),
    linear-gradient(135deg, #252a38, #1a1e2c);
}

.car-image.newenergy {
  background-image: 
    radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.3), transparent 60%),
    linear-gradient(135deg, #1e2d2a, #181e24);
}

.car-image.executive {
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(247, 166, 20, 0.3), transparent 60%),
    linear-gradient(135deg, #2d2a1e, #1e1c18);
}

.car-image.mpv {
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.28), transparent 60%),
    linear-gradient(135deg, #2a2438, #1a1824);
}

.car-image.suv {
  background-image: 
    radial-gradient(circle at 50% 78%, rgba(14, 165, 233, 0.32), transparent 55%),
    linear-gradient(135deg, #1e2a34, #181c22);
}

.car-image.luxsuv {
  background-image: 
    radial-gradient(circle at 20% 70%, rgba(236, 72, 153, 0.25), transparent 60%),
    linear-gradient(135deg, #2d1e2a, #1e1820);
}

.car-image.offroad {
  background-image: 
    radial-gradient(circle at 78% 58%, rgba(168, 180, 196, 0.38), transparent 58%),
    linear-gradient(135deg, #252a32, #181c22);
}

.car-info {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 10px;
  padding: 14px 16px 16px;
}

.car-info .car-name {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
}

.car-info .car-price {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  align-self: center;
}

.car-info .car-badge {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
}

.car-info .car-meta {
  grid-column: 1 / -1;
  grid-row: 3;
}

/* 无分类标签：车名与价格排版修正 */
.car-card-no-category .car-info .car-name {
  grid-column: 1 / -1;
  grid-row: 1;
}

.car-card-no-category .car-info .car-price {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: left;
  justify-self: start;
}

.car-card-no-category .car-info .car-meta {
  grid-column: 1 / -1;
  grid-row: 3;
}

.car-name {
  font-weight: 800;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.3;
  color: var(--text);
}

.car-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand);
  margin: 0;
  line-height: 1.15;
}

.car-price-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.car-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.car-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--panel), var(--bg-secondary));
  border-top: 1px solid var(--border);
  padding: 40px clamp(20px, 8vw, 120px);
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

/* 选车页 footer 在文档最底部；拉通与页面/视口同宽（突破 content-wrapper 左右 padding） */
#carSection > .site-footer {
  flex-shrink: 0;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1400px) {
  .car-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .car-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1080px) {
  .car-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* iPad / 小平板选车页：收窄左右留白与筛选区—车卡区间距，略缩侧栏宽度，车卡两列加宽单卡 */
@media (min-width: 769px) and (max-width: 1024px) {
  #carSection.content-wrapper {
    padding-left: clamp(10px, 2.2vw, 24px);
    padding-right: clamp(10px, 2.2vw, 24px);
  }

  /* 筛选区内上下留白一致（与桌面 asymmetric padding 区分） */
  #carSection .sidebar-filter {
    width: 220px;
    padding: clamp(12px, 2.3vh, 24px) 10px;
    box-sizing: border-box;
  }

  #carSection .main-content {
    padding: 28px 16px 36px 16px;
  }

  #carSection .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root { 
    --sticky-offset: 360px;
  }
  .header-nav {
    display: none;
  }
  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 选车页顶栏（移动端）：左 logo2-1、中不变、右仅筛选按钮 */
  body:has(#carSection) .header-left .brand-logo {
    opacity: 1;
  }
  body:has(#carSection) .brand-logo-right {
    display: none !important;
  }
  
  .category-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px clamp(8px, 3vw, 16px);
    top: calc(56px + env(safe-area-inset-top));
  }
  
  .category-buttons {
    order: 2;
  }
  
  /* 使用场景：单行横向滑动（与分类栏左右内边距对齐，滑动可延伸到屏幕边缘） */
  .scenario-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 0;
    margin-left: calc(-1 * clamp(8px, 3vw, 16px));
    margin-right: calc(-1 * clamp(8px, 3vw, 16px));
    padding-left: clamp(8px, 3vw, 16px);
    padding-right: clamp(8px, 3vw, 16px);
    padding-bottom: 2px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: clamp(8px, 3vw, 16px);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .scenario-row::-webkit-scrollbar {
    display: none;
  }
  
  .scenario-card {
    flex: 0 0 auto;
    width: min(40vw, 148px);
    min-width: 112px;
    scroll-snap-align: start;
    height: 50px;
  }
  
  .scenario-card.expanded {
    height: 200px;
  }
  
  .scenario-image {
    height: 100%;
    margin-top: 0;
    object-fit: cover;
    object-position: center center;
  }
  
  .scenario-card.expanded .scenario-image-wrapper {
    height: 140px;
  }
  
  .scenario-name {
    font-size: 15px;
    padding: 10px;
  }
  
  .scenario-name-hover {
    font-size: 15px;
    padding: 10px;
  }
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
  min-width: 320px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border: none;
  border-radius: 26px;
  padding: 8px 24px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.car-icon {
  width: 18px;
  height: 18px;
}

.search-text {
  display: inline-block;
}

@media (max-width: 768px) {
  .category-row-top {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-input {
    flex: 1;
    width: auto;
  }
  
  .header-cta {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .hero-stats {
    gap: 16px;
  }
  
  .hero-stat-divider {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 6px;
    gap: 12px;
    margin-top: 10px; /* Adjust margin for mobile */
  }
  
  .car-image,
  .car-image-photo {
    height: 130px;
    margin-bottom: -6px;
    object-position: center center;
    background-position: center center;
  }
  
  .car-info {
    padding: 6px 10px 8px;
    column-gap: 8px;
    row-gap: 4px;
    grid-template-columns: 1fr auto;
  }

  .car-info .car-name {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .car-info .car-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin: 0;
    align-self: center;
  }
  
  .car-name {
    font-size: clamp(12px, 3.5vw, 15px);
  }
  
  .car-price {
    font-size: 16px;
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    text-align: left;
    align-self: center;
  }
  
  .car-price-unit {
    font-size: 11px;
  }
  
  .car-meta {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    grid-column: 1 / -1;
    grid-row: 3;
  }

    .car-card-no-category .car-info .car-name {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .car-card-no-category .car-info .car-price {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    justify-self: start;
  }
  .car-card-no-category .car-info .car-meta {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  
  .car-badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .car-pagination.mango-pagination {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }
}

@media (max-width: 480px) {
  /* 小屏手机仍保持一行两车卡（与 ≤768px 一致），避免过窄时变单列 */
  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 4px;
    margin-top: 10px;
  }

  .brand-logo {
    height: 28px;
  }

  .brand-logo-center {
    height: 28px;
  }

  .brand-text {
    font-size: clamp(16px, 4vw, 20px);
  }
  
  .search-input {
    height: 40px;
  }
  
  .search-btn {
    height: 32px;
  }
  
  .car-price {
    font-size: clamp(13px, 3.4vw, 16px);
  }

  .car-image,
  .car-image-photo {
    height: 112px;
    margin-bottom: -6px;
  }

  .car-info {
    padding-top: 5px;
    padding-bottom: 6px;
  }
}

@media (min-width: 1200px) {
  .car-image,
  .car-image-photo {
    height: 200px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.car-card {
  animation: fadeInUp 0.6s ease forwards;
}

.car-card:nth-child(1) { animation-delay: 0.1s; }
.car-card:nth-child(2) { animation-delay: 0.2s; }
.car-card:nth-child(3) { animation-delay: 0.3s; }
.car-card:nth-child(4) { animation-delay: 0.4s; }
.car-card:nth-child(5) { animation-delay: 0.5s; }
.car-card:nth-child(6) { animation-delay: 0.6s; }

/* Glow Effects */
.car-card:hover .car-price {
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.category-btn.active {
  box-shadow: 
    0 4px 12px rgba(255, 107, 53, 0.3),
    0 0 30px rgba(255, 107, 53, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.recommend-section-container {
  margin-bottom: 40px;
}

/* 移动端：分区大标题略右移，与上一组车卡垂直间距收紧 */
@media (max-width: 768px) {
  .brand-section {
    margin-bottom: 26px;
  }

  .recommend-section-container {
    margin-bottom: 20px;
  }

  .brand-title {
    padding-left: 8px;
    margin-bottom: 14px;
  }
}

/* 关于页：宽屏与车辆/服务顶栏一致（三链 + 左右字标/圆标）；窄屏隐藏三链、显示中间 logo 下拉 */
@media (max-width: 1024px) {
  body.page-about .site-header .header-nav {
    display: none !important;
  }

  body.page-about .header-left .brand-logo {
    opacity: 1;
  }

  body.page-about .brand-logo-center {
    display: block !important;
  }

  body.page-about .header-logo-menu-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  body.page-about .header-logo-menu-panel:not([hidden]) {
    display: block !important;
  }

  body.page-about .brand-logo-right {
    display: none !important;
  }
}

/* 关于页：整页可滚动（car.css 默认 html/body 为 overflow:hidden，仅选车区自滚动） */
html:has(body.page-about) {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
}

body.page-about {
  overflow-x: hidden;
  overflow-y: visible;
  height: auto;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
}

/* iPad：关于页 footer 贴视口底（内容短时底部不留空） */
@media (min-width: 769px) and (max-width: 1024px) {
  html:has(body.page-about) {
    height: 100%;
  }

  body.page-about {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.page-about .site-footer {
    margin-top: auto;
    flex-shrink: 0;
  }
}

/* 服务页：顶栏与选车页窄屏一致；无侧栏，隐藏筛选按钮占位 */
body.page-services .mobile-filter-btn {
  display: none !important;
}

@media (max-width: 1024px) {
  body.page-services .header-left .brand-logo {
    opacity: 1;
  }

  body.page-services .brand-logo-right {
    display: none !important;
  }
}

/* iPad / 小平板：顶栏与 PC 一致 — 左文字标 logo2-1、中「车辆 / 服务 / 关于我们」、右圆标 logo2（与 car.html 一致） */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-header .header-nav {
    display: flex !important;
  }

  .site-header .header-left .brand-logo {
    opacity: 1 !important;
  }

  .site-header .brand-logo-center {
    display: none !important;
  }

  .site-header .header-logo-menu-btn {
    pointer-events: none;
    cursor: default;
  }

  .mobile-filter-btn {
    display: none !important;
  }

  body.page-services .brand-logo-right {
    display: block !important;
  }

  body.page-about .site-header .header-nav {
    display: flex !important;
  }

  body.page-about .brand-logo-center {
    display: none !important;
  }

  body.page-about .header-logo-menu-btn {
    pointer-events: none !important;
    cursor: default !important;
  }

  body.page-about .brand-logo-right {
    display: block !important;
  }
}

/* =========================
   Responsive Hardening Layer（仅 Pad / Mobile）
   PC 端不启用兜底规则
   ========================= */
@media (max-width: 1199px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  img,
  svg,
  video,
  canvas {
    max-width: 100%;
    height: auto;
  }

  body,
  .content-wrapper,
  .car-row,
  .main-content,
  .car-grid,
  #carparkBrandSectionsRoot {
    min-width: 0;
  }

  body,
  .content-wrapper {
    overflow-x: clip;
  }

  .car-card,
  .car-image,
  .car-info,
  .brand-title {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .content-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }

  .car-card .car-name {
    font-size: 13px;
    line-height: 1.3;
  }
}

