/* ═══════════════════════════════════════════════════════════
   Aurora 设计系统 · 校园快递代拿
   靛紫渐变品牌 · 玻璃拟态顶/底栏 · 柔光环境底色 · 暗色自适应
   注意：类名与结构同旧版一一对应，JS 钩子未改动
   ═══════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f3f5fb;
  --bg-soft: #ecf0f9;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, .72);
  --ink: #0f172a;
  --ink2: #46536b;
  --ink3: #8b95ab;
  --line: #e6eaf3;
  --line2: #d4dae8;
  --brand: #6366f1;
  --brand2: #8b5cf6;
  --grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --green: #10b981;
  --green2: #059669;
  --red: #f43f5e;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --ring: rgba(99, 102, 241, .22);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -14px rgba(15, 23, 42, .14);
  --shadow-pop: 0 24px 60px -18px rgba(15, 23, 42, .32);
  --shadow-brand: 0 10px 22px -10px rgba(99, 102, 241, .55);
  --radius: 16px;
  --radius-lg: 22px;
  --glass-border: rgba(255, 255, 255, .55);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e1c;
    --bg-soft: #0d1226;
    --card: #131a30;
    --card-glass: rgba(19, 26, 48, .72);
    --ink: #e8ecf6;
    --ink2: #a6b0c5;
    --ink3: #67718a;
    --line: #212a45;
    --line2: #2c3757;
    --ring: rgba(129, 140, 248, .3);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .55);
    --shadow-pop: 0 24px 60px -16px rgba(0, 0, 0, .7);
    --shadow-brand: 0 10px 24px -10px rgba(99, 102, 241, .45);
    --glass-border: rgba(255, 255, 255, .08);
  }
}

html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
/* 环境光晕：两团品牌色柔光固定在角落，营造纵深 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at -8% -10%, rgba(99, 102, 241, .13), transparent 62%),
    radial-gradient(560px 420px at 108% 4%, rgba(139, 92, 246, .11), transparent 62%),
    radial-gradient(640px 460px at 50% 118%, rgba(16, 185, 129, .07), transparent 64%);
}
@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(520px 380px at -8% -10%, rgba(99, 102, 241, .17), transparent 62%),
      radial-gradient(560px 420px at 108% 4%, rgba(139, 92, 246, .14), transparent 62%),
      radial-gradient(640px 460px at 50% 118%, rgba(16, 185, 129, .08), transparent 64%);
  }
}
::selection { background: rgba(99, 102, 241, .22); }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
.btn, button, input, select, textarea, .tab, .opt { touch-action: manipulation; }
input, select, textarea, button { accent-color: var(--brand); font-family: inherit; }

.container { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* ── 顶栏：毛玻璃 ── */
.header {
  position: sticky; top: 0; z-index: 30;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
  padding: calc(12px + env(safe-area-inset-top)) 0 12px;
  margin-bottom: 22px;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.header .user { min-width: 0; }
.header .user #uname {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.header h1 { font-size: 16.5px; font-weight: 700; letter-spacing: .02em; }
.header .user { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink2); }
.header .user a, .header .user button {
  color: var(--ink3); text-decoration: none; background: none; border: none;
  cursor: pointer; font-size: 13px; padding: 0;
}
.header .user a:hover, .header .user button:hover { color: var(--brand); }

/* ── 卡片 ── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.card h2 { font-size: 15.5px; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.card h2::before {
  content: ''; width: 22px; height: 4px; border-radius: 4px;
  background: var(--grad); box-shadow: 0 2px 6px -1px rgba(99, 102, 241, .5);
}
.frow { display: flex; gap: 10px; }
.frow > div { flex: 1; min-width: 0; }
.card h3 { font-size: 13px; margin-bottom: 8px; color: var(--ink3); font-weight: 500; }

/* ── 表单 ── */
label {
  display: block; font-size: 12.5px; color: var(--ink2);
  letter-spacing: .03em; margin: 15px 0 7px; font-weight: 500;
}
input, select, textarea {
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 16px; /* ≥16px，避免 iOS 聚焦时自动放大页面 */
  background: var(--bg-soft);
  color: var(--ink);
  outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line2); }
input:focus, select:focus, textarea:focus {
  background: var(--card);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}
input::placeholder { color: var(--ink3); opacity: .75; }

/* ── 按钮 ── */
.btn {
  display: inline-block;
  width: 100%;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: filter .16s, transform .12s, box-shadow .16s, background .16s, border-color .16s, color .16s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.975); filter: brightness(.96); }
.btn.small {
  width: auto; flex: 1; padding: 8px 14px;
  font-size: 13px; margin-top: 0; letter-spacing: .02em; border-radius: 11px;
  box-shadow: 0 6px 14px -7px rgba(99, 102, 241, .5);
}
.btn.ghost {
  background: transparent; color: var(--ink2);
  border: 1.5px solid var(--line2); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); filter: none; }
.btn.green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 22px -10px rgba(16, 185, 129, .55), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn.red {
  background: transparent; color: var(--red);
  border: 1.5px solid color-mix(in srgb, var(--red) 35%, transparent); box-shadow: none;
}
.btn.red:hover { background: color-mix(in srgb, var(--red) 8%, transparent); border-color: var(--red); filter: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.35); }
button:focus-visible, .btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ── 统计块 ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 12px 13px; text-align: center;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad); opacity: .85;
}
.stat:nth-child(2)::after { background: linear-gradient(90deg, #10b981, #34d399); }
.stat:nth-child(3)::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat:nth-child(4)::after { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat .num { font-size: 20px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat .lab { font-size: 12px; color: var(--ink3); margin-top: 3px; letter-spacing: .05em; }

/* ── 订单卡片 ── */
.order {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 15px 13px;
  margin-bottom: 11px; background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.order:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 16px 34px -16px rgba(15,23,42,.22); border-color: var(--line2); }
.order .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order .no { font-size: 11.5px; color: var(--ink3); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.order .row { display: flex; font-size: 14px; margin: 5px 0; color: var(--ink2); }
.order .row .k { color: var(--ink3); width: 76px; flex-shrink: 0; font-size: 13px; }
.order .row span:last-child { color: var(--ink); word-break: break-word; }
.route { font-size: 15.5px; font-weight: 650; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.route .arr {
  color: #fff; font-weight: 400; font-size: 10px; line-height: 1;
  background: var(--grad); border-radius: 999px; padding: 3px 6px;
  box-shadow: 0 3px 8px -3px rgba(99, 102, 241, .6);
}
.chip {
  font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand); padding: 2px 8px; border-radius: 999px;
}
.meta { font-size: 12px; color: var(--ink3); margin-top: 5px; }
.remark {
  font-size: 13px; color: var(--ink2); margin-top: 8px;
  background: color-mix(in srgb, var(--amber) 9%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--amber) 65%, transparent);
  border-radius: 6px 10px 10px 6px; padding: 7px 10px;
}
.order-flex { display: flex; gap: 12px; align-items: flex-start; }
.order-flex .oinfo { flex: 1; min-width: 0; }
.order-flex .thumb { margin: 0; flex-shrink: 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; flex-wrap: wrap; }
.order .amount {
  font-weight: 800; font-variant-numeric: tabular-nums; font-size: 19px; letter-spacing: -.01em;
  background: linear-gradient(120deg, #6366f1, #8b5cf6 60%, #ec4899);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.order .btns { display: flex; gap: 8px; margin-top: 0; flex-wrap: wrap; }
.order .btns .btn { width: auto; flex: 0 0 auto; margin-top: 0; padding: 7px 15px; font-size: 13px; }
.thumb {
  width: 54px; height: 54px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); cursor: pointer; margin-right: 8px; vertical-align: middle;
  background: var(--bg-soft);
  transition: transform .16s, box-shadow .16s;
}
.thumb:hover { transform: scale(1.06); box-shadow: 0 8px 18px -8px rgba(15, 23, 42, .35); }

/* ── 状态徽章：胶囊软底 ── */
.badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; letter-spacing: .02em;
  background: color-mix(in srgb, currentColor 11%, transparent);
}
.s-pay    { color: var(--amber); }
.s-hall   { color: var(--blue); }
.s-doing  { color: var(--brand); }
.s-wait   { color: var(--green); }
.s-done   { color: var(--ink3); }
.s-cancel { color: var(--red); }

/* ── Tab（下划线式）── */
.tabs { display: flex; gap: 22px; margin-bottom: 16px; border-bottom: 1.5px solid var(--line); }
.tabs .tab {
  flex: none; text-align: center; padding: 8px 2px 11px;
  background: none; color: var(--ink3); cursor: pointer; font-size: 14px;
  border: none; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  letter-spacing: .04em; font-family: inherit; transition: color .15s, border-color .15s;
}
.tabs .tab.on { color: var(--ink); font-weight: 700; border-image: var(--grad) 1; border-bottom: 2.5px solid var(--brand); }

/* ── 登录页 ── */
.auth-wrap { max-width: 380px; margin: 8vh auto; padding: 0 16px; }
.auth-wrap .logo { text-align: center; margin-bottom: 26px; }
.auth-wrap .logo .ic {
  width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 15px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
  box-shadow: 0 16px 34px -12px rgba(99, 102, 241, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.auth-wrap .logo h1 { font-size: 22px; margin-top: 0; letter-spacing: .05em; font-weight: 750; }
.auth-wrap .logo p { color: var(--ink3); font-size: 13px; margin-top: 7px; letter-spacing: .02em; }
.role-pick { display: flex; gap: 10px; margin-top: 4px; }
.role-pick .opt {
  flex: 1; text-align: center; padding: 12px 8px;
  border: 1.5px solid var(--line2); border-radius: 13px;
  cursor: pointer; font-size: 13.5px; color: var(--ink2);
  background: var(--bg-soft);
  transition: border-color .16s, background .16s, color .16s, box-shadow .16s, transform .12s;
}
.role-pick .opt:hover { transform: translateY(-1px); }
.role-pick .opt.on {
  border-color: var(--brand); color: var(--brand); font-weight: 650;
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
  box-shadow: 0 0 0 4px var(--ring);
}
.switch { text-align: center; font-size: 13px; color: var(--ink3); margin-top: 16px; }
.switch a { color: var(--brand); cursor: pointer; text-decoration: none; font-weight: 600; }
.switch a:hover { text-decoration: underline; }

/* ── 弹窗 ── */
.mask {
  display: none; position: fixed; inset: 0; background: rgba(10, 14, 28, .45);
  z-index: 50; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2);
}
.mask.show { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; width: min(330px, 92vw); max-height: 90vh;
  overflow-y: auto; text-align: center;
  box-shadow: var(--shadow-pop);
  animation: popIn .28s cubic-bezier(.2, .9, .3, 1.2) both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.modal .title { font-size: 15.5px; font-weight: 700; letter-spacing: .04em; }
.modal .pay-amount {
  font-size: 38px; font-weight: 800; margin: 14px 0; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  background: linear-gradient(120deg, #6366f1, #8b5cf6 55%, #ec4899);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal .tip { font-size: 13px; color: var(--ink3); margin-bottom: 6px; }
.modal .btns { display: flex; gap: 10px; margin-top: 16px; }
.modal .btns .btn { margin-top: 0; }

/* ── 聊天 ── */
.chat-modal { width: 390px; max-width: 94vw; text-align: left; }
.chat-msgs {
  height: min(300px, 48vh); overflow-y: auto;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px; margin: 14px 0;
}
.msg { margin-bottom: 13px; }
.msg .who { font-size: 11px; color: var(--ink3); margin-bottom: 3px; letter-spacing: .02em; }
.msg .bubble {
  display: inline-block; background: var(--card); border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px; padding: 8px 12px; font-size: 14px; max-width: 85%;
  word-break: break-all; text-align: left; color: var(--ink);
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, .12);
}
.msg.mine { text-align: right; }
.msg.mine .bubble {
  background: var(--grad); color: #fff; border: none;
  border-radius: 14px 4px 14px 14px;
  box-shadow: 0 6px 14px -7px rgba(99, 102, 241, .6);
}
.msg.mine .who { color: var(--ink3); }
.chat-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.chat-input-row input { flex: 1; }
.chat-msgs::-webkit-scrollbar { width: 6px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; top: 15%; transform: translateX(-50%) translateY(-10px);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .28s cubic-bezier(.2, .8, .3, 1); z-index: 99; max-width: 82vw;
  letter-spacing: .02em; box-shadow: var(--shadow-pop);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: linear-gradient(120deg, #e11d48, #f43f5e); }

.empty {
  text-align: center; color: var(--ink3); font-size: 13.5px; padding: 30px 0;
  letter-spacing: .02em;
}
.empty::before {
  content: ''; display: block; width: 46px; height: 46px; margin: 0 auto 10px;
  border-radius: 50%; border: 2px dashed var(--line2);
  background: color-mix(in srgb, var(--brand) 5%, transparent);
}
.muted { color: var(--ink3); font-size: 13px; }
.mt { margin-top: 12px; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 14px 0; }

/* ── 铃铛与通知 ── */
.bell {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--ink2); padding: 5px; display: flex; align-items: center;
  border-radius: 10px; transition: background .15s, color .15s;
}
.bell:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.bell-dot {
  position: absolute; top: -4px; right: -8px;
  background: linear-gradient(120deg, #f43f5e, #fb7185); color: #fff;
  font-size: 10px; line-height: 1; font-weight: 700;
  padding: 3px 6px; border-radius: 999px; min-width: 15px; text-align: center;
  box-shadow: 0 3px 8px -2px rgba(244, 63, 94, .55);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
/* 会话未读红点：贴在“联系代拿员/联系客户”按钮右上角 */
.order .btns .btn { position: relative; }
.chat-dot {
  position: absolute; top: -5px; right: -5px; width: 9px; height: 9px;
  background: linear-gradient(120deg, #f43f5e, #fb7185); border-radius: 999px;
  box-shadow: 0 0 0 2px var(--card, #fff);
  animation: pulse 2.4s ease infinite;
}
/* ShowDoc 绑定图文教程弹窗 */
.tut-modal { width: 430px; max-width: 94vw; text-align: left; }
.tut-body { max-height: min(580px, 68vh); overflow-y: auto; margin: 12px 0; }
.tut-step { font-size: 13.5px; color: var(--ink); margin: 12px 0 6px; }
.tut-body img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.notify-modal { width: 370px; max-width: 94vw; text-align: left; }
.notify-head { display: flex; align-items: center; justify-content: space-between; }
.linklike { background: none; border: none; color: var(--brand); cursor: pointer; font-size: 13px; padding: 0; font-weight: 600; }
.notify-list { height: min(300px, 48vh); overflow-y: auto; margin: 12px 0; }
.notify-item { padding: 11px 9px; border-bottom: 1px dashed var(--line); cursor: pointer; border-radius: 10px; transition: background .14s; }
.notify-item:hover { background: var(--bg-soft); }
.notify-item.unread { position: relative; padding-left: 20px; }
.notify-item.unread::before {
  content: ''; position: absolute; left: 6px; top: 17px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.notify-item.unread .nc { color: var(--ink); font-weight: 600; }
.notify-item .nc { font-size: 13.5px; color: var(--ink2); }
.notify-item .nt { font-size: 11px; color: var(--ink3); margin-top: 3px; }

/* ── 订单详情 ── */
.detail-modal { width: 410px; max-width: 94vw; text-align: left; }
.detail-body { margin: 14px 0; max-height: 55vh; overflow-y: auto; }
.drow { display: flex; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.drow .dk { width: 76px; flex-shrink: 0; color: var(--ink3); }
.drow .dv { color: var(--ink); word-break: break-all; }
.timeline { margin: 14px 0 4px; padding-left: 4px; }
.tl-row { display: flex; align-items: center; padding: 6px 0; font-size: 13px; position: relative; }
.tl-row::before {
  content: ''; position: absolute; left: 7px; top: -9px; bottom: -9px; width: 2px;
  background: var(--line);
}
.tl-row:first-child::before { display: none; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--line2);
  margin-right: 12px; flex-shrink: 0; position: relative; z-index: 1;
}
.tl-row.done .tl-dot { background: var(--grad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.tl-row .tl-k { color: var(--ink2); width: 90px; }
.tl-row.done .tl-k { color: var(--ink); font-weight: 600; }
.tl-row .tl-t { color: var(--ink3); font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.dimgs { display: flex; gap: 12px; margin-top: 12px; }
.dimg img {
  width: 92px; height: 92px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); cursor: pointer; display: block;
  transition: transform .16s, box-shadow .16s;
}
.dimg img:hover { transform: scale(1.04); box-shadow: 0 10px 22px -10px rgba(15, 23, 42, .4); }
.dimg span { font-size: 11px; color: var(--ink3); display: block; margin-top: 5px; text-align: center; }

/* ── 评价 ── */
.review-modal { width: 330px; }
.star-pick { margin: 14px 0 10px; display: flex; justify-content: center; gap: 6px; }
.star-pick .sp { font-size: 31px; color: var(--line2); cursor: pointer; line-height: 1; transition: transform .12s, color .12s; }
.star-pick .sp:hover { transform: scale(1.15); }
.star-pick .sp.on { color: var(--amber); text-shadow: 0 4px 10px rgba(245, 158, 11, .4); }
.review-modal textarea { width: 100%; resize: none; }
.stars { color: var(--amber); letter-spacing: 1px; }
.review-line { font-size: 13px; color: var(--ink2); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.review-line .stars { font-size: 14px; }

/* ── 收入 ── */
.income-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
@media (max-width: 480px) { .income-grid { grid-template-columns: repeat(2, 1fr); } }
.income-grid > div {
  background: var(--bg-soft); border-radius: 13px; padding: 11px 6px;
  border: 1px solid var(--line);
}
.income-grid .ilab { font-size: 11.5px; color: var(--ink3); letter-spacing: .04em; }
.income-grid .ival { font-size: 17px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 3px; }
.income-grid .ival.accent {
  background: linear-gradient(120deg, #10b981, #059669);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.income-grid .ival.small { font-size: 13px; padding-top: 4px; }
.withdraw-row { display: flex; gap: 8px; margin-top: 14px; }
.withdraw-row input { flex: 1; }
.witem { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.witem .ws { color: var(--ink3); }

/* ── 报表条形图 ── */
.chart {
  display: flex; align-items: flex-end; gap: 3px; height: 128px;
  border-bottom: 1.5px solid var(--line); padding: 8px 4px 0;
}
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.bar {
  width: 62%; max-width: 22px; border-radius: 6px 6px 2px 2px;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: filter .15s;
}
.bar-col:hover .bar { filter: brightness(1.12) saturate(1.1); }
.chart.gmv .bar { background: linear-gradient(180deg, #34d399, #0ea5e9); }
.bar-val { font-size: 10px; color: var(--ink2); opacity: 0; margin-bottom: 3px; font-variant-numeric: tabular-nums; font-weight: 600; transition: opacity .15s; }
.bar-col:hover .bar-val { opacity: 1; }
.bar-lab { font-size: 9.5px; color: var(--ink3); margin-top: 6px; white-space: nowrap; }
.chart-title { font-size: 12px; color: var(--ink3); margin: 12px 0 4px; letter-spacing: .04em; }

/* ── 截图预览 ── */
.shot-btn { width: 100%; margin-top: 0; }
.shot-preview { margin-top: 8px; }
.shot-preview img {
  width: 78px; height: 78px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); cursor: pointer; display: block;
  box-shadow: var(--shadow-card); transition: transform .16s;
}
.shot-preview img:hover { transform: scale(1.04); }
.shot-preview span { font-size: 11px; color: var(--ink3); display: block; margin-top: 4px; }

/* ── 底部导航栏：毛玻璃 ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
  border-top: 1px solid var(--glass-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { max-width: 560px; margin: 0 auto; display: flex; width: 100%; }
.tabbar .titem {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 0 8px; color: var(--ink3); font-size: 11px; letter-spacing: .02em;
  font-family: inherit; position: relative; transition: color .16s;
}
.tabbar .titem svg { width: 21px; height: 21px; transition: transform .16s; }
.tabbar .titem:hover svg { transform: translateY(-2px); }
.tabbar .titem.on { color: var(--brand); font-weight: 650; }
.tabbar .titem.on svg { filter: drop-shadow(0 4px 8px rgba(99, 102, 241, .45)); }
.tabbar .titem.on::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad);
}

/* ── 桌面适配 ── */
@media (min-width: 1024px) {
  .container { max-width: 920px; }
  .auth-wrap { margin: 11vh auto; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .header { padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: 14px; }
}

/* ── 小屏手机（≤360px）── */
@media (max-width: 360px) {
  body { font-size: 14px; }
  .container { padding: 0 10px; }
  .card { padding: 16px; }
  .order .row .k { width: 64px; font-size: 12.5px; }
  .order .row { font-size: 13px; }
  .order .btns { flex-wrap: wrap; }
  .order .btns .btn { flex: 1 1 42%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .income-grid { grid-template-columns: repeat(2, 1fr); }
  .header h1 { font-size: 14.5px; }
  .mark { width: 29px; height: 29px; font-size: 14px; border-radius: 9px; }
  .tabs { gap: 16px; }
}

/* ── 动效偏好：减弱 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
