/* 弹框组件 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 30% auto;
    border-radius: 16px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.verify-suggestions ul, .verify-suggestions ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn {
    flex: 1;
    min-width: auto;
}

/* 成功图标 */
.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 15px;
}

/* 图片预览弹框 */
.image-preview .modal-body {
    padding: 0;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}


/* 提示框组件 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-content {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toast-icon {
    font-size: 16px;
}

.toast.success .toast-content {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.toast.error .toast-content {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.toast.warning .toast-content {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

/* 上传组件样式 */
.upload-container {
    max-width: 100%;
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.upload-header p {
    color: #666;
    font-size: 14px;
}

.upload-section {
    margin-bottom: 30px;
}

.upload-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.title-icon {
    font-size: 20px;
}

.upload-area {
    position: relative;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    background: #fafbfc;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-area.has-file {
    border-color: #28a745;
    background: #f8fff9;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.upload-area p {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.upload-tip {
    font-size: 12px;
    color: #666;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 必传字段标识 */
.required-mark {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

/* 图片预览样式 */
.uploaded-file {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.uploaded-file .file-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.uploaded-file .file-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uploaded-file .file-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.file-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(39, 134, 241, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.file-action-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}


.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-icon {
    font-size: 20px;
    color: #667eea;
}

.file-details h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.file-details p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.file-actions {
    display: flex;
    gap: 5px;
}


/* 验证步骤样式 */
.verify-container {
    max-width: 100%;
}

.verify-header {
    text-align: center;
    margin-bottom: 30px;
}

.verify-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.verify-header p {
    color: #666;
    font-size: 14px;
}

.verify-steps {
    margin-bottom: 30px;
    margin-top: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item.completed {
    background: #f8fff9;
    border: 1px solid #d4edda;
}

.step-item.active {
    background: #f8f9ff;
    border: 1px solid #cce5ff;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.step-item.completed .step-number {
    background: #28a745;
    color: white;
}

.step-item.active .step-number {
    background: #667eea;
    color: white;
}

.step-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.input-tip {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.tip-icon {
    font-size: 14px;
}

.verify-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.verify-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.verify-info ul {
    list-style: none;
    padding: 0;
}

.verify-info li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.verify-info li::before {
    content: '•';
    color: #667eea;
    position: absolute;
    left: 0;
}

.help-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.help-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.help-link:hover {
    background: #f8f9ff;
    border-color: #667eea;
    transform: translateX(5px);
}

.help-icon {
    font-size: 16px;
}

/* 验证结果样式 */
.verify-result {
    text-align: center;
}

.verify-result.success {
    color: #28a745;
}

.verify-result.error {
    color: #dc3545;
}

.verify-result-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.verify-result h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.verify-result p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .upload-area {
        padding: 20px 15px;
    }
    
    .step-item {
        padding: 10px;
    }
    
    .help-links {
        gap: 8px;
    }
    
    .help-link {
        padding: 8px;
    }
}
