/* ===== C端增强补充（仅补充 apply.css 未覆盖的样式，不覆盖已有样式） ===== */

/* 卡片顶部渐变装饰条 */
.step-card {
    position: relative;
}
.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.step-card:hover::before {
    opacity: 1;
}

/* 表单输入增强（不覆盖 padding/border/font-size） */
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    transition: all 0.2s;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(89, 74, 226, 0.1);
}
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* 状态消息左边框 + 动画 */
.status-msg {
    animation: slideDown 0.3s ease-out;
}
.status-msg.info {
    border-left: 3px solid var(--info);
}
.status-msg.error {
    border-left: 3px solid var(--error);
}
.status-msg.success {
    border-left: 3px solid var(--success);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 身份证边框检测视觉反馈 ===== */
.id-card-frame.detected .frame-corner {
    border-color: #10B981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    transition: all 0.3s ease;
}
.id-card-frame.detecting .frame-corner {
    border-color: var(--primary);
    animation: framePulse 2s infinite;
}
@keyframes framePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== 人脸检测状态反馈 ===== */
.face-frame.detected .face-oval {
    border-color: #10B981 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.3), inset 0 0 16px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}
.face-oval.detected {
    border-color: #10B981 !important;
    border-style: solid;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}
.face-frame.angle-left .face-oval {
    border-left-color: #10B981 !important;
    border-left-width: 4px;
}
.face-frame.angle-right .face-oval {
    border-right-color: #10B981 !important;
    border-right-width: 4px;
}

/* ===== OCR确认页紧凑布局 ===== */
.ocr-confirm-card {
    padding: 14px !important;
}
.ocr-confirm-card .step-header.compact {
    margin-bottom: 8px;
}
.ocr-confirm-card .step-icon-wrap.small {
    width: 36px; height: 36px;
}
.ocr-confirm-card .step-icon-wrap.small svg {
    width: 20px; height: 20px;
}
.ocr-confirm-card .step-title.small {
    font-size: 17px; margin: 0;
}
.ocr-confirm-card .step-desc.small {
    font-size: 12px; margin: 2px 0 0 0;
}

/* 紧凑信息卡片 */
.info-card.compact { padding: 10px; margin: 10px 0; }
.info-card.compact .info-row.compact { padding: 7px 0; }
.info-card.compact .info-label.small { font-size: 13px; min-width: 70px; }
.info-card.compact .info-value.small { font-size: 14px; }
.info-card.compact .info-value.small.id-number {
    font-family: 'Courier New', monospace;
    font-size: 13px; letter-spacing: 0.5px;
}
.info-card.compact .info-value.small.validity { font-size: 13px; }

/* 紧凑表单 */
.form-group.compact { margin-bottom: 8px; }
.form-group.compact.half { flex: 1; margin-right: 8px; }
.form-group.compact.half:last-child { margin-right: 0; }
.form-row { display: flex; gap: 8px; margin-bottom: 8px; }
.form-label.small { font-size: 12px; margin-bottom: 4px; }
.form-input.small { padding: 8px 12px; font-size: 14px; }
.checkbox-row.compact { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* 紧凑按钮 */
.btn-row.compact { gap: 8px; margin-top: 10px; }
.btn-primary.compact,
.btn-secondary.compact {
    padding: 10px 14px; font-size: 14px; height: auto;
}
.btn-secondary.compact svg { width: 16px; height: 16px; }
.loading-spinner.small { width: 14px; height: 14px; }

/* ===== 核验上传框（提交步骤） ===== */
.verifying-box {
    text-align: center;
    padding: 24px 18px;
    background: rgba(89,74,226,0.06);
    border: 1px solid rgba(89,74,226,0.2);
    border-radius: var(--radius-md);
    margin: 14px 0;
}
.verifying-spinner {
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    border: 4px solid rgba(89,74,226,0.15);
    border-top-color: #594AE2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.verifying-title {
    font-size: 17px; font-weight: 700;
    color: #594AE2; margin-bottom: 10px;
}
.verifying-count {
    font-size: 15px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 12px;
}
.verifying-file-name {
    font-size: 12px; color: var(--text-muted); margin-top: 6px;
}

/* 汇总框 */
.summary-total {
    font-size: 14px; color: #594AE2;
    font-weight: 600; margin-left: auto;
}

/* ===== 文件上传进度列表 ===== */
.upload-files-progress {
    margin: 10px 0;
    display: flex; flex-direction: column; gap: 6px;
}
.file-progress-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 8px;
    background: #FAFAFE; opacity: 0.4;
    transition: all 0.3s ease;
}
.file-progress-item.active { opacity: 1; background: rgba(89,74,226,0.08); }
.file-progress-item.done { opacity: 1; background: rgba(16,185,129,0.08); }
.file-icon {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.file-progress-item.active .file-icon { color: #594AE2; }
.file-progress-item.done .file-icon { color: #10B981; }
.file-name { font-size: 13px; color: var(--text-secondary); }

/* ===== 滚动条美化 ===== */
.privacy-content::-webkit-scrollbar { width: 4px; }
.privacy-content::-webkit-scrollbar-thumb {
    background: rgba(89, 74, 226, 0.3);
    border-radius: 2px;
}

/* ===== 动画效果 ===== */
.fade-in { animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-up { animation: slideUp 0.4s ease-out; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 重试小按钮 ===== */
.btn-retry-small {
    margin-left: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(89,74,226,0.2);
    border-radius: 6px;
    background: rgba(89,74,226,0.05);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.btn-retry-small:hover {
    background: rgba(89,74,226,0.1);
    color: var(--text);
}

/* ===== 移动端微调 ===== */
@media (max-width: 480px) {
    .ocr-confirm-card { padding: 12px !important; }
    .info-card.compact { padding: 8px; }
    .info-card.compact .info-row.compact { padding: 6px 0; }
    .info-card.compact .info-label.small { font-size: 12px; min-width: 60px; }
    .info-card.compact .info-value.small { font-size: 13px; }
}
/* ===== C端增强补充（仅补充 apply.css 未覆盖的样式） ===== */

/* 卡片顶部渐变装饰条 */
.step-card {
    position: relative;
}
.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.step-card:hover::before {
    opacity: 1;
}

/* 表单输入增强 */
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    transition: all 0.2s;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(89, 74, 226, 0.1);
}
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* 状态消息动画 */
.status-msg {
    animation: slideDown 0.3s ease-out;
}
.status-msg.info {
    border-left: 3px solid var(--info);
}
.status-msg.error {
    border-left: 3px solid var(--error);
}
.status-msg.success {
    border-left: 3px solid var(--success);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 身份证边框检测视觉反馈 ===== */
.id-card-frame.detected .frame-corner {
    border-color: #10B981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    transition: all 0.3s ease;
}
.id-card-frame.detecting .frame-corner {
    border-color: var(--primary);
    animation: framePulse 2s infinite;
}
@keyframes framePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== 人脸检测状态 ===== */
.face-frame.detected .face-oval {
    border-color: #10B981 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.3), inset 0 0 16px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}
.face-oval.detected {
    border-color: #10B981 !important;
    border-style: solid;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}
.face-frame.angle-left .face-oval {
    border-left-color: #10B981 !important;
    border-left-width: 4px;
}
.face-frame.angle-right .face-oval {
    border-right-color: #10B981 !important;
    border-right-width: 4px;
}

/* ===== OCR确认页紧凑布局 ===== */
.ocr-confirm-card {
    padding: 14px !important;
}
.ocr-confirm-card .step-header.compact {
    margin-bottom: 8px;
}
.ocr-confirm-card .step-icon-wrap.small {
    width: 36px; height: 36px;
}
.ocr-confirm-card .step-icon-wrap.small svg {
    width: 20px; height: 20px;
}
.ocr-confirm-card .step-title.small {
    font-size: 17px; margin: 0;
}
.ocr-confirm-card .step-desc.small {
    font-size: 12px; margin: 2px 0 0 0;
}

/* 紧凑信息卡片 */
.info-card.compact { padding: 10px; margin: 10px 0; }
.info-card.compact .info-row.compact { padding: 7px 0; }
.info-card.compact .info-label.small { font-size: 13px; min-width: 70px; }
.info-card.compact .info-value.small { font-size: 14px; }
.info-card.compact .info-value.small.id-number {
    font-family: 'Courier New', monospace;
    font-size: 13px; letter-spacing: 0.5px;
}
.info-card.compact .info-value.small.validity { font-size: 13px; }

/* 紧凑表单 */
.form-group.compact { margin-bottom: 8px; }
.form-group.compact.half { flex: 1; margin-right: 8px; }
.form-group.compact.half:last-child { margin-right: 0; }
.form-row { display: flex; gap: 8px; margin-bottom: 8px; }
.form-label.small { font-size: 12px; margin-bottom: 4px; }
.form-input.small { padding: 8px 12px; font-size: 14px; }
.checkbox-row.compact { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* 紧凑按钮 */
.btn-row.compact { gap: 8px; margin-top: 10px; }
.btn-primary.compact,
.btn-secondary.compact {
    padding: 10px 14px; font-size: 14px; height: auto;
}
.btn-secondary.compact svg { width: 16px; height: 16px; }
.loading-spinner.small { width: 14px; height: 14px; }

/* ===== 核验上传框（提交步骤） ===== */
.verifying-box {
    text-align: center;
    padding: 24px 18px;
    background: rgba(89,74,226,0.06);
    border: 1px solid rgba(89,74,226,0.2);
    border-radius: var(--radius-md);
    margin: 14px 0;
}
.verifying-spinner {
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    border: 4px solid rgba(89,74,226,0.15);
    border-top-color: #594AE2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.verifying-title {
    font-size: 17px; font-weight: 700;
    color: #594AE2; margin-bottom: 10px;
}
.verifying-count {
    font-size: 15px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 12px;
}
.verifying-file-name {
    font-size: 12px; color: var(--text-muted); margin-top: 6px;
}

/* 汇总框 */
.summary-total {
    font-size: 14px; color: #594AE2;
    font-weight: 600; margin-left: auto;
}

/* ===== 文件上传进度列表 ===== */
.upload-files-progress {
    margin: 10px 0;
    display: flex; flex-direction: column; gap: 6px;
}
.file-progress-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 8px;
    background: #FAFAFE; opacity: 0.4;
    transition: all 0.3s ease;
}
.file-progress-item.active { opacity: 1; background: rgba(89,74,226,0.08); }
.file-progress-item.done { opacity: 1; background: rgba(16,185,129,0.08); }
.file-icon {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.file-progress-item.active .file-icon { color: #594AE2; }
.file-progress-item.done .file-icon { color: #10B981; }
.file-name { font-size: 13px; color: var(--text-secondary); }

/* ===== 滚动条美化 ===== */
.privacy-content::-webkit-scrollbar { width: 4px; }
.privacy-content::-webkit-scrollbar-thumb {
    background: rgba(89, 74, 226, 0.3);
    border-radius: 2px;
}

/* ===== 动画效果 ===== */
.fade-in { animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-up { animation: slideUp 0.4s ease-out; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 移动端微调 ===== */
@media (max-width: 480px) {
    .ocr-confirm-card { padding: 12px !important; }
    .info-card.compact { padding: 8px; }
    .info-card.compact .info-row.compact { padding: 6px 0; }
    .info-card.compact .info-label.small { font-size: 12px; min-width: 60px; }
    .info-card.compact .info-value.small { font-size: 13px; }
}
/* ===== C端前端UI增强优化 ===== */

/* 1. 步骤卡片优化 */
.step-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.step-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.step-card:hover::before {
    opacity: 1;
}

/* 2. 按钮优化 */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(89, 74, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(89, 74, 226, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(89, 74, 226, 0.05);
    transform: translateY(-2px);
}

/* 3. 输入框优化 */
input[type="text"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8E8F0;
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.2s;
    background: white;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(89, 74, 226, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* 4. 相机容器 - 由 apply.css 统一定义 */

/* 5. 身份证框 - 由 apply.css 统一定义 */

/* 6. 状态消息优化 */
.status-msg {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.status-msg.info {
    background: var(--info-bg);
    color: var(--info);
    border-left: 4px solid var(--info);
}

.status-msg.error {
    background: var(--error-bg);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.status-msg.success {
    background: var(--success-bg);
    color: var(--success);
    border-left: 4px solid var(--success);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. 上传进度优化 */
.upload-progress {
    margin-bottom: var(--space-lg);
    padding: 16px;
    background: rgba(89, 74, 226, 0.05);
    border-radius: var(--radius-md);
}

.upload-bar-wrap {
    height: 8px;
    background: rgba(89, 74, 226, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.upload-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(89, 74, 226, 0.4);
}

/* 8. 加载动画优化 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 9. 响应式优化 */
@media (max-width: 600px) {
    .step-card {
        padding: var(--space-lg);
        border-radius: var(--radius-md);
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* 10. 提示文字优化 */
.step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.camera-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 12px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

/* 11. 按钮组布局优化 */
.btn-row {
    display: flex;
    gap: 12px;
    margin-top: var(--space-lg);
}

.btn-row .btn-primary,
.btn-row .btn-secondary {
    flex: 1;
}

.btn-row .btn-secondary {
    flex: 0 0 auto;
    min-width: 100px;
}

/* 12. 图片预览优化 */
.preview-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.preview-image:hover {
    transform: scale(1.02);
}

/* 13. 表单验证状态 */
input.error {
    border-color: var(--error);
    background: var(--error-bg);
}

input.success {
    border-color: var(--success);
    background: var(--success-bg);
}

/* 14. 辅助工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* 15. 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 16. 隐私协议区域优化 */
.privacy-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: #F8F8FC;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
    font-size: 14px;
}

.privacy-content::-webkit-scrollbar {
    width: 6px;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: rgba(89, 74, 226, 0.3);
    border-radius: 3px;
}

/* 17. 复选框优化 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-lg);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-wrapper label {
    cursor: pointer;
    user-select: none;
}

/* 18. 错误提示优化 */
.error-tip {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 19. 成功提示优化 */
.success-tip {
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 16px;
}

/* 20. 容器最大宽度 */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 600px) {
    .container {
        padding: 12px;
    }
}

/* ==================== 21. 边框检测视觉反馈 ==================== */

/* 身份证边框检测状态 */
.id-card-frame.detected .frame-corner {
    border-color: #10B981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    transition: all 0.3s ease;
}

.id-card-frame.detecting .frame-corner {
    border-color: #594AE2;
    animation: framePulse 2s infinite;
}

@keyframes framePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 人脸框检测状态 */
.face-frame.detected .face-oval {
    border-color: #10B981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.face-frame.angle-left .face-oval {
    border-left-color: #10B981 !important;
    border-left-width: 4px;
}

.face-frame.angle-right .face-oval {
    border-right-color: #10B981 !important;
    border-right-width: 4px;
}

/* ==================== 22. 内联上传进度条 ==================== */

.upload-progress-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.progress-bar-mini {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: progressPulse 1.5s infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.upload-progress-inline span {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* 大倒计时（人脸核验注视用） */
.countdown-large {
    font-size: 72px;
    font-weight: 700;
    color: #10B981;
    text-align: center;
    line-height: 1;
    margin: 16px 0;
    animation: countdownPulse 1s infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ==================== 23. OCR确认页紧凑布局 ==================== */

.ocr-confirm-card {
    padding: 16px !important;
}

.ocr-confirm-card .step-header.compact {
    margin-bottom: 12px;
}

.ocr-confirm-card .step-icon-wrap.small {
    width: 36px;
    height: 36px;
}

.ocr-confirm-card .step-icon-wrap.small svg {
    width: 20px;
    height: 20px;
}

.ocr-confirm-card .step-title.small {
    font-size: 18px;
    margin: 0;
}

.ocr-confirm-card .step-desc.small {
    font-size: 13px;
    margin: 4px 0 0 0;
}

/* 紧凑信息卡片 */
.info-card.compact {
    padding: 12px;
    margin: 12px 0;
}

.info-card.compact .info-row.compact {
    padding: 8px 0;
}

.info-card.compact .info-label.small {
    font-size: 13px;
    min-width: 70px;
}

.info-card.compact .info-value.small {
    font-size: 14px;
}

.info-card.compact .info-value.small.id-number {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.info-card.compact .info-value.small.validity {
    font-size: 13px;
}

/* 紧凑表单 */
.form-group.compact {
    margin-bottom: 10px;
}

.form-group.compact.half {
    flex: 1;
    margin-right: 8px;
}

.form-group.compact.half:last-child {
    margin-right: 0;
}

.form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.form-label.small {
    font-size: 13px;
    margin-bottom: 4px;
}

.form-input.small {
    padding: 8px 12px;
    font-size: 14px;
}

.checkbox-row.compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* 紧凑按钮 */
.btn-row.compact {
    gap: 10px;
    margin-top: 12px;
}

.btn-primary.compact,
.btn-secondary.compact {
    padding: 10px 16px;
    font-size: 14px;
    height: auto;
}

.btn-secondary.compact svg {
    width: 16px;
    height: 16px;
}

/* 小加载动画 */
.loading-spinner.small {
    width: 14px;
    height: 14px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .ocr-confirm-card {
        padding: 12px !important;
    }
    
    .info-card.compact {
        padding: 10px;
    }
    
    .info-card.compact .info-row.compact {
        padding: 6px 0;
    }
    
    .info-card.compact .info-label.small {
        font-size: 12px;
        min-width: 65px;
    }
    
    .info-card.compact .info-value.small {
        font-size: 13px;
    }
}

/* ===== 头部方向指示器（人脸核验） ===== */
.head-indicators {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
}

.head-dir {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 3px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.head-dir svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.head-dir.active {
    border-color: var(--primary-color, #594AE2);
    background: rgba(89,74,226,0.15);
    animation: headPulse 1.5s infinite;
}

.head-dir.active svg {
    stroke: var(--primary-color, #594AE2);
}

.head-dir.done {
    border-color: #10B981;
    background: rgba(16,185,129,0.15);
    animation: none;
}

.head-dir.done svg {
    stroke: #10B981;
}

@keyframes headPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(89,74,226,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(89,74,226,0); }
}

/* ===== 倒计时显示 ===== */
.countdown-display {
    text-align: center;
    margin: 16px 0;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.countdown-display.detected {
    background: rgba(16,185,129,0.08);
}

.countdown-number {
    font-size: 48px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    line-height: 1;
    transition: color 0.3s ease;
}

.countdown-display.detected .countdown-number {
    color: #10B981;
}

/* ===== 人脸核验 移动端优化 ===== */
.face-verify-card {
    max-height: 100vh;
    overflow-y: auto;
}

/* face-camera-wrap 由 apply.css 统一定义 */

.face-action-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    text-align: center;
}

.face-action-overlay p {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.verify-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
    padding: 4px 0;
}

.head-indicators.compact {
    gap: 12px;
    margin: 0;
}

.head-indicators.compact .head-dir {
    width: 36px;
    height: 36px;
    border-width: 2px;
}

.head-indicators.compact .head-dir svg {
    width: 18px;
    height: 18px;
}

.countdown-inline {
    font-size: 28px;
    font-weight: 700;
    color: #10B981;
    min-width: 56px;
    text-align: center;
    line-height: 1;
}

.countdown-inline span {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

/* id-card-frame 由 apply.css 统一定义 */

.id-camera-zoom .camera-hint {
    position: absolute;
    bottom: 12px;
    left: 0; right: 0;
    text-align: center;
    z-index: 2;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ===== 核验上传框（提交步骤） ===== */
.verifying-box {
    text-align: center;
    padding: 32px 24px;
    background: rgba(89,74,226,0.06);
    border: 1px solid rgba(89,74,226,0.2);
    border-radius: 20px;
    margin: 20px 0;
}

.verifying-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border: 4px solid rgba(89,74,226,0.15);
    border-top-color: #594AE2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.verifying-title {
    font-size: 18px;
    font-weight: 700;
    color: #594AE2;
    margin-bottom: 12px;
}

.verifying-count {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}

.verifying-file-name {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

/* 汇总框 */
.summary-total {
    font-size: 14px;
    color: #594AE2;
    font-weight: 600;
    margin-left: auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.countdown-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* face-oval 基础样式由 apply.css 统一定义 */
.face-oval.detected {
    border-color: #10B981 !important;
    border-style: solid;
    box-shadow: 0 0 20px rgba(16,185,129,0.2);
}

/* ===== 文件上传进度列表 ===== */
.upload-files-progress {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.file-progress-item.active {
    opacity: 1;
    background: rgba(89,74,226,0.08);
}

.file-progress-item.done {
    opacity: 1;
    background: rgba(16,185,129,0.08);
}

.file-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.file-progress-item.active .file-icon { color: #594AE2; }
.file-progress-item.done .file-icon { color: #10B981; }

.file-name {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ===== 重试小按钮 ===== */
.btn-retry-small {
    margin-left: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-retry-small:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ==================== 25. 横屏提示样式 ==================== */

/* 竖屏时叠加在取景框上的轻量横置提示（不阻断拍摄） */
.landscape-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    z-index: 10;
    animation: fadeSlideDown 0.3s ease-out;
}

.landscape-overlay svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.landscape-overlay span {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 旧的全屏横屏提示（保留兼容） */
.landscape-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.landscape-hint svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.landscape-hint p {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.landscape-hint span {
    font-size: 15px;
    opacity: 0.85;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .landscape-hint {
        padding: 50px 16px;
    }
    
    .landscape-hint svg {
        width: 64px;
        height: 64px;
    }
    
    .landscape-hint p {
        font-size: 18px;
    }
    
    .landscape-hint span {
        font-size: 14px;
    }
}

/* @media (orientation: portrait) 由 apply.css 统一定义 */

/* ===== 核验上传全屏过渡层 ===== */
.verify-upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 10, 28, 0.72);
    backdrop-filter: blur(10px);
    animation: verifyOverlayIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.verify-upload-card {
    width: min(100%, 320px);
    padding: 28px 22px 24px;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    text-align: center;
    animation: verifyCardUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.verify-upload-rings {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
}

.verify-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.verify-ring-outer {
    border-top-color: rgba(89,74,226,0.35);
    border-right-color: rgba(89,74,226,0.15);
    animation: verifySpin 1.4s linear infinite;
}

.verify-ring-mid {
    inset: 8px;
    border-top-color: rgba(124,108,255,0.55);
    animation: verifySpin 1.1s linear infinite reverse;
}

.verify-ring-inner {
    inset: 16px;
    border-top-color: #594AE2;
    animation: verifySpin 0.85s linear infinite;
}

.verify-ring-core {
    inset: 24px;
    background: radial-gradient(circle, rgba(89,74,226,0.35) 0%, rgba(89,74,226,0.05) 70%);
    animation: verifyPulse 1.6s ease-in-out infinite;
}

.verify-upload-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.verify-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 2px;
    vertical-align: baseline;
}

.verify-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #A89CFF;
    animation: verifyDotPulse 1.2s ease-in-out infinite;
}

.verify-dots span:nth-child(2) { animation-delay: 0.15s; }
.verify-dots span:nth-child(3) { animation-delay: 0.3s; }

.verify-step-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.verify-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    transition: all 0.35s ease;
}

.verify-step-dot.active {
    width: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #594AE2, #7C6CFF);
    box-shadow: 0 0 12px rgba(89,74,226,0.45);
}

.verify-step-dot.done {
    background: #10B981;
}

.verify-step-label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-left: 4px;
}

.verify-upload-sub-wrap {
    min-height: 22px;
    margin-bottom: 14px;
    overflow: hidden;
}

.verify-upload-sub {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    animation: verifySubIn 0.32s ease;
}

.verify-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    margin-bottom: 10px;
}

.verify-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #594AE2, #10B981);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(89,74,226,0.35);
}

.verify-progress-hint {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.id-card-step.is-transitioning,
.face-verify-card.is-transitioning,
.step-card.is-transitioning {
    opacity: 0.35;
    transform: scale(0.98);
    filter: blur(1px);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
    pointer-events: none;
}

@keyframes verifyOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes verifyCardUp {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes verifySpin {
    to { transform: rotate(360deg); }
}

@keyframes verifyPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.65; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes verifyDotPulse {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes verifySubIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

