/* ==========================================================================
   YSE EXPRESS 会员中心样式（浅色 · 品牌金点缀 · 全中文）
   ========================================================================== */
:root {
  --bg: #F4F6F9;
  --panel: #FFFFFF;
  --line: #E3E7ED;
  --line-2: #EDF0F4;
  /* 统一设计令牌：深墨蓝 + 暖金（引用 ambient.css 的 --yse-*，消除跨端漂移） */
  --ink: var(--yse-ink, #16202E);
  --ink-2: var(--yse-ink-2, #4A5568);
  --ink-3: var(--yse-ink-3, #5B6675);
  --muted: var(--yse-ink-3, #5B6675);
  --brand: var(--yse-brand, #0E2A47);
  --brand-2: var(--yse-brand-2, #13263D);
  --gold: var(--yse-gold, #C8A45C);
  --gold-soft: rgba(200, 164, 92, .14);
  --blue: var(--yse-blue, #2E6BC4);
  --blue-soft: rgba(46, 107, 196, .1);
  --violet: #7C4DCC;
  --violet-soft: rgba(124, 77, 204, .1);
  --green: #1F9D63;
  --green-soft: rgba(31, 157, 99, .1);
  --amber: #C77E12;
  --amber-soft: rgba(199, 126, 18, .12);
  --red: #D64545;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 70px rgba(16, 24, 40, .22);
  /* —— 统一设计令牌：与 ambient.css / admin.css 对齐（深墨蓝 + 暖金）——
     组件已用 var(--yse-*, 兜底值) 引用；此处显式定义，保证 member 自洽且跨端一致。 */
  --yse-brand: #0C1A2B;
  --yse-brand-2: #13263D;
  --yse-gold: #C8A45C;
  --yse-gold-bright: #E8B46A;
  --yse-gold-deep: #AE8A45;
  --yse-blue: #2E6BC4;
  --yse-ink: #16202E;
  --yse-ink-2: #4A5568;
  --yse-ink-3: #5B6675;
  --yse-bg: #F2F4F8;
  --yse-panel: #FFFFFF;
  --yse-line: #E3E7ED;
  --yse-radius: 14px;
  --yse-shadow-1: 0 1px 2px rgba(12, 26, 43, .05), 0 1px 3px rgba(12, 26, 43, .06);
  --yse-shadow-2: 0 2px 4px rgba(12, 26, 43, .05), 0 12px 30px -14px rgba(12, 26, 43, .24);
  --yse-glow-gold: 0 10px 26px -10px rgba(200, 164, 92, .28);
  --yse-ease: cubic-bezier(.2, .8, .3, 1);
  --yse-dur: .22s;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--ink-3); }
.strong { font-weight: 600; }
.flex-sp { flex: 1; }
.link { color: var(--blue); cursor: pointer; background: none; border: 0; padding: 0; font-size: inherit; }
.link:hover { text-decoration: underline; }

/* 按钮 / 表单 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--yse-ctl-h, 38px); padding: 0 16px; border-radius: 9px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.full { width: 100%; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-2); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-outline:hover { border-color: #C6CEDA; color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: #EBEFF4; }
.btn-sm { height: 31px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }

.ipt { width: 100%; height: var(--yse-ctl-h, 38px); padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .15s; }
.ipt:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 108, 223, .12); }
/* textarea 高度对齐（2026-11-10）：min-height 60 → 38px，与 .ipt / select.ipt（38px）同高。
   rows>1 的地址文本域不受影响（intrinsic 高度仍高于 38px），仅 rows=1 的「备注」恢复与下拉框等高。 */
textarea.ipt { height: auto; min-height: 38px; padding: 8px 12px; resize: vertical; line-height: 1.55; }
select.ipt { 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='%238B94A3' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }

/* 纵向间距压缩（2026-11-10）：field 14→10、panel-head 14→10，整页行距更紧凑且保持呼吸感 */
.field { display: block; margin-bottom: 10px; }
.field-label { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.field-label em { font-style: normal; color: var(--ink-3); font-weight: 400; font-size: 11.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-tip { font-size: 12.5px; color: var(--ink-2); background: var(--gold-soft); border: 1px solid rgba(232, 134, 12, .25); border-radius: 8px; padding: 9px 12px; margin: 12px 0 0; }
.ck { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.ck input { width: 16px; height: 16px; accent-color: var(--blue); }

/* ============ 认证页 ============ */
.auth-view { min-height: 100dvh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; background: var(--brand); }
.auth-bg { position: absolute; inset: 0; background: radial-gradient(60% 50% at 75% 15%, rgba(201, 162, 39, .18), transparent 60%), radial-gradient(50% 40% at 20% 85%, rgba(45, 108, 223, .12), transparent 60%), linear-gradient(160deg, #12161D, #0B0E12); }
.auth-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.auth-card { position: relative; width: min(100%, 420px); background: #fff; border-radius: 18px; padding: 32px 30px 24px; box-shadow: var(--shadow-lg); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-mark { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, #EBD07A, var(--gold) 45%, #8C6E12); color: #120E00; font-weight: 800; font-size: 14px; font-family: Georgia, serif; }
.auth-brand strong { display: block; font-size: 16px; letter-spacing: .1em; }
.auth-brand small { font-size: 11px; color: var(--ink-3); letter-spacing: .18em; }
.auth-title { font-size: 19px; margin-bottom: 16px; }
.auth-err { color: var(--red); font-size: 13px; min-height: 20px; margin-bottom: 4px; }
.auth-tip { font-size: 12.5px; color: var(--ink-2); background: var(--line-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
/* 找回方式切换（邮箱验证码 / 手机·站内消息） */
.fp-method { display: flex; gap: 8px; margin-bottom: 14px; }
.fp-method-btn {
  flex: 1; padding: 9px 10px; font-size: 13px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .15s;
}
.fp-method-btn:hover { border-color: var(--blue); color: var(--blue); }
.fp-method-btn.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 14px; }
.auth-alt { margin-top: 16px; font-size: 13px; color: var(--ink-2); text-align: center; }
.auth-card .btn { margin-top: 4px; height: 44px; font-size: 15px; }
.auth-home { display: block; margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.auth-home:hover { color: var(--blue); }

/* ============ 主布局 ============ */
.app { display: flex; min-height: 100dvh; }
.sidebar { width: 224px; flex: none; background: var(--brand); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand strong { display: block; font-size: 14px; letter-spacing: .1em; }
.side-brand small { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .18em; }
.side-menu { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: rgba(255,255,255,.62); font-size: 13.5px; text-align: left; transition: background .15s, color .15s; }
.side-item svg { width: 17px; height: 17px; flex: none; }
.side-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-item.active { background: var(--gold); color: #161100; font-weight: 600; }
.side-badge { font-style: normal; margin-left: auto; background: var(--red); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 1px 7px; }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user { padding: 0 4px 10px; }
.side-user strong { display: block; font-size: 13.5px; }
.side-user small { font-size: 11px; color: rgba(255,255,255,.6); }
.side-act { display: block; width: 100%; text-align: center; padding: 8px; margin-top: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.side-act:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-act.danger:hover { border-color: rgba(255, 120, 120, .5); color: #FF9C9C; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* 滚动流畅性（2026-11-10）：sticky 顶栏/底栏的 backdrop-filter 实时模糊是滚动卡顿主因之一
   （每帧对滚动内容重采样+高斯模糊）。改为高不透明实底，视觉几乎一致、滚动开销大幅下降。 */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 24px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.burger2 { display: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); }
.burger2 span { display: block; width: 15px; height: 1.6px; background: var(--ink-2); margin: 3.2px auto; }
.page-title { font-size: 16.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .btn { margin-left: auto; }
.pages { padding: 20px 24px 60px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page[hidden] { display: none !important; }
[hidden] { display: none !important; }
.loading { padding: 60px 0; text-align: center; color: var(--ink-3); }
.empty { padding: 60px 20px; text-align: center; color: var(--ink-3); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }

/* 欢迎卡 / 统计 */
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, #171D27, #232C3B); color: #fff; border-radius: 16px; padding: 26px 28px; margin-bottom: 18px; }
.welcome-card h2 { font-size: 20px; }
.welcome-card p { margin-top: 6px; color: rgba(255,255,255,.65); font-size: 13.5px; }
.welcome-card .btn { background: var(--gold); color: #161100; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.stat-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
/* 数字色彩语义化收敛：仅「待处理=琥珀、已签收=绿」保留彩色，其余统一墨色 */
.sv-pending { color: var(--amber); } .sv-ready { color: var(--ink); } .sv-shipped { color: var(--ink); } .sv-delivered { color: var(--green); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; margin-bottom: 14px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel-grid .panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel-head h3 { font-size: 14px; letter-spacing: .01em; }
.link-btn { color: var(--blue); font-size: 12.5px; }

/* 渠道卡片 */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ch-card { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.ch-card input { position: absolute; opacity: 0; pointer-events: none; }
.ch-card:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.ch-card:has(input:checked)::after { content: "✓"; position: absolute; right: 12px; top: 10px; width: 20px; height: 20px; background: var(--gold); color: #161100; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ch-type { font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); }
.ch-card strong { font-size: 14.5px; }
.ch-card small { color: var(--ink-3); font-size: 12px; }

.addr-pick { width: auto; min-width: 220px; }
.submit-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.submit-bar .btn { height: 42px; padding: 0 28px; }

/* 工具栏 / 选项卡 */
.toolbar { margin-bottom: 14px; }
.toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .ipt { width: auto; }
.toolbar .search { min-width: 210px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { padding: 7px 14px; border-radius: 9px; font-size: 13px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
/* 订单列表筛选 / 排序多行工具条 */
.toolbar-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 8px; }
.toolbar-row:first-child { margin-top: 0; }
.toolbar-row .flex-sp { flex: 1; }
.fl { display: inline-flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-2); }
.fl .ipt { width: auto; }
.sort-row { align-items: center; }
.sort-row .muted { font-size: 12px; margin-right: 2px; }
/* 移动端：筛选行控件换行铺满 */
@media (max-width: 640px) {
  .filter-row .fl, .filter-row .ipt, .filter-row .search { flex: 1 1 100%; }
  .filter-row .ipt { width: 100%; }
}

/* 表格 */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); background: #FAFBFC; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover { background: #FAFBFD; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .ops { white-space: nowrap; text-align: right; }
.op-btn { font-size: 12px; padding: 4px 10px; border-radius: 7px; color: var(--ink-2); border: 1px solid var(--line); background: #fff; margin-left: 4px; }
.op-btn:hover { border-color: var(--blue); color: var(--blue); }
.op-btn.danger:hover { border-color: var(--red); color: var(--red); }

/* 删除确认弹窗（会员端待处理运单） */
.confirm-del .cd-warn { color: var(--red); font-weight: 600; margin: 0 0 12px; font-size: 14px; }
.confirm-del .cd-info { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.confirm-del .cd-info li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.confirm-del .cd-info li:last-child { border-bottom: 0; }
.confirm-del .cd-info li span { color: var(--ink-3); flex: 0 0 auto; }
.confirm-del .cd-info li strong, .confirm-del .cd-info li { font-size: 13px; }
.confirm-del .cd-impact { font-size: 12.5px; line-height: 1.65; margin: 0; }

.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
/* 标签文字对比度 AA 修正（与后台一致） */
.tag-amber { background: var(--amber-soft); color: #9A5C08; }
.tag-blue { background: var(--blue-soft); color: #245BBE; }
.tag-violet { background: var(--violet-soft); color: #6A3FB4; }
.tag-green { background: var(--green-soft); color: #17754B; }
.tag-gray { background: #EEF0F3; color: #5F6874; }

/* 地址卡 */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.addr-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.addr-card.default { border-color: rgba(201, 162, 39, .5); background: linear-gradient(180deg, #FFFBEE, #fff); }
.addr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.addr-head strong { font-size: 14.5px; }
.addr-card p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; word-break: break-all; }
.addr-ops { margin-top: 10px; display: flex; gap: 4px; }

/* 消息 */
.msg-list { display: grid; gap: 10px; max-height: calc(100vh - 240px); overflow-y: auto; padding-right: 2px; }
.msg-item { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; cursor: default; transition: border-color .15s, background .15s; }
.msg-item.unread { border-color: rgba(201, 162, 39, .55); background: #FFFBEE; cursor: pointer; box-shadow: inset 3px 0 0 var(--amber); }
.msg-item.unread:hover { background: #FFF6DC; }
.msg-item:not(.unread):hover { border-color: var(--line); background: #FAFBFD; }
.msg-item strong { font-size: 13.5px; display: block; }
.msg-item time { font-size: 11px; color: var(--ink-3); }
.msg-item p { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); word-break: break-word; }
.notice-panel h3 { margin-bottom: 12px; }
.notice-list { display: grid; gap: 10px; }
.notice-item { border-left: 3px solid var(--gold); background: var(--line-2); border-radius: 8px; padding: 12px 14px; }
.notice-item strong { font-size: 13.5px; }
.notice-item time { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.notice-item p { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }

/* 详情弹窗内容 */
.detail-wrap { min-width: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.detail-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.detail-row span { color: var(--ink-3); }
.detail-row strong { font-weight: 500; word-break: break-all; }
.detail-sub { font-size: 13.5px; margin: 16px 0 10px; color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.timeline li:first-child::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 17px; bottom: 2px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.timeline strong { font-size: 13.5px; }
.timeline .loc { color: var(--blue); font-size: 12.5px; }
.timeline time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.timeline p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 14, 20, .5); display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px 16px; backdrop-filter: blur(3px); overflow-y: auto; }
.modal.open { display: flex; }
.modal-card { width: min(100%, 560px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2, .8, .3, 1.1); max-height: 90vh; display: flex; flex-direction: column; }
.modal-card.wide { width: min(100%, 820px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h3 { font-size: 16px; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; color: var(--ink-3); font-size: 14px; }
.modal-close:hover { background: var(--line-2); color: var(--ink); }
.modal-body { padding: 16px 22px; overflow-y: auto; }
.modal-foot { padding: 4px 22px 18px; display: flex; justify-content: flex-end; }
.modal-foot-inner { display: flex; gap: 10px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 16px); background: var(--brand); color: #fff; padding: 11px 20px; border-radius: 99px; font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .28s; z-index: 120; max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }

/* 响应式 */
@media (max-width: 1080px) { .panel-grid { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .sidebar { position: fixed; z-index: 80; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .burger2 { display: block; }
  .pages { padding: 14px 14px 50px; }
  .form-grid { grid-template-columns: 1fr; }
  .welcome-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .toolbar .search { min-width: 0; flex: 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 14px; }
}

/* ---------- 美化对齐：焦点/选中/滚动条 ---------- */
::selection { background: rgba(232, 134, 12, .25); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #C6CDD8; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #AEB7C4; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 可搜索地址选择器 + 下单布局 ============ */
.apicker { position: relative; flex: 1; max-width: 420px; }
.panel-head .apicker { margin-left: auto; }
.apicker .ap-input { width: 100%; }
/* 地址选择器在「标题栏右侧」对齐（下单页 / 编辑弹窗共用）；窄屏时与标题换行、选择器占满整行，避免挤压标题 */
@media (max-width: 640px) {
  .panel-head { flex-wrap: wrap; gap: 8px 12px; }
  .panel-head .apicker { margin-left: 0; flex: 1 1 100%; max-width: 100%; }
}
.ap-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
.ap-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.ap-item:last-child { border-bottom: 0; }
.ap-item:hover, .ap-item.on { background: #F5F8FD; }
.ap-item.on { box-shadow: inset 3px 0 0 var(--blue, #2563eb); }
.ap-item strong { display: block; font-size: 12.5px; }
.ap-item small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
/* 地址行：完整收/发货地址，超长单行省略号截断（悬停 title 看全文），避免撑破下拉布局 */
.ap-item { min-width: 0; }
.ap-item .ap-addr { margin-top: 2px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-grid .grid3 > .field { min-width: 0; }
.form-grid .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
/* 货物信息三列同行：物品名称的标签备注较长，允许其在标签行内自然换行，避免撑破列宽 */
.form-grid .grid3 .field-label { flex-wrap: wrap; gap: 2px 6px; }
.form-grid .grid3 .field-label em { flex: 0 1 auto; min-width: 0; line-height: 1.5; }
/* 货物信息三列同行（下单页 / 编辑弹窗共用）：品名加宽、件数与重量等宽收窄；底部对齐保证三列输入框同一条基线 */
.goods-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; align-items: end; }
.goods-row .field { min-width: 0; }
.goods-row .field-label { flex-wrap: wrap; gap: 2px 6px; }
.goods-row .field-label em { flex: 0 1 auto; min-width: 0; line-height: 1.5; }

/* 件数明细编辑器（会员下单 / 编辑共用） */
.parcel-box { border: 1px solid var(--line); border-radius: 12px; background: #FAFBFC; padding: 14px 16px; }
.parcel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.parcel-head b { font-size: 13.5px; color: var(--brand); font-weight: 600; }
.parcel-head small { font-size: 11.5px; color: var(--ink-3); }
.parcel-list { display: flex; flex-direction: column; gap: 8px; }
.parcel-row { display: grid; grid-template-columns: 0.7fr 1fr 1fr 1fr 1fr auto; gap: 8px 10px; align-items: end; }
.parcel-row .field { min-width: 0; margin: 0; }
.parcel-row .field-label { font-size: 11.5px; }
.parcel-del { width: 30px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-3); font-size: 13px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; align-self: end; }
.parcel-del:hover:not(:disabled) { background: #FDF1EF; border-color: #F0C9C2; color: #C0392B; }
.parcel-del:disabled { opacity: .35; cursor: not-allowed; }
.parcel-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 10px; padding: 10px 14px; background: var(--line-2); border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.parcel-sum b { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 2px; }
.parcel-add { margin-top: 2px; }
/* 详情页只读件数明细（复用 .parcel-box / .parcel-sum，仅展示不编辑） */
.parcel-view { display: grid; grid-template-columns: 0.7fr 1fr 1fr 1fr 1fr; gap: 8px 10px; align-items: end; }
.parcel-view .pv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.parcel-view .pv .pv-l { font-size: 11.5px; color: var(--ink-3); }
.parcel-view .pv b { font-size: 13.5px; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .parcel-row { grid-template-columns: 1.2fr 1fr 1fr; } .parcel-del { grid-column: 3; } }
@media (max-width: 640px) { .goods-row { grid-template-columns: 1fr; gap: 12px; } .parcel-row { grid-template-columns: 1fr 1fr; } .parcel-del { grid-column: 2; justify-self: end; } .parcel-view { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .full textarea { width: 100%; }
.save-addr { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; cursor: pointer; }
/* ===== 申报信息子分组与申报价值汇总行（下单页 / 编辑弹窗） ===== */
.sub-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 8px 0 4px; padding: 9px 12px; background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.sub-head small { font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
/* ===== 多品名申报编辑器（申报项卡片 + 增加申报信息按钮） ===== */
.decl-box { grid-column: 1 / -1; }
.decl-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 2px; margin-bottom: 10px; background: var(--line-2); }
/* 申报项六字段同行：品名/HS 占宽列，数量/单价/总价为窄数字列 */
.decl-grid { display: grid; grid-template-columns: 1.15fr 1.2fr 0.75fr 0.6fr 0.85fr 0.95fr; gap: 0 12px; }
.decl-grid .field { min-width: 0; }
.decl-grid .field-label { flex-wrap: wrap; gap: 2px 6px; }
.decl-grid .field-label em { flex: 0 1 auto; min-width: 0; line-height: 1.5; }
@media (max-width: 980px) { .decl-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .decl-grid { grid-template-columns: 1fr; } }
/* 单价/总价数值后缀单位：右移 26px 避开 number spinner，pointer-events 关闭不影响输入 */
.usd-wrap { position: relative; display: block; }
.usd-wrap .ipt { padding-right: 58px; }
.usd-suffix { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 600; color: var(--ink-3, #94a3b8); pointer-events: none; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.decl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.decl-head b { font-size: 13px; color: var(--ink); }
.decl-del { background: none; border: none; padding: 4px 10px; font-size: 12.5px; color: var(--red, #D64545); cursor: pointer; border-radius: 6px; }
.decl-del:hover { background: var(--red-soft, rgba(214, 69, 69, .1)); }
.decl-add { height: 34px; margin: 0 0 10px; }
.decl-box .declare-sum { margin: 0 0 12px; }
.declare-sum { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: -2px 0 12px; padding: 10px 14px; background: var(--line-2); border: 1px dashed var(--line); border-radius: 10px; }
.declare-sum span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.declare-sum strong { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.declare-sum em { font-style: normal; margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 640px) { .declare-sum em { margin-left: 0; flex-basis: 100%; } }

@media (max-width: 640px) {
  .form-grid .grid3 { grid-template-columns: 1fr; }
}

/* 下单页：国家 → 线路 → 自定义单号 级联选择（宽屏三列同行；中屏两列，单号换行；窄屏单列） */
.ch-cascade { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 20px; margin-bottom: 10px; align-items: end; }
.ch-cascade .field { margin-bottom: 0; } /* 网格间距统一由 gap 控制，避免底部留白不一致 */
.ch-cascade .field-label { flex-wrap: wrap; gap: 2px 6px; }
.ch-cascade .field-label em { flex: 0 1 auto; min-width: 0; line-height: 1.5; } /* 备注与标题同行，空间不足时自然换行 */
.ch-cascade .ipt, .ch-cascade .cpick-box { height: 40px; min-height: 40px; } /* 三列控件高度统一，水平线对齐 */
.ch-cascade .field-label em { font-style: normal; color: var(--ink-3); font-size: 12px; }
@media (max-width: 960px) {
  .ch-cascade { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ch-cascade { grid-template-columns: 1fr; align-items: stretch; }
}

/* ==========================================================================
   在线下单：沉浸式视觉增强（会员权益横幅 + 步骤卡 + 主 CTA）
   ========================================================================== */
.order-wrap { max-width: 940px; margin: 0 auto; }

/* —— 会员专属权益横幅 —— */
.order-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 18px 22px; margin-bottom: 14px;
  background: linear-gradient(125deg, #0E1E33 0%, #16304F 52%, #1B3A5E 100%); color: #fff;
  box-shadow: 0 18px 44px rgba(12, 26, 43, .22); }
.order-hero .oh-glow { position: absolute; right: -70px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 92, .32), transparent 70%); pointer-events: none; }
.order-hero .oh-glow::after { content: ""; position: absolute; right: 60px; bottom: -150px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(46, 107, 196, .30), transparent 70%); }
.oh-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.oh-left { flex: 1 1 300px; min-width: 0; }
.oh-kicker { display: inline-block; font-size: 11px; letter-spacing: .18em; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.oh-title { font-size: 22px; line-height: 1.3; }
.oh-sub { margin-top: 8px; color: rgba(255, 255, 255, .66); font-size: 13.5px; max-width: 440px; }
.oh-right { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; }
.oh-badge { flex: none; text-align: center; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(200, 164, 92, .22), rgba(200, 164, 92, .05));
  border: 1px solid rgba(200, 164, 92, .42); }
.oh-badge-k { display: block; font-size: 11px; color: rgba(255, 255, 255, .6); margin-bottom: 3px; }
.oh-badge-v { display: block; font-size: 22px; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(135deg, #EBD49A, var(--gold) 60%, #AE8A45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oh-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.oh-perks li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.oh-perks li i { color: var(--gold); font-style: normal; font-weight: 700; }

/* —— 步骤卡增强 —— */
.order-wrap .panel { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(12, 26, 43, .04), 0 8px 22px rgba(12, 26, 43, .06); padding: 20px 22px; }
.order-wrap .panel-head { justify-content: flex-start; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.order-wrap .panel-head .step-no { margin-right: 10px; }
.step-no { flex: none; width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #171102;
  background: linear-gradient(135deg, #EBD49A, var(--gold) 60%, #AE8A45); box-shadow: 0 4px 10px rgba(200, 164, 92, .4); }
.order-wrap .panel-head h3 { font-size: 14px; letter-spacing: .01em; }

/* —— 渠道级联：轻微内卡 —— */
.order-wrap .ch-cascade { background: var(--line-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }

/* —— 主 CTA —— */
.order-wrap .submit-bar { margin-top: 4px; }
.order-wrap .submit-bar .btn-dark { background: linear-gradient(135deg, #D9B878, var(--gold) 55%, #AE8A45); color: #171102; font-weight: 700;
  border-radius: 10px; box-shadow: 0 10px 24px rgba(200, 164, 92, .35); }
.order-wrap .submit-bar .btn-dark:hover { filter: brightness(1.04); }

/* —— 下单页响应式 —— */
@media (max-width: 720px) {
  .order-hero { padding: 20px; }
  .oh-row { flex-direction: column; align-items: flex-start; }
  .oh-left, .oh-right { flex: none; width: 100%; }
  .oh-right { justify-content: space-between; }
  .oh-perks { flex: 1; }
}
@media (max-width: 520px) {
  .oh-title { font-size: 19px; }
  .oh-right { flex-direction: column; align-items: flex-start; gap: 14px; }
  .oh-badge { padding: 10px 22px; }
}


/* ==========================================================================
   二次美化：深墨蓝 + 暖金（高端国际化视觉层）
   ========================================================================== */
/* （令牌已由顶部 :root 统一引用 --yse-*，删除此处重复的 :root 重定义，消除平行实现） */

/* ---- 侧栏：深墨蓝渐变 + 金色描边 ---- */
.sidebar { background: #0E2A47; /* 与当前官网 blueprint 模板底色一致 */ }
.sidebar::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(200,164,92,.5), rgba(200,164,92,.06) 40%, transparent);
  pointer-events: none;
}
.side-item { position: relative; }
.side-item.active {
  background: linear-gradient(135deg, #D9B878, var(--gold) 60%, #AE8A45);
  color: #171102;
}
.side-item.active::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: var(--gold);
}

/* ---- 认证页：深墨蓝底 + 暖金光晕 ---- */
.auth-bg {
  background:
    radial-gradient(55% 45% at 78% 12%, rgba(200, 164, 92, .22), transparent 60%),
    radial-gradient(45% 40% at 15% 88%, rgba(46, 107, 196, .16), transparent 62%),
    linear-gradient(160deg, #10233B, #0C1A2B 60%, #081220);
}
.auth-mark { background: linear-gradient(145deg, #EBD49A, var(--gold) 45%, #96762F); }

/* ---- 顶栏 / 卡片质感 ---- */
.topbar { background: rgba(248, 249, 252, .88); }
.btn-dark { background: var(--brand); }
.btn-dark:hover { background: var(--brand-2); }
.panel, .stat-card, .card { box-shadow: var(--shadow); }
.stat-value { font-variant-numeric: tabular-nums; }
.tbl th { background: #F7F8FB; letter-spacing: .02em; }
::-webkit-scrollbar-thumb { background: #C2CAD6; }
.toast { background: var(--brand); }

/* 欢迎横幅对齐深墨蓝 */
.welcome-card { background: linear-gradient(120deg, #0E1E33, #16304F 75%, #1B3A5E); position: relative; overflow: hidden; }
.welcome-card::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 1px solid rgba(200, 164, 92, .35); pointer-events: none;
}
.welcome-card::before {
  content: ""; position: absolute; right: 30px; top: -20px; width: 120px; height: 120px;
  border-radius: 50%; border: 1px solid rgba(200, 164, 92, .22); pointer-events: none;
}

/* ------------------------------------------------------------------
   国家可搜索选择器（会员端下单：目的国家）
   ------------------------------------------------------------------ */
.cpick { position: relative; }
.cpick-box {
  display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
  min-height: 40px; padding: 7px 12px; border: 1px solid #d9d4c6; border-radius: 8px;
  background: #fff; cursor: pointer; user-select: none;
}
.cpick-box:hover { border-color: #b9ad8d; }
.cpick-box .cpick-ph { color: #a49e8d; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-box .cpick-val { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-box .cpick-val b { font-weight: 600; margin-right: 6px; }
.cpick-box .cpick-val small { color: #96907e; margin-left: 6px; }
.cpick-box .cpick-arrow { color: #a49e8d; font-size: 10px; transition: transform .15s; }
.cpick.open .cpick-arrow { transform: rotate(180deg); }
.cpick-menu {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 100%;
  min-width: 260px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e2dcc9; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(64, 55, 28, .18); overflow: hidden;
}
.cpick-search { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #f1ecdd; }
.cpick-search input { flex: 1; border: 1px solid #d9d4c6; border-radius: 6px; padding: 6px 10px; font-size: 13px; outline: none; min-width: 0; }
.cpick-search input:focus { border-color: #b08d3e; }
.cpick-search .cpick-mag { color: #a49e8d; font-size: 13px; }
.cpick-list { overflow-y: auto; max-height: 260px; }
.cpick-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.cpick-item:hover, .cpick-item.hl { background: #faf5e6; }
.cpick-item.on { background: #b08d3e; color: #fff; }
.cpick-item .c-code { flex: 0 0 34px; font-weight: 600; font-size: 12px; }
.cpick-item .c-zh { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-item .c-en { color: #96907e; font-size: 12px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-item.on .c-en, .cpick-item.on .c-code { color: rgba(255,255,255,.85); }
.cpick-item .c-tag {
  flex: 0 0 auto; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 4px;
  background: #e8f3ee; color: #1d7a4f; font-weight: 600;
}
.cpick-item.on .c-tag { background: rgba(255,255,255,.2); color: #fff; }
/* 分组标题（自有专线 / 其他国家，滚动时吸附在列表顶部） */
.cpick-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  font-size: 11px; font-weight: 600; color: #a49e8d; letter-spacing: .05em;
  background: #faf7ef; border-bottom: 1px solid #f1ecdd;
}
.cpick-head i { font-style: normal; font-weight: 500; color: #c0b9a4; margin-left: auto; }
/* 搜索命中片段高亮 */
.cpick-item mark { background: transparent; padding: 0; color: #b08d3e; font-weight: 700; }
.cpick-item.on mark { color: #fff; text-decoration: underline; }
/* 选中项 ✓（行尾） */
.cpick-item .c-check { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #b08d3e; visibility: hidden; }
.cpick-item.on .c-check { visibility: visible; color: #fff; }
/* 底部统计栏 */
.cpick-foot {
  padding: 6px 12px; font-size: 11px; color: #a49e8d;
  border-top: 1px solid #f1ecdd; background: #faf7ef; flex: 0 0 auto;
}
/* 已选中时的「×」清空按钮 */
.cpick-clear {
  display: none; flex: 0 0 auto; width: 18px; height: 18px; margin-left: 2px;
  align-items: center; justify-content: center; border-radius: 50%;
  background: #efe9d9; color: #7c7663; font-size: 13px; line-height: 1; cursor: pointer;
}
.cpick-clear:hover { background: #e2dabf; color: #4d4634; }
.cpick.picked .cpick-clear { display: inline-flex; }
/* 向上展开（页面底部空间不足时） */
.cpick-menu.up { top: auto; bottom: calc(100% + 6px); }
/* 列表滚动条 */
.cpick-list::-webkit-scrollbar { width: 8px; }
.cpick-list::-webkit-scrollbar-thumb { background: #ded7c2; border-radius: 4px; }
.cpick-list::-webkit-scrollbar-thumb:hover { background: #c9c0a5; }
.cpick-empty { padding: 18px 12px; text-align: center; color: #a49e8d; font-size: 13px; }

/* ------------------------------------------------------------------
   下拉展开期间冻结卡片 hover 抬升（body.cpick-freeze 由 app.js 在菜单开合时切换）
   根因：抬升 transform 会 (a) 让菜单锚点整体位移，指针在菜单边缘时形成
   「hover→抬升→指针脱出菜单→回落→再 hover」的振荡循环 = 下拉持续闪烁跳动；
   (b) 把面板变成层叠上下文，后续兄弟面板抬升后会整体盖住面板内 z-index 菜单 = 遮挡。
   冻结后菜单锚点静止、菜单 z-index 回到根上下文参与比较，两问题一并消除。
   ------------------------------------------------------------------ */
body.cpick-freeze .panel,
body.cpick-freeze .card,
body.cpick-freeze .stat-card,
body.cpick-freeze .notice-panel,
body.cpick-freeze .panel:hover,
body.cpick-freeze .card:hover,
body.cpick-freeze .stat-card:hover,
body.cpick-freeze .notice-panel:hover { transform: none !important; }

/* ==========================================================================
   统一光感设计语言（管理后台 / 会员端共用）
   原则：浅色专业基调不变；光感仅作点缀（光晕 / 渐变 / 发光边框），
   全部通过 box-shadow / background 渐变实现，不影响布局与功能。
   ========================================================================== */

/* ---- 1. 环境底色：柔和双色光晕铺垫沉浸氛围 ---- */
body {
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(232, 134, 12, .07), transparent 60%),
    radial-gradient(1000px 560px at 108% 12%, rgba(45, 108, 223, .075), transparent 62%),
    radial-gradient(900px 700px at 50% 118%, rgba(124, 77, 204, .05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* ---- 2. 卡片容器：柔光渐变面 + 悬浮发光 ---- */
.panel, .card, .stat-card, .table-wrap, .addr-card, .ch-card, .auth-card, .detail-cell {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFEFF 55%, #FCFDFF 100%);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.panel:hover, .card:hover, .stat-card:hover {
  border-color: rgba(232, 134, 12, .28);
  box-shadow:
    0 2px 4px rgba(16, 24, 40, .04),
    0 12px 32px -12px rgba(16, 24, 40, .14),
    0 0 0 1px rgba(232, 134, 12, .06),
    0 8px 28px -10px rgba(232, 134, 12, .18);
  transform: translateY(-2px);
}
.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 134, 12, .55), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.stat-card:hover::before { opacity: 1; }

/* ---- 3. 按钮：深色主按钮金色流光，交互反馈统一 ---- */
.btn { transition: background .18s, border-color .18s, box-shadow .18s, transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn-dark {
  background: var(--brand);
  box-shadow: 0 1px 2px rgba(11, 14, 18, .3), 0 4px 14px -6px rgba(11, 14, 18, .35);
}
.btn-dark:hover {
  background: var(--brand-2);
  box-shadow: 0 2px 4px rgba(11, 14, 18, .28), 0 8px 22px -8px rgba(11, 14, 18, .4),
    0 0 0 1px rgba(232, 134, 12, .25), 0 10px 26px -8px rgba(232, 134, 12, .35);
}
.btn-dark::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.14) 48%, transparent 62%);
  opacity: 0; transition: opacity .2s;
}
.btn-dark { position: relative; overflow: hidden; }
.btn-dark:hover::after { opacity: 1; }
.btn-outline:hover { box-shadow: 0 4px 14px -6px rgba(16, 24, 40, .16), inset 0 0 0 1px rgba(45, 108, 223, .08); }
.btn-danger { background: linear-gradient(135deg, #E05555, #C63A3A); }
.btn-danger:hover { background: linear-gradient(135deg, #D64545, #B93232); box-shadow: 0 6px 18px -8px rgba(214, 69, 69, .55); }

/* ---- 4. 输入：聚焦光环 + 边框呼吸 ---- */
.ipt { transition: border-color .18s, box-shadow .18s, background .18s; }
.ipt:hover:not(:disabled) { border-color: #C2CBD8; }
.ipt:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, .13), 0 4px 16px -6px rgba(45, 108, 223, .22);
}

/* ---- 5. 表格：表头冷调渐变 + 行悬停光感 ---- */
.tbl th {
  background: linear-gradient(180deg, #F7F9FC, #F2F5F9);
  box-shadow: inset 0 -1px 0 rgba(16, 24, 40, .06);
}
.tbl tbody tr { transition: background .15s ease, box-shadow .15s ease; }
.tbl tbody tr:hover {
  background: linear-gradient(90deg, rgba(45, 108, 223, .045), rgba(45, 108, 223, .015) 55%, transparent);
  box-shadow: inset 2px 0 0 var(--blue);
}

/* ---- 6. 页签：激活态渐变胶囊 + 微光 ---- */
.tab { transition: background .18s, border-color .18s, box-shadow .18s, color .18s, transform .12s; }
.tab:hover { border-color: #C6CEDA; color: var(--ink); }
.tab.active {
  background: linear-gradient(135deg, #1D242F, #0B0E12);
  box-shadow: 0 2px 10px -3px rgba(11, 14, 18, .4), 0 0 0 1px rgba(232, 134, 12, .22);
  /* 必须在本块内重申 color:#fff：本块位于 .tab:hover 之后（同优先级后者胜出），
     若只依赖上方 195 行的旧规则，hover 时会被 .tab:hover 的 var(--ink) 深色覆盖，
     形成深底深字（2026-11-10 用户反馈「选中页签悬停变黑块看不到文字」）。 */
  color: #fff;
}
.tab.active:hover { color: #fff; }

/* ---- 7. 侧边导航：激活项金色光带 ---- */
.side-item { position: relative; transition: background .18s, color .18s, box-shadow .18s; }
.side-item.active {
  background: linear-gradient(90deg, rgba(232, 134, 12, .18), rgba(232, 134, 12, .95) 55%, #E8860C);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 14px -6px rgba(232, 134, 12, .55);
}

/* ---- 8. 顶栏：光带底边 ---- */
/* 滚动流畅性（2026-11-10）：去掉 backdrop-filter（实时模糊在 sticky 顶栏上每帧重采样，
   是整页滚动卡顿主因）；改双层渐变实底（更不透明），光带底边视觉保留。 */
.topbar {
  border-bottom: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.94)) padding-box,
    linear-gradient(90deg, rgba(232, 134, 12, .0), rgba(232, 134, 12, .35), rgba(45, 108, 223, .3), rgba(232, 134, 12, .0)) border-box;
  background-origin: border-box;
}

/* ---- 9. 弹窗：深景深毛玻璃 + 入场流光 ---- */
.modal { background: rgba(10, 14, 20, .5); backdrop-filter: blur(10px) saturate(1.12); }
.modal-card { animation: popGlow .28s cubic-bezier(.2, .8, .3, 1) !important; }
.modal-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(232, 134, 12, .12), inset 0 1px 0 rgba(255,255,255,.6); }
.modal-card { position: relative; overflow: hidden; }
@keyframes popGlow {
  from { opacity: 0; transform: translateY(16px) scale(.975); box-shadow: 0 0 0 rgba(232, 134, 12, 0); }
  60%  { box-shadow: 0 24px 70px rgba(16, 24, 40, .25), 0 0 24px -6px rgba(232, 134, 12, .3); }
  to   { opacity: 1; transform: none; }
}

/* ---- 10. 轻提示：品牌渐变 + 辉光 ---- */
.toast {
  background: linear-gradient(135deg, #1D242F, #0B0E12);
  box-shadow: 0 8px 30px -8px rgba(11, 14, 18, .5), 0 0 0 1px rgba(232, 134, 12, .25), 0 6px 20px -6px rgba(232, 134, 12, .3);
}

/* ---- 11. 滚动条：细身圆角 ---- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C9D1DC; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #AAB4C2; border: 2px solid transparent; background-clip: content-box; }

/* ---- 12. 可访问性 & 动效降级 ---- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- 13. 移动端：收敛悬浮位移与光晕，保证触控稳定 ---- */
@media (max-width: 720px) {
  .panel:hover, .card:hover, .stat-card:hover { transform: none; box-shadow: var(--shadow); }
  body { background-attachment: scroll; }
  .tbl tbody tr:hover { box-shadow: none; }
  .ev-sel-list { max-height: 46vh; }
}

/* 统一网站 LOGO（系统设置动态下发）：img 变体保持原占位尺寸，自适应裁切 */
img.brand-logo { object-fit: cover; background: none !important; box-shadow: 0 4px 14px -6px rgba(232, 134, 12, .45); }
img.auth-mark { width: 46px; height: 46px; border-radius: 12px; }

/* 空状态：图标 + 柔和渐变底，弱化虚线框的生硬感 */
.empty { position: relative; border-style: solid; background: linear-gradient(180deg, #FFFFFF, #F8FAFD); font-size: 13.5px; }
.empty::before {
  content: '📦'; display: block; margin: 0 auto 10px; font-size: 34px;
  filter: grayscale(.25) opacity(.75); animation: emptyFloat 3s ease-in-out infinite;
}
@keyframes emptyFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.empty small { display: block; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .empty::before { animation: none; } }

/* ===== 计费体积三边 + 实时运费预估（下单页） ===== */
.goods-row.dims { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.goods-row.dims .field { min-width: 0; }
.mb-freight { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: linear-gradient(180deg, #FFFDF8, #FFF9EE); margin-top: 4px; }
.mbf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.mbf-head span { font-size: 13px; font-weight: 600; }
.mbf-head em { font-style: normal; font-size: 12px; color: #8A5A0B; font-weight: 600; }
.mbf-body { display: flex; flex-direction: column; gap: 4px; }
.mbf-body.mbf-fail { color: var(--amber, #B4741A); }
.mbf-body.mbf-fail b { font-size: 13px; }
.mbf-amt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mbf-amt strong { font-size: 24px; font-weight: 700; color: var(--red, #C2402A); letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.mbf-amt em { font-style: normal; font-size: 12px; color: var(--ink-3, #66707E); }
.mbf-amt span { font-size: 12px; color: var(--ink-3, #66707E); }
.mbf-w { font-size: 12.5px; color: var(--ink-2, #4A5568); display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.mbf-w b { font-variant-numeric: tabular-nums; }
.mbf-w span { color: var(--ink-3, #66707E); font-size: 11.5px; }
@media (max-width: 640px) { .goods-row.dims { grid-template-columns: 1fr 1fr 1fr; gap: 0 8px; } }

/* ===== 运单详情运费明细 ===== */
.freight-detail { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fd-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.fd-row:last-child { border-bottom: 0; }
.fd-row span { color: var(--ink-2, #4A5568); }
.fd-row b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fd-row.fd-total { background: var(--gold-soft); }
.fd-row.fd-total b { color: var(--red, #D64545); font-size: 15px; }

/* ==========================================================================
   运费计算（城市级目的地 · 多线路对比）
   ========================================================================== */
.calc-wrap { display: flex; flex-direction: column; gap: 16px; }
.calc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.calc-head h2 { font-size: 18px; margin-bottom: 4px; letter-spacing: .01em; }
.calc-head .muted { max-width: 620px; }
.calc-lv { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 12px; box-shadow: var(--shadow); }
.calc-lv span { font-size: 12px; color: var(--ink-3); }
.calc-lv b { font-size: 13px; font-weight: 700; color: var(--lv, #8A6A18); }
.calc-empty-price { background: var(--amber-soft); border: 1px solid rgba(199, 126, 18, .28); color: #8A5A0B; border-radius: 10px; padding: 12px 14px; font-size: 13px; }

.calc-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.calc-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 12px; }
.calc-form-inner { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.calc-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 10px; }
.calc-dims { border-top: 1px dashed var(--line); padding-top: 12px; }
.calc-dims-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.calc-dims-head span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.calc-dims-head small { font-size: 11.5px; color: var(--ink-3); }
.calc-vw { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.calc-vw.has { color: var(--ink-2); background: var(--blue-soft); border-radius: 8px; padding: 8px 10px; }
.calc-vw b { font-variant-numeric: tabular-nums; color: var(--ink); }
.calc-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.calc-quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.calc-quick > span { font-size: 12px; color: var(--ink-3); margin-right: 2px; }
.qbtn { min-width: 40px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; transition: all .15s; }
.qbtn:hover { border-color: #C6CEDA; color: var(--ink); }
.qbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 城市搜索下拉 */
.calc-field { position: relative; }
.citypick { position: relative; }
.citypick-box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.citypick-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.citypick-box .cpick-mag { color: var(--ink-3); font-size: 15px; }
.citypick-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 13.5px; background: transparent; color: var(--ink); }
.citypick-clear { width: 18px; height: 18px; line-height: 17px; text-align: center; border-radius: 50%; color: var(--ink-3); font-size: 14px; cursor: pointer; visibility: hidden; }
.citypick-box:focus-within .citypick-clear, .citypick-clear.show { visibility: visible; }
.citypick-clear:hover { background: var(--line-2); color: var(--ink); }
.citypick-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px rgba(16, 24, 40, .14); padding: 6px; }
.citypick-grp { font-size: 11px; color: var(--ink-3); padding: 6px 8px 3px; letter-spacing: .04em; }
.citypick-item { display: flex; align-items: baseline; gap: 7px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.citypick-item b { font-size: 13.5px; font-weight: 600; }
.citypick-item small { font-size: 12px; color: var(--ink-3); }
.citypick-item em.cq { margin-left: auto; font-style: normal; font-size: 11px; color: #8A5A0B; background: var(--amber-soft); border-radius: 4px; padding: 1px 6px; }
.citypick-item.on { background: var(--blue-soft); }
.citypick-item mark { background: transparent; color: var(--blue); font-weight: 700; }
.citypick-none { padding: 14px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

.calc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.calc-chips:empty { display: none; }
.calc-chips > span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: #FAFBFC; }
.calc-chips .chip-map { border-color: rgba(45, 108, 223, .25); background: var(--blue-soft); color: #1E55B8; }
.calc-chips .chip-free { border-color: rgba(31, 157, 99, .25); background: var(--green-soft); color: #167A4C; }
.calc-chips .chip-add { border-color: rgba(232, 134, 12, .28); background: var(--gold-soft); color: #9A5B08; }
.calc-chips .chip-warn { border-color: rgba(199, 126, 18, .3); background: var(--amber-soft); color: #8A5A0B; }

/* 结果区 */
.calc-result { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.calc-placeholder { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); min-height: 280px; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.cph-ico { font-size: 30px; filter: grayscale(.3); opacity: .7; }
.calc-fail { background: #fff; border: 1px solid rgba(214, 69, 69, .25); border-radius: var(--radius); padding: 22px; color: var(--red); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }

.rs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.rs-city h3 { font-size: 18px; display: flex; align-items: baseline; gap: 8px; }
.rs-city h3 small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.rs-map { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.rs-w { display: flex; gap: 18px; flex-wrap: wrap; }
.rsw-item { display: flex; flex-direction: column; align-items: flex-end; }
.rsw-item span { font-size: 11.5px; color: var(--ink-3); }
.rsw-item b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rsw-item.hl b { color: #8A6A18; }
.rs-basis { font-size: 12px; color: var(--ink-3); margin-top: -6px; }
.rs-delivery { font-size: 12.5px; color: #8A5A0B; background: var(--amber-soft); border-radius: 8px; padding: 8px 12px; margin-top: -6px; }
.rs-delivery b { color: #7A4E06; }
.rs-delivery.warn { color: #B42318; background: #FEF3F2; }
.rs-count { font-size: 12.5px; color: var(--ink-2); }
.rs-count b { color: var(--ink); }
.rs-count em { font-style: normal; color: #127A4A; }

.rs-list { display: flex; flex-direction: column; gap: 10px; }
.rs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, box-shadow .15s; animation: rsIn .28s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rs-card:hover { border-color: #CFD6E0; }
.rs-card.best { border-color: rgba(232, 134, 12, .45); }
.rs-card-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 10px; }
.rs-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-name b { font-size: 14.5px; }
.rs-code { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 12px; font-weight: 700; color: #fff; background: #6B7684; }
.rs-code.c-A { background: #C2402A; }
.rs-code.c-B { background: #2D6CDF; }
.rs-code.c-C { background: #178A4E; }
.rs-code.c-D { background: #7C4DCC; }
.rs-code.c-E { background: #6B7684; }
.bdg { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.bdg-fast { background: var(--blue-soft); color: #1E55B8; }
.bdg-cheap { background: var(--gold-soft); color: #9A5B08; }
.rs-eta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.rs-card-right { text-align: right; white-space: nowrap; }
.rs-price { font-size: 22px; font-weight: 700; color: var(--red); letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.rs-price em { font-style: normal; font-size: 13px; margin-right: 2px; font-weight: 600; }
.rs-card-right small { display: block; font-size: 11px; color: var(--ink-3); }
.rs-more { display: block; width: 100%; text-align: left; padding: 8px 16px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); background: #FCFDFE; }
.rs-more:hover { color: var(--blue); background: var(--blue-soft); }
.rs-detail { display: none; padding: 0 16px 14px; }
.rs-card.open .rs-detail { display: block; }
.rs-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rs-tbl th { text-align: left; font-weight: 400; color: var(--ink-3); width: 92px; padding: 6px 0; vertical-align: top; }
.rs-tbl td { padding: 6px 0; color: var(--ink-2); border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.rs-tbl tr:last-child td, .rs-tbl tr:last-child th { border-bottom: 0; }
.rs-tbl tr:last-child td { font-weight: 700; color: var(--ink); }
.rs-remark { font-size: 12.5px; color: var(--ink-2); background: #F8FAFC; border-radius: 7px; padding: 8px 10px; margin-top: 8px; }
.rs-remark b { color: var(--ink); margin-right: 6px; }
.rs-src { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.rs-warn { font-size: 12px; color: #8A5A0B; padding: 0 16px 8px; }

.rs-unavail { background: #FBFCFD; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; }
.rs-unavail > b { font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 6px; }
.ru-item { display: flex; gap: 10px; font-size: 12.5px; padding: 3px 0; }
.ru-item span { color: var(--ink-2); min-width: 72px; }
.ru-item em { font-style: normal; color: var(--ink-3); }

.rs-tips { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.tip-block h4 { font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.tip-block ul { margin: 0; padding-left: 18px; }
.tip-block li { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.tip-block.warn h4 { color: #8A5A0B; }
.tip-block.warn p { font-size: 12.5px; color: #8A5A0B; background: var(--amber-soft); border-radius: 7px; padding: 8px 10px; }
.tip-foot { font-size: 11.5px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 10px; }

@media (max-width: 1080px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-form { position: static; }
}
@media (max-width: 640px) {
  .calc-row3 { grid-template-columns: 1fr 1fr 1fr; gap: 0 8px; }
  .calc-form-inner { padding: 14px; }
  .rs-head { padding: 14px; }
  .rs-w { gap: 12px; }
  .rs-card-main { padding: 12px 14px 8px; }
  .rs-price { font-size: 19px; }
  .rs-tbl th { width: 80px; }
  .calc-quick .qbtn { min-width: 36px; }
}

/* ------------------------------------------------------------------
 * 提交栏按钮文字完整性修复（全站排查 · 2026-11-07）
 * .submit-bar 内含长提示文字，窄屏会挤压「提交订单」按钮导致文字裁切；
 * 按钮不参与收缩、容器允许换行，保证文案完整且不产生横向溢出。
 * ------------------------------------------------------------------ */
.submit-bar { flex-wrap: wrap; }
.submit-bar .btn { flex: 0 0 auto; }

/* ==========================================================================
   我的账单（2026-11）
   客户对账视图：先给三个数（应收/已付/待付），再给趋势，最后给逐票明细。
   货币 ¥，红色仅用于「欠款/超额」这类需要客户注意的语义，绿色用于「已付」。
   ========================================================================== */
.red { color: var(--red, #D64545); }
.green { color: var(--green, #1F9D63); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 表头数字列对齐修复（2026-11-10）：.tbl th { text-align:left } 特异性 (0,1,1) 高于
   .num (0,1,0)，导致 th.num 列头左对齐而 td.num 数值右对齐，账单表数字列与列头横向错位。
   此处用 .tbl th.num (0,2,1) 恢复右对齐，列头与数值右边缘严格对齐（tabular-nums 等宽数字）。 */
.tbl th.num { text-align: right; }
.bill-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.bill-card { background: var(--panel, #fff); border: 1px solid var(--line, #E6E8EC); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bill-card > span { font-size: 12px; color: var(--muted, #6B7280); }
.bill-card > strong { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bill-credit { background: var(--panel, #fff); border: 1px solid var(--line, #E6E8EC); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 12px; }
.bc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin-bottom: 6px; }
.bc-head strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.bc-bar { height: 8px; border-radius: 99px; background: #EEF1F5; overflow: hidden; margin-bottom: 6px; }
.bc-bar i { display: block; height: 100%; background: var(--green, #1F9D63); border-radius: 99px; }
.bc-bar i.warn { background: var(--red, #D64545); }
.bill-months { display: flex; flex-direction: column; gap: 6px; }
.bm-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bm-period { font-size: 12px; color: var(--muted, #6B7280); font-variant-numeric: tabular-nums; }
.bm-bar { position: relative; height: 16px; background: #F1F3F7; border-radius: 4px; overflow: hidden; }
.bm-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #7FB4F5, #3B82F6); border-radius: 4px; }
.bm-bar u { position: absolute; top: 0; bottom: 0; background: var(--red, #D64545); text-decoration: none; border-radius: 4px; box-shadow: inset 1px 0 0 rgba(255,255,255,.5); }
.bm-num { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-num em { font-style: normal; font-size: 11.5px; }
@media (max-width: 640px) {
  .bill-top { grid-template-columns: 1fr; gap: 8px; }
  .bill-card { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 12px 14px; }
  .bill-card > strong { font-size: 19px; }
  .bill-card > small { display: none; }
  /* 移动端：金额标签移到横条下方独立一行，避免压在进度条上（此前与横条同列导致重叠） */
  .bm-row { grid-template-columns: 54px minmax(0, 1fr); grid-template-areas: "period bar" ". num"; row-gap: 2px; }
  .bm-period { grid-area: period; }
  .bm-bar { grid-area: bar; }
  .bm-num { grid-area: num; text-align: left; font-size: 12px; }
}

/* ==========================================================================
   会员中心 · 沉浸式光感补强（v2.1，纯 CSS / 渐变 / 阴影 / 伪元素，零布局回归）
   目标：① 内容区环境光晕（深藏青+琥珀橙双色柔光，自顶部洒落）；
        ② 卡片静止态「柔光分层阴影 + 微妙渐变描边」；
        ③ 欢迎横幅光效向内容区自然延伸（横幅外发光 + 顶部柔光衔接）；
        ④ 悬浮（hover）发光抬升；⑤ 保留 :focus-visible 轮廓；⑥ 尊重 reduced-motion。
   可读性：所有正文落在不透明白卡 / 深底横幅上，光晕一律 pointer-events:none + z-index:-1，
           绝不降低文字对比度（保持 WCAG AA ≥4.5:1）。
   特异性：用 body[data-app="member"] .main .pages 前缀，确保覆盖 ambient.css 通用层。
   ========================================================================== */

/* —— 1. 内容区环境光晕：固定伪元素，呼应品牌深藏青 + 琥珀橙，低透明度但清晰可感 —— */
body[data-app="member"] .pages { position: relative; }
body[data-app="member"] .pages::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* 独立合成层（translateZ(0)）：fixed 全屏 4 层 radial-gradient 伪元素若随主层滚动，
     每帧都会触发大面积重绘；提升为独立层后滚动时只做合成，不再重绘（下拉卡顿主因之二）。 */
  transform: translateZ(0);
  background:
    radial-gradient(1040px 600px at 12% -8%, rgba(200, 164, 92, .20), transparent 56%),
    radial-gradient(940px 640px at 96% 4%, rgba(46, 107, 196, .17), transparent 58%),
    radial-gradient(780px 680px at 50% 120%, rgba(12, 26, 43, .12), transparent 60%),
    radial-gradient(680px 460px at 50% 0%, rgba(200, 164, 92, .13), transparent 60%);
}

/* —— 2. 卡片：静止态柔光分层阴影 + 渐变描边（金/蓝发丝 + 外发光环） ——
   覆盖 ambient.css 的通用静止阴影，让会员中心自带「柔光面」而非扁平白卡。 */
body[data-app="member"] .main .pages .panel,
body[data-app="member"] .main .pages .stat-card,
body[data-app="member"] .main .pages .notice-panel,
body[data-app="member"] .main .pages .table-wrap,
body[data-app="member"] .main .pages .card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFDFF 56%, #F6FAFE 100%);
  border: 1px solid rgba(227, 231, 237, .9);
  border-radius: var(--yse-radius, 14px);
  box-shadow:
    0 1px 2px rgba(12, 26, 43, .06),
    0 2px 6px rgba(12, 26, 43, .05),
    0 14px 34px -16px rgba(12, 26, 43, .26),
    inset 0 0 0 1px rgba(200, 164, 92, .20),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 0 24px -8px rgba(200, 164, 92, .16);
  transition: box-shadow .28s var(--yse-ease, ease), transform .28s var(--yse-ease, ease), border-color .28s;
}

/* —— 3. 悬浮（hover）：发光抬升 —— */
body[data-app="member"] .main .pages .panel:hover,
body[data-app="member"] .main .pages .stat-card:hover,
body[data-app="member"] .main .pages .notice-panel:hover,
body[data-app="member"] .main .pages .card:hover {
  border-color: rgba(200, 164, 92, .42);
  box-shadow:
    0 2px 5px rgba(12, 26, 43, .06),
    0 22px 48px -18px rgba(12, 26, 43, .28),
    0 0 0 1px rgba(200, 164, 92, .28),
    0 14px 36px -10px rgba(200, 164, 92, .30),
    0 0 26px -6px rgba(46, 107, 196, .16);
  transform: translateY(-2px);
}

/* —— 3b. 滚动中抑制 hover 动效（配合 app.js 的 body.is-scrolling 标记，2026-11-10）——
   滚动时内容移动、鼠标不动 → hover 反复进出触发 transform / box-shadow 过渡，
   造成重绘风暴与视觉抖动；滚动进行中暂时关闭，停止 180ms 后恢复。 */
body.is-scrolling .main .pages .panel:hover,
body.is-scrolling .main .pages .stat-card:hover,
body.is-scrolling .main .pages .notice-panel:hover,
body.is-scrolling .main .pages .card:hover {
  transform: none;
}
body.is-scrolling .main .pages .panel,
body.is-scrolling .main .pages .stat-card,
body.is-scrolling .main .pages .notice-panel,
body.is-scrolling .main .pages .card,
body.is-scrolling .main .pages .stat-card::before {
  transition: none;
}

/* —— 4. 统计卡顶部金线（hover 显现），强化「数据卡被光照亮」的层级感 —— */
body[data-app="member"] .main .pages .stat-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  border-radius: var(--yse-radius, 14px) var(--yse-radius, 14px) 0 0;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 92, .6), transparent);
  opacity: 0; transition: opacity .3s var(--yse-ease, ease);
}
body[data-app="member"] .main .pages .stat-card:hover::before { opacity: 1; }

/* —— 5. 欢迎横幅：光效向内容区自然延伸（横幅外发光 + 与顶部柔光衔接） —— */
body[data-app="member"] .main .pages .welcome-card {
  box-shadow:
    0 18px 46px rgba(12, 26, 43, .24),
    0 0 0 1px rgba(200, 164, 92, .38),
    0 22px 60px -10px rgba(200, 164, 92, .44),
    0 34px 74px -22px rgba(46, 107, 196, .34);
}
/* 横幅底部柔光溢出，与下方内容区光晕自然衔接（仅装饰，不挡文字） */
body[data-app="member"] .main .pages .welcome-card::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 1px solid rgba(200, 164, 92, .35); pointer-events: none;
}
body[data-app="member"] .main .pages .welcome-card::before {
  content: ""; position: absolute; right: 30px; top: -20px; width: 120px; height: 120px;
  border-radius: 50%; border: 1px solid rgba(200, 164, 92, .22); pointer-events: none;
}

/* —— 6. 当前激活页顶部柔光（暖金自上方洒落，与横幅呼应，向内容区延伸） —— */
body[data-app="member"] .main .pages .page:not([hidden]) {
  background-image: linear-gradient(180deg, rgba(200, 164, 92, .14), transparent 200px);
}

/* —— 7. 可访问性：保留 :focus-visible 可见轮廓（不覆盖既有定义，二次兜底） —— */
body[data-app="member"] :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--yse-gold, #C8A45C);
  outline-offset: 2px;
  border-radius: 6px;
}

/* —— 8. 动效降级：尊重系统「减少动态效果」偏好 —— */
@media (prefers-reduced-motion: reduce) {
  body[data-app="member"] .main .pages .panel:hover,
  body[data-app="member"] .main .pages .stat-card:hover,
  body[data-app="member"] .main .pages .notice-panel:hover,
  body[data-app="member"] .main .pages .card:hover { transform: none; }
  body[data-app="member"] .pages::before { background-attachment: scroll !important; }
  body[data-app="member"] .empty::before { animation: none !important; }
}

/* —— 品牌色统一至官网 blueprint 底色 #0E2A47 ——
   用 html/body[data-app="member"]（特异性高于 ambient.css 的 :root）作用域覆盖 --yse-brand，
   仅影响「会员端」，不动共享令牌与官网。 */
html[data-app="member"], body[data-app="member"] {
  --yse-brand: #0E2A47;
  --brand: #0E2A47;
  --yse-brand-2: #16304F;
  --brand-2: #16304F;
}

/* ===== 申报信息模板（快速选择）===== */
.decl-tools { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.decl-tools .btn { height: 32px; font-size: 12.5px; }
.tpl-form { display: flex; flex-direction: column; gap: 12px; }
.tpl-preview-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tpl-preview-h .muted { font-weight: 400; font-size: 11.5px; }
.tpl-preview { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface, #fff); }
.tpl-form .tpl-preview { max-height: 240px; overflow-y: auto; }
.tpl-pv-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.tpl-pv-row:last-child { border-bottom: 0; }
.tpl-pv-row b { flex: 0 0 18px; color: var(--ink-3); font-weight: 500; }
.tpl-pv-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-pv-name em { font-style: normal; color: var(--ink-3); }
.tpl-pv-hs { flex: 0 0 84px; color: var(--ink-2); font-size: 12px; }
.tpl-pv-num { flex: 0 0 auto; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tpl-pick { display: flex; flex-direction: column; gap: 10px; }
.tpl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tpl-bar .ipt { max-width: 320px; }
.tpl-bar-tip { font-size: 11.5px; }
.tpl-hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.tpl-hint.warn { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 10px; }
.tpl-tbl-wrap { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.tpl-tbl { width: 100%; border-collapse: collapse; }
.tpl-tbl th { position: sticky; top: 0; z-index: 1; }
.tpl-tbl .tpl-pick-col { width: 36px; text-align: center; }
.tpl-tbl .tpl-name { min-width: 170px; }
.tpl-tbl .tpl-name b { display: block; font-weight: 600; }
.tpl-tbl .tpl-name .muted { display: block; margin-top: 2px; font-size: 11.5px; }
.tpl-tbl .tpl-sum { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.tpl-tbl .tpl-ops { white-space: nowrap; text-align: right; }
.tpl-tbl .tpl-ops .link { display: inline-block; margin-left: 8px; font-size: 12px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand, #1e6fd9); }
.tpl-tbl .tpl-ops .link.danger { color: #c0392b; }
.tpl-tbl tbody tr { cursor: pointer; }
.tpl-tbl tbody tr:hover { background: var(--line-2); }
.tpl-empty { padding: 36px 12px; text-align: center; }
.tpl-empty p { margin: 0 0 6px; font-weight: 600; }
.tpl-empty small { display: block; margin-bottom: 12px; }
@media (max-width: 640px) {
  .decl-tools { justify-content: flex-start; }
  .tpl-tbl .tpl-sum { max-width: 140px; }
}

/* ==========================================================================
   会员账单「运单明细」筛选 + 分页 + 移动卡片（2026-11-13）
   全部选择器 scoped 到 #page-bills，不影响「我的订单」等页面。
   ========================================================================== */
#page-bills .toolbar { background:#FBFCFE; border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
#page-bills .toolbar .toolbar-row:first-child { margin-top:0; }
#page-bills .toolbar .flex-sp { flex:1; }

/* 生效筛选条件 chips */
#page-bills .chips { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin-top:10px; }
#page-bills .chip { display:inline-flex; align-items:center; gap:6px; font-size:12px; background:var(--blue-soft); color:#234f86; border:1px solid #cfe0f3; border-radius:99px; padding:4px 6px 4px 11px; }
#page-bills .chip b { font-weight:600; }
#page-bills .chip button { font:inherit; font-size:13px; line-height:1; width:17px; height:17px; border-radius:99px; background:#fff; border:1px solid #cfe0f3; color:#234f86; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
#page-bills .clr { font-size:12px; color:var(--blue); text-decoration:underline; background:none; border:0; padding:4px; cursor:pointer; }

/* 付款状态徽标 */
#page-bills .badge { display:inline-block; font-size:11px; font-weight:600; padding:2px 8px; border-radius:99px; white-space:nowrap; }
#page-bills .badge.unpaid { background:rgba(214,69,69,.12); color:var(--red); }
#page-bills .badge.paid { background:var(--green-soft); color:var(--green); }
#page-bills .badge.part { background:rgba(199,126,18,.14); color:var(--amber); }

/* 固定表头 + 滚动容器（横向/纵向滚动时列名常驻）。
   此前只有 max-height 没有 overflow:auto：行数超过 460px 上限时内容直接溢出容器，
   穿透到下方分页条区域（分页条叠在最后一行上、行尾下半截露出）。
   修复：补 overflow:auto 使超出上限的部分在容器内滚动；加边框圆角与 tpl-tbl-wrap 一致。 */
#page-bills .tbl-wrap { max-height:460px; overflow:auto; border:1px solid var(--line); border-radius:10px; background:#fff; }
#page-bills .bills-tbl thead th { position:sticky; top:0; z-index:1; background:#FAFBFC; }

/* 分页器 */
#page-bills .pager { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:12px; }
#page-bills .pginfo { font-size:12.5px; color:var(--muted); }
#page-bills .pginfo b { color:var(--ink); font-variant-numeric:tabular-nums; }
#page-bills .pg { display:flex; gap:5px; align-items:center; }
#page-bills .pg button { font:inherit; font-size:13px; min-width:32px; height:32px; padding:0 8px; border:1px solid var(--line); background:#fff; border-radius:8px; color:var(--ink-2); cursor:pointer; }
#page-bills .pg button.on { background:var(--brand); color:#fff; border-color:var(--brand); font-weight:600; }
#page-bills .pg button:disabled { opacity:.4; cursor:not-allowed; }
#page-bills .pg button.dots { border:0; background:none; cursor:default; min-width:14px; }

/* 移动端卡片视图（窄屏替代横向表格，规避 680px 横向滚动） */
#page-bills .bills-cards { display:none; flex-direction:column; gap:10px; }
#page-bills .bcard { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; }
#page-bills .bcard .bc-r1 { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
#page-bills .bcard .bc-r1 .mono { font-size:13.5px; font-weight:600; }
#page-bills .bcard .bc-grid { display:grid; grid-template-columns:1fr 1fr; gap:5px 14px; font-size:12.5px; }
#page-bills .bcard .bc-grid span { color:var(--muted); }
#page-bills .bcard .bc-grid b { font-variant-numeric:tabular-nums; font-weight:600; text-align:right; }
#page-bills .cell-clip { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* 面板标题行允许换行，长说明文字（如「只统计已发货/已签收…」）在窄内容区不会溢出右边界被裁切 */
#page-bills .panel-head { flex-wrap: wrap; row-gap: 4px; }
#page-bills .panel-head .muted.small { flex: 1 1 200px; min-width: 0; }

@media (max-width:760px) {
  #page-bills .tbl-wrap { display:none; }
  #page-bills .bills-cards { display:flex; }
  #page-bills .pager { flex-direction:column; align-items:stretch; }
}

/* ==========================================================================
   会员端视觉一致性增强（member-only · 纯视觉 · 零逻辑回归）  v3.0
   目标：补齐「交互态一致性 / 品牌层级 / 弹窗观感」三处真实短板。
   原则（与 ambient.css 同）：只写 颜色 / 渐变 / 阴影 / 描边 / 圆角 / 过渡 / 装饰 ::before；
   绝不触碰 display / position / inset / width / max-height / overflow / z-index /
   pointer-events —— 现有布局、叠加栈、响应式断点、功能交互完整保留。
   特异性：以 body[data-app="member"] 前缀覆盖 ambient.css 通用层（ambient 在 member.css 之后加载）。
   ========================================================================== */

/* —— 1. 交互态一致性：账单分页器 / 筛选 chips / 清空链接 此前缺少 hover/active/focus —— */
body[data-app="member"] #page-bills .pg button {
  transition: background .15s var(--yse-ease, ease), border-color .15s, color .15s, box-shadow .15s, transform .12s ease;
}
body[data-app="member"] #page-bills .pg button:hover:not(:disabled):not(.on):not(.dots) {
  border-color: var(--blue); color: var(--blue); background: var(--blue-soft);
}
body[data-app="member"] #page-bills .pg button:active:not(:disabled):not(.dots) { transform: scale(.95); }
body[data-app="member"] #page-bills .pg button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body[data-app="member"] #page-bills .chip button {
  transition: background .15s, color .15s, border-color .15s, transform .12s ease;
}
body[data-app="member"] #page-bills .chip button:hover { background: #fff; border-color: var(--red); color: var(--red); transform: scale(1.06); }
body[data-app="member"] #page-bills .chip button:active { transform: scale(.92); }
body[data-app="member"] #page-bills .chip button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body[data-app="member"] #page-bills .clr { transition: color .15s; }
body[data-app="member"] #page-bills .clr:hover { color: var(--brand); }

/* —— 2. 品牌层级：顶栏页标题加金线前缀，强化跨页一致性与品牌呼应 —— */
body[data-app="member"] .page-title { position: relative; padding-left: 13px; }
body[data-app="member"] .page-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 17px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold, #C8A45C), var(--yse-gold-deep, #AE8A45));
  box-shadow: 0 0 0 3px rgba(200, 164, 92, .14);
}

/* —— 3. 弹窗观感统一：页脚细分隔线 + 按钮等宽，强化操作区层级（弹窗/详情/确认共用） —— */
body[data-app="member"] .modal .modal-foot {
  border-top: 1px solid var(--line-2, #EDF0F4); padding-top: 14px; margin-top: 6px;
}
body[data-app="member"] .modal .modal-foot .btn { min-width: 92px; }

/* —— 4. 卡片交互态一致性：地址卡 / 渠道卡补齐 hover，与 .panel 等静止-悬浮语言统一 —— */
body[data-app="member"] .addr-card,
body[data-app="member"] .ch-card {
  transition: border-color .18s var(--yse-ease, ease), box-shadow .22s var(--yse-ease, ease), background .18s;
}
body[data-app="member"] .addr-card:not(.default):hover {
  border-color: rgba(200, 164, 92, .42); box-shadow: 0 8px 24px -14px rgba(12, 26, 43, .22);
}
body[data-app="member"] .ch-card:hover { border-color: rgba(200, 164, 92, .42); }

/* —— 5. 图标渲染一致性：会员端装饰性 SVG 图标统一描边与对齐（侧栏 / 品牌位） —— */
body[data-app="member"] .side-item svg { stroke-width: 1.7; flex: none; }
body[data-app="member"] .side-item.active svg { color: #171102; }

/* —— 6. 动效降级：尊重系统「减少动态效果」偏好（与全站守卫一致） —— */
@media (prefers-reduced-motion: reduce) {
  body[data-app="member"] #page-bills .pg button,
  body[data-app="member"] #page-bills .chip button,
  body[data-app="member"] .addr-card,
  body[data-app="member"] .ch-card { transition: none; }
  body[data-app="member"] #page-bills .pg button:active,
  body[data-app="member"] #page-bills .chip button:active,
  body[data-app="member"] #page-bills .chip button:hover { transform: none; }
}

/* ==========================================================================
   7. 设计美化增强 · 续（2026-11-13）
   约束：不改动任何 HTML 结构 / JS 逻辑 / 既有 class，全部为纯 CSS 增强层，
   可安全回滚。目标：提升信息层次、色彩呼应、交互反馈与响应式观感。
   ========================================================================== */
:root { --yse-press: cubic-bezier(.34, 1.56, .64, 1); } /* 轻微回弹，用于按压反馈 */

/* 7.1 按钮：补齐按压反馈 + 主操作悬浮微抬升 + 阴影层次（静止-悬浮-按压语言统一） */
body[data-app="member"] .btn {
  transition: background .16s var(--yse-ease, ease), border-color .16s, color .16s,
              box-shadow .2s var(--yse-ease, ease), transform .12s var(--yse-press, ease);
}
body[data-app="member"] .btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
body[data-app="member"] .btn-dark { box-shadow: 0 6px 16px -10px rgba(12, 26, 43, .55); }
body[data-app="member"] .btn-dark:hover:not(:disabled) { box-shadow: 0 10px 22px -10px rgba(12, 26, 43, .6); transform: translateY(-1px); }
body[data-app="member"] .btn-dark:active:not(:disabled) { box-shadow: 0 4px 12px -8px rgba(12, 26, 43, .55); transform: translateY(1px) scale(.985); }
body[data-app="member"] .btn-outline {
  transition: border-color .16s, color .16s, background .16s, box-shadow .2s var(--yse-ease, ease), transform .12s var(--yse-press, ease);
}
body[data-app="member"] .btn-outline:hover:not(:disabled) { box-shadow: 0 6px 16px -12px rgba(12, 26, 43, .4); transform: translateY(-1px); }
body[data-app="member"] .btn-outline:active:not(:disabled) { transform: translateY(1px) scale(.985); }
body[data-app="member"] .btn-ghost:active:not(:disabled) { background: #E2E8F0; transform: scale(.98); }
body[data-app="member"] .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* 主 CTA（金色按钮）呼应品牌金光 */
body[data-app="member"] .welcome-card .btn { box-shadow: 0 8px 20px -10px rgba(200, 164, 92, .7); }
body[data-app="member"] .welcome-card .btn:hover { box-shadow: 0 12px 26px -10px rgba(200, 164, 92, .85); transform: translateY(-1px); }

/* 7.2 输入框：聚焦光晕更顺滑明显，hover 微提示可点性 */
body[data-app="member"] .ipt {
  transition: border-color .16s var(--yse-ease, ease), box-shadow .2s var(--yse-ease, ease), background .16s;
}
body[data-app="member"] .ipt:hover:not(:focus):not(:disabled) { border-color: #C6CEDA; }
body[data-app="member"] .ipt:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, .14), 0 1px 2px rgba(16, 24, 40, .04);
}

/* 7.3 面板 / 卡片：静止-悬浮语言统一（悬浮轻抬升 + 阴影） */
body[data-app="member"] .panel { transition: box-shadow .22s var(--yse-ease, ease), border-color .18s; }
body[data-app="member"] .panel:hover { border-color: #D9DEE6; box-shadow: 0 6px 22px -14px rgba(12, 26, 43, .18); }
body[data-app="member"] .stat-card {
  transition: box-shadow .22s var(--yse-ease, ease), border-color .18s, transform .22s var(--yse-ease, ease);
}
body[data-app="member"] .stat-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -16px rgba(12, 26, 43, .32); border-color: #DCE0E7; }

/* 7.4 面板标题：金线前缀，与页标题呼应，强化信息层次 */
body[data-app="member"] .panel-head h3 { position: relative; padding-left: 12px; }
body[data-app="member"] .panel-head h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold, #C8A45C), var(--yse-gold-deep, #AE8A45)); opacity: .92;
}

/* 7.5 侧边栏：激活项柔和金光 + 按压回弹（不破坏既有金底白字） */
body[data-app="member"] .side-item { transition: background .16s var(--yse-ease, ease), color .16s, transform .12s var(--yse-press, ease); }
body[data-app="member"] .side-item:active { transform: scale(.98); }
body[data-app="member"] .side-item.active { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 6px 16px -10px rgba(200, 164, 92, .5); }

/* 7.6 页面入场：切换时轻微淡入上浮，提升流畅感（display 切换触发，单次播放） */
body[data-app="member"] .page:not([hidden]) { animation: pageIn .34s var(--yse-ease, ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 7.7 加载态：品牌化旋转指示，替代纯文字，弱化等待焦虑 */
body[data-app="member"] .loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
body[data-app="member"] .loading::before {
  content: ""; width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--gold-soft, rgba(200, 164, 92, .18)); border-top-color: var(--gold, #C8A45C);
  animation: yseSpin .8s linear infinite;
}
@keyframes yseSpin { to { transform: rotate(360deg); } }

/* 7.8 空状态：柔光底色，弱化留白单调 */
body[data-app="member"] .empty {
  background: linear-gradient(180deg, #FCFDFE, #F6F8FB); color: var(--ink-3);
  border-style: dashed; border-color: #D7DCE4;
}

/* 7.9 表格：表头吸顶（长列表滚动友好）+ 悬浮行高亮 + 首列金/蓝强调边 */
body[data-app="member"] .tbl th { position: sticky; top: 0; z-index: 1; box-shadow: 0 1px 0 var(--line); }
body[data-app="member"] .tbl tbody tr { transition: background .12s; }
body[data-app="member"] .tbl tbody tr:hover { background: #F5F8FD; }
body[data-app="member"] .tbl tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--blue); }

/* 7.10 操作按钮：悬浮微抬升 + 按压反馈（与 bills 分页器语言一致） */
body[data-app="member"] .op-btn {
  transition: border-color .15s, color .15s, background .15s, transform .12s var(--yse-press, ease), box-shadow .2s var(--yse-ease, ease);
}
body[data-app="member"] .op-btn:hover { box-shadow: 0 4px 12px -8px rgba(12, 26, 43, .3); }
body[data-app="member"] .op-btn:active { transform: scale(.95); }

/* 7.11 标签：细分隔边，彩色更精致 */
body[data-app="member"] .tag { box-shadow: inset 0 0 0 1px rgba(12, 26, 43, .04); }

/* 7.12 自定义滚动条（webkit），与品牌一致的克制灰蓝 */
body[data-app="member"] .table-wrap::-webkit-scrollbar,
body[data-app="member"] .side-menu::-webkit-scrollbar,
body[data-app="member"] .msg-list::-webkit-scrollbar { width: 8px; height: 8px; }
body[data-app="member"] .table-wrap::-webkit-scrollbar-thumb,
body[data-app="member"] .side-menu::-webkit-scrollbar-thumb,
body[data-app="member"] .msg-list::-webkit-scrollbar-thumb { background: #D3DAE3; border-radius: 99px; }
body[data-app="member"] .table-wrap::-webkit-scrollbar-thumb:hover,
body[data-app="member"] .side-menu::-webkit-scrollbar-thumb:hover,
body[data-app="member"] .msg-list::-webkit-scrollbar-thumb:hover { background: #B9C3D0; }

/* 7.13 toast：入场更灵动（缩放+位移） */
body[data-app="member"] .toast { transform: translate(-50%, 16px) scale(.96); }
body[data-app="member"] .toast.show { transform: translate(-50%, 0) scale(1); box-shadow: 0 14px 34px -12px rgba(12, 26, 43, .5); }

/* 7.14 认证卡：顶部品牌金线，强化登录/注册页品牌呼应 */
body[data-app="member"] .auth-card { border-top: 3px solid var(--gold, #C8A45C); }
/* 欢迎卡：右上柔金光晕，提升首屏质感（不影响文字层） */
body[data-app="member"] .welcome-card { position: relative; overflow: hidden; }
body[data-app="member"] .welcome-card::before {
  content: ""; position: absolute; right: -50px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 92, .22), transparent 70%); pointer-events: none;
}

/* 7.15 减少动态效果：覆盖本段新增动效与抬升（尊重系统偏好） */
@media (prefers-reduced-motion: reduce) {
  body[data-app="member"] .page:not([hidden]) { animation: none; }
  body[data-app="member"] .loading::before { animation: none; }
  body[data-app="member"] .btn:active:not(:disabled),
  body[data-app="member"] .btn-outline:active:not(:disabled),
  body[data-app="member"] .btn-ghost:active:not(:disabled),
  body[data-app="member"] .op-btn:active,
  body[data-app="member"] .side-item:active { transform: none; }
  body[data-app="member"] .btn-dark:hover:not(:disabled),
  body[data-app="member"] .btn-outline:hover:not(:disabled),
  body[data-app="member"] .stat-card:hover { transform: none; }
}

/* ==========================================================================
   会员端全站排版与信息层级精修 v4.0（2026-11-16 · 纯静态 · 零运行时开销）
   --------------------------------------------------------------------------
   目标：在既有 v2.1 光感层 / v3.0 交互层之上，补齐「排版信息层级」短板——
         数字对齐、标签-值权重、状态标签度量一致性、表头/明细行可读性、弹窗节奏。
   开销纪律：仅使用 color / font-size / font-weight / line-height / letter-spacing /
         font-variant-numeric 等静态文字绘制属性；不改 display / position / overflow /
         max-height / z-index / transform，不新增 DOM / 资源 / 动画 / transition /
         定时器 / 事件监听 —— 无新增重排、重绘或合成层，滚动与交互开销保持不变。
   特异性：body[data-app="member"]（0,2,1）覆盖 ambient.css :is() 层（0,2,0）。
   ========================================================================== */

/* —— 4.1 数字对齐：金额/统计/时间/单号统一等宽数字，消除跳动与列错位 —— */
body[data-app="member"] .stat-value,
body[data-app="member"] .bill-card > strong,
body[data-app="member"] .bc-head strong,
body[data-app="member"] .bm-num,
body[data-app="member"] .decl-sum strong,
body[data-app="member"] .fd-row b,
body[data-app="member"] .rs-price,
body[data-app="member"] .rsw-item b,
body[data-app="member"] .mbf-amt strong,
body[data-app="member"] .parcel-view .pv b,
body[data-app="member"] .detail-row strong,
body[data-app="member"] .timeline time,
body[data-app="member"] .tbl td.num,
body[data-app="member"] #page-bills .bcard .bc-grid b {
  font-variant-numeric: tabular-nums;
}

/* —— 4.2 信息层级：明细「弱标签 + 强值」，扫读一眼命中数据 —— */
body[data-app="member"] .detail-row span,
body[data-app="member"] .fd-row span,
body[data-app="member"] .rs-tbl th,
body[data-app="member"] .bm-period,
body[data-app="member"] .mbf-w span {
  color: var(--ink-3, #5B6675);
  font-weight: 500;
}
body[data-app="member"] .detail-row strong,
body[data-app="member"] .fd-row b,
body[data-app="member"] .bm-num,
body[data-app="member"] #page-bills .bcard .bc-grid b {
  color: var(--ink, #16202E);
  font-weight: 600;
}
/* 明细行行高：中文与数字混排更松弛，降低密集列表压迫感（静态，无运行时开销） */
body[data-app="member"] .detail-row { line-height: 1.6; }

/* —— 4.3 标题节奏：统一垂直节奏与字距（不动 ambient 已统一的字号） —— */
body[data-app="member"] .page-title,
body[data-app="member"] .panel-head h3,
body[data-app="member"] .modal-head h3,
body[data-app="member"] .notice-panel h3,
body[data-app="member"] .auth-title {
  line-height: 1.35;
  letter-spacing: .015em;
}
body[data-app="member"] .panel-head h3,
body[data-app="member"] .sub-head,
body[data-app="member"] .notice-item strong {
  font-weight: 600;
}

/* —— 4.4 状态标签度量一致：三套标签统一行高/字距/字重，配色保持各自语义 —— */
body[data-app="member"] .tag,
body[data-app="member"] #page-bills .badge,
body[data-app="member"] .bdg,
body[data-app="member"] .calc-chips > span {
  line-height: 1.5;
  letter-spacing: .02em;
  font-weight: 600;
}

/* —— 4.5 表头/单元格可读性 —— */
body[data-app="member"] .tbl th { line-height: 1.4; letter-spacing: .03em; }
body[data-app="member"] .tbl td,
body[data-app="member"] .rs-tbl td,
body[data-app="member"] .tpl-pv-row { line-height: 1.55; }

/* —— 4.6 表单标签层级：字段标题清晰、备注弱化 —— */
body[data-app="member"] .field-label,
body[data-app="member"] .fl { line-height: 1.5; font-weight: 500; }
body[data-app="member"] .field-label em {
  color: var(--ink-3, #5B6675);
  font-weight: 400;
  line-height: 1.5;
}

/* —— 4.7 弹窗排版节奏：正文舒展、页脚分隔线已在 v3.0 建立，不重复 —— */
body[data-app="member"] .modal-body,
body[data-app="member"] .detail-wrap { line-height: 1.65; }
body[data-app="member"] .modal-body p,
body[data-app="member"] .confirm-del .cd-impact { line-height: 1.7; }

/* —— 4.8 辅助文字与卡片文案节奏（含地址卡/消息/公告/认证页） —— */
body[data-app="member"] .muted,
body[data-app="member"] .msg-item time,
body[data-app="member"] .notice-item time,
body[data-app="member"] .rs-eta,
body[data-app="member"] .rs-src,
body[data-app="member"] .tpl-hint,
body[data-app="member"] .addr-card p,
body[data-app="member"] .auth-tip {
  color: var(--ink-3, #5B6675);
  line-height: 1.55;
}

/* —— 4.9 移动端：文案行高微调，避免卡片内文字拥挤/重叠（静态媒体查询） —— */
@media (max-width: 640px) {
  body[data-app="member"] #page-bills .bcard .bc-grid,
  body[data-app="member"] .msg-item p,
  body[data-app="member"] .notice-item p { line-height: 1.6; }
}
/* v4.0 无新增动画/transition：reduced-motion 完全复用全站既有守卫，无需额外规则。 */

/* ==========================================================================
   会员端「我的订单」收件人/目的地列：完整收件信息（v4.1 · 2026-11-17）
   --------------------------------------------------------------------------
   单元格结构：姓名 / 联系电话 / 公司 / 详细地址 / 城市·国家，共 5 行。
   仅作用于 #page-orders 的该列（.cell-receiver），其他列与表格交互不变。
   纯静态布局属性：调宽列 + 允许详细地址换行 + 长串自动折行防溢出。
   ========================================================================== */
/* 表头与单元格列宽：适当调宽，容纳 5 行收件信息 */
body[data-app="member"] #page-orders .tbl th:nth-child(4),
body[data-app="member"] #page-orders .tbl td.cell-receiver {
  min-width: 210px;
  width: 210px;
  max-width: 300px;
}
/* 该列允许换行（覆盖 td 默认与 th 的 nowrap），文本按词折行 */
body[data-app="member"] #page-orders .tbl td.cell-receiver,
body[data-app="member"] #page-orders .tbl th:nth-child(4) {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}
/* 详细地址独立成行：允许换行、不截断、不溢出 */
body[data-app="member"] #page-orders .tbl td.cell-receiver .rcv-addr {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.5;
}
/* 各行节奏与层级：姓名加粗、电话/公司/地址为正文、末行城市国家弱化（沿用当前格式） */
body[data-app="member"] #page-orders .tbl td.cell-receiver > div { line-height: 1.55; }
body[data-app="member"] #page-orders .tbl td.cell-receiver .rcv-name { color: var(--ink); }
body[data-app="member"] #page-orders .tbl td.cell-receiver .rcv-geo { color: var(--ink-3); }
/* 移动端：列宽回落为自动，避免窄屏横向挤压过度（表格容器本身可横向滚动） */
@media (max-width: 760px) {
  body[data-app="member"] #page-orders .tbl th:nth-child(4),
  body[data-app="member"] #page-orders .tbl td.cell-receiver {
    min-width: 180px; width: auto; max-width: 240px;
  }
}

/* ==========================================================================
   会员端「我的订单」最新轨迹列（2026-11-20）
   --------------------------------------------------------------------------
   展示口径与后台管理端运单列表的「最新轨迹」列一致：
   主行 = 最新节点描述（location 以「 · 」淡色跟随），副行 = 节点时间。
   内容较多 → 自动换行完整展示（长英文/无空格串 overflow-wrap 兜底），
   行高自适应，不截断不溢出，不影响其他列宽。
   ========================================================================== */
body[data-app="member"] #page-orders .tbl td.track-cell {
  min-width: 150px;
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}
body[data-app="member"] #page-orders .tbl td.track-cell .track-main {
  font-size: 12.5px;
  display: block;
  line-height: 1.45;
}
body[data-app="member"] #page-orders .tbl td.track-cell small {
  display: block;
  margin-top: 2px;
}
