/* 主题切换简化样式 */
/* ComponentsDemos 文档专用 - 只保留核心功能 */

/* 主题切换按钮容器 */
.md-header__button.md-header__button--theme {
    position: relative;
    overflow: visible;
}

/* 主题切换按钮 */
.md-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-toggle:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* 主题切换动画 */
@keyframes themeSwitch {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.theme-switching .md-toggle {
    animation: themeSwitch 0.6s ease-in-out;
}

/* 主题指示器 */
.theme-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* 深色模式指示器 */
[data-md-color-scheme="slate"] .theme-indicator {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
}

/* 主题切换提示 */
.theme-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--md-default-fg-color);
    color: var(--md-default-bg-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.theme-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--md-default-fg-color);
}

.md-toggle:hover + .theme-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* 主题切换快捷键提示 */
.theme-shortcut {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    margin-left: 0.5rem;
    font-size: 0.7rem;
}

/* 主题切换无障碍支持 */
.md-toggle:focus-visible {
    outline: 3px solid var(--md-primary-fg-color);
    outline-offset: 2px;
    border-radius: 8px;
}

/* 最后更新：2026-03-21 */
/* 主题切换简化样式 - 移除了主题预设和实验功能 */