/* 基础样式 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e1b4b;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--light);
    color: #374151;
    min-height: 100vh;
}

/* 布局 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.logo i {
    font-size: 1.75rem;
    color: var(--primary);
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

nav {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

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

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.connection-status.connected {
    color: var(--success);
}

.connection-status i {
    font-size: 0.5rem;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* 页面切换 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 仪表盘网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 状态卡片 */
.status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.card-content h3 {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.card-content p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

/* 套餐卡片 */
.plan-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.plan-features {
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--gray);
}

.feature i {
    color: var(--success);
}

.plan-price {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 0.75rem;
    color: white;
}

.price {
    font-size: 2rem;
    font-weight: 700;
}

/* 操作卡片 */
.action-card h3 {
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 日志卡片 */
.log-card {
    grid-column: span 2;
}

.log-card h3 {
    margin-bottom: 1rem;
}

.log-container {
    height: 300px;
    overflow-y: auto;
    background: #1e1b4b;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: 'Consolas', monospace;
    font-size: 0.875rem;
}

.log-entry {
    padding: 0.25rem 0;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.log-entry .timestamp {
    color: rgba(255,255,255,0.4);
    margin-right: 0.5rem;
}

.log-entry.info { color: var(--info); }
.log-entry.success { color: var(--success); }
.log-entry.warning { color: var(--warning); }
.log-entry.error { color: var(--danger); }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

/* 配置表单 */
.config-form {
    max-width: 800px;
}

.form-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

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

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

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

small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray);
}

/* 套餐选择器 */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.plan-option {
    cursor: pointer;
}

.plan-option input {
    display: none;
}

.plan-box {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.2s;
}

.plan-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.plan-box .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.plan-box ul {
    list-style: none;
    text-align: left;
    font-size: 0.875rem;
    color: var(--gray);
}

.plan-box ul li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.plan-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

.plan-option input:checked + .plan-box {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(79,70,229,0.1));
}

/* 抢购控制 */
.sniper-control {
    max-width: 1000px;
}

.countdown-display {
    background: linear-gradient(135deg, var(--dark), #312e81);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.countdown-label {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Consolas', monospace;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.time-label {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.time-separator {
    font-size: 3rem;
    font-weight: 300;
    align-self: flex-start;
    opacity: 0.3;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* 任务表格 */
.task-list {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.task-list h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

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

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

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.875rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-waiting { background: #e0e7ff; color: var(--primary); }
.status-scheduled { background: #dbeafe; color: var(--info); }
.status-running { background: #fef3c7; color: var(--warning); }
.status-completed { background: #d1fae5; color: var(--success); }
.status-failed { background: #fee2e2; color: var(--danger); }
.status-cancelled { background: #f3f4f6; color: var(--gray); }

/* 日志查看器 */
.log-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.log-filter select,
.log-filter input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
}

.log-filter input {
    flex: 1;
}

.log-viewer {
    background: #1e1b4b;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 500px;
    overflow-y: auto;
    font-family: 'Consolas', monospace;
    font-size: 0.875rem;
}

/* 提示消息 */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.toast.info { background: var(--info); }
.toast.success { background: var(--success); }
.toast.warning { background: var(--warning); }
.toast.error { background: var(--danger); }

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

/* 响应式 */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .log-card {
        grid-column: span 1;
    }
    
    .plan-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
    }
    
    .time-value {
        font-size: 2.5rem;
    }
}


/* ═══════════════════════════════════════════════════════ */
/*  OCR 面板额外样式                                       */
/* ═══════════════════════════════════════════════════════ */

.ocr-test-card {
    grid-column: span 2;
}

.ocr-test-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.ocr-test-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

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

.upload-area i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--gray);
}

.ocr-preview {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
}

.ocr-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ocr-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 0.75rem;
    border-left: 4px solid var(--success);
}

.ocr-result h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.ocr-result pre {
    background: #1e1b4b;
    color: #a5b4fc;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.ocr-log-card {
    grid-column: span 2;
}

textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Consolas', monospace;
    font-size: 0.8125rem;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* OCR 状态指示灯 */
.ocr-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.ocr-status-dot.healthy { background: var(--success); box-shadow: 0 0 6px var(--success); }
.ocr-status-dot.unhealthy { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

/* 验证码事件高亮 */
.log-entry.captcha-event {
    background: rgba(99, 102, 241, 0.08);
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary);
}


/* ═══════════════════════════════════════════════════════ */
/*  套餐选择器                                             */
/* ═══════════════════════════════════════════════════════ */

.period-tabs {
    display: flex;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.period-tab {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.period-tab:not(:last-child) {
    border-right: 1px solid #e5e7eb;
}

.period-tab.active {
    background: var(--primary);
    color: white;
}

.period-tab:hover:not(.active) {
    background: #f3f4f6;
}

.discount-tag {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: #fef3c7;
    color: #d97706;
    font-weight: 600;
}

.period-tab.active .discount-tag {
    background: rgba(255,255,255,0.25);
    color: white;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.plan-cards .plan-option {
    cursor: pointer;
}

.plan-cards .plan-option input {
    display: none;
}

.plan-cards .plan-box {
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    text-align: left;
    transition: all 0.2s;
    height: 100%;
    position: relative;
}

.plan-cards .plan-box:hover {
    border-color: #a5b4fc;
}

.plan-cards .plan-option input:checked + .plan-box {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(79,70,229,0.08));
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.plan-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.plan-badge {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    background: #f3f4f6;
    color: var(--gray);
    font-weight: 500;
}

.popular-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.max-badge {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
}

.plan-box.popular {
    border-color: #f59e0b;
}

.plan-option input:checked + .plan-box.popular {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.plan-cards .plan-box .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.price-unit {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray);
}

.plan-box .original-price {
    font-size: 0.8125rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.plan-cards .plan-box ul {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.8125rem;
    color: var(--gray);
    line-height: 1.6;
}

.plan-cards .plan-box ul li {
    padding-left: 1.125rem;
    position: relative;
}

.plan-cards .plan-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}





/* 顶部北京时间 */
.header-clock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    margin-right: 0.5rem;
}

.header-clock i {
    color: var(--primary);
    font-size: 0.875rem;
}

.header-clock #headerClockTime {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: #a5b4fc;
    letter-spacing: 0.05em;
}
/* 北京时间时钟 */
.beijing-clock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    background: rgba(255,255,255,0.06);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.85);
}

.beijing-clock i {
    color: var(--primary);
    font-size: 0.75rem;
}

.beijing-clock #clockTime {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: 0.05em;
}

.beijing-clock .clock-label {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════════════ */
/*  手机端完整适配                                          */
/* ═══════════════════════════════════════════════════════ */

/* ── 汉堡菜单按钮 ── */
.hamburger {
    display: none;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 0.5rem;
    background: var(--dark);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}
.hamburger:active { transform: scale(0.92); }

/* ── 遮罩层 ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ── 768px 以下 ── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px;
    }
    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 3.5rem;   /* 留出汉堡按钮空间 */
    }

    /* 页面头部改为纵向 */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .page-header h2 {
        font-size: 1.35rem;
    }
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* 仪表盘网格 → 单列 */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* 卡片 */
    .card {
        padding: 1rem;
        border-radius: 0.75rem;
    }
    .status-card {
        flex-wrap: wrap;
    }
    .card-content p {
        font-size: 1.15rem;
    }

    /* 套餐卡片 → 单列 */
    .plan-cards {
        grid-template-columns: 1fr !important;
    }
    .plan-box {
        padding: 1rem !important;
    }

    /* 日志区域 */
    .log-card {
        grid-column: span 1;
    }
    .log-container {
        height: 220px;
        font-size: 0.75rem;
    }

    /* 表单元素触屏友好 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important; /* 防止 iOS 缩放 */
        padding: 0.75rem !important;
    }

    .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        min-height: 44px;  /* 触屏友好最小高度 */
    }

    /* 倒计时 */
    .countdown-timer {
        flex-wrap: wrap;
        justify-content: center;
    }
    .time-value {
        font-size: 2rem;
    }

    /* 北京时间 */
    .header-clock {
        padding: 0.375rem 0.75rem;
    }
    .header-clock #headerClockTime {
        font-size: 0.9375rem;
    }

    /* OCR 测试区 */
    .ocr-test-card {
        grid-column: span 1;
    }
    .upload-area {
        min-height: 80px;
    }

    /* 配置管理页面 */
    .config-grid {
        grid-template-columns: 1fr !important;
    }

    /* 按钮组纵向排列 */
    .action-buttons {
        flex-direction: column;
    }

    /* Toast 通知 */
    .toast {
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
    }
}

/* ── 480px 以下 (小屏手机) ── */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
        padding-top: 3.25rem;
    }
    .page-header h2 {
        font-size: 1.15rem;
    }
    .card-content p {
        font-size: 1rem;
    }
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .plan-header h4 {
        font-size: 1.1rem;
    }
    .period-tabs {
        flex-direction: column;
    }
    .period-tab {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb;
    }
    .period-tab:last-child {
        border-bottom: none;
    }
    .beijing-clock {
        font-size: 0.75rem;
    }
    .beijing-clock #clockTime {
        font-size: 0.9375rem;
    }
}

/* ── 桌面端隐藏汉堡 ── */
@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}