@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 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: 20px;
    --radius-lg: 24px;
    --radius-xl: 28px;
}

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

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ===== 视图容器 ===== */
.view {
    display: none;
    width: 100%;
    min-height: 100vh;
}

.view.active {
    display: block;
}

.view-flex.active {
    display: flex;
}

/* ===== 应用容器 ===== */
.app {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
}

/* ===== 顶部导航 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    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.6);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.navbar-brand .icon svg {
    width: 18px;
    height: 18px;
}

.navbar-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

/* ===== 卡片 ===== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin: 0 16px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow);
}

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

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title .icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-title .icon svg {
    width: 16px;
    height: 16px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ===== 余额卡片 ===== */
.balance-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    margin: 16px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(99,102,241,0.3);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.balance-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.balance-label {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.balance-amount {
    font-size: 40px;
    font-weight: 800;
    margin-top: 4px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.balance-meta {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

.balance-meta-item {
    text-align: center;
}

.balance-meta-value {
    font-size: 18px;
    font-weight: 700;
}

.balance-meta-label {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 2px;
}

/* ===== 提示条 ===== */
.tip-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 14px;
    padding: 12px 16px;
    margin: 0 16px 16px;
    font-size: 13px;
    color: #854d0e;
}

.tip-bar svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #eab308;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.2s;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    outline: none;
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 14px rgba(34,197,94,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    width: auto;
}

/* ===== 登录页 ===== */
.login-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
}

.login-box {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 40px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

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

.login-logo .logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.login-logo .logo-icon svg {
    width: 32px;
    height: 32px;
}

.login-logo h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

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

/* ===== 上传区域 ===== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: all 0.25s;
    cursor: pointer;
    background: var(--bg);
    position: relative;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.03);
}

.upload-area .upload-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.upload-area .upload-icon svg {
    width: 24px;
    height: 24px;
}

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

.upload-area .upload-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ===== 文件队列 ===== */
.file-queue {
    margin-top: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.file-item:hover {
    border-color: var(--border);
}

.file-item.pending { border-color: var(--warning); background: #fffbeb; }
.file-item.uploading { border-color: var(--info); background: #eff6ff; }
.file-item.done { border-color: var(--success); background: #f0fdf4; }
.file-item.error { border-color: var(--danger); background: #fef2f2; }

.file-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-thumb .file-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.file-info {
    flex: 1;
    min-width: 0;
}

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

.file-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.file-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.file-status.waiting { background: #f1f5f9; color: var(--text-secondary); }
.file-status.uploading { background: #dbeafe; color: var(--info); }
.file-status.done { background: #dcfce7; color: var(--success); }
.file-status.fail { background: #fee2e2; color: var(--danger); }

.file-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.file-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.file-remove:hover {
    background: #fee2f2;
    color: var(--danger);
}

.progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* ===== 打印机列表 ===== */
.printer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.printer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface);
}

.printer-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.printer-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05));
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.printer-item .printer-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.printer-item .printer-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.printer-item .printer-info {
    flex: 1;
    min-width: 0;
}

.printer-item .printer-name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.printer-item .printer-status {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.printer-item .printer-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.printer-item .printer-status .dot.online { background: var(--success); box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }
.printer-item .printer-status .dot.offline { background: var(--danger); box-shadow: 0 0 0 2px rgba(239,68,68,0.2); }

.printer-item .printer-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.printer-item.selected .printer-check {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.printer-item.selected .printer-check svg {
    width: 14px;
    height: 14px;
}

/* ===== 设置网格 ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ===== 费用卡片 ===== */
.cost-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 20px;
    margin: 0 16px 16px;
    border: 1px solid #bae6fd;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(186,230,253,0.5);
}

.cost-row:last-child { border-bottom: none; padding-bottom: 0; }
.cost-row:first-child { padding-top: 0; }

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

.cost-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.cost-value.primary {
    color: var(--primary);
    font-size: 20px;
}

/* ===== 时间轴 ===== */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 1px;
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}

.timeline-dot.success { background: var(--success); box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }
.timeline-dot.warning { background: var(--warning); box-shadow: 0 0 0 2px rgba(245,158,11,0.2); }
.timeline-dot.danger { background: var(--danger); box-shadow: 0 0 0 2px rgba(239,68,68,0.2); }

.timeline-content {
    background: var(--bg);
    border-radius: 14px;
    padding: 14px 16px;
}

.timeline-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-title .price {
    color: var(--primary);
    font-weight: 700;
}

.timeline-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-meta span {
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid var(--border);
}

.timeline-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

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

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    background: var(--bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.empty-state .empty-icon svg {
    width: 28px;
    height: 28px;
}

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

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15,23,42,0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== 加载动画 ===== */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== 用户中心 ===== */
.user-header {
    text-align: center;
    padding: 32px 20px 24px;
}

.user-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 12px;
    box-shadow: 0 8px 24px rgba(99,102,241,0.25);
}

.user-phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.user-id {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.logout-btn {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--danger);
    padding: 12px;
    border-radius: 14px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fef2f2;
    border-color: var(--danger);
}

/* ===== 底部提交区 ===== */
.submit-area {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(248,250,252,0.9);
    backdrop-filter: blur(8px);
    padding: 12px 16px 24px;
    border-top: 1px solid var(--border);
    z-index: 50;
}

.queue-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    min-height: 20px;
}

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-footer .btn {
    flex: 1;
}

/* ===== 管理员 ===== */
.admin-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 28px 20px;
    margin: -16px -16px 20px -16px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.admin-header h1 { font-size: 20px; font-weight: 800; }
.admin-header p { font-size: 13px; opacity: 0.85; margin-top: 4px; }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 16px 20px;
}

.admin-stat {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.admin-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.admin-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

.nav-pills {
    display: flex;
    gap: 8px;
    margin: 0 16px 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.nav-pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--border);
    font-family: inherit;
    transition: all 0.2s;
}

.nav-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-table th, .user-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.user-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-table .balance {
    color: var(--primary);
    font-weight: 700;
}

/* ===== 设置项 ===== */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.toggle {
    width: 48px;
    height: 28px;
    background: var(--border);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle.on { background: var(--primary); }

.toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle.on::after { transform: translateX(20px); }

/* ===== PC提示 ===== */
.pc-notice {
    display: none;
}

@media (min-width: 768px) {
    .pc-notice {
        display: flex;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--bg);
        z-index: 9999;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 40px;
    }
    .pc-notice .pc-icon {
        width: 96px;
        height: 96px;
        background: linear-gradient(135deg, var(--primary-light), var(--primary));
        border-radius: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }
    .pc-notice .pc-icon svg { width: 40px; height: 40px; }
    .pc-notice h2 { font-size: 26px; font-weight: 800; }
    .pc-notice p { color: var(--text-secondary); max-width: 400px; font-size: 15px; }
    body > *:not(.pc-notice) { display: none !important; }
}

/* ===== 登录遮罩 ===== */
.login-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
