:root {
    /* 核心色彩系统 */
    --primary-color: #2563eb;       /* 皇家蓝，更具活力 */
    --primary-hover: #1d4ed8;       /* 深蓝悬停态 */
    --primary-light: #eff6ff;       /* 浅蓝背景 */
    
    /* 中性色系统 */
    --bg-body: #f8fafc;            /* 页面背景，冷灰白 */
    --bg-card: #ffffff;            /* 卡片背景 */
    --text-main: #1e293b;          /*以此代替纯黑，深蓝灰 */
    --text-secondary: #64748b;     /* 次级文字 */
    --border-color: #e2e8f0;       /* 边框颜色 */
    
    /* 功能色 */
    --danger-color: #ef4444;       /* 红色 */
    --success-color: #10b981;      /* 绿色 */
    --warning-color: #f59e0b;      /* 黄色 */

    /* 视觉效果 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 0.75rem;  /* 12px */
    --radius-full: 9999px;
    
    --header-height: 70px;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased; /* 字体抗锯齿 */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* 布局容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header 导航栏 - Glassmorphism */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 24px; /* 显式内边距 */
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 用户导航区域 */
#userNav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 主内容区域 */
#app {
    padding-top: 40px;
    padding-bottom: 60px;
    min-height: calc(100vh - var(--header-height));
}

/* 分类标题 */
.category-section {
    margin-bottom: 48px;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.category-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    margin-right: 12px;
}

/* 商品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}

/* 商品卡片 */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f1f5f9;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px; /* 固定高度防止错位 */
}

.product-stock {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-stock::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--success-color);
    border-radius: 50%;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    color: var(--danger-color);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.product-price::before {
    content: '¥';
    font-size: 14px;
    margin-right: 2px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.5;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-body);
    border-color: #cbd5e1;
    color: var(--primary-color);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* 深蓝灰色蒙层 */
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 确保提示框层级最高 */
#customAlertModal {
    z-index: 2000;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    background: var(--bg-body);
    font-size: 20px;
    transition: all 0.2s;
    z-index: 10;
}

.close-modal:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    font-size: 14px;
    transition: all 0.2s;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 支付方式选择 */
.pay-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.pay-type-item {
    border: 2px solid var(--border-color);
    padding: 16px;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    background: #fff;
}

.pay-type-item:hover {
    border-color: #cbd5e1;
    background: var(--bg-body);
}

.pay-type-item.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: inset 0 0 0 1px var(--primary-color);
}

/* 认证Tab */
.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: var(--radius-md);
}

.auth-tabs .tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: calc(var(--radius-md) - 2px);
    transition: all 0.2s;
}

.auth-tabs .tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* 商品详情弹窗优化 */
.product-detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-image {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-detail-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.product-detail-price {
    color: var(--danger-color);
    font-size: 28px;
    font-weight: 800;
}

.product-detail-stock {
    margin-top: auto;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-body);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    align-self: flex-start;
}

.product-detail-description {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

/* =========================================
   用户中心专用样式
   ========================================= */

.user-info-section, .orders-section {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.user-info-card {
    background: var(--bg-body);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.user-info-card label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.user-info-card .value {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
}

/* 订单列表容器 (卡片式布局) */
.orders-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* 订单卡片样式 */
.order-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.order-no {
    font-size: 13px;
    color: #64748b;
    font-family: monospace;
}

.order-card-body {
    margin-bottom: 16px;
}

.order-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.order-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.order-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--danger-color);
}

.order-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.load-more-container {
    text-align: center;
    padding: 24px 0;
}

.no-more-data {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 24px 0;
}

/* =========================================
   后台管理系统专用样式
   ========================================= */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
}

/* 侧边栏 */
.admin-sidebar {
    width: 260px;
    background: #fff;
    color: var(--text-main);
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;
    box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
    z-index: 10;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.admin-sidebar.collapsed {
    width: 64px;
}

.admin-logo-container {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.admin-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.admin-sidebar.collapsed .admin-logo {
    display: none;
}

.admin-sidebar.collapsed {
    overflow: visible;
}

.admin-sidebar.collapsed .admin-menu {
    overflow: visible;
}

.admin-sidebar.collapsed .menu-item {
    position: relative;
}

.admin-sidebar.collapsed .menu-item .text {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 100;
    font-size: 13px;
    font-weight: 400;
    box-shadow: var(--shadow-md);
}

.admin-sidebar.collapsed .menu-item .text::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 4px solid #1e293b;
}

.admin-sidebar.collapsed .menu-item:hover .text {
    opacity: 1;
    left: 54px;
}

.admin-sidebar.collapsed .admin-logo-container {
    justify-content: center;
    padding: 0;
}

.admin-menu {
    flex: 1;
    padding-top: 16px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    margin: 4px 12px;
    border-radius: 6px;
}

.menu-item:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.menu-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.menu-item .icon {
    font-size: 18px;
    margin-right: 12px;
    min-width: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.admin-sidebar.collapsed .menu-item {
    padding: 0;
    justify-content: center;
}

.admin-sidebar.collapsed .menu-item .icon {
    margin-right: 0;
}

/* 主体内容 */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.admin-header {
    height: 64px;
    background: #fff;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 1001;
    position: sticky;
    top: 0;
}

.admin-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.content-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.admin-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-title-bar h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

/* 表格样式 */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 14px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

/* 状态标签 */
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 500;
}

.status-success {
    background: #ecfdf5;
    color: #059669;
}

.status-error {
    background: #fef2f2;
    color: #dc2626;
}

.status-warning {
    background: #fffbeb;
    color: #d97706;
}

.status-default {
    background: #f1f5f9;
    color: #64748b;
}

/* 响应式辅助类 */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

@media (max-width: 768px) {
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }
}

/* 后台卡片样式 (移动端) */
.admin-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.admin-card-body {
    margin-bottom: 12px;
}

.admin-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.admin-info-row span:last-child {
    color: #1e293b;
    font-weight: 500;
    text-align: right;
}

.admin-card-footer {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 操作按钮 - 增强版 */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary-color);
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.action-btn.danger {
    background-color: #fef2f2;
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.2);
}

.action-btn.danger:hover {
    background-color: var(--danger-color);
    color: #ffffff;
    border-color: var(--danger-color);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* 针对移动端卡片底部的按钮组微调 */
.admin-card-footer .action-btn {
    margin-right: 0;
    margin-left: 8px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    header .container {
        padding: 0 16px;
    }
    
    .product-grid {
        grid-template-columns: 1fr; /* 手机单列 */
        gap: 20px;
    }
    
    .product-card .product-name {
        font-size: 14px;
        height: 40px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-image {
        height: 140px;
    }

    .modal-content {
        width: 100%;
        max-height: 80vh; /* 避免手机端被地址栏遮挡 */
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        top: auto;
        transform: translateY(100%);
        animation: slideUpBottom 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        padding: 24px;
    }
    
    @keyframes slideUpBottom {
        to { transform: translateY(0); }
    }
    
    .close-modal {
        top: 16px;
        right: 16px;
        background: #f1f5f9;
    }

    /* 手机端表格横向滚动 */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 16px;
    }
    
    .table-responsive table {
        min-width: 600px; /* 强制表格最小宽度，触发滚动 */
    }

    /* 后台侧边栏移动端适配 */
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 64px; /* 不超过顶部横条 */
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1000 !important;
        transition: transform 0.3s ease;
        width: 240px !important; /* 减小弹出距离 */
    }

    .admin-overlay {
        top: 64px; /* 遮罩也不超过顶部横条 */
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-sidebar.collapsed {
        width: 260px; /* 移动端不折叠，而是隐藏 */
    }

    /* 移动端强制显示文字，不使用弹出效果 */
    .admin-sidebar.collapsed .menu-item .text {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: transparent;
        color: inherit;
        padding: 0;
        font-size: 14px;
        font-weight: 500;
    }

    /* 移动端显示菜单按钮 */
    #mobileMenuBtn {
        display: inline-flex !important;
    }

    /* 遮罩层 */
    .admin-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .admin-overlay.active {
        display: block;
    }

    .admin-main {
        width: 100%;
        overflow-x: hidden;
    }

    .admin-content {
        padding: 16px;
    }

    .content-card {
        padding: 16px;
        overflow-x: hidden; /* 防止卡片撑开页面 */
    }
    
    /* 移动端订单列表单列 */
    .orders-list-container {
        grid-template-columns: 1fr;
    }
}
