:root {
    --bg-primary: #f4f7ff;
    --bg-secondary: #ffffff;
    --bg-tertiary: rgba(255, 255, 255, 0.95);
    --bg-panel: rgba(255, 255, 255, 0.92);
    --border: rgba(15, 23, 42, 0.08);
    --accent-primary: #4b7bec;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #1fc9d4;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --metric-general: #2b8af7;
    --metric-directional: #c026d3;
    --metric-jump: #d97706;
    --metric-total: #059669;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #eab308;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 20px 60px rgba(79, 70, 229, 0.18);
}

.login-tab-switch {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.4);
    padding: 4px;
    border-radius: 999px;
}

.login-tab {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.login-tab.active {
    background: #fff;
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f0e6ff 0%, #e6f0ff 25%, #e6f8ff 50%, #e6ffe6 75%, #ffe6f0 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* 静态彩虹光晕效果 - 无动画 */
body::before {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    top: -250px;
    right: -150px;
    background: radial-gradient(circle, rgba(147, 112, 219, 0.4), transparent 60%);
    filter: blur(50px);
    opacity: 0.3;
    z-index: -1;
    mix-blend-mode: lighten;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    bottom: -250px;
    left: -150px;
    background: radial-gradient(circle, rgba(102, 205, 170, 0.35), transparent 60%);
    filter: blur(50px);
    opacity: 0.3;
    z-index: -1;
    mix-blend-mode: lighten;
    pointer-events: none;
}

/* 添加额外的彩虹光晕 - 静态版 */
main::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2), transparent 60%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: lighten;
    opacity: 0.25;
}

header {
    position: relative;
    background: linear-gradient(120deg, rgba(147, 112, 219, 0.15), rgba(102, 205, 170, 0.1), rgba(135, 206, 250, 0.12));
    border-bottom: 1px solid rgba(147, 112, 219, 0.2);
    padding: 32px 40px;
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.08);
}

header::after {
    content: "";
    position: absolute;
    inset: 12px 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(120deg, #f0a2ff, #6fe3ff, #52ffb7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scheduler-notice {
    margin: 16px 40px 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed rgba(15, 23, 42, 0.15);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.scheduler-notice__icon {
    font-size: 20px;
}

main {
    flex: 1;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    padding: 32px 40px 120px;
    position: relative;
    z-index: 0;
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(147, 112, 219, 0.06), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(102, 205, 170, 0.08), transparent 45%);
    opacity: 0.3;
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: lighten;
}

/* 未登录状态 - 登录页面居中 */
main.auth-only {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: none;
    gap: 0;
    padding: 32px 20px;
}

/* 登录面板样式 */
#authPanel {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1280px) {
    main {
        grid-template-columns: 1fr;
        padding-bottom: 180px;
    }

    aside {
        order: 2;
    }
}

aside {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 255, 0.92));
    border: 1px solid rgba(147, 112, 219, 0.2);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.06);
    position: relative;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}


/* 加载动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
