﻿ .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);
        }
    /* 色块选择 */
    .color-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .color-swatch {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 2px solid var(--sr-color-border);
        position: relative;
        flex-shrink: 0;
    }

        .color-swatch:hover {
            transform: scale(1.08);
            box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        }

        .color-swatch.selected {
            border-color: var(--sr-color-primary);
            box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
            transform: scale(1.08);
        }

        .color-swatch.transparent {
            background-image: repeating-conic-gradient(#e5e7eb 0% 25%, transparent 0% 50%);
            background-size: 16px 16px;
        }
    /* 背景样式预览 */
    .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%;
        }
    /* hero图片容器与loading遮罩 */
    .hero-img-wrapper {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        line-height: 0;
    }

        .hero-img-wrapper > img {
            display: block;
            width: 100%;
            border-radius: 12px;
        }

    .hero-loading-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        display: flex;
        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-color-trigger {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 8px;
        background: #fafbfc;
        cursor: pointer;
        transition: all 0.2s ease;
        width: 168px;
        box-sizing: border-box;
    }

        .bg-color-trigger:hover {
            border-color: var(--sr-color-primary);
            background: #f5f3ff;
        }

    .bg-color-preview {
        width: 36px;
        height: 36px;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
        border: 1.5px solid var(--sr-color-border);
        flex-shrink: 0;
    }

        .bg-color-preview.transparent {
            background-image: repeating-conic-gradient(#e5e7eb 0% 25%, transparent 0% 50%);
            background-size: 12px 12px;
        }

    .bg-color-trigger .bg-color-text {
        flex: 1;
        font-size: 13px;
        margin-left: 25px;
        width:120px;
        color: var(--sr-color-text);
    }

    .bg-color-trigger .bg-color-arrow {
        color: var(--sr-color-text-muted);
        font-size: 12px;
        transition: transform 0.2s ease;
    }

        .bg-color-trigger.open .bg-color-arrow {
            transform: rotate(180deg);
        }

    /* 颜色选择器面板 */
    .color-picker-panel {
        position: fixed;
        width: 260px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.15);
        padding: 14px;
        z-index: 500;
        border: 1px solid var(--sr-color-border);
    }

    .color-picker-header {
        font-size: 13px;
        font-weight: 600;
        color: var(--sr-color-text);
        margin-bottom: 10px;
        text-align: center;
    }

    .color-picker-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 5px;
    }

    .color-item {
        width: 100%;
        aspect-ratio: 1;
        border: 1.5px solid var(--sr-color-border);
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.15s;
        padding: 0;
    }

        .color-item:hover {
            transform: scale(1.12);
            box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        }

        .color-item.transparent-swatch {
            background-image: repeating-conic-gradient(#e5e7eb 0% 25%, transparent 0% 50%);
            background-size: 10px 10px;
        }

    .color-picker-custom {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--sr-color-border);
    }

        .color-picker-custom span {
            font-size: 12px;
            color: var(--sr-color-text-secondary);
            white-space: nowrap;
        }

        .color-picker-custom input[type="color"] {
            width: 30px;
            height: 30px;
            border: 1px solid var(--sr-color-border);
            border-radius: 6px;
            cursor: pointer;
            padding: 2px;
        }

        .color-picker-custom button {
            height: 30px;
            padding: 0 14px;
            border: 1px solid var(--sr-color-border);
            border-radius: 6px;
            background: #fafbfc;
            color: var(--sr-color-text);
            cursor: pointer;
            font-size: 12px;
            transition: all 0.15s;
            font-family: inherit;
        }

            .color-picker-custom button:hover {
                background: var(--sr-color-primary);
                color: #fff;
                border-color: var(--sr-color-primary);
            }