* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
}

form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

label.required::after {
    content: " *";
    color: #f5222d;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

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

.error-msg {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #f5222d;
    min-height: 18px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.radio-label span {
    font-size: 14px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #f0f2ff;
}

.upload-placeholder p {
    margin: 10px 0 5px;
    font-size: 14px;
    color: #666;
}

.upload-placeholder .hint {
    font-size: 12px;
    color: #999;
}

.upload-progress {
    padding: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
    width: 0;
}

.progress-text {
    font-size: 14px;
    color: #666;
}

.upload-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #f6ffed;
    border-radius: 6px;
}

.upload-success span {
    flex: 1;
    font-size: 14px;
    color: #52c41a;
}

.btn-remove {
    padding: 6px 12px;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    border-color: #f5222d;
    color: #f5222d;
}

/* 星级评分 */
.star-rating {
    display: flex;
    gap: 5px;
    font-size: 32px;
}

.star {
    cursor: pointer;
    color: #d9d9d9;
    transition: color 0.2s;
    user-select: none;
}

.star:hover,
.star.active {
    color: #fadb14;
}

/* 图片上传 */
.image-upload {
    display: inline-block;
}

.image-preview {
    width: 150px;
    height: 150px;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.image-preview:hover {
    border-color: #667eea;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.image-placeholder p {
    margin: 8px 0 0;
    font-size: 12px;
    color: #666;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

/* 多图上传 */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.add-screenshot {
    width: 100%;
    aspect-ratio: 1;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.add-screenshot:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.add-screenshot p {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.screenshot-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

/* 按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
}

/* 结果模态框 */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.result-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.result-icon.success {
    background: #f6ffed;
    color: #52c41a;
}

.result-icon.error {
    background: #fff1f0;
    color: #f5222d;
}

.result-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.result-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }

    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 24px;
    }

    form {
        padding: 30px 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .screenshot-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
