/* ============================================
   今日价格 - 全局样式
   ============================================ */
:root {
    --primary: #c41230;
    --primary-dark: #9e0e27;
    --primary-light: #e8445a;
    --accent: #f5a623;
    --gold: #d4a843;
    --gold-light: #f0d78c;
    --bg-dark: #1a1a2e;
    --bg-card: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-gray2: #eef1f5;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #95a5a6;
    --border: #e8ecf1;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gray);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ========== 顶部导航 ========== */
.navbar {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.navbar-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar-nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.navbar-nav .btn-register {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 600;
}

.navbar-nav .btn-register:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(196,18,48,0.4);
}

.navbar-nav .btn-login {
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.navbar-nav .btn-login:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ========== 首页Hero ========== */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(196,18,48,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(245,166,35,0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== 按钮系统 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #c49b30);
    color: #fff;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #c49b30, var(--gold));
    color: #fff;
    box-shadow: 0 6px 20px rgba(212,168,67,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

/* ========== 特性区域 ========== */
.features {
    max-width: 1200px;
    margin: -60px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ========== 使用步骤 ========== */
.steps {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.step-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

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

/* ========== VIP介绍 ========== */
.vip-section {
    background: linear-gradient(135deg, var(--bg-dark), #16213e);
    padding: 80px 20px;
    color: #fff;
    text-align: center;
}

.vip-section .section-title h2 {
    color: #fff;
}

.vip-section .section-title p {
    color: rgba(255,255,255,0.7);
}

.vip-card {
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(212,168,67,0.05));
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.vip-card::before {
    content: 'VIP';
    position: absolute;
    top: 16px;
    right: -20px;
    background: linear-gradient(135deg, var(--gold), #c49b30);
    color: #fff;
    padding: 4px 40px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(45deg);
}

.vip-price {
    font-size: 56px;
    font-weight: 700;
    color: var(--gold-light);
    margin: 20px 0 8px;
}

.vip-price span {
    font-size: 18px;
    font-weight: 400;
}

.vip-period {
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.vip-features {
    text-align: left;
    margin: 24px 0;
}

.vip-features li {
    padding: 8px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

.vip-features li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
}

/* ========== 表单 ========== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-dark), #16213e);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-card h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-gray);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196,18,48,0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

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

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

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary);
    font-weight: 500;
}

/* ========== 后台布局 ========== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--bg-dark), #16213e);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header .shop-name {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.sidebar-user-info {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.sidebar-user-detail {
    flex: 1;
    min-width: 0;
}

.sidebar-user-detail .name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-detail .role {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--gold), #c49b30);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

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

.sidebar-nav .nav-section {
    padding: 8px 20px 4px;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: rgba(255,255,255,0.3);
}

.sidebar-nav a.active {
    color: #fff;
    background: rgba(196,18,48,0.2);
    border-left-color: var(--primary);
}

.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-nav a .badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
    background: var(--bg-gray);
}

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

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header .breadcrumb {
    font-size: 13px;
    color: var(--text-light);
}

/* ========== 统计卡片 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.stat-icon.blue { background: rgba(52,152,219,0.1); color: #3498db; }
.stat-icon.green { background: rgba(46,204,113,0.1); color: #2ecc71; }
.stat-icon.orange { background: rgba(245,166,35,0.1); color: var(--accent); }
.stat-icon.red { background: rgba(231,76,60,0.1); color: #e74c3c; }
.stat-icon.purple { background: rgba(155,89,182,0.1); color: #9b59b6; }
.stat-icon.gold { background: rgba(212,168,67,0.1); color: var(--gold); }

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* ========== 数据表格 ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

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

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

.card-body.no-padding {
    padding: 0;
}

.table-responsive {
    overflow-x: auto;
}

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

table th, table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

table th {
    background: var(--bg-gray2);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

table tr:hover td {
    background: var(--bg-gray);
}

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

/* ========== 搜索/过滤栏 ========== */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.filter-bar .form-control {
    max-width: 220px;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    background: var(--bg-card);
    transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-dots {
    padding: 8px 6px;
    color: var(--text-light);
}

/* ========== 状态标签 ========== */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active, .badge-vip {
    background: rgba(46,204,113,0.1);
    color: #27ae60;
}

.badge-pending {
    background: rgba(245,166,35,0.1);
    color: #e67e22;
}

.badge-expired, .badge-offline {
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
}

.badge-special {
    background: rgba(196,18,48,0.1);
    color: var(--primary);
}

.badge-soldout {
    background: rgba(108,117,125,0.1);
    color: var(--text-secondary);
}

/* ========== Toast通知 ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
    min-width: 280px;
    max-width: 400px;
}

.toast-success { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.toast-error { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.toast-warning { background: linear-gradient(135deg, #f39c12, #e67e22); }
.toast-info { background: linear-gradient(135deg, #3498db, #2980b9); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== 模态框 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: var(--transition);
}

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

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

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

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

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

/* ========== 顾客浏览页 ========== */
.customer-page {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-card);
}

.customer-header {
    background: #f0f0f0;
    color: #333;
    padding: 32px 24px 24px;
    text-align: center;
}

.customer-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.customer-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.customer-header .shop-address {
    font-size: 13px;
    opacity: 0.8;
}

.customer-header .update-time {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 8px;
}

.product-list {
    padding: 16px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.product-item:hover {
    background: var(--bg-gray);
}

.product-item:last-child {
    border-bottom: none;
}

.product-name {
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.product-price .original-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 6px;
}

.product-price.soldout-price {
    color: var(--text-light);
}

.special-tag {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.soldout-tag {
    background: var(--text-secondary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.customer-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-light);
    font-size: 13px;
}

/* ========== 二维码页面 ========== */
.qrcode-display {
    text-align: center;
    padding: 24px;
}

.qrcode-display img {
    max-width: 300px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
}

.qrcode-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== VIP页面 ========== */
.vip-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vip-plan-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 2px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.vip-plan-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.vip-plan-card .plan-price {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
}

.vip-plan-card .plan-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
}

.vip-plan-card .plan-original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-top: 4px;
}

.vip-plan-card .plan-duration {
    color: var(--text-secondary);
    margin: 12px 0 20px;
    font-size: 14px;
}

.vip-plan-card .vip-features {
    color: var(--text-primary);
}

.vip-plan-card .vip-features li {
    color: var(--text-primary);
}

/* ========== 消息列表 ========== */
.message-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.message-item:hover {
    background: var(--bg-gray);
}

.message-item.unread {
    background: rgba(196,18,48,0.03);
    border-left: 3px solid var(--primary);
}

.message-item .msg-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.message-item .msg-preview {
    color: var(--text-secondary);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-item .msg-time {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 4px;
}

/* ========== 数据备份 ========== */
.backup-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.backup-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.backup-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.backup-card .backup-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.backup-card h4 {
    margin-bottom: 8px;
}

.backup-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(135deg, var(--bg-dark), #16213e);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer p {
    font-size: 14px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .navbar-nav.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .form-control {
        max-width: 100%;
    }

    .vip-plans-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    table th, table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* ========== 移动端侧边栏覆盖 ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* ========== 移动端顶部栏 ========== */
.mobile-header {
    display: none;
    background: linear-gradient(135deg, var(--bg-dark), #16213e);
    color: #fff;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 101;
}

.mobile-header .menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

.mobile-header h4 {
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
}

/* ========== 文件上传 ========== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(196,18,48,0.02);
}

.upload-area .upload-icon {
    font-size: 36px;
    color: var(--text-light);
    margin-bottom: 12px;
}

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

/* ========== 管理员微信信息 ========== */
.wechat-info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.wechat-info-card .wechat-qrcode {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    object-fit: cover;
}

/* ========== 流量统计 ========== */
.stat-chart {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.stat-chart h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.stat-bar .bar-label {
    width: 120px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.stat-bar .bar-fill {
    flex: 1;
    height: 24px;
    background: var(--bg-gray2);
    border-radius: 12px;
    overflow: hidden;
}

.stat-bar .bar-fill .bar-inner {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    transition: width 0.5s ease;
    min-width: 2px;
}

.stat-bar .bar-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
    text-align: right;
}

/* ========== 图标字体(CSS) ========== */
.icon { font-style: normal; }

/* 移动端侧边栏覆盖 */
.sidebar-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:99; }
.sidebar-overlay.show { display:block; }
@media (max-width:768px) { .sidebar { transform:translateX(-100%); } .sidebar.show { transform:translateX(0); } .main-content { margin-left:0; } .stats-grid { grid-template-columns:1fr 1fr; } }

/* ========== 联系区域(PC端两列) ========== */
.contact-section {
    background: var(--bg-gray);
    padding: 30px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ========== 联系区域移动端适配(仅移动端垂直排列) ========== */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-card {
        margin-bottom: 0;
    }
}

/* ========== 顾客浏览页移动端适配 ========== */
@media (max-width: 480px) {
    .customer-header h1 {
        font-size: 20px;
    }
}
