/* 主题切换按钮容器 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* 主题切换按钮 */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    background: var(--container-bg);
    border: 1px solid var(--border-light);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.theme-switch::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #8B4513;
    border-radius: 24px;
    opacity: 0.3;
    pointer-events: none;
}

.theme-switch:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-switch:active {
    transform: translateY(0);
}

/* 主题图标 */
.theme-switch i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.theme-switch:hover i {
    transform: rotate(15deg);
}

/* 主题名称文本 */
.theme-switch span {
    font-family: "仿宋", FangSong, "FangSong", "华文仿宋", STFangsong, serif;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .theme-toggle {
        top: auto;
        bottom: 80px;
        right: 10px;
    }

    .theme-switch {
        padding: 8px;
        border-radius: 50%;
        background: var(--container-bg);
        box-shadow: var(--shadow-lg);
    }

    .theme-switch span {
        display: none;
    }

    .theme-switch i {
        font-size: 18px;
        margin: 0;
    }

    /* 半透明效果 */
    .theme-switch {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* 悬停效果 */
    .theme-switch:hover {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 1);
    }

    /* 活跃状态 */
    .theme-switch:active {
        transform: scale(0.95);
    }
} 