:root {
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #155eef;
  --primary-dark: #0b3fa8;
  --ice: #eaf2ff;
  --ok: #0e9f6e;
  --ok-bg: #e6f7f1;
  --warn: #b45309;
  --warn-bg: #fef4e6;
  --danger: #d92d20;
  --danger-bg: #fdecea;
  --gold: #b7791f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 8px 24px rgba(15, 27, 45, 0.06);
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; }

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

/* ---------- 购票页 ---------- */
.phone-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 108px;
  position: relative;
}

.hero {
  background: var(--ink);
  color: #fff;
  padding: 26px 22px 30px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.hero .season {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #9fc0ff;
  border: 1px solid rgba(159, 192, 255, 0.4);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 12px;
}
.hero h1 { font-size: 21px; line-height: 1.35; }
.hero .sub { font-size: 12px; color: #9aa9bf; margin-top: 6px; }
.hero .route {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: #d7e3f7;
}
.hero .route b { font-weight: 600; color: #fff; }
.hero .route .dash { flex: 1; border-top: 1px dashed rgba(255, 255, 255, 0.25); height: 0; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 14px 14px 0;
  padding: 18px 16px;
}
.card-tight { padding: 14px 16px; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.label .hint { color: #9aa8bc; font-size: 11px; }

.seg {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.seg button.on {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(21, 94, 239, 0.3);
}
.seg-3 button { font-size: 13px; padding: 9px 2px; }

input[type="date"], input[type="text"], input[type="tel"], select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus { border-color: var(--primary); }

.stops { display: flex; flex-direction: column; gap: 8px; }
.stop {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s;
}
.stop:active { transform: scale(0.995); }
.stop.on {
  border-color: transparent;
  background: linear-gradient(135deg, #155eef 0%, #3f8cff 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(21, 94, 239, 0.32);
}
.stop .time {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  width: 46px;
  flex: none;
}
.stop .name { flex: 1; font-size: 14.5px; font-weight: 500; }
.stop .dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #cbd5e1; flex: none; position: relative;
}
.stop.on .time { color: #fff; }
.stop.on .name { color: #fff; font-weight: 600; }
.stop.on .dot { border-color: #fff; background: rgba(255, 255, 255, 0.25); }
.stop.on .dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff;
}
.stop .tag {
  font-size: 10px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 4px; padding: 0 4px;
}
.stop.on .tag { color: #e2ecff; border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.14); }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.stepper button {
  width: 42px; height: 42px; border: 0; background: #fff;
  font-size: 20px; color: var(--ink-2); cursor: pointer; line-height: 1;
}
.stepper button:disabled { color: #cbd5e1; }
.stepper .val {
  width: 56px; text-align: center; font-size: 16px; font-weight: 600;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  height: 42px; line-height: 42px; font-variant-numeric: tabular-nums;
}

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.sms-row { display: flex; gap: 8px; }
.sms-row input { flex: 1; }
.btn-code {
  flex: none; border: 1px solid var(--primary); background: #fff; color: var(--primary);
  border-radius: 10px; padding: 0 14px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn-code:disabled { border-color: var(--line); color: var(--muted); cursor: default; }

.price-box { background: #fbfcfe; border-radius: 10px; padding: 12px 14px; }
.price-line {
  display: flex; justify-content: space-between; font-size: 13px;
  color: var(--ink-2); padding: 3px 0;
}
.price-line.total {
  border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px;
  font-size: 15px; color: var(--ink); font-weight: 600;
}
.price-line.total b { color: var(--danger); font-size: 20px; }
.price-line .save { color: var(--ok); font-size: 12px; }

.paybar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.paybar-inner { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.paybar .amt { flex: 1; }
.paybar .amt .num { font-size: 22px; font-weight: 700; color: var(--danger); }
.paybar .amt .num small { font-size: 13px; font-weight: 500; }
.paybar .amt .tip { font-size: 11px; color: var(--muted); }
.btn-primary {
  background: var(--primary); color: #fff; border: 0; border-radius: 10px;
  padding: 13px 26px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:active { background: var(--primary-dark); }
.btn-primary:disabled { background: #c7d2e4; cursor: default; }

.notice {
  display: flex; gap: 8px; font-size: 12px; color: var(--muted);
  padding: 12px 20px 0; line-height: 1.7;
}
.notice b { color: var(--ink-2); font-weight: 600; }

.tabs {
  display: flex; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line);
  background: #fff; position: sticky; top: 0; z-index: 10;
}
.tabs button {
  border: 0; background: none; padding: 13px 0; font-size: 14px; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

.order-item { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.order-item:last-child { border-bottom: 0; }
.order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-top .who { font-size: 15px; font-weight: 600; }
.chip {
  font-size: 11px; padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.chip.pending { background: var(--warn-bg); color: var(--warn); }
.chip.paid { background: var(--ok-bg); color: var(--ok); }
.chip.cancelled { background: #f1f5f9; color: var(--muted); }
.chip.refunded { background: var(--danger-bg); color: var(--danger); }
.order-meta { font-size: 12px; color: var(--muted); line-height: 1.8; }
.order-meta b { color: var(--ink-2); font-weight: 500; }
.order-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-mini {
  font-size: 12px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.btn-mini.danger { border-color: #f3c9c5; color: var(--danger); }
.btn-mini:disabled { color: #b6c0cf; border-color: var(--line); cursor: not-allowed; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); font-size: 13px; }

.toast {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: rgba(15, 27, 45, 0.9); color: #fff; padding: 12px 18px;
  border-radius: 10px; font-size: 14px; z-index: 100; max-width: 80%;
  text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.toast.show { opacity: 1; }

.success-box { text-align: center; padding: 40px 24px 20px; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg);
  color: var(--ok); font-size: 28px; line-height: 56px; margin: 0 auto 16px;
}
.success-box h2 { font-size: 19px; margin-bottom: 6px; }
.success-box p { font-size: 13px; color: var(--muted); }

/* ---------- 后台 ---------- */
.admin {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.brand h1 { font-size: 16px; }
.brand .sub { font-size: 11px; color: var(--muted); }
.topbar .spacer { flex: 1; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--card); border-radius: 12px; padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.stat.accent .v { color: var(--primary); }

.panel {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 18px;
}
.panel-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.panel-head h2 { font-size: 14px; }
.panel-head .spacer { flex: 1; }
.panel-head .note { font-size: 12px; color: var(--muted); }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select {
  width: auto; padding: 7px 10px; font-size: 13px; border-radius: 8px;
}
.toolbar input[type="text"] { width: 180px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 12px;
  padding: 10px 14px; background: #fbfcfe; border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:hover { background: #fbfcfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .sub { font-size: 11px; color: var(--muted); }

.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { border-color: #cbd5e1; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost-danger { color: var(--danger); border-color: #f3c9c5; }
.btn.ghost-danger:hover { background: var(--danger-bg); }
.btn.sm { padding: 5px 10px; font-size: 12px; }

.login-mask {
  position: fixed; inset: 0; background: rgba(15, 27, 45, 0.55);
  display: grid; place-items: center; z-index: 50; padding: 20px;
}
.login-card {
  background: #fff; border-radius: 16px; padding: 28px 26px; width: 100%;
  max-width: 360px; box-shadow: 0 24px 60px rgba(15, 27, 45, 0.25);
}
.login-card h2 { font-size: 18px; margin-bottom: 4px; }
.login-card p { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.login-card label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; }
.login-card input { margin-bottom: 14px; }
.login-card .btn { width: 100%; padding: 11px; font-size: 15px; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 27, 45, 0.45);
  display: grid; place-items: center; z-index: 60; padding: 20px;
}
.modal {
  background: #fff; border-radius: 14px; padding: 22px; width: 100%; max-width: 380px;
}
.modal h3 { font-size: 15px; margin-bottom: 6px; }
.modal p { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; }

.hidden { display: none !important; }

#kefu-fab {
  position: fixed;
  right: 14px;
  bottom: 86px;
  width: 52px;
  height: 52px;
  border-radius: 26px;
  border: 0;
  background: linear-gradient(135deg, #ea8a1f 0%, #f59e0b 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(234, 138, 31, 0.5);
  cursor: pointer;
  z-index: 30;
}
#kefu-fab::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 30px;
  border: 2px solid rgba(245, 158, 11, 0.55);
  animation: kefu-pulse 2s ease-out infinite;
}
@keyframes kefu-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
#kefu-fab:active { transform: scale(0.94); }

/* 首页公告条（大雪封路等紧急通知） */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 14px 0;
  background: linear-gradient(135deg, #ea8a1f 0%, #f59e0b 100%);
  color: #fff;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.65;
  box-shadow: 0 4px 14px rgba(234, 138, 31, 0.35);
}
.notice-bar .nb-icon { flex: none; }
.notice-bar .nb-text { flex: 1; white-space: pre-wrap; word-break: break-all; }
.notice-bar .nb-close {
  flex: none;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.kefu-box { text-align: center; }
.kefu-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 6px auto 12px;
  display: block;
  background: #fbfcfe;
}
.kefu-id {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 4px 0 14px;
  word-break: break-all;
}

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin { padding: 0 12px 40px; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 820px; }
}

/* ---------- 滑雪主题（购票页 + 司机端） ---------- */
.ski-page {
  background:
    radial-gradient(900px 340px at 82% -90px, rgba(59, 130, 246, 0.16), transparent 70%),
    linear-gradient(180deg, #e6f1ff 0%, #f5f7fb 340px);
  min-height: 100vh;
}
.ski-page .phone-shell { background: transparent; }

.hero.ski {
  background: linear-gradient(135deg, #0b3fa8 0%, #155eef 58%, #3f8cff 100%);
  padding-bottom: 52px;
}
.hero.ski .season { color: #dbe8ff; border-color: rgba(219, 232, 255, 0.45); }
.hero.ski h1 { text-shadow: 0 2px 10px rgba(4, 24, 66, 0.35); font-size: 24px; }
.hero.ski .sub { color: #c6d9f8; font-size: 13px; }

.ski-stops {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}
.ski-stops .s {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
  flex: none;
}
.ski-stops .s b {
  display: block;
  font-size: 13px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.ski-stops .s span { font-size: 10.5px; color: #cfe0fb; white-space: nowrap; }
.ski-stops .s.dest {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
}
.ski-stops .arrow {
  flex: 1;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  height: 0;
  min-width: 6px;
}

.ski-feats {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.ski-feats span {
  font-size: 11px;
  color: #e2ecff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 3px 11px;
}

.ski-skier {
  position: absolute;
  right: 26px;
  bottom: 40px;
  font-size: 22px;
  z-index: 1;
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 4px rgba(4, 24, 66, 0.4));
}

/* 司机端返回首页 */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.back-home:hover { background: rgba(255, 255, 255, 0.3); }
.back-home:active { transform: scale(0.97); }

/* 首页司机入口按钮（hero 右上角） */
.hero .driver-entry {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ea8a1f 0%, #f59e0b 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 20px;
  box-shadow: 0 3px 12px rgba(234, 138, 31, 0.45);
  white-space: nowrap;
  text-decoration: none;
}
.hero .driver-entry:hover { filter: brightness(1.06); }
.hero .driver-entry:active { transform: scale(0.97); }

/* 司机端底部返回首页大按钮 */
.home-foot {
  display: block;
  width: calc(100% - 28px);
  margin: 16px auto 0;
  text-align: center;
  background: #fff;
  border: 2px solid #155eef;
  color: #0b3fa8;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 0;
  border-radius: 12px;
  text-decoration: none;
}
.home-foot:active { background: #e8f1ff; }
.ski-hill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 42px;
  display: block;
  pointer-events: none;
}
.ski-flake {
  position: absolute;
  top: -8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  animation: ski-fall linear infinite;
  pointer-events: none;
}
@keyframes ski-fall {
  0% { transform: translateY(-10px); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(150px); opacity: 0; }
}

/* ---------- 司机端（大字 · 高对比，方便年纪大的师傅） ---------- */
.drv { font-size: 17px; }

.drv-tabs {
  display: flex;
  gap: 10px;
  margin: 16px 14px 0;
}
.drv-tab {
  flex: 1;
  border: 2px solid #cbd5e1;
  background: #fff;
  border-radius: 14px;
  padding: 12px 8px 11px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all 0.15s;
}
.drv-tab .t1 { font-size: 19px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.drv-tab .t2 { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.drv-tab.on-out {
  border-color: #155eef;
  background: #e8f1ff;
  box-shadow: 0 4px 16px rgba(21, 94, 239, 0.22);
}
.drv-tab.on-out .t1 { color: #0b3fa8; }
.drv-tab.on-out .t2 { color: #155eef; }
.drv-tab.on-ret {
  border-color: #ea8a1f;
  background: #fff4e4;
  box-shadow: 0 4px 16px rgba(234, 138, 31, 0.25);
}
.drv-tab.on-ret .t1 { color: #b45309; }
.drv-tab.on-ret .t2 { color: #c2410c; }
.drv-tab:not(.on-out):not(.on-ret) { opacity: 0.72; }

.drv .grp-head {
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 4px;
  padding-left: 10px;
  border-left: 4px solid #155eef;
  line-height: 1.4;
}
.drv .grp-head.ret { border-left-color: #ea8a1f; color: #9a3412; }
.drv .grp-head:not(.ret) { color: #0b3fa8; }

.p-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}
.p-row:last-child { border-bottom: 0; }
.p-row .p-main { flex: 1; min-width: 0; }
.p-row .p-name { font-size: 19px; font-weight: 700; line-height: 1.35; }
.p-row .p-name small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.p-row .p-sub { font-size: 14px; color: var(--muted); margin-top: 3px; }
.p-row .p-sub a { color: #155eef; font-weight: 600; }
.p-row .p-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: 2px;
}
.p-chip.only-ret { background: #fff4e4; color: #b45309; }
.p-chip.round-tag { background: #e8f1ff; color: #0b3fa8; }

.btn-board {
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: #eef2f7;
  color: var(--ink-2);
  font-family: inherit;
  flex: none;
  transition: all 0.15s;
}
.btn-board.primary { background: #0e9f6e; color: #fff; }
.btn-board:active { transform: scale(0.97); }

.drv .drv-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px dashed var(--line);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 17px;
  font-weight: 700;
}
.drv .drv-total .num { font-size: 22px; color: #0b3fa8; }
.drv .drv-total.ret .num { color: #b45309; }
.drv .drv-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
  background: #f6f9ff;
  border-radius: 10px;
  padding: 10px 12px;
}
.drv .drv-hint.ret { background: #fff9f0; }
