/* 主题切换过渡效果 */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 日间模式额外优化 */
[data-theme="light"] {
    /* 滚动条样式 */
}

[data-theme="light"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #F5F5F7;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #D2D2D7;
    border-radius: 5px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #AEAEB2;
}

/* 日间模式下的按钮悬停效果 */
[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* 日间模式下的输入框 */
[data-theme="light"] .input-wrapper {
    background: #F5F5F7;
}

[data-theme="light"] .input-wrapper:focus-within {
    background: #FFFFFF;
}

/* 日间模式下的导航栏链接 */
[data-theme="light"] .main-nav a:hover,
[data-theme="light"] .main-nav a.active {
    background: rgba(255, 107, 53, 0.08);
}

/* 日间模式下的用户下拉菜单 */
[data-theme="light"] .user-dropdown {
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .user-dropdown a:hover {
    background: rgba(255, 107, 53, 0.08);
}

/* 日间模式下的视频封面遮罩 */
[data-theme="light"] .video-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 日间模式下的公告栏 */
[data-theme="light"] .announcement-bar {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 150, 214, 0.1));
    border-bottom-color: var(--border-color);
}

/* 日间模式下的筛选标签 */
[data-theme="light"] .filter-group a {
    background: #F5F5F7;
}

[data-theme="light"] .filter-group a:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* 日间模式下的空状态 */
[data-theme="light"] .empty-state {
    color: var(--text-secondary);
}

/* 日间模式下的页脚 */
[data-theme="light"] .site-footer {
    background: #FFFFFF;
    border-top-color: var(--border-color);
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

/* 确保平滑的主题切换动画 */
html {
    transition: background-color 0.3s ease;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header,
.video-card,
.auth-box,
.filter-bar,
.modal-content,
.user-dropdown,
.input-wrapper {
    transition: all 0.3s ease;
}

/* 主题切换按钮动画增强 */
.theme-toggle-btn {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle-btn:active {
    transform: scale(0.9) rotate(180deg);
}

.theme-icon {
    transition: all 0.3s ease;
}

/* 日间模式下的视频详情页优化 */
[data-theme="light"] .video-main-info {
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .episodes-section,
[data-theme="light"] .recommendations-section {
    background: transparent;
}

[data-theme="light"] .episode-item {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .episode-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 日间模式下的认证页面优化 */
[data-theme="light"] .auth-page {
    background: linear-gradient(135deg, #F5F5F7 0%, #E8E8ED 100%);
}

/* 日间模式下Alert样式优化 */
[data-theme="light"] .alert-error {
    background: rgba(255, 59, 48, 0.08);
}

[data-theme="light"] .alert-success {
    background: rgba(0, 200, 83, 0.08);
}

[data-theme="light"] .alert-warning {
    background: rgba(255, 184, 0, 0.08);
}

/* 日间模式下的验证码样式 */
[data-theme="light"] .captcha-img,
[data-theme="light"] .captcha-refresh {
    background: #FFFFFF;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
    }
    
    .theme-icon {
        font-size: 18px;
    }
}
