/* ========== 快递下单平台前台样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #1677ff;
    --primary-dark: #0958d9;
    --primary-light: #e6f0ff;
    --text: #1f2d3d;
    --text-2: #555;
    --muted: #8a94a6;
    --border: #e8ecf1;
    --bg: #f5f7fa;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #f5222d;
    --radius: 8px;
    --shadow: 0 2px 10px rgba(22, 119, 255, .08);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 22px; border-radius: 7px;
    border: 1px solid #d9e0ea; background: #fff; color: var(--text);
    font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer;
    transition: border-color .18s, color .18s, background .18s, box-shadow .18s, transform .12s;
    text-align: center; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.btn:hover {
    border-color: var(--primary); color: var(--primary); background: #f5f9ff;
    box-shadow: 0 2px 8px rgba(22,119,255,.12);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(22,119,255,.18); }
.btn-primary {
    background: linear-gradient(135deg, #1677ff, #4096ff);
    border-color: var(--primary); color: #fff;
    box-shadow: 0 2px 8px rgba(22,119,255,.28);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0958d9, #1677ff);
    border-color: var(--primary-dark); color: #fff;
    box-shadow: 0 4px 12px rgba(22,119,255,.36);
}
/* 充值按钮：渐变 + 圆角 + 柔和阴影 */
.btn-recharge {
    background: linear-gradient(135deg, #1677ff, #3b9bff);
    border: none; color: #fff;
    border-radius: 8px; box-shadow: 0 2px 8px rgba(22,119,255,.32);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-recharge:hover {
    background: linear-gradient(135deg, #0958d9, #1677ff);
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22,119,255,.45);
    filter: brightness(1.05);
}
.btn-lg { padding: 13px 34px; font-size: 16px; border-radius: 8px; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; border-color: #fff; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: inherit; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* ===== 官网导航 ===== */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; height: 64px; }
.nav-logo { font-size: 20px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.nav-logo .logo-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #69b1ff);
    color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.nav-links { display: flex; gap: 30px; margin-left: 56px; flex: 1; }
.nav-links a { color: var(--text-2); font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #0958d9 0%, #1677ff 55%, #4096ff 100%);
    color: #fff; padding: 86px 0 96px; position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; right: -120px; top: -120px;
    width: 460px; height: 460px; border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.hero::before {
    content: ''; position: absolute; left: -80px; bottom: -160px;
    width: 360px; height: 360px; border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { font-size: 44px; line-height: 1.3; margin-bottom: 18px; }
.hero p.lead { font-size: 18px; opacity: .92; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; }
.hero-stats .num { font-size: 32px; font-weight: 700; }
.hero-stats .label { font-size: 14px; opacity: .85; }

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section.gray { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: 32px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 30px 24px; transition: all .25s;
}
.feature-card:hover { box-shadow: 0 10px 30px rgba(22,119,255,.12); transform: translateY(-4px); border-color: #b7d4ff; }
.feature-card .icon {
    width: 52px; height: 52px; border-radius: 12px; background: var(--primary-light);
    color: var(--primary); font-size: 26px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* 步骤 */
.steps { display: flex; gap: 20px; }
.step-item { flex: 1; text-align: center; background: #fff; border-radius: 12px; padding: 34px 20px; border: 1px solid var(--border); position: relative; }
.step-no {
    width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), #69b1ff); color: #fff;
    font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step-item h3 { font-size: 17px; margin-bottom: 6px; }
.step-item p { color: var(--muted); font-size: 14px; }

/* CTA */
.cta-band { background: linear-gradient(135deg, #0958d9, #1677ff); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { opacity: .9; margin-bottom: 26px; }

/* 页脚 */
.site-footer { background: #101828; color: #b8c0cc; padding: 46px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #b8c0cc; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; text-align: center; color: #7a8494; }

/* ===== 登录注册 ===== */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0958d9, #4096ff); padding: 20px; }
.auth-box { background: #fff; border-radius: 14px; width: 420px; max-width: 100%; padding: 38px 36px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.auth-box .auth-logo { text-align: center; font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.auth-box .auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.form-control {
    width: 100%; height: 40px; padding: 0 13px; border: 1px solid #d9e0ea; border-radius: 8px;
    font-size: 14px; line-height: 1.5; font-family: inherit; color: var(--text);
    background: #fff; transition: border-color .18s, box-shadow .18s;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
}
.form-control:hover { border-color: #bcc9da; }
.form-control::placeholder { color: #a8b1c0; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,.14); }
textarea.form-control { resize: vertical; min-height: 88px; height: auto; padding: 10px 13px; line-height: 1.7; }

/* 下拉框统一外观：自定义箭头、悬停与聚焦态（含弹窗内下拉） */
select.form-control {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 36px; cursor: pointer; background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a94a6' d='M6 7.5 0.6 1.9a1 1 0 0 1 1.4-1.4L6 4.7l4-4.2a1 1 0 0 1 1.4 1.4L6 7.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center;
}
select.form-control:hover { border-color: #bcc9da; }
select.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,.14); }
select.form-control option { color: var(--text); background: #fff; }
select.form-control:disabled { background-color: #f5f7fa; color: var(--muted); cursor: not-allowed; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.form-tip { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: var(--danger); }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }

/* ===== 用户中心布局 ===== */
.uc-layout { display: flex; min-height: 100vh; background: var(--bg); }
.uc-sidebar {
    width: 220px; background: #101828; color: #c2cad6;
    flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.uc-logo { padding: 20px 22px; font-size: 17px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.uc-menu { padding: 12px 0; }
.uc-menu .menu-group-title { padding: 14px 22px 6px; font-size: 12px; color: #6b7688; }
/* 可折叠分组（账户管理） */
.uc-menu .menu-group-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: none; border: 0; border-radius: 0; text-align: left; cursor: pointer;
    font-family: inherit; line-height: 1.4;
}
.uc-menu .menu-group-toggle:hover { color: #fff; }
.uc-menu .menu-group-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.uc-menu .menu-group-caret {
    display: inline-block; font-size: 10px; color: #6b7688;
    transform: rotate(-90deg); transition: transform .2s ease;
}
.uc-menu .menu-group.open .menu-group-caret { transform: rotate(0deg); color: #c2cad6; }
.uc-menu .menu-group:not(.open) .menu-group-body { display: none; }
.uc-menu a {
    display: block; padding: 10px 22px; color: #c2cad6; font-size: 14px;
    border-left: 3px solid transparent;
}
.uc-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.uc-menu a.active { background: rgba(22,119,255,.18); color: #fff; border-left-color: var(--primary); }
.uc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uc-topbar {
    height: 58px; background: #fff; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 26px; position: sticky; top: 0; z-index: 10;
}
.uc-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.uc-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #69b1ff);
    color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
    overflow: hidden;
}
.uc-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 顶部用户下拉菜单 */
.uc-user-balance { margin-right: 4px; font-size: 13px; }
.uc-user-dropdown { position: relative; }
.uc-user-trigger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 3px 10px 3px 3px; border: 1px solid transparent; border-radius: 20px;
    background: transparent; cursor: pointer; transition: background .15s, border-color .15s;
    font-size: 14px; color: inherit;
}
.uc-user-trigger:hover { background: #f1f5f9; border-color: #e2e8f0; }
.uc-user-trigger .uc-avatar { width: 28px; height: 28px; font-size: 13px; }
.uc-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-user-caret { color: #94a3b8; font-size: 11px; line-height: 1; transition: transform .15s; }
.uc-user-dropdown.open .uc-user-caret { transform: rotate(180deg); }
.uc-user-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15,23,42,.12); padding: 6px;
    display: none; z-index: 20;
}
.uc-user-dropdown.open .uc-user-menu { display: block; }
.uc-user-menu a {
    display: flex; align-items: center; gap: 8px; padding: 9px 12px;
    border-radius: 6px; color: #334155; font-size: 14px;
    text-decoration: none; transition: background .12s, color .12s;
}
.uc-user-menu a:hover { background: #f1f5f9; color: #1d4ed8; }
.uc-user-divider { height: 1px; background: #eef2f7; margin: 6px 8px; }

.uc-content { padding: 24px 26px; }

/* 卡片/统计 */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.panel-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-box { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-box .s-label { color: var(--muted); font-size: 13px; }
.stat-box .s-value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-box .s-value.text-primary { color: var(--primary); }
.stat-box .s-value.text-success { color: var(--success); }
.stat-box .s-value.text-danger { color: var(--danger); }
.stat-box .s-foot { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 表格 */
.table-wrap {
    overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; vertical-align: middle; }
.data-table th { background: #f7f9fc; color: #5b6676; font-weight: 600; font-size: 13px; letter-spacing: .2px; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover td { background: #f5f9ff; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.wrap { white-space: normal; }
.empty { text-align: center; color: var(--muted); padding: 42px 0 !important; font-size: 13px; background: #fafbfd; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #f0fbe8; color: #389e0d; }
.badge-info { background: #e6f7ff; color: #096dd9; }
.badge-warning { background: #fff7e6; color: #d46b08; }
.badge-danger { background: #fff2f0; color: var(--danger); }
.badge-muted, .badge-default { background: #f0f2f5; color: #8a94a6; }

/* 业务类型标识：快递=蓝 / 快运=橙，避免两者同色难以区分 */
.badge.biz-express { background: #e8f1ff; color: #1d6fe0; font-weight: 600; }
.badge.biz-freight { background: #fff2e2; color: #c85f00; font-weight: 600; }

/* 资金日志（/mp/payment-log）：业务类型徽标（沿用 .badge 浅底深字）+ 收支金额 */
.badge.pay-biz-order { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.badge.pay-biz-diff { background: #fff7e6; color: #d46b08; font-weight: 600; }
.badge.pay-biz-recharge { background: #f9f0ff; color: #722ed1; font-weight: 600; }
.badge.pay-biz-refund { background: #f0fbe8; color: #389e0d; font-weight: 600; }
.badge.pay-biz-adjust { background: #e6fffb; color: #08979c; font-weight: 600; }
.fund-out { color: var(--danger); font-weight: 600; }
.fund-in { color: #389e0d; font-weight: 600; }

/* 筛选栏 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar .form-control { width: auto; min-width: 160px; }
.pager { margin-top: 18px; }
.pager ul { display: flex; gap: 6px; list-style: none; justify-content: flex-end; flex-wrap: wrap; }
.pager a, .pager span {
    display: inline-block; padding: 5px 12px; border: 1px solid var(--border);
    border-radius: 5px; font-size: 13px; color: var(--text-2); background: #fff;
}
/* 当前页：实心主色块。必须 !important —— 后加载的主题层有通用 .pager span 规则，
   否则夜间 / mp 会把当前页盖成普通按钮，完全看不出在第几页。 */
.pager .active span, .pager .active a {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 700;
    min-width: 32px; text-align: center;
    box-shadow: 0 2px 8px rgba(22, 119, 255, .28);
}
.pager .disabled span { color: #ccc; }

/* 详情定义列表 */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 26px; }
.dl-grid .dt { color: var(--muted); font-size: 13px; }
.dl-grid .dd { margin-top: 2px; }
.route-box {
    border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0;
    background: #fafbfc; padding: 14px 18px; margin-bottom: 14px;
}
.route-box .t { color: var(--muted); font-size: 12px; }
.route-box .c { font-weight: 500; margin-top: 2px; }

/* 报价结果 */
.quote-loading { text-align: center; padding: 40px; color: var(--muted); }
.quote-item {
    border: 2px solid var(--border); border-radius: 10px; padding: 18px 20px;
    margin-bottom: 14px; display: flex; align-items: center; gap: 20px; cursor: pointer;
    transition: all .2s; background: #fff;
}
.quote-item:hover { border-color: #91bfff; }
.quote-item.selected { border-color: var(--primary); background: var(--primary-light); }
.quote-item .q-logo {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px;
    object-fit: contain; border: 1px solid var(--border); background: #fff;
}
.quote-item .q-logo-text {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary); font-size: 20px; font-weight: 700;
}
.quote-item .q-main { flex: 1; min-width: 0; }
.quote-item .q-company { font-size: 17px; font-weight: 600; }
.quote-item .q-intro { font-size: 13px; color: var(--muted); margin-top: 2px; }
.quote-item .q-eta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.quote-item .q-price { margin-left: auto; text-align: right; }
.quote-item .q-price .p { font-size: 24px; font-weight: 700; color: var(--danger); }
.quote-item .q-price .s { color: var(--muted); font-size: 12px; }

.section-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.mt16 { margin-top: 16px; }
.mt8 { margin-top: 8px; }
.mb8 { margin-bottom: 8px; }
.inline-form { display: inline; }
.actions a, .actions .link-btn { margin-right: 10px; }
.code-block { background: #0f172a; color: #d7e3f4; padding: 16px; border-radius: 8px; font-size: 13px;
    overflow-x: auto; white-space: pre; line-height: 1.7; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.chart-bars .bar { flex: 1; background: linear-gradient(180deg, var(--primary), #91bfff); border-radius: 3px 3px 0 0; min-height: 3px; position: relative; }
.chart-bars .bar:hover { background: var(--primary-dark); }
.chart-labels { display: flex; gap: 6px; margin-top: 6px; }
.chart-labels span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); overflow: hidden; }

@media (max-width: 900px) {
    .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 30px; }
    .uc-sidebar { width: 180px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps { flex-direction: column; }
}

/* 下单页：寄件/收件左右分栏（宽屏两栏，窄屏自动变单栏） */
.order-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.order-cols .panel { margin-bottom: 20px; }
@media (max-width: 900px) {
    .order-cols { grid-template-columns: 1fr; }
}

/* 报价选择弹层 */
.quote-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.quote-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.quote-dialog {
    position: relative; z-index: 1; width: min(720px, 92vw); max-height: 86vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden;
}
.quote-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 16px; }
.quote-close { border: none; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.quote-list { flex: 1 1 auto; min-height: 0; padding: 18px 20px; overflow-y: auto; }
.quote-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: #fafbfd; }

/* 保价选择（单行紧凑，尽量不占用报价列表空间） */
.quote-insure {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 0 20px 8px; padding: 7px 12px; border: 1px solid var(--border);
    border-radius: 9px; background: #fafbfd; transition: border-color .2s, background .2s;
}
.quote-insure.is-open { border-color: #91bfff; background: var(--primary-light); }
.insure-check-label {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--text); user-select: none; white-space: nowrap;
}
.insure-check-label input[type="checkbox"] {
    width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; margin: 0;
}
.insure-value-wrap {
    display: flex; align-items: center; overflow: hidden; height: 30px;
    border: 1px solid var(--border); border-radius: 7px; background: #fff;
    flex: 1 1 130px; max-width: 168px; transition: border-color .2s, box-shadow .2s;
}
.insure-value-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(22,119,255,.12); }
.insure-value-wrap .unit {
    height: 100%; display: flex; align-items: center; padding: 0 8px;
    background: #f2f5f9; color: var(--muted); font-size: 12px; border-right: 1px solid var(--border);
}
.insure-value-wrap input {
    flex: 1; width: 100%; min-width: 0; height: 100%; border: none; outline: none;
    padding: 0 8px; font-size: 13px; font-family: inherit; background: transparent; color: var(--text);
}
.insure-fee-badge {
    margin-left: auto; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--border);
    border-radius: 999px; padding: 1px 10px; white-space: nowrap;
}
.insure-fee-badge.has-fee { color: var(--danger); border-color: #ffccc7; background: #fff2f0; }

/* 小屏/矮屏：压缩弹窗内边距，保证报价列表可见 */
@media (max-width: 600px) {
    .quote-insure { margin: 0 12px 6px; padding: 6px 10px; gap: 8px; }
    .insure-value-wrap { flex: 1 1 100px; max-width: none; }
    .insure-fee-badge { margin-left: 0; }
    .quote-head { padding: 12px 14px; font-size: 15px; }
    .quote-list { padding: 12px 14px; }
    .quote-foot { padding: 10px 14px; }
    .quote-dialog { max-height: 92vh; }
}
@media (max-height: 720px) {
    .quote-dialog { max-height: 94vh; }
    .quote-head { padding: 10px 16px; }
    .quote-list { padding: 12px 16px; }
    .quote-foot { padding: 10px 16px; }
}

/* 必填项红色星号 */
.form-group label .req { color: var(--danger); font-weight: 600; margin-left: 2px; }
.form-group label .label-hint { color: var(--danger); font-weight: 400; font-size: 12px; margin-left: 4px; }
.hidden { display: none !important; }

/* 顶部栏文字公告 */
.uc-notice {
    flex: 1; min-width: 0; margin: 0 24px; display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #b45309; background: #fffbe6; border: 1px solid #ffe58f;
    border-radius: 999px; padding: 4px 14px; overflow: hidden;
}
.uc-notice .notice-icon { flex-shrink: 0; }
.uc-notice .notice-scroll {
    flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
    position: relative; height: 22px; line-height: 22px;
}
.uc-notice .notice-track {
    display: inline-block; white-space: nowrap; padding-left: 100%;
    animation: notice-marquee 20s linear infinite;
}
.uc-notice:hover .notice-track { animation-play-state: paused; }
@keyframes notice-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
@media (max-width: 900px) {
    .uc-notice { display: none; }
}

/* ===== 公告弹窗 ===== */
.nk-notice[hidden], .nk-notice-mask[hidden] { display: none !important; }
.nk-notice-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 900; }
.nk-notice {
    position: fixed; z-index: 901; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: min(440px, 92vw); max-height: 80vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 16px; padding: 18px 20px 16px;
    box-shadow: 0 24px 60px rgba(15,23,42,.28); animation: nk-notice-pop .2s ease-out;
}
@keyframes nk-notice-pop {
    from { opacity: 0; transform: translate(-50%,-46%) scale(.96); }
    to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.nk-notice-head { display: flex; align-items: center; gap: 8px; }
.nk-notice-badge {
    flex-shrink: 0; font-size: 11px; font-weight: 600; color: #c85f00; background: #fff2e2;
    border-radius: 6px; padding: 2px 7px; letter-spacing: .5px;
}
.nk-notice-title {
    flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nk-notice-close {
    flex-shrink: 0; margin-left: auto; border: none; background: transparent; cursor: pointer;
    font-size: 20px; line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: 6px;
    font-family: inherit; transition: background .15s, color .15s;
}
.nk-notice-close:hover { background: #f2f5f9; color: var(--text); }
.nk-notice-body {
    margin-top: 12px; overflow-y: auto; font-size: 14px; line-height: 1.75;
    color: #334155; word-break: break-word;
}
.nk-notice-body img { max-width: 100%; height: auto; border-radius: 8px; }
.nk-notice-body a { color: var(--primary); }
.nk-notice-body p { margin: 0 0 8px; }
.nk-notice-body ul, .nk-notice-body ol { margin: 0 0 8px; padding-left: 22px; }
.nk-notice-body h1, .nk-notice-body h2, .nk-notice-body h3 { margin: 0 0 8px; font-size: 15px; }
.nk-notice-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.nk-notice-mute {
    margin-left: auto; border: none; background: transparent; color: var(--muted);
    font-size: 13px; cursor: pointer; padding: 6px 8px; font-family: inherit;
}
.nk-notice-mute:hover { color: var(--text); text-decoration: underline; }
.nk-notice-ok {
    border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
    color: #fff; background: var(--primary); border-radius: 8px; padding: 8px 18px;
    transition: background .15s;
}
.nk-notice-ok:hover { background: #0958d9; }
@media (max-width: 600px) {
    .nk-notice { width: 94vw; padding: 16px 16px 14px; border-radius: 14px; }
    .nk-notice-body { max-height: 46vh; }
}

/* ===== 官网页顶部公告条 ===== */
.site-notice-bar {
    background: #fffbe6; border-bottom: 1px solid #ffe58f;
    color: #b45309; font-size: 13px; padding: 7px 0;
}
.site-notice-bar .container { display: flex; align-items: center; gap: 8px; }
.site-notice-bar .container span:last-child { flex: 1; min-width: 0; line-height: 1.6; }

/* ===== 广告位 ===== */
.nk-ads { padding: 10px 0 22px; }
.nk-ad-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.nk-ad {
    display: block; overflow: hidden; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15,23,42,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.nk-ad:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,.12); }
.nk-ad img { display: block; width: 100%; height: 118px; object-fit: cover; }
.nk-ad-text { padding: 16px 18px; background: linear-gradient(135deg, #eaf3ff, #f7fbff); }
.nk-ad-text strong { display: block; font-size: 14px; color: #0f4c9c; }
.nk-ad-text span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.65; color: #5b6b82; }

/* ============================================================
   充值页（/home/recharge）
   ============================================================ */
.recharge-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 20px;
    align-items: start;
}
.recharge-left, .recharge-right { min-width: 0; }
.recharge-left > .panel, .recharge-right > .panel { margin-bottom: 20px; }

/* 标题前竖条 */
.panel-title .pt-bar {
    display: inline-block;
    width: 4px; height: 16px; border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), #69b1ff);
    margin-right: 9px; vertical-align: -2px;
}
.panel-title .pt-bar.green { background: linear-gradient(180deg, #52c41a, #95de64); }
.free-tag {
    margin-left: 8px; font-size: 12px; font-weight: 500;
    color: #389e0d; background: #f0fbe8;
    padding: 2px 8px; border-radius: 10px;
}

/* 余额钱包卡 */
.wallet-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius);
    padding: 18px 22px;
    color: #fff;
    background: linear-gradient(120deg, #0958d9 0%, #1677ff 55%, #3a9bff 100%);
    box-shadow: 0 6px 18px rgba(22, 119, 255, .24);
    margin-bottom: 16px;
}
.wallet-card::after {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.wallet-card::before {
    content: ''; position: absolute; right: 30px; bottom: -70px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.wallet-label { font-size: 12px; opacity: .85; }
.wallet-amount {
    font-size: 28px; font-weight: 700; line-height: 1.2;
    margin-top: 2px; letter-spacing: .5px;
}
.wallet-deposit {
    position: relative; z-index: 1;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    font-size: 12px; opacity: .95;
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.wallet-deposit strong { font-size: 13px; }
.wallet-deposit em { font-style: normal; opacity: .8; margin-left: 4px; }
.deposit-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #ffd666; display: inline-block;
}

/* 金额档位 */
.form-label {
    font-size: 14px; font-weight: 600; color: var(--text);
    margin: 4px 0 12px;
}
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.amount-item {
    padding: 14px 0;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 18px; font-weight: 600; color: var(--text);
    cursor: pointer; transition: all .18s;
    font-family: inherit;
}
.amount-item small { font-size: 13px; font-weight: 400; color: var(--muted); margin-right: 2px; }
.amount-item:hover { border-color: #91bfff; color: var(--primary); }
.amount-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .1);
}
.amount-item.active small { color: var(--primary); }

/* 自定义金额 */
.amount-custom { position: relative; margin-bottom: 22px; }
.amount-custom .custom-symbol {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 16px; font-weight: 600; color: var(--muted);
}
.amount-custom .form-control { padding-left: 34px; height: 46px; font-size: 15px; }

/* 支付方式 */
.pay-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.pay-method {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer; transition: all .18s;
    background: #fff;
}
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method:hover { border-color: #91bfff; }
.pay-method.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .08);
}
.pm-icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 17px; font-weight: 600; flex-shrink: 0;
}
.pm-wechat { background: linear-gradient(135deg, #07c160, #2bc76e); }
.pm-alipay { background: linear-gradient(135deg, #1677ff, #4da3ff); }
.pm-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pm-text strong { font-size: 14px; color: var(--text); }
.pm-text small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pm-check {
    margin-left: auto; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #d5dbe5; flex-shrink: 0; position: relative;
    transition: all .18s;
}
.pay-method.active .pm-check {
    border-color: var(--primary);
    background: var(--primary);
}
.pay-method.active .pm-check::after {
    content: ''; position: absolute; left: 4.5px; top: 1.5px;
    width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 手续费预览条 */
.fee-preview {
    background: #f6f9ff;
    border: 1px dashed #c9dcff;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px; color: var(--text-2);
    margin-bottom: 16px; line-height: 1.8;
}
.fee-preview:empty { display: none; }
.fee-preview strong { font-size: 14px; }

/* 提交按钮 */
.recharge-submit {
    width: 100%; height: 48px;
    font-size: 16px; font-weight: 600;
    background: linear-gradient(135deg, #1677ff, #3a9bff);
    border: none; border-radius: 10px;
    box-shadow: 0 6px 16px rgba(22, 119, 255, .28);
    transition: all .2s;
}
.recharge-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 119, 255, .36);
    background: linear-gradient(135deg, #0958d9, #1677ff);
}
.recharge-safe {
    text-align: center; font-size: 12px; color: var(--muted);
    margin-top: 12px;
}

/* 客服充值卡 */
.service-panel { border-top: 3px solid #b7eb8f; }
.service-tip { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.service-contact {
    margin-top: 14px; padding: 14px 16px;
    background: #f6ffed; border-radius: 8px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.sc-item { font-size: 13px; color: var(--text-2); }
.sc-item strong { color: #1f2d3d; font-size: 15px; margin-left: 4px; }
.sc-label { color: var(--muted); }

/* 手续费说明 */
.fee-note {
    margin-top: 14px; padding: 11px 14px;
    background: #fafbfc; border-radius: 8px;
    font-size: 12.5px; color: var(--muted); line-height: 1.8;
}
.fee-note strong { color: var(--text-2); }

/* 充值页响应式 */
@media (max-width: 1100px) {
    .recharge-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
    .pay-methods { grid-template-columns: 1fr; }
    .service-contact { grid-template-columns: 1fr; }
    .wallet-amount { font-size: 34px; }
}

/* ============================================================
   运单管理页（/home/waybill）
   ============================================================ */
.waybill-filter { padding: 18px 22px; }
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 0.5fr 0.5fr 0.5fr;
    gap: 14px;
    margin-bottom: 14px;
}
.fg-item label {
    display: block; font-size: 13px; color: var(--muted);
    margin-bottom: 6px;
}
.filter-actions {
    display: flex; justify-content: flex-end; align-items: center;
}
.filter-actions form { display: inline-flex; gap: 10px; }

/* 运单卡片列表 */
.waybill-list { display: flex; flex-direction: column; gap: 14px; }
.waybill-card {
    background: #fff; border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 1.0fr 1.3fr 0.8fr 0.9fr 0.7fr;
    gap: 22px;
    align-items: start;
    transition: box-shadow .2s;
}
.waybill-card:hover { box-shadow: 0 6px 20px rgba(22,119,255,.12); }

.wc-col { min-width: 0; }
.wc-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; line-height: 1.9; flex-wrap: wrap;
    margin: 2px 0;
}
.wc-label { color: var(--muted); flex-shrink: 0; min-width: 60px; }
.wc-value { color: var(--text); }
.waybill-no { font-size: 15px; color: var(--primary); letter-spacing: .3px; }
.copy-btn { cursor: pointer; font-size: 12px; opacity: .6; }
.copy-btn:hover { opacity: 1; }
.cancel-reason .wc-value { color: var(--danger); }

/* 揽收信息（取件码/快递员） */
.pickup-code {
    display: inline-block; padding: 1px 10px; border-radius: 4px;
    background: var(--primary-light); color: var(--primary);
    font-size: 13px; font-weight: 600; letter-spacing: .5px;
}
.pickup-courier { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.courier-phone { color: var(--primary); text-decoration: none; }
.courier-phone:hover { text-decoration: underline; }

/* 收发件人 */
.contact-block { font-size: 13px; }
.contact-line { display: flex; align-items: center; gap: 8px; }
.contact-tag {
    width: 18px; height: 18px; border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.contact-tag.send { background: #52c41a; }
.contact-tag.recv { background: #1677ff; }
.contact-addr {
    color: var(--text-2); font-size: 12.5px;
    margin: 4px 0 8px 26px; line-height: 1.6;
}
.contact-arrow {
    color: var(--muted); font-size: 12px;
    margin: 2px 0 2px 26px;
}

/* 物品独立列 */
.wc-goods-col {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
}
.wc-goods-col .wc-row { line-height: 1.9; }

/* 状态/价格 */
.badge-lg { font-size: 13px; padding: 3px 12px; }
.wc-price {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px dashed var(--border);
    display: flex; flex-direction: column; gap: 6px; font-size: 13px;
}
.wc-price strong { font-size: 16px; margin-left: 6px; }

/* 操作列 */
.wc-actions {
    display: flex; flex-direction: column; gap: 8px;
    align-items: stretch; justify-content: flex-start;
    text-align: center; padding-top: 2px;
}
.wc-actions .btn { width: 100%; }
.btn-danger-line {
    background: #fff; border-color: #ffccc7; color: var(--danger);
}
.btn-danger-line:hover { background: #fff2f0; border-color: var(--danger); color: var(--danger); }
.btn-default {
    background: #fff; border-color: var(--border); color: var(--text-2);
}
.btn-default:hover { border-color: var(--primary); color: var(--primary); }

/* 运单页响应式 */
@media (max-width: 1440px) {
    .waybill-card { grid-template-columns: 1fr 1fr 0.8fr; gap: 16px; }
    .wc-actions { flex-direction: row; justify-content: flex-end; flex-wrap: wrap; }
    .wc-actions .btn { width: auto; }
}
@media (max-width: 760px) {
    .filter-grid { grid-template-columns: 1fr; }
    .waybill-card { grid-template-columns: 1fr; }
    .filter-actions { flex-direction: column; gap: 10px; align-items: stretch; }
    .filter-actions form { justify-content: center; }
}

/* 通用表单弹窗（加价策略 / 会员等级新增） */
.form-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.form-modal.show { display: flex; }
.fm-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .52); backdrop-filter: blur(2px); }
.fm-dialog {
    position: relative; z-index: 1;
    width: min(640px, 94vw); max-height: 90vh; overflow-y: auto;
    background: #fff; border-radius: 14px; border: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
    animation: fm-pop .18s ease-out;
}
@keyframes fm-pop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fm-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 600;
    position: sticky; top: 0; background: #fbfcfe; z-index: 2;
    border-radius: 14px 14px 0 0;
}
.fm-close {
    width: 30px; height: 30px; border: none; background: none; border-radius: 8px;
    font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.fm-close:hover { color: var(--text); background: #eef3fa; }
.fm-body { padding: 20px 22px 4px; }
.fm-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 22px; border-top: 1px solid var(--border);
    position: sticky; bottom: 0; background: #fbfcfe;
    border-radius: 0 0 14px 14px;
}

/* 运单详情弹窗 */
.waybill-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.wm-mask {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .5);
}
.wm-dialog {
    position: relative; z-index: 1;
    width: min(960px, 94vw); height: 88vh;
    background: #fff; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex; flex-direction: column; overflow: hidden;
}
.wm-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    font-size: 16px; flex-shrink: 0;
}
.wm-close {
    border: none; background: none; font-size: 26px; line-height: 1;
    color: var(--muted); cursor: pointer; padding: 0 4px;
}
.wm-close:hover { color: var(--text); }
.wm-body { flex: 1; overflow-y: auto; padding: 20px 22px; background: var(--bg); }
.wm-body .panel { margin-bottom: 16px; }
.wm-loading { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14px; }

/* 工单售后弹窗 */
.wo-field { margin-bottom: 18px; }
.wo-label {
    display: block; font-size: 14px; color: var(--text);
    margin-bottom: 10px; font-weight: 500;
}
.wo-star { color: var(--danger); margin-right: 2px; }
.wo-type-grid {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.wo-type-item {
    padding: 9px 20px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 6px; font-size: 13px; color: var(--text-2);
    cursor: pointer; transition: all .15s; font-family: inherit;
}
.wo-type-item:hover { border-color: #91bfff; color: var(--primary); }
.wo-type-item.active {
    border-color: var(--primary); background: var(--primary-light);
    color: var(--primary); font-weight: 500;
}
.wo-upload {
    width: 220px; height: 220px;
    background: #f8fafc; border: 1px dashed #d5dbe5;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color .15s;
}
.wo-upload:hover { border-color: var(--primary); }
.wo-upload-inner { text-align: center; color: var(--muted); font-size: 13px; }
.wo-upload-plus {
    display: block; font-size: 36px; font-weight: 300;
    color: #b8c0cc; line-height: 1; margin-bottom: 8px;
}
.wo-upload-tip {
    margin-top: 10px; font-size: 12px; color: var(--muted);
    line-height: 1.8;
}
.wo-upload-list {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px;
}
.wo-img-item {
    position: relative; width: 100px; height: 100px;
    border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
}
.wo-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wo-img-del {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff;
    font-size: 14px; line-height: 20px; text-align: center;
    cursor: pointer;
}

/* ========== 批量寄件：标签页 / 渠道选择 / 信息卡片 ========== */
.batch-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.batch-tab {
    padding: 9px 26px; border-radius: 8px 8px 0 0; background: #fff;
    border: 1px solid var(--border); border-bottom: none;
    color: var(--muted); font-size: 15px; font-weight: 500;
}
.batch-tab.active {
    color: var(--primary); background: var(--primary-light);
    border-color: #b7d4ff; font-weight: 600;
}
.batch-tab:hover { color: var(--primary); }

/* 渠道选择（紧凑一行） */
.channel-inline {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ch-inline-label { font-weight: 600; font-size: 14px; margin: 0; white-space: nowrap; }

/* 解析结果卡片 */
.bp-card {
    border: 1px solid var(--border); border-radius: 12px;
    padding: 0; margin-bottom: 14px; overflow: hidden; background: #fff;
    box-shadow: 0 1px 4px rgba(31,45,61,.04);
}
.bp-card-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid var(--border);
}
.bp-no { font-weight: 600; font-size: 14px; color: var(--primary); }
.bp-del { color: var(--danger); }
.bp-parties { display: grid; grid-template-columns: 1fr 32px 1fr; gap: 8px; padding: 14px 16px; align-items: stretch; }
.bp-arrow {
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--muted);
}
.bp-party { border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.bp-sender { background: #f5f9ff; border-color: #d6e6ff; }
.bp-receiver { background: #f6ffed; border-color: #d0f0c0; }
.bp-party-head {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; font-size: 13px; font-weight: 600;
    border-bottom: 1px dashed var(--border);
}
.bp-sender .bp-party-head { color: var(--primary-dark); }
.bp-receiver .bp-party-head { color: #237804; }
.bp-party-badge {
    width: 22px; height: 22px; border-radius: 50%; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.bp-sender .bp-party-badge { background: var(--primary); }
.bp-receiver .bp-party-badge { background: var(--success); }
.bp-party-grid {
    display: grid; grid-template-columns: 1fr 1fr 90px 90px 100px; gap: 8px; padding: 10px 12px;
}
.bp-party-grid .bp-wide { grid-column: 1 / -1; }
.bp-field { display: flex; flex-direction: column; gap: 3px; margin: 0; min-width: 0; }
.bp-label { font-size: 12px; color: var(--muted); }
.bp-field .form-control { padding: 6px 9px; font-size: 13px; }
.bp-goods {
    display: grid; grid-template-columns: 1.4fr 120px 2fr; gap: 10px;
    padding: 12px 16px; border-top: 1px solid var(--border); background: #fafbfc;
}

@media (max-width: 900px) {
    .bp-parties { grid-template-columns: 1fr; }
    .bp-arrow { transform: rotate(90deg); }
    .bp-party-grid { grid-template-columns: 1fr 1fr; }
    .bp-goods { grid-template-columns: 1fr 1fr; }
    .bp-goods .bp-field:last-child { grid-column: 1 / -1; }
}

/* 批量寄件渠道卡片选择 */
.channel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.channel-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    cursor: pointer; transition: all .15s;
    font-size: 14px; color: #333; text-align: left;
}
.channel-card:hover { border-color: #93c5fd; background: #f0f7ff; }
.channel-card.active {
    border-color: #3b82f6; background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}
.channel-card .cc-logo {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #f3f4f6; color: #666; font-size: 13px; font-weight: 600;
}
.channel-card img.cc-logo { padding: 2px; background: #fff; }
.channel-card .cc-logo-all { background: #eff6ff; color: #3b82f6; }
.channel-card .cc-name { flex: 1; }

/* 批量寄件渠道卡片选择（修正版） */
.channel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    align-items: start;
}
.channel-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    height: 54px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    cursor: pointer; transition: all .15s;
    font-size: 14px; color: #333; text-align: left;
    width: 100%; box-sizing: border-box;
}
.channel-card:hover { border-color: #93c5fd; background: #f0f7ff; }
.channel-card.active {
    border-color: #3b82f6; background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}
.channel-card .cc-logo {
    width: 32px; height: 32px; border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #f3f4f6; color: #666; font-size: 13px; font-weight: 600;
    overflow: hidden;
}
.channel-card img.cc-logo { object-fit: cover; background: #fff; }
.channel-card .cc-logo-all { background: #eff6ff; color: #3b82f6; }
.channel-card .cc-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 渠道卡片最终紧凑版 */
.channel-cards {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.channel-card {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    height: 40px; width: auto;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
    cursor: pointer; transition: all .15s;
    font-size: 13px; color: #333; text-align: left;
    box-sizing: border-box;
}
.channel-card:hover { border-color: #93c5fd; background: #f0f7ff; }
.channel-card.active {
    border-color: #3b82f6; background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}
.channel-card .cc-logo {
    width: 24px; height: 24px; border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #f3f4f6; color: #666; font-size: 11px; font-weight: 600;
    overflow: hidden;
}
.channel-card img.cc-logo { object-fit: cover; background: #fff; }
.channel-card .cc-logo-all { background: #eff6ff; color: #3b82f6; }
.channel-card .cc-name { white-space: nowrap; }

/* 推荐渠道大卡片 */
.channel-card-recommend {
    flex-basis: 100%;
    height: auto; padding: 16px 20px;
    display: flex; align-items: center; gap: 16px;
    border-radius: 14px;
}
.channel-card-recommend .cc-rec-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #ff9f43, #ff6b35);
    color: #fff; font-size: 30px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.channel-card-recommend .cc-rec-text {
    flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.channel-card-recommend .cc-rec-text strong {
    font-size: 18px; color: #1f2937; font-weight: 700;
}
.channel-card-recommend .cc-rec-text small {
    font-size: 13px; color: #f59e0b;
}
.channel-card-recommend .cc-rec-tag {
    background: #ef4444; color: #fff;
    font-size: 12px; padding: 4px 12px; border-radius: 6px;
    flex-shrink: 0;
}

/* 推荐渠道卡片（同行紧凑版） */
.channel-card-recommend {
    height: auto; padding: 8px 14px;
    display: flex; align-items: center; gap: 10px;
    border-radius: 10px;
}
.channel-card-recommend .cc-rec-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #ff9f43, #ff6b35);
    color: #fff; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.channel-card-recommend .cc-rec-text {
    display: flex; flex-direction: column; gap: 0; text-align: left;
}
.channel-card-recommend .cc-rec-text strong {
    font-size: 14px; color: #1f2937; font-weight: 700; line-height: 1.3;
}
.channel-card-recommend .cc-rec-text small {
    font-size: 11px; color: #f59e0b; line-height: 1.3;
}
.channel-card-recommend .cc-rec-tag {
    background: #ef4444; color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 4px;
    flex-shrink: 0;
}

/* 强制推荐卡不占整行 */
.channel-card-recommend {
    flex-basis: auto !important;
    width: auto !important;
}

/* 恢复推荐卡单独一行 */
.channel-card-recommend {
    flex-basis: 100% !important;
    width: 100% !important;
}

/* ===== 报价弹层内错误提示 ===== */
.quote-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px 4px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}
.quote-msg-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

/* ===== 下单成功面板 ===== */
.quote-success {
    text-align: center;
    padding: 46px 20px 34px;
}
.quote-success .qs-icon {
    width: 62px;
    height: 62px;
    line-height: 62px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    font-size: 30px;
    font-weight: 700;
}
.quote-success .qs-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
}
.quote-success .qs-desc {
    margin-top: 8px;
    color: #888;
    font-size: 13px;
    line-height: 1.8;
}
.quote-success .qs-actions {
    margin-top: 18px;
}

/* ===== 补差支付按钮 ===== */
.btn-warning {
    background: #d46b08;
    color: #fff;
    border: 1px solid #d46b08;
}
.btn-warning:hover {
    background: #bf6007;
    border-color: #bf6007;
}

/* ===== 工单对话流 ===== */
.talk-item { border:1px solid #eef1f6; border-radius:8px; padding:10px 14px; background:#fafbfd; }
.talk-item.talk-1 { background:#f6ffed; border-color:#d9f7be; }
.talk-item.talk-2 { background:#fff7e6; border-color:#ffe7ba; }
.talk-head { margin-bottom:6px; }
.talk-content { line-height:1.8; white-space:pre-wrap; color:#333; }
.talk-images { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.talk-images img { width:64px; height:64px; object-fit:cover; border-radius:6px; border:1px solid #eee; }
.wo-error { background:#fff1f0; border:1px solid #ffa39e; color:#cf1322; border-radius:8px; padding:10px 14px; margin-bottom:16px; line-height:1.6; }
#addPanel .form-control { width:100%; }
#addImages img { width:60px; height:60px; object-fit:cover; border-radius:6px; border:1px solid #eee; }

/* ============================================================
   用户端手机端适配（≤760px：左侧栏折叠为顶部横向菜单；≤480px 更紧凑）
   ============================================================ */
@media (max-width: 760px) {
    /* 手机端：顶部一行放 Logo + 操作按钮；菜单(横向)排到【下方第二行】；内容落第三行 */
    /* align-content:flex-start —— 否则 min-height:100vh 的剩余高度会被均摊到各行，
       短页面顶部/菜单之间被拉出大片空白（如会员等级） */
    .uc-layout { display: flex; flex-wrap: wrap; align-items: stretch; align-content: flex-start; }
    .uc-main { display: contents; }
    .uc-sidebar { display: contents; }   /* 把 Logo 与菜单提升为 .uc-layout 直接子项，便于重新排序 */

    /* —— 顶部第 1 行：Logo（左） + 操作按钮（右） —— */
    .uc-logo {
        order: 1; flex: 0 0 auto; align-self: stretch;
        display: flex; align-items: center; gap: 7px;
        height: 48px; padding: 0 12px;
        font-size: 14px; font-weight: 700;
        border-right: 1px solid var(--sidebar-border);
        color: var(--sidebar-logo-color); background: var(--sidebar-bg);
    }
    .uc-logo .brand-mark { width: 22px; height: 22px; }
    .uc-logo .brand-text { white-space: nowrap; }

    .uc-topbar {
        order: 2; flex: 1 1 auto; min-width: 0;
        height: 48px; padding: 0 10px; gap: 8px;
        display: flex; align-items: center; justify-content: flex-end;
        position: static; z-index: 5;
        border-bottom: 1px solid var(--sidebar-border);
        background: var(--sidebar-bg);
    }
    /* 手机端顶栏不显示折叠/展开按钮与默认「用户中心」标题。
       用 !important 压住主题层后加载的 .uc-topbar-left{display:flex}；
       只隐藏这两个元素，公告栏容器保留。 */
    .uc-topbar .uc-sidebar-toggle,
    .uc-topbar .uc-topbar-left > div > strong { display: none !important; }
    .uc-user { gap: 8px; position: relative; flex: none; }
    /* 手机端顶栏保留余额显示，用紧凑排版避免挤占操作按钮 */
    .uc-user-balance {
        display: inline-flex !important; align-items: center;
        margin-right: 0; font-size: 11px; line-height: 1.2; white-space: nowrap;
    }
    .uc-user-balance strong { font-size: 13px; }
    .uc-user-name { display: none; }
    .uc-avatar { width: 30px; height: 30px; font-size: 13px; }

    /* —— 菜单：下方第 2 行，整行宽、横向滑动 —— */
    .uc-menu {
        order: 3; flex: 1 1 100%; width: 100%;
        position: relative;
        display: flex; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch;
        height: 50px;
        padding: 0 8px; gap: 4px; scrollbar-width: none;
        scroll-behavior: smooth;
        border-bottom: 1px solid var(--sidebar-border);
        background: var(--sidebar-bg);
    }
    /* 半透明滑动指示条：从上一个选中项滑动到当前选中项 */
    .uc-menu .uc-ind {
        position: absolute; top: 9px; bottom: 9px; left: 8px; width: 0;
        background: rgba(22,119,255,.28); border-radius: 8px;
        transition: left .45s cubic-bezier(.25,.1,.25,1), width .45s cubic-bezier(.25,.1,.25,1), opacity .45s ease;
        z-index: 0; pointer-events: none;
    }
    .uc-menu a { position: relative; z-index: 1; }
    .uc-menu::-webkit-scrollbar { display: none; }
    .uc-menu .menu-group-title { display: none; }
    /* 移动端分组容器不参与布局，组内菜单项直接作为横向菜单项排列（忽略折叠状态） */
    .uc-menu .menu-group,
    .uc-menu .menu-group-body { display: contents !important; }
    .uc-menu a {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 7px 12px; font-size: 13px; white-space: nowrap;
        border-radius: 7px; flex-shrink: 0; line-height: 1.3;
        color: var(--sidebar-text);
    }
    .uc-menu a .mi { width: 16px; height: 16px; flex: none; }
    .uc-menu a .mi svg { width: 16px; height: 16px; }
    .uc-menu a:hover { color: var(--sidebar-text-active); background: var(--sidebar-hover-bg); }
    /* 选中项：重置桌面端竖条阴影，改用浅底高亮（横向菜单更协调） */
    .uc-menu a.active {
        background: var(--accent-soft) !important;
        box-shadow: none !important;
        border: 0 !important;
        color: var(--accent) !important;
        font-weight: 600;
    }

    /* —— 内容：第 3 行，铺满全宽 —— */
    .uc-content { order: 4; flex: 1 1 100%; padding: 14px 12px; }

    /* ===== 手机端整页不超宽 =====
       flex item 的 min-width:auto 会被 nowrap 宽表格撑开，导致整页横向滚动；
       这里把内容区锁到视口宽，宽表格在各自的 .table-wrap 内横向滑动。 */
    html, body { max-width: 100%; overflow-x: hidden; }
    .uc-layout { min-width: 0; width: 100%; max-width: 100%; }
    .uc-topbar { min-width: 0; max-width: 100%; }
    .uc-content {
        min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box;
        overflow-x: hidden; overflow-x: clip;
    }
    .uc-content > *, .panel, .mp-card, .mp-page, .mp-page-head, .stat-grid,
    .filter-bar, .table-wrap, .batch-tabs, .mp-tabs, .mpd, .mps, .alert {
        max-width: 100%; box-sizing: border-box;
    }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    pre, .code-block, .api-token-row { max-width: 100%; overflow-x: auto; }
    .panel { padding: 14px; }
    .panel-title { font-size: 15px; margin-bottom: 12px; }

    /* 表格：横向滚动体验优化（数据完整可看） */
    .table-wrap { -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
    .data-table th, .data-table td { padding: 9px 10px; font-size: 12.5px; }

    /* 过滤栏：控件整宽堆叠 */
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .form-control, .filter-bar input[type=text], .filter-bar input[type=date], .filter-bar select {
        width: 100%; min-width: 0; box-sizing: border-box;
    }
    .filter-bar .btn { width: 100%; text-align: center; }

    /* 表单双列 → 单列 */
    .form-row-2, .form-row-3, .form-row-4 { grid-template-columns: 1fr; gap: 10px; }

    /* 统计卡 */
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-box { padding: 14px; }
    .stat-box .s-value { font-size: 22px; }
    .stat-box .s-foot { font-size: 11px; }

    /* 分页：居中、紧凑 */
    .pager ul { justify-content: center; }
    .pager a, .pager span { padding: 6px 10px; font-size: 12px; }

    /* 代码块 */
    .code-block { font-size: 12px; padding: 12px; }

    /* 运单详情：轨迹块收紧 */
    .route-box { padding: 12px 14px; }
    .dl-grid { gap: 10px 14px; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .stat-box .s-value { font-size: 24px; }
    .uc-content { padding: 12px 10px; }
    .panel { padding: 12px; }
    .quote-dialog { width: 96vw; }
    /* 超窄屏：Logo 只留图标，菜单更紧凑 */
    .uc-logo { padding: 0 10px; }
    .uc-logo .brand-text { display: none; }
    .uc-menu { padding: 5px 8px; gap: 3px; }
    .uc-menu a { padding: 6px 10px; }
}

/* ===== 小程序配置页（/home/miniapp 五个 tab） ===== */
.mp-page { width: 100%; }
.mp-tabs {
    display: flex; gap: 6px; padding: 6px; margin-bottom: 18px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15,23,42,.05); overflow-x: auto;
}
.mp-tab {
    flex: 1; min-width: 104px; padding: 10px 16px; border-radius: 8px;
    text-align: center; color: var(--text-2); font-size: 14px; font-weight: 500;
    white-space: nowrap; transition: color .18s, background .18s, box-shadow .18s;
}
.mp-tab:hover { color: var(--primary); background: #f2f7ff; }
.mp-tab.active {
    color: #fff; font-weight: 600;
    background: linear-gradient(135deg, #1677ff, #4096ff);
    box-shadow: 0 3px 10px rgba(22,119,255,.26);
}

.mp-page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.mp-page-head h2 { margin: 0; font-size: 19px; font-weight: 600; color: var(--text); line-height: 1.4; }
.mp-page-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 640px; }
.mp-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-filter .form-control { width: 150px; height: 38px; }

.mp-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15,23,42,.045); margin-bottom: 18px; overflow: hidden;
}
.mp-card-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fbfcfe, #f7f9fc);
}
.mp-card-title {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    margin: 0; font-size: 15px; font-weight: 600; color: var(--text);
}
.mp-card-desc { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.mp-card-body { padding: 20px; }
.mp-card-body .form-group:last-child { margin-bottom: 0; }
.mp-card-foot {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 13px 20px; border-top: 1px solid var(--border); background: #fbfcfe;
}
.mp-stack { display: flex; flex-direction: column; gap: 16px; }
.mp-stack > .mp-card { margin-bottom: 0; }

.mp-savebar {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 4px; padding: 12px 18px;
    background: rgba(255,255,255,.95); backdrop-filter: blur(6px);
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 -4px 18px rgba(15,23,42,.08);
}
.mp-savebar span { font-size: 12.5px; color: var(--muted); }

.mp-status {
    display: inline-flex; align-items: center; padding: 2px 9px;
    border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.7;
}
.mp-status.on { color: #0f7b3f; background: #e9f9ef; border: 1px solid #c9efd6; }
.mp-status.off { color: #7b8494; background: #f1f4f8; border: 1px solid #e3e9f2; }

.mp-switch {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border: 1px solid #e3e9f2; border-radius: 8px;
    background: #fbfcfe; font-size: 13.5px; color: var(--text-2);
    font-weight: 500; cursor: pointer; user-select: none;
}
.mp-switch input { accent-color: var(--primary); }

.form-color { padding: 4px; height: 40px; cursor: pointer; }

/* Banner 卡片网格 */
.mp-ad-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px; margin-bottom: 6px;
}
.mp-ad-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.mp-ad-thumb {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9; background: #f2f5f9; color: var(--muted); font-size: 12px;
}
.mp-ad-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mp-ad-badge {
    position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
    background: rgba(15,23,42,.66); color: #fff; font-size: 11.5px; font-weight: 600;
}
.mp-ad-body { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; flex: 1; }
.mp-ad-title {
    font-size: 14px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mp-ad-meta, .mp-ad-link { font-size: 12px; color: var(--muted); }
.mp-ad-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-ad-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border);
}
.mp-empty {
    grid-column: 1 / -1; padding: 48px 20px; text-align: center;
    color: var(--muted); font-size: 13px; background: #fff;
    border: 1px dashed var(--border); border-radius: 12px;
}

/* 导出平台卡片 */
.mp-export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.mp-export-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15,23,42,.045);
}
.mp-export-card.disabled { background: #fafbfd; border-style: dashed; }
.mp-export-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid var(--border); background: #fbfcfe;
}
.mp-platform-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.mp-export-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.mp-export-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.mp-export-row strong { font-weight: 600; color: var(--text-2); word-break: break-all; text-align: right; }
.mp-export-row code { font-family: monospace; background: #f3f6fa; padding: 2px 6px; border-radius: 5px; }
.mp-export-outdated { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #b45309; background: #fef3c7; border: 1px solid #fcd34d; }
.mp-export-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 12px 16px; border-top: 1px solid var(--border); background: #fbfcfe;
}
.mp-export-foot .btn { padding: 8px 16px; font-size: 13px; }
.btn-disabled { opacity: .55; cursor: not-allowed; background: #f3f5f9; color: var(--muted); border-color: #e3e9f2; }
.btn-disabled:hover { border-color: #e3e9f2; color: var(--muted); background: #f3f5f9; box-shadow: none; }

.mp-code-url { font-family: monospace; font-size: 12.5px; color: var(--text-2); background: #f6f8fb; }
.mp-secret-note { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; word-break: break-all; }
.mp-secret { font-family: monospace; font-size: 12.5px; }
.mp-clear {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
    padding: 4px 10px; border: 1px solid #ffe3e3; border-radius: 6px;
    background: #fff7f7; color: #b42318; font-size: 12px; cursor: pointer;
}
.mp-notes { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; line-height: 2; }
.mp-notes code { font-family: monospace; background: #f3f6fa; padding: 1px 6px; border-radius: 4px; }

@media (max-width: 900px) {
    .mp-export-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .mp-tabs { gap: 4px; padding: 5px; border-radius: 10px; }
    .mp-tab { flex: none; min-width: auto; padding: 9px 14px; font-size: 13px; }
    .mp-card-head, .mp-card-body, .mp-card-foot { padding-left: 14px; padding-right: 14px; }
    .mp-savebar { flex-direction: column; align-items: stretch; }
    .mp-savebar .btn { width: 100%; }
    .mp-ad-grid { grid-template-columns: 1fr; }
    .mp-filter { width: 100%; }
    .mp-filter .form-control { flex: 1; width: auto; }
}

/* Banner 页：新增/编辑弹窗与缩略图占位 */
.mp-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-ad-thumb-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: #f2f5f9; color: var(--muted); font-size: 12px;
}
.mp-ad-thumb img { position: relative; z-index: 1; }
.mp-ad-badge { z-index: 2; }
.mp-ad-actions { display: flex; align-items: center; gap: 12px; }

@media (max-width: 760px) {
    .mp-head-actions { width: 100%; }
    .mp-head-actions .mp-filter { flex: 1; }
    .mp-head-actions > .btn { width: 100%; }
}

/* ===== 会员管理页 /home/tenant-member（沿用 .mp-card / .badge / .pager 设计语言） ===== */
.tm-overview-card { margin-bottom: 16px; }
.tm-overview {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 20px;
}
.tm-stat {
    position: relative; min-height: 98px; padding: 15px 18px 14px;
    display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(180deg, #fbfcfe, #f6f9fd);
    border: 1px solid var(--border); border-radius: 12px;
}
.tm-stat::before {
    content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--primary);
}
.tm-stat.cyan::before { background: #13a8a8; }
.tm-stat.green::before { background: #52c41a; }
.tm-stat.purple::before { background: #8b5cf6; }
.tm-stat-label { font-size: 12.5px; color: var(--muted); letter-spacing: .2px; }
.tm-stat-value {
    margin-top: 6px; font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--text);
    font-variant-numeric: tabular-nums;
}
.tm-stat-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }

.tm-filter {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.tm-search { flex: 1 1 260px; min-width: 200px; }
.tm-search .form-control { height: 40px; }
.tm-select { width: 150px; height: 40px; flex: 0 0 auto; }
.tm-reset { height: 40px; padding: 0 16px; flex: 0 0 auto; }
.tm-query { height: 40px; min-width: 84px; margin-left: auto; flex: 0 0 auto; }

.tm-table-wrap { overflow-x: auto; }
.tm-table { min-width: 920px; }
.tm-table th, .tm-table td { padding: 12px 14px; }
.tm-table th:first-child, .tm-table td:first-child { min-width: 210px; }
.tm-table thead th { background: #f7f9fc; color: #5b6676; font-weight: 600; font-size: 13px; }
.tm-table tbody td { height: 64px; }
.tm-col-money { text-align: right; }
/* 可排序表头 */
.tm-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; cursor: pointer; user-select: none; }
.tm-sort:hover { color: #2563eb; }
.tm-sort.active { color: #2563eb; }
.tm-sort-ic { font-style: normal; font-size: 11px; line-height: 1; opacity: .85; }
/* 可点击的 ID / 团队人数链接 */
.tm-link-id { color: #2563eb; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-link-id:hover { text-decoration: underline; }
.tm-money {
    display: inline-block; font-size: 13.5px; font-weight: 600; letter-spacing: -.2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums;
}
.tm-money.balance { color: #1d6fe0; }
.tm-money.commission { color: #0f7b3f; }

.tm-member { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-avatar {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
    object-fit: cover; background: #eef2f7;
}
.tm-avatar-text {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e6f0ff, #f2f7ff); color: var(--primary);
    font-size: 14px; font-weight: 600;
}
.tm-member-main { min-width: 0; }
.tm-name {
    font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tm-id { margin-left: 5px; font-size: 11.5px; font-weight: 400; color: #aab3c2; }
.tm-sub { margin-top: 1px; font-size: 12px; line-height: 1.5; color: var(--muted); white-space: nowrap; }
.tm-mobile { font-variant-numeric: tabular-nums; }
.tm-invite {
    margin-left: 6px; padding: 1px 6px; border-radius: 4px;
    background: #f3f6fa; color: #8a94a6; font-size: 11px;
}
.tm-level { padding: 2px 10px; font-weight: 600; line-height: 1.8; }
.tm-time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-actions { display: flex; align-items: center; gap: 0; white-space: nowrap; }
.tm-act {
    display: inline-flex; align-items: center; padding: 4px 6px;
    border: 1px solid transparent; border-radius: 6px; background: none;
    color: var(--primary); font-size: 13px; line-height: 1.5; cursor: pointer;
    text-decoration: none; transition: background .15s, color .15s;
}
.tm-act:hover { background: #f2f7ff; color: var(--primary-dark); }
.tm-act.danger { color: var(--danger); }
.tm-act.danger:hover { background: #fff2f0; }
.tm-act.success { color: #389e0d; }
.tm-act.success:hover { background: #f6ffed; }

.tm-empty { padding: 62px 20px 58px; text-align: center; }
.tm-empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%;
    background: #f3f7fd; color: #b6c2d4;
}
.tm-empty-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.tm-empty-sub { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }

.tm-table-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 20px; border-top: 1px solid var(--border); background: #fbfcfe;
}
.tm-total { font-size: 12.5px; color: var(--muted); }
.tm-total strong { font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tm-pager { margin-top: 0; }

@media (max-width: 900px) {
    .tm-overview { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .tm-overview { gap: 10px; padding: 12px 14px; }
    .tm-stat { min-height: 88px; padding: 12px 14px; }
    .tm-stat-value { font-size: 22px; }
    .tm-filter { gap: 8px; padding: 12px 14px; }
    .tm-search { flex: 1 1 100%; }
    .tm-select { flex: 1 1 140px; width: auto; }
    .tm-reset, .tm-query { flex: 1 1 auto; margin-left: 0; }
    .tm-table-foot { flex-direction: column; align-items: flex-start; }
    .tm-pager { width: 100%; }
    .tm-pager ul { justify-content: flex-start; }
}

/* ===== 会员管理：禁用/启用气泡确认 ===== */
.confirm-pop {
    position: fixed; z-index: 1100; width: 200px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
    animation: cp-pop .14s ease-out;
}
@keyframes cp-pop {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.confirm-pop-text { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.5; }
.confirm-pop-sub {
    margin: 3px 0 0; font-size: 12px; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.confirm-pop-error { margin: 6px 0 0; font-size: 12px; color: var(--danger); line-height: 1.5; }
.confirm-pop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.cp-btn {
    height: 30px; padding: 0 12px; border-radius: 7px; cursor: pointer;
    border: 1px solid #d9e0ea; background: #fff; color: var(--text-2); font-size: 12.5px;
}
.cp-btn:hover { border-color: var(--primary); color: var(--primary); }
.cp-btn.ok { background: var(--danger); border-color: var(--danger); color: #fff; }
.cp-btn.ok:hover { background: #d9363e; color: #fff; }
.cp-btn.ok.green { background: #389e0d; border-color: #389e0d; }
.cp-btn.ok.green:hover { background: #2f7d0b; border-color: #2f7d0b; }

/* ===== 会员管理：调整余额模态框 ===== */
.tm-balance-dialog { width: min(430px, 94vw); }
.tm-bm-target { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.tm-bm-target strong { color: var(--text); font-weight: 600; }
.tm-bm-current { float: right; font-variant-numeric: tabular-nums; }
.tm-bm-quick { display: flex; gap: 8px; margin-top: 8px; }
.tm-chip {
    height: 28px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px;
    background: #fbfcfe; color: var(--text-2); font-size: 12.5px; cursor: pointer;
}
.tm-chip:hover { border-color: var(--primary); color: var(--primary); background: #f5f9ff; }
.tm-bm-preview {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-radius: 8px; background: #f6f9fd;
    font-size: 13px; color: var(--text-2);
}
.tm-bm-preview strong {
    font-size: 16px; color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums;
}
.tm-bm-error { margin: 10px 0 0; min-height: 18px; font-size: 12.5px; color: var(--danger); line-height: 1.5; }
.tm-required { color: var(--danger); }

/* ===== 会员详情页 ===== */
.tm-detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tm-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.tm-back:hover { color: var(--primary); }
.tm-identity-card .tm-identity {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 22px 24px; flex-wrap: wrap;
}
.tm-id-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tm-id-avatar { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; object-fit: cover; background: #eef2f7; }
.tm-id-avatar-text {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e6f0ff, #f2f7ff); color: var(--primary);
    font-size: 22px; font-weight: 600;
}
.tm-id-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 19px; font-weight: 700; color: var(--text); }
.tm-id-no { font-size: 13px; font-weight: 400; color: #aab3c2; }
.tm-id-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.tm-id-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tm-btn-danger-outline { color: var(--danger); border-color: #ffccc7; background: #fff; }
.tm-btn-danger-outline:hover { background: #fff2f0; border-color: var(--danger); color: var(--danger); }
.tm-btn-success-outline { color: #389e0d; border-color: #b7eb8f; background: #fff; }
.tm-btn-success-outline:hover { background: #f6ffed; border-color: #389e0d; color: #389e0d; }
/* R54 会员详情操作按钮按功能配色 + 佣金流水订单链接 */
.tm-btn-balance-outline { color: #0958d9; border-color: #91caff; background: #fff; }
.tm-btn-balance-outline:hover { background: #e6f4ff; border-color: #0958d9; color: #0958d9; }
.tm-btn-level-outline { color: #722ed1; border-color: #d3adf7; background: #fff; }
.tm-btn-level-outline:hover { background: #f9f0ff; border-color: #722ed1; color: #722ed1; }
.tm-btn-coupon-outline { color: #d46b08; border-color: #ffd591; background: #fff; }
.tm-btn-coupon-outline:hover { background: #fff7e6; border-color: #d46b08; color: #d46b08; }
.tm-comm-order-link { color: #2563eb; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; border-bottom: 1px dashed rgba(37,99,235,.45); }
.tm-comm-order-link:hover { color: #0958d9; border-bottom-color: #0958d9; text-decoration: none; }

.tm-detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 20px; }
.tm-dstat { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, #fbfcfe, #f6f9fd); }
.tm-dstat-link { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
.tm-dstat-link:hover { border-color: #2563eb; box-shadow: 0 4px 14px rgba(37,99,235,.14); transform: translateY(-1px); }
.tm-dstat-link .tm-dstat-value { color: #2563eb; }
.tm-dstat-unit { font-size: 13px; font-weight: 600; color: var(--muted); }
.tm-dstat-label { font-size: 12.5px; color: var(--muted); }
.tm-dstat-value {
    margin-top: 5px; font-size: 23px; font-weight: 700; color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums;
}
.tm-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.tm-info-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.tm-info-label { flex: 0 0 auto; color: var(--muted); }
.tm-info-value { color: var(--text); text-align: right; word-break: break-all; }

.tm-log-table { min-width: 700px; }
.tm-log-table th, .tm-log-table td { padding: 11px 18px; }
.tm-log-table tbody td { height: 54px; }
.tm-log-remark {
    display: block; max-width: 320px; color: var(--muted); font-size: 12.5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tm-log-balance {
    color: var(--muted); font-size: 12.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums;
}
.tm-money.in { color: #0f7b3f; }
.tm-money.out { color: #cf1322; }
.tm-empty-sm { padding: 38px 20px 34px; }
.tm-empty-sm .tm-empty-icon { width: 44px; height: 44px; margin-bottom: 8px; }
.tm-empty-sm .tm-empty-title { font-size: 14px; }

@media (max-width: 900px) {
    .tm-detail-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .tm-identity-card .tm-identity { padding: 16px; }
    .tm-id-title { font-size: 17px; }
    .tm-id-actions { width: 100%; }
    .tm-id-actions .btn { flex: 1; }
    .tm-info-grid { grid-template-columns: 1fr; }
    .tm-detail-stats { gap: 10px; padding: 14px; }
    .tm-dstat-value { font-size: 20px; }
}


/* 会员详情：调整等级模态框 */
.tm-level-dialog { width: min(440px, 94vw); }
.tm-level-compare {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; margin-bottom: 14px;
    border: 1px solid var(--border); border-radius: 10px; background: #fbfcfe;
}
.tm-level-compare > div { display: flex; flex-direction: column; gap: 5px; }
.tm-lc-label { font-size: 11.5px; color: var(--muted); }
.tm-lc-arrow { color: #b6c2d4; font-size: 16px; margin-top: 14px; }
.tm-level-tip { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* 等级徽标：纯 CSS 形状，低阶→高阶 shield / ring / diamond / crown / gem */
.lv-emblem {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 20px; height: 20px;
    margin-right: 6px;
    background: linear-gradient(160deg, #93c5fd, #1d4ed8);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
    clip-path: polygon(50% 0, 100% 14%, 100% 56%, 50% 100%, 0 56%, 0 14%);
}
.lv-emblem::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 52%);
}
.lv-emblem-sm { width: 20px; height: 20px; }
.lv-emblem-lg { width: 26px; height: 26px; margin-right: 7px; }

/* 圆环星：圆底 + 白色内环 + 中央五角星 */
.lv-emblem.lv-ring {
    clip-path: none;
    border-radius: 50%;
    background: linear-gradient(160deg, #e2e8f0, #94a3b8 48%, #475569);
}
.lv-emblem.lv-ring::after {
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 33%, rgba(255, 255, 255, 0) 34% 100%);
    z-index: 0;
}
.lv-emblem.lv-ring::before {
    content: "";
    position: absolute; inset: 30%;
    background: linear-gradient(160deg, #f8fafc, #64748b);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 1;
}
/* 菱形 */
.lv-emblem.lv-diamond {
    background: linear-gradient(160deg, #67e8f9, #0e7490);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
/* 皇冠 */
.lv-emblem.lv-crown {
    background: linear-gradient(160deg, #fde68a, #b45309);
    clip-path: polygon(0 100%, 4% 22%, 30% 55%, 50% 0, 70% 55%, 96% 22%, 100% 100%);
}
/* 钻石 */
.lv-emblem.lv-gem {
    background: linear-gradient(160deg, #d8b4fe, #6d28d9);
    clip-path: polygon(50% 0, 100% 30%, 76% 100%, 24% 100%, 0 30%);
}
/* 徽标与文字垂直居中 */
.badge.tm-level { display: inline-flex; align-items: center; gap: 6px; }
.badge.tm-level .lv-emblem { margin-right: 0; }
.lv-level-name { display: inline-flex; align-items: center; gap: 7px; }

/* 会员等级：折扣值 Tooltip */
.lv-tip-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 6px; vertical-align: middle; }
.lv-tip-btn {
    width: 16px; height: 16px; padding: 0; text-align: center;
    border: 1px solid #c7d2fe; border-radius: 50%;
    background: #eef2ff; color: #4f46e5;
    font-size: 11px; font-weight: 700; line-height: 14px; cursor: pointer;
}
.lv-tip-btn:hover { background: #e0e7ff; border-color: #a5b4fc; }
.lv-tip-body {
    display: none; position: absolute; z-index: 40;
    bottom: calc(100% + 9px); right: -6px;
    width: max-content; max-width: 260px; padding: 8px 11px;
    border-radius: 8px; background: #1f2937; color: #fff;
    font-size: 12px; font-weight: 400; line-height: 1.5; white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .28);
}
.lv-tip-body::after {
    content: ""; position: absolute; top: 100%; right: 8px;
    border: 5px solid transparent; border-top-color: #1f2937;
}
.lv-tip-text { display: block; }
.lv-tip-extra { display: block; margin-top: 3px; color: #c7d2fe; font-size: 11px; }
.lv-tip-wrap:hover .lv-tip-body,
.lv-tip-wrap.show .lv-tip-body { display: block; }

/* 会员等级：有会员时删除/停用的拦截提示 */
.block-tip { position: relative; display: inline-block; }
.block-tip-body {
    display: none; position: absolute; z-index: 40;
    right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
    width: max-content; max-width: 240px; padding: 7px 10px;
    border-radius: 8px; background: #7f1d1d; color: #fff;
    font-size: 12px; font-weight: 400; line-height: 1.5; white-space: normal;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .25);
}
.block-tip-body::after {
    content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-left-color: #7f1d1d;
}
.block-tip:hover .block-tip-body,
.block-tip.show .block-tip-body { display: block; }
.link-btn.is-blocked { color: #9ca3af; }
.link-btn.is-blocked:hover { color: #6b7280; }

/* ===== 小程序订单管理（/home/tenant-order） ===== */
.od-head-sub { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--muted); }
.od-reset { padding: 8px 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.od-reset:hover { color: var(--primary); }

.od-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.od-stat { padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 4px rgba(15, 23, 42, .05); }
.od-stat-label { display: block; font-size: 12.5px; color: var(--muted); }
.od-stat-num {
    display: block; margin-top: 4px; font-size: 26px; font-weight: 700;
    line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums;
}
.od-stat-num.blue { color: #1677ff; }
.od-stat-num.green { color: #389e0d; }
.od-stat-num.amber { color: #d46b08; }
.od-stat-num.profit { color: #389e0d; }
.od-stat-num.danger { color: #dc2626; }

.od-list { display: flex; flex-direction: column; gap: 12px; }
.od-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .045); overflow: hidden;
}
.od-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fbfcfe, #f7f9fc);
}
.od-head-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.od-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px; color: var(--text-2); letter-spacing: .2px; word-break: break-all;
}
.od-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.od-status { font-weight: 600; }
.od-head-right { flex: none; }
.od-amount {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px; font-weight: 700; color: #1677ff;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.od-card-body { display: flex; flex-direction: column; gap: 9px; padding: 13px 16px; }
.od-route { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--text); }
.od-route-item { display: inline-flex; align-items: center; gap: 6px; }
.od-route-tag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 600;
}
.od-route-item:first-child .od-route-tag { background: #e6f7ff; color: #096dd9; }
.od-route-item:last-child .od-route-tag { background: #f0fbe8; color: #389e0d; }
.od-route-name { font-weight: 600; }
.od-route-place { font-size: 12.5px; color: var(--text-2); }
.od-route-arrow { color: var(--muted); }
.od-meta { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.od-meta-item em { font-style: normal; color: #b0b8c4; }
.od-meta-item strong { font-weight: 600; color: var(--text-2); }
.od-appoint { color: #7c3aed; }
.od-refund { color: #dc2626; }
.od-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; border-top: 1px dashed var(--border);
}
.od-foot-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.od-action { flex: none; font-size: 13px; font-weight: 500; color: var(--primary); }
.od-action:hover { color: var(--primary-dark); }

/* 来源平台标识：微信绿 / 支付宝蓝 / 抖音黑红 / 未知灰 */
.pf-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px;
    border: 1px solid transparent; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1.7;
}
.pf-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #aab3c0; }
.pf-weixin { color: #0f7b3f; background: #e9f9ef; border-color: #c9efd6; }
.pf-weixin::before { background: #07c160; }
.pf-alipay { color: #0958d9; background: #e6f0ff; border-color: #cddffb; }
.pf-alipay::before { background: #1677ff; }
.pf-douyin { color: #111827; background: #f4f4f5; border-color: #e4e4e7; }
.pf-douyin::before { background: #fe2c55; }
.pf-unknown { color: #7b8494; background: #f1f4f8; border-style: dashed; border-color: #d7dee8; }
.pf-unknown::before { background: #aab3c0; }

.od-empty-title { font-size: 14px; font-weight: 600; color: var(--text-2); }
.od-empty-desc { margin-top: 4px; font-size: 12.5px; }

/* 订单详情页头部 */
.od-detail-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 16px 18px; margin-bottom: 18px;
    border: 1px solid var(--border); border-radius: 12px;
    background: linear-gradient(180deg, #fbfcfe, #f7f9fc);
}
.od-detail-title { font-size: 16px; font-weight: 600; color: var(--text); }
.od-detail-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.od-detail-amount {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px; font-weight: 700; color: #1677ff; font-variant-numeric: tabular-nums;
}
.od-detail-side { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.od-detail-label { display: inline-block; min-width: 60px; color: var(--muted); }
.od-muted-inline { margin-left: 6px; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
    .od-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .od-card-head { flex-wrap: wrap; }
    .od-route { gap: 6px; }
    .od-route-arrow { display: none; }
    .od-detail-side { width: 100%; }
}

/* 费用明细（运单详情 / 小程序订单详情统一口径，仅租户口径金额） */
.fee-info {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px;
    padding: 12px 14px; margin-bottom: 14px;
    border: 1px solid var(--border); border-radius: 10px; background: #fafbfd;
}
.fee-info-item { display: flex; flex-direction: column; gap: 2px; }
.fee-info-label { font-size: 12px; color: var(--muted); }
.fee-info-value { font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.fee-rows { display: flex; flex-direction: column; }
.fee-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 2px; border-bottom: 1px dashed var(--border); font-size: 13.5px;
}
.fee-row:last-child { border-bottom: 0; }
.fee-name { color: var(--text-2); }
.fee-amt {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap;
}
.fee-total-wrap { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.fee-total {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 2px; font-size: 14px; font-weight: 600; color: var(--text);
}
.fee-total-amt {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; color: var(--primary);
}
.fee-sub { font-size: 12.5px; color: var(--muted); }
.fee-diff .fee-amt { color: #dc2626; }
.fee-note { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 金额口径（订单金额 / 成本价 / 加价 / 差价），仅租户口径 */
.od-head-amount-label { display: block; font-size: 11px; color: var(--muted); text-align: right; }
.od-money {
    display: flex; flex-wrap: wrap; gap: 10px 28px;
    margin-top: 12px; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: 10px; background: #fafbfd;
}
.od-money-item { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.od-money-label { color: var(--muted); }
.od-money-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text);
}
.od-money-val.profit { color: #389e0d; }
.od-money-val.muted { font-weight: 400; color: var(--muted); }
.od-money-val.danger { color: #dc2626; }
.od-money-val.success { color: #389e0d; }
.od-money-note { font-size: 11.5px; color: #389e0d; white-space: nowrap; }

.od-money-chain {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
    margin-bottom: 12px; padding: 14px 16px;
    border: 1px solid var(--border); border-radius: 12px; background: #fafbfd;
}
.od-chain-item { display: flex; flex-direction: column; gap: 3px; min-width: 130px; }
.od-chain-label { font-size: 12px; color: var(--muted); }
.od-chain-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 700; color: var(--text);
}
.od-chain-val.profit { color: #389e0d; }
.od-chain-val.muted { font-weight: 500; font-size: 15px; color: var(--muted); }
.od-chain-val.danger { color: #dc2626; }
.od-chain-val.success { color: #389e0d; }
.od-chain-hint { font-size: 11.5px; color: var(--muted); }
.od-chain-arrow { align-self: center; font-size: 18px; font-weight: 700; color: #b0b8c4; }
.od-diff-line {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 20px; padding: 10px 16px;
    border: 1px solid var(--border); border-radius: 10px;
}
.od-diff-paid {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin: -12px 0 20px; padding: 10px 16px;
    border: 1px solid #b7eb8f; border-radius: 10px; background: #f6ffed;
}

/* 订单列表表格（列显示）：表头吸顶 + 金额列等宽右对齐 + 单号列左固定 */
.od-table-wrap {
    border: 1px solid var(--border); border-radius: 10px; background: #fff;
    overflow-x: auto; overflow-y: visible;
}
.od-table {
    width: 100%; min-width: 1217px;
    border-collapse: separate; border-spacing: 0; table-layout: fixed;
    font-size: 13px;
}
.od-table col.col-no { width: 170px; }
.od-table col.col-waybill { width: 125px; }
.od-table col.col-amount { width: 86px; }
.od-table col.col-cost { width: 86px; }
.od-table col.col-diff { width: 128px; }
.od-table col.col-status { width: 84px; }
.od-table col.col-profit { width: 82px; }
.od-table col.col-route { width: 188px; }
.od-table col.col-company { width: 92px; }
.od-table col.col-time { width: 110px; }
.od-table col.col-op { width: 62px; }
.od-table thead th {
    position: sticky; top: 0; z-index: 3;
    padding: 10px 12px; text-align: left; white-space: nowrap;
    font-size: 12.5px; font-weight: 600; color: var(--text-2);
    background: #f7f9fc; box-shadow: inset 0 -1px 0 var(--border);
}
.od-table thead th.num { text-align: right; }
.od-table tbody td {
    padding: 9px 12px; border-bottom: 1px solid #f1f4f8;
    vertical-align: middle; background: #fff;
}
.od-table tbody tr:last-child td { border-bottom: none; }
.od-table tbody tr:hover td { background: #f8fbff; }
.od-table td.num { text-align: right; }
.od-table td.num b {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums; font-weight: 600;
}
.od-table .sticky-left {
    position: sticky; left: 0; z-index: 2;
    box-shadow: 1px 0 0 var(--border);
}
.od-table thead .sticky-left { z-index: 4; background: #f7f9fc; }
.od-table tbody tr:hover .sticky-left { background: #f8fbff; }
.od-table-no {
    display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.od-table-no:hover { color: var(--primary); text-decoration: underline; }
.od-waybill-cell {
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text);
}
/* 运单号列：左右内边距单独收紧，把列宽让给数字本身（长号仍单行 nowrap，超宽走表格横向滚动） */
.od-table tbody td.od-waybill-cell { padding-left: 8px; padding-right: 8px; }
.od-table-sub {
    display: flex; align-items: center; gap: 5px;
    margin-top: 3px; font-size: 11px; line-height: 1.3; color: var(--muted);
}
.od-table-sub.success { color: #389e0d; white-space: nowrap; }
/* 差价单元格：金额与下方徽标/补收说明统一右对齐（.od-table-sub 默认是 flex 左对齐，导致徽标偏左） */
.od-table td.od-diff-cell .od-table-sub { justify-content: flex-end; }
.od-table td.od-diff-cell .badge { font-size: 11px; padding: 1px 6px; line-height: 1.6; border-radius: 8px; }
.od-table-member { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-table .muted { color: var(--muted); font-weight: 400; }
.od-table .profit { color: #389e0d; }
.od-table .danger { color: #dc2626; }
.od-table .success { color: #389e0d; }
.od-route-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.od-route-arrow-sm { color: #b0b8c4; margin: 0 5px; }
.od-company-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.od-company-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-company-code { margin-left: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted); }
.od-time-cell { white-space: nowrap; font-size: 12px; color: var(--text-2); }
.od-link-btn { color: var(--primary); font-size: 13px; white-space: nowrap; }
.od-link-btn:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .od-table { width: 1069px; min-width: 1069px; font-size: 12.5px; }
    .od-table col.col-no { width: 120px; }
    .od-table col.col-waybill { width: 115px; }
    .od-table col.col-amount { width: 78px; }
    .od-table col.col-cost { width: 78px; }
    .od-table col.col-diff { width: 116px; }
    .od-table col.col-status { width: 76px; }
    .od-table col.col-profit { width: 76px; }
    .od-table col.col-route { width: 176px; }
    .od-table col.col-company { width: 84px; }
    .od-table col.col-time { width: 100px; }
    .od-table col.col-op { width: 58px; }
    .od-table thead th { padding: 8px; font-size: 12px; }
    .od-table tbody td { padding: 8px; }
    .od-table-no { font-size: 11.5px; }
    .od-waybill-cell { font-size: 12px; }
    .od-table tbody td.od-waybill-cell { padding-left: 4px; padding-right: 4px; }
    .od-table-member { display: none; }
}

/* ===== 小程序订单详情页（od2 重构，仅详情页使用） ===== */
.od2-page { max-width: 1080px; margin: 0 auto; }

/* 顶部两卡（订单信息 / 会员与渠道）电脑端并排一行，窄屏回落单列 */
.od2-top-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    align-items: stretch;
}
.od2-top-grid .od2-card { height: 100%; margin-bottom: 0; }
@media (max-width: 820px) {
    .od2-top-grid { grid-template-columns: 1fr; }
}
.od2-back {
    display: inline-flex; align-items: center; margin-bottom: 14px;
    font-size: 13px; font-weight: 500; color: var(--primary);
}
.od2-back:hover { color: var(--primary-dark); }

.od2-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .045);
    padding: 18px 20px; margin-bottom: 16px;
}
.od2-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.od2-card-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.od2-card-hint { font-size: 12px; color: var(--muted); }

/* 1. 头部卡 */
.od2-hero {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
    flex-wrap: wrap; background: linear-gradient(135deg, #fbfdff, #f4f9ff);
}
.od2-hero-main { flex: 1 1 320px; min-width: 0; }
.od2-eyebrow { display: block; font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.od2-hero-no { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.od2-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}
.od2-break { word-break: break-all; }
.od2-hero-no .od2-mono {
    font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .2px;
}
.od2-copy {
    padding: 2px 8px; border: 1px solid #cfe0ff; border-radius: 6px;
    background: #f2f7ff; color: var(--primary); font-size: 11.5px; line-height: 1.6;
    cursor: pointer;
}
.od2-copy:hover { background: #e6f0ff; }
.od2-hero-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.od2-hero-meta {
    display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px;
    font-size: 12.5px; color: var(--muted);
}
.od2-meta-item b { font-weight: 600; color: var(--text-2); }
.od2-code {
    display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px;
    background: #f0f2f5; color: #8a94a6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px;
}
.od2-hero-amount { flex: none; text-align: right; }
.od2-amount {
    display: block; margin-top: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--primary);
    font-variant-numeric: tabular-nums;
}

/* 键值对：左标签灰字、右内容深色 */
.od2-kv { display: flex; flex-direction: column; }
.od2-kv-row {
    display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: baseline;
    padding: 9px 0; border-bottom: 1px dashed var(--border);
}
.od2-kv-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.od2-kv-label { font-size: 12.5px; color: var(--muted); }
.od2-kv-value {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0;
    font-size: 13.5px; color: var(--text);
}
.od2-strong { font-weight: 600; color: var(--text); }
.od2-sub { font-size: 12px; color: var(--muted); }

/* 3. 物流信息卡：寄件蓝 / 收件橙 */
.od2-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.od2-party {
    position: relative; overflow: hidden;
    padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fcfdff;
}
.od2-party::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.od2-send::before { background: #1677ff; }
.od2-receive::before { background: #fa8c16; }
.od2-party-head {
    display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
    font-size: 12px; color: var(--muted);
}
.od2-party-tag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 600;
}
.od2-send .od2-party-tag { background: #e6f0ff; color: #0958d9; }
.od2-receive .od2-party-tag { background: #fff3e6; color: #d46b08; }
.od2-party-name { font-size: 15px; font-weight: 600; color: var(--text); }
.od2-party-phone {
    margin-top: 2px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.od2-party-addr {
    margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--text-2);
    word-break: break-all;
}
.od2-party-addr .od2-sub { margin-right: 6px; }
.od2-goods { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--border); }

/* 揽收信息：挂在物流信息卡内部，仅非价格字段；无数据时整块空态 */
.od2-collect { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e5e7eb; }
.od2-collect-title { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }

/* 4. 费用明细卡：金额链 + 差价 + 可退余额 */
.od2-money {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px;
    padding: 12px 14px; margin-bottom: 12px;
    border: 1px solid var(--border); border-radius: 10px; background: #fafbfd;
}
.od2-money-item { display: flex; flex-direction: column; gap: 2px; }
.od2-money-label { font-size: 12px; color: var(--muted); }
.od2-money-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
}
.od2-money-val.profit { color: #389e0d; }
.od2-money-val.muted { font-size: 15px; font-weight: 500; color: var(--muted); }
.od2-money-hint { font-size: 11.5px; color: var(--muted); }
.od2-diff-line {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
}
.od2-diff-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
}
.od2-diff-val.danger { color: #dc2626; }
.od2-diff-val.success { color: #389e0d; }
.od2-diff-paid {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 8px; padding: 10px 14px;
    border: 1px solid #b7eb8f; border-radius: 10px; background: #f6ffed;
}
.od2-refundable {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin-top: 10px; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: 10px; background: #fafbfd;
}
.od2-refundable-label { font-size: 12.5px; color: var(--muted); }
.od2-refundable-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.od2-refundable-off .od2-refundable-val { color: #8a94a6; font-weight: 600; }
.od2-refundable-on { border-color: #ffe58f; background: #fffbe6; }
.od2-refundable-on .od2-refundable-val { color: #d46b08; }

@media (max-width: 820px) {
    .od2-parties { grid-template-columns: 1fr; }
    .od2-money { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .od2-card { padding: 14px; border-radius: 12px; }
    .od2-kv-row { grid-template-columns: 1fr; gap: 4px; }
    .od2-hero { align-items: stretch; }
    .od2-hero-amount { text-align: left; }
    .od2-money { grid-template-columns: 1fr; }
}

/* ===== 小程序订单详情：物流轨迹（odt-*） ===== */
.odt-refresh {
    padding: 4px 12px; border: 1px solid #cfe0ff; border-radius: 7px;
    background: #f2f7ff; color: var(--primary); font-size: 12.5px; cursor: pointer;
}
.odt-refresh:hover { background: #e6f0ff; }
.odt-refresh:disabled { opacity: .6; cursor: default; }
.odt-note {
    margin-bottom: 10px; padding: 8px 12px;
    border: 1px solid #ffe58f; border-radius: 8px; background: #fffbe6;
    font-size: 12.5px; color: #d46b08;
}
.odt-loading { padding: 10px 0; font-size: 12.5px; color: var(--muted); }
.odt-empty { padding: 12px 0; font-size: 13px; color: var(--muted); }
.odt-list { margin-top: 2px; }
.odt-item {
    position: relative; display: flex; gap: 10px;
    margin-left: 6px; padding: 0 0 16px 18px; border-left: 2px solid #e8ecf1;
}
.odt-item:last-child { border-left-color: transparent; padding-bottom: 2px; }
.odt-dot {
    position: absolute; left: -6px; top: 3px;
    width: 10px; height: 10px; border-radius: 50%; background: #c9d3e0;
}
.odt-latest .odt-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .15); }
.odt-main { min-width: 0; }
.odt-desc { font-size: 13.5px; line-height: 1.6; color: var(--text); word-break: break-word; }
.odt-latest .odt-desc { color: var(--primary-dark); font-weight: 600; }
.odt-loc { margin-top: 2px; font-size: 12px; color: var(--text-2); }
.odt-time {
    margin-top: 3px; font-size: 12px; color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.odt-more {
    width: 100%; margin-top: 4px; padding: 6px 10px;
    border: 1px dashed #cfe0ff; border-radius: 8px;
    background: #f7fbff; color: var(--primary); font-size: 12.5px; cursor: pointer;
}
.odt-more:hover { background: #eef6ff; }


/* 会员管理：积分列（模板按 module_points 开关决定是否渲染该列） */
.tm-col-points { width: 96px; white-space: nowrap; }
.tm-money.points { color: #7c4dff; }
.tm-dstat-value.points { color: #7c4dff; }
.tm-dstat-value.owe { color: #e0444a; }

/* ===== 官网首页增强：真实 logo / Hero 标签 / 优势条 ===== */
.nav-logo .logo-img { height: 30px; width: auto; border-radius: 6px; display: block; object-fit: contain; }
.nav-logo .logo-text { line-height: 1; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-img--footer { height: 24px; width: auto; border-radius: 5px; object-fit: contain; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff; font-size: 14px; font-weight: 600;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-badge b { color: #ffe08a; }

.adv-strip { background: #fff; border-bottom: 1px solid var(--border); }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.adv-item {
    display: flex; align-items: center; gap: 14px;
    padding: 22px 26px; border-right: 1px solid var(--border);
}
.adv-item:last-child { border-right: 0; }
.adv-ico {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #69b1ff); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700;
}
.adv-item b { font-size: 17px; color: var(--text); display: block; }
.adv-item p { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

@media (max-width: 900px) {
    .adv-grid { grid-template-columns: 1fr; }
    .adv-item { border-right: 0; border-bottom: 1px solid var(--border); }
    .adv-item:last-child { border-bottom: 0; }
    .hero-badge { font-size: 13px; }
    .nav-logo .logo-img { height: 26px; }
}

/* 超窄屏（≤360px）：顶栏显示余额后空间不足，收紧间距并只保留金额，
   避免充值/切换/头像被挤到 Logo 上方。390px 及以上仍显示完整「余额 ¥xx」。 */
@media (max-width: 360px) {
    .uc-layout:not(.mp-shell) .uc-user { gap: 5px; }
    .uc-layout:not(.mp-shell) .uc-user-balance { font-size: 0; }
    .uc-layout:not(.mp-shell) .uc-user-balance strong { font-size: 12px; }
}

/* diff-sms pill button (mp order list) */
.od-sms-btn { display:inline-flex; align-items:center; gap:5px; margin-left:6px; padding:2px 10px; font-size:12px; line-height:1.7; color:var(--mp-accent,#2563eb); background:var(--mp-accent-soft,rgba(37,99,235,.10)); border:1px solid rgba(37,99,235,.18); border-radius:999px; cursor:pointer; white-space:nowrap; transition:all .15s ease; vertical-align:middle; }
.od-sms-btn::before { content:"\2709"; font-size:16px; line-height:1; }
.od-sms-btn:hover { background:var(--mp-accent,#2563eb); border-color:var(--mp-accent,#2563eb); color:#fff; box-shadow:0 4px 12px rgba(37,99,235,.25); }
.od-sms-btn:disabled { opacity:.55; cursor:not-allowed; box-shadow:none; }

/* toast (mp order list feedback) */
.od-toast { position:fixed; top:24px; left:50%; transform:translate(-50%,-16px); z-index:1200; max-width:min(480px,90vw); padding:11px 20px; border-radius:10px; font-size:13.5px; line-height:1.6; color:#fff; box-shadow:0 10px 30px rgba(15,23,42,.25); opacity:0; transition:all .25s ease; pointer-events:none; }
.od-toast.show { opacity:1; transform:translate(-50%,0); }
.od-toast-ok { background:linear-gradient(135deg,#16a34a,#22c55e); }
.od-toast-fail { background:linear-gradient(135deg,#dc2626,#ef4444); }

/* order list op cell */
.od-op-cell { white-space: nowrap; }
.od-op-cell .od-link-btn, .od-op-cell .od-sms-btn { vertical-align: middle; }

/* diff-sms icon-only button stacked under detail link (bigger icon) */
.od-op-cell .od-link-btn { display: block; }
.od-op-cell .od-sms-btn { display:inline-flex; align-items:center; justify-content:center; margin:4px 0 0; padding:0 10px; height:28px; gap:0; }
.od-op-cell .od-sms-btn::before { font-size:18px; line-height:1; }
.od-sms-btn.is-sending { opacity:.55; animation:od-sms-pulse 1s ease-in-out infinite; }
@keyframes od-sms-pulse { 0%,100% { opacity:.55; } 50% { opacity:1; } }

/* pagination centered across all apps */
.pager { text-align: center; }
.pager ul, ul.pagination, .wo-pager ul.pagination { justify-content: center !important; }

/* 手机端：横向菜单栏禁止垂直滚动（overflow-x:auto 会使 overflow-y 变为 auto，
   菜单内容高于 50px 行高时可被滚出可视区，留出空白——修复「菜单可滚到上面去」） */
@media (max-width: 760px) {
    .uc-menu { overflow-y: hidden; }
}

/* 批量寄件解析：错误行提示（浅色主题） */
.bp-errors { margin: 0 16px 14px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 13px; line-height: 1.8; }
.bp-raw { color: #7f1d1d; }
.bp-card.has-error { border-color: #fca5a5; }

/* 小程序编译导出：构建状态与按钮 */
.btn-success { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; border-color: #15803d; }
.btn-success:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.build-status { margin-top: 10px; font-size: 13px; line-height: 1.7; min-height: 18px; word-break: break-all; }
.build-status.building { color: #2563eb; }
.build-status.done { color: #16a34a; }
.build-status.error { color: #dc2626; }
.build-status a.btn { margin-left: 6px; }
