/* =======================================================
   主题样式文件 - Northgard Races 网站主题
   包含冷色调、暖色调和护眼模式的配色方案
======================================================= */

/* 冷色调主题 */
html[data-theme="cold"] {
    --primary-color: #64B5F6; /* 冷蓝色 */
    --secondary-color: #4FC3F7; /* 青色 */
    --background-dark: #1565C0; /* 深蓝 */
    --background-light: #E3F2FD; /* 浅蓝 */
    --text-dark: #0D47A1; /* 深蓝文本 */
    --text-light: #E3F2FD; /* 浅蓝文本 */
}

html[data-theme="cold"] body {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* 暖色调主题 */
html[data-theme="warm"] {
    --primary-color: #FF8A65; /* 暖橙 */
    --secondary-color: #FF7043; /* 深橙 */
    --background-dark: #D84315; /* 深橙红 */
    --background-light: #FFECB3; /* 浅黄 */
    --text-dark: #BF360C; /* 深橙文本 */
    --text-light: #FFF8E1; /* 浅黄文本 */
}

html[data-theme="warm"] body {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* 护眼模式主题 */
html[data-theme="eye-protection"] {
    --primary-color: #81C784; /* 绿色 */
    --secondary-color: #66BB6A; /* 深绿 */
    --background-dark: #2E7D32; /* 深绿 */
    --background-light: #E8F5E9; /* 浅绿 */
    --text-dark: #1B5E20; /* 深绿文本 */
    --text-light: #F1F8E9; /* 浅绿文本 */
}

html[data-theme="eye-protection"] body {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* 主题切换器容器 */
.theme-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-switcher-label {
    color: var(--text-light);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.theme-switcher select {
    background-color: var(--background-dark);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    padding: 0.3rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.theme-switcher select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

/* 响应式设计 - 移动端适配 */
@media screen and (max-width: 768px) {
    .theme-switcher {
        margin: 0 0.5rem 0 0;
    }
    
    .theme-switcher-label {
        font-size: 0.8rem;
    }
    
    .theme-switcher select {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}