/* ==========================================================================
   汽车质量促进平台 · 02 新华社经参汽车评测媒体视觉系统
   美学方向：现代精装财经与汽车评测画报（深墨青 #14233C + 克制朱砂红 #C41E28 + 素白纸灰 #F7F7F5）
   原则：零 Emoji、零霓虹发光、零玩具圆角、极细分割线与清晰编辑部排版层级
   ========================================================================== */

:root {
  --t: 1;
  /* 品牌色：深墨青为主、朱砂红只作行动与警示点睛 */
  --navy: #14233C;
  --navy-2: #22344F;
  --navy-soft: #EEF1F5;
  --crimson: #B8232C;
  --crimson-deep: #961B23;
  --crimson-soft: #FAF0EF;

  /* 墨色层级：偏暖的中性灰，避免冷蓝灰的“系统感” */
  --ink: #1A1D21;
  --ink-2: #464B53;
  --ink-3: #767B84;
  --ink-4: #A4A8AF;

  /* 纸面：暖白底 + 纯白卡片，靠明度差分层，少用描边 */
  --bg: #F4F3EF;
  --card: #FFFFFF;
  --surface-2: #F7F6F3;
  --track: #EAE9E4;
  --line: #ECEBE6;
  --line-strong: #DAD8D1;

  --teal: #1F6B63;
  --teal-soft: #EDF4F2;
  --amber: #9A5B12;
  --amber-soft: #F8F1E6;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(26, 29, 33, 0.04), 0 0 0 1px rgba(26, 29, 33, 0.035);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-num: "Inter", "SF Pro Display", -apple-system, "Helvetica Neue", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #E9E8E3;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

/* 衬线只承担“编辑部声音”：标题、车型名；正文与控件一律无衬线 */
.serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv11" 1;
  letter-spacing: -0.015em;
}

/* ==========================================================================
   桌面评审工作台（克制建筑灰，无暗黑发光）
   ========================================================================== */
.studio-layout {
  min-height: 100vh;
  display: flex;
  background: #E9E8E3;
}

.studio-sidebar {
  width: 288px;
  flex-shrink: 0;
  padding: 32px 24px 24px;
  border-right: 1px solid #DCDAD3;
  background: #F4F3EF;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
}

.studio-masthead {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.masthead-kicker {
  font-size: 11px;
  font-weight: 500;
  color: var(--crimson);
  letter-spacing: 0.08em;
}

.masthead-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.masthead-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}

.studio-group-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  padding-left: 10px;
}

.studio-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.studio-nav-btn {
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  transition: background 0.14s ease, color 0.14s ease;
}

.studio-nav-btn:hover {
  background: rgba(26, 29, 33, 0.04);
  color: var(--ink);
}

.studio-nav-btn.active {
  background: #FFFFFF;
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.studio-panel {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
}

.seg-mini {
  display: inline-flex;
  background: var(--track);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.seg-mini button {
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--ink-3);
}

.seg-mini button.active {
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(26, 29, 33, 0.08);
}

.status-toggle-btn {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  background: var(--teal-soft);
  color: var(--teal);
}

.status-toggle-btn.logged-out {
  background: var(--track);
  color: var(--ink-3);
}

.studio-footnote {
  margin-top: auto;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-4);
  padding: 14px 10px 0;
  border-top: 1px solid var(--line-strong);
}

/* ==========================================================================
   手机仿真外壳
   ========================================================================== */
.phone-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px;
}

.phone-frame {
  width: 390px;
  height: 844px;
  max-height: calc(100vh - 36px);
  background: var(--bg);
  border-radius: 44px;
  border: 8px solid #1C1E22;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 30px 60px -20px rgba(26, 29, 33, 0.28), 0 12px 24px -12px rgba(26, 29, 33, 0.16);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wx-header {
  flex-shrink: 0;
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  z-index: 30;
}

.wx-header.navy-mode {
  background: var(--navy);
  color: #FFFFFF;
  border-bottom-color: transparent;
}

.wx-statusbar {
  height: 40px;
  padding: 10px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.wx-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wx-battery {
  width: 21px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-radius: 2.5px;
  padding: 1.4px;
  position: relative;
}

.wx-battery::after {
  content: "";
  position: absolute;
  right: -3.2px;
  top: 2px;
  width: 1.8px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}

.wx-battery-fill {
  width: 84%;
  height: 100%;
  background: currentColor;
}

.wx-navbar {
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.wx-nav-left {
  min-width: 76px;
  display: flex;
  align-items: center;
}

.nav-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.wx-nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(16px * var(--t));
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 186px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-capsule {
  width: 84px;
  height: 30px;
  border-radius: 99px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  font-size: 11px;
  color: var(--ink);
}

.wx-header.navy-mode .wx-capsule {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.cap-sep {
  width: 1px;
  height: 13px;
  background: currentColor;
  opacity: 0.22;
}

.cap-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.8px solid currentColor;
  position: relative;
}

.cap-circle::after {
  content: "";
  position: absolute;
  inset: 2.2px;
  border-radius: 50%;
  background: currentColor;
}

/* 主滚动视口 */
.wx-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
}

.wx-viewport::-webkit-scrollbar { width: 3px; }
.wx-viewport::-webkit-scrollbar-thumb { background: rgba(26, 29, 33, 0.12); border-radius: 3px; }

/* 底部 4 TabBar */
.wx-tabbar {
  flex-shrink: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 0.5px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding-bottom: 3px;
  z-index: 25;
}

.wx-tabbar.hidden { display: none; }

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-4);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  height: 100%;
}

.tab-item svg { width: 21px; height: 21px; }

.tab-item.active {
  color: var(--navy);
  font-weight: 600;
}

.tab-item.active svg { stroke-width: 2; }

/* ==========================================================================
   基础编辑部组件：卡片、报头、线条标签、按钮
   ========================================================================== */
.page-pad {
  padding: 14px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--card);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.card-navy {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: calc(16px * var(--t));
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* 编辑部式小标记：一枚短横，替代粗竖条 */
.section-title::before {
  content: "";
  width: 10px;
  height: 2px;
  background: var(--crimson);
  display: inline-block;
  transform: translateY(-4px);
}

.section-more {
  font-size: calc(12px * var(--t));
  color: var(--ink-4);
  font-weight: 400;
}

.section-more::after { content: " ›"; }

/* 克制标签（无高饱和糖果色） */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: calc(10.5px * var(--t));
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-navy { background: var(--navy); color: #FFFFFF; }
.tag-navy-soft { background: var(--navy-soft); color: var(--navy); }
.tag-crimson { background: var(--crimson); color: #FFFFFF; }
.tag-crimson-soft { background: var(--crimson-soft); color: var(--crimson); }
.tag-teal { background: var(--teal-soft); color: var(--teal); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-line { background: transparent; color: var(--ink-3); border-color: var(--line-strong); }
.tag-muted { background: var(--surface-2); color: var(--ink-2); }

/* 按钮体系 */
.btn-crimson {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  background: var(--crimson);
  color: #FFFFFF;
  font-size: calc(14px * var(--t));
  font-weight: 600;
  text-align: center;
}
.btn-crimson:active { background: var(--crimson-deep); }
.btn-crimson:disabled { background: var(--track); color: var(--ink-4); cursor: not-allowed; }

.btn-navy {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  background: var(--navy);
  color: #FFFFFF;
  font-size: calc(14px * var(--t));
  font-weight: 600;
  text-align: center;
}

.btn-outline {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  font-size: calc(12px * var(--t));
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}

.btn-sm-crimson {
  padding: 6px 13px;
  border-radius: 7px;
  background: var(--crimson);
  color: #FFFFFF;
  font-size: calc(12px * var(--t));
  font-weight: 600;
}

.btn-sm-navy {
  padding: 6px 13px;
  border-radius: 7px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: calc(12px * var(--t));
  font-weight: 600;
}

/* ==========================================================================
   首页 · 新华社经参报头 + 评测画报封面 + 工具矩阵
   ========================================================================== */
.home-masthead {
  background: var(--navy);
  color: #FFFFFF;
  padding: 6px 16px 18px;
}

.hm-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.hm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: calc(12.5px * var(--t));
}

.hm-cta-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.hm-cta-main {
  background: var(--crimson);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: calc(13px * var(--t));
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hm-cta-sub {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: calc(12.5px * var(--t));
  font-weight: 500;
}

/* 8 入口极简线性图标宫格 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 4px;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px 8px 16px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: calc(11.5px * var(--t));
  font-weight: 400;
  color: var(--ink-2);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--navy);
  display: grid;
  place-items: center;
}

.tool-icon.accent {
  background: var(--crimson-soft);
  color: var(--crimson);
}

.tool-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }

/* 车库召回提醒条（冷静严肃） */
.recall-notice-bar {
  background: var(--crimson-soft);
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* 评测头条画报卡 */
.editorial-cover {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.editorial-plate {
  height: 118px;
  background: var(--navy);
  padding: 16px;
  color: #FFFFFF;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.editorial-plate svg.bg-grid {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 190px;
  height: 92px;
  opacity: 0.2;
}

/* 数据栏 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px 0;
  overflow: hidden;
}

.stat-cell {
  padding: 0 8px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }
.stat-val { font-size: calc(19px * var(--t)); font-weight: 600; color: var(--ink); line-height: 1.2; }
.stat-lbl { font-size: 10.5px; color: var(--ink-4); margin-top: 4px; letter-spacing: 0.02em; }

/* 横滑车型质量卡 */
.h-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }

.dossier-mini {
  width: 184px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   投诉卡片 & 视频双列实拍
   ========================================================================== */
.complaint-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-title {
  font-size: calc(15px * var(--t));
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

.cc-summary {
  font-size: calc(13px * var(--t));
  color: var(--ink-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-sla {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 11px;
  color: var(--ink-2);
}
.cc-sla.overdue { background: var(--crimson-soft); color: var(--crimson); font-weight: 500; }
.cc-sla.near { background: var(--amber-soft); color: var(--amber); font-weight: 500; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.video-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-thumb {
  height: 132px;
  background: var(--navy);
  color: #FFFFFF;
  padding: 9px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  display: grid;
  place-items: center;
}

/* ==========================================================================
   工程图纸风车身故障透视（白底测绘网格，绝非暗黑赛博风）
   ========================================================================== */
.blueprint-stage {
  position: relative;
  height: 176px;
  border-radius: 10px;
  border: none;
  background-color: var(--surface-2);
  background-image:
    linear-gradient(to right, rgba(20, 35, 60, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 35, 60, 0.045) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 12px 8px;
}

.bp-node {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border-radius: 99px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(26, 29, 33, 0.18);
  display: grid;
  place-items: center;
  z-index: 4;
}

.bp-node.high { background: var(--crimson); }
.bp-node.mid { background: var(--amber); }
.bp-node.low { background: var(--navy); }
.bp-node.active {
  transform: translate(-50%, -50%) scale(1.18);
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ==========================================================================
   分段器、筛选、权限条、时间线、表单
   ========================================================================== */
.seg-tabs {
  display: flex;
  background: var(--track);
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}

.seg-tab {
  flex: 1;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: calc(13px * var(--t));
  font-weight: 500;
  color: var(--ink-3);
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg-tab.active {
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(26, 29, 33, 0.08);
}

.chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 99px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  font-size: calc(12px * var(--t));
  color: var(--ink-2);
}

.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
  font-weight: 500;
}

.role-bar {
  background: var(--navy);
  padding: 10px 16px 14px;
  color: #FFFFFF;
}

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

.role-pill {
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.role-pill.active {
  background: #FFFFFF;
  color: var(--navy);
  font-weight: 600;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 15px;
  border-left: 1px solid var(--line-strong);
  margin-left: 5px;
}

.tl-item { position: relative; }
.tl-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  border: 2px solid #FFFFFF;
}
.tl-item.latest .tl-dot { background: var(--crimson); }

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.step-node {
  text-align: center;
  padding: 7px 4px;
  border-radius: 8px;
  background: var(--track);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
}
.step-node.active { background: var(--navy); color: #FFFFFF; }
.step-node.done { background: var(--teal-soft); color: var(--teal); }

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.field label {
  font-size: calc(12px * var(--t));
  font-weight: 500;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-size: calc(13px * var(--t));
  color: var(--ink);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20, 35, 60, 0.08);
}

/* ==========================================================================
   弹层与轻提示
   ========================================================================== */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, 0.4);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82%;
  background: #FFFFFF;
  border-radius: 18px 18px 0 0;
  z-index: 45;
  transform: translateY(105%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  padding: 10px 18px 28px;
}
.sheet-container.open { transform: translateY(0); }

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-strong);
  margin: 0 auto 12px;
}

.wx-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: rgba(26, 29, 33, 0.9);
  color: #FFFFFF;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  max-width: 82%;
  text-align: center;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: all 0.16s ease;
}
.wx-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 919px) {
  .studio-sidebar { display: none; }
  .phone-stage { padding: 0; display: block; }
  .phone-frame {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ==========================================================================
   对标车质网 + 正规车型评测：4节点进度条、实验室指标卡、客观对比 PK 表
   ========================================================================== */
.mini-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-top: 6px;
}

.mp-step {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: var(--ink-4);
}

.mp-bar {
  height: 2px;
  border-radius: 2px;
  background: var(--track);
}

.mp-step.done {
  color: var(--ink-2);
  font-weight: 500;
}

.mp-step.done .mp-bar {
  background: var(--navy);
}

.mp-step.current {
  color: var(--crimson);
  font-weight: 600;
}

.mp-step.current .mp-bar {
  background: var(--crimson);
}

/* 实验室客观评测指标网格 */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lab-item {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px;
}

.lab-label {
  font-size: 11px;
  color: var(--ink-3);
}

.lab-val {
  font-size: calc(20px * var(--t));
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.2;
}

.lab-val.warn {
  color: var(--crimson);
}

.lab-bench {
  font-size: 10.5px;
  color: var(--ink-4);
  margin-top: 4px;
}

/* 车型客观对比 PK 表格 */
.pk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pk-table tr {
  border-bottom: 1px solid var(--line);
}

.pk-table tr:last-child {
  border-bottom: none;
}

.pk-table td {
  padding: 11px 6px;
  vertical-align: middle;
}

.pk-table td.pk-k {
  color: var(--ink-3);
  text-align: center;
  width: 34%;
  font-size: 11px;
  background: transparent;
}

.pk-table td.pk-v {
  width: 33%;
  text-align: center;
  font-weight: 500;
  color: var(--ink-2);
}

.pk-table td.pk-win {
  color: var(--teal);
  font-weight: 600;
  background: var(--teal-soft);
}

/* ==========================================================================
   v3 优化：车型插画、品牌索引、选车列表、吸底操作栏、参数表、对比头部、筛选栏、厂家回复卡
   ========================================================================== */
.car-art {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface-2);
  padding: 6px 8px 2px;
  overflow: hidden;
}
.car-art svg { width: 100%; height: 100%; display: block; }
.car-art.bare, .car-art.dark { background: none; padding: 0; }

.editorial-plate { min-height: 152px; }
.ep-art { position: absolute; right: -4px; bottom: 4px; width: 174px; z-index: 1; opacity: 0.34; pointer-events: none; }

.brand-strip {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  background: #FFFFFF; border-radius: 12px; box-shadow: var(--shadow-card); padding: 14px 6px 12px;
}
.brand-strip::-webkit-scrollbar { display: none; }
.brand-chip { flex-shrink: 0; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.brand-mono {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--navy); background: var(--surface-2);
}
.brand-chip.active { color: var(--navy); font-weight: 600; }
.brand-chip.active .brand-mono { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

.sort-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 10px; background: var(--track); }
.sort-row button { padding: 6px 4px; font-size: 12px; color: var(--ink-3); border-radius: 8px; }
.sort-row button.active { color: var(--ink); font-weight: 600; background: #FFFFFF; box-shadow: 0 1px 2px rgba(26, 29, 33, 0.08); }
.list-meta { font-size: 11px; color: var(--ink-4); display: flex; justify-content: space-between; }

.car-row { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.car-row-top { display: grid; grid-template-columns: 112px 1fr auto; gap: 10px; align-items: center; }
.car-row-name { display: flex; align-items: center; gap: 6px; }
.car-row-name strong { font-size: calc(16px * var(--t)); color: var(--ink); }
.car-row-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.car-row-price { font-size: 13px; font-weight: 600; color: var(--crimson); margin-top: 5px; }
.car-row-score { text-align: center; padding-left: 12px; border-left: 1px solid var(--line); }
.car-row-score .num { font-size: 24px; font-weight: 600; color: var(--navy); line-height: 1; }
.car-row-score span { font-size: 10px; color: var(--ink-4); display: block; margin-top: 4px; }

.metric-3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 10px; padding: 10px 0; text-align: center; }
.metric-3 > div { display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); }
.metric-3 > div:last-child { border-right: none; }
.metric-3 b { font-size: 13.5px; white-space: nowrap; font-weight: 600; color: var(--ink); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.metric-3 b.good { color: var(--teal); }
.metric-3 b.bad { color: var(--crimson); }
.metric-3 span { font-size: 10.5px; color: var(--ink-4); }

.car-row-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-3); gap: 8px; }
.pk-btn { padding: 4px 10px; font-size: 11px; flex-shrink: 0; }
.pk-btn.on { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

.sticky-actions {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; gap: 8px; align-items: center;
  padding: 10px 16px; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-top: 0.5px solid var(--line-strong);
}
.pk-tray { flex: 1; font-size: 12px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sa-icon { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--ink-2); min-width: 48px; }
.sa-icon svg { width: 19px; height: 19px; }
.sa-icon.on { color: var(--crimson); }

.mh-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.mh-metrics b { display: block; font-size: 16px; font-weight: 600; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.mh-metrics b { white-space: nowrap; }
.mh-metrics b small { font-family: var(--font-sans); font-size: 11px; font-weight: 400; opacity: 0.7; margin-right: 1px; }
.mh-metrics span { font-size: 10px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.02em; }

.spec-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-item:last-of-type { border-bottom: none; }
.spec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.spec-head strong { color: var(--ink); font-weight: 600; }
.spec-head .num { color: var(--crimson); font-weight: 600; font-size: 14px; flex-shrink: 0; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin-top: 8px; }
.spec-grid div { display: flex; flex-direction: column; gap: 1px; font-size: 12px; }
.spec-grid span { font-size: 10.5px; color: var(--ink-4); }
.spec-grid b { font-weight: 500; color: var(--ink); }

.pk-head { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 6px; align-items: end; }
.pk-side { display: flex; flex-direction: column; gap: 6px; }
.pk-select {
  width: 100%; padding: 8px; border-radius: 8px; border: none;
  background: rgba(255, 255, 255, 0.08); color: #FFFFFF; font-size: 12.5px; font-weight: 600;
  appearance: none; -webkit-appearance: none; text-align: center; text-align-last: center;
}
.pk-select option { color: var(--ink); }
.pk-vs { text-align: center; padding-bottom: 6px; }
.pk-vs .num { font-size: 24px; font-weight: 600; }
.pk-vs i { font-style: normal; opacity: 0.5; margin: 0 3px; }
.pk-vs span { display: block; font-size: 10px; opacity: 0.7; }

.filter-bar { display: grid; grid-template-columns: repeat(3, 1fr); }
.filter-bar button { padding: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-bar button.set { color: var(--navy); font-weight: 600; }
.pick-list { display: flex; flex-direction: column; }
.pick-list button { text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; }
.pick-list button.active { color: var(--navy); font-weight: 600; }

.reply-card { background: #FFFFFF; border: none; box-shadow: inset 2px 0 0 var(--teal), var(--shadow-card); border-radius: 12px; padding: 16px; }
.rc-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; }
.rc-head strong { color: var(--teal); font-weight: 600; }
.reply-card p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }

.reply-feed-item { padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.reply-feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.reply-feed-item .rf-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.reply-feed-item .rf-top strong { color: var(--ink); font-weight: 600; }
.reply-feed-item .rf-body { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
