/* ==========================================================
   后台管理样式 - 现代科技蓝 / 直角风格
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2563eb;
    --primary-d: #1d4ed8;
    --primary-l: #eff6ff;
    --ok: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --sidebar: #111827;
    --sidebar-h: #1f2937;
    --bd: #e5e7eb;
    --bd2: #f1f5f9;
    --txt: #1f2937;
    --sub: #6b7280;
    --bg: #f5f7fb;
    --radius: 4px;
}

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

a { color: inherit; text-decoration: none; }
.ico { vertical-align: -3px; flex-shrink: 0; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* ============ 布局 ============ */
.admin-wrap { display: flex; width: 100%; min-height: 100vh; }
.main { flex: 1 1 auto; width: auto; max-width: none; margin-left: 226px; display: flex; flex-direction: column; min-width: 0; }
.content { width: 100%; max-width: none; min-width: 0; padding: 22px 24px 40px; flex: 1; box-sizing: border-box; }
.content > .card,
.content .config-form,
.content .dash-grid,
.content .edit-grid,
.content .detail-grid { width: 100%; max-width: none; min-width: 0; }

.sidebar {
    width: 226px;
    background: var(--sidebar);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform .25s;
}

.logo {
    height: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.logo .dot {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,.45);
}

.menu { flex: 1; overflow-y: auto; padding: 12px 10px 30px; }
.menu::-webkit-scrollbar { width: 5px; }
.menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); }

.menu-group-title {
    font-size: 11px;
    color: #64748b;
    padding: 14px 12px 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius);
    margin-bottom: 3px;
    cursor: pointer;
    transition: background .18s, color .18s;
    font-size: 16px;
    font-weight: 700;
    color: #cbd5e1;
    position: relative;
}
.menu-item:hover { background: var(--sidebar-h); color: #fff; }
.menu-item.active { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.menu-item .arrow { margin-left: auto; transition: transform .2s; opacity: .6; font-size: 11px; }
.menu-item.open .arrow { transform: rotate(90deg); }
.menu-item .badge-dot {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
}
.menu-sub { display: none; padding-left: 8px; }
.menu-sub.show { display: block; }
.menu-sub .menu-item { font-size: 16px; padding-left: 34px; }
/* 三级菜单 */
.menu-item-lv2 { color: #a8b7cc; }
.menu-sub-lv3 .menu-item { font-size: 16px; padding-left: 48px; }
.menu-sub-lv3 .menu-item .badge-dot { min-width: 16px; height: 16px; font-size: 10px; }

.topbar {
    height: 62px;
    background: #fff;
    border-bottom: 1px solid var(--bd);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}
.topbar h1 { font-size: 17px; font-weight: 600; }
.topbar .crumb { color: var(--sub); font-size: 13px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    transition: .2s;
}
.user-chip:hover { border-color: var(--primary); color: var(--primary); }
.avatar {
    width: 26px; height: 26px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--txt); }

/* ============ 卡片 ============ */
.card {
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.card-head {
    padding: 15px 20px;
    border-bottom: 1px solid var(--bd2);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.card-head h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-head h3 i { width: 3px; height: 15px; background: var(--primary); border-radius: 2px; display: inline-block; }
.card-head .right { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.card-body { padding: 20px; }
.card-body.nopad { padding: 0; }

/* ============ 统计卡 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat {
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: .2s;
    position: relative;
    overflow: hidden;
}
.stat::after {
    content: ''; position: absolute; right: -20px; top: -20px;
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--primary-l); opacity: .7;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.07); }
.stat .s-icon {
    width: 46px; height: 46px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
    color: #fff;
}
.s-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.s-green { background: linear-gradient(135deg, #34d399, #10b981); }
.s-orange { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.s-purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.s-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.stat .s-info { position: relative; z-index: 1; }
.stat .s-num { font-size: 23px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .s-label { color: var(--sub); font-size: 13px; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
    background: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    border-bottom: 1px solid var(--bd);
    font-size: 13px;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--bd2); vertical-align: middle; }
table.data tbody tr:hover { background: #fafbfd; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .thumb { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--bd); background: #f8fafc; }
.col-actions { white-space: nowrap; }
.col-actions a { color: var(--primary); margin-right: 12px; font-size: 13px; }
.col-actions a:hover { text-decoration: underline; }
.col-actions a.danger { color: var(--danger); }
.text-sub { color: var(--sub); font-size: 12.5px; }
.text-danger { color: var(--danger); }
.text-ok { color: var(--ok); }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, Consolas, monospace; }
.empty { text-align: center; padding: 50px 20px; color: #9ca3af; }
.empty .ico { opacity: .35; margin-bottom: 10px; }

/* ============ 徽章 ============ */
.tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: 3px; font-size: 12px; font-weight: 600;
    background: #eef2f7; color: #475569; white-space: nowrap;
}
.tag-blue { background: #eff6ff; color: #2563eb; }
.tag-green { background: #ecfdf5; color: #059669; }
.tag-orange { background: #fffbeb; color: #b45309; }
.tag-purple { background: #f5f3ff; color: #7c3aed; }
.tag-red { background: #fef2f2; color: #dc2626; }
.tag-gray { background: #f1f5f9; color: #64748b; }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: .18s;
    background: #fff;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); box-shadow: 0 5px 14px rgba(37,99,235,.3); }
.btn-default { border-color: var(--bd); color: var(--txt); }
.btn-default:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ============ 表单 ============ */
.form-row { margin-bottom: 18px; }
.form-row:last-child { margin-bottom: 0; }
.form-row > label {
    display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: #374151;
}
.form-row > label em { color: var(--danger); font-style: normal; margin-left: 2px; }
.form-row .hint { font-size: 12px; color: var(--sub); margin-top: 5px; }
.input, .select, .textarea {
    width: 100%;
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    padding: 9px 12px;
    background: #fff;
    color: var(--txt);
    transition: .18s;
    outline: none;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.input { height: 38px; }
.textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .form-row { margin-bottom: 0; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.checkbox-line { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
.checkbox-line input { width: 16px; height: 16px; accent-color: var(--primary); }
.checkbox-line label { font-weight: 500; margin: 0; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { display: none; }
.switch .slider {
    position: absolute; inset: 0; background: #cbd5e1;
    border-radius: 12px; transition: .25s; cursor: pointer;
}
.switch .slider::before {
    content: ''; position: absolute; width: 18px; height: 18px;
    left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s;
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ============ 工具栏 ============ */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.toolbar .spacer { margin-left: auto; }

/* ============ 分页 ============ */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 18px 0 4px; flex-wrap: wrap; }
.pager .pg-num, .pager .pg-btn, .pager .pg-dot {
    min-width: 34px; height: 34px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--bd); border-radius: var(--radius);
    background: #fff; font-size: 13.5px; transition: .18s;
}
.pager a.pg-num:hover, .pager a.pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pager .pg-num.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pager .disabled { color: #cbd5e1; cursor: not-allowed; }
.pager .pg-dot { border: none; background: none; }

/* ============ 状态筛选 tabs ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bd); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a {
    padding: 9px 16px; font-size: 13.5px; color: var(--sub);
    border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .18s;
}
.tabs a:hover { color: var(--primary); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.batch-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 8px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; }
.batch-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; cursor: pointer; user-select: none; }

/* ============ 弹窗 ============ */
.modal-mask {
    position: fixed; inset: 0; background: rgba(15,23,42,.45);
    display: none; align-items: center; justify-content: center;
    z-index: 900; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 520px;
    max-height: 88vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(15,23,42,.25);
    animation: modalIn .2s;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.modal-head {
    padding: 16px 20px; border-bottom: 1px solid var(--bd2);
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 600; font-size: 15px;
}
.modal-head .close { cursor: pointer; color: var(--sub); background: none; border: none; padding: 4px; border-radius: 3px; }
.modal-head .close:hover { background: #f1f5f9; color: var(--txt); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--bd2); display: flex; justify-content: flex-end; gap: 10px; }

/* ============ Toast ============ */
.toast-box { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
    padding: 11px 20px; border-radius: var(--radius);
    background: #fff; box-shadow: 0 8px 30px rgba(15,23,42,.16);
    display: flex; align-items: center; gap: 9px; font-size: 14px;
    border-left: 3px solid var(--primary);
    animation: toastIn .24s;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast.ok .ico { color: var(--ok); }
.toast.err .ico { color: var(--danger); }

/* ============ 图片上传 ============ */
.upload-box {
    width: 110px; height: 110px; border: 1px dashed var(--bd);
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    cursor: pointer; background: #fafbfd; position: relative; overflow: hidden;
    transition: .2s; color: #94a3b8; flex-direction: column; gap: 5px; font-size: 12px;
}
.upload-box:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
.upload-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-box .del {
    position: absolute; top: 3px; right: 3px; z-index: 2;
    background: rgba(15,23,42,.6); color: #fff; width: 20px; height: 20px;
    border-radius: 3px; display: none; align-items: center; justify-content: center; font-size: 12px;
}
.upload-box:hover .del { display: flex; }
.upload-list { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ 图例/进度条 ============ */
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding: 10px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar {
    width: 100%; max-width: 42px;
    background: linear-gradient(180deg, #60a5fa, var(--primary));
    border-radius: 3px 3px 0 0; min-height: 3px; transition: height .5s;
    position: relative;
}
.bar span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.bar-col .lbl { font-size: 12px; color: var(--sub); }

.param-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 10px; margin-bottom: 10px; }

/* ============ 登录页 ============ */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #1d4ed8 140%);
    position: relative; overflow: hidden;
    padding: 20px;
}
.login-page::before, .login-page::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
}
.login-page::before { width: 420px; height: 420px; background: rgba(37,99,235,.42); top: -120px; left: -100px; }
.login-page::after { width: 380px; height: 380px; background: rgba(56,189,248,.28); bottom: -130px; right: -80px; }
.login-card {
    width: 100%; max-width: 400px;
    background: rgba(255,255,255,.97);
    border-radius: 6px;
    padding: 40px 36px 32px;
    box-shadow: 0 30px 80px rgba(2,6,23,.45);
    position: relative; z-index: 2;
}
.login-card .brand { text-align: center; margin-bottom: 28px; }
.login-card .brand .mark {
    width: 52px; height: 52px; border-radius: 8px; margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: 700;
    box-shadow: 0 10px 26px rgba(37,99,235,.42);
}
.login-card .brand h1 { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.login-card .brand p { color: var(--sub); font-size: 13px; margin-top: 4px; }
.login-card .field { position: relative; margin-bottom: 16px; }
.login-card .field .ico {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8;
}
.login-card .field input {
    width: 100%; height: 46px; padding: 0 14px 0 42px;
    border: 1px solid var(--bd); border-radius: var(--radius);
    background: #fff; transition: .2s; outline: none;
}
.login-card .field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.login-card .field-captcha input { padding-right: 118px; letter-spacing: .12em; text-transform: uppercase; }
.login-card .captcha-btn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 108px; height: 36px; padding: 0; border: 1px solid var(--bd); border-radius: 3px;
    background: #f1f5f9; cursor: pointer; overflow: hidden;
}
.login-card .captcha-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.login-card .captcha-btn:hover { border-color: var(--primary); }
.login-card .captcha-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.login-card .btn-login {
    width: 100%; height: 46px; border: none; border-radius: var(--radius);
    background: linear-gradient(135deg, #3b82f6, var(--primary-d));
    color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: .2s; margin-top: 6px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-card .btn-login:hover { box-shadow: 0 10px 26px rgba(37,99,235,.42); transform: translateY(-1px); }
.login-card .btn-login:disabled { opacity: .7; transform: none; box-shadow: none; cursor: not-allowed; }
.login-tip { margin-top: 18px; text-align: center; color: #94a3b8; font-size: 12px; }
.login-err {
    background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
    padding: 9px 13px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; display: none;
}
.login-err.show { display: block; }
.spin {
    width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* ============ 其他 ============ */
.detail-list { display: grid; grid-template-columns: 130px 1fr; }
.detail-list dt { padding: 11px 0; color: var(--sub); border-bottom: 1px solid var(--bd2); font-size: 13.5px; }
.detail-list dd { padding: 11px 0; border-bottom: 1px solid var(--bd2); word-break: break-all; }
.timeline { padding-left: 4px; }
.timeline-item { position: relative; padding: 0 0 16px 20px; border-left: 2px solid var(--bd2); }
.timeline-item::before {
    content: ''; position: absolute; left: -6px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--primary);
    border: 2px solid #fff;
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item .t-time { font-size: 12px; color: var(--sub); }

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .dash-grid, .edit-grid, .detail-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 820px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: none; }
    .main { margin-left: 0; width: 100%; }
    .menu-toggle { display: block; }
    .content { padding: 16px 12px 28px; }
    .stat-grid { grid-template-columns: 1fr; }
    .detail-list { grid-template-columns: 1fr; }
    .detail-list dt { padding-bottom: 0; border-bottom: none; }
    .agent-stats { grid-template-columns: 1fr 1fr; }
    .topbar { height: auto; min-height: 62px; flex-wrap: wrap; padding: 10px 12px; }
}

/* 代发工作台 */
/* 代发客户编辑 */
.page-customer-edit .content { padding: 12px 16px 28px; width: 100%; max-width: none; }
.customer-edit { width: 100%; min-width: 0; }
.ce-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .9fr); gap: 14px; align-items: start; }
.ce-section {
    font-size: 13px; font-weight: 700; color: #334155;
    margin: 4px 0 14px; padding-bottom: 8px; border-bottom: 1px dashed #e2e8f0;
}
.ce-section:not(:first-child) { margin-top: 22px; }
.ce-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ce-opt {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
    border: 1px solid #e2e8f0; border-radius: var(--radius); cursor: pointer; background: #fff;
}
.ce-opt:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.ce-opt input { margin-top: 3px; }
.ce-opt b { display: block; font-size: 14px; color: #0f172a; }
.ce-opt small { display: block; margin-top: 4px; font-size: 12px; color: #64748b; line-height: 1.4; }
.ce-actions {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    padding-top: 16px; margin-top: 8px; border-top: 1px solid #e2e8f0;
}
.ce-kv .row {
    display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px;
}
.ce-kv .row:last-child { border-bottom: 0; }
.ce-kv .row span { color: #64748b; flex-shrink: 0; }
.ce-orders { display: flex; flex-direction: column; }
.ce-order {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: inherit;
}
.ce-order:hover { background: #f8fafc; }
.ce-order-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ce-tips { margin: 0; padding-left: 18px; color: #475569; font-size: 13.5px; line-height: 1.75; }
.ce-tips li { margin-bottom: 8px; }
@media (max-width: 1100px) {
    .ce-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page-customer-edit .content { padding: 10px 10px 24px; }
    .ce-status { grid-template-columns: 1fr; }
    .ce-actions .btn { flex: 1; justify-content: center; }
}

/* 代发等级 */
.page-agent-level .content { padding: 12px 16px 28px; width: 100%; max-width: none; }
.level-page { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lv-hero {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap;
    padding: 22px 24px; background: linear-gradient(120deg, #eff6ff 0%, #fff 58%);
    border: 1px solid #bfdbfe; border-radius: var(--radius);
}
.lv-hero-name { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; font-size: 24px; font-weight: 700; color: #0f172a; }
.lv-code {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px;
    background: #2563eb; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .04em;
}
.lv-hero-meta { color: #475569; font-size: 14px; }
.lv-hero-meta .sep { margin: 0 8px; color: #cbd5e1; }
.lv-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lv-progress { margin-top: 16px; max-width: 520px; }
.lv-progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #64748b; margin-bottom: 6px; }
.lv-bar { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.lv-pending { margin-top: 12px; display: inline-block; padding: 8px 12px; font-size: 13px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); }
.lv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.lv-stats .s-num { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.lv-card {
    border: 1px solid var(--bd); border-radius: 8px; padding: 18px 18px 16px; background: #fff;
    display: flex; flex-direction: column; min-width: 0;
}
.lv-card.current { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.lv-card.suggest { border-color: #f59e0b; }
.lv-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lv-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lv-card h3 { margin: 12px 0 6px; font-size: 16px; color: #0f172a; line-height: 1.4; }
.lv-price { font-size: 28px; font-weight: 800; color: #2563eb; font-variant-numeric: tabular-nums; }
.lv-threshold { margin-top: 4px; font-size: 12.5px; color: #64748b; }
.lv-rights { margin: 12px 0 0; padding-left: 18px; color: #334155; font-size: 13px; line-height: 1.7; flex: 1; }
.lv-rights li { margin-bottom: 4px; }
.lv-card .btn { margin-top: 14px; align-self: flex-start; }
.lv-now { margin-top: 14px; font-size: 12.5px; color: #2563eb; font-weight: 600; }
.lv-note { margin-top: 14px; padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius); color: #64748b; font-size: 13px; line-height: 1.7; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); gap: 14px; align-items: start; }
.lv-rules { margin: 0; padding-left: 20px; color: #334155; font-size: 14px; line-height: 1.85; }
.lv-rules li { margin-bottom: 10px; }
.lv-alert { padding: 12px 14px; border-radius: var(--radius); background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; font-size: 13.5px; line-height: 1.6; }
.lv-alert.ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
@media (max-width: 1100px) {
    .lv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page-agent-level .content { padding: 10px 10px 24px; }
    .lv-hero { padding: 16px; }
    .lv-hero-name { font-size: 20px; }
    .lv-hero-actions .md-btn-main, .lv-hero-actions .md-btn-outline { width: 100%; justify-content: center; }
}

.page-promote .content,
.page-report .content,
.page-notice .content,
.page-ticket .content { padding: 12px 16px 28px; width: 100%; max-width: none; }
.ac-page { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ac-page table.data a { color: #2563eb; font-weight: 500; }
.pm-hero, .rp-hero, .nt-hero {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap;
    padding: 22px 24px; background: linear-gradient(120deg, #eff6ff 0%, #fff 58%);
    border: 1px solid #bfdbfe; border-radius: var(--radius);
}
.pm-code { margin: 8px 0 6px; font-size: 28px; font-weight: 800; letter-spacing: .08em; font-family: ui-monospace, Menlo, Consolas, monospace; color: #0f172a; }
.pm-sub { color: #64748b; font-size: 13.5px; line-height: 1.6; max-width: 560px; }
.pm-hero-actions, .rp-hero { align-items: center; }
.rp-hero-name, .nt-hero-name { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.pm-stats, .rp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.pm-stats .stat, .rp-stats .stat { text-decoration: none; color: inherit; }
.pm-link-row { display: flex; gap: 10px; align-items: center; }
.pm-link-row .input { flex: 1; min-width: 0; }
.pm-grid, .rp-grid, .tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.pm-list { display: flex; flex-direction: column; }
.pm-item { padding: 16px 18px; border-bottom: 1px solid #f1f5f9; }
.pm-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm-item b { font-size: 14.5px; color: #0f172a; }
.pm-item p { margin: 8px 0 0; font-size: 13.5px; color: #475569; line-height: 1.7; }
.pm-pre { white-space: pre-wrap; }
.pm-item .btn { margin-top: 10px; }
.nt-list { display: flex; flex-direction: column; gap: 12px; }
.nt-card { padding: 0; }
.nt-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 0; }
.nt-card-head h3 { margin: 0; font-size: 16px; color: #0f172a; line-height: 1.45; }
.nt-body { padding: 12px 20px 18px; white-space: pre-wrap; color: #334155; font-size: 14.5px; line-height: 1.85; }
.tk-list { display: flex; flex-direction: column; }
.tk-item { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; }
.tk-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tk-item b { font-size: 14px; color: #0f172a; }
.tk-item p { margin: 8px 0; font-size: 13.5px; color: #475569; line-height: 1.65; }
.tk-reply { margin: 0 0 8px; padding: 8px 10px; background: #eff6ff; border-radius: var(--radius); color: #1d4ed8; font-size: 13px; line-height: 1.6; }
@media (max-width: 1100px) {
    .pm-grid, .rp-grid, .tk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page-promote .content, .page-report .content, .page-notice .content, .page-ticket .content { padding: 10px 10px 24px; }
    .pm-hero, .rp-hero, .nt-hero { padding: 16px; }
    .pm-link-row { flex-direction: column; align-items: stretch; }
    .pm-hero-actions .md-btn-main, .rp-hero .md-btn-main { width: 100%; justify-content: center; }
}

.page-agent-home .content { padding: 12px 16px 28px; width: 100%; max-width: none; }
.agent-home { width: 100%; min-width: 0; }
.ah-hero {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap;
    padding: 22px 24px; margin-bottom: 14px;
    background: linear-gradient(120deg, #eff6ff 0%, #fff 55%);
    border: 1px solid #bfdbfe; border-radius: var(--radius);
}
.ah-hello { font-size: 22px; font-weight: 700; color: #0f172a; }
.ah-sub { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 8px; color: #475569; font-size: 13.5px; }
.ah-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: #64748b; font-size: 13px; }
.ah-meta b { color: #0f172a; font-weight: 600; }
.ah-copy { margin-left: 6px; color: #2563eb; font-size: 12px; font-weight: 600; }
.ah-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ah-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ah-stats .stat { text-decoration: none; color: inherit; }
.agent-home table.data a { color: #2563eb; font-weight: 500; }
.ah-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.ah-col, .ah-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ah-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; margin-left: 10px; }
.ah-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.ah-legend i.sales { background: #2563eb; }
.ah-legend i.comm { background: #10b981; }
.ah-bars { display: flex; align-items: stretch; gap: 8px; height: 180px; }
.ah-bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.ah-bar-col .pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.ah-bar-col .bar { width: 12px; min-height: 0; border-radius: 3px 3px 0 0; background: #2563eb; }
.ah-bar-col .bar.comm { background: #10b981; }
.ah-bar-col .val { margin-top: 6px; font-size: 11px; color: #334155; }
.ah-bar-col .lbl { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.ah-todos { display: grid; grid-template-columns: 1fr 1fr; }
.ah-todo {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    text-decoration: none; color: inherit; border-bottom: 1px solid #f1f5f9;
}
.ah-todo:nth-child(odd) { border-right: 1px solid #f1f5f9; }
.ah-todo .n { font-size: 20px; font-weight: 700; color: #94a3b8; min-width: 28px; }
.ah-todo .l { flex: 1; font-size: 13px; color: #475569; }
.ah-todo .go { color: #cbd5e1; font-size: 18px; }
.ah-todo.on .n { color: #2563eb; }
.ah-todo.on.warn .n { color: #d97706; }
.ah-todo.on.danger .n { color: #dc2626; }
.ah-todo.on.ok .n { color: #059669; }
.ah-todo:hover { background: #f8fafc; }
.ah-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ah-quick a {
    display: flex; align-items: center; gap: 8px; padding: 12px 12px;
    border: 1px solid var(--bd); border-radius: var(--radius);
    text-decoration: none; color: #334155; font-size: 13px; font-weight: 600; background: #fff;
}
.ah-quick a:hover { border-color: #2563eb; color: #2563eb; }
.ah-quick .ico { color: #2563eb; }
.ah-notices { display: flex; flex-direction: column; }
.ah-notice {
    display: block; padding: 12px 16px; border-bottom: 1px solid #f1f5f9;
    text-decoration: none; color: inherit;
}
.ah-notice:hover { background: #f8fafc; }
.ah-notice b { display: block; font-size: 13.5px; color: #0f172a; }
.ah-notice p { margin: 4px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.5; }
.ah-notice .text-sub { display: block; margin-top: 4px; }
.ah-rank { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.ah-rank .name { width: 72px; flex-shrink: 0; font-size: 13px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-rank .bar { flex: 1; height: 8px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.ah-rank .bar i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.ah-rank .mono { width: 78px; text-align: right; font-size: 12.5px; font-weight: 600; }
@media (max-width: 1100px) {
    .ah-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page-agent-home .content { padding: 10px 10px 24px; }
    .ah-hero { padding: 16px; }
    .ah-hello { font-size: 18px; }
    .ah-stats { grid-template-columns: 1fr 1fr; }
    .ah-hero-actions .md-btn-main, .ah-hero-actions .md-btn-outline { width: 100%; justify-content: center; }
    .ah-todos { grid-template-columns: 1fr; }
    .ah-todo:nth-child(odd) { border-right: 0; }
}

.agent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.agent-stat { background: #fff; border: 1px solid var(--bd); border-radius: var(--radius); padding: 16px 18px; }
.agent-stat .n { font-size: 22px; font-weight: 700; }
.agent-stat .l { color: var(--sub); font-size: 13px; margin-top: 2px; }
.agent-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.agent-bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.agent-bars .bar { width: 100%; max-width: 28px; background: #2563eb; border-radius: 3px 3px 0 0; }
.agent-bars .bar.alt { background: #10b981; }
.agent-bars .lbl { font-size: 12px; color: var(--sub); margin-top: 6px; }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; }
.order-build { display: flex; flex-direction: column; gap: 18px; }
.order-build > * { min-width: 0; }
.order-side { order: -1; }
.order-side .card-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 18px; align-items: end; }
.order-side .sum-row { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; }
.order-side .sum-row b { font-size: 22px; }
.order-side .text-sub { grid-column: 1 / -1; margin: 0 !important; }

.page-order-create .content { padding: 12px 16px 28px; width: 100%; max-width: none; }
.order-create { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.oc-hero {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 18px 22px; background: linear-gradient(120deg, #eff6ff 0%, #fff 58%);
    border: 1px solid #bfdbfe; border-radius: var(--radius);
}
.oc-hero-name { font-size: 20px; font-weight: 700; color: #0f172a; }
.oc-hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: #475569; font-size: 13.5px; }
.oc-steps { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--bd); border-radius: var(--radius); overflow: hidden; }
.oc-step {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; font-size: 14px; font-weight: 600; color: #94a3b8; background: #fff;
}
.oc-step .n {
    width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; background: #e2e8f0; color: #64748b;
}
.oc-step.current { color: #1d4ed8; background: #eff6ff; }
.oc-step.current .n { background: #2563eb; color: #fff; }
.oc-step.done { color: #059669; }
.oc-step.done .n { background: #10b981; color: #fff; }
.page-order-create .order-build {
    display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .9fr);
    gap: 14px; align-items: start;
}
.page-order-create .order-side { order: 0; position: sticky; top: 12px; }
.page-order-create .order-side .card-body {
    display: flex; flex-direction: column; gap: 0; align-items: stretch;
}
.page-order-create .order-side .sum-row {
    flex-direction: row; justify-content: space-between; align-items: baseline;
    padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.page-order-create .order-side .sum-row span { color: #64748b; }
.page-order-create .order-side .sum-row b { font-size: 16px; color: #0f172a; }
.page-order-create .order-side .sum-row.total { border-bottom: 0; padding-top: 12px; }
.page-order-create .order-side .sum-row.total b { font-size: 24px; color: #2563eb; }
.page-order-create .order-notes { grid-column: auto; margin-top: 12px; }
.oc-guide {
    margin: 0 0 22px; padding: 16px 18px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius);
}
.oc-guide-head { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #92400e; }
.oc-guide-list {
    margin: 0; padding: 0; list-style: none; counter-reset: oc-guide;
    display: flex; flex-direction: column; gap: 12px;
}
.oc-guide-list li { display: flex; gap: 8px; align-items: flex-start; }
.oc-guide-list li::before {
    content: counter(oc-guide); counter-increment: oc-guide; flex: 0 0 22px;
    width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; background: #f59e0b; color: #fff;
}
.oc-guide-list li > div { min-width: 0; flex: 1; }
.oc-guide-list b { display: block; font-size: 13.5px; color: #78350f; }
.oc-guide-list p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: #78350f; }
.oc-guide-tip {
    margin-top: 14px; padding: 10px 12px; background: #fff; border: 1px dashed #f59e0b; border-radius: var(--radius);
    font-size: 13px; line-height: 1.7; color: #9a3412;
}
.oc-guide-tip b { display: block; margin-bottom: 4px; color: #9a3412; }
.oc-ship-bar {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
    padding: 12px 14px; margin-bottom: 18px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius);
}
.oc-filter { margin-bottom: 10px; max-width: 320px; }
.oc-invoice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.page-order-create .oc-region { gap: 10px; }
@media (max-width: 1100px) {
    .page-order-create .order-build { grid-template-columns: 1fr; }
    .page-order-create .order-side { position: static; }
    .oc-invoice { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page-order-create .content { padding: 10px 10px 24px; }
    .page-order-create .form-grid-3 { grid-template-columns: 1fr; }
}

.page-order-list .content { padding: 12px 16px 28px; width: 100%; max-width: none; }
.ol-page { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ol-hero {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 18px 22px; background: linear-gradient(120deg, #eff6ff 0%, #fff 58%);
    border: 1px solid #bfdbfe; border-radius: var(--radius);
}
.ol-hero-name { font-size: 20px; font-weight: 700; color: #0f172a; }
.ol-hero-meta { margin-top: 6px; color: #64748b; font-size: 13.5px; line-height: 1.6; max-width: 640px; }
.ol-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ol-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ol-stat {
    display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--bd); border-radius: var(--radius); color: inherit;
}
.ol-stat:hover { border-color: #93c5fd; }
.ol-stat.on { border-color: #2563eb; background: #eff6ff; }
.ol-stat b { font-size: 22px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.ol-stat span { font-size: 12.5px; color: #64748b; }
.ol-tabs {
    display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 16px 0; border-bottom: 1px solid #f1f5f9;
}
.ol-tabs a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; background: #f1f5f9; color: #64748b;
    font-size: 13px; font-weight: 600;
}
.ol-tabs a em { font-style: normal; color: #94a3b8; font-weight: 600; }
.ol-tabs a.active { background: #2563eb; color: #fff; }
.ol-tabs a.active em { color: rgba(255,255,255,.8); }
.ol-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ol-toolbar .input { max-width: 280px; }
.ol-toolbar #btnBatchDel { margin-left: auto; }
.ol-no { color: #2563eb; font-weight: 600; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ol-no:hover { text-decoration: underline; }
@media (max-width: 1100px) {
    .ol-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .page-order-list .content { padding: 10px 10px 24px; }
    .ol-hero { padding: 16px; }
    .ol-hero-actions .md-btn-main, .ol-hero-actions .md-btn-outline { width: 100%; justify-content: center; }
    .ol-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ol-toolbar .input { max-width: none; }
    .ol-toolbar #btnBatchDel { margin-left: 0; }
}
.order-notes { grid-column: 1 / -1; margin: 4px 0 0; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--bd); border-radius: var(--radius); }
.order-notes h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.order-notes ol { margin: 0; padding-left: 18px; color: var(--sub); font-size: 12.5px; line-height: 1.75; }
.terms-body p { margin: 0 0 16px; line-height: 1.85; color: #334155; }
.terms-body p:last-child { margin-bottom: 0; }
.goods-note { margin-bottom: 14px; color: var(--sub); font-size: 13px; }
.goods-explains { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.goods-explains .order-notes { margin: 0; grid-column: auto; }
.goods-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.goods-toolbar .input, .goods-toolbar .select { width: 220px; }
.goods-grid, .pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.goods-card, .pkg-card { display: flex; gap: 12px; border: 1px solid var(--bd); border-radius: var(--radius); padding: 12px; background: #fff; min-width: 0; max-width: 100%; }
a.goods-card:hover { border-color: #2563eb; }
.pkg-card { display: block; }
.goods-card.is-out { background: #f8fafc; }
.goods-cover { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--bd); background: #f8fafc; flex-shrink: 0; }
.goods-main { min-width: 0; flex: 1; }
.goods-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.goods-name { font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.goods-sum { margin-top: 4px; color: var(--sub); font-size: 12.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-foot { display: flex; align-items: baseline; gap: 8px 12px; margin-top: 8px; flex-wrap: wrap; }
.goods-prices { display: flex; align-items: flex-end; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.goods-price-item { display: flex; flex-direction: column; gap: 2px; min-width: 88px; }

.page-goods .content { padding: 12px 16px 28px; width: 100%; max-width: none; }
.gi-page { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gi-hero {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 18px 22px; background: linear-gradient(120deg, #eff6ff 0%, #fff 58%);
    border: 1px solid #bfdbfe; border-radius: var(--radius);
}
.gi-hero-name { font-size: 20px; font-weight: 700; color: #0f172a; }
.gi-hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; color: #475569; font-size: 13.5px; }
.gi-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gi-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gi-notes .order-notes { margin: 0; }
.gi-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.gi-toolbar .input { max-width: 320px; }
.gi-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.gi-cats button {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border: 0; border-radius: 999px; background: #f1f5f9; color: #64748b;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.gi-cats button em { font-style: normal; color: #94a3b8; }
.gi-cats button.active { background: #2563eb; color: #fff; }
.gi-cats button.active em { color: rgba(255,255,255,.8); }
.gi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gi-card {
    display: flex; flex-direction: column; min-width: 0;
    border: 1px solid var(--bd); border-radius: var(--radius); background: #fff; overflow: hidden;
    text-decoration: none; color: inherit;
}
.gi-card:hover { border-color: #2563eb; }
.gi-card.is-out { opacity: .78; }
.gi-card .pic { position: relative; aspect-ratio: 1; background: #f8fafc; }
.gi-card .pic img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.gi-card .body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.gi-card .cat { font-size: 12px; color: #94a3b8; }
.gi-card h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: #0f172a; min-height: 40px; }
.gi-card p {
    margin: 0; color: #64748b; font-size: 12.5px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gi-card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.gi-card .foot b { display: block; color: #2563eb; font-size: 18px; line-height: 1.2; }
.gi-card .foot span { color: #94a3b8; font-size: 12px; }
.gi-card .foot .sub { color: #64748b; font-size: 12px; }
.gi-card .foot em { font-style: normal; color: #64748b; font-size: 12px; margin-left: auto; }
.gi-pkg { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gi-pkg-card {
    display: flex; flex-direction: column; gap: 8px; padding: 16px 18px;
    border: 1px solid var(--bd); border-radius: var(--radius); background: #f8fafc;
}
.gi-pkg-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gi-pkg-card .top b { font-size: 15px; color: #0f172a; }
.gi-pkg-card .top span { color: #2563eb; font-weight: 700; }
.gi-pkg-card p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.6; }
.gi-pkg-card .meta { color: #94a3b8; font-size: 12.5px; }
.gi-pkg-card .btn { align-self: flex-start; margin-top: 4px; }
.goods-price-item span { color: var(--sub); font-size: 12px; }
.goods-price { color: #2563eb; font-size: 18px; }
.goods-official { color: var(--txt); font-size: 16px; font-weight: 600; }
.goods-stock { margin-left: auto; align-self: flex-end; }
.goods-detail { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 22px; align-items: start; }
.goods-main-pic { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--bd); border-radius: var(--radius); background: #f8fafc; }
.goods-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.goods-thumbs img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--bd); border-radius: var(--radius); cursor: pointer; background: #f8fafc; }
.goods-thumbs img.on { border-color: #2563eb; }
.goods-detail-sum { margin: 8px 0 0; line-height: 1.7; }
.goods-detail-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 16px; }
.goods-block-title { margin: 22px 0 10px; font-size: 15px; }
.goods-spec td:first-child { width: 160px; color: var(--sub); }
.goods-rich { line-height: 1.8; overflow-wrap: anywhere; }
.goods-rich img { max-width: 100%; height: auto; }

/* 代发产品详情 · 满屏铺开 */
.page-goods-detail .content { padding: 12px 16px 28px; width: 100%; max-width: none; }
.mall-detail { width: 100%; max-width: none; min-width: 0; }
.md-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 13px; color: #94a3b8; }
.md-crumb a { color: #64748b; }
.md-crumb a:hover { color: #2563eb; }
.md-crumb .sep { color: #cbd5e1; }
.md-crumb .cur { color: #0f172a; }
.md-top {
    display: grid; grid-template-columns: minmax(360px, 1fr) minmax(360px, 1.15fr); gap: 28px;
    padding: 22px 24px; border: 1px solid var(--bd); border-radius: var(--radius); background: #fff;
    width: 100%; box-sizing: border-box;
}
.md-gallery { min-width: 0; }
.md-main-pic {
    position: relative;
    border: 1px solid var(--bd); border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 1 / 1; max-height: min(68vh, 760px); background: #f8fafc;
}
.md-main-pic img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.md-info { min-width: 0; position: sticky; top: 12px; }
.md-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.md-thumb {
    width: 72px; height: 72px; padding: 0; border: 1px solid var(--bd);
    border-radius: var(--radius); cursor: pointer; background: #fff; overflow: hidden;
}
.md-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-thumb:hover, .md-thumb.active { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.16); }
.md-info h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.4; color: #0f172a; }
.md-subtitle { color: #64748b; font-size: 14.5px; margin-top: 10px; line-height: 1.6; }
.md-price-box {
    background: linear-gradient(120deg, #eff6ff, #fff 58%);
    border: 1px solid #bfdbfe; border-radius: 6px;
    padding: 18px 20px; margin: 20px 0; display: flex; flex-direction: column; gap: 10px;
}
.md-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.md-price-row.sub { padding-top: 4px; border-top: 1px dashed #dbeafe; }
.md-price-label { color: #64748b; font-size: 13px; min-width: 56px; }
.md-now { font-size: 34px; font-weight: 700; color: #2563eb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1; }
.md-now small { font-size: 16px; margin-right: 2px; }
.md-old { color: #0f172a; font-size: 18px; font-weight: 600; }
.md-unit { color: #94a3b8; font-size: 13px; }
.md-negotiate { font-size: 26px; font-weight: 700; color: #2563eb; }
.md-attr-list { border-top: 1px solid #e2e8f0; }
.md-attr-list .row { display: flex; padding: 11px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.md-attr-list .row .k { color: #94a3b8; width: 110px; flex-shrink: 0; }
.md-attr-list .row .v { color: #0f172a; font-weight: 500; }
.md-attr-list .row .v a { color: #2563eb; font-weight: 600; }
.md-attr-list .row .v a:hover { text-decoration: underline; }
.md-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.md-btn-main {
    height: 48px; padding: 0 36px; border-radius: 4px; border: none;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff;
    font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; transition: .2s;
}
.md-btn-main:hover { box-shadow: 0 10px 24px rgba(37,99,235,.35); color: #fff; }
.md-btn-outline {
    height: 48px; padding: 0 28px; border-radius: 4px; border: 1px solid var(--bd);
    background: #fff; color: #334155; font-size: 15px; font-weight: 600;
    display: inline-flex; align-items: center; text-decoration: none; transition: .2s;
}
.md-btn-outline:hover { border-color: #2563eb; color: #2563eb; }
.md-trust {
    display: flex; gap: 18px; margin-top: 22px; padding-top: 18px;
    border-top: 1px dashed #e2e8f0; flex-wrap: wrap;
}
.md-trust .it { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 13px; }
.md-trust .ico { color: #2563eb; }
.md-board { margin-top: 16px; width: 100%; }
.md-tabs { display: flex; border-bottom: 2px solid #e2e8f0; gap: 2px; background: #fff; }
.md-tb {
    padding: 13px 24px; font-size: 15px; font-weight: 600; color: #64748b;
    border: 0; background: transparent; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer;
}
.md-tb.active { color: #2563eb; border-bottom-color: #2563eb; }
.md-pane {
    display: none; padding: 24px; background: #fff; border: 1px solid #e2e8f0;
    border-top: 0; border-radius: 0 0 var(--radius) var(--radius); animation: mdFade .25s ease;
}
.md-pane.active { display: block; }
@keyframes mdFade { from { opacity: 0; } to { opacity: 1; } }
.md-rich { font-size: 14.5px; line-height: 1.9; color: #334155; overflow-wrap: anywhere; }
.md-rich p { margin: 0 0 14px; }
.md-rich h4 { font-size: 16px; margin: 0 0 12px; color: #0f172a; }
.md-rich ul, .md-rich ol { margin: 0 0 12px 20px; }
.md-rich li { margin-bottom: 8px; }
.md-rich img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: var(--radius); margin: 12px 0; }
.md-spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.md-spec tr { border: 1px solid #e2e8f0; }
.md-spec td { padding: 12px 16px; }
.md-spec tr td:first-child { background: #f8fafc; color: #64748b; width: 180px; }
.md-related { margin-top: 28px; }
.md-related-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.md-related-head .tag { font-size: 11px; letter-spacing: .08em; color: #2563eb; font-weight: 700; }
.md-related-head h2 { margin: 0; font-size: 20px; color: #0f172a; }
.md-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.md-related-card {
    display: block; border: 1px solid var(--bd); border-radius: 6px; overflow: hidden;
    background: #fff; text-decoration: none; color: inherit; transition: border-color .2s;
}
.md-related-card:hover { border-color: #2563eb; }
.md-related-card .pic { aspect-ratio: 1; background: #f8fafc; }
.md-related-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-related-card .body { padding: 12px; }
.md-related-card .cat { font-size: 12px; color: #94a3b8; }
.md-related-card h3 { margin: 6px 0 10px; font-size: 14px; line-height: 1.45; font-weight: 600; color: #0f172a; min-height: 40px; }
.md-related-card .price b { color: #2563eb; font-size: 16px; }
.md-related-card .price .n { color: #94a3b8; font-size: 12px; margin-left: 6px; }
.md-related-card.is-out { opacity: .72; }
.gd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gd-freight {
    margin-top: 14px; padding: 12px 14px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius);
    font-size: 13px; line-height: 1.7; color: #78350f;
}
.gd-freight b { display: block; margin-bottom: 4px; color: #92400e; }
.gd-soldout {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    padding: 4px 10px; border-radius: var(--radius); background: rgba(180, 83, 9, .92); color: #fff;
    font-size: 12px; font-weight: 700;
}
.gd-soldout.sm { top: 8px; left: 8px; padding: 2px 8px; font-size: 11px; }
.md-related-card .pic { position: relative; }
.gd-ship { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gd-ship article {
    padding: 16px 18px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius);
}
.gd-ship b { display: block; margin-bottom: 6px; color: #0f172a; font-size: 14.5px; }
.gd-ship p { margin: 0; color: #475569; font-size: 13.5px; line-height: 1.75; }
.gd-ship a { color: #2563eb; font-weight: 600; }
.order-goods tr.is-focus { background: #eff6ff; }
@media (max-width: 1100px) {
    .md-top { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
    .md-main-pic { max-height: none; }
    .md-info { position: static; }
    .gd-ship { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .goods-explains, .gi-notes { grid-template-columns: 1fr; }
    .goods-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .md-info h1 { font-size: 22px; }
    .md-now { font-size: 28px; }
    .md-tb { flex: 1; text-align: center; padding: 12px 8px; font-size: 13px; }
    .md-pane { padding: 16px; }
    .md-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .md-btn-main, .md-btn-outline { width: 100%; justify-content: center; }
    .page-goods-detail .content, .page-goods .content { padding: 10px 10px 24px; }
    .gi-hero { padding: 16px; }
    .gi-toolbar .input { max-width: none; }
    .gi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.goods-tag { flex-shrink: 0; font-size: 12px; line-height: 20px; padding: 0 6px; border-radius: var(--radius); background: #f1f5f9; color: #64748b; }
.goods-tag.warn { background: #fef3c7; color: #b45309; }
.pkg-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pkg-list button { height: 32px; }
.order-goods { width: 100%; }
.order-goods td { vertical-align: middle; }
.order-goods .qty { width: 72px; }
.order-goods .ship { width: 168px; max-width: 100%; height: 34px; }
.order-goods .ship-fee { margin-top: 4px; font-size: 12px; min-height: 16px; line-height: 1.3; }
.order-goods .ship-fee.on { color: #2563eb; font-weight: 600; }
.order-goods .ship-fee.muted { color: #94a3b8; }
.pay-box { margin-top: 16px; padding: 16px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: var(--radius); }
.pay-box .fee { font-size: 28px; font-weight: 700; color: #2563eb; }

/* 代发订单详情 · 满屏分区 */
.page-order-detail .content { padding: 12px 16px 28px; width: 100%; max-width: none; }
.order-detail { width: 100%; min-width: 0; }
.od-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
    padding: 18px 22px; background: #fff; border: 1px solid var(--bd); border-radius: var(--radius);
}
.od-no { font-size: 22px; font-weight: 700; color: #0f172a; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.od-meta { margin-top: 6px; color: #64748b; font-size: 13px; }
.od-head-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.od-alert {
    margin-top: 12px; padding: 12px 16px; border-radius: var(--radius);
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13.5px;
}
.od-alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.od-steps {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 12px; padding: 22px 8px 16px; background: #fff;
    border: 1px solid var(--bd); border-radius: var(--radius);
}
.od-step { position: relative; text-align: center; padding: 0 8px; }
.od-step:not(:last-child)::after {
    content: ''; position: absolute; top: 9px; left: calc(50% + 14px); right: calc(-50% + 14px);
    height: 2px; background: #e2e8f0;
}
.od-step.done:not(:last-child)::after, .od-step.fail:not(:last-child)::after { background: #93c5fd; }
.od-dot {
    display: inline-block; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #cbd5e1; background: #fff; position: relative; z-index: 1;
}
.od-step.done .od-dot { border-color: #2563eb; background: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.od-step.current .od-dot { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px #dbeafe; }
.od-step.fail .od-dot { border-color: #ef4444; background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.od-step b { display: block; margin-top: 8px; font-size: 13px; color: #94a3b8; font-weight: 600; }
.od-step.done b, .od-step.current b { color: #0f172a; }
.od-step.fail b { color: #dc2626; }
.od-step small { display: block; margin-top: 4px; font-size: 11px; color: #94a3b8; }
.od-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.od-card { background: #fff; border: 1px solid var(--bd); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.od-card h3 { margin: 0 0 14px; font-size: 15px; color: #0f172a; }
.od-fee-list { display: flex; flex-direction: column; gap: 0; }
.od-fee-list .row, .od-kv .row {
    display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.od-fee-list .row span, .od-kv .row span { color: #64748b; flex-shrink: 0; width: 88px; }
.od-kv .row { justify-content: flex-start; }
.od-kv .row > div { flex: 1; color: #0f172a; word-break: break-all; }
.od-fee-list .row b { color: #0f172a; font-weight: 600; }
.od-fee-list .row.total { border-bottom: 0; padding-top: 14px; align-items: baseline; }
.od-fee-list .row.total span { color: #0f172a; font-weight: 700; }
.od-fee-list .row.total strong { font-size: 28px; color: #2563eb; line-height: 1; }
.od-pay-cta {
    margin-top: 8px; padding: 16px; border: 1px solid #bfdbfe; background: linear-gradient(120deg, #eff6ff, #fff 70%);
    border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.od-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.od-goods tfoot td { background: #f8fafc; font-weight: 600; }
.od-pay-amount { font-size: 28px; font-weight: 700; color: #2563eb; margin-bottom: 16px; }
.od-qr { width: 220px; height: 220px; border: 1px solid #e2e8f0; border-radius: 4px; display: none; margin: 0 auto 8px; }
.od-qr.show { display: inline-block; }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 4px; cursor: pointer; background: #fff; }
.pay-method:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.pay-method input { margin-top: 3px; }
.pay-method .pm-body { display: flex; flex-direction: column; gap: 4px; }
.pay-method b { font-size: 14px; color: #0f172a; }
.pay-method small { font-size: 12px; color: #64748b; line-height: 1.4; }
@media (max-width: 1100px) {
    .od-grid { grid-template-columns: 1fr; }
    .od-steps { grid-template-columns: 1fr 1fr; gap: 16px 0; }
    .od-step:nth-child(2)::after { display: none; }
    .od-step:nth-child(4)::after { display: none; }
}
@media (max-width: 640px) {
    .page-order-detail .content { padding: 10px 10px 24px; }
    .od-head { padding: 14px; }
    .od-no { font-size: 18px; }
    .od-card { padding: 16px; }
    .od-steps { grid-template-columns: 1fr; padding: 16px 12px; }
    .od-step { text-align: left; padding: 8px 0 8px 8px; }
    .od-step::after { display: none; }
    .od-pay-cta .md-btn-main { width: 100%; justify-content: center; }
}
@media (max-width: 900px) {
    .order-build { grid-template-columns: 1fr; }
    .order-side { position: static; }
}

/* ============ 统计安全 ============ */
.sec-crumb { font-size: 12px; color: var(--sub); margin-top: 4px; font-weight: 400; }
.sec-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sec-tab {
    display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
    border-radius: var(--radius); font-size: 13px; font-weight: 600;
    background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}
.sec-tab.tone-ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.sec-tab.tone-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.sec-tab.tone-muted { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.sec-tab.tone-ok.on { background: #059669; color: #fff; border-color: #059669; }
.sec-tab.tone-danger.on { background: #dc2626; color: #fff; border-color: #dc2626; }
.sec-tab.tone-muted.on { background: #ea580c; color: #fff; border-color: #ea580c; }
.sec-stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.sec-stats + .sec-filter, .sec-stats + .sec-set { margin-top: 6px; }
.sec-stat {
    background: #f8fafc; border: 1px solid var(--bd); border-radius: var(--radius);
    padding: 12px 8px; text-align: center;
}
.sec-stat .n { font-size: 20px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.sec-stat .l { margin-top: 4px; font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-stat.danger .n { color: var(--danger); }
.sec-stat.ok .n { color: #059669; }
.sec-filter { margin-bottom: 14px; }
.sec-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.sec-filter-row:last-child { margin-bottom: 0; }
.sec-filter .input { width: auto; min-width: 118px; height: 34px; padding: 0 10px; }
.sec-filter .input.grow { flex: 1; min-width: 180px; }
.sec-filter .sep { color: #94a3b8; font-size: 13px; }
.sec-table .url-path, .url-path {
    font-family: ui-monospace, Consolas, monospace; font-size: 12px;
    color: #1e293b; word-break: break-all; margin-right: 6px;
}
.sec-table .url-path.hot { color: #dc2626; font-weight: 600; }
.sec-table tr.row-warn { background: #fff7ed; }
.sec-table tr.row-block { background: #fef2f2; }
.sec-act { white-space: nowrap; }
.sec-act .btn { height: 26px; padding: 0 8px; font-size: 12px; margin: 0 4px 0 0; }
.sec-btn-ok { border-color: #86efac; color: #059669; background: #fff; }
.sec-btn-ok:hover { background: #059669; color: #fff; border-color: #059669; }
.sec-btn-danger { border-color: #fecaca; color: var(--danger); background: #fff; }
.sec-btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.sec-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sec-foot .pager { padding: 8px 0 0; }
.sec-dl { display: grid; grid-template-columns: 88px 1fr; gap: 10px 14px; margin: 0; font-size: 13px; }
.sec-dl dt { color: var(--sub); }
.sec-dl dd { margin: 0; word-break: break-all; }
.sec-ua { font-size: 12px; color: #475569; }
.sec-set { max-width: 820px; }
.sec-set-item {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 16px 0; border-bottom: 1px solid var(--bd2);
}
.sec-set-txt label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.sec-set-txt p { margin: 0; font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.sec-switch { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sec-switch-txt { font-size: 13px; color: var(--sub); min-width: 42px; }
.sec-set-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
@media (max-width: 1200px) { .sec-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .sec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sec-set-item { flex-direction: column; align-items: flex-start; }
}
