.hero{
    padding: 0px;
}
/* 商品图片生成界面样式 */
.features {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 第一部分：商品输入区域 */
.product-input-section {
    display: flex;
    gap: 20px;
    height: 150px;
    margin-bottom: 5px;
}


.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upload-area {
    height: 100%;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 300px;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-label {
    text-align: center;
    color: #666;
}

.upload-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: url('../images/uploadbtn.svg') no-repeat center;
    background-size: contain;
}

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}



/* 调整 custom-image-list 的样式 */
.custom-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    flex: 1;
    resize: none;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* 调整图片预览的样式 */
.custom-preview-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

textarea {
    flex: 1;
    resize: none;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.char-count {
    text-align: right;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* 第二部分：图片类型选择 */
.image-type-selection {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.type-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.type-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 第三部分：附加输入 */
.additional-inputs {
    margin-bottom: 20px;
}

.reference-upload {
    height: 120px;
    margin-bottom: 10px;
}

.scene-inputs, .custom-inputs {
    margin-top: 20px;
}

.custom-uploads {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.human-option {
    margin-top: 10px;
}

/* 第四部分：生成选项 */
.generation-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.count-selection {
    display: flex;
    gap: 10px;
}

.count-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
}

.count-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.generate-btn {
    padding: 10px 24px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.generate-btn:hover {
    background: #218838;
}

/* 第五部分：结果展示 */
.result-section {
    min-height: 200px;
}

.loading-status {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-gallery {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.result-image {
    height: 100%;
    max-width: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.result-image:hover {
    transform: scale(1.05);
}

/* 全屏图片展示 */
.fullscreen-modal {
    display: none;
}
.fullscreen-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.fullscreen-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}