﻿.sec-desc {
    font-size: 12px;
    color: var(--sr-color-text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}
/* 开关网格 */
.switch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.toggle-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1.5px solid var(--sr-color-border);
    border-radius: 20px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 13px;
    color: var(--sr-color-text);
    font-family: inherit;
}
.toggle-item:hover {
    border-color: var(--sr-color-primary);
    background: #f5f3ff;
}
.toggle-item.checked {
    border-color: var(--sr-color-primary);
    background: var(--sr-color-primary);
    color: #fff;
}
.toggle-item input {
    display: none;
}
.toggle-item .check-icon {
    display: none;
    width: 14px;
    height: 14px;
}
.toggle-item.checked .check-icon {
    display: inline-block;
}
.toggle-item .check-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
/* 文本框 */
.fix-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    border: 1.5px solid var(--sr-color-border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--sr-color-text);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #fafbfc;
}
.fix-textarea:focus {
    border-color: var(--sr-color-primary);
    background: #fff;
}
.fix-textarea::placeholder {
    color: var(--sr-color-text-muted);
}
/* hero图片容器与loading遮罩 */
.hero-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}
.hero-img-wrapper > img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: 12px;
}
.hero-loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}
.hero-loading-overlay .loading-text {
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-loading-overlay .loading-bar {
    width: 65%;
    max-width: 320px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}
.hero-loading-overlay .loading-bar-fill {
    height: 100%;
    background: #fff;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}
/* 背景样式预览 */
.bg-style-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
}
.bg-style-preview svg {
    display: block;
    width: 100%;
    height: 100%;
}
.size-desc {
    font-size: 10px;
    color: var(--sr-color-text-muted);
    display: block;
    text-align: center;
    margin-top: 2px;
}
/* 滑块 */
.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.slider-container input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
}
.slider-container input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sr-color-primary);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.slider-container input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sr-color-primary);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.slider-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--sr-color-primary);
    min-width: 52px;
    text-align: right;
    white-space: nowrap;
}
/* 效果图放大弹窗 */
.expand-popup-overlay { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,0.7); justify-content: center; align-items: center; }
.expand-popup-overlay.active { display: flex; }
.expand-popup-box { position: relative; max-width: 1200px; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.expand-popup-box img { max-width: 100%; max-height: 90vh; display: block; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.expand-popup-close { position: absolute; top: -16px; right: -16px; width: 36px; height: 36px; background: #fff; border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; color: #555; font-size: 18px; line-height: 1; z-index: 2; transition: all 0.15s; }
.expand-popup-close:hover { background: #f0f0f0; color: #000; }

/* ========== 移动端响应式 ========== */
@media (max-width: 639px) {
    /* 滑块对比容器约束屏幕宽度：宽度由CSS控制，高度由内联 aspect-ratio 保持比例，
       避免固定 height 与 !important width 冲突导致 object-fit:contain 出现黑边 */
    .compare-container {
        width: 100% !important;
        max-width: calc(100vw - 32px) !important;
        min-width: auto;
        min-height: auto !important;
    }

    .inspiration-hero {
        overflow-x: hidden;
    }

    .inspiration-hero-placeholder {
        overflow: hidden;
    }
}