/* ============================================================
 * 森宝内部车辆竞价系统 · 交互原型 / Design Token
 * 依据：《车辆竞价详情页_交互说明_V1.0.md》§8、
 *       《完整流程与P0页面_交互说明_V1.0.md》§11
 * 基准：750rpx = 375px 逻辑视口（1px = 2rpx）
 * 本文件只放变量与全局重置，不含任何组件实现。
 * ============================================================ */
:root {
  /* 品牌 / 主色 */
  --brand:        #1E4E79;
  --brand-accent: #2E6DA4;
  --brand-soft:   #EAF2F9;
  --brand-line:   #C9DBEC;

  /* 中性 */
  --ink-900: #14202E;
  --ink-700: #33465C;
  --ink-500: #6B7C90;
  --ink-400: #93A2B3;
  --line:    #E4E9F0;
  --bg:      #F4F6F9;
  --card:    #FFFFFF;
  --hover:   #F7F9FB;
  --field:   #F8FAFC;

  /* 语义色：仅用于状态，不用于装饰 */
  --ok:     #167A5A;
  --ok-bg:  #EAF5F0;
  --ok-line:#CDE5D9;
  --warn:   #B26A00;
  --warn-bg:#FDF6EA;
  --warn-line:#F0DCB8;
  --danger: #B4232A;
  --danger-bg:#F7EDEE;
  --danger-line:#E3B7BA;
  --idle:   #6B7C90;

  /* 字号阶梯（px，rpx = px × 2） */
  --fs-nav:   18px;
  --fs-title: 17px;
  --fs-h3:    15px;
  --fs-body:  14px;
  --fs-sm:    12px;
  --fs-xs:    11px;
  --fs-tag:   10px;
  --fs-price: 28px;
  --fs-count: 24px;

  /* 间距（8rpx = 4px 基准栅格） */
  --pad-page: 16px;
  --pad-card: 12px;
  --pad-card-lg: 16px;
  --gap-card: 12px;
  --tap-min: 44px;

  /* 圆角 */
  --r-card:  12px;
  --r-btn:   8px;
  --r-tag:   4px;
  --r-sheet: 16px;

  /* 阴影 */
  --sh-card: 0 1px 2px rgba(20,32,46,.04), 0 4px 12px rgba(20,32,46,.04);
  --sh-dock: 0 -2px 12px rgba(20,32,46,.06);
  --sh-sheet:0 -8px 28px rgba(20,32,46,.14);

  /* 尺寸 */
  --phone-w: 375px;
  --phone-h: 812px;
  --statusbar-h: 24px;
  --navbar-h: 44px;
  --tabbar-h: 50px;
  --safe-h: 34px;

  /* 动效 */
  --ease-sheet: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  color: var(--ink-700);
  background: #EDF1F6;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,p { margin: 0; }
a { color: var(--brand); text-decoration: none; }

.mono, .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* 归一化：金额输入等数字键盘场景 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
