/* ==========================================================================
   二手车交易 + 代驾服务小程序 · 全场景交互 UI 设计方案
   Tokens, Studio Workspace, WeChat Mini Program Shell & 18 Business Screens
   ========================================================================== */

:root {
  --bg-studio: #E8EEF6;
  --bg-panel: #FFFFFF;
  --bg-phone: #F3F6FB;
  --bg-subtle: #EBF0F7;
  --bg-elevated: #FFFFFF;

  --ink-strong: #0F172A;
  --ink-body: #1E293B;
  --ink-secondary: #475569;
  --ink-muted: #52627A;

  --cobalt-600: #1652DF;
  --cobalt-700: #0E3CA8;
  --cobalt-50: #EDF4FF;
  --cobalt-100: #D6E6FF;

  --orange-600: #C2410C;
  --orange-700: #9A3412;
  --orange-50: #FFF4EC;
  --orange-100: #FFE4CF;

  --emerald-700: #047857;
  --emerald-50: #EAFAF3;
  --emerald-100: #C8F2DF;

  --crimson-700: #BE123C;
  --crimson-50: #FFF1F2;

  --amber-highlight: #F59E0B;
  --vip-obsidian: #141722;
  --vip-surface: #1E2334;
  --vip-gold: #F3CA7E;
  --vip-gold-soft: #FDE7BD;
  --vip-gold-ink: #3B2504;

  --line: #DCE4F0;
  --line-strong: #C4D1E3;

  --shadow-sm: 0 4px 12px -4px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 10px 26px -8px rgba(15, 23, 42, 0.11);
  --shadow-phone: 0 24px 56px -14px rgba(15, 23, 42, 0.22);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: var(--cobalt-600);
  color: #FFFFFF;
}

html {
  font-family: var(--font-sans);
  color: var(--ink-body);
  background: var(--bg-studio);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--cobalt-600);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-studio);
  color: var(--ink-body);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

a {
  color: var(--cobalt-600);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--cobalt-600);
  outline-offset: 2px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #BAC7DA;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A6C0;
}

.ui-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.num {
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-strong);
  text-wrap: balance;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

/* ==========================================================================
   1. Studio Top Header Bar
   ========================================================================== */
.studio-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: #0F172A;
  color: #F8FAFC;
  border-bottom: 1px solid #1E293B;
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.studio-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cobalt-600);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
}

.studio-brand h1 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-brand-sub {
  font-size: 12px;
  color: #CBD5E1;
  margin-top: 2px;
}

.studio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-switch {
  display: inline-flex;
  background: #1E293B;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #334155;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #CBD5E1;
  white-space: nowrap;
  transition: background 0.2s var(--ease-out-expo), color 0.2s var(--ease-out-expo);
}

.mode-btn:hover {
  color: #FFFFFF;
}

.mode-btn.is-active {
  background: var(--cobalt-600);
  color: #FFFFFF;
}

.studio-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #1E293B;
  border: 1px solid #334155;
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   2. Studio Main Workspace (Simulator Mode vs Panorama Board Mode)
   ========================================================================== */
.studio-workspace {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 36px;
  display: grid;
  grid-template-columns: 288px minmax(375px, 1fr) 336px;
  gap: 24px;
  align-items: start;
}

.studio-workspace.is-hidden,
.panorama-board.is-hidden {
  display: none;
}

.studio-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Left Screen Directory */
.dir-panel {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
}

.dir-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.dir-header h2 {
  font-size: 15px;
  font-weight: 700;
}

.dir-header p {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.dir-scroll {
  overflow-y: auto;
  padding: 8px 10px 12px;
}

.dir-group + .dir-group {
  margin-top: 9px;
}

.dir-group-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  padding: 2px 8px 4px;
}

.dir-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: left;
  color: var(--ink-body);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.16s var(--ease-out-expo), color 0.16s var(--ease-out-expo);
}

.dir-item:hover {
  background: var(--bg-subtle);
}

.dir-item.is-active {
  background: var(--cobalt-50);
  color: var(--cobalt-700);
  font-weight: 700;
}

.dir-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dir-item-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dir-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--ink-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.dir-item.is-active .dir-badge {
  background: var(--cobalt-600);
  color: #FFFFFF;
}

/* Mobile quick screen selector (shown on <1120px) */
.mobile-screen-picker {
  display: none;
  padding: 10px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  gap: 8px;
  overflow-x: auto;
}

.mobile-screen-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--ink-body);
  border: 1px solid var(--line);
}

.mobile-screen-chip.is-active {
  background: var(--cobalt-600);
  color: #FFFFFF;
  border-color: var(--cobalt-600);
}

/* ==========================================================================
   3. Center WeChat Mini Program Phone Frame (375 x 812 Viewport)
   ========================================================================== */
.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-device {
  width: 393px;
  padding: 9px;
  border-radius: 44px;
  background: #161E2E;
  box-shadow: var(--shadow-phone);
  border: 1px solid #334155;
  position: relative;
}

.phone-screen {
  width: 375px;
  height: 812px;
  border-radius: 35px;
  background: var(--bg-phone);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* iOS Status Bar + WeChat Mini Program Capsule Header */
.mp-statusbar {
  height: 36px;
  padding: 8px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-strong);
  background: #FFFFFF;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.mp-statusbar.is-dark {
  background: var(--vip-obsidian);
  color: #FFFFFF;
}

.mp-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mp-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}
.mp-signal i {
  display: block;
  width: 2.5px;
  background: currentColor;
  border-radius: 1px;
}
.mp-signal i:nth-child(1) { height: 4px; }
.mp-signal i:nth-child(2) { height: 6px; }
.mp-signal i:nth-child(3) { height: 8px; }
.mp-signal i:nth-child(4) { height: 10px; }

.mp-battery {
  width: 20px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  padding: 1.2px;
  position: relative;
}
.mp-battery::after {
  content: "";
  position: absolute;
  right: -3.2px;
  top: 2.2px;
  width: 1.6px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}
.mp-battery-fill {
  display: block;
  width: 82%;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}

.mp-navbar {
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.mp-navbar.is-dark {
  background: var(--vip-obsidian);
  color: #FFFFFF;
  border-bottom-color: #272D42;
}

.mp-nav-left {
  width: 78px;
  display: flex;
  align-items: center;
}

.mp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  padding: 4px 6px 4px 2px;
  border-radius: 6px;
}

.mp-back-btn:hover {
  background: rgba(148, 163, 184, 0.16);
}

.mp-nav-title {
  font-size: 15px;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-capsule {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-strong);
  padding: 0 4px;
}

.mp-navbar.is-dark .mp-capsule {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.mp-capsule span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
}

.mp-capsule span + span {
  border-left: 1px solid rgba(148, 163, 184, 0.35);
}

/* Main Scrollable Body Inside Phone */
.mp-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-phone);
  position: relative;
}

.mp-screen-stage {
  min-height: 100%;
  animation: screenReveal 0.24s var(--ease-out-expo);
}

@keyframes screenReveal {
  from {
    transform: translateY(5px);
    filter: blur(1.5px);
  }
  to {
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Bottom 5-Tab Bar (找车 / 车源 / 服务 / 订阅 / 我的) */
.mp-tabbar {
  height: 62px;
  padding: 6px 6px 10px;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  flex-shrink: 0;
}

.mp-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 500;
  position: relative;
  transition: color 0.18s var(--ease-out-expo);
}

.mp-tab.is-active {
  color: var(--cobalt-600);
  font-weight: 700;
}

.mp-tab-dot {
  position: absolute;
  top: 2px;
  right: 18px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--crimson-700);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.mp-home-indicator {
  height: 14px;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mp-home-indicator i {
  width: 118px;
  height: 4px;
  border-radius: 99px;
  background: #1E293B;
}

/* ==========================================================================
   4. Right Spec & Feishu Requirement Mapping Panel
   ========================================================================== */
.spec-panel {
  position: sticky;
  top: 76px;
  padding: 18px;
}

.spec-panel h2 {
  font-size: 16px;
  font-weight: 700;
}

.spec-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.spec-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.spec-section h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.spec-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-req-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-body);
}

.spec-req-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.spec-jump-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spec-jump-btn {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink-body);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.spec-jump-btn:hover {
  background: var(--cobalt-50);
  border-color: var(--cobalt-100);
  color: var(--cobalt-700);
}

/* ==========================================================================
   5. Screen 1: 找车首页 (Reference Image 1 + Extensible Diamond Grid + 置顶)
   ========================================================================== */
.home-search-strip {
  background: #FFFFFF;
  padding: 6px 12px 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.city-selector {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-strong);
  padding: 4px 5px;
  border-radius: 8px;
  flex-shrink: 0;
}
.city-selector:hover {
  background: var(--bg-subtle);
}

.search-pill {
  flex: 1;
  height: 32px;
  border-radius: var(--radius-pill);
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 12px;
}

.compare-mini-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--cobalt-50);
  color: var(--cobalt-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.compare-mini-btn b {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--orange-600);
  color: #FFFFFF;
  font-size: 10px;
  display: grid;
  place-items: center;
}

/* Hero Banner (Backend Configurable Carousel) */
.hero-banner-wrap {
  background: #FFFFFF;
  padding: 0 12px 7px;
}

.hero-banner {
  position: relative;
  height: 112px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1B355E;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(13, 33, 69, 0.88) 0%, rgba(13, 33, 69, 0.58) 52%, rgba(13, 33, 69, 0.05) 100%);
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-banner-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-banner-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--cobalt-600);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  width: fit-content;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s var(--ease-out-expo), background 0.2s var(--ease-out-expo);
}
.hero-dot.is-active {
  width: 16px;
  background: #FFFFFF;
}

/* Marquee Announcement Bar (>=5.18:1 contrast + smooth marquee) */
.notice-strip-wrap {
  background: #FFFFFF;
  padding: 0 12px 8px;
}

.notice-strip {
  width: 100%;
  min-width: 0;
  height: 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #9A3412 0%, #C2410C 100%);
  color: #FFFFFF;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
}

.notice-marquee-viewport {
  flex: 1;
  width: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.notice-marquee-track {
  display: inline-flex;
  gap: 36px;
  animation: marqueeScroll 18s linear infinite;
}

.notice-strip:hover .notice-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 18px)); }
}

/* Twin Core Entry Cards: 出口车源 (Left) + 代驾/物流 (Right) */
.twin-cards {
  background: #FFFFFF;
  padding: 0 12px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.twin-card {
  border-radius: 12px;
  padding: 9px 10px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s var(--ease-out-expo);
}

.twin-card:active {
  transform: scale(0.98);
}

.twin-card.is-export {
  background: linear-gradient(145deg, #C74B00 0%, #9E3900 100%);
  box-shadow: var(--shadow-sm);
}

.twin-card.is-valet {
  background: linear-gradient(145deg, #1652DF 0%, #0E3CA8 100%);
  box-shadow: var(--shadow-sm);
}

.twin-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.twin-card-note {
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
}

.twin-card.is-valet .twin-card-note {
  color: #EFF6FF;
}

/* Extensible 5-Icon Function Row (估价 / 卖车 / 车险 / 入驻 / 附近酒店) */
.kingkong-row {
  background: #FFFFFF;
  padding: 0 10px 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.kingkong-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 3px 2px;
  border-radius: 10px;
}

.kingkong-item:hover {
  background: var(--bg-subtle);
}

.kingkong-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

.kingkong-icon.tone-blue { background: var(--cobalt-50); color: var(--cobalt-600); }
.kingkong-icon.tone-orange { background: var(--orange-50); color: var(--orange-600); }
.kingkong-icon.tone-green { background: var(--emerald-50); color: var(--emerald-700); }
.kingkong-icon.tone-indigo { background: #EEF2FF; color: #4338CA; }
.kingkong-icon.tone-rose { background: var(--crimson-50); color: var(--crimson-700); }

.kingkong-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-body);
}

/* Sticky Filter Bar + Interactive Dropdown Drawer */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #FFFFFF;
  border-top: 1px solid #EEF2F7;
  border-bottom: 1px solid var(--line);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-body);
}

.filter-btn.is-active {
  color: var(--cobalt-600);
  font-weight: 700;
}

.filter-drawer {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-tags-bar {
  background: var(--bg-phone);
  padding: 8px 12px 4px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.quick-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  background: #FFFFFF;
  color: var(--ink-secondary);
  border: 1px solid var(--line);
}

.quick-tag.is-active {
  background: var(--cobalt-600);
  color: #FFFFFF;
  border-color: var(--cobalt-600);
}

/* Vehicle Cards List */
.car-list {
  padding: 8px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.car-card {
  background: #FFFFFF;
  border-radius: 11px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 9px;
  border: 1px solid #E5ECF6;
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease;
}

.car-card:hover {
  border-color: #B6C9EC;
}

.car-thumb {
  position: relative;
  width: 108px;
  height: 80px;
  border-radius: 7px;
  overflow: hidden;
  background: #E2E8F0;
}

.car-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-pinned {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--crimson-700);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.car-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.car-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-meta {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.car-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.car-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--orange-600);
}

.car-guide {
  font-size: 11px;
  color: var(--ink-muted);
}

.car-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.tag-cert {
  padding: 1.5px 6px;
  border-radius: 4px;
  background: var(--emerald-700);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
}

.tag-vip {
  padding: 1.5px 6px;
  border-radius: 4px;
  background: var(--orange-600);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
}

.tag-soft {
  padding: 1.5px 6px;
  border-radius: 4px;
  background: var(--cobalt-50);
  color: var(--cobalt-700);
  font-size: 10.5px;
  font-weight: 600;
}

/* ==========================================================================
   6. Screen 2: 车源圈页面 (Reference Image 2: 全部/求购/收购/批发/拍卖/询价)
   ========================================================================== */
.circle-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.circle-tabs {
  background: #FFFFFF;
  padding: 10px 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 14;
}

.circle-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 7px 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.circle-tab.is-active {
  color: var(--ink-strong);
  font-weight: 800;
}

.circle-tab.is-active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: #F59E0B;
}

.circle-sup {
  padding: 1px 4px;
  border-radius: 5px 5px 5px 1px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.25;
  transform: translateY(-6px);
  flex-shrink: 0;
}

.feed-list {
  background: #FFFFFF;
  flex: 1;
}

.feed-post {
  padding: 14px 12px 10px;
  border-bottom: 1px solid #EDF2F7;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
}

.feed-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cobalt-600);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.feed-avatar.tone-2 { background: #0D9488; }
.feed-avatar.tone-3 { background: #B45309; }
.feed-avatar.tone-4 { background: #4338CA; }

.feed-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feed-type-tag {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #E0F2FE;
  color: #0369A1;
}

.feed-type-tag.is-buy { background: #FEF2F2; color: #B91C1C; }
.feed-type-tag.is-wholesale { background: #FFF7ED; color: #C2410C; }
.feed-type-tag.is-auction { background: #EEF2FF; color: #3730A3; }

.feed-loc-time {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.feed-text {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-strong);
}

.feed-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.feed-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #E2E8F0;
}

.feed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-more-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.feed-actions {
  margin-top: 10px;
  padding-top: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.feed-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 4px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.feed-act-btn:hover {
  background: var(--bg-subtle);
  color: var(--cobalt-600);
}

.fab-stack {
  position: sticky;
  bottom: 14px;
  align-self: flex-end;
  margin: 8px 12px 12px auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.map-radar-ring {
  transform-origin: 188px 112px;
  animation: radarPulse 2.4s var(--ease-out-expo) infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.65); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.fab-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}

.fab-btn.is-primary {
  background: var(--cobalt-600);
  color: #FFFFFF;
  border-color: var(--cobalt-600);
}

/* ==========================================================================
   7. Valet Dispatch Map & Order Cards (一键叫代驾 / 实时轨迹跟踪)
   ========================================================================== */
.valet-map-box {
  position: relative;
  height: 174px;
  background: #DCE8F8;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.valet-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-float-pill {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-strong);
}

.ins-shield-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 11px;
  font-weight: 700;
}

.valet-sheet {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seg-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #E6ECF5;
  padding: 4px;
  border-radius: 11px;
}

.seg-pill {
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-align: center;
}

.seg-pill.is-active {
  background: #FFFFFF;
  color: var(--cobalt-600);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.section-card {
  background: #FFFFFF;
  border: 1px solid #E3EAF4;
  border-radius: 13px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.section-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.route-point {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.route-point + .route-point {
  border-top: 1px dashed var(--line);
}

.route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-700);
  flex-shrink: 0;
}

.route-dot.is-end {
  background: var(--orange-600);
}

.route-main {
  flex: 1;
  min-width: 0;
}

.route-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-strong);
}

.route-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.fee-estimate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.fee-big {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange-600);
  font-variant-numeric: tabular-nums;
}

.fee-breakdown-box {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--bg-phone);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.fee-line {
  display: flex;
  justify-content: space-between;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.tip-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.tip-chip {
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-phone);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-body);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tip-chip.is-active {
  background: var(--cobalt-50);
  border-color: var(--cobalt-600);
  color: var(--cobalt-700);
  font-weight: 700;
}

.primary-cta {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--cobalt-600);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: background 0.16s ease, transform 0.16s ease;
}

.primary-cta:hover {
  background: var(--cobalt-700);
}

.primary-cta.is-orange {
  background: var(--orange-600);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   8. Shared Inner Screen Components (Inspection, VIP, Chat, Wallet, Forms)
   ========================================================================== */
.page-pad {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-tabs {
  display: flex;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
}

.sub-tab {
  flex: 1;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-align: center;
  border-bottom: 2.5px solid transparent;
}

.sub-tab.is-active {
  color: var(--cobalt-600);
  font-weight: 800;
  border-bottom-color: var(--cobalt-600);
}

.kv-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.kv-cell {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-phone);
}

.kv-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.kv-lbl {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.inspect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid #EEF2F7;
  font-size: 12.5px;
}

.inspect-pass {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--emerald-700);
  font-weight: 700;
  font-size: 12px;
}

.inspect-note {
  color: var(--orange-600);
  font-weight: 700;
  font-size: 12px;
}

.bottom-action-bar {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mini-icon-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  color: var(--ink-secondary);
  padding: 0 5px;
}

.half-cta {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.half-cta.is-outline {
  background: var(--cobalt-50);
  color: var(--cobalt-700);
  border: 1px solid var(--cobalt-100);
}

.half-cta.is-solid {
  background: var(--orange-600);
  color: #FFFFFF;
}

/* VIP Black-Gold Screen */
.vip-hero {
  background: linear-gradient(155deg, #141722 0%, #242A40 100%);
  color: #FFFFFF;
  padding: 16px 14px;
  border-radius: 14px;
}

.vip-hero h3 {
  color: var(--vip-gold);
  font-size: 18px;
  font-weight: 800;
}

.vip-hero p {
  color: var(--vip-gold-soft);
  font-size: 12px;
  margin-top: 4px;
}

.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vip-plan {
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.vip-plan.is-active {
  background: #FFFDF7;
  border-color: #D99B26;
  box-shadow: var(--shadow-sm);
}

.vip-plan-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-strong);
}

.vip-plan-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--orange-600);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.vip-plan-unit {
  font-size: 10.5px;
  color: var(--ink-muted);
}

/* Form Elements */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-body);
}

.form-input {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  font-size: 12.5px;
  color: var(--ink-strong);
}

.upload-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.upload-slot {
  height: 68px;
  border-radius: 9px;
  border: 1px dashed var(--line-strong);
  background: var(--bg-phone);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--ink-muted);
}

/* IM Chat Bubbles */
.chat-stream {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 86%;
}

.chat-msg.is-self {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble {
  padding: 9px 11px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-strong);
}

.chat-msg.is-self .chat-bubble {
  background: var(--cobalt-600);
  border-color: var(--cobalt-600);
  color: #FFFFFF;
}

/* Comparison Table */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cmp-table th,
.cmp-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #EDF2F7;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.cmp-table th {
  color: var(--ink-muted);
  font-weight: 600;
  width: 78px;
}

/* Toast inside phone */
.mp-toast {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 84px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease-out-expo), transform 0.22s var(--ease-out-expo);
}

.mp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   9. Panorama 18-Screen Artboard Grid Mode
   ========================================================================== */
.panorama-board {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.pano-group + .pano-group {
  margin-top: 32px;
}

.pano-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pano-group-head h2 {
  font-size: 18px;
  font-weight: 800;
}

.pano-group-head span {
  font-size: 13px;
  color: var(--ink-muted);
}

.pano-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(312px, 1fr));
  gap: 20px;
}

.pano-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pano-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pano-card-top h3 {
  font-size: 14px;
  font-weight: 700;
}

.pano-open-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--cobalt-50);
  color: var(--cobalt-700);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.pano-viewport-wrap {
  width: 100%;
  height: 556px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-phone);
  display: flex;
  justify-content: center;
}

.pano-mini-phone {
  width: 375px;
  height: 740px;
  flex-shrink: 0;
  transform: scale(0.75);
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  background: var(--bg-phone);
  pointer-events: none;
}

/* ==========================================================================
   10. Responsive Adaptation (< 1120px & Mobile 390px)
   ========================================================================== */
@media (max-width: 1120px) {
  .studio-workspace {
    grid-template-columns: 1fr;
    padding: 12px 12px 28px;
    gap: 16px;
  }
  .dir-panel {
    display: none;
  }
  .mobile-screen-picker {
    display: flex;
  }
  .spec-panel {
    position: static;
  }
}

@media (max-width: 440px) {
  .studio-topbar {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .studio-brand {
    width: 100%;
  }
  .studio-brand h1 {
    font-size: 14.5px;
  }
  .studio-brand-sub,
  .studio-stat-pill {
    display: none;
  }
  .studio-controls,
  .mode-switch {
    width: 100%;
  }
  .mode-btn {
    flex: 1;
    justify-content: center;
    padding: 6px 10px;
    font-size: 12px;
  }
  .studio-workspace {
    padding: 0 0 20px;
  }
  .phone-device {
    width: 100%;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .phone-screen {
    width: 100%;
    height: auto;
    min-height: 760px;
    border-radius: 0;
  }
  .mp-body {
    overflow: visible;
  }
  .spec-panel {
    margin: 0 12px;
  }
  .panorama-board {
    padding: 14px 12px;
  }
  .pano-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .notice-marquee-track,
  .map-radar-ring,
  .mp-screen-stage {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ==========================================================================
   11. Craft Layer: numerals, atmosphere, choreography, micro-interactions
   ========================================================================== */
:root {
  --font-num: "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", "SF Pro Rounded", "PingFang SC", sans-serif;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* Numerals get their own voice: condensed, tabular, confident */
.car-price,
.fee-big,
.vip-plan-price,
.kv-val,
.num,
.feed-loc-time {
  font-family: var(--font-num);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.car-price {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fee-big {
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: numPop 0.5s var(--ease-spring);
  transform-origin: right center;
}

.vip-plan-price {
  font-size: 20px;
  font-weight: 700;
}

@keyframes numPop {
  0% { transform: scale(0.86); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* Studio atmosphere: quiet gradient field + dot grid, no decoration competing with the phone */
body {
  background:
    radial-gradient(900px 520px at 50% -8%, #F7FAFF 0%, rgba(247, 250, 255, 0) 70%),
    radial-gradient(700px 480px at 92% 40%, rgba(22, 82, 223, 0.05) 0%, rgba(22, 82, 223, 0) 70%),
    radial-gradient(640px 460px at 6% 70%, rgba(199, 75, 0, 0.045) 0%, rgba(199, 75, 0, 0) 70%),
    var(--bg-studio);
  background-attachment: fixed;
}

.studio-workspace {
  position: relative;
}

.studio-workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 52% 60% at 50% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 52% 60% at 50% 42%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.phone-stage {
  position: relative;
  z-index: 1;
}

.phone-device {
  transition: transform 0.5s var(--ease-out-expo);
  will-change: transform;
  transform-style: preserve-3d;
}

/* Choreography: entrance only when the screen changes, never on in-place state updates */
.mp-screen-stage {
  animation: none;
}

.mp-screen-stage.is-entering {
  animation: screenReveal 0.32s var(--ease-out-expo);
}

.mp-screen-stage.is-entering .car-card,
.mp-screen-stage.is-entering .feed-post,
.mp-screen-stage.is-entering .section-card,
.mp-screen-stage.is-entering .kingkong-item,
.mp-screen-stage.is-entering .twin-card,
.mp-screen-stage.is-entering .vip-hero {
  animation: riseIn 0.62s var(--ease-out-expo) both;
  animation-delay: calc(var(--i, 0) * 55ms + 40ms);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spec-panel.is-entering > * {
  animation: specIn 0.5s var(--ease-out-expo) both;
}
.spec-panel.is-entering > *:nth-child(2) { animation-delay: 60ms; }
.spec-panel.is-entering > *:nth-child(3) { animation-delay: 120ms; }
.spec-panel.is-entering > *:nth-child(4) { animation-delay: 180ms; }

@keyframes specIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero carousel: crossfade, slow push-in, per-dot progress */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out-expo);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  transform: scale(1.08);
  transition: transform 6s var(--ease-out-expo);
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero-slide .hero-banner-overlay > div {
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.8s var(--ease-out-expo) 0.15s, opacity 0.8s var(--ease-out-expo) 0.15s;
}

.hero-slide.is-active .hero-banner-overlay > div {
  transform: translateY(0);
  opacity: 1;
}

.hero-banner .hero-dots {
  position: absolute;
  left: 13px;
  bottom: 10px;
  z-index: 3;
}

.hero-dot {
  position: relative;
  overflow: hidden;
}

.hero-dot.is-active {
  width: 22px;
}

.hero-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  transform-origin: left center;
  animation: dotFill 4.8s linear forwards;
}

.hero-dot.is-active {
  background: rgba(255, 255, 255, 0.4);
}

@keyframes dotFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Signature: dispatch route running through the valet entry card */
.twin-card.is-valet::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  animation: routeMarch 1.1s linear infinite;
  opacity: 0.75;
}

.twin-card.is-valet {
  padding-bottom: 14px;
}

@keyframes routeMarch {
  from { background-position: 0 0; }
  to { background-position: 24px 0; }
}

/* Dispatch map route: dashes march while waiting, line draws once while tracking */
.route-line.is-order {
  stroke-dasharray: 6 5;
  animation: dashMarch 0.9s linear infinite;
}

.route-line.is-track {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: routeDraw 1.6s var(--ease-out-expo) 0.2s forwards;
}

@keyframes dashMarch {
  to { stroke-dashoffset: -11; }
}

@keyframes routeDraw {
  to { stroke-dashoffset: 0; }
}

/* Bottom tab bar: active marker + icon spring */
.mp-tab {
  transition: color 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
}

.mp-tab:active {
  transform: scale(0.92);
}

.mp-tab.is-active::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 0 0 4px 4px;
  background: var(--cobalt-600);
}

.mp-tabbar.is-entering .mp-tab.is-active::before {
  animation: tabMarker 0.45s var(--ease-out-expo);
}

.mp-tabbar.is-entering .mp-tab.is-active .ui-icon {
  animation: tabSpring 0.55s var(--ease-spring);
}

@keyframes tabMarker {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes tabSpring {
  0% { transform: translateY(3px) scale(0.84); }
  100% { transform: translateY(0) scale(1); }
}

/* Press feedback everywhere it can be pressed */
.car-card,
.kingkong-item,
.feed-act-btn,
.quick-tag,
.seg-pill,
.tip-chip,
.vip-plan,
.dir-item,
.spec-jump-btn,
.pano-open-btn,
.primary-cta,
.half-cta,
.filter-btn,
.fab-btn {
  transition: transform 0.18s var(--ease-out-expo), background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.car-card:active,
.kingkong-item:active,
.feed-act-btn:active,
.quick-tag:active,
.seg-pill:active,
.tip-chip:active,
.vip-plan:active,
.spec-jump-btn:active,
.pano-open-btn:active,
.primary-cta:active,
.half-cta:active,
.fab-btn:active {
  transform: scale(0.97);
}

.car-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.car-thumb img {
  transition: transform 0.7s var(--ease-out-expo);
}

.car-card:hover .car-thumb img {
  transform: scale(1.05);
}

.filter-drawer {
  animation: drawerIn 0.32s var(--ease-out-expo);
  transform-origin: top;
}

@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-6px) scaleY(0.96); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

.tip-chip.is-active,
.seg-pill.is-active,
.quick-tag.is-active {
  animation: selectPop 0.38s var(--ease-spring);
}

@keyframes selectPop {
  0% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

/* Directory rail: active item gets a quiet marker */
.dir-item {
  position: relative;
}

.dir-item.is-active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 99px;
  background: var(--cobalt-600);
}

/* Images settle in instead of popping */
.car-thumb img,
.feed-photo img {
  background: linear-gradient(110deg, #E2E8F0 30%, #EEF2F7 50%, #E2E8F0 70%);
  background-size: 200% 100%;
}

/* Tablet: give the phone room to breathe, keep spec readable */
@media (min-width: 761px) and (max-width: 1120px) {
  .studio-workspace {
    max-width: 760px;
    gap: 24px;
  }
  .spec-panel {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .mobile-screen-picker {
    padding-left: max(14px, calc((100vw - 760px) / 2));
  }
}

@media (max-width: 440px) {
  .hero-banner {
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-device {
    transform: none !important;
  }
  .twin-card.is-valet::after,
  .route-line,
  .hero-dot.is-active::after,
  .fee-big,
  .filter-drawer,
  .mp-screen-stage .car-card,
  .mp-screen-stage .feed-post,
  .mp-screen-stage .section-card,
  .mp-screen-stage .kingkong-item,
  .mp-screen-stage .twin-card,
  .mp-screen-stage .vip-hero,
  .spec-panel > * {
    animation: none !important;
  }
  .route-line.is-track {
    stroke-dashoffset: 0;
  }
  .hero-slide img {
    transform: none;
  }
}

/* Craft layer, round 2 */
.notice-marquee-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

.mobile-screen-picker {
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
}
.mobile-screen-picker::-webkit-scrollbar {
  display: none;
}

@media (max-width: 900px) {
  .studio-stat-pill {
    display: none;
  }
}

/* Trip progress: four stops on one rail */
.trip-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.trip-steps::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 7px;
  height: 2px;
  background: var(--line);
}

.trip-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
}

.trip-step i {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--line-strong);
}

.trip-step em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-muted);
}

.trip-step.is-done i {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
}

.trip-step.is-done {
  color: var(--ink-body);
}

.trip-step.is-current {
  color: var(--cobalt-600);
  font-weight: 800;
}

.trip-step.is-current i {
  background: var(--cobalt-600);
  border-color: var(--cobalt-600);
  box-shadow: 0 0 0 4px var(--cobalt-100);
  animation: stepPulse 1.8s var(--ease-out-expo) infinite;
}

@keyframes stepPulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 82, 223, 0.35); }
  100% { box-shadow: 0 0 0 9px rgba(22, 82, 223, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .trip-step.is-current i {
    animation: none;
  }
}

/* VIP is its own room: obsidian ground end to end */
.mp-body:has(.vip-page) {
  background: linear-gradient(180deg, #141722 0%, #1B2033 100%);
}

.vip-page .section-card {
  border-color: transparent;
}

.vip-page .vip-hero {
  border: 1px solid rgba(243, 202, 126, 0.28);
  background: linear-gradient(155deg, #1B2033 0%, #262D47 100%);
}

.phone-screen:has(.vip-page) .mp-home-indicator {
  background: #1B2033;
}
.phone-screen:has(.vip-page) .mp-home-indicator i {
  background: rgba(255, 255, 255, 0.55);
}
