/* =============================================================
   沃野直播 · 直播电商一体化平台
   共享设计系统 Design System
   三端（管理后台 PC / 商家端 H5 / 直播端 H5 / 观看端）共用
   ============================================================= */

:root {
  /* —— 品牌色 —— */
  --brand: #0e9f6e;
  --brand-600: #058f60;
  --brand-700: #046c49;
  --brand-50: #e8f7f1;
  --brand-100: #d0efe2;
  --brand-ink: #063b2b;

  /* —— 辅助色 —— */
  --sky: #2f7ff5;
  --sky-50: #eaf2ff;
  --violet: #6c5ce7;
  --violet-50: #efedfe;
  --amber: #f08c00;
  --amber-50: #fff4e0;
  --red: #e5484d;
  --red-50: #fdecec;
  --cyan: #0ea5e9;
  --cyan-50: #e6f6fe;
  --lime: #d8f26b;

  /* —— 中性色 —— */
  --ink: #14202e;
  --ink-2: #3a4a5c;
  --ink-3: #62748a;
  --ink-4: #8d9cb0;
  --line: #e8edf3;
  --line-2: #d9e1ea;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --canvas: #f1f4f8;
  --dark: #101d25;
  --dark-2: #182b33;

  /* —— 尺寸 —— */
  --r-xs: 6px;
  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(20, 32, 46, .06), 0 1px 3px rgba(20, 32, 46, .04);
  --shadow-2: 0 4px 14px rgba(20, 32, 46, .07), 0 1px 3px rgba(20, 32, 46, .04);
  --shadow-3: 0 18px 44px rgba(20, 32, 46, .13), 0 4px 12px rgba(20, 32, 46, .06);
  --shadow-pop: 0 26px 70px rgba(9, 21, 32, .28);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", sans-serif;
  --num: "SF Pro Display", "DIN Alternate", "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .8, .3, 1);
}

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

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

body {
  font: 14px/1.55 var(--sans);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid rgba(47, 127, 245, .55); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c9d4e0; border-radius: 9px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a9b8c7; background-clip: content-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.tiny { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =============== 按钮 =============== */
.btn {
  --h: 36px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--h); padding: 0 14px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease), color .18s;
  user-select: none;
}
.btn:active { transform: translateY(.5px) scale(.995); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: linear-gradient(180deg, #12ad79, var(--brand-600)); color: #fff; box-shadow: 0 1px 2px rgba(4, 108, 73, .3), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: linear-gradient(180deg, #0fa872, #048253); box-shadow: 0 4px 14px rgba(14, 159, 110, .32); }
.btn-secondary { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px #c5d1de; }
.btn-ghost { background: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); }
.btn-danger { background: var(--red-50); color: var(--red); }
.btn-danger:hover { background: #fbdcdd; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1b303a; }
.btn-lime { background: var(--lime); color: #23311a; font-weight: 700; }
.btn-lime:hover { background: #ccec4c; }
.btn-sm { --h: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { --h: 44px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-round { border-radius: 999px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; color: var(--ink-3);
  transition: background .16s, color .16s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* =============== 卡片 / 面板 =============== */
.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.card-pad { padding: 18px 20px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-head .spacer { flex: 1; }
.card-title-sm { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }

/* =============== 标签 / 状态 =============== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag.no-dot::before { display: none; }
.tag-lg { height: 26px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.t-green { background: var(--brand-50); color: var(--brand-700); }
.t-amber { background: var(--amber-50); color: #b26a00; }
.t-red { background: var(--red-50); color: #c22d31; }
.t-blue { background: var(--sky-50); color: #1a5fd0; }
.t-violet { background: var(--violet-50); color: #5340d6; }
.t-gray { background: #f0f3f7; color: var(--ink-3); }
.t-cyan { background: var(--cyan-50); color: #0369a1; }
.t-dark { background: var(--dark); color: #fff; }
.t-live { background: var(--red); color: #fff; }
.t-live::before { animation: pulse 1.4s infinite; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer; transition: .16s; white-space: nowrap; flex: none;
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px #c3cfdc; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--brand-ink); color: #fff; box-shadow: none; }
.chip-primary[aria-pressed="true"] { background: var(--brand); color: #fff; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; display: inline-block; }
.dot.red { background: var(--red); }
.dot.amber { background: var(--amber); }
.dot.gray { background: var(--ink-4); }
.dot.live { animation: pulse 1.4s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =============== 表单 =============== */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { margin-top: 6px; font-size: 12px; color: var(--ink-4); }
.input, .select, .textarea {
  width: 100%; min-height: 38px; padding: 8px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface); transition: border-color .16s, box-shadow .16s;
  font-size: 13.5px;
}
.input:hover, .select:hover, .textarea:hover { border-color: #c2cedb; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 159, 110, .13);
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2362748a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }

.search {
  position: relative; flex: 1; max-width: 300px; min-width: 160px;
}
.search input {
  width: 100%; height: 36px; padding: 0 12px 0 34px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; transition: .16s;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-4); }

.switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #ccd7e2; transition: .2s; flex: none; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

.check { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-2); display: inline-grid; place-items: center; background: #fff; cursor: pointer; flex: none; }
.check[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.check[aria-checked="true"]::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }

/* =============== 表格 =============== */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px;
  padding: 10px 14px; background: var(--surface-2); white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.table th:first-child { border-top-left-radius: 0; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .14s; }
.table tbody tr:hover { background: #fafcfd; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.is-new { animation: rowIn .9s var(--ease); }
@keyframes rowIn { from { background: #e6f7ef; } to { background: transparent; } }
.table .cell-2line { display: flex; flex-direction: column; gap: 3px; }
.table .cell-2line small { color: var(--ink-4); font-size: 11.5px; }
.table-wrap { overflow-x: auto; }

/* =============== 头像 / 缩略图 =============== */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4f9cff, #2f7ff5);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
}
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.green { background: linear-gradient(135deg, #34d399, #059669); }
.avatar.amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.avatar.violet { background: linear-gradient(135deg, #a78bfa, #6c5ce7); }
.avatar.rose { background: linear-gradient(135deg, #fb7185, #e11d48); }

.thumb {
  width: 44px; height: 44px; border-radius: 9px; flex: none;
  background: var(--surface-2) center/cover no-repeat;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 46, .06);
  font-size: 19px;
}
.thumb.lg { width: 64px; height: 64px; border-radius: 11px; font-size: 26px; }
.thumb.xl { width: 88px; height: 88px; border-radius: 14px; font-size: 36px; }
.thumb.sm { width: 32px; height: 32px; border-radius: 7px; font-size: 14px; }

/* =============== 进度 / 条形 =============== */
.bar { height: 6px; border-radius: 999px; background: #edf1f5; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .5s var(--ease); }
.bar.thin { height: 4px; }
.bar > i.amber { background: var(--amber); }
.bar > i.red { background: var(--red); }
.bar > i.blue { background: var(--sky); }

/* =============== 空态 =============== */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-4); }
.empty .em { font-size: 34px; margin-bottom: 10px; opacity: .8; }
.empty h4 { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.empty p { font-size: 12.5px; }

/* =============== 抽屉 / 弹窗 =============== */
.scrim {
  position: fixed; inset: 0; background: rgba(12, 22, 32, .42);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 60;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.scrim.in-phone-scrim { inset:auto; border-radius:44px; overflow:hidden; }
/* H5 模拟器：浮层是手机画布的子元素，绝不相对桌面浏览器视口定位。 */
.phone-screen > .scrim { position:absolute; inset:0; border-radius:0; }
.phone-screen > .sheet { position:absolute; left:0; bottom:0; width:100%; max-height:82%; transform:translateY(100%); }
.phone-screen > .sheet.is-open { transform:translateY(0); }
.phone-screen > .modal { position:absolute; left:50%; top:50%; width:90%; max-height:78%; }
.phone-screen > .drawer { position:absolute; left:0; right:0; top:0; bottom:0; width:100%; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 94vw);
  background: var(--surface); z-index: 61; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s var(--ease);
  box-shadow: var(--shadow-pop);
}
.drawer.is-open { transform: none; }
.drawer-wide { width: min(720px, 96vw); }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.drawer-head .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 22px; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface); }

.modal {
  position: fixed; z-index: 62; left: 50%; top: 50%;
  width: min(460px, 92vw); max-height: 86vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
  transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none;
  transition: transform .24s var(--ease), opacity .24s;
}
.modal.is-open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.modal-head { padding: 20px 22px 6px; }
.modal-head h3 { font-size: 17px; letter-spacing: -.02em; }
.modal-body { padding: 12px 22px 4px; overflow: auto; }
.modal-foot { padding: 16px 22px 20px; display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; }

.sheet {
  position: fixed; z-index: 62; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: min(420px, 100%); background: var(--surface);
  border-radius: 20px 20px 0 0; box-shadow: var(--shadow-pop);
  transition: transform .3s var(--ease); max-height: 84%;
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open { transform: translate(-50%, 0); }
.sheet.in-phone-layer { left:var(--layer-left); bottom:var(--layer-bottom); width:var(--layer-width); max-height:calc(var(--layer-height) * .82); transform:translateY(100%); }
.sheet.in-phone-layer.is-open { transform:translateY(0); }
.modal.in-phone-layer { left:calc(var(--layer-left) + var(--layer-width) / 2); top:calc(var(--layer-top) + var(--layer-height) / 2); width:calc(var(--layer-width) * .9); max-height:calc(var(--layer-height) * .78); }
.drawer.in-phone-layer { left:var(--layer-left); right:auto; top:var(--layer-top); bottom:var(--layer-bottom); width:var(--layer-width); }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 16px; }
.sheet-body { overflow: auto; padding: 16px 18px; }
.sheet-grab { width: 36px; height: 4px; background: #dde4ec; border-radius: 9px; margin: 8px auto 0; }

/* =============== Toast =============== */
.toast-wrap { position: fixed; z-index: 90; left: 50%; top: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 11px; font-size: 13px; font-weight: 500;
  background: rgba(16, 29, 37, .94); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
  animation: toastIn .3s var(--ease); white-space: nowrap; max-width: 92vw;
  backdrop-filter: blur(8px);
}
.toast.out { animation: toastOut .25s forwards; }
.toast .ic { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; flex: none; font-size: 11px; font-weight: 800; }
.toast.ok .ic { background: var(--brand); }
.toast.warn .ic { background: var(--amber); }
.toast.err .ic { background: var(--red); }
.toast.info .ic { background: var(--sky); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(.97); } }

/* =============== 图表通用（SVG 手绘） =============== */
.spark { display: block; width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-3); }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

.donut-center { font-family: var(--num); }

/* =============== 进度环 =============== */
.ring { --p: 0; --c: var(--brand); width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #edf1f5 0); }
.ring::before { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.ring > span { position: relative; font-size: 15px; font-weight: 700; font-family: var(--num); }

/* =============== 手机外框（用于在 PC 查看 H5 端） =============== */
.phone {
  position: relative; width: min(390px, 100%); height: min(844px, calc(100vh - 40px)); flex: none;
  border-radius: 54px; padding: 11px;
  background: linear-gradient(160deg, #2a3946, #0d1419 40%, #1d2b36);
  box-shadow: 0 40px 90px -20px rgba(9, 20, 30, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 112px; height: 30px; border-radius: 999px; background: #0b1216; z-index: 40;
}
.phone-status {
  height: 50px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px 0 30px; font-size: 13.5px; font-weight: 600; z-index: 35; position: relative;
  font-family: var(--num);
}
.phone-status .icons { display: flex; align-items: center; gap: 5px; }
.phone-status svg { width: 16px; height: 16px; }

/* =============== 通用布局工具 =============== */
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-9 { gap: 9px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hr { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.hr-dashed { border-top: 1px dashed var(--line-2); margin: 14px 0; }

/* 金额排版 */
.money { font-family: var(--num); font-weight: 700; letter-spacing: -.02em; }
.money .cur { font-size: .68em; font-weight: 600; opacity: .82; margin-right: 1px; }
.money.down { color: var(--brand-700); }
.money.up { color: var(--red); }

/* 步骤条 */
.steps { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-4); }
.step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: #eef2f6; color: var(--ink-4); }
.step.is-done .n { background: var(--brand-50); color: var(--brand-700); }
.step.is-done { color: var(--ink-2); }
.step.is-now .n { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(14, 159, 110, .14); }
.step.is-now { color: var(--ink); font-weight: 650; }
.step-line { width: 28px; height: 1.5px; background: var(--line-2); margin: 0 10px; border-radius: 2px; }
.step-line.is-done { background: var(--brand); }

/* 时间轴 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line-2); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2.5px solid var(--line-2); }
.tl-item.on::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 3px rgba(14, 159, 110, .14); }
.tl-item h5 { font-size: 13px; font-weight: 650; }
.tl-item p { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* 提示条 */
.notice {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.6;
}
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.notice-green { background: var(--brand-50); color: #0b6b4c; }
.notice-amber { background: var(--amber-50); color: #8a5300; }
.notice-red { background: var(--red-50); color: #b3252a; }
.notice-blue { background: var(--sky-50); color: #194f9e; }
.notice-gray { background: var(--surface-2); color: var(--ink-3); }

/* 键值列表 */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 13px; align-items: baseline; }
.kv dt { color: var(--ink-4); }
.kv dd { margin: 0; color: var(--ink-2); font-weight: 500; }

/* 分段控件 */
.seg { display: inline-flex; padding: 3px; background: #eef2f6; border-radius: 10px; gap: 2px; }
.seg button { height: 30px; padding: 0 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: .16s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.seg.dark { background: rgba(255, 255, 255, .1); }
.seg.dark button { color: rgba(255, 255, 255, .62); }
.seg.dark button[aria-selected="true"] { background: rgba(255, 255, 255, .94); color: var(--ink); }

/* 标签页 */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: color .16s; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }

/* 数据小卡 */
.metric { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.metric .lbl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.metric .val { margin-top: 8px; font-size: 25px; font-weight: 700; font-family: var(--num); letter-spacing: -.03em; line-height: 1.15; }
.metric .foot { margin-top: 7px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.trend { display: inline-flex; align-items: center; gap: 2px; font-weight: 650; font-size: 12px; }
.trend.up { color: #d93a3f; }
.trend.down { color: var(--brand-700); }

/* 移动端专用 UI */
.m-page { flex: 1; overflow-y: auto; overflow-x: hidden; background: var(--surface-2); -webkit-overflow-scrolling: touch; }
.m-pad { padding: 0 16px; }
.m-title { font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.m-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.m-tabbar {
  flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
}
.m-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-4); padding: 3px 0; }
.m-tabbar button svg { width: 22px; height: 22px; }
.m-tabbar button[aria-selected="true"] { color: var(--brand-700); }
.m-tabbar .badge-dot { position: relative; }
.m-tabbar .badge-dot::after { content: ""; position: absolute; top: 0; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 1.5px solid #fff; }

.m-navbar { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
.m-navbar .back { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-2); }
.m-navbar h2 { font-size: 16px; font-weight: 700; }
.m-navbar .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .chev { margin-left: auto; color: #b9c5d2; flex: none; }

.badge-count {
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--num);
}

/* 骨架屏 */
.skel { background: linear-gradient(90deg, #eef2f6 25%, #f6f9fb 37%, #eef2f6 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: 6px; }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 无障碍：减少动效 + 窄屏适配 */
@media (max-width: 640px) {
  .drawer, .drawer-wide { width: 100%; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .grid-2, .grid-3, .check-grid, .intervene-grid, .stat-pill-row { grid-template-columns: 1fr; }
  .modal { width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
