* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    padding: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}
.header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #fff;
    padding: 40px;
    text-align: center;
}
.header h1 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.header p {
    font-size: 16px;
    opacity: 0.8;
    font-style: italic;
}
.content {
    display: flex;
    flex-wrap: wrap;
}
.photo-section {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: #fafafa;
    border-right: 1px solid #e0e0e0;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.photo-item:hover {
    transform: translateY(-5px);
}
.photo-item img {
    width: 100%;
    height: 290px;
    object-fit: cover;
}
.photo-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.form-section {
    flex: 1;
    min-width: 400px;
    padding: 40px;
}
.form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
}
.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 0;
    border-color: #ff6b6b;
}
.checkbox-group, .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}
.checkbox-item, .radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.checkbox-item input, .radio-item input {
    margin-right: 8px;
    width: auto;
}
.checkbox-item label, .radio-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}
.submit-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 20px;
}
.submit-btn:hover {
    transform: translateY(-2px);
}
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 30px 0;
}

/* 新增的样式预览容器 */
.style-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.style-preview-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.style-preview-item:hover {
    transform: translateY(-3px);
}

.style-preview-item input[type="checkbox"] {
    display: none;
}

.style-preview-label {
    display: block;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.style-preview-label img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.style-preview-item:hover .style-preview-label img {
    transform: scale(1.05);
}

.style-preview-label span {
    display: block;
    padding: 10px 5px;
    font-size: 13px;
    background: #fff;
    text-align: center;
    color: #333;
    font-weight: 500;
}

.style-preview-item input:checked + .style-preview-label {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255,107,107,0.3);
    background: #fff5f5;
}

.style-preview-item input:checked + .style-preview-label::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    animation: checkIn 0.3s ease;
}

@keyframes checkIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.style-preview-item input:checked + .style-preview-label span {
    color: #ff6b6b;
    font-weight: 600;
}

.selected-count {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    display: inline-block;
}

.selected-count strong {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    .photo-section {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .style-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

}