/* 全局样式和变量定义 */
:root {
    --bg-color: #0a0e29;
    --text-color: #ffffff;
    --accent-color: #6a5acd;
    --secondary-color: #9370db;
    --card-bg: rgba(16, 18, 46, 0.7);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition-speed: 0.5s;
    --border-radius: 15px;
    --card-padding: 25px;
}

.light-theme {
    --bg-color: #e6f7ff;
    --text-color: #333333;
    --accent-color: #1890ff;
    --secondary-color: #40a9ff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #fff;
    opacity: 0;
    z-index: -1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

/* 通用按钮样式 */
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:focus {
    outline: none;
}