/* ===== 全局样式 - 紫色霓虹风格 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #050508;
    --color-bg-secondary: #0a0a14;
    --color-text: #f0ebfa;
    --color-text-dim: #b0a8c8;
    --color-accent: #b66cff;
    --color-accent-light: #d8b6ff;
    --color-accent-dark: #7c3aed;
    --color-accent-glow: rgba(182, 108, 255, 0.3);
    --color-danger: #ef4444;
    --color-danger-dark: #991b1b;
    --color-hope: #34d399;
    --color-card: rgba(10, 10, 20, 0.85);
    --color-card-border: rgba(182, 108, 255, 0.15);
    --color-overlay: rgba(5, 5, 8, 0.88);
    --font-main: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.8s ease;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

/* 屏幕切换 */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.screen.active {
    display: flex;
    opacity: 1;
    z-index: 10;
}

/* 淡入淡出遮罩 */
.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.8s ease;
}

.fade-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* 通用按钮 */
.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 260px;
    margin: 6px auto;
    padding: 12px 24px;
    background: rgba(182, 108, 255, 0.06);
    border: 1px solid rgba(182, 108, 255, 0.2);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: 10px;
}

.menu-btn:hover {
    background: rgba(182, 108, 255, 0.12);
    border-color: rgba(182, 108, 255, 0.4);
    box-shadow: 0 0 20px rgba(182, 108, 255, 0.15);
}

.menu-btn:active {
    transform: scale(0.97);
}

.menu-btn .btn-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.menu-btn-primary {
    background: linear-gradient(135deg, rgba(182, 108, 255, 0.2), rgba(182, 108, 255, 0.05));
    border-color: rgba(182, 108, 255, 0.4);
    font-weight: 500;
}

.menu-btn-primary:hover {
    background: linear-gradient(135deg, rgba(182, 108, 255, 0.3), rgba(182, 108, 255, 0.1));
    box-shadow: 0 0 30px rgba(182, 108, 255, 0.2);
}

.menu-btn-primary .arrow-icon {
    margin-left: auto;
    opacity: 0.5;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(182, 108, 255, 0.2);
    border-radius: 2px;
}

::selection {
    background: rgba(182, 108, 255, 0.3);
    color: #fff;
}
