/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #00355F;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: row;
    color: #00355F;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1rem;
}

.logo-img {
    height: 1.5rem;
}

/* 主容器样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* 表单样式 */
.form-section {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    font-size: 1rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.form-section h2:first-of-type {
    margin-top: 0;
}

/* 上传按钮样式 */
.upload-group {
    margin-bottom: 1rem;
}

/* 横向排列样式 */
.upload-group.horizontal {
    display: flex;
    flex-direction: row;
    flex-shrink: 1;
    flex-wrap: wrap;
    gap: 1rem;
    scrollbar-width: thin;
    align-content: flex-start;
    justify-content: center;
}

.upload-group.horizontal::-webkit-scrollbar {
    height: 6px;
}

.upload-group.horizontal::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.upload-item {
    flex-shrink: 0;
    margin-right: 10px;
}

.upload-btn-container {
    min-width: 120px;
    position: relative;
    margin-bottom: 0.5rem;
    flex-shrink: 1;
}

.upload-btn {
    width: 100%;
    height: 80px;
    border: 2px dashed #00355F;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.upload-btn.has-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
}

.upload-btn.has-image .upload-title {
    color: white;
    z-index: 1;
}

.upload-icon {
    font-size: 1rem;
}

.upload-title {
    color: #aaa;
    font-size: 0.5rem;
    text-align: center;
}

.upload-text {
    color: #aaa;
    font-size: 0.5rem;
    margin-top: 10px;
}

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

.upload-input-real {display: none;}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    /*flex: 1;*/
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background-color: #eee;
    color: #444;
    font-size: 0.6rem;
    cursor: pointer;
    text-align: center;
}

/* 隐私协议样式 */
.privacy-agreement {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.privacy-agreement input {
    width: 18px;
    height: 18px;
}

.privacy-link {
    color: #3498db;
    text-decoration: none;
}


/* 确认按钮样式 */
.submit-btn {
    width: 100%;
    height: 3rem;
    padding: 0.5rem;
    background-color: #fff;
    border: 2px solid #005FA5;
    color: #005FA5;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}


.submit-btn:disabled {
    background-color: #005FA5;
    color: #eee;
    cursor: not-allowed;
}

/* 结果区域样式 */
.result-section {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.result-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.result-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.8rem;
    resize: none;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
}

.result-textarea:disabled {
    color: #333;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 1.5rem;
    color: #7f8c8d;
    font-size: 0.8rem;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.alert-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
    color: #444;
}

.alert-message {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

.alert-btn {
    padding: 0.7rem 1.5rem;
    background-color: #fff;
    border: 2px solid #005FA5;
    color: #005FA5;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* 加载指示器 */
.loading {
    display: none;
    text-align: center;
    padding: 1rem;
}

.loading-spinner {
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .upload-item {
        min-width: 200px;
    }
    
    .upload-btn {
        height: 120px;
    }
    
    .upload-title {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .upload-item {
        min-width: 130px;
    }
    
    .upload-btn {
        height: 80px;
    }
    
    .form-section, .result-section {
        padding: 1rem;
    }
    
    .alert-content {
        padding: 1.5rem;
    }
    .upload-title{font-size: 0.5rem}
}
