/**
 * 交互开关管理器样式
 */

/* 引入独立配色系统 */
@import url('./settings-colors.css');

.interaction-subsection {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--bg-border);
    border-radius: var(--border-radius);
}

.interaction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.interaction-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.interaction-title span {
    font-size: 16px;
}

/* 开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-border);
    transition: all var(--transition-fast);
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-secondary);
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--link-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.toggle-slider:hover {
    opacity: 0.8;
}

/* 装饰样式选择 */
.decoration-style-container {
    margin-top: 10px;
}

.decoration-style-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.decoration-style-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.decoration-style-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.decoration-style-btn:hover {
    background: var(--hover-bg);
    border-color: var(--link-color);
    transform: translateY(-2px);
}

.decoration-style-btn.active {
    background: var(--link-color);
    border-color: var(--link-color);
    color: var(--active-text-color);
}

.style-icon {
    font-size: 20px;
    line-height: 1;
}

.style-label {
    font-size: 11px;
}

.decoration-style-btn.active .style-label {
    color: var(--active-text-color);
}

/* 说明文字 */
.interaction-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .decoration-style-group {
        grid-template-columns: 1fr;
    }
    
    .decoration-style-btn {
        flex-direction: row;
        justify-content: center;
    }
}
