/* 设置区块 */
.size-settings,
.scale-settings,
.background-settings,
.shadow-settings,
.position-settings {
    margin-bottom: 16px;
}

/* 尺寸输入框组 */
.size-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fa;
    padding: 8px;
    border-radius: 6px;
}

.size-inputs input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    text-align: center;
}

/* 滑块组件通用样式 */
.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 14px;
    color: #666;
}

/* 滑块样式优化 */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: #eee;
    border-radius: 2px;
    margin: 8px 0;
    padding: 8px 0;
    cursor: pointer;
}

/* 滑块轨道样式 */
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--primary-color) var(--value-percent, 0%),
        #eee var(--value-percent, 0%)
    );
    border-radius: 2px;
}

/* 滑块拖动点样式 */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007aff;
    margin-top: -7px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* 阴影控制样式优化 */
.shadow-control {
    display: flex;
    align-items: center;
}

/* 阴影选项容器样式 */
.shadow-options {
    background: #f5f7fa;
    padding: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
}

.shadow-options.hidden {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

/* 阴影颜色选择器样式优化 */
.shadow-color {
    margin-top: 16px;
}

.shadow-color label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.shadow-color input[type="color"] {
    width: 100%;
    height: 36px;
    border: 1px solid #eee;
    padding: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.shadow-color input[type="color"]:hover {
    border-color: #007aff;
}

.shadow-color input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.shadow-color input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* 颜色选择器样式优化 */
input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

/* 颜色选择器弹出界面样式 */
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
    padding: 0;
}

/* 渐变色选择器样式 */
.color-input input[type="color"] {
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.color-input input[type="color"]:hover {
    border-color: #007aff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 颜色选择器标签样式 */
.color-input label {
    font-size: 14px;
    color: #666;
}

/* 颜色输入组样式 */
.color-inputs {
    background: #f5f7fa;
    padding: 12px;
    border-radius: 6px;
}

.color-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.color-input:last-child {
    margin-bottom: 0;
}

/* 开关按钮样式优化 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e4e7ed;
    transition: .3s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007aff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 阴影滑块组样式优化 */
.shadow-slider {
    margin-bottom: 16px;
}

.shadow-slider:last-child {
    margin-bottom: 0;
}

.shadow-slider .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.shadow-slider .slider-header label {
    font-size: 14px;
    color: #666;
}

.shadow-slider .slider-header span {
    font-size: 14px;
    color: #666;
}

.shadow-slider .slider-track {
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* 样机位置调节 */
.position-settings {
    margin-bottom: 16px;
}

/* 模糊度滑块特殊样式 */
.blur-slider {
    margin-bottom: 16px;
}

.blur-slider .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.blur-slider .slider-header label {
    font-size: 14px;
    color: #666;
}

.blur-slider .slider-header span {
    font-size: 14px;
    color: #666;
}

/* 阴影设置标题样式 */
.shadow-settings h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* 填充方式样式 */
.fit-mode {
    margin-bottom: 16px;
}

.fit-buttons {
    display: flex;
    gap: 8px;
    background: var(--bg-color);
    padding: 4px;
    border-radius: var(--radius-small);
}

.fit-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    border-radius: var(--radius-small);
    transition: all 0.2s;
}

.fit-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.fit-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

/* 颜色选择样式 */
.mockup-select {
    margin-bottom: 16px;
}

.mockup-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 0;
}

.mockup-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.mockup-btn:hover {
    border-color: var(--primary-color);
}

.mockup-btn.active {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

