/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #2563eb;
    --primary-light: #dbeafe;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--gray-50);
    padding-bottom: 40px;
}

/* ========== 进度条 ========== */
.progress-bar {
    background: #fff;
    padding: 20px 16px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-dot.active {
    background: var(--primary);
    color: #fff;
}

.step-dot.done {
    background: var(--success);
    color: #fff;
}

.step-dot.done span::before {
    content: "✓";
}

.step-dot.done span {
    font-size: 0;
}

.step-dot.done span::before {
    font-size: 14px;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 4px;
    transition: background 0.3s ease;
}

.step-line.active {
    background: var(--success);
}

.step-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--gray-400);
}

.step-labels span {
    flex: 1;
    text-align: center;
}

.step-labels span.active {
    color: var(--primary);
    font-weight: 600;
}

/* ========== 步骤内容 ========== */
.step-content {
    display: none;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

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

/* ========== 卡片 ========== */
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 20px;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.card-header p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ========== 须知框 ========== */
.notice-box {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.notice-box.warning {
    background: var(--warning-light);
}

.notice-box h3 {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.notice-box ul, .notice-box ol {
    padding-left: 18px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 2;
}

.material-list {
    list-style: none;
    padding-left: 0;
}

.material-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
}

.material-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ========== 工种选择 ========== */
.occupation-select {
    margin-bottom: 16px;
}

.occupation-select label {
    display: block;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-weight: 500;
}

/* ========== 表单 ========== */
.form-select, .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--gray-800);
    background: #fff;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input.error {
    border-color: var(--danger);
    background: var(--danger-light);
}

.form-input.valid {
    border-color: var(--success);
}

/* ========== 上传区域 ========== */
.upload-group {
    margin-bottom: 20px;
}

.upload-group label {
    display: block;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--gray-50);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.upload-zone:active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-zone.has-file {
    border-style: solid;
    border-color: var(--success);
    padding: 0;
    min-height: 160px;
}

.upload-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.upload-placeholder p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.upload-placeholder span {
    font-size: 12px;
    color: var(--gray-400);
}

.upload-preview {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius);
}

/* PDF 预览 */
.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 10px;
}

.pdf-preview .pdf-icon {
    font-size: 48px;
}

.pdf-preview p {
    color: var(--primary);
    font-weight: 500;
    word-break: break-all;
    text-align: center;
}

/* 标签徽章 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
    margin-left: 6px;
}

.badge-info {
    background: #dbeafe;
    color: var(--primary);
}

/* 自动识别标签 */
.auto-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: #fef3c7;
    color: #92400e;
    margin-left: 4px;
    vertical-align: middle;
}

.auto-tag.auto-filled {
    background: #d1fae5;
    color: #065f46;
}

/* 必填标记 */
.required {
    color: #dc2626;
    font-weight: 600;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    -webkit-appearance: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:active {
    background: var(--primary-dark);
}

.btn-outline {
    background: #fff;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-300);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg, .btn-large {
    padding: 16px 24px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* ========== 表单区域 ========== */
.form-section {
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-item {
    display: flex;
    flex-direction: column;
}

.form-item.full {
    grid-column: 1 / -1;
}

.form-item label {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.required {
    color: var(--danger);
}

/* ========== 校验结果 ========== */
.validation-summary {
    margin-bottom: 16px;
}

.val-message {
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.val-message.error {
    background: var(--danger-light);
    color: var(--danger);
}

.val-message.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.val-message.success {
    background: var(--success-light);
    color: var(--success);
}

.val-icon {
    flex-shrink: 0;
    font-weight: bold;
}

/* ========== 结果区域 ========== */
.result-box {
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.result-box.success {
    background: var(--success-light);
}

.result-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.result-box h3 {
    font-size: 18px;
    color: var(--success);
    margin-bottom: 6px;
}

.result-box p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ========== 下载列表 ========== */
.download-list {
    margin-bottom: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.download-item:active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.download-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h4 {
    font-size: 15px;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.download-info span {
    font-size: 12px;
    color: var(--gray-400);
}

.download-arrow {
    font-size: 20px;
    color: var(--gray-400);
}

/* ========== Loading ========== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 40px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

.loading-content p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 事项清单 ========== */
.checklist-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.checklist-box h3 {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 10px;
    font-weight: 500;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
    color: var(--gray-600);
    transition: color 0.2s;
}

.checklist-item .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    color: var(--gray-400);
    border: 1.5px solid var(--gray-300);
}

.checklist-item.done {
    color: var(--success);
}

.checklist-item.done .check-icon {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.checklist-item.done .check-icon::before {
    content: "✓";
}

.checklist-item.done .check-icon {
    font-size: 0;
}

.checklist-item.done .check-icon::before {
    font-size: 12px;
}

/* ========== 锁定上传区域 ========== */
.upload-zone.locked {
    position: relative;
}

.upload-zone.locked::after {
    content: "🔒 请先上传身份证";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}

/* ========== OCR 一致性检查弹窗 ========== */
.ocr-check-modal {
    max-width: 480px;
    width: 90%;
}

.ocr-check-tip {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 16px;
}

.ocr-check-list {
    max-height: 300px;
    overflow-y: auto;
}

.ocr-check-item {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-left: 3px solid var(--warning);
}

.ocr-check-item:last-child {
    margin-bottom: 0;
}

.ocr-check-field {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.ocr-check-values {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.ocr-check-ocr {
    color: var(--primary);
}

.ocr-check-manual {
    color: var(--warning);
}

.ocr-check-label {
    font-weight: 500;
    margin-right: 6px;
}

/* ========== OCR 检查弹窗遮罩 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ==========================================================
   2026-11 新流程样式（首页选证 / 分步视图）
   ========================================================== */

/* ---------- 视图切换 ---------- */
.view {
    display: none;
    padding: 16px;
    animation: fadeIn 0.28s ease;
}
.view.active {
    display: block;
}

/* ---------- 顶部栏 ---------- */
.topbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 12px 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.topbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.back-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
    flex-shrink: 0;
}
.topbar-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
}
.topbar-step {
    font-size: 12px;
    color: var(--gray-400);
    min-width: 32px;
    text-align: right;
    flex-shrink: 0;
}
.topbar .progress-steps { margin-top: 2px; }
.topbar .step-dot { width: 26px; height: 26px; font-size: 12px; }

/* ---------- 首页 ---------- */
.hero {
    padding: 28px 8px 22px;
    text-align: center;
}
.hero h1 {
    font-size: 22px;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.hero p {
    font-size: 14px;
    color: var(--gray-500);
}

.cert-list { display: flex; flex-direction: column; gap: 12px; }

.cert-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    cursor: pointer;
}
.cert-card.available:active {
    transform: scale(0.985);
    border-color: var(--primary);
    background: var(--primary-light);
}
.cert-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}
.cert-icon {
    font-size: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cert-body { flex: 1; min-width: 0; }
.cert-body h3 {
    font-size: 16px;
    color: var(--gray-900);
    margin-bottom: 2px;
}
.cert-body p {
    font-size: 12.5px;
    color: var(--gray-500);
}
.cert-arrow {
    font-size: 24px;
    color: var(--gray-300);
    flex-shrink: 0;
}
.cert-badge {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.home-footer { margin-top: 26px; }
.home-tip {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 14px;
    line-height: 1.7;
}

/* 上次报名提示卡 */
.last-apply {
    margin-top: 16px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.last-apply .la-no {
    flex: 1;
    font-size: 13px;
    color: var(--primary-dark);
    word-break: break-all;
}
.last-apply .la-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

/* ---------- 材料清单 ---------- */
.material-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.material-text > span {
    font-size: 14px;
    color: var(--gray-800);
}
.tag-auto, .tag-upload {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    align-self: flex-start;
    font-weight: 500;
}
.tag-auto { background: #dbeafe; color: var(--primary); }
.tag-upload { background: #fef3c7; color: #b45309; }

/* ---------- 分段选择（性别） ---------- */
.segmented {
    display: flex;
    gap: 8px;
}
.seg-btn {
    flex: 1;
    padding: 12px 0;
    border: 1.5px solid var(--gray-300);
    background: #fff;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.18s;
}
.seg-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.small-note {
    font-size: 12.5px;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ---------- 社保选项 ---------- */
.choice-list { display: flex; flex-direction: column; gap: 12px; }
.choice-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.choice-card:active {
    transform: scale(0.985);
    border-color: var(--primary);
    background: var(--primary-light);
}
.choice-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.choice-body { flex: 1; min-width: 0; }
.choice-body h3 {
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 3px;
    font-weight: 600;
}
.choice-body p {
    font-size: 12.5px;
    color: var(--gray-500);
    line-height: 1.55;
}
.choice-arrow {
    font-size: 22px;
    color: var(--gray-300);
    flex-shrink: 0;
}
.hint {
    font-size: 12.5px;
    color: var(--gray-500);
    margin-top: 14px;
    line-height: 1.7;
}

/* ---------- 教程页 ---------- */
.tutorial-site {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.site-label {
    font-size: 12px;
    color: var(--primary-dark);
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.tutorial-site a {
    font-size: 13px;
    color: var(--primary-dark);
    word-break: break-all;
    text-decoration: underline;
}

.tutorial-video {
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}
.tutorial-video video {
    width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}
.video-placeholder {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 28px 16px;
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
}
.video-placeholder .vp-icon { font-size: 28px; display: block; margin-bottom: 6px; }

.tutorial-steps {
    counter-reset: tstep;
    margin-bottom: 6px;
}
.tutorial-steps .tstep {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.65;
    border-bottom: 1px dashed var(--gray-200);
}
.tutorial-steps .tstep:last-child { border-bottom: none; }
.tutorial-steps .tstep::before {
    counter-increment: tstep;
    content: counter(tstep);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.tutorial-images { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.tutorial-images img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    cursor: zoom-in;
}

/* 教程图片全屏查看器 */
.img-viewer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.img-viewer.show { display: flex; }
.img-viewer img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
}
.img-viewer .iv-tip {
    margin-top: 12px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    text-align: center;
    padding: 0 20px;
}
.img-viewer .iv-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    line-height: 40px;
    cursor: pointer;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 16px;
    color: var(--gray-400);
    font-size: 12.5px;
}
.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ---------- 解析结果 ---------- */
.parse-result {
    background: var(--success-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--success);
    line-height: 1.7;
}
.parse-result.warn {
    background: var(--warning-light);
    color: #92400e;
}
.parse-result .pr-title { font-weight: 600; margin-bottom: 4px; }
.parse-row { display: flex; gap: 6px; }

/* ---------- 只读信息网格 ---------- */
.readonly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}
.ro-item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ro-item.full { grid-column: 1 / -1; }
.ro-label { font-size: 12px; color: var(--gray-400); }
.ro-value {
    font-size: 14.5px;
    color: var(--gray-800);
    word-break: break-all;
}
.link {
    font-size: 12.5px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 400;
    float: right;
}

/* ---------- 弹窗 ---------- */
.modal-content {
    background: #fff;
    border-radius: var(--radius);
    width: 90%;
    max-width: 460px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.22s ease;
}
.modal-header {
    padding: 18px 20px 10px;
}
.modal-header h3 {
    font-size: 17px;
    color: var(--gray-900);
}
.modal-body {
    padding: 6px 20px 16px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.75;
}
.modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--gray-100);
}
.modal-footer .btn { flex: 1; }

/* ---------- 状态页 ---------- */
.status-hero {
    text-align: center;
    padding: 20px 0 18px;
}
.status-icon { font-size: 52px; margin-bottom: 10px; }
.status-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 6px;
}
.status-title.reviewing { color: var(--warning); }
.status-title.approved { color: var(--success); }
.status-title.rejected { color: var(--danger); }
.status-sub {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.7;
    padding: 0 6px;
}

.status-info {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
}
.status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 13.5px;
}
.status-row .sr-label { color: var(--gray-500); flex-shrink: 0; }
.status-row .sr-value {
    color: var(--gray-800);
    text-align: right;
    word-break: break-all;
    font-weight: 500;
}

.review-note-box {
    background: var(--danger-light);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: #991b1b;
    line-height: 1.75;
    white-space: pre-wrap;
}
.review-note-box b { display: block; margin-bottom: 4px; }

.print-req {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: var(--gray-700);
    line-height: 1.9;
    white-space: pre-wrap;
}
.print-req-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.download-item.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.download-item.disabled:active {
    border-color: var(--gray-200);
    background: #fff;
}
.lock-note {
    background: var(--warning-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: center;
}
.step-text {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 6px;
}

/* ===================== 审核通过后：事项清单 ===================== */

.task-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 14px;
    margin-top: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.task-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.task-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 12px;
}
.task-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.task-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 12px;
}
.task-tip {
    font-size: 12.5px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    padding: 9px 12px;
    line-height: 1.7;
    margin: 10px 0;
}

/* 报名码展示 */
.rsbs-code-box {
    background: #eff6ff;
    border: 1px dashed #93c5fd;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    margin-bottom: 12px;
}
.rsbs-code-box .rc-label {
    font-size: 12px;
    color: #3b82f6;
    margin-bottom: 4px;
}
.rsbs-code-box .rc-value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #1d4ed8;
    font-family: 'Courier New', monospace;
}
.rsbs-code-box .rc-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ===================== 人社填写对照卡 ===================== */

.rsbs-hero {
    text-align: center;
    padding: 6px 0 14px;
}
.rsbs-hero-icon { font-size: 40px; }
.rsbs-hero-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 4px;
}
.rsbs-hero-sub {
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
    margin-top: 6px;
}
.rs-warn {
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    line-height: 1.7;
}
.rsbs-rows {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}
.rs-row {
    display: flex;
    align-items: flex-start;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.rs-row:last-child { border-bottom: none; }
.rs-row:nth-child(odd) { background: #fafbfc; }
.rs-row.big .rs-value {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #1d4ed8;
    font-family: 'Courier New', monospace;
}
.rs-label {
    flex: 0 0 84px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    padding-top: 2px;
}
.rs-value {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-all;
}
.rs-tip {
    flex-basis: 100%;
    font-size: 12px;
    color: #b45309;
    background: #fffbeb;
    border-radius: 6px;
    padding: 6px 9px;
}
.rs-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.rs-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.rs-section-body {
    font-size: 13px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* ===================== 人社/缴费教程视图 ===================== */

.tut-hero {
    text-align: center;
    padding: 4px 0 14px;
}
.tut-hero-title {
    font-size: 19px;
    font-weight: 800;
    color: #1e293b;
}
.tut-hero-sub {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.7;
}
#rt-video-box video {
    width: 100%;
    border-radius: 12px;
    background: #000;
    margin-bottom: 14px;
}
