/* ========== 快递下单平台前台样式 ========== */
* { 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-block; padding: 9px 22px; border-radius: 6px;
    border: 1px solid var(--border); background: #fff; color: var(--text);
    font-size: 14px; cursor: pointer; transition: all .2s; text-align: center;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.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: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-2); }
.form-control {
    width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 14px; font-family: inherit; transition: border-color .2s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(22,119,255,.12); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 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 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; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.data-table th { background: #fafbfc; color: var(--text-2); font-weight: 600; font-size: 13px; }
.data-table tr:hover td { background: #fafcff; }
.data-table td.wrap { white-space: normal; }
.empty { text-align: center; color: var(--muted); padding: 36px 0 !important; }

.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; }

/* 筛选栏 */
.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;
}
.pager .active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.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: 2; flex-wrap: wrap;
}
.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: center;
    text-align: center; min-height: 100%;
}
.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: 1280px) {
    .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; }
}

/* 运单详情弹窗 */
.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) {
    /* 布局：左侧栏 → 顶部横条菜单 */
    .uc-layout { display: block; }
    .uc-sidebar { width: 100%; height: auto; position: static; overflow: visible; }
    .uc-logo { padding: 10px 14px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .uc-menu {
        display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
        padding: 6px 10px; gap: 4px; scrollbar-width: none;
    }
    .uc-menu::-webkit-scrollbar { display: none; }
    .uc-menu .menu-group-title { display: none; }
    .uc-menu a {
        display: inline-block; padding: 8px 14px; font-size: 13px; white-space: nowrap;
        border-left: 0; border-bottom: 2px solid transparent; border-radius: 6px;
        flex-shrink: 0; line-height: 1.4;
    }
    .uc-menu a.active { background: rgba(22,119,255,.25); border-bottom-color: var(--primary); }

    /* 顶栏紧凑（余额挪到首页展示，顶栏让位给标题+充值+头像） */
    .uc-topbar { height: 52px; padding: 0 10px; gap: 8px; }
    .uc-topbar > div:first-child { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .uc-user { gap: 6px; }
    .uc-user-balance { display: none; }
    .uc-user-name { display: none; }
    .uc-avatar { width: 30px; height: 30px; font-size: 13px; }

    /* 内容区与面板 */
    .uc-content { padding: 14px 12px; }
    .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 { 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; }
}
