/* 卖车页 —— 暗夜竞速 / 极品飞车气质（纯 CSS 动效，秒开） */
.m-sell-page {
  --ms-ink: #070b10;
  --ms-panel: #10161f;
  --ms-line: rgba(255, 255, 255, 0.08);
  --ms-neon: #00e676;
  --ms-cyan: #00e5ff;
  --ms-gold: #ffd54f;
  --ms-fog: #9aa7b5;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(0, 230, 118, 0.08), transparent 55%),
    linear-gradient(180deg, #070b10 0%, #0c1218 40%, #101820 100%);
  color: #e8eef5;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  min-height: 100vh;
}

/* —— 顶栏：磨砂碳纤 —— */
.ms-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--ms-line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.ms-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
}
.ms-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #f2f6fa;
  letter-spacing: 0.2px;
}
.ms-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}
.ms-logo span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff642e;
  color: #111;
  border: 1.5px solid #111;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}
.ms-login {
  font-size: 13px;
  color: var(--ms-fog);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ms-line);
  background: rgba(255, 255, 255, 0.03);
}
.ms-nav {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ms-nav::-webkit-scrollbar { display: none; }
.ms-nav a {
  flex: 0 0 auto;
  padding: 10px 10px 12px;
  font-size: 14px;
  color: #a8b4c0;
  position: relative;
  white-space: nowrap;
}
.ms-nav a.is-on {
  color: var(--ms-neon);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(0, 230, 118, 0.35);
}
.ms-nav a.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ms-neon), transparent);
  box-shadow: 0 0 10px var(--ms-neon);
}

/* —— Hero：夜赛公路动效 —— */
.ms-hero {
  position: relative;
  padding: 18px 14px 96px;
  overflow: hidden;
  color: #fff;
  min-height: 480px;
  isolation: isolate;
}
.ms-race {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #05080c;
}
.ms-race-sky {
  position: absolute;
  inset: 0 0 38% 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% 30%, rgba(0, 229, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 18% 20%, rgba(0, 230, 118, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(20, 40, 70, 0.55), transparent 70%),
    linear-gradient(180deg, #04060a 0%, #0a1220 45%, #101a28 100%);
}
.ms-race-city {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 36%;
  height: 28%;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(80, 120, 160, 0.12) 8%,
      transparent 12%,
      rgba(60, 100, 140, 0.1) 22%,
      transparent 28%,
      rgba(100, 140, 180, 0.14) 40%,
      transparent 48%,
      rgba(70, 110, 150, 0.12) 62%,
      transparent 70%,
      rgba(90, 130, 170, 0.15) 82%,
      transparent 90%),
    repeating-linear-gradient(90deg,
      transparent 0 18px,
      rgba(140, 180, 220, 0.08) 18px 20px,
      transparent 20px 34px,
      rgba(100, 160, 200, 0.12) 34px 38px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
  animation: msCityPulse 5.5s ease-in-out infinite;
  filter: blur(0.3px);
}
.ms-race-road {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -8%;
  height: 48%;
  background:
    linear-gradient(180deg, rgba(12, 18, 26, 0) 0%, #0c1218 18%, #121a24 55%, #0a0e14 100%);
  transform: perspective(420px) rotateX(58deg);
  transform-origin: center top;
  box-shadow: inset 0 40px 80px rgba(0, 0, 0, 0.55);
}
.ms-race-vanish {
  position: absolute;
  left: 50%;
  bottom: 34%;
  width: 140%;
  height: 42%;
  margin-left: -70%;
  background:
    linear-gradient(180deg, rgba(0, 230, 118, 0.08), transparent 40%),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(0, 229, 255, 0.25), transparent 70%);
  transform: perspective(420px) rotateX(58deg);
  transform-origin: center top;
  animation: msVanish 3.2s ease-in-out infinite;
}
.ms-race-lanes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 28px,
      rgba(255, 255, 255, 0.55) 28px,
      rgba(255, 255, 255, 0.55) 42px
    );
  -webkit-mask-image: linear-gradient(90deg, transparent 42%, #000 49%, #000 51%, transparent 58%);
  mask-image: linear-gradient(90deg, transparent 42%, #000 49%, #000 51%, transparent 58%);
  transform: perspective(420px) rotateX(58deg);
  transform-origin: center top;
  opacity: 0.55;
  animation: msLaneRush 0.55s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.35));
}
.ms-race-streaks {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ms-race-streaks i {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ms-neon), #fff);
  box-shadow: 0 0 10px var(--ms-neon), 0 0 20px rgba(0, 230, 118, 0.5);
  animation: msStreak 1.1s linear infinite;
  opacity: 0;
}
.ms-race-streaks i:nth-child(1) { top: 18%; width: 42%; left: -40%; animation-duration: 1.05s; }
.ms-race-streaks i:nth-child(2) { top: 28%; width: 28%; left: -30%; animation-duration: 0.85s; animation-delay: 0.2s; background: linear-gradient(90deg, transparent, var(--ms-cyan), #fff); box-shadow: 0 0 10px var(--ms-cyan); }
.ms-race-streaks i:nth-child(3) { top: 38%; width: 55%; left: -50%; animation-duration: 1.25s; animation-delay: 0.45s; }
.ms-race-streaks i:nth-child(4) { top: 48%; width: 34%; left: -35%; animation-duration: 0.95s; animation-delay: 0.1s; background: linear-gradient(90deg, transparent, #ffea00, #fff); box-shadow: 0 0 10px #ffea00; }
.ms-race-streaks i:nth-child(5) { top: 58%; width: 48%; left: -45%; animation-duration: 1.15s; animation-delay: 0.35s; }
.ms-race-streaks i:nth-child(6) { top: 68%; width: 30%; left: -30%; animation-duration: 0.78s; animation-delay: 0.55s; background: linear-gradient(90deg, transparent, var(--ms-cyan), #fff); box-shadow: 0 0 10px var(--ms-cyan); }

.ms-race-neon {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(0, 230, 118, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 45% at 85% 70%, rgba(0, 229, 255, 0.16), transparent 55%);
  mix-blend-mode: screen;
  animation: msNeonBreath 4s ease-in-out infinite;
}
.ms-race-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(0, 0, 0, 0.12) 3px 4px
  );
  opacity: 0.25;
  pointer-events: none;
}
.ms-race-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  animation: msGrain 0.35s steps(2) infinite;
}
.ms-hero-slash {
  position: absolute;
  right: -10%;
  top: -6%;
  width: 55%;
  height: 42%;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.12), rgba(0, 229, 255, 0.05), transparent 70%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 70%);
  animation: msSlash 7s ease-in-out infinite;
}
.ms-race-car {
  position: absolute;
  left: -50%;
  bottom: 14%;
  width: min(62vw, 240px);
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 230, 118, 0.55)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  animation: msCarDash 2.8s linear infinite;
  opacity: 0.95;
}

@keyframes msLaneRush {
  0% { background-position: 0 0; }
  100% { background-position: 0 70px; }
}
@keyframes msStreak {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateX(160vw); opacity: 0; }
}
@keyframes msCarDash {
  0% { transform: translateX(0) scale(0.92); opacity: 0; }
  8% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(160vw) scale(1.05); opacity: 0; }
}
@keyframes msCityPulse {
  0%, 100% { opacity: 0.7; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-1.5%); }
}
@keyframes msVanish {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes msNeonBreath {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
@keyframes msGrain {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2%, 1%); }
}
@keyframes msSlash {
  0%, 100% { opacity: 0.85; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-8px); }
}

/* Hero 文案与角色 */
.ms-hero-stage {
  position: relative;
  z-index: 1;
  min-height: 220px;
  overflow: visible;
}
.ms-hero-kicker {
  position: relative;
  z-index: 3;
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ms-neon);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.35);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
  text-transform: uppercase;
}
.ms-hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ms-neon);
  box-shadow: 0 0 8px var(--ms-neon);
  animation: msSpark 1.6s ease-in-out infinite;
}
.ms-hero-title {
  position: relative;
  z-index: 3;
  margin: 0;
  max-width: 58%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ms-hero-title span {
  display: block;
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.4px;
  line-height: 1.18;
  text-shadow:
    0 0 24px rgba(0, 230, 118, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.4);
}
.ms-hero-title span:last-child {
  background: linear-gradient(90deg, #fff 0%, #b8ffe0 45%, var(--ms-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.25));
}
.ms-hero-sub {
  position: relative;
  z-index: 3;
  margin: 10px 0 0;
  max-width: 56%;
  font-size: 12px;
  color: rgba(200, 220, 235, 0.78);
  letter-spacing: 0.5px;
}
.ms-hero-art {
  /* 相对整块 hero 下探，估值卡上移后遮住下半身 */
  position: absolute;
  right: -10px;
  top: 4px;
  bottom: 36px;
  width: 200px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}
.ms-layer {
  position: absolute;
  display: block;
  will-change: transform;
}
.ms-layer-arrow {
  left: 58px;
  top: 6px;
  width: 112px;
  height: auto;
  z-index: 1;
  filter:
    drop-shadow(0 0 10px rgba(0, 230, 118, 0.45))
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.45));
  animation: msArrowFloat 3s ease-in-out infinite;
}
/* 「多卖 10%」放箭头左侧，不挡人物脸 */
.ms-layer-badge {
  left: -6px;
  top: 48px;
  width: 68px;
  text-align: center;
  z-index: 4;
  animation: msArrowFloat 3s ease-in-out 0.05s infinite;
  pointer-events: none;
}
.ms-layer-badge em {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255, 213, 79, 0.6), 0 2px 0 rgba(0, 0, 0, 0.4);
}
.ms-layer-badge strong {
  display: block;
  margin-top: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 0.95;
  color: #fff;
  text-shadow:
    -3px -3px 0 #e53935,
     3px -3px 0 #e53935,
    -3px  3px 0 #e53935,
     3px  3px 0 #e53935,
     0 0 18px rgba(255, 80, 80, 0.55),
     0 4px 0 #c62828;
  font-family: Arial Black, PingFang SC, Microsoft YaHei, sans-serif;
}
.ms-layer-mascot {
  right: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  max-width: 180px;
  object-fit: contain;
  object-position: bottom right;
  z-index: 3;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 18px rgba(0, 230, 118, 0.35))
    drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  animation: msMascotFloat 3.6s ease-in-out infinite;
  transform-origin: 60% 100%;
}
.ms-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff59d;
  box-shadow: 0 0 10px #ffe082, 0 0 18px var(--ms-neon);
  opacity: 0.85;
  z-index: 5;
  animation: msSpark 2.4s ease-in-out infinite;
}
.ms-spark.s1 { left: 18px; top: 22px; }
.ms-spark.s2 { left: 4px; top: 88px; width: 6px; height: 6px; animation-delay: 0.6s; }
.ms-spark.s3 { left: 96px; top: 36px; width: 5px; height: 5px; animation-delay: 1.2s; }

@keyframes msMascotFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(1.5deg); }
}
@keyframes msArrowFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(2px, -10px, 0) rotate(2deg); }
}
@keyframes msSpark {
  0%, 100% { transform: scale(0.6); opacity: 0.35; }
  50% { transform: scale(1.2); opacity: 1; }
}
@keyframes msIcoBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.ms-modes {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}
.ms-modes button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(12, 18, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #d7e2ec;
  border-radius: 14px;
  padding: 10px 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.ms-modes button.is-on {
  background:
    linear-gradient(160deg, rgba(0, 230, 118, 0.18), rgba(0, 229, 255, 0.06)),
    rgba(10, 20, 16, 0.75);
  border-color: rgba(0, 230, 118, 0.55);
  color: var(--ms-neon);
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.2),
    0 0 24px rgba(0, 230, 118, 0.2),
    0 10px 22px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.ms-mode-ico {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  animation: msIcoBob 2.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}
.ms-modes button:nth-child(2) .ms-mode-ico { animation-delay: 0.35s; }
.ms-modes button:nth-child(3) .ms-mode-ico { animation-delay: 0.7s; }

.ms-hero-ctas {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ms-hero-cta {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.12) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.14) 0 1px,
      transparent 1px 5px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0, 0.12) 0 2px,
      transparent 2px 6px
    ),
    linear-gradient(90deg, #009e3d 0%, #00d45a 38%, #1de9b6 72%, #00e5ff 100%);
  color: #04140a;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 28px rgba(0, 230, 118, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 6px rgba(0, 60, 30, 0.28);
  overflow: hidden;
  text-decoration: none;
}
.ms-hero-cta-list {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, transparent 40%),
    linear-gradient(90deg, #ff642e 0%, #ffd54f 55%, #ffca28 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #111;
  box-shadow:
    0 0 22px rgba(255, 228, 17, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.ms-hero-record {
  position: relative;
  z-index: 3;
  display: block;
  margin-top: 10px;
  text-align: center;
  color: rgba(180, 255, 210, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.ms-self {
  margin: 0 12px 14px;
  position: relative;
  z-index: 6;
}
.ms-self-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: #111;
  background: linear-gradient(120deg, #ff642e, #ffc4b0 55%, #ffe8a0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.ms-self-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}
.ms-self-card strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 2px;
}
.ms-self-card span {
  display: block;
  font-size: 11px;
  color: #555;
  line-height: 1.35;
}
.ms-self-card > div { flex: 1; min-width: 0; }
.ms-self-card em {
  flex-shrink: 0;
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #ff642e;
}
.ms-hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}
.ms-hero-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: msCtaShine 2.4s ease-in-out infinite;
  pointer-events: none;
}
.ms-hero-cta i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #04140a;
  box-shadow: 0 0 0 3px rgba(4, 20, 10, 0.2);
}
@keyframes msCtaShine {
  0% { transform: translateX(0); }
  100% { transform: translateX(320%); }
}

/* —— 估值卡：上移叠住人物下半身（同首页） —— */
.ms-value {
  margin: -92px 12px 16px;
  position: relative;
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(22, 30, 40, 0.96), rgba(14, 20, 28, 0.98));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 230, 118, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ms-value::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h30v30H0zm30 30h30v30H30z' fill='%23ffffff' fill-opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.ms-value-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(0, 229, 255, 0.22), transparent 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, transparent 34%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 7px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.08) 0 1px,
      transparent 1px 5px
    ),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.07) 0 2px,
      transparent 2px 8px
    ),
    linear-gradient(105deg, #0a2f1c 0%, #0c7a34 42%, #00a844 72%, #067a42 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.ms-value-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
  opacity: 0.5;
  pointer-events: none;
}
.ms-value-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: msHeadSheen 4.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes msHeadSheen {
  0%, 100% { background-position: 100% 0; opacity: 0.35; }
  50% { background-position: 0% 0; opacity: 0.7; }
}
.ms-value-titles {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.ms-value-titles svg {
  display: block;
  width: min(100%, 280px);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}
.ms-value-tag {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.ms-form {
  position: relative;
  z-index: 1;
  padding: 6px 16px 18px;
}
.ms-field {
  display: block;
  margin-top: 14px;
}
.ms-field > span {
  display: block;
  font-size: 13px;
  color: #c5d0db;
  margin-bottom: 8px;
  font-weight: 700;
}
.ms-select,
.ms-mile,
.ms-code,
.ms-field > input[type="tel"],
.ms-field > input[type="text"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 16, 0.65);
  border-radius: 12px;
  min-height: 46px;
  padding: 0 14px;
  font-size: 14px;
  color: #eef3f8;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ms-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.ms-select span { color: #6f7d8c; font-weight: 400; }
.ms-select.has-val span { color: #eef3f8; }
.ms-mile,
.ms-code {
  display: flex;
  align-items: center;
  padding-right: 10px;
  gap: 4px;
}
.ms-mile input,
.ms-code input {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 44px;
  outline: none;
  font-size: 14px;
  color: #eef3f8;
}
.ms-mile em {
  font-style: normal;
  color: #7d8b99;
  font-size: 13px;
}
.ms-captcha {
  flex: 0 0 auto;
  width: 110px;
  height: 36px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ms-submit {
  width: 100%;
  margin-top: 18px;
  height: 50px;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(90deg, #00c853, #00e676 50%, #1de9b6);
  color: #04140a;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow:
    0 0 24px rgba(0, 230, 118, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.ms-agree {
  margin: 12px 0 0;
  font-size: 12px;
  color: #7a8794;
}
.ms-agree input { vertical-align: middle; margin-right: 4px; }
.ms-msg {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ms-neon);
}
.ms-msg.err { color: #ff6b6b; }

/* —— 下方区块 —— */
.ms-ways,
.ms-flow,
.ms-faq {
  margin: 0 12px 14px;
  background:
    linear-gradient(180deg, rgba(22, 30, 40, 0.92), rgba(14, 20, 28, 0.96));
  border-radius: 16px;
  padding: 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.ms-ways h2,
.ms-flow h2,
.ms-faq h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #8fa0b0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ms-way-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ms-way-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 172px;
  border-radius: 14px;
  padding: 14px 12px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ms-way-card.dealer {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0, 230, 118, 0.16), transparent 55%),
    linear-gradient(165deg, #122018 0%, #0e161c 100%);
  border-color: rgba(0, 230, 118, 0.22);
}
.ms-way-card.person {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 138, 61, 0.18), transparent 55%),
    linear-gradient(165deg, #1a1410 0%, #12161c 100%);
  border-color: rgba(255, 138, 61, 0.22);
}
.ms-way-card.self {
  grid-column: 1 / -1;
  min-height: 140px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 228, 17, 0.22), transparent 55%),
    linear-gradient(165deg, #1c1a10 0%, #12161c 100%);
  border-color: rgba(255, 228, 17, 0.35);
}
.ms-way-card.self::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 36px;
  width: 64px;
  height: 64px;
  opacity: 0.22;
  background: #ff642e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23000' d='M8 40h48v6H8zm6-10 8-14h28l8 14v10H14V30zm10 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm20 0a4 4 0 1 0 0 8 4 4 0 0 0 0-8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23000' d='M8 40h48v6H8zm6-10 8-14h28l8 14v10H14V30zm10 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm20 0a4 4 0 1 0 0 8 4 4 0 0 0 0-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ms-way-card.dealer::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 42px;
  width: 68px;
  height: 68px;
  opacity: 0.2;
  background: #19b84a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23000' d='M36 4 16 36h14L22 60l30-38H36L48 4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23000' d='M36 4 16 36h14L22 60l30-38H36L48 4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ms-way-card.person::before {
  content: "";
  position: absolute;
  right: 0;
  top: 44px;
  width: 64px;
  height: 64px;
  opacity: 0.22;
  background: #ff8a3d;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23000' d='M32 6 52 34H40v24H24V34H12z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23000' d='M32 6 52 34H40v24H24V34H12z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ms-way-card header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.ms-way-card strong {
  font-size: 18px;
  font-weight: 800;
  color: #f2f6fa;
}
.ms-way-card em {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  color: #04140a;
  padding: 4px 7px;
  border-radius: 3px 8px 3px 8px;
  font-weight: 800;
  transform: skewX(-8deg);
}
.ms-way-card.dealer em {
  background: linear-gradient(90deg, #00e676, #69f0ae);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.35);
}
.ms-way-card.person em {
  background: linear-gradient(90deg, #ff8a3d, #ffd54f);
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.35);
}
.ms-way-card ul {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  flex: 1;
}
.ms-way-card li {
  position: relative;
  padding: 3px 0 3px 12px;
  font-size: 12px;
  color: #9aa7b5;
  line-height: 1.55;
}
.ms-way-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 3px;
  color: #6a7886;
  font-weight: 700;
}
.ms-way-card li.hl {
  display: inline-block;
  padding-right: 4px;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 230, 118, 0.28) 58%);
  color: #e8eef5;
  font-weight: 600;
}
.ms-way-card.person li.hl {
  background: linear-gradient(180deg, transparent 58%, rgba(255, 138, 61, 0.32) 58%);
}
.ms-way-cta {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #6f7d8c;
  letter-spacing: 0.5px;
  padding-top: 4px;
}

.ms-flow-bar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 3px;
}
.ms-flow-bar li {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #c5d0db;
  font-weight: 700;
  padding: 11px 10px 11px 14px;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(0, 230, 118, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(0, 230, 118, 0.15);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%, 7px 50%);
}
.ms-flow-bar li:first-child {
  padding-left: 6px;
  border-radius: 4px 0 0 4px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
}
.ms-flow-bar li:last-child {
  padding-right: 6px;
  border-radius: 0 4px 4px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 7px 50%);
}

.ms-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
}
.ms-faq details:last-child { border-bottom: 0; }
.ms-faq summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #e8eef5;
}
.ms-faq summary::-webkit-details-marker { display: none; }
.ms-faq p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #8fa0b0;
  line-height: 1.6;
}

.ms-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: flex-end;
}
.ms-sheet {
  width: 100%;
  max-height: 70vh;
  background: #121820;
  border-radius: 16px 16px 0 0;
  padding: 12px 12px calc(12px + var(--safe-b));
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8eef5;
}
.ms-sheet header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ms-sheet header button {
  border: 0;
  background: transparent;
  color: #8fa0b0;
}
.ms-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ms-brand-grid button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px 4px;
  font-size: 12px;
  color: #c5d0db;
}
.ms-brand-grid button.is-on {
  border-color: var(--ms-neon);
  color: var(--ms-neon);
  background: rgba(0, 230, 118, 0.12);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .ms-race-lanes,
  .ms-race-streaks i,
  .ms-race-car,
  .ms-race-city,
  .ms-race-grain,
  .ms-race-neon,
  .ms-hero-cta::after,
  .ms-layer-arrow,
  .ms-layer-badge,
  .ms-layer-mascot,
  .ms-mode-ico,
  .ms-spark {
    animation: none !important;
  }
}

@media (max-width: 360px) {
  .ms-hero { min-height: 460px; padding-bottom: 80px; }
  .ms-hero-art { width: 168px; right: -16px; bottom: 28px; }
  .ms-layer-mascot { max-width: 148px; }
  .ms-value { margin-top: -80px; }
  .ms-flow-bar li { font-size: 10px; padding-left: 10px; padding-right: 8px; }
}
