/* ========================================
   餐饮商品订单履约中台 - 公共样式
   版本: 1.0.0
   ======================================== */

/* CSS变量 */
:root {
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --danger-color: #ff4d4f;
    --error-color: #f5222d;
    --info-color: #13c2c2;
    
    --bg-color: #f0f2f5;
    --bg-white: #ffffff;
    --bg-dark: #001529;
    --bg-light: #fafafa;
    
    --text-color: #262626;
    --text-secondary: #8c8c8c;
    --text-muted: #bfbfbf;
    --text-white: #ffffff;
    
    --border-color: #e8e8e8;
    --border-light: #f0f0f0;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* 通用重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   登录页面样式
   ======================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    position: relative;
    z-index: 1;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7b731 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.login-logo .logo-icon i {
    font-size: 32px;
    color: white;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form .form-item {
    margin-bottom: 24px;
}

.login-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.login-form .form-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition-fast);
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.login-form .verify-code {
    display: flex;
    gap: 12px;
}

.login-form .verify-code input {
    flex: 1;
}

.login-form .verify-code img {
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.login-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7b731 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   后台布局样式
   ======================================== */
.admin-layout {
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    width: 220px;
    background: var(--bg-dark);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition-normal);
}

.admin-sidebar.collapsed {
    width: 64px;
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7b731 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-header .logo-icon i {
    font-size: 18px;
    color: white;
}

.sidebar-header .logo-text {
    margin-left: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.collapsed .sidebar-header .logo-text {
    display: none;
}

.sidebar-menu {
    padding: 12px 0;
}

.menu-item {
    margin: 4px 12px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.menu-item a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.menu-item.active a {
    background: var(--primary-color);
    color: white;
}

.menu-item a i {
    font-size: 18px;
    width: 22px;
    flex-shrink: 0;
}

.menu-item a span {
    margin-left: 12px;
    white-space: nowrap;
}

.collapsed .menu-item a span {
    display: none;
}

.menu-item .submenu {
    display: none;
    padding-left: 54px;
}

.menu-item.expanded .submenu {
    display: block;
}

.submenu-item a {
    padding: 8px 16px;
    font-size: 13px;
}

/* ========================================
   主内容区样式
   ======================================== */
.admin-main {
    flex: 1;
    margin-left: 220px;
    min-height: 100vh;
    transition: var(--transition-normal);
}

.admin-sidebar.collapsed + .admin-main {
    margin-left: 64px;
}

.admin-header {
    height: 64px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.header-toggle:hover {
    background: var(--border-color);
}

.header-toggle i {
    font-size: 18px;
    color: var(--text-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.header-user:hover {
    background: var(--border-light);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-action {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    position: relative;
}

.header-action:hover {
    background: var(--border-color);
}

.header-action i {
    font-size: 18px;
    color: var(--text-color);
}

.header-action .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
}

/* ========================================
   内容区样式
   ======================================== */
.admin-content {
    padding: 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* ========================================
   卡片样式
   ======================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ========================================
   统计卡片样式
   ======================================== */
.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #1890ff, #69c0ff);
    color: white;
}

.stat-icon.green {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: white;
}

.stat-icon.orange {
    background: linear-gradient(135deg, #fa8c16, #ffc53d);
    color: white;
}

.stat-icon.red {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.stat-trend {
    font-size: 12px;
    margin-top: 4px;
}

.stat-trend.up {
    color: var(--success-color);
}

.stat-trend.down {
    color: var(--danger-color);
}

/* ========================================
   表格样式
   ======================================== */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--bg-light);
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-color);
}

.table tbody tr:hover {
    background: var(--bg-light);
}

.table-actions {
    display: flex;
    gap: 8px;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 6px;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #73d13d;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #ffc53d;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #ff7875;
}

.btn-default {
    background: var(--bg-white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-default:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* ========================================
   状态标签
   ======================================== */
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    gap: 4px;
}

.status-tag.success {
    background: #f6ffed;
    color: var(--success-color);
    border: 1px solid #b7eb8f;
}

.status-tag.warning {
    background: #fffbe6;
    color: var(--warning-color);
    border: 1px solid #ffe58f;
}

.status-tag.danger {
    background: #fff2f0;
    color: var(--danger-color);
    border: 1px solid #ffccc7;
}

.status-tag.info {
    background: #e6f7ff;
    color: var(--primary-color);
    border: 1px solid #91d5ff;
}

.status-tag.default {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ========================================
   表单样式
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-label.required::after {
    content: '*';
    color: var(--danger-color);
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: var(--bg-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* ========================================
   搜索栏样式
   ======================================== */
.search-bar {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.search-item {
    flex: 1;
    min-width: 200px;
}

.search-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.search-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

/* ========================================
   分页样式
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-white);
}

.pagination-item:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   弹窗样式
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition-fast);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-light);
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 130px);
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================================
   空状态样式
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 40px;
    color: var(--text-muted);
}

.empty-title {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   加载状态
   ======================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-sidebar.collapsed + .admin-main {
        margin-left: 0;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   动画效果
   ======================================== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   工具类
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-muted { color: var(--text-secondary); }

.bg-primary { background: var(--primary-color); }
.bg-success { background: var(--success-color); }
.bg-warning { background: var(--warning-color); }
.bg-danger { background: var(--danger-color); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.d-flex { display: flex; }
.flex-1 { flex: 1; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.login-error {
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid #ffd6d6;
    background: #fff1f0;
    color: #d9363e;
    border-radius: 8px;
    font-size: 13px;
}

/* v10 商品管理父菜单 */
.menu-item.active > a {
    background: var(--primary-color);
    color: white;
}
.menu-item.active .submenu a {
    background: transparent;
    color: rgba(255,255,255,.72);
}
.submenu-item.active a,
.menu-item.active .submenu .submenu-item.active a {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.menu-item.expanded > a {
    color: white;
}

/* v11 商品菜单：父菜单可点击，悬停也展示二级菜单 */
.menu-item:hover > .submenu,
.menu-item.active > .submenu,
.menu-item.expanded > .submenu {
    display: block;
}
.menu-item .submenu {
    margin-top: 4px;
}


/* v12 商品二级菜单优化：固定展示、点击更明确 */
.menu-item.has-submenu {
    position: relative;
}
.menu-item.has-submenu > a {
    position: relative;
    font-weight: 600;
}
.menu-item.has-submenu > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: 12px;
    opacity: .75;
}
.menu-item.has-submenu > .submenu,
.menu-item.product-menu > .submenu {
    display: block;
    margin: 6px 8px 8px 44px;
    padding: 6px 0 6px 12px;
    border-left: 2px solid rgba(255,255,255,.16);
    background: rgba(15, 23, 42, .18);
    border-radius: 0 10px 10px 0;
}
.menu-item.has-submenu .submenu-item,
.menu-item.product-menu .submenu-item {
    margin: 3px 0;
}
.menu-item.has-submenu .submenu-item a,
.menu-item.product-menu .submenu-item a {
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    background: transparent;
    position: relative;
}
.menu-item.has-submenu .submenu-item a::before,
.menu-item.product-menu .submenu-item a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.36);
    margin-right: 9px;
    flex: 0 0 auto;
}
.menu-item.has-submenu .submenu-item a:hover,
.menu-item.product-menu .submenu-item a:hover {
    color: #fff;
    background: rgba(255,255,255,.10);
    transform: translateX(2px);
}
.menu-item.has-submenu .submenu-item.active a,
.menu-item.product-menu .submenu-item.active a,
.menu-item.active .submenu .submenu-item.active a {
    color: #fff;
    background: linear-gradient(135deg, rgba(255,107,53,.88), rgba(247,183,49,.82));
    box-shadow: 0 4px 12px rgba(255,107,53,.22);
}
.menu-item.has-submenu .submenu-item.active a::before,
.menu-item.product-menu .submenu-item.active a::before {
    background: #fff;
}
.admin-sidebar.collapsed .menu-item.has-submenu > .submenu,
.admin-sidebar.collapsed .menu-item.product-menu > .submenu {
    display: none;
}
.product-page-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.product-page-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.product-page-tabs a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.product-page-tabs a.active {
    color: #fff;
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #f7b731);
}

/* v13：商品管理改为无脚本依赖的父子菜单，避免点击二级菜单无响应 */
.product-nav-group {
    margin: 8px 12px 10px;
    padding: 10px 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.product-nav-group .menu-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 10px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
}
.product-nav-group .menu-group-title i {
    width: 22px;
    font-size: 17px;
    color: #fbbf24;
}
.product-nav-group .product-child {
    margin: 4px 0 0 0;
}
.product-nav-group .product-child a {
    min-height: 38px;
    padding: 9px 12px 9px 46px;
    border-radius: 10px;
    color: rgba(255,255,255,.72);
    background: transparent;
    position: relative;
}
.product-nav-group .product-child a::before {
    content: "";
    position: absolute;
    left: 28px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
}
.product-nav-group .product-child a i {
    display: none;
}
.product-nav-group .product-child a:hover {
    color: #fff;
    background: rgba(255,255,255,.10);
    transform: translateX(2px);
}
.product-nav-group .product-child.active a {
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #f7b731);
    box-shadow: 0 6px 14px rgba(255,107,53,.25);
}
.product-nav-group .product-child.active a::before {
    background: #fff;
}
.admin-sidebar.collapsed .product-nav-group .menu-group-title span,
.admin-sidebar.collapsed .product-nav-group .product-child a span {
    display: none;
}
.admin-sidebar.collapsed .product-nav-group .product-child a {
    padding-left: 12px;
    justify-content: center;
}
.admin-sidebar.collapsed .product-nav-group .product-child a::before {
    display: none;
}

/* ========================================
   V18 视觉优化：按钮、表格与弹窗
   ======================================== */
.btn {
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 9px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
    transform: translateY(0);
}
.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 7px 15px rgba(15, 23, 42, 0.10);
}
.btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
}
.btn-primary {
    background: linear-gradient(135deg, #1677ff 0%, #3b82f6 100%);
    border: 1px solid #1677ff;
}
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #095fd3 0%, #2563eb 100%);
}
.btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border: 1px solid #16a34a;
}
.btn-danger {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.btn-danger:hover:not(:disabled) {
    background: #fff5f5;
    color: #b91c1c;
    border-color: #fca5a5;
}
.btn-default {
    background: #fff;
    color: #475569;
    border: 1px solid #dce3ed;
}
.btn-default:hover:not(:disabled) {
    background: #f7faff;
    border-color: #9fc5ff;
    color: #1677ff;
}
.btn-sm {
    min-height: 31px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
}
.btn-lg {
    min-height: 42px;
    padding: 10px 20px;
    font-size: 14px;
}
.form-input,
.form-select {
    border-color: #dfe6ef;
    border-radius: 9px;
}
.form-input:focus,
.form-select:focus {
    border-color: #7bb1ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.10);
}
.table th {
    background: #f8fafc;
    color: #566477;
    font-weight: 600;
}
.table tbody tr {
    transition: background-color .15s ease;
}
.table tbody tr:hover {
    background: #f8fbff;
}
.modal-overlay {
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
}
.modal {
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}
.modal-header {
    padding: 18px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.modal-body {
    padding: 22px;
}
.modal-footer {
    padding: 15px 22px;
    background: #fbfcfe;
}

/* ========================================
   V19 全站视觉统一：按钮、弹窗、菜单、商品切换
   ======================================== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-dark: #0f172a;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* 全站按钮统一为蓝色主视觉，危险操作保留红色 */
.btn {
    min-height: 38px;
    padding: 8px 17px;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1;
    gap: 7px;
    border: 1px solid transparent;
    box-shadow: none;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}
.btn-primary,
.btn-success,
.btn-warning {
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #2563eb;
    box-shadow: 0 5px 13px rgba(37, 99, 235, .18);
}
.btn-primary:hover:not(:disabled),
.btn-success:hover:not(:disabled),
.btn-warning:hover:not(:disabled) {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .24);
}
.btn-default {
    color: #41516a;
    background: #fff;
    border-color: #d6dfeb;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .04);
}
.btn-default:hover:not(:disabled) {
    color: #1d4ed8;
    background: #f7faff;
    border-color: #8bb7ff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .10);
}
.btn-danger {
    color: #dc2626;
    background: #fff;
    border-color: #fecaca;
    box-shadow: none;
}
.btn-danger:hover:not(:disabled) {
    color: #b91c1c;
    background: #fff5f5;
    border-color: #fca5a5;
    box-shadow: 0 6px 14px rgba(220, 38, 38, .08);
}
.btn-sm {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 8px;
}
.search-actions,
.page-actions,
.action-btn-group,
.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 弹窗底部留足空间，按钮不贴底边 */
.modal {
    border-radius: 16px;
}
.modal-header {
    padding: 19px 24px;
}
.modal-body {
    padding: 24px;
    max-height: calc(90vh - 154px);
}
.modal-footer {
    min-height: 82px;
    padding: 18px 24px 26px;
    gap: 12px;
    background: #fbfcff;
    border-top: 1px solid #e8eef6;
    align-items: center;
}
.modal-footer .btn {
    min-width: 96px;
}

/* 侧边栏整体优化 */
.admin-sidebar {
    width: 232px;
    background: linear-gradient(180deg, #101a2f 0%, #0b1324 100%);
    box-shadow: 8px 0 30px rgba(15, 23, 42, .08);
}
.admin-main {
    margin-left: 232px;
}
.admin-sidebar.collapsed {
    width: 72px;
}
.admin-sidebar.collapsed + .admin-main {
    margin-left: 72px;
}
.sidebar-header {
    height: 68px;
    padding: 0 18px;
    border-bottom-color: rgba(255,255,255,.07);
}
.sidebar-header .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 7px 18px rgba(37,99,235,.28);
}
.sidebar-menu {
    height: calc(100vh - 68px);
    padding: 14px 0 24px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.16) transparent;
}
.sidebar-menu::-webkit-scrollbar { width: 5px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 10px; }
.menu-item {
    margin: 3px 11px;
}
.menu-item a {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(226,232,240,.72);
    font-weight: 500;
    position: relative;
}
.menu-item a i {
    width: 24px;
    font-size: 17px;
    text-align: center;
}
.menu-item a span {
    margin-left: 10px;
}
.menu-item a:hover {
    color: #fff;
    background: rgba(96,165,250,.10);
}
.menu-item.active > a {
    color: #fff;
    background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(59,130,246,.90));
    box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.menu-item.active > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #bfdbfe;
}

/* 商品管理父菜单：默认折叠，点击展开；当前商品页面自动展开 */
.product-nav-group {
    margin: 3px 11px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
}
.product-nav-group .menu-group-title {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    color: rgba(226,232,240,.72);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}
.product-nav-group .menu-group-title:hover,
.product-nav-group.is-active-parent .menu-group-title {
    color: #fff;
    background: rgba(96,165,250,.10);
}
.product-nav-group .menu-group-title > i:first-child {
    width: 24px;
    color: inherit;
    font-size: 17px;
    text-align: center;
}
.product-nav-group .menu-group-arrow {
    width: auto;
    margin-left: auto;
    font-size: 11px;
    color: rgba(226,232,240,.55);
    transition: transform .2s ease;
}
.product-nav-group.is-open .menu-group-arrow {
    transform: rotate(180deg);
}
.product-nav-group .product-child {
    display: none;
    margin: 3px 0 0;
}
.product-nav-group.is-open .product-child {
    display: block;
}
.product-nav-group .product-child a {
    min-height: 38px;
    padding: 8px 12px 8px 48px;
    border-radius: 9px;
    color: rgba(203,213,225,.72);
    background: transparent;
    font-size: 13px;
}
.product-nav-group .product-child a::before {
    left: 29px;
    width: 5px;
    height: 5px;
    background: rgba(148,163,184,.72);
}
.product-nav-group .product-child a:hover {
    color: #fff;
    background: rgba(96,165,250,.09);
    transform: none;
}
.product-nav-group .product-child.active a {
    color: #dbeafe;
    background: rgba(37,99,235,.24);
    box-shadow: none;
}
.product-nav-group .product-child.active a::before {
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96,165,250,.12);
}
.admin-sidebar.collapsed .product-nav-group .menu-group-title {
    justify-content: center;
    padding: 10px;
}
.admin-sidebar.collapsed .product-nav-group .menu-group-title span,
.admin-sidebar.collapsed .product-nav-group .menu-group-arrow,
.admin-sidebar.collapsed .product-nav-group .product-child {
    display: none !important;
}

/* 商品列表/分类管理切换，改成简洁分段导航 */
.product-page-tabs {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    background: #f4f7fb;
    box-shadow: 0 3px 10px rgba(15,23,42,.04);
}
.product-page-tabs a {
    min-width: 112px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border: 0;
    border-radius: 9px;
    color: #607086;
    background: transparent;
    box-shadow: none;
    font-weight: 600;
    text-decoration: none;
}
.product-page-tabs a:hover {
    color: #1d4ed8;
    background: rgba(255,255,255,.72);
}
.product-page-tabs a.active {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 6px 14px rgba(37,99,235,.20);
}

@media (max-width: 768px) {
    .modal-footer {
        padding: 16px 18px 22px;
    }
    .modal-footer .btn {
        min-width: 88px;
    }
    .product-page-tabs {
        width: 100%;
    }
    .product-page-tabs a {
        flex: 1;
        min-width: 0;
    }
}

/* ========================================
   V20 菜单修正：去除商品管理卡片感，采用简洁层级导航
   ======================================== */
.product-nav-group {
    position: relative;
    margin: 3px 11px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.product-nav-group .menu-group-title {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    margin: 0;
    border: 0 !important;
    outline: 0;
    border-radius: 10px !important;
    color: rgba(226, 232, 240, .76) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}
.product-nav-group .menu-group-title:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .055) !important;
}
.product-nav-group.is-active-parent .menu-group-title,
.product-nav-group.is-open .menu-group-title {
    color: #fff !important;
    background: rgba(37, 99, 235, .13) !important;
}
.product-nav-group .menu-group-title > i:first-child {
    width: 24px !important;
    flex: 0 0 24px;
    color: #93c5fd !important;
    font-size: 17px !important;
    text-align: center;
}
.product-nav-group .menu-group-arrow {
    width: auto !important;
    margin-left: auto;
    color: rgba(203, 213, 225, .58) !important;
    font-size: 11px !important;
    transition: transform .2s ease, color .18s ease;
}
.product-nav-group.is-open .menu-group-arrow {
    color: #bfdbfe !important;
    transform: rotate(180deg);
}
.product-nav-group.is-open::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 49px;
    bottom: 13px;
    width: 1px;
    background: rgba(148, 163, 184, .22);
    pointer-events: none;
}
.product-nav-group .product-child {
    display: none;
    margin: 2px 0 0 !important;
    position: relative;
    z-index: 1;
}
.product-nav-group.is-open .product-child {
    display: block;
}
.product-nav-group .product-child a {
    min-height: 38px;
    padding: 8px 12px 8px 47px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: rgba(203, 213, 225, .72) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 500;
    transform: none !important;
}
.product-nav-group .product-child a i {
    display: none !important;
}
.product-nav-group .product-child a::before {
    content: '';
    position: absolute;
    left: 22px !important;
    top: 50%;
    width: 7px !important;
    height: 7px !important;
    border: 2px solid #0d1728;
    border-radius: 50%;
    background: #64748b !important;
    box-shadow: none !important;
    transform: translateY(-50%);
}
.product-nav-group .product-child a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .05) !important;
}
.product-nav-group .product-child.active a {
    color: #dbeafe !important;
    background: rgba(37, 99, 235, .17) !important;
    box-shadow: inset 3px 0 0 #60a5fa !important;
}
.product-nav-group .product-child.active a::before {
    background: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .13) !important;
}
.admin-sidebar.collapsed .product-nav-group .menu-group-title {
    justify-content: center;
    padding: 10px !important;
}
.admin-sidebar.collapsed .product-nav-group .menu-group-title span,
.admin-sidebar.collapsed .product-nav-group .menu-group-arrow,
.admin-sidebar.collapsed .product-nav-group .product-child,
.admin-sidebar.collapsed .product-nav-group::after {
    display: none !important;
}

/* 商品列表/分类管理切换：简洁下划线页签 */
.product-page-tabs {
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0 0 20px;
    border: 0;
    border-bottom: 1px solid #e5eaf1;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.product-page-tabs a {
    min-width: 0;
    min-height: 44px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    color: #64748b;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.product-page-tabs a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transform: scaleX(.35);
    transition: transform .18s ease, background-color .18s ease;
}
.product-page-tabs a:hover {
    color: #2563eb;
    background: transparent !important;
}
.product-page-tabs a.active {
    color: #2563eb !important;
    background: transparent !important;
    box-shadow: none !important;
}
.product-page-tabs a.active::after {
    background: #2563eb;
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .product-page-tabs {
        gap: 18px;
        overflow-x: auto;
    }
    .product-page-tabs a {
        flex: 0 0 auto;
    }
}

/* ========================================
   V21 筛选栏统一对齐
   所有列表页的标签、输入框、下拉框和操作按钮按同一底线排列
   ======================================== */
.search-bar {
    padding: 22px 24px;
}

.search-form {
    align-items: flex-end;
    column-gap: 16px;
    row-gap: 16px;
}

.search-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 180px;
}

.search-item label {
    min-height: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    line-height: 20px;
}

.search-item .form-input,
.search-item .form-select {
    height: 48px;
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
}

.search-actions {
    align-self: flex-end;
    min-height: 48px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.search-actions .btn {
    height: 48px;
    min-height: 48px;
    padding: 0 20px;
    margin: 0;
    white-space: nowrap;
}

.search-actions .btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .search-bar {
        padding: 18px;
    }

    .search-form {
        align-items: stretch;
    }

    .search-item {
        width: 100%;
        min-width: 0;
    }

    .search-actions {
        width: 100%;
        min-height: auto;
        align-self: stretch;
        flex-wrap: wrap;
    }

    .search-actions .btn {
        flex: 1 1 120px;
    }
}

/* v24 控制台原生图表与订单编号 */
.native-chart-box {
    position: relative;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
}
.native-chart-box.is-loading { opacity: .62; }
.native-chart-legend {
    position: absolute;
    top: 0;
    right: 8px;
    z-index: 2;
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #64748b;
}
.native-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-orders { background: #2f74f5; }
.legend-success { background: #22c55e; }
.native-trend-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-grid-line { stroke: #edf1f7; stroke-width: 1; }
.chart-axis-text { fill: #94a3b8; font-size: 11px; font-family: inherit; }
.chart-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-orders { stroke: #2f74f5; }
.chart-line-success { stroke: #22c55e; }
.chart-point { stroke: #fff; stroke-width: 1.5; }
.chart-point-orders { fill: #2f74f5; }
.chart-point-success { fill: #22c55e; }
.chart-empty-tip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #94a3b8;
    font-size: 14px;
}
.native-status-wrap {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(140px, 44%) 1fr;
    gap: 24px;
    align-items: center;
}
.native-donut {
    width: min(170px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .03);
}
.native-donut::after {
    content: '';
    position: absolute;
    inset: 24%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .04);
}
.native-donut-center {
    position: absolute;
    inset: 24%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.native-donut-center strong { font-size: 26px; line-height: 1; color: #172033; }
.native-donut-center span { margin-top: 7px; color: #8b96a8; font-size: 12px; }
.native-status-legend { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.status-legend-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #475569; font-size: 13px; }
.status-legend-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.status-legend-name i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.status-legend-value { color: #24324a; white-space: nowrap; font-weight: 600; }
.status-legend-value em { color: #94a3b8; font-style: normal; font-weight: 400; margin-left: 4px; }
.chart-empty-inline { color: #94a3b8; text-align: center; padding: 24px 0; }
.order-number-text {
    color: #28364d;
    font-weight: 600;
    letter-spacing: .1px;
    white-space: nowrap;
}
.order-number-button {
    border: 0;
    background: transparent;
    color: #28364d;
    font: inherit;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}
.order-number-button:hover { color: #2f74f5; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive > .table { min-width: 1120px; }

@media (max-width: 900px) {
    .native-status-wrap { grid-template-columns: 1fr; gap: 18px; }
    .native-donut { width: 140px; }
    .native-status-legend { max-height: 130px; }
}

/* v25 订单列表稳定运行与图表悬停提示 */
.app-toast {
    position: fixed;
    z-index: 99999;
    left: 50%;
    top: 28px;
    transform: translate(-50%, -14px);
    max-width: min(520px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 10px;
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }
.app-toast-success { background: #14804a; }
.app-toast-error { background: #c93c45; }
.app-toast-info { background: #2f68d8; }

.native-chart-tooltip {
    position: absolute;
    z-index: 20;
    left: 0;
    top: 0;
    min-width: 132px;
    max-width: 220px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 10px;
    background: rgba(20, 29, 46, .94);
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .24);
    font-size: 12px;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}
.native-chart-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tooltip-title {
    margin-bottom: 7px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.tooltip-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 22px;
    color: rgba(255,255,255,.82);
}
.tooltip-row span { flex: 1; }
.tooltip-row strong { color: #fff; font-weight: 700; }
.tooltip-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.tooltip-dot.orders { background: #2f74f5; }
.tooltip-dot.success { background: #22c55e; }
.chart-hit-area { fill: transparent; cursor: crosshair; pointer-events: all; }
.chart-hover-line {
    stroke: #94a3b8;
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
}
.chart-hover-line.active { opacity: .7; }
.chart-point { pointer-events: none; }

.native-donut-svg-wrap {
    position: relative;
    width: min(174px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
}
.native-donut-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.donut-segment {
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transition: filter .16s ease, opacity .16s ease, transform .16s ease;
    stroke: #fff;
    stroke-width: .8;
}
.donut-segment:hover,
.donut-segment.active {
    filter: brightness(1.06) saturate(1.05);
    transform: scale(1.025);
}
.native-donut-svg-wrap .native-donut-center {
    inset: 25%;
    pointer-events: none;
}
.status-legend-row {
    padding: 5px 7px;
    margin: -5px -7px;
    border-radius: 7px;
    cursor: default;
    transition: background .15s ease, color .15s ease;
}
.status-legend-row:hover,
.status-legend-row.active { background: #f3f6fb; color: #1f2f4a; }

@media (max-width: 900px) {
    .native-donut-svg-wrap { width: 142px; }
}


/* v26 订单列表来源列与详情展示 */
#orderTable .order-source-head,
#orderTable .order-source-cell {
    min-width: 76px;
    width: 76px;
    white-space: nowrap;
    text-align: center;
}
#orderTable .source-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    white-space: nowrap;
    word-break: keep-all;
    writing-mode: horizontal-tb;
}

/* V27 日志中心 */
.log-type-tabs{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-bottom:18px}.log-type-tabs button{height:62px;border:1px solid #dce5f2;background:#fff;border-radius:14px;color:#526277;font-size:15px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;transition:.18s ease;box-shadow:0 4px 14px rgba(18,40,76,.04)}.log-type-tabs button i{font-size:17px}.log-type-tabs button:hover{border-color:#a8c4f6;color:#2563eb;transform:translateY(-1px)}.log-type-tabs button.active{background:linear-gradient(135deg,#2f73ef,#2462dc);border-color:#2f73ef;color:#fff;box-shadow:0 10px 22px rgba(47,115,239,.22)}.log-search-bar .search-form{align-items:flex-end}.log-search-bar .log-keyword{min-width:260px;flex:1.5}.card-count{color:#778397}.log-table th,.log-table td{vertical-align:middle}.log-time{white-space:nowrap;color:#59687c}.table-subtext{font-size:12px;color:#94a0b2;margin-top:4px}.log-title{font-weight:600;color:#27364b}.log-meta{display:flex;gap:6px;align-items:center;margin-top:6px;max-width:320px}.log-method{font-size:11px;font-weight:700;color:#2563eb;background:#edf4ff;padding:2px 6px;border-radius:5px}.log-endpoint{font-size:12px;color:#8390a3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.log-summary{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#5d6b7e}.loading-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2f73ef;box-shadow:14px 0 #8eb5ff,-14px 0 #8eb5ff;animation:logPulse 1s infinite ease-in-out}@keyframes logPulse{50%{opacity:.35}}.log-error{color:#dc3545}.log-detail-modal{max-width:860px}.log-detail-head{padding:4px 0 16px;border-bottom:1px solid #edf1f6}.log-detail-head h4{font-size:21px;margin:12px 0 4px}.log-detail-head p{color:#7b8797}.log-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.log-detail-grid>div{background:#f8fafc;border:1px solid #edf1f6;border-radius:10px;padding:12px}.log-detail-grid label,.log-detail-block label{display:block;font-size:12px;color:#8793a4;margin-bottom:6px}.log-detail-grid span{font-weight:600;color:#344258}.log-detail-block{margin-top:14px}.log-detail-block pre{white-space:pre-wrap;word-break:break-all;background:#0f172a;color:#dbeafe;border-radius:10px;padding:14px;max-height:260px;overflow:auto;font:13px/1.65 Consolas,Monaco,monospace}.page-total{margin-left:8px;color:#8793a4;font-size:13px}
@media(max-width:1000px){.log-type-tabs{grid-template-columns:repeat(2,1fr)}.log-detail-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.log-type-tabs{grid-template-columns:1fr 1fr;gap:8px}.log-type-tabs button{height:50px;border-radius:10px;font-size:14px}.log-detail-grid{grid-template-columns:1fr}.log-summary{max-width:220px}}

/* V27 代理控制台 */
.agent-welcome-card{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px;padding:26px 30px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#175cd3 0%,#2f73ef 55%,#5d8ff5 100%);box-shadow:0 16px 34px rgba(31,94,210,.2)}.agent-welcome-card .welcome-kicker{display:inline-block;margin-bottom:7px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12px}.agent-welcome-card h2{font-size:24px;margin:0 0 7px}.agent-welcome-card p{margin:0;color:rgba(255,255,255,.78)}.welcome-balance{text-align:right;min-width:210px}.welcome-balance span,.welcome-balance small{display:block;color:rgba(255,255,255,.75)}.welcome-balance strong{display:block;font-size:32px;line-height:1.2;margin:5px 0}.dashboard-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:20px}.dashboard-chart-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:20px}.compact-select{width:auto;min-width:112px;height:40px;padding:0 34px 0 12px}.stat-icon.purple{background:#f1eafe;color:#7c3aed}
@media(max-width:1200px){.dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-chart-grid{grid-template-columns:1fr}}@media(max-width:680px){.agent-welcome-card{align-items:flex-start;flex-direction:column;padding:22px}.welcome-balance{text-align:left}.dashboard-stat-grid{grid-template-columns:1fr}}

/* V27 代理订单、商品、消息模板 */
.agent-order-search .search-item{min-width:170px}.agent-order-table{min-width:1450px}.agent-order-table td{vertical-align:middle}.cell-multiline{max-width:220px;white-space:normal;line-height:1.55}.nowrap,.source-nowrap{white-space:nowrap!important;writing-mode:horizontal-tb!important}.order-detail-modal{max-width:980px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-grid section,.detail-section{border:1px solid #e8edf5;border-radius:14px;background:#fff;overflow:hidden}.detail-grid h4,.detail-section h4{margin:0;padding:16px 20px;border-bottom:1px solid #edf1f6;font-size:16px}.detail-grid dl{display:grid;grid-template-columns:110px 1fr;gap:12px 16px;padding:20px;margin:0}.detail-grid dt{color:#8a96a8}.detail-grid dd{margin:0;color:#26364b;font-weight:500;word-break:break-all}.detail-section{margin-top:18px}.detail-section .table{margin:0}.order-timeline{padding:18px 22px}.order-timeline>div{position:relative;padding:0 0 18px 22px;border-left:2px solid #e6edf7}.order-timeline>div:before{content:"";position:absolute;left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:#2f73ef}.order-timeline time{display:block;font-size:12px;color:#8a96a8;margin-bottom:4px}.order-timeline p{margin:4px 0 0;color:#5e6c80}.product-price-table{min-width:980px}.product-cell{display:flex;align-items:center;gap:12px;min-width:260px}.product-thumb{width:48px;height:48px;border-radius:10px;background:#f3f6fb;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#8aa0bf}.product-thumb img{width:100%;height:100%;object-fit:cover}.product-cell small{display:block;color:#8a96a8;margin-top:5px}.agent-price{font-size:17px;color:#1d66df}
.config-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #edf1f6}.config-section-title h3{font-size:20px;margin:0 0 6px;color:#213149}.config-section-title p{margin:0;color:#7d899a;line-height:1.6}.cfg-tabs{display:flex;gap:8px;padding:6px;background:#f3f6fb;border-radius:12px;margin-bottom:26px}.cfg-tab{flex:1;height:46px;border:0;border-radius:9px;background:transparent;color:#657287;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}.cfg-tab.active{background:#fff;color:#2563eb;box-shadow:0 5px 14px rgba(29,78,150,.1)}.cfg-section{display:none}.cfg-section.active{display:block}.switch-line{display:flex;align-items:center;gap:10px;color:#44536a;font-weight:600;white-space:nowrap}.switch-line input{width:18px;height:18px}.template-token-panel{display:flex;align-items:center;gap:16px;margin-bottom:18px;padding:14px 16px;border:1px solid #e2e9f3;border-radius:12px;background:#f8fbff}.template-token-panel>span{font-weight:700;color:#344258;white-space:nowrap}.token-bar{display:flex;gap:8px;flex-wrap:wrap}.token{border:1px solid #bad0f5;background:#eef5ff;color:#2465d7;border-radius:8px;padding:8px 12px;cursor:pointer}.token:hover{background:#e2edff}.message-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.message-template-card{border:1px solid #e1e8f2;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(24,54,91,.04)}.message-template-card header{display:flex;gap:13px;padding:18px 18px 14px}.message-template-card h4{margin:0 0 5px;font-size:16px}.message-template-card p{margin:0;color:#8490a2;font-size:13px}.template-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center}.template-icon.success{background:#e9f9ef;color:#16a34a}.template-icon.warning{background:#fff7e5;color:#d97706}.template-icon.danger{background:#fff0f0;color:#dc2626}.template-icon.info{background:#edf5ff;color:#2563eb}.message-template-card textarea{border-width:1px 0;border-radius:0;min-height:210px;resize:vertical;font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#fbfcfe}.message-template-card footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px}.char-count{font-size:12px;color:#8c98a9}.config-subcard{padding:20px;border:1px solid #e5ebf3;border-radius:14px;background:#fbfcfe;margin-bottom:16px}.config-subcard h4{margin:0 0 18px;font-size:16px}.notice-box{display:flex;gap:12px;padding:15px 16px;border-radius:12px;background:#eff6ff;color:#365a87;margin-bottom:22px;line-height:1.7}.key-textarea{font:13px/1.6 Consolas,Monaco,monospace}.config-save-bar{display:flex;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid #edf1f6}.template-preview-modal{max-width:600px}.message-preview{white-space:pre-wrap;line-height:1.75;background:#f7f9fc;border:1px solid #e4eaf3;border-radius:12px;padding:20px;color:#26364b;min-height:180px}
@media(max-width:900px){.detail-grid,.message-template-grid{grid-template-columns:1fr}.config-section-title{flex-direction:column}.cfg-tabs{overflow-x:auto}.cfg-tab{min-width:130px}.template-token-panel{align-items:flex-start;flex-direction:column}}@media(max-width:620px){.detail-grid dl{grid-template-columns:90px 1fr}.message-template-card textarea{min-height:180px}}

/* V29：订单状态统一彩色徽章 */
.status-tag {
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}
.status-tag.blue { background:#e8f1ff; color:#1d5fd1; border:1px solid #b9d3ff; }
.status-tag.cyan { background:#e6fbff; color:#087f96; border:1px solid #a7e9f4; }
.status-tag.geekblue { background:#eef0ff; color:#4055c8; border:1px solid #c6ceff; }
.status-tag.purple { background:#f3ebff; color:#7138c7; border:1px solid #d7befd; }
.status-tag.violet { background:#f5ecff; color:#8642c9; border:1px solid #dec5fa; }
.status-tag.gold { background:#fff8df; color:#a56700; border:1px solid #f6d77d; }
.status-tag.green { background:#e9f9ef; color:#137a42; border:1px solid #b9e8c9; }
.status-tag.red { background:#fff0f0; color:#c23434; border:1px solid #ffc7c7; }
.status-tag.orange { background:#fff3e7; color:#b65b00; border:1px solid #ffd0a3; }
.status-tag.magenta { background:#fff0f8; color:#b52a73; border:1px solid #f7bddb; }
.status-tag.gray { background:#f1f4f8; color:#64748b; border:1px solid #d8e0ea; }
.status-tag.blue::before,.status-tag.cyan::before,.status-tag.geekblue::before,
.status-tag.purple::before,.status-tag.violet::before,.status-tag.gold::before,
.status-tag.green::before,.status-tag.red::before,.status-tag.orange::before,
.status-tag.magenta::before,.status-tag.gray::before {
    content:"";
    width:6px;
    height:6px;
    border-radius:50%;
    background:currentColor;
    opacity:.9;
}

/* v34：平台自营 + 代理业务统一后台 */
.admin-nav-group{margin:4px 10px;border-radius:10px;overflow:hidden}.admin-nav-group .menu-group-title{width:100%;height:44px;display:flex;align-items:center;gap:12px;padding:0 13px;border:0;background:transparent;color:var(--sidebar-text,#cbd5e1);font:inherit;cursor:pointer;text-align:left;border-radius:9px;transition:.2s}.admin-nav-group .menu-group-title:hover,.admin-nav-group.is-active-parent>.menu-group-title{background:rgba(255,255,255,.08);color:#fff}.admin-nav-group .menu-group-title>i:first-child{width:20px;text-align:center}.admin-nav-group .menu-group-title>span{flex:1}.admin-nav-group .menu-group-arrow{font-size:11px;transition:transform .2s}.admin-nav-group.is-open .menu-group-arrow{transform:rotate(180deg)}.admin-nav-group .menu-group-children{display:none;padding:2px 0 6px 31px;position:relative}.admin-nav-group.is-open .menu-group-children{display:block}.admin-nav-group .menu-group-children:before{content:"";position:absolute;left:20px;top:4px;bottom:10px;width:1px;background:rgba(148,163,184,.25)}.admin-nav-group .menu-group-children .menu-item{margin:2px 6px}.admin-nav-group .menu-group-children .menu-item a{height:38px;padding:0 10px;gap:9px;border-radius:8px;font-size:14px}.admin-nav-group .menu-group-children .menu-item a i{font-size:12px;width:14px}.admin-nav-group .menu-group-children .menu-item.active a{background:linear-gradient(135deg,rgba(37,99,235,.96),rgba(59,130,246,.86));color:#fff;box-shadow:0 5px 14px rgba(37,99,235,.2)}.admin-sidebar.collapsed .admin-nav-group{margin:4px 8px}.admin-sidebar.collapsed .admin-nav-group .menu-group-title{justify-content:center;padding:0}.admin-sidebar.collapsed .admin-nav-group .menu-group-title span,.admin-sidebar.collapsed .admin-nav-group .menu-group-arrow,.admin-sidebar.collapsed .admin-nav-group .menu-group-children{display:none!important}
.order-center-tabs{display:inline-flex;align-items:center;gap:4px;padding:5px;margin-bottom:18px;border:1px solid #e5eaf2;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}.order-center-tabs a{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 17px;border-radius:9px;color:#64748b;font-weight:600;text-decoration:none;transition:.2s}.order-center-tabs a:hover{color:#2563eb;background:#eff6ff}.order-center-tabs a.active{color:#fff;background:linear-gradient(135deg,#2563eb,#3b82f6);box-shadow:0 6px 16px rgba(37,99,235,.23)}.card-subtitle{margin:5px 0 0;color:#94a3b8;font-size:13px;font-weight:400}.order-center-table{width:100%;min-width:1080px;table-layout:fixed}.order-center-table th,.order-center-table td{vertical-align:middle;padding-left:10px;padding-right:10px}.owner-tag{display:inline-flex;align-items:center;white-space:nowrap;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.4}.owner-tag.green{color:#047857;background:#d1fae5}.owner-tag.purple{color:#6d28d9;background:#ede9fe}.table-secondary-line{display:block;margin-top:5px;color:#94a3b8;font-size:12px;white-space:nowrap}.table-main-text{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amount-text{color:#e11d48;white-space:nowrap}.table-time{display:block;min-width:0;white-space:normal;line-height:1.55}.empty-table-cell i{font-size:38px;color:#cbd5e1}.empty-table-cell p{margin:12px 0 0;color:#94a3b8}.pagination button{min-width:36px;height:36px;padding:0 11px;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:8px;cursor:pointer;margin:0 3px}.pagination button:hover:not(:disabled),.pagination button.active{border-color:#2563eb;background:#2563eb;color:#fff}.pagination button:disabled{opacity:.45;cursor:not-allowed}.order-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-panel{border:1px solid #e8edf4;border-radius:12px;background:#fff;padding:18px}.detail-panel-wide{margin-top:16px}.detail-panel h4{display:flex;align-items:center;gap:8px;margin:0 0 14px;color:#0f172a;font-size:15px}.detail-row{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px dashed #edf0f5}.detail-row:last-child{border-bottom:0}.detail-row span{color:#94a3b8}.detail-row strong{color:#334155;font-weight:600;word-break:break-all}.order-log-list{display:flex;flex-direction:column}.order-log-list .order-log-item{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:start;gap:18px;padding:14px 0;border-bottom:1px solid #eef2f7}.order-log-list .order-log-item:last-child{border-bottom:0}.order-log-list time{display:block;color:#94a3b8;font-size:13px;line-height:1.7;white-space:nowrap}.order-log-list p{min-width:0;margin:0;color:#64748b;line-height:1.7;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.text-right{text-align:right}
@media(max-width:900px){.order-center-tabs{display:flex;overflow-x:auto}.order-center-tabs a{flex:0 0 auto}.order-detail-grid{grid-template-columns:1fr}.order-log-list .order-log-item{grid-template-columns:1fr;gap:4px}.order-search-form .search-item{min-width:calc(50% - 8px)}}
@media(max-width:560px){.order-search-form .search-item{min-width:100%}.order-center-tabs{width:100%}.order-center-tabs a{padding:0 12px}}
.stat-owner-split{display:flex;align-items:center;gap:8px;margin-top:7px;flex-wrap:wrap}.stat-owner-split span{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:12px;font-weight:600}.stat-owner-split span:first-child{background:#ecfdf5;color:#047857}.stat-owner-split span:last-child{background:#f3e8ff;color:#7e22ce}


/* v35：订单中心宽度与筛选区优化 */
.order-center-page .admin-layout{display:block}
.order-center-page .admin-main{width:auto;min-width:0}
.order-center-page .admin-content,.order-center-page .card,.order-center-page .card-body{min-width:0}
.order-center-page .table-responsive{max-width:100%}
.order-search-form{align-items:flex-end;column-gap:12px;row-gap:14px}
.order-search-form .search-item{flex:0 0 auto;min-width:0}
.order-search-form .order-filter-owner{width:140px}
.order-search-form .order-filter-agent{width:210px}
.order-search-form .order-filter-order{width:185px}
.order-search-form .order-filter-buyer{width:155px}
.order-search-form .order-filter-store{width:190px}
.order-search-form .order-filter-status{width:140px}
.order-search-form .order-filter-source{width:120px}
.order-search-form .order-filter-date{width:280px}
.order-search-break{flex:0 0 100%;height:0}
.order-search-form .search-actions{min-width:190px}
.order-center-table col.order-col-no{width:14%}
.order-center-table col.order-col-owner{width:11%}
.order-center-table col.order-col-buyer{width:9%}
.order-center-table col.order-col-product{width:12%}
.order-center-table col.order-col-store{width:14%}
.order-center-table col.order-col-amount{width:8%}
.order-center-table col.order-col-status{width:8%}
.order-center-table col.order-col-source{width:6%}
.order-center-table col.order-col-time{width:11%}
.order-center-table col.order-col-action{width:7%}
.order-center-table .table-main-text,.order-center-table .table-secondary-line,.order-center-table .owner-account-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-center-table .owner-tag{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.order-center-table .btn-sm{padding-left:10px;padding-right:10px}
@media(max-width:1600px) and (min-width:1201px){
.order-search-form .order-filter-owner{width:115px}
.order-search-form .order-filter-agent{width:165px}
.order-search-form .order-filter-order{width:155px}
.order-search-form .order-filter-buyer{width:135px}
.order-search-form .order-filter-store{width:155px}
.order-search-form .order-filter-status{width:115px}
.order-search-form .order-filter-source{width:100px}
}
@media(max-width:1200px){.order-search-break{display:none}.order-search-form .search-item{width:calc(33.333% - 8px)}.order-search-form .order-filter-date{width:calc(66.666% - 4px)}.order-search-form .search-actions{min-width:0}}
@media(max-width:768px){.order-center-page .admin-main{width:100%}.order-search-form .search-item,.order-search-form .order-filter-date{width:calc(50% - 6px)}.order-search-form .search-actions{width:100%}}
@media(max-width:560px){.order-search-form .search-item,.order-search-form .order-filter-date{width:100%}}


/* v36.2：后台列表分页统一优化 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 66px;
    margin: 0;
    padding: 15px 20px;
    border-top: 1px solid #edf1f7;
    background: #fff;
    box-sizing: border-box;
}
.pagination:empty {
    display: none;
}
.pagination .pagination-item,
.pagination button {
    box-sizing: border-box;
    width: auto;
    min-width: 36px;
    height: 36px;
    margin: 0;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #dfe6ef;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all .18s ease;
}
.pagination .pagination-item:hover:not(.disabled):not(.active),
.pagination button:hover:not(:disabled):not(.active) {
    border-color: #93b4ff;
    background: #f5f8ff;
    color: #2563eb;
}
.pagination .pagination-item.active,
.pagination button.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 5px 12px rgba(37, 99, 235, .18);
}
.pagination .pagination-item.disabled,
.pagination button:disabled {
    border-color: #e7ebf1;
    background: #f8fafc;
    color: #b6c0ce;
    opacity: 1;
    cursor: not-allowed;
}
.pagination .page-summary {
    margin-right: auto;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}
.pagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 36px;
    color: #94a3b8;
}
.pagination .pagination-nav {
    min-width: 78px;
}
@media (max-width: 640px) {
    .pagination {
        padding: 12px;
    }
    .pagination .page-summary {
        width: 100%;
        margin: 0 0 4px;
        text-align: center;
    }
    .pagination .pagination-nav {
        min-width: 36px;
        padding: 0 10px;
    }
    .pagination .pagination-nav span {
        display: none;
    }
}

/* v37.4 订单详情旺旺消息补发 */
.detail-action-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.detail-help-text{margin:10px 0 0;color:#8290a6;font-size:13px;line-height:1.7}

/* 暂停展示阿奇索相关入口，保留底层配置以便后续恢复。 */
.menu-item:has(> a[href*="/aqisu"]),
a[href*="/admin/agent/aqisu/"] { display: none !important; }

/* 当前阶段停用的后台入口与淘宝消息动作。 */
.menu-item:has(> a[href="/admin/store"]),
.product-child:has(> a[href="/admin/store"]),
.menu-item:has(> a[href^="/admin/aqisu/"]),
a[href="/admin/store"],
a[href="/admin/order/self"],
a[href^="/admin/aqisu/"],
[data-ww-scene],
[data-manual-send] { display: none !important; }
