/* 实名认证页面样式 */

.main-content {
    padding-top: 56px;
    padding-bottom: 20px;
    min-height: 100vh;
    background: #f5f7fa;
}

/* 步骤指示器 */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: white;
    margin-bottom: 12px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
    color: white;
}

.step-item.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #999;
    transition: color 0.3s ease;
}

.step-item.active .step-label {
    color: #64B5F6;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #4CAF50;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-bottom: 18px;
}

/* 步骤内容 */
.step-content {
    background: white;
    border-radius: 16px;
    margin: 0 16px;
    padding: 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.step-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* 身份证上传区域 */
.id-card-section {
    margin-bottom: 20px;
}

.section-label {
    font-size: 14px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.id-card-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.id-card-upload-box {
    position: relative;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-icon-wrapper {
    aspect-ratio: 1.586;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.upload-label:active .upload-icon-wrapper {
    background: #f0f0f0;
    transform: scale(0.98);
}

.upload-icon {
    font-size: 48px;
    color: #ccc;
}

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

.upload-text {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 拍摄提示 */
.id-card-tips {
    background: #fff9e6;
    border-radius: 8px;
    padding: 12px;
}

.id-card-tips > p {
    font-size: 12px;
    color: #ff9800;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.tips-icons {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.tip-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.tip-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.tip-icon.good {
    background: #e8f5e9;
}

.tip-icon.good .material-symbols-outlined {
    font-size: 28px;
    color: #4CAF50;
}

.tip-icon.bad {
    background: #ffebee;
}

.tip-icon.bad .material-symbols-outlined {
    font-size: 28px;
    color: #ff4757;
}

.tip-icon-item > span {
    font-size: 11px;
    color: #666;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #64B5F6;
}

.form-input::placeholder {
    color: #ccc;
}

/* 警告框 */
.warning-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff3e0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 20px;
    color: #ff9800;
    flex-shrink: 0;
}

.warning-text {
    font-size: 13px;
    color: #ff9800;
    line-height: 1.5;
}

/* 信息框 */
.info-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 20px;
    color: #64B5F6;
    flex-shrink: 0;
}

.info-text {
    font-size: 13px;
    color: #64B5F6;
    line-height: 1.5;
}

/* 按钮 */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 12px;
}

.btn-secondary,
.btn-primary {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:active {
    background: #e0e0e0;
}

.btn-primary {
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 人脸认证 */
.face-auth-box {
    margin: 30px 0;
}

.face-placeholder {
    aspect-ratio: 1;
    border: 2px dashed #d0d0d0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    max-width: 280px;
    margin: 0 auto;
}

.face-placeholder .material-symbols-outlined {
    font-size: 80px;
    color: #ccc;
}

.face-placeholder p {
    margin: 12px 0 0 0;
    font-size: 14px;
    color: #999;
}

/* 摄像头视频流样式 */
#cameraVideo {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    background: #000;
    object-fit: cover;
    aspect-ratio: 3/4;
}

/* 拍照预览canvas样式 */
#photoCanvas {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    background: #000;
    object-fit: cover;
}

/* 响应式优化 */
@media (max-width: 375px) {
    .steps-indicator {
        padding: 16px 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-content {
        margin: 0 12px;
        padding: 16px;
    }
    
    .id-card-uploads {
        gap: 10px;
    }
    
    .upload-icon {
        font-size: 40px;
    }
}

/* 已实名状态显示 */
.verified-status {
    background: white;
    margin: 0 16px 16px;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.verified-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.verified-icon {
    font-size: 64px;
    color: #4CAF50;
    margin-bottom: 12px;
}

.verified-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.verified-info {
    background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.btn-danger {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.btn-danger:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: #FFF3E0;
    border-radius: 8px;
    border-left: 3px solid #FF9800;
}

.warning-icon {
    font-size: 20px;
    color: #FF9800;
    flex-shrink: 0;
}

.warning-text {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

