:root {
    --primary: #4361ee;
    --primary-hover: #3a56d4;
    --primary-light: #eef2ff;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --border-color: #e1e5eb;
    --sidebar-width: 220px;
    --header-height: 60px;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif; background-color: #f5f7fa; color: #333; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ===== 登录页 ===== */
.login-wrap { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.login-container { width: 100%; max-width: 380px; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); padding: 40px; position: relative; overflow: hidden; }
.login-container::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--primary), #4895ef); }
.login-header { text-align: center; margin-bottom: 30px; }
.login-header h2 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.login-header p { color: #666; font-size: 14px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: #555; }
.input-field { position: relative; }
.input-field i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #999; font-size: 16px; }
.input-field input { width: 100%; padding: 12px 12px 12px 40px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 14px; transition: all 0.3s; }
.input-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(67,97,238,0.2); outline: none; }
.btn-login { width: 100%; padding: 12px; background-color: var(--primary); color: white; border: none; border-radius: 6px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.btn-login:hover { background-color: var(--primary-hover); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }
.footer-links { margin-top: 20px; text-align: center; font-size: 14px; color: #666; }
.error-msg { color: #ef4444; font-size: 13px; margin-top: -10px; margin-bottom: 16px; text-align: center; min-height: 18px; }

/* ===== 后台布局 ===== */
.admin-layout { display: flex; flex-direction: column; min-height: 100vh; }
.admin-header { height: var(--header-height); background: white; box-shadow: var(--shadow); display: flex; align-items: center; padding: 0 16px; position: fixed; width: 100%; z-index: 50; border-bottom: 1px solid var(--gray-light); }
.admin-sidebar { width: var(--sidebar-width); background: white; position: fixed; top: var(--header-height); bottom: 0; left: 0; border-right: 1px solid var(--gray-light); overflow-y: auto; transition: transform 0.3s ease; transform: translateX(-100%); z-index: 40; }
.admin-main { flex: 1; padding: 16px; }
.sidebar-active .admin-sidebar { transform: translateX(0); }
.sidebar-active .sidebar-overlay { display: block; }
.sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 30; display: none; }

.nav-menu { list-style: none; padding: 8px 0; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; padding: 10px 12px; color: var(--dark); text-decoration: none; transition: var(--transition); font-size: 14px; }
.nav-link:hover, .nav-link.active { color: var(--primary); background-color: var(--primary-light); }
.nav-icon { margin-right: 8px; font-size: 16px; width: 20px; text-align: center; color: inherit; }
.nav-title { flex: 1; }
.nav-arrow { transition: var(--transition); font-size: 14px; color: var(--gray); }
.nav-item.open .nav-arrow { transform: rotate(90deg); color: var(--primary); }
.sub-menu { list-style: none; background-color: rgba(243,244,246,0.5); display: none; padding-left: 8px; }
.nav-item.open .sub-menu { display: block; }
.sub-link { display: block; padding: 8px 12px 8px 36px; color: var(--gray); text-decoration: none; transition: var(--transition); font-size: 13px; position: relative; }
.sub-link:hover, .sub-link.active { color: var(--primary); background-color: rgba(67,97,238,0.05); }
.sub-link::before { content: ""; position: absolute; left: 24px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background-color: var(--gray); transition: var(--transition); }
.sub-link:hover::before, .sub-link.active::before { background-color: var(--primary); }

.breadcrumb { display: flex; align-items: center; margin-left: 16px; font-size: 14px; overflow: hidden; white-space: nowrap; }
.breadcrumb-item { display: flex; align-items: center; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; transition: var(--transition); }
.breadcrumb-separator { margin: 0 8px; color: var(--gray); font-size: 12px; }
.breadcrumb-current { color: var(--dark); font-weight: 500; }
.header-tools { display: flex; margin-left: auto; align-items: center; gap: 8px; }
.tool-item { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--gray); transition: var(--transition); position: relative; }
.tool-item:hover { color: var(--primary); background-color: var(--primary-light); }
.tool-icon { font-size: 20px; }
.mobile-menu-toggle { display: none; }
.content-iframe { width: 100%; height: calc(100vh - var(--header-height) - 32px); border: none; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.notification-badge { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background-color: var(--danger); color: white; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.notification-dropdown { position: absolute; top: 100%; right: 0; width: 320px; max-height: 400px; overflow-y: auto; background: white; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 100; display: none; margin-top: 10px; }
.notification-dropdown.active { display: block; }
.notification-header { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); display: flex; justify-content: space-between; align-items: center; }
.notification-title { font-weight: 600; color: var(--dark); }
.notification-mark-all { color: var(--primary); font-size: 13px; cursor: pointer; }
.notification-list { list-style: none; }
.notification-item { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); cursor: pointer; }
.notification-item.unread { background-color: rgba(67,97,238,0.05); }
.notification-item-title { font-weight: 500; margin-bottom: 4px; display: flex; justify-content: space-between; }
.notification-item-content { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.notification-item-time { font-size: 12px; color: var(--gray); text-align: right; }
.notification-footer { padding: 10px 16px; text-align: center; border-top: 1px solid var(--gray-light); }
.notification-view-all { color: var(--primary); font-size: 13px; cursor: pointer; }

.stat-card { background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 20px; cursor: default; }
.stat-num { font-size: 30px; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--gray); font-size: 13px; margin-top: 4px; }

/* 主页用户卡片 */
.user-card { display: flex; align-items: center; gap: 16px; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.user-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.user-card-info { flex: 1; }
.user-card-name { font-size: 18px; font-weight: 700; color: var(--dark); }
.user-card-expire { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* 主页功能卡片 */
.home-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.home-head span { font-size: 16px; font-weight: 600; }
.func-grid { display: flex; flex-direction: column; gap: 12px; }
.func-card { width: 100%; display: flex; align-items: center; gap: 14px; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 16px 18px; cursor: pointer; text-align: left; transition: all 0.25s; }
.func-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(67,97,238,0.18); }
.func-card i { font-size: 26px; color: var(--primary); flex-shrink: 0; }
.func-title { font-size: 15px; font-weight: 600; color: var(--dark); white-space: nowrap; }
.func-desc { font-size: 11px; color: var(--gray); margin-top: 3px; white-space: nowrap; }
@media (max-width: 767px) {
    .func-grid { gap: 10px; }
    .func-card { padding: 14px 14px; gap: 10px; }
    .func-card i { font-size: 22px; }
}

/* ===== 三个功能页统一卡片样式 ===== */
.goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.goods-card, .order-card, .admin-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.goods-card:hover, .order-card:hover, .admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}
.goods-card { overflow: hidden; }

/* 商品卡片 */
.goods-img { position: relative; height: 190px; background: #f2f3f5; overflow: hidden; }
.goods-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.goods-card:hover .goods-img img { transform: scale(1.03); }
.goods-status { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: rgba(239,68,68,0.12); color: #ef4444; backdrop-filter: blur(4px); }
.goods-status.on { background: rgba(22,163,74,0.12); color: #16a34a; }
.goods-info { padding: 13px 14px; }
.goods-title { font-size: 14px; font-weight: 600; color: #1e293b; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.goods-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.goods-price { color: #ff5000; font-size: 17px; font-weight: 700; }
.goods-id { color: #94a3b8; font-size: 11px; }
.goods-time { color: #cbd5e1; font-size: 11px; margin-top: 5px; }
.goods-actions { display: flex; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #f1f5f9; }

/* 订单卡片（手机版单列） */
.orders-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.order-card { padding: 16px; }
.order-head { display: flex; align-items: center; gap: 10px; }
.order-name { font-size: 15px; font-weight: 600; color: #1e293b; }
.order-tel { font-size: 13px; color: #4361ee; font-weight: 500; }
.order-head .btn { margin-left: auto; }
.order-addr { font-size: 13px; color: #475569; margin-top: 10px; padding: 10px 12px; background: #f8fafc; border-radius: 10px; line-height: 1.55; }
.order-goods { font-size: 13px; color: #334155; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-meta { display: flex; gap: 16px; margin-top: 9px; font-size: 12px; color: #94a3b8; }
.order-time { font-size: 11px; color: #cbd5e1; margin-top: 7px; }

/* 管理员卡片 */
.admins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.admin-card { display: flex; align-items: center; gap: 14px; padding: 18px 16px; }
.admin-avatar { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, #4361ee, #6a8dff); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-info { flex: 1; min-width: 0; }
.admin-name { font-size: 15px; font-weight: 600; color: #1e293b; }
.admin-rank { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: #f1f5f9; color: #94a3b8; margin-left: 6px; font-weight: 500; }
.admin-rank.high { background: #eef2ff; color: #4361ee; }
.admin-rank.normal { background: #f0fdf4; color: #16a34a; }
.admin-pass { font-size: 13px; color: #64748b; margin-top: 6px; }
.admin-expire { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.admin-actions { display: flex; flex-direction: column; gap: 7px; }

.goods-empty { grid-column: 1 / -1; text-align: center; color: #94a3b8; padding: 50px 0; background: #fff; border-radius: 14px; }

/* ===== 通用页面顶部栏（返回+标题） ===== */
.page-topbar { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; min-height: 34px; }
.top-add-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px; background: #1677ff; color: #fff; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(22,119,255,0.3); }
.page-title { font-size: 16px; font-weight: 600; color: #222; }
.page-topbar .back-btn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.action-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.action-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; border: none; cursor: pointer; color: #fff; }
.action-btn.danger { background: #e74c3c; }
.action-btn.primary { background: #3498db; }
.action-btn.auto { background: #5B5B5B; }
.action-btn.default { background: #f2f3f5; color: #333; }

/* ===== 淘宝商品列表（图片样式） ===== */
.goods-page { padding-bottom: 70px; }
.goods-topbar { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; min-height: 34px; }
.goods-page-title { font-size: 16px; font-weight: 600; color: #222; }
.goods-topbar .back-btn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.goods-list { display: flex; flex-direction: column; gap: 8px; }
.swipe-row { position: relative; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.07); background: #fff; }
.swipe-actions { position: absolute; top: 0; right: 0; display: flex; height: 100%; }
.swipe-btn { width: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 12px; cursor: pointer; user-select: none; }
.swipe-btn.del { background: #f5222d; }
.swipe-btn i { font-size: 18px; margin-bottom: 2px; }
.swipe-content { position: relative; z-index: 1; background: #fff; transition: transform 0.25s ease; touch-action: pan-y; }
.swipe-content.swiped { transform: translateX(-68px); }
.goods-top { display: flex; padding: 10px; gap: 10px; }
.goods-thumb { width: 72px; height: 72px; border-radius: 3px; object-fit: cover; background: #f2f3f5; flex-shrink: 0; }
.goods-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.goods-main .goods-title { font-size: 13px; line-height: 1.4; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-price-line { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 5px; }
.goods-price-line .goods-price { font-size: 20px; font-weight: 700; color: #a94442; }
.goods-no { font-size: 12px; color: #999; }
.goods-ops { display: flex; border-top: 1px solid #ededed; }
.goods-op { flex: 1; text-align: center; padding: 8px 0; font-size: 13px; color: #333; cursor: pointer; border-right: 1px solid #ededed; }
.goods-op:last-child { border-right: none; }
.goods-op.primary { color: #4a90d9; font-weight: 500; }
.goods-op:active { background: #f5f6f8; }
.goods-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 8px; padding: 6px 10px; background: #fff; z-index: 50; box-shadow: 0 -1px 4px rgba(0,0,0,0.06); }
.goods-btn-refresh { flex: 1; padding: 10px; border-radius: 5px; background: #f2f3f5; color: #333; border: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.goods-btn-add { flex: 1.5; padding: 10px; border-radius: 5px; background: #1677ff; color: #fff; border: none; font-size: 14px; font-weight: 500; cursor: pointer; }

/* ===== 底部半屏弹窗（淘宝风格） ===== */
.sheet-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); z-index: 300; display: flex; align-items: flex-end; animation: sheetFade 0.2s ease; }
.sheet-panel { width: 100%; max-height: 75vh; background: #fff; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; animation: sheetUp 0.28s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle { width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: 8px auto; flex-shrink: 0; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 12px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.sheet-title { font-size: 16px; font-weight: 600; color: #222; }
.sheet-close { font-size: 24px; color: #999; cursor: pointer; line-height: 1; }
.sheet-body { flex: 1; overflow-y: auto; padding: 16px; background: #fff; }
.sheet-body .form-group { margin-bottom: 14px; }
.sheet-body .form-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #888; margin-bottom: 7px; }
.sheet-body .form-group label i { font-size: 14px; color: #aaa; }
.sheet-body .form-control { width: 100%; height: 42px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 0 12px; font-size: 14px; color: #222; box-sizing: border-box; transition: border-color 0.2s; }
.sheet-body .form-control:focus { border-color: #1677ff; outline: none; }
.sheet-body .form-control::placeholder { color: #bbb; }
.sheet-body select.form-control { padding-right: 30px; }
.sheet-body .form-row { display: flex; flex-wrap: wrap; gap: 0 12px; }
.sheet-body .form-group.col { flex: 1 1 45%; min-width: 140px; }
.sheet-body .form-group.col-full { flex: 1 1 100%; }
.sheet-body .img-upload { display: flex; gap: 8px; align-items: center; }
.sheet-body .img-upload .form-control { flex: 1; }
.sheet-body .upload-btn { height: 42px; padding: 0 16px; border-radius: 8px; background: #f5f6f8; color: #333; border: 1px solid #eee; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; justify-content: center; white-space: nowrap; flex-shrink: 0; }
.sheet-body .upload-btn:hover { background: #eef2f8; border-color: #1677ff; color: #1677ff; }
.sheet-body .img-preview { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin-top: 8px; border: 1px solid #eee; display: block; }
.sheet-body .radio-group { display: flex; gap: 10px; }
.sheet-body .radio-group label { flex: 1; display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 8px; border: 1px solid #eee; background: #fff; font-size: 14px; color: #666; cursor: pointer; margin: 0; transition: all 0.2s; }
.sheet-body .radio-group label.active { border-color: #1677ff; background: #eef5ff; color: #1677ff; font-weight: 500; }
.sheet-body .perm-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-body .perm-group label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #333; cursor: pointer; }
.sheet-body .perm-group input { width: 16px; height: 16px; margin: 0; }
.sheet-body .quick-date { display: flex; gap: 8px; margin-top: 8px; }
.sheet-body .quick-btn { flex: 1; padding: 8px 0; border-radius: 8px; border: 1px solid #eee; background: #f5f6f8; color: #333; font-size: 13px; cursor: pointer; }
.sheet-body .quick-btn:hover { border-color: #1677ff; color: #1677ff; background: #eef5ff; }
.sheet-footer { display: flex; gap: 10px; padding: 10px 16px 14px; border-top: 1px solid #f0f0f0; flex-shrink: 0; }
.sheet-btn { flex: 1; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 500; border: none; cursor: pointer; }
.sheet-btn.cancel { background: #f2f3f5; color: #333; }
.sheet-btn.save { background: #1677ff; color: #fff; }

/* 图片上传 */
.img-upload { display: flex; gap: 8px; }
.img-upload .form-control { flex: 1; }
.upload-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 6px; background: #1677ff; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.img-preview { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; margin-top: 8px; border: 1px solid #eee; display: block; }

/* 单选组 */
.radio-group { display: flex; gap: 24px; padding: 8px 0; }
.radio-group label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #333; cursor: pointer; }
.radio-group input[type="radio"] { width: 16px; height: 16px; margin: 0; }
@media (max-width: 767px) {
    .goods-grid, .admins-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .goods-img { height: 140px; }
    .admin-card { flex-direction: column; text-align: center; }
    .admin-actions { flex-direction: row; }
}
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--gray-light); color: var(--dark); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.back-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.back-btn i { font-size: 15px; }
.pager { margin-top: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.pager a { padding: 4px 10px; border: 1px solid var(--gray-light); border-radius: 4px; color: var(--primary); text-decoration: none; cursor: pointer; }
.pager a.active { background: var(--primary); color: white; border-color: var(--primary); }
.modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal-box { background: white; border-radius: var(--border-radius); width: 720px; max-width: 95vw; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-light); font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.modal-close { cursor: pointer; color: var(--gray); font-size: 20px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--gray-light); display: flex; justify-content: flex-end; gap: 8px; }
.form-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.form-group.col { flex: 1 1 45%; min-width: 260px; }
.form-group.col-full { flex: 1 1 100%; }
.form-control { width: 100%; padding: 8px 12px; border: 1px solid var(--gray-light); border-radius: 6px; font-size: 14px; }

/* ===== 底部悬浮胶囊导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 30px;
    padding: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    z-index: 300;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.nav-liquid {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    border-radius: 24px;
    background: linear-gradient(135deg, #6ec1ff, #3d9cff);
    box-shadow: 0 4px 14px rgba(77, 166, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
    z-index: 0;
}
.nav-liquid.right { transform: translateX(calc(100% + 6px)); }
.bottom-nav-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    user-select: none;
    white-space: nowrap;
    flex: 1;
}
.bottom-nav-item i { font-size: 16px; }
.bottom-nav-item:hover { color: #4da6ff; }
.bottom-nav-item.active { background: none; color: #fff; }
.bottom-nav-item.active:hover { color: #fff; }
.chat-page { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(250, 251, 253, 0.88); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); overflow: hidden; }
.chat-list-page { height: 100%; display: flex; flex-direction: column; background: #f5f7fa; padding-bottom: 70px; }
/* 顶部删除+在线 */
.chat-top-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.chat-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #222; }
.chat-title i { color: #1677ff; }
.chat-set-btn { width: 34px; height: 34px; border-radius: 8px; background: #fff; border: 1px solid #eee; color: #666; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-del-all { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: #fee2e2; color: #ef4444; border: none; font-size: 13px; cursor: pointer; }
.chat-online-tag { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 12px; background: #dcfce7; color: #16a34a; font-size: 12px; }
.chat-online-tag i { font-size: 8px; }
/* 搜索 */
.chat-search { position: relative; padding: 10px 14px; background: #fff; border-bottom: 1px solid #f5f5f5; }
.chat-search i { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); color: #bbb; font-size: 14px; }
.chat-search input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid #eee; border-radius: 8px; font-size: 14px; outline: none; background: #f7f8fa; box-sizing: border-box; }
.chat-search input:focus { border-color: #1677ff; background: #fff; }
/* 用户列表 */
.chat-user-list { flex: 1; overflow-y: auto; padding: 8px 10px; }
.chat-user-swipe { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.chat-swipe-actions { position: absolute; top: 0; right: 0; display: flex; height: 100%; }
.chat-swipe-btn { width: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font-size: 11px; cursor: pointer; user-select: none; }
.chat-swipe-btn.top { background: #1677ff; }
.chat-swipe-btn.remark { background: #f59e0b; }
.chat-swipe-btn.del { background: #f5222d; }
.chat-swipe-btn i { font-size: 15px; }
.chat-user-item { position: relative; z-index: 1; display: flex; align-items: center; padding: 10px 12px; border: 1px solid #f0f0f0; border-radius: 10px; cursor: pointer; background: #fff; transition: transform 0.25s ease; touch-action: pan-y; }
.chat-user-item.swiped { transform: translateX(-168px); }
.chat-user-remark { font-size: 11px; color: #999; font-weight: 400; margin-left: 4px; }
.chat-top-badge { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 6px; background: #1677ff; color: #fff; font-size: 10px; margin-right: 4px; }
.chat-top-badge i { font-size: 9px; }
.chat-user-item:active { border-color: #1677ff; background: #f5f8ff; }
.chat-user-avatar { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #4a90d9, #1677ff); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-user-main { flex: 1; min-width: 0; margin-left: 10px; }
.chat-user-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.chat-user-name { font-size: 14px; font-weight: 600; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-user-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.chat-user-status.st0 { background: #f1f5f9; color: #94a3b8; }
.chat-user-status.st1 { background: #dcfce7; color: #16a34a; }
.chat-user-status.st2 { background: #fef3c7; color: #d97706; }
.chat-user-status.st3 { background: #dcfce7; color: #16a34a; }
.chat-user-msg { font-size: 12px; color: #999; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-user-right { margin-left: 8px; text-align: right; flex-shrink: 0; }
.chat-user-time { font-size: 11px; color: #bbb; }
.chat-user-badge { display: inline-block; margin-top: 4px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 8px; background: #1677ff; color: #fff; font-size: 11px; padding: 0 4px; }
.chat-empty-box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 0; color: #ccc; }
.chat-empty-box i { font-size: 40px; margin-bottom: 10px; }
/* 分页 */
.chat-pager { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #fff; border-top: 1px solid #f0f0f0; }
.chat-pager-info { font-size: 12px; color: #999; }
.chat-pager-btns { display: flex; gap: 6px; }
.chat-pager-btns button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid #eee; background: #fff; color: #666; cursor: pointer; font-size: 13px; }
.chat-pager-btns button:disabled { opacity: 0.4; cursor: default; }
.chat-pager-btns button:not(:disabled):hover { border-color: #1677ff; color: #1677ff; }
/* 底部开关 */
.chat-switch-bar { display: flex; gap: 10px; padding: 10px 14px; background: #fff; border-top: 1px solid #f0f0f0; }
.chat-switch-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; border-radius: 8px; background: #f5f6f8; color: #666; border: 1px solid #eee; font-size: 13px; cursor: pointer; }
.chat-switch-btn.on { background: #eef5ff; border-color: #cce0ff; color: #1677ff; }
.chat-list-head { padding: 14px 16px; font-size: 15px; font-weight: 600; color: #333; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 6px; position: sticky; top: 0; background: #fff; z-index: 1; }
.chat-list-head i { color: #1677ff; }
.chat-list-item { display: flex; align-items: center; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid #f5f5f5; }
.chat-list-item:active { background: #f5f8ff; }
.chat-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #4a90d9, #1677ff); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-user-avatar-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #f1f3f6; }
.chat-list-info { flex: 1; margin-left: 12px; min-width: 0; }
.chat-list-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: #222; }
.chat-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #eee; color: #888; font-weight: 400; }
.chat-status.on { background: #e8f5e9; color: #2e7d32; }
.chat-list-msg { font-size: 13px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.chat-list-right { text-align: right; margin-left: 8px; flex-shrink: 0; }
.chat-list-time { font-size: 11px; color: #bbb; }
.chat-list-badge { display: inline-block; margin-top: 6px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; background: #f56c6c; color: #fff; font-size: 12px; padding: 0 5px; }
.chat-conv-page { height: 100%; display: flex; flex-direction: column; background: #f5f7fa; }
.chat-conv-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.chat-back-btn { width: 34px; height: 34px; border: none; background: none; cursor: pointer; color: #222; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.chat-back-btn svg { display: block; }
.chat-conv-info { flex: 1; min-width: 0; }
.chat-conv-title { font-weight: 700; font-size: 17px; color: #111; line-height: 1.3; }
.chat-conv-sub { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.chat-conv-area { font-size: 12px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conv-status { font-size: 12px; color: #999; flex-shrink: 0; }
.chat-conv-status.st1, .chat-conv-status.st3 { color: #16a34a; }
.chat-conv-status.st2 { color: #d97706; }
.chat-conv-info-btn { width: 34px; height: 34px; border: none; background: none; color: #999; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; }
.chat-date-tag { align-self: center; font-size: 12px; color: #999; background: #e6e8ea; padding: 3px 10px; border-radius: 6px; margin-bottom: 16px; }
.chat-msg-row { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 14px; }
.chat-msg-row.me { justify-content: flex-end; }
.chat-bubble { display: flex; align-items: flex-end; gap: 8px; max-width: 70%; padding: 9px 13px; border-radius: 8px; background: #f2f2f2; }
.chat-bubble-text { flex: 1; word-break: break-word; font-size: 15px; line-height: 1.45; color: #222; }
.chat-msg-img { max-width: 180px; max-height: 180px; border-radius: 8px; display: block; object-fit: cover; }
.chat-msg-row.me .chat-bubble { background: #c9e7c1; }
.chat-msg-time { font-size: 11px; color: #999; flex-shrink: 0; white-space: nowrap; line-height: 1.45; }
.chat-read-tag { font-size: 10px; color: #bbb; margin-right: 5px; }
.chat-read-tag.on { color: #16a34a; }
.chat-bottom { padding: 10px 12px 12px; background: #f5f7fa; border-top: 1px solid #f0f0f0; }
.chat-quick-row { display: flex; gap: 8px; margin-bottom: 10px; }
.chat-quick-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 10px; background: #eceef2; color: #333; border: none; font-size: 13px; cursor: pointer; }
.chat-quick-btn:active { background: #e2e5ea; }
.chat-input-box { display: flex; align-items: center; gap: 10px; background: #e9ebef; border-radius: 24px; padding: 8px 8px 8px 16px; }
.chat-attach-btn { width: 32px; height: 32px; border: none; background: none; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.chat-input-box input { flex: 1; border: none; background: none; outline: none; font-size: 15px; color: #222; padding: 0; min-width: 0; }
.chat-input-box input::placeholder { color: #999; }
.chat-send-btn { padding: 8px 16px; border: none; background: #1677ff; color: #fff; border-radius: 20px; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.chat-send-btn:active { background: #0f5fd8; }
.talk-item { padding: 12px 14px; border-bottom: 1px solid #f5f5f5; font-size: 14px; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; transition: background 0.2s, transform 0.15s; }
.talk-item:active { background: #f5f8ff; }
.talk-item.dragging { background: #eef5ff; box-shadow: 0 2px 8px rgba(22,119,255,0.18); transform: scale(1.01); border-radius: 8px; }
.talk-drag { width: 20px; color: #ccc; font-size: 16px; cursor: grab; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.talk-text { flex: 1; min-width: 0; word-break: break-word; }
.talk-del { width: 28px; height: 28px; border: none; border-radius: 50%; background: #fff1f0; color: #f5222d; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.talk-empty { text-align: center; color: #bbb; padding: 30px 0; font-size: 13px; }
.speech-add-row { display: flex; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #f5f5f5; margin-bottom: 4px; }
.speech-input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid #eee; border-radius: 8px; font-size: 14px; outline: none; background: #f8f9fb; box-sizing: border-box; }
.speech-input:focus { border-color: #1677ff; background: #fff; }
.speech-add-btn { padding: 0 18px; height: 40px; border: none; border-radius: 8px; background: #1677ff; color: #fff; font-size: 14px; cursor: pointer; flex-shrink: 0; }
/* 对话设置半屏 */
.conv-actions { display: flex; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #f5f5f5; }
.conv-action-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-radius: 10px; background: #f5f6f8; border: 1px solid #eee; color: #333; font-size: 13px; cursor: pointer; }
.conv-action-btn i { font-size: 18px; color: #666; }
.conv-action-btn.danger { background: #fff1f0; border-color: #ffccc7; color: #f5222d; }
.conv-action-btn.danger i { color: #f5222d; }
.conv-info-title { padding: 16px 0 10px; font-size: 13px; font-weight: 600; color: #999; }
.conv-info-list { background: #f8f9fb; border-radius: 10px; padding: 4px 12px; }
.conv-info-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef0f3; font-size: 14px; }
.conv-info-item:last-child { border-bottom: none; }
.conv-info-k { color: #999; flex-shrink: 0; }
.conv-info-v { color: #222; text-align: right; word-break: break-all; }
.conv-info-gid { color: #999; font-size: 12px; margin-left: 2px; }
.conv-copy-btn { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 3px 8px; border-radius: 6px; background: #eef5ff; border: 1px solid #cce0ff; color: #1677ff; font-size: 11px; cursor: pointer; vertical-align: middle; }
.conv-copy-btn:active { background: #dbeafe; }
/* 通用弹窗 */
.dlg-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); z-index: 400; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dlg-box { width: 100%; max-width: 320px; background: #fff; border-radius: 14px; padding: 20px 18px 14px; animation: dlgPop 0.2s ease; }
@keyframes dlgPop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dlg-title { font-size: 16px; font-weight: 600; color: #222; text-align: center; margin-bottom: 10px; }
.dlg-msg { font-size: 14px; color: #666; text-align: center; line-height: 1.55; margin-bottom: 14px; }
.dlg-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #eee; border-radius: 8px; font-size: 14px; outline: none; background: #f8f9fb; box-sizing: border-box; margin-bottom: 14px; }
.dlg-input:focus { border-color: #1677ff; background: #fff; }
.dlg-btns { display: flex; gap: 10px; }
.dlg-btn { flex: 1; height: 40px; border-radius: 8px; border: none; font-size: 14px; cursor: pointer; }
.dlg-btn.cancel { background: #f5f6f8; color: #666; }
.dlg-btn.ok { background: #1677ff; color: #fff; }
.dlg-btn.ok.danger { background: #f5222d; }
/* 轻提示 */
.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); background: rgba(0,0,0,0.82); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: 8px; z-index: 100000; max-width: 88%; text-align: center; line-height: 1.5; box-shadow: 0 4px 16px rgba(0,0,0,.2); animation: toastDrop .22s ease-out; }
@keyframes toastDrop { from { opacity: 0; transform: translateX(-50%) translateY(-12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.chat-empty { text-align: center; color: #999; padding: 40px 0; font-size: 14px; }
@media (max-width: 767px) {
    .chat-list { width: 110px; }
    .chat-list-info { display: none; }
    .chat-list-right { display: none; }
}


@media (min-width: 768px) {
    .mobile-menu-toggle { display: none !important; }
}
@media (max-width: 767px) {
    :root { --header-height: 56px; --sidebar-width: 200px; }
    .breadcrumb { display: none; }
    .mobile-menu-toggle { display: flex; }
    .tool-item:not(.mobile-menu-toggle):not(.exit-btn) { display: none; }
    .nav-link { padding: 12px 15px; }
    .sub-link { padding: 10px 15px 10px 45px; }
    .tool-item.exit-btn { display: flex; background: var(--danger); color: white; }
    .login-container { padding: 30px 20px; }
    .login-header h2 { font-size: 20px; }
}

/* ===== 商品记录页（还原 Goods_OrderList120888 样式） ===== */
.orders-page .mobile-header { padding: 15px 0; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e7e7e7; }
.orders-page .mobile-header h1 { font-size: 18px; color: #34495e; font-weight: 600; display: flex; align-items: center; }
.orders-page .action-buttons { display: flex; gap: 10px; }
.orders-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.3s; border: none; cursor: pointer; color: #fff; }
.orders-page .btn-danger { background-color: #e74c3c; }
.orders-page .btn-primary { background-color: #3498db; }
.orders-page .btn-auto { background-color: #5B5B5B; }
.orders-page .btn:hover { opacity: 0.9; transform: translateY(-1px); }
.orders-page .order-card { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 15px; overflow: hidden; transition: all 0.3s; }
.orders-page .order-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.orders-page .card-header { background-color: #4F9D9D; color: white; padding: 12px 15px; font-weight: 500; }
.orders-page .card-body { padding: 15px; }
.orders-page .order-step { display: flex; justify-content: space-between; margin-bottom: 15px; position: relative; }
.orders-page .step-item { text-align: center; position: relative; flex: 1; }
.orders-page .step-dot { width: 24px; height: 24px; border-radius: 50%; background-color: #ddd; margin: 0 auto 5px; position: relative; z-index: 1; }
.orders-page .step-dot.active { background-color: #2ecc71; }
.orders-page .step-label { font-size: 12px; color: #95a5a6; }
.orders-page .step-label.active { color: #34495e; font-weight: 500; }
.orders-page .order-detail { margin-bottom: 10px; }
.orders-page .detail-item { display: flex; margin-bottom: 8px; }
.orders-page .detail-label { min-width: 70px; color: #95a5a6; font-weight: 500; }
.orders-page .detail-value { flex: 1; }
.orders-page .card-footer { padding: 12px 15px; background-color: #f8f9fa; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 8px; }
.order-refresh-btn { padding: 8px 16px; border-radius: 6px; background: #eef5ff; color: #1677ff; border: 1px solid #cce0ff; font-size: 13px; font-weight: 500; cursor: pointer; }

/* 顶部操作按钮（刷新+设置） */
.top-actions { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.top-refresh-btn, .top-set-btn { width: 34px; height: 34px; border-radius: 8px; background: #fff; border: 1px solid #eee; color: #666; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* 设置半屏行 */
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.set-row:last-child { border-bottom: none; }
.set-label { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #333; }
.set-label i { color: #999; }
.set-danger-btn { padding: 8px 18px; border-radius: 8px; background: #fff1f0; color: #f5222d; border: 1px solid #ffccc7; font-size: 14px; cursor: pointer; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ddd; border-radius: 26px; transition: 0.25s; }
.switch .slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.25s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch input:checked + .slider { background: #1677ff; }
.switch input:checked + .slider:before { transform: translateX(22px); }
.switch.on .slider { background: #1677ff; }
.switch.on .slider:before { transform: translateX(22px); }
.orders-page .empty-state { text-align: center; padding: 40px 20px; }
.orders-page .empty-icon { font-size: 40px; color: #ddd; margin-bottom: 15px; }
.orders-page .empty-text { color: #95a5a6; font-size: 16px; }
.orders-page .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 20px; }
.orders-page .page-btn { padding: 6px 12px; border-radius: 4px; background-color: white; color: #3498db; text-decoration: none; font-size: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); cursor: pointer; border: none; }
.orders-page .page-btn.active { background-color: #3498db; color: white; }
@media (max-width: 576px) {
    .orders-page .mobile-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .orders-page .action-buttons { width: 100%; }
    .orders-page .btn { flex: 1; text-align: center; }
    .orders-page .step-label { font-size: 11px; }
}

/* ===== 商品记录页 · 淘宝商品页风格 ===== */
.orders-page { min-height: 100%; background: #f5f5f5; }
.tb-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: 52px; padding: 0 12px; background: linear-gradient(135deg, #ff5000, #ff2e00); color: #fff; box-shadow: 0 2px 8px rgba(255,80,0,.25); }
.tb-back { background: none; border: none; color: #fff; font-size: 22px; padding: 6px; cursor: pointer; }
.tb-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: 1px; }
.tb-actions { display: flex; gap: 4px; }
.tb-icon-btn { background: rgba(255,255,255,.18); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.tb-order-list { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.tb-order-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.tb-goods-row { display: flex; gap: 12px; padding: 14px 14px 10px; border-bottom: 1px dashed #f0f0f0; }
.tb-goods-img { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(135deg,#ff9a3d,#ff5000); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; flex-shrink: 0; overflow: hidden; }
.tb-goods-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.tb-price { color: #ff5000; font-weight: 700; font-size: 14px; }
.tb-goods-info { flex: 1; min-width: 0; }
.tb-goods-title { font-size: 15px; font-weight: 600; color: #222; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-goods-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tb-state-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #fff1ec; color: #ff5000; border: 1px solid #ffd2c2; }
.tb-state-tag.st-2, .tb-state-tag.st-3 { background: #e8f7ee; color: #1a9e46; border-color: #b8e6c8; }
.tb-state-tag.st-4 { background: #eef4ff; color: #2b6de8; border-color: #c2d8ff; }
.tb-time { font-size: 12px; color: #999; }
.tb-buyer { padding: 10px 14px; }
.tb-buyer-row { display: flex; gap: 10px; padding: 5px 0; font-size: 13px; }
.tb-lbl { color: #999; width: 52px; flex-shrink: 0; }
.tb-val { color: #333; flex: 1; word-break: break-all; }
.tb-tel { color: #ff5000; font-weight: 600; }
.tb-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid #f5f5f5; background: #fafafa; }
.tb-order-id { font-size: 12px; color: #bbb; }
.tb-del-btn { background: none; border: none; color: #ff2e00; font-size: 13px; padding: 4px 10px; border-radius: 14px; border: 1px solid #ffd2c2; cursor: pointer; }
.tb-empty { text-align: center; padding: 80px 20px; }
.tb-empty-icon { font-size: 52px; }
.tb-empty-text { color: #bbb; margin-top: 12px; font-size: 14px; }
/* ===== 商品记录 · 客户流程步骤条 ===== */
.tb-steps { display: flex; padding: 12px 14px 8px; border-bottom: 1px dashed #f0f0f0; }
.tb-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.tb-step:not(:last-child)::after { content: ''; position: absolute; top: 6px; left: 58%; right: -42%; height: 2px; background: #e8e8e8; }
.tb-step.done:not(:last-child)::after { background: #ff5000; }
.tb-step-dot { width: 14px; height: 14px; border-radius: 50%; background: #e8e8e8; border: 2px solid #fff; box-shadow: 0 0 0 1px #e0e0e0; z-index: 1; }
.tb-step-dot.done { background: #ffb199; box-shadow: 0 0 0 1px #ffb199; }
.tb-step-dot.current { background: #ff5000; box-shadow: 0 0 0 1px #ff5000; }
.tb-step-txt { font-size: 10px; color: #bbb; }
.tb-step-txt.done { color: #ff8a5c; }
.tb-step-txt.current { color: #ff5000; font-weight: 600; }
/* ===== 用户管理 · 查看密码按钮 ===== */
.admin-viewpass { background: none; border: none; color: #4361ee; font-size: 11px; cursor: pointer; padding: 0 2px; }
/* ===== 主页功能菜单 · 文字区 & 退出登录 ===== */
.func-text { flex: 1; min-width: 0; }
.func-card-logout i { color: #ef4444; }
.func-card-logout .func-title { color: #ef4444; }
/* ===== 功能菜单 / 底部导航 · SVG 图标 ===== */
.func-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; color: var(--primary); }
.func-icon svg { width: 100%; height: 100%; }
.nav-svg { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
.nav-svg svg { width: 100%; height: 100%; }
/* ===== 淘直开分享面板 ===== */
.tbshare-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 99999; display: flex; align-items: flex-end;
    animation: tbshareFade .18s ease-out;
}
.tbshare-panel {
    width: 100%; background: #f7f7f7; border-radius: 16px 16px 0 0;
    padding: 8px 0 0; max-height: 86vh; overflow-y: auto;
    animation: tbshareUp .26s cubic-bezier(.25,.9,.3,1);
}
.tbshare-bar { width: 34px; height: 4px; border-radius: 2px; background: #cfcfcf; margin: 0 auto 12px; }
.tbshare-head { text-align: center; font-size: 15px; font-weight: 600; color: #1a1d22; padding: 0 16px 14px; }
.tbshare-goods { display: flex; gap: 10px; padding: 0 16px 14px; align-items: center; }
.tbshare-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #eee; flex-shrink: 0; }
.tbshare-meta { flex: 1; min-width: 0; }
.tbshare-name { font-size: 13px; color: #1a1d22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbshare-price { font-size: 15px; color: #ff5000; font-weight: 600; margin-top: 4px; }
.tbshare-opts { background: #fff; margin: 0 12px; border-radius: 12px; overflow: hidden; }
.tbshare-opt { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tbshare-opt:last-child { border-bottom: none; }
.tbshare-opt:active { background: #f5f6f8; }
.tbshare-opt-main { font-size: 15px; color: #1a1d22; font-weight: 500; }
.tbshare-opt-sub { font-size: 12px; color: #999; margin-top: 4px; }
.tbshare-loading { text-align: center; font-size: 13px; color: #999; padding: 14px 0; }
.tbshare-result { margin: 12px 12px 0; background: #fff; border-radius: 12px; padding: 14px; }
.tbshare-res-label { font-size: 13px; color: #666; margin-bottom: 8px; }
.tbshare-res-url { font-size: 12px; color: #4a90d9; word-break: break-all; background: #f7f9fc; padding: 10px; border-radius: 8px; line-height: 17px; }
.tbshare-res-text { font-size: 12px; color: #333; background: #fff8f0; border: 1px solid #ffe0c0; padding: 10px; border-radius: 8px; margin-top: 8px; line-height: 18px; word-break: break-all; }

.tbshare-res-btns { display: flex; gap: 10px; margin-top: 10px; }
.tbshare-btn { flex: 1; height: 38px; line-height: 38px; border-radius: 19px; border: none; background: #f0f2f5; color: #333; font-size: 14px; cursor: pointer; text-align: center; text-decoration: none; font-family: inherit; }
.tbshare-btn.primary { background: linear-gradient(90deg,#ff7a00,#ff5000); color: #fff; }
.tbshare-cancel { margin: 12px 12px 20px; height: 44px; line-height: 44px; text-align: center; background: #fff; border-radius: 22px; font-size: 15px; color: #333; cursor: pointer; }
.tbshare-cancel:active { background: #f0f0f0; }
@keyframes tbshareUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes tbshareFade { from { opacity: 0; } to { opacity: 1; } }

/* ===== 直开配置 ===== */
.tbconfig-page { min-height: 100%; }
.tbconfig-body { padding: 16px; }
.tbconfig-card { background: #fff; border-radius: 14px; padding: 18px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.tbconfig-tip { font-size: 13px; color: #666; line-height: 20px; background: #f7f9fc; padding: 12px; border-radius: 8px; margin-bottom: 18px; }
.tbconfig-tip code { background: #eef2f8; padding: 1px 5px; border-radius: 4px; color: #4a90d9; font-size: 12px; }
.tbconfig-field { margin-bottom: 18px; }
.tbconfig-field label { display: block; font-size: 14px; color: #1a1d22; font-weight: 500; margin-bottom: 8px; }
.tbconfig-field input { width: 100%; height: 44px; border: 1px solid #e3e6eb; border-radius: 10px; padding: 0 14px; font-size: 14px; color: #1a1d22; outline: none; background: #fafbfc; box-sizing: border-box; font-family: inherit; }
.tbconfig-field input:focus { border-color: #4a90d9; background: #fff; }
.tbconfig-preview { background: #f7f9fc; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
.tbconfig-preview-label { font-size: 12px; color: #999; margin-bottom: 6px; }
.tbconfig-preview-url { font-size: 13px; color: #4a90d9; word-break: break-all; line-height: 19px; }
.tbconfig-btn { width: 100%; height: 46px; border-radius: 23px; border: none; background: linear-gradient(90deg,#ff7a00,#ff5000); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.tbconfig-btn:active { opacity: .85; }
.tbconfig-btn:disabled { opacity: .6; }

/* ===== 分享图半屏弹窗 ===== */
.shareimg-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 99999; display: flex; align-items: flex-end;
    animation: tbshareFade .18s ease-out;
}
.shareimg-panel {
    width: 100%; height: 82vh; background: #f2f3f5;
    border-radius: 16px 16px 0 0;
    display: flex; flex-direction: column;
    animation: tbshareUp .26s cubic-bezier(.25,.9,.3,1);
    overflow: hidden;
}
.shareimg-bar { width: 34px; height: 4px; border-radius: 2px; background: #cfcfcf; margin: 8px auto 0; flex-shrink: 0; }
.shareimg-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; flex-shrink: 0; }
.shareimg-title { font-size: 15px; font-weight: 600; color: #1a1d22; }
.shareimg-close { font-size: 13px; color: #888; background: #fff; border: none; border-radius: 14px; padding: 6px 14px; cursor: pointer; font-family: inherit; }
.shareimg-close:active { background: #f0f0f0; }

.shareimg-frame { flex: 1; width: 100%; border: none; background: #f2f3f5; display: block; }

.tbconfig-switch { display: flex; align-items: center; justify-content: space-between; padding: 14px; background: #f7f9fc; border-radius: 10px; margin-bottom: 16px; gap: 12px; }
.tbconfig-switch-text { flex: 1; min-width: 0; }
.tbconfig-switch-title { font-size: 14px; font-weight: 600; color: #1a1d22; }
.tbconfig-switch-desc { font-size: 12px; color: #999; margin-top: 4px; line-height: 16px; }
.tbconfig-switch-desc b { color: #ff5000; }
.tbconfig-toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; cursor: pointer; display: block; }
.tbconfig-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.tbconfig-toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 13px; transition: .2s; }
.tbconfig-toggle-slider:before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.tbconfig-toggle input:checked + .tbconfig-toggle-slider { background: #00a650; }
.tbconfig-toggle input:checked + .tbconfig-toggle-slider:before { transform: translateX(20px); }
.tbconfig-toggle.disabled { opacity: .6; }

.tbconfig-field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.tbconfig-field-head label:first-child { margin-bottom: 0; }
.tbconfig-toggle.small { width: 40px; height: 22px; }
.tbconfig-toggle.small .tbconfig-toggle-slider { border-radius: 11px; }
.tbconfig-toggle.small .tbconfig-toggle-slider:before { width: 16px; height: 16px; left: 3px; top: 3px; }
.tbconfig-toggle.small input:checked + .tbconfig-toggle-slider:before { transform: translateX(18px); }
