/* 控制区域容器 */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    flex-wrap: nowrap;
    margin: 0.5rem auto;
}

/* 版本选择区域 */
.version-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    flex: 1;
}

/* 下拉选择框基础样式 */
.version-select,
.book-filter,
.primary-btn {
    height: 38px;
    min-width: 120px;
    padding: 0 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 6px;
    background: white;
    color: rgb(44, 62, 80);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-select:hover,
.book-filter:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
}

.version-select:focus,
.book-filter:focus {
    outline: none;
    border-color: rgb(var(--primary-rgb));
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

/* 新经文按钮样式 */
.primary-btn {
    padding: 0.5rem 1.5rem;
    background: rgb(var(--primary-rgb));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.primary-btn:hover {
    background: rgba(var(--primary-rgb), 0.9);
    transform: translateY(-1px);
}

.primary-btn:active {
    transform: translateY(0);
}

/* 显示模式切换样式 */
.display-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    height: 38px;
}

/* 开关容器 */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin: 0;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* 滑块轨道 */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: all 0.3s ease;
    border-radius: 24px;
    overflow: hidden;
}

/* 滑块圆点 */
.slider:before {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 选中状态 - 图片模式 */
input:checked + .slider {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.95) 0%, rgba(var(--primary-rgb), 1) 100%);
}

/* 未选中状态 - 文字模式 */
input:not(:checked) + .slider {
    background-color: #ccc;
}

input:checked + .slider:before {
    transform: translate(24px, -50%);
}

/* 悬浮效果 - 移除transform效果，只保留阴影变化 */
.switch:hover .slider:before {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 标签文本 */
.mode-label {
    font-size: 0.95rem;
    color: rgb(var(--primary-rgb));
    user-select: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .version-picker {
        flex-direction: column;
    }

    .version-select,
    .book-filter,
    .primary-btn {
        width: 100%;
        min-width: unset;
    }

    .display-mode {
        margin-left: 0;
        justify-content: center;
    }
} 