/* =========================================================
   合乘出行 · 设计系统
   DNA: 墨绿(顺风/信任) + 暖橙(温度) · 克制阴影 · 8pt 网格
   ========================================================= */

:root {
  /* Brand */
  --primary: #0F6E5C;
  --primary-700: #0A5245;
  --primary-500: #149A80;
  --primary-soft: #E7F3F0;
  --accent: #F2994A;
  --accent-soft: #FEF2E6;

  /* Neutral */
  --bg: #F4F7F6;
  --surface: #FFFFFF;
  --surface-2: #F8FAF9;
  --line: #E6ECEA;
  --line-strong: #D5DEDC;
  --text: #14201D;
  --text-2: #3D4C48;
  --muted: #6B7B77;

  /* Semantic */
  --ok: #12805C;
  --ok-soft: #E6F4EE;
  --warn: #B45309;
  --warn-soft: #FDF3E3;
  --danger: #C0392B;
  --danger-soft: #FDECEA;

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(16, 40, 35, .05);
  --sh-2: 0 2px 6px rgba(16, 40, 35, .05), 0 10px 28px rgba(16, 40, 35, .07);
  --sh-3: 0 8px 20px rgba(16, 40, 35, .10), 0 24px 56px rgba(16, 40, 35, .12);

  /* Motion */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  /* Layout */
  --tabbar-h: 64px;
  --page-max: 560px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  /* line-height: 1.6; */
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* ============================ Layout ============================ */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-bottom: calc(var(--tabbar-h) + 32px);
  min-height: 100vh;
}

.view {
  animation: viewIn .38s var(--ease) both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.view.hidden {
  display: none;
}

/* 交错淡入 */
.stagger>* {
  animation: rise .5s var(--ease) both;
}

.stagger>*:nth-child(1) {
  animation-delay: .04s;
}

.stagger>*:nth-child(2) {
  animation-delay: .09s;
}

.stagger>*:nth-child(3) {
  animation-delay: .14s;
}

.stagger>*:nth-child(4) {
  animation-delay: .19s;
}

.stagger>*:nth-child(5) {
  animation-delay: .24s;
}

.stagger>*:nth-child(6) {
  animation-delay: .29s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================ Hero ============================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 26px;
  color: #fff;
  background: linear-gradient(145deg, #0A5245 0%, #0F6E5C 48%, #17A086 100%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 68%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 153, 74, .28), transparent 70%);
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin: 10px 0 2px;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
}

.hero-stats {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16);
}

.hero-stat {
  flex: 1;
  text-align: center;
}

.hero-stat b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-stat small {
  font-size: 11px;
  color: rgba(255, 255, 255, .75);
}

.hero-stat+.hero-stat {
  border-left: 1px solid rgba(255, 255, 255, .18);
}

/* ============================ Avatar ============================ */

.avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-700);
  background: linear-gradient(140deg, #FFF6EC, #FFE3C4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14), inset 0 0 0 2px rgba(255, 255, 255, .6);
}

.avatar.lg {
  width: 68px;
  height: 68px;
  font-size: 27px;
}

/* ============================ Section ============================ */

.section {
  padding: 22px 16px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-head span {
  font-size: 12px;
  color: var(--muted);
}

/* ============================ Card ============================ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--sh-1);
}

/* ============================ 合规说明（可折叠） ============================ */

.notice {
  background: var(--warn-soft);
  border: 1px solid #F6E0BC;
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-size: 12.5px;
  color: #7A4A10;
  line-height: 1.7;
}

.notice summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #8A5512;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice summary::-webkit-details-marker {
  display: none;
}

.notice summary::after {
  content: "展开";
  font-size: 11px;
  font-weight: 600;
  color: var(--warn);
}

.notice[open] summary::after {
  content: "收起";
}

.notice ul {
  margin: 10px 0 0;
  padding-left: 17px;
}

.notice li {
  margin: 4px 0;
}

/* ============================ 行程卡片 ============================ */

.trip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.trip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: #CBD9D5;
}

.trip-card:active {
  transform: scale(.985);
}

.trip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trip-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.trip-seat {
  font-size: 12px;
  color: var(--muted);
}

.route {
  display: flex;
  gap: 12px;
}

.route-line {
  flex: none;
  width: 14px;
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.route-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.route-bar {
  flex: 1;
  width: 2px;
  background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px);
  margin: 3px 0;
}

.route-end {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
}

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

.route-body .end {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.route-body .end+.end {
  margin-top: 10px;
}

.route-body .via {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 6px 1px;
  padding-left: 9px;
  border-left: 2px solid var(--line);
}

.chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* 胶囊标签：定高 + inline-flex 居中，消除中英混排的基线偏移 */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 9px;
  line-height: 1;
  vertical-align: middle;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}

.chip.green {
  background: var(--primary-soft);
  color: var(--primary-700);
  border-color: #CFE6E0;
}

.chip.amber {
  background: var(--accent-soft);
  color: #9A5B14;
  border-color: #F6DFC4;
}

.seat-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-top: 12px;
}

.seat-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary));
  transition: width .5s var(--ease);
}

/* ============================ 司机档案 ============================ */

/* 档案卡：不使用负 margin 上浮，避免压住 Hero 圆角造成遮挡 */
.profile {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-1);
}

.profile-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-tag {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-soft);
  border: 1px solid #CFE6E0;
  border-radius: 999px;
  margin-top: 8px;
}

.verified svg {
  display: block;
  flex: none;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
}

.rating b {
  font-size: 17px;
  color: var(--accent);
}

.stars {
  letter-spacing: 1px;
  color: var(--accent);
  font-size: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stat-grid div {
  text-align: center;
}

.stat-grid b {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.stat-grid small {
  font-size: 11px;
  color: var(--muted);
}

/* 车辆信息 */
.car-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #F7FBF9, #EEF6F3);
  border: 1px solid #DCEAE5;
  border-radius: var(--r-md);
  padding: 15px;
}

.car-illu {
  flex: none;
  width: 60px;
  height: 40px;
  border-radius: var(--r-xs);
  background: linear-gradient(140deg, #0F6E5C, #17A086);
  display: grid;
  place-items: center;
}

.car-info {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
}

.car-info .name {
  font-size: 15px;
  font-weight: 700;
}

.car-info .meta {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  padding: 0 10px;
  line-height: 1;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary-700);
  border-radius: 6px;
  margin-top: 8px;
}

/* 信息行列表 */
.rows {
  display: flex;
  flex-direction: column;
}

.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.row-item:last-child {
  border-bottom: none;
}

.row-item .k {
  color: var(--muted);
  font-size: 13px;
  flex: none;
  width: 84px;
}

.row-item .v {
  flex: 1;
  font-weight: 600;
}

.row-item .s {
  flex: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
  margin-right: 5px;
}

.dot.warn {
  background: var(--warn);
}

/* 今日合规看板 */
.gauge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}

.gauge-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.gauge-num small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.gauge-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.gauge-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary));
  transition: width .6s var(--ease);
}

.gauge-bar i.full {
  background: linear-gradient(90deg, #E8834A, #D9534F);
}

/* 常用路线 */
.route-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 13px;
  line-height: 1;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-700);
  border: 1px solid #D6E9E3;
}

/* 设置列表 */
.settings {
  display: flex;
  flex-direction: column;
}

.setting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.setting:last-child {
  border-bottom: none;
}

.setting:active {
  opacity: .6;
}

.setting .arrow {
  margin-left: auto;
  color: #B9C6C2;
  font-size: 16px;
}

/* ============================ Tabbar ============================ */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  max-width: var(--page-max);
  margin: 0 auto;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
  z-index: 50;
}

.tab {
  flex: 1;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9AA8A4;
  font-size: 11px;
  font-weight: 600;
  transition: color .18s var(--ease);
}

.tab svg {
  width: 23px;
  height: 23px;
}

.tab.on {
  color: var(--primary);
}

.tab.on svg {
  animation: pop .34s var(--spring);
}

@keyframes pop {
  0% {
    transform: scale(.8);
  }

  60% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

/* ============================ Bottom Sheet ============================ */

.mask {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 23, .42);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease);
  z-index: 60;
}

.mask.on {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(102%);
  transition: transform .34s var(--ease);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--sh-3);
}

.sheet.on {
  transform: none;
}

.sheet-grip {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 6px auto 14px;
}

.sheet h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sheet .sheet-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ============================ Form ============================ */

label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  margin: 14px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 110, 92, .12);
}

.row {
  display: flex;
  gap: 10px;
}

.row>* {
  flex: 1;
  min-width: 0;
}

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: filter .15s var(--ease), transform .15s var(--ease);
}

button:hover {
  filter: brightness(1.07);
}

button:active {
  transform: scale(.98);
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

button.ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

button.ghost:hover {
  background: var(--surface-2);
}

button.danger {
  background: #fff;
  color: var(--danger);
  border-color: #F1C9C4;
}

button.block {
  width: 100%;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-row>* {
  flex: 1;
}

.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
}

.check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--primary);
}

.check a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* 费用预览 */
.share-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--ok-soft);
  border: 1px solid #C9E6D9;
  font-size: 13.5px;
  line-height: 1.75;
}

.share-box b {
  color: var(--primary-700);
}

.share-box .big {
  font-size: 22px;
  font-weight: 700;
  color: var(--ok);
  letter-spacing: -0.02em;
}

/* ============================ 反馈 ============================ */

.muted {
  color: var(--muted);
  font-size: 12.5px;
}

.hidden {
  display: none !important;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  line-height: 1;
  vertical-align: middle;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.tag.pending {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: #F2DCC0;
}

.tag.confirmed {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: #C9E6D9;
}

.tag.rejected,
.tag.done {
  background: var(--surface-2);
  color: var(--muted);
}

.err,
.ok {
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 13px;
  margin-top: 12px;
}

.err {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #F3CFC9;
}

.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid #C9E6D9;
}

.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
}

.empty .emo {
  font-size: 38px;
  display: block;
  margin-bottom: 10px;
  opacity: .55;
}

/* 骨架屏 */
.skel {
  background: linear-gradient(90deg, #EDF1F0 25%, #F6F9F8 50%, #EDF1F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--r-md);
  height: 96px;
  margin-bottom: 12px;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

/* ============================ 车主后台兼容 ============================ */

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi {
  flex: 1;
  min-width: 110px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px;
}

.kpi b {
  display: block;
  font-size: 21px;
}

.kpi small {
  color: var(--muted);
  font-size: 11.5px;
}

.kpi.alert {
  background: var(--danger-soft);
  border-color: #F3CFC9;
}

.kpi.alert b {
  color: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

dialog {
  border: none;
  border-radius: var(--r-lg);
  padding: 0;
  max-width: 560px;
  width: 92%;
  box-shadow: var(--sh-3);
}

dialog .body {
  max-height: 70vh;
  overflow: auto;
  padding: 20px;
  font-size: 13px;
  line-height: 1.8;
}

dialog .foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  text-align: right;
}

dialog h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

dialog::backdrop {
  background: rgba(14, 26, 23, .45);
}

/* ============================ 日期分组 ============================ */
.day-group {
  margin-bottom: 2px;
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 2px 9px;
}

.day-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .01em;
}

.day-count {
  font-size: 12px;
  color: var(--muted);
}

/* ============================ 下拉刷新 ============================ */
.ptr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  margin-top: -54px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .9));
  box-shadow: 0 2px 12px rgba(16, 60, 52, .1);
  z-index: 80;
  pointer-events: none;
  transition: margin-top .26s cubic-bezier(.22, .61, .36, 1);
}

.ptr.on {
  margin-top: 0;
}

/* ============================ 一键拨号 ============================ */
.req-phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.call {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-700);
  border: 1px solid #CFE6E0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.call:active {
  background: var(--primary);
  color: #fff;
}

/* ============================ 车主页 · 布局修正 ============================ */

.hero-sm {
  padding: 24px 20px 26px;
}

.hero-sm .hero-sub {
  margin-top: 4px;
}

/* 证件项：改为两行结构，长名称不再被窄列挤压 */
.doc-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.doc-item:last-child {
  border-bottom: none;
}

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.doc-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.doc-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* 今日合乘：纵向布局，小屏不挤压 */
.gauge-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px;
}

.gauge-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.gauge-head span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.gauge-head b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gauge-head b small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* 紧凑信息行（左标题右内容，自动换行不截断） */
.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .k {
  color: var(--muted);
  flex: none;
}

.info-row .v {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

/* ============================ 车主端 ============================ */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #0A5245 0%, #0F6E5C 45%, #17A086 100%);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 30px 22px 24px;
  box-shadow: var(--sh-3);
  animation: rise .5s var(--ease) both;
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 700;
  color: var(--primary-700);
  background: linear-gradient(140deg, #FFF6EC, #FFE3C4);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
}

.login-brand h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.login-brand p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* 分段切换 */
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.seg button {
  flex: 1;
  height: 36px;
  border: none;
  background: none;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.seg button.on {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--sh-1);
}

.seg button .n {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  opacity: .8;
}

/* 预约请求卡片 */
.req-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: var(--sh-1);
}

.req-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.req-phone {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.req-time {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}

.req-route {
  display: flex;
  gap: 11px;
  margin-bottom: 10px;
}

.req-route .route-line {
  padding-top: 6px;
}

.req-route .stop {
  font-size: 14px;
  font-weight: 600;
}

.req-route .stop+.stop {
  margin-top: 8px;
}

.req-note {
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: var(--r-xs);
  padding: 8px 10px;
  margin-bottom: 10px;
}

.req-fare {
  font-size: 13px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.req-fare .big {
  font-size: 19px;
  font-weight: 700;
  color: var(--ok);
  letter-spacing: -0.02em;
}

.req-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.req-actions button {
  flex: 1;
  height: 42px;
  font-size: 14px;
}

/* 行程管理卡片 */
.trip-admin {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: var(--sh-1);
}

.trip-admin .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.trip-admin .when {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
}

.trip-admin .line {
  font-size: 15px;
  font-weight: 600;
}

/* 浮动发布按钮 */
.fab {
  position: fixed;
  z-index: 40;
  right: max(16px, calc(50% - var(--page-max) / 2 + 16px));
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 0;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  background: linear-gradient(140deg, var(--primary-500), var(--primary-700));
  border: none;
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 82, 69, .35);
}

.fab:active {
  transform: scale(.92);
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
  background: rgba(20, 32, 29, .94);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 表单分组标题 */
.form-sep {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--primary);
  margin: 22px 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.form-sep:first-of-type {
  margin-top: 4px;
}

/* 证件编辑行 */
.doc-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.doc-field .f-name {
  flex: 2;
  min-width: 0;
}

.doc-field .f-date {
  flex: 1.6;
  min-width: 0;
}

.doc-field .f-del {
  flex: none;
  width: 42px;
  height: 44px;
  padding: 0;
  font-size: 19px;
  font-weight: 400;
}