/* ===== C端采集页 - 全局设计系统（紧凑移动优先） ===== */
:root {
    /* 主色体系 */
    --primary: #594AE2;
    --primary-light: #7B6FF0;
    --primary-dark: #4538C9;
    --accent: #1E88E5;
    --gradient-primary: linear-gradient(135deg, #594AE2 0%, #1E88E5 100%);
    --gradient-primary-h: linear-gradient(135deg, #6B5EEF 0%, #2196F3 100%);

    /* 语义色 */
    --success: #00C853;
    --success-bg: #E8F9EF;
    --warning: #FF9800;
    --warning-bg: #FFF4E5;
    --error: #FF5252;
    --error-bg: #FFEBEE;
    --info: #1E88E5;
    --info-bg: #E3F2FD;

    /* 背景与卡片 */
    --bg-gradient: linear-gradient(180deg, #F0F4FF 0%, #E8EAFE 50%, #F0F4FF 100%);
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 24px rgba(89, 74, 226, 0.08);
    --card-shadow-hover: 0 8px 40px rgba(89, 74, 226, 0.15);

    /* 文字 */
    --text: #1A1A2E;
    --text-secondary: #555570;
    --text-muted: #9999AE;
    --text-inverse: #FFFFFF;

    /* 圆角 */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* 间距 */
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 14px;
    --space-lg: 18px;
    --space-xl: 24px;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    overflow-x: hidden;
}

/* 科技感网格纹理叠加层 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(89, 74, 226, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(89, 74, 226, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* ===== 顶部进度条 ===== */
.progress-track {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(89, 74, 226, 0.12);
    z-index: 1000;
}
.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(89, 74, 226, 0.4);
}
.progress-info {
    position: fixed;
    top: 6px; left: 0; right: 0;
    text-align: center;
    z-index: 1000;
}
.progress-step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

/* ===== 主容器（紧凑，高度由 apply-viewport.css 控制） ===== */
.apply-wrapper {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== 大圆角卡片（紧凑） ===== */
.step-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--card-shadow);
    animation: cardFadeIn 0.4s ease;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 步骤头部（紧凑） */
.step-header { text-align: center; margin-bottom: 10px; }
.step-icon-wrap {
    width: 40px; height: 40px;
    margin: 0 auto 6px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(89,74,226,0.1), rgba(30,136,229,0.1));
}
.step-icon-wrap svg { width: 22px; height: 22px; }
.step-title {
    font-size: 18px; font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.step-desc {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.5;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 14px; }
.form-label {
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px; display: block;
}
.form-input {
    width: 100%; padding: 14px 16px;
    border: 2px solid #E8E8F0; border-radius: var(--radius-md);
    font-size: 16px; color: var(--text);
    outline: none; transition: all 0.25s;
    background: #FAFAFE;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(89, 74, 226, 0.08);
}
.form-input.error {
    border-color: var(--error);
    background: var(--error-bg);
}
.error-msg {
    font-size: 13px; color: var(--error);
    margin-top: 6px;
    display: flex; align-items: center; gap: 4px;
}

/* ===== 按钮（紧凑） ===== */
.btn-primary {
    width: 100%; height: 48px;
    background: var(--gradient-primary);
    color: #fff;
    border: none; border-radius: var(--radius-md);
    font-size: 16px; font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(89, 74, 226, 0.25);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(89, 74, 226, 0.35); }
.btn-primary:disabled {
    background: #C4C4D8;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    flex: 1; height: 48px;
    background: #F5F5FA; color: var(--text-secondary);
    border: 2px solid #E8E8F0; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 500; cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-secondary:active { transform: scale(0.97); }

.btn-outline {
    width: 100%; height: 48px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:active { transform: scale(0.97); }

.btn-row { display: flex; gap: 10px; margin-top: 12px; }

/* ===== 加载动画 ===== */
.loading-spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
.loading-center { text-align: center; padding: 32px 0; }
.spinner {
    width: 40px; height: 40px;
    border: 4px solid rgba(89,74,226,0.12);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 隐私授权 ===== */
.privacy-content {
    max-height: 260px; overflow-y: auto;
    background: #FAFAFE;
    border: 1px solid #E8E8F0;
    border-radius: var(--radius-md);
    padding: 14px; margin: 10px 0;
    font-size: 13px; line-height: 1.8; color: var(--text-secondary);
}
.privacy-content h3 {
    font-size: 14px; font-weight: 700;
    color: var(--text);
    margin: 12px 0 6px;
}
.privacy-content h3:first-child { margin-top: 0; }
.privacy-content ul { padding-left: 18px; }
.privacy-content li { margin: 4px 0; }
.privacy-content strong { color: var(--text); }

.checkbox-row {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 12px 0; font-size: 14px; color: var(--text-secondary);
    cursor: pointer;
}
.checkbox-row input {
    margin-top: 2px; width: 20px; height: 20px;
    flex-shrink: 0; accent-color: var(--primary);
    cursor: pointer;
}
.link { color: var(--primary); text-decoration: underline; font-weight: 500; }

.privacy-disclaimer {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: #FAFAFE;
    border: 1px solid #E8EAF4;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-height: 42vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.privacy-disclaimer p {
    margin: 0 0 10px;
}

.privacy-disclaimer p:last-child {
    margin-bottom: 0;
}

.privacy-disclaimer-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px !important;
}

.privacy-list {
    margin: 0 0 10px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.privacy-list li {
    margin-bottom: 6px;
}

.privacy-list li:last-child {
    margin-bottom: 0;
}

.privacy-note-inline {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.privacy-check {
    margin-bottom: 10px !important;
    align-items: flex-start;
}

.privacy-check span {
    font-size: 13px;
    line-height: 1.55;
}

.privacy-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===== 法律文档静态页 ===== */
.legal-page {
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-gradient);
    padding: clamp(12px, 3vw, 20px) clamp(12px, 4vw, 16px) clamp(24px, 5vh, 40px);
}

.legal-doc {
    max-width: 720px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: clamp(16px, 4vw, 28px) clamp(16px, 4vw, 24px);
}

.legal-doc-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ECEEF4;
}

.legal-back {
    display: inline-block;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
}

.legal-doc-header h1 {
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.35;
}

.legal-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.legal-section {
    margin-bottom: 22px;
}

.legal-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.4;
}

.legal-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 14px 0 8px;
}

.legal-section p,
.legal-section li {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 10px;
}

.legal-section ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-lead {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text);
}

.legal-doc-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed #E0E2EE;
}

.legal-doc-footer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.privacy-note {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

/* ===== 手机号验证页 ===== */
.phone-step-card {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vh, 14px);
}

.phone-hero {
    text-align: center;
    padding: clamp(2px, 0.5vh, 6px) 0;
}

.phone-hero.compact { padding-bottom: 2px; }

.phone-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(89, 74, 226, 0.1), rgba(30, 136, 229, 0.08));
    border: 1px solid rgba(89, 74, 226, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.phone-hero-icon {
    width: clamp(52px, 14vw, 60px);
    height: clamp(52px, 14vw, 60px);
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(89, 74, 226, 0.28);
}

.phone-hero-icon.small { width: 48px; height: 48px; }
.phone-hero-icon svg { width: 58%; height: 58%; }

.phone-hero-title {
    font-size: clamp(18px, 4.8vw, 21px);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px;
}

.phone-hero-desc {
    font-size: clamp(13px, 3.5vw, 14px);
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.phone-hero-desc strong { color: var(--primary-dark); font-weight: 700; }

.phone-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.phone-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #FAFBFF 0%, #F3F4FC 100%);
    border: 1px solid #ECEEF8;
}

.phone-feature-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.phone-feature-icon svg { width: 18px; height: 18px; }
.phone-feature-icon.secure { background: rgba(89, 74, 226, 0.12); color: var(--primary); }
.phone-feature-icon.fast { background: rgba(30, 136, 229, 0.12); color: var(--accent); }
.phone-feature-icon.track { background: rgba(0, 200, 83, 0.12); color: #00A843; }
.phone-feature-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }

.phone-input-panel {
    background: linear-gradient(180deg, #FAFBFF 0%, #F5F6FC 100%);
    border: 1px solid #E8EAF4;
    border-radius: var(--radius-md);
    padding: 14px;
}

.phone-input-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

/* 美化输入框：单层外壳 + 内嵌输入，无套娃边框 */
.phone-input-shell {
    display: flex;
    align-items: stretch;
    min-height: 54px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid #E4E6F0;
    box-shadow: 0 2px 8px rgba(89, 74, 226, 0.06);
    transition: border-color 0.22s, box-shadow 0.22s;
    overflow: hidden;
}

.phone-input-shell:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(89, 74, 226, 0.1), 0 4px 16px rgba(89, 74, 226, 0.08);
}

.phone-input-shell.valid {
    border-color: #66BB6A;
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.12);
}

.phone-input-shell.warn {
    border-color: var(--warning);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.phone-input-shell.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.1);
}

.phone-input-prefix {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(180deg, #F8F9FF 0%, #F0F2FA 100%);
    border-right: 1px solid #ECEEF4;
}

.phone-input-core {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 16px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text);
    caret-color: var(--primary);
}

.phone-input-core::placeholder {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-muted);
}

.phone-input-shell.id-last4 { justify-content: center; }
.phone-input-shell.id-last4 .phone-input-core,
.phone-input-core.id-last4-core {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 22px;
    padding: 14px 16px;
}

.phone-error { margin-top: 8px; }

.phone-submit-btn { margin-top: 2px; }
.phone-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.phone-trust-bar {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 4vw, 20px);
    flex-wrap: wrap;
    padding: 8px 4px 2px;
    border-top: 1px dashed #E8EAF4;
}

.phone-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.phone-trust-item svg { width: 14px; height: 14px; color: var(--primary); opacity: 0.75; }

.phone-readonly-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #F5F6FF, #EEF1FF);
    border: 1px solid #E0E4F8;
    border-radius: var(--radius-md);
}
.phone-readonly-label { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.phone-readonly-value { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.phone-change-btn {
    flex-shrink: 0; background: none; border: none;
    color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0;
}

.phone-footer-note {
    text-align: center;
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.phone-footnote {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.phone-masked-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 2px solid #E8E8F0;
    border-radius: var(--radius-md);
    background: #F5F5FA;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.phone-change-link {
    background: none; border: none; color: var(--primary);
    font-size: 14px; font-weight: 600; cursor: pointer; padding: 0;
}

.id-last4-input {
    text-align: center;
    letter-spacing: 0.3em;
    font-size: 20px;
    font-weight: 600;
}

/* ===== 拍摄布局：大取景框 + 竖屏 3:4 ===== */
.camera-wrap {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;  /* 大取景框，竖屏友好 */
    max-height: 72vh;  /* 加大高度 */
    margin-bottom: 8px;  /* 减小底部间距 */
}
.camera-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.camera-wrap img,
.id-card-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.id-card-live-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.id-card-live-video.is-preview-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
.id-card-preview-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: #000;
}
.id-card-camera .id-card-hint-text,
.id-card-camera .id-card-frame,
.id-card-camera .camera-hint {
    z-index: 3;
}

/* 横置拍摄：框高 = 身份证宽(85.6mm)，框宽 = 身份证高(54mm)，等比例略缩小 */
.id-card-frame.landscape {
    aspect-ratio: 54 / 85.6;
    height: 72%;
    width: auto;
    max-width: 65%;
}
.id-card-frame {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-md);
    z-index: 2;
    pointer-events: none;
}
.frame-corner {
    position: absolute; width: 24px; height: 24px;
    border-color: rgba(255,255,255,0.9); border-style: solid;
}
.frame-corner.tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.frame-corner.tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.frame-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.frame-corner.br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

.id-card-frame.detecting .frame-corner {
    border-color: rgba(255, 255, 255, 0.85);
    animation: framePulse 1.2s ease-in-out infinite;
}
.id-card-frame.detected .frame-corner {
    border-color: #34D399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
}
.id-card-frame.wrong-side .frame-corner {
    border-color: #FBBF24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}
@keyframes framePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* 身份证正反面切换动画 */
.id-card-step {
    perspective: 1200px;
}
.id-card-side-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}
.id-card-side-tabs .side-tab {
    padding: 4px 10px;
    border-radius: 12px;
    background: #F0F0F8;
    color: var(--text-muted);
    transition: all 0.35s ease;
}
.id-card-side-tabs .side-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(89, 74, 226, 0.25);
}
.id-card-side-tabs .side-tab.done {
    background: #E8F5E9;
    color: #2E7D32;
}
.id-card-side-tabs .side-tab-arrow {
    color: var(--text-muted);
    font-size: 11px;
    transition: transform 0.35s ease;
}
.id-card-step.is-transitioning .side-tab-arrow {
    transform: translateX(4px);
}
.id-card-camera {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}
.id-card-camera.flip-out {
    animation: idCardFlipOut 0.38s ease-in forwards;
}
.id-card-camera.flip-in {
    animation: idCardFlipIn 0.38s ease-out forwards;
}
@keyframes idCardFlipOut {
    0% { transform: rotateY(0deg); opacity: 1; }
    100% { transform: rotateY(-88deg); opacity: 0.15; }
}
@keyframes idCardFlipIn {
    0% { transform: rotateY(88deg); opacity: 0.15; }
    100% { transform: rotateY(0deg); opacity: 1; }
}
.id-card-step-header.header-fade-out {
    animation: idHeaderOut 0.32s ease forwards;
}
.id-card-step-header.header-fade-in {
    animation: idHeaderIn 0.32s ease forwards;
}
@keyframes idHeaderOut {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes idHeaderIn {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 身份证横置提示 */
.id-card-hint-text {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    white-space: nowrap;
}
.id-card-hint-text svg {
    width: 14px; height: 14px;
    flex-shrink: 0;
}
.camera-hint {
    position: absolute; bottom: 8px; left: 0; right: 0;
    text-align: center; color: rgba(255,255,255,0.9);
    font-size: 12px;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* ===== 状态消息 ===== */
.status-msg {
    margin: 8px 0; padding: 10px 14px;
    border-radius: var(--radius-sm); font-size: 13px;
    display: flex; align-items: center; gap: 6px;
}
.status-msg.info { background: var(--info-bg); color: #1565C0; }
.status-msg.error { background: var(--error-bg); color: #C62828; }
.status-msg.success { background: var(--success-bg); color: #2E7D32; }

/* ===== 上传进度 ===== */
.upload-progress { margin: 10px 0; }
.upload-bar-wrap {
    height: 6px; background: #F0F0F5;
    border-radius: 4px; overflow: hidden;
}
.upload-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s;
}
.upload-progress span {
    font-size: 12px; color: var(--text-muted);
    margin-top: 4px; display: block;
}

/* ===== 补充材料卡片 ===== */
.material-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.material-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; border-radius: var(--radius-md);
    border: 2px solid #E8E8F0;
    background: #FAFAFE;
    cursor: pointer; transition: all 0.25s;
}
.material-item:hover { border-color: var(--primary-light); }
.material-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(89,74,226,0.05), rgba(30,136,229,0.05));
    box-shadow: 0 2px 12px rgba(89,74,226,0.1);
}
.mat-icon-wrap {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: #F0F0F8;
    color: var(--primary);
    flex-shrink: 0;
}
.material-item.selected .mat-icon-wrap {
    background: var(--gradient-primary);
    color: #fff;
}
.mat-info { flex: 1; }
.mat-name { font-weight: 600; font-size: 14px; color: var(--text); }
.mat-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.mat-check {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid #E8E8F0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.material-item.selected .mat-check {
    background: var(--gradient-primary);
    border-color: transparent;
}
.mat-check svg { width: 14px; height: 14px; color: #fff; }

/* ===== OCR信息确认卡片 ===== */
.info-card {
    background: #FAFAFE;
    border: 1px solid #E8E8F0;
    border-radius: var(--radius-md);
    padding: 16px; margin: 12px 0;
}
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F5;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-size: 14px; }
.info-value { font-weight: 600; font-size: 15px; color: var(--text); }

/* ===== 身份信息核对面板 ===== */
.identity-panel-hint {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 10px;
    text-align: center;
}

.identity-panel-hint--warn {
    background: var(--warning-bg);
    color: #E65100;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    text-align: left;
}

.identity-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
}

.identity-field {
    border: 2px solid #E8EAF4;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.identity-field:hover:not(.identity-field--readonly):not(.is-editing):not(.is-static) {
    border-color: rgba(89, 74, 226, 0.35);
    box-shadow: 0 4px 14px rgba(89, 74, 226, 0.08);
}

.identity-field.is-editing {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(89, 74, 226, 0.1);
    cursor: default;
}

.identity-field.is-static {
    cursor: default;
}

.identity-field--readonly {
    cursor: default;
    background: linear-gradient(180deg, #FAFBFF 0%, #F5F6FC 100%);
}

.identity-field--blocked {
    border-color: #F44336;
    background: #FFF5F5;
    box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.08);
}

.duplicate-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: #FFF8E7;
    border: 1px solid #FFE082;
    color: #E65100;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

.identity-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.identity-field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.identity-required {
    color: var(--error);
}

.identity-field-action {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
}

.identity-field-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: #EEF0F8;
    padding: 2px 8px;
    border-radius: 10px;
}

.identity-field-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    word-break: break-all;
}

.identity-field-value--id {
    font-size: 17px;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

.identity-field-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 2px;
}

.identity-field-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    padding: 2px 0 6px;
    font-family: inherit;
}

.identity-field-input--id {
    font-size: 17px;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

.identity-field-input--date {
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
}

.identity-field-input::placeholder {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
}

.identity-field-done {
    margin-top: 8px;
    align-self: flex-start;
    border: none;
    background: rgba(89, 74, 226, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
}

.identity-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.identity-validity-edit {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.identity-error {
    font-size: 13px;
    margin-bottom: 10px;
}

/* ===== 人脸核验 - 活体检测 ===== */
.face-verify-card.face-liveness {
    padding: 8px 0 14px;
}
.face-verify-card.face-liveness .liveness-header {
    padding: 0 14px;
    margin-bottom: 8px;
}
.face-liveness .liveness-intro {
    margin-bottom: 12px;
}
.face-liveness .liveness-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}
.face-liveness .liveness-title.compact {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}
.face-liveness .liveness-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.45;
}
.face-liveness .liveness-tips {
    margin: 0;
    padding: 12px 14px 12px 28px;
    background: #F8F9FC;
    border: 1px solid #E8EAF0;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}
.face-liveness .liveness-tips li { margin-bottom: 4px; }
.face-liveness .liveness-tips li:last-child { margin-bottom: 0; }

.face-liveness .liveness-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 10px;
}
.face-liveness .liveness-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 52px;
}
.face-liveness .liveness-step .step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #E8EAF0;
    color: #888;
    transition: all 0.3s ease;
}
.face-liveness .liveness-step .step-label {
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.face-liveness .liveness-step.active .step-badge {
    background: #232F3E;
    color: #fff;
    box-shadow: 0 2px 8px rgba(35, 47, 62, 0.35);
}
.face-liveness .liveness-step.active .step-label {
    color: #232F3E;
    font-weight: 600;
}
.face-liveness .liveness-step.done .step-badge {
    background: #067D62;
    color: #fff;
}
.face-liveness .liveness-step.done .step-label { color: #067D62; }
.face-liveness .liveness-step-line {
    width: 28px;
    height: 2px;
    background: #D5D9E0;
    margin: 0 2px 14px;
    transition: background 0.3s ease;
}
.face-liveness .liveness-step-line.done { background: #067D62; }

.face-camera-wrap.liveness-camera {
    position: relative;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    overflow: hidden;
    background: #111;
    border-radius: 0;
    max-height: none;
    min-height: min(calc(100vw * 4 / 3), calc(100vh - 168px));
    aspect-ratio: 3 / 4;
}
.face-camera-wrap.liveness-camera video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.face-camera-wrap.liveness-camera video.face-video-mirror {
    transform: scaleX(-1);
}
.face-contour-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.face-liveness .liveness-rec {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 14px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}
.face-liveness .rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E53935;
    animation: recBlink 1.2s ease-in-out infinite;
}
@keyframes recBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.face-liveness .liveness-turn-arrow {
    position: absolute;
    top: 42%;
    z-index: 5;
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.92);
    animation: turnPulse 1.4s ease-in-out infinite;
    pointer-events: none;
}
.face-liveness .liveness-turn-arrow.left { left: 6%; }
.face-liveness .liveness-turn-arrow.right { right: 6%; }
.face-liveness .liveness-turn-arrow svg { width: 100%; height: 100%; }
@keyframes turnPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.face-liveness .liveness-prompt {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    padding: 20px 16px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    text-align: center;
}
.face-liveness .liveness-prompt p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.face-liveness .liveness-prompt.warn p { color: #FFE082; }
.face-liveness .liveness-countdown {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.face-liveness .liveness-start-btn {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
    background: #232F3E;
    border: none;
    border-radius: var(--radius-md);
}
.face-liveness .liveness-start-btn:hover {
    background: #131921;
}
.face-liveness .liveness-actions {
    margin-top: 12px;
}
.face-liveness .liveness-success {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #E8F5F0;
    color: #067D62;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
}

/* 旧版人脸样式保留兼容 */
.face-camera-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    max-height: 72vh;
    /* 物理竖屏 3:4 拍摄 */
    aspect-ratio: 3/4;
}
.face-camera-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* 人脸轮廓铺满取景框 */
.face-frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.face-head-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.face-head-svg .head-outline,
.face-head-svg .ear-outline {
    fill: none;
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 2.5;
    stroke-dasharray: 9 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease, stroke-dasharray 0.3s ease;
}
.face-head-svg .nose-hint,
.face-head-svg .shoulder-hint {
    fill: none;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
    stroke-linecap: round;
}
.face-head-svg.detected .head-outline,
.face-head-svg.detected .ear-outline,
.face-head-svg.detected .shoulder-hint {
    stroke: #34D399;
    stroke-dasharray: none;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.5));
}

/* 距离提示徽章 */
.face-hold-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 5;
    white-space: nowrap;
}
.face-hold-badge svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* 动作提示条 */
.face-action-banner {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 9px 20px;
    background: linear-gradient(135deg, rgba(89, 74, 226, 0.92), rgba(67, 56, 202, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    z-index: 5;
    max-width: 88%;
    text-align: center;
    line-height: 1.35;
}
.face-action-banner.warn {
    background: linear-gradient(135deg, rgba(40, 40, 48, 0.92), rgba(28, 28, 36, 0.92));
    border-color: rgba(251, 191, 36, 0.45);
    color: #FDE68A;
}

/* 核验底栏：倒计时 + 方向键 */
.verify-bottom-bar {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: 88%;
}
.countdown-pill {
    min-width: 64px;
    padding: 6px 16px;
    background: rgba(89, 74, 226, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    box-shadow: 0 4px 16px rgba(89, 74, 226, 0.45);
    letter-spacing: 0;
}
.countdown-pill span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    margin-left: 2px;
}
.head-indicators-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.head-indicators-row .head-dir {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}
.head-indicators-row .head-dir svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.8);
}
.head-indicators-row .head-dir.active {
    background: rgba(89, 74, 226, 0.55);
    border-color: rgba(167, 139, 250, 0.9);
    box-shadow: 0 0 16px rgba(89, 74, 226, 0.55);
}
.head-indicators-row .head-dir.active svg { stroke: #fff; }
.head-indicators-row .head-dir.done {
    background: rgba(16, 185, 129, 0.45);
    border-color: rgba(52, 211, 153, 0.85);
}
.head-indicators-row .head-dir.done svg { stroke: #fff; }

/* ===== 人脸操作提示（竖屏内正常显示在摄像头下方） ===== */
.face-action-text {
    text-align: center;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}


/* ===== 人脸方向控制行（竖排，放在右侧控制区） ===== */
.verify-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.head-indicators.compact {
    display: flex;
    gap: 10px;
    margin: 0;
}
.head-dir {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #F5F5FA;
    border: 2px solid #E0E0EC;
    transition: all 0.3s ease;
}
.head-dir svg {
    width: 18px; height: 18px;
    stroke: #B0B0C0;
    transition: all 0.3s ease;
}
.head-dir.active {
    border-color: var(--primary);
    background: rgba(89,74,226,0.12);
    animation: headPulse 1.5s infinite;
}
.head-dir.active svg { stroke: var(--primary); }
.head-dir.done {
    border-color: var(--success);
    background: var(--success-bg);
    animation: none;
}
.head-dir.done svg { stroke: var(--success); }
@keyframes headPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(89,74,226,0.3); }
    50% { box-shadow: 0 0 0 6px rgba(89,74,226,0); }
}

.countdown-inline {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    min-width: 44px;
    text-align: center;
}
.countdown-inline span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

/* ===== 人脸核验透明叠加层（倒计时+方向指示器） ===== */
.verify-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    pointer-events: none;
}

/* 倒计时大数字 - 透明叠加 */
.countdown-overlay {
    font-size: 64px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1;
    margin-bottom: 12px;
    animation: countdownPulse 1s ease-in-out infinite;
}
.countdown-overlay span {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 4px;
}
@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

/* 方向指示器 - 透明叠加在取景框上 */
.head-indicators-overlay {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
/* 横持场景：纵向排列，左右转头用上下箭头 */
.head-indicators-overlay.head-indicators-landscape {
    flex-direction: column;
    gap: 12px;
}
.head-indicators-landscape .head-dir.left svg,
.head-indicators-landscape .head-dir.right svg {
    transform: rotate(-90deg);
}
.head-indicators-overlay .head-dir {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.head-indicators-overlay .head-dir svg {
    width: 22px;
    height: 22px;
    stroke: rgba(255, 255, 255, 0.7);
}
.head-indicators-overlay .head-dir.active {
    background: rgba(89, 74, 226, 0.3);
    border-color: rgba(89, 74, 226, 0.8);
    box-shadow: 0 0 20px rgba(89, 74, 226, 0.5);
}
.head-indicators-overlay .head-dir.active svg {
    stroke: #fff;
}
.head-indicators-overlay .head-dir.done {
    background: rgba(0, 200, 83, 0.3);
    border-color: rgba(0, 200, 83, 0.8);
    box-shadow: 0 0 16px rgba(0, 200, 83, 0.4);
}
.head-indicators-overlay .head-dir.done svg {
    stroke: #fff;
}

/* ===== 步骤动作提示（竖屏内正常显示） ===== */
.action-prompt { text-align: center; padding: 16px 0 8px; }
.action-icon-wrap {
    width: 44px; height: 44px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(89,74,226,0.1), rgba(30,136,229,0.1));
    display: flex; align-items: center; justify-content: center;
}
.action-icon-wrap svg { width: 24px; height: 24px; color: var(--primary); }
.action-text { font-size: 15px; font-weight: 600; color: var(--text); }
.countdown {
    font-size: 44px; font-weight: 800; color: var(--primary);
    margin-top: 6px;
    animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.85; }
}
.step-dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #E0E0EC; transition: all 0.3s;
}
.dot.active { background: var(--gradient-primary); transform: scale(1.3); }
.dot.done { background: var(--success); }

/* ===== 提交成功页 ===== */
.success-icon-wrap {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00C853, #00E676);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 200, 83, 0.3);
    animation: bounceIn 0.6s ease;
}
@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
.success-icon-wrap svg { width: 36px; height: 36px; color: #fff; }
.summary-box {
    background: #FAFAFE;
    border: 1px solid #E8E8F0;
    border-radius: var(--radius-md);
    padding: 14px; margin: 14px 0;
}
.summary-item {
    padding: 8px 0;
    font-size: 14px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid #F0F0F5;
}
.summary-item:last-child { border-bottom: none; }
.summary-check {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--success-bg);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.summary-check svg { width: 12px; height: 12px; color: var(--success); }
.notice-box {
    background: linear-gradient(135deg, rgba(89,74,226,0.05), rgba(30,136,229,0.05));
    border: 1px solid rgba(89,74,226,0.1);
    border-radius: var(--radius-md);
    padding: 14px; margin: 14px 0;
}
.notice-item {
    font-size: 14px; color: var(--text-secondary);
    padding: 4px 0;
    display: flex; align-items: center; gap: 8px;
}
.app-no {
    font-family: "SF Mono", "Consolas", monospace;
    font-size: 18px; font-weight: 700;
    color: var(--primary);
    background: rgba(89,74,226,0.06);
    padding: 10px 16px; border-radius: var(--radius-sm);
    text-align: center; margin: 12px 0;
    letter-spacing: 1px;
}

/* ===== 审批进度 ===== */
.progress-status-card {
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    text-align: center; margin: 14px 0;
}
.status-pending {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border: 2px solid #FFC107;
}
.status-approved {
    background: linear-gradient(135deg, #E8F9EF, #C8E6C9);
    border: 2px solid var(--success);
}
.status-rejected {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border: 2px solid var(--error);
}
.status-icon-wrap {
    width: 56px; height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.status-pending .status-icon-wrap { background: rgba(255,193,7,0.2); }
.status-approved .status-icon-wrap { background: rgba(0,200,83,0.2); }
.status-rejected .status-icon-wrap { background: rgba(255,82,82,0.2); }
.status-icon-wrap svg { width: 28px; height: 28px; }
.status-pending .status-icon-wrap svg { color: #F57F17; }
.status-approved .status-icon-wrap svg { color: var(--success); }
.status-rejected .status-icon-wrap svg { color: var(--error); }
.progress-status-text {
    font-size: 20px; font-weight: 700; margin-bottom: 8px;
}
.status-pending .progress-status-text { color: #F57F17; }
.status-approved .progress-status-text { color: #2E7D32; }
.status-rejected .progress-status-text { color: #C62828; }
.progress-desc { font-size: 14px; color: var(--text-secondary); }
.progress-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.reject-reason {
    background: rgba(255,82,82,0.08);
    border-radius: var(--radius-sm);
    padding: 12px; margin: 10px 0; text-align: left;
}
.reason-label { font-weight: 700; font-size: 13px; color: var(--error); }
.reason-content { font-size: 14px; color: var(--text); margin-top: 4px; }
.time-info {
    font-size: 12px; color: var(--text-muted);
    margin-top: 14px;
    display: flex; flex-direction: column; gap: 4px;
}
.phone-query { margin-top: 20px; padding-top: 20px; border-top: 1px solid #E8E8F0; }
.empty-box { text-align: center; padding: 32px; color: var(--text-muted); }

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 12px; }
.mt-6 { margin-top: 18px; }
.mb-4 { margin-bottom: 12px; }

/* ===== Blazor 全局错误条（默认隐藏，仅异常时显示） ===== */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0.6rem 1.25rem;
    background: #fff8e1;
    color: #5d4037;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

body.apply-flow-boot #blazor-error-ui {
    display: none !important;
}

.camera-wrap.is-booting video {
    opacity: 0;
}
