/* ========== 商务精致主题（参照金融机构官网风格） ========== */
:root {
    --primary: #004898;
    --primary-dark: #003366;
    --primary-light: #1a6fc4;
    --accent: #c8102e;
    --bg: #f5f6f8;
    --card-bg: #ffffff;
    --border: #e4e7ed;
    --border-light: #eef0f4;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --success: #00a870;
    --warning: #f5a623;
    --danger: #e74c3c;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 72, 152, 0.12);
}

/* 全局 */
* { box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}
a { color: var(--primary); transition: color 0.2s; text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ========== 顶部信息条 ========== */
.top-bar {
    background: #2b2b2b;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    height: 36px;
    line-height: 36px;
}
.top-bar-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-welcome { letter-spacing: 0.5px; }
.top-bar-item { color: rgba(255,255,255,0.6); }

/* ========== 导航栏 ========== */
.navbar {
    background: #fff !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
    height: 64px !important;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.nav-brand a {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    letter-spacing: 1px !important;
}
.nav-links {
    display: flex;
    gap: 40px;
}
.nav-links a {
    color: var(--text-secondary) !important;
    font-size: 15px !important;
    padding: 8px 0 !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}
.nav-links a:hover {
    color: var(--primary) !important;
}
.nav-links a.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
    border-bottom-color: var(--primary) !important;
}
.nav-user {
    display: flex;
    align-items: center;
}
.nav-login-btn {
    padding: 8px 20px !important;
    background: #f0f0f0;
    color: #333 !important;
    border-radius: 6px;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    border: none !important;
}
.nav-login-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* ========== 横幅 ========== */
.hero {
    position: relative;
    height: 380px;
    background: linear-gradient(135deg, #003366 0%, #004898 40%, #0055aa 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-overlay { display: none; }
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.hero h1 {
    color: #fff !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    letter-spacing: 4px !important;
    margin: 0 0 16px 0 !important;
}
.hero-subtitle {
    color: rgba(255,255,255,0.85) !important;
    font-size: 16px !important;
    letter-spacing: 2px !important;
    margin: 0 0 32px 0 !important;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.hero-btn {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.25s;
    cursor: pointer;
}
.hero-btn-primary {
    background: #fff;
    color: var(--primary);
}
.hero-btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}
.hero-btn-outline {
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
}
.hero-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ========== 功能入口图标 ========== */
.entry-icons {
    background: #fff;
    padding: 40px 24px;
    display: flex;
    justify-content: center;
    gap: 80px;
    border-bottom: 1px solid var(--border-light);
}
.entry-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.entry-icon-item:hover { transform: translateY(-4px); }
.entry-icon-item.entry-icon-disabled { cursor: default; opacity: 0.5; }
.entry-icon-item.entry-icon-disabled:hover { transform: none; }
.entry-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0f4f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.25s;
}
.entry-icon-item:hover .entry-icon-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 72, 152, 0.25);
}
.entry-icon-item.entry-icon-disabled:hover .entry-icon-circle {
    background: #f0f4f9;
    color: var(--primary);
    box-shadow: none;
}
.entry-icon-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

/* ========== 内容区块 ========== */
.section {
    padding: 60px 24px;
}
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    text-align: center;
    margin: 0 0 48px 0 !important;
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--primary);
}

/* ========== 功能卡片 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 72, 152, 0.15);
}
.feature-card.coming-soon {
    opacity: 0.65;
    cursor: default;
}
.feature-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: transparent;
}
.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f0fa 0%, #d4e4f7 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin: 0 0 12px 0 !important;
}
.feature-card p {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
    margin: 0 0 16px 0 !important;
}
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.feature-tags .tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    color: var(--primary);
    background: rgba(0, 72, 152, 0.06);
    border-radius: 3px;
}
.feature-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}
.feature-link.disabled { color: var(--text-light); }

/* ========== 页脚 ========== */
.site-footer {
    background: #1f2329;
    color: rgba(255,255,255,0.7);
    margin-top: 0;
    padding: 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.footer-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.footer-bottom p { margin: 0; }

/* ========== 子页面通用样式 ========== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}
.page-title {
    color: var(--text) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
}
.page-desc {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    margin: 0 0 28px 0 !important;
}

/* 卡片 */
.card {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
    border-radius: 8px !important;
}

/* 按钮 */
.btn {
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 9px 28px !important;
    transition: all 0.2s !important;
    letter-spacing: 1px !important;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 4px 12px rgba(0, 72, 152, 0.25) !important;
}
.btn-primary:disabled {
    background: #b0c4de !important;
    border-color: #b0c4de !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
.btn-secondary {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
}
.btn-secondary:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.btn-sm { padding: 5px 16px !important; font-size: 12px !important; }

/* 上传区域 */
.upload-area {
    border: 1px dashed var(--border) !important;
    border-radius: 8px !important;
    transition: all 0.25s !important;
    background: #fafbfc !important;
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary) !important;
    background: #f0f5fb !important;
}
.upload-icon { color: var(--primary) !important; opacity: 0.6; }
.upload-text { color: var(--text) !important; font-size: 14px !important; }
.upload-hint { color: var(--text-light) !important; font-size: 12px !important; }
.upload-notice {
    margin-top: 10px !important;
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    border-left: 3px solid var(--primary) !important;
    border-radius: 4px !important;
}
.upload-notice p {
    margin: 2px 0 !important;
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
}

/* 步骤指示器 */
.step-indicator .step .step-circle {
    border: 2px solid var(--border) !important;
    background: #fff !important;
    color: var(--text-light) !important;
    font-weight: 600 !important;
}
.step-indicator .step.active .step-circle {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 72, 152, 0.2) !important;
}
.step-indicator .step.completed .step-circle {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.step-indicator .step .step-label {
    color: var(--text-light) !important;
    font-size: 13px !important;
}
.step-indicator .step.active .step-label,
.step-indicator .step.completed .step-label {
    color: var(--primary) !important;
    font-weight: 500 !important;
}
.step-indicator .step-line {
    background: var(--border) !important;
    height: 2px !important;
}

/* 表单 */
.form-group label {
    color: var(--text) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.form-group input, .form-group select, .form-group textarea {
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(0, 72, 152, 0.08) !important;
    outline: none !important;
}

/* 下拉选择框 */
.template-select, select {
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    color: var(--text) !important;
    cursor: pointer !important;
}
.template-select:focus, select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(0, 72, 152, 0.08) !important;
    outline: none !important;
}

/* 区块标题 */
.section-title-inline {
    color: var(--text) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-left: 3px solid var(--primary) !important;
    padding-left: 10px !important;
}

/* 提示信息 */
.hint { color: var(--text-secondary) !important; font-size: 12px !important; }
.extract-message { font-size: 12px !important; }

/* Toast */
.toast {
    border-radius: 4px !important;
    font-size: 13px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

/* API配置按钮 */
#apiConfigBtn {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
    border-radius: 4px !important;
}
#apiConfigBtn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* 加载动画 */
.loading-overlay { background: rgba(255,255,255,0.85) !important; }
.loading-spinner {
    border: 3px solid var(--border-light) !important;
    border-top-color: var(--primary) !important;
}

/* 模态框 */
.modal-content {
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
}
.modal-header { border-bottom: 1px solid var(--border-light) !important; }
.modal-footer { border-top: 1px solid var(--border-light) !important; }

/* 生成结果文件列表 */
.result-item {
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
}
.result-item:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(0, 72, 152, 0.08) !important;
}

/* 信息区块 */
.info-section {
    border: 1px solid var(--border-light) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    background: #fcfdff !important;
}

/* 营业执照卡片 */
.license-card {
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
}
.license-card:hover { border-color: var(--primary-light) !important; }

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 24px !important; }
    .hero-subtitle { font-size: 13px !important; }
    .hero { height: 280px; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .entry-icons { gap: 40px; }
    .nav-links { gap: 20px; }
    .top-bar-welcome { display: none; }
}
/* ========== 文件列表（新版） ========== */
.file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 2px;
}
.file-list::-webkit-scrollbar {
    width: 4px;
}
.file-list::-webkit-scrollbar-thumb {
    background: #c8dcf0;
    border-radius: 2px;
}
.file-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #eef4fb;
    border: 1px solid #c8dcf0;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
    max-width: 100%;
    flex-shrink: 0;
}
.file-item:hover {
    background: #e0ecf8;
    border-color: var(--ccb-primary-light);
}
.file-item-icon {
    color: var(--ccb-primary);
    font-size: 12px;
    flex-shrink: 0;
}
.file-item-name {
    flex: 1;
    color: var(--ccb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 220px;
}
.file-item-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 72, 152, 0.1);
    color: var(--ccb-primary);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.file-item-delete:hover {
    background: var(--ccb-danger);
    color: #fff;
    transform: scale(1.1);
}


/* 上传区域有文件时压缩 */
.upload-area.has-files {
    padding: 12px 16px !important;
}
.upload-area.has-files .upload-icon,
.upload-area.has-files .upload-text,
.upload-area.has-files .upload-hint {
    display: none !important;
}
.upload-area.has-files .file-list {
    margin-top: 0;
}

/* 多上传区域（营业执照、自定义格式）有文件时，仍然显示继续上传入口 */
.upload-area.multi-upload.has-files {
    padding: 12px 16px !important;
}
.upload-area.multi-upload.has-files .upload-icon {
    display: none !important;
}
.upload-area.multi-upload.has-files .upload-text {
    display: block !important;
    font-size: 13px;
    color: #2563eb;
    margin-top: 10px;
    font-weight: 500;
}
.upload-area.multi-upload.has-files .upload-text::before {
    content: '+ ';
}
.upload-area.multi-upload.has-files .upload-hint {
    display: block !important;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
.upload-area.multi-upload.has-files .file-list {
    margin-top: 0;
    margin-bottom: 8px;
}

/* 旧版file-name样式兼容（保留但被新版覆盖） */
.file-name-wrapper { display: none !important; }

/* ========== 全局样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
a { color: #1a56db; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== 导航栏 ========== */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand a {
    font-size: 20px;
    font-weight: 700;
    color: #1a56db;
}
.nav-links a {
    margin-left: 24px;
    color: #6b7280;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: #1a56db;
    border-bottom-color: #1a56db;
    text-decoration: none;
}

/* ========== 页面容器 ========== */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
.page-title {
    font-size: 28px;
    color: #111827;
    margin-bottom: 8px;
}
.page-desc {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 15px;
}

/* ========== 卡片 ========== */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111827;
}
.hint {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========== 步骤导航 ========== */
.steps-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.step-item.active, .step-item.completed { opacity: 1; }
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 6px;
    transition: all 0.2s;
}
.step-item.active .step-num { background: #1a56db; color: #fff; }
.step-item.completed .step-num { background: #10b981; color: #fff; }
.step-label { font-size: 13px; color: #6b7280; white-space: nowrap; }
.step-item.active .step-label { color: #1a56db; font-weight: 600; }
.step-line {
    width: 60px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    margin-bottom: 22px;
}

/* ========== 步骤内容 ========== */
.step-content { display: none; }
.step-content.active { display: block; }

/* ========== 上传区域 ========== */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}
.upload-area:hover, .upload-area.dragover {
    border-color: #1a56db;
    background: #eff6ff;
}
.upload-icon { font-size: 40px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.upload-icon svg { width: 48px; height: 48px; }
.upload-text { font-size: 16px; color: #374151; margin-bottom: 4px; }
.upload-hint { font-size: 13px; color: #9ca3af; }
.file-name {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: #1a56db;
    border-radius: 0;
    font-size: 13px;
    margin: 0;
}
.file-name-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 10px 6px 14px;
    background: #e0e7ff;
    color: #1a56db;
    border-radius: 20px;
    font-size: 13px;
    max-width: 100%;
}
.file-name-wrapper .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.file-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(26, 86, 219, 0.15);
    color: #1a56db;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.file-delete-btn:hover {
    background: #ef4444;
    color: white;
}

/* ========== 表单 ========== */
.form-group { margin-bottom: 16px; flex: 1; }
.form-group label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-actions { text-align: center; margin-top: 24px; }

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #1a56db; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #1e40af; }
.btn-secondary { background: #f3f4f6; color: #374151; }
.btn-secondary:hover:not(:disabled) { background: #e5e7eb; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 40px;
}

/* ========== 招标文件提取结果 ========== */
.tender-result {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    color: #374151;
}
.result-msg { font-size: 13px; color: #10b981; font-weight: normal; }
.project-list { display: flex; flex-direction: column; gap: 8px; }
.project-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.project-item:hover { background: #f3f4f6; }
.project-item input[type="checkbox"] { margin-right: 10px; margin-top: 3px; }

/* ========== 营业执照列表 ========== */
.license-list { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.license-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}
.license-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 600;
    color: #374151;
}
.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
}
.btn-remove:hover { background: #fee2e2; }
.license-msg {
    background: #fef3c7;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* ========== 配置列表 ========== */
.config-list { display: flex; flex-direction: column; gap: 16px; }
.config-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.config-company { font-weight: 600; color: #111827; font-size: 15px; }
.config-project { font-size: 13px; color: #6b7280; }
.config-summary { margin-top: 20px; }
.summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 18px;
    border-radius: 8px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    overflow-x: auto;
}
.summary-box span { white-space: nowrap; }
.summary-box strong { color: #1e40af; font-weight: 600; }
.summary-box .highlight { color: #1e40af; font-size: 14px; font-weight: 600; }

/* ========== 生成结果 ========== */
.generate-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #6b7280;
}
.result-list { display: flex; flex-direction: column; gap: 12px; }
.result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.result-info { display: flex; align-items: center; gap: 14px; }
.result-num {
    width: 32px;
    height: 32px;
    background: #1a56db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.result-applicant { font-weight: 600; color: #111827; }
.result-project { font-size: 13px; color: #6b7280; }
.result-actions { display: flex; gap: 8px; }
.hint-text { font-size: 12px; color: #9ca3af; padding: 6px 0; }

/* ========== 加载遮罩 ========== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.loading-overlay.show { display: flex; }
.loading-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
}
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #1a56db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #374151; font-size: 15px; }

/* 上传区域局部进度条 */
.upload-progress { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.upload-progress .progress-bar { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.upload-progress .progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #1a56db, #3b82f6); border-radius: 3px; transition: width 0.3s ease; }
.upload-progress .progress-text { font-size: 12px; color: #6b7280; white-space: nowrap; min-width: 120px; }

/* ========== Toast提示 ========== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #ef4444;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #10b981; }

/* ========== 文档对比 - 上传阶段 ========== */
.upload-row { display: flex; gap: 20px; }
.upload-col { flex: 1; }
.upload-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}
.upload-label-icon {
    width: 18px;
    height: 18px;
    color: #1a56db;
    flex-shrink: 0;
}

/* ========== 文档对比 - 结果阶段(WPS风格) ========== */
.diff-result-phase { height: 100vh; display: flex; flex-direction: column; }
.diff-toolbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.toolbar-left, .toolbar-center, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.toolbar-title { font-size: 16px; font-weight: 600; color: #111827; }
.toolbar-btn {
    background: #f3f4f6;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: background 0.2s;
}
.toolbar-btn:hover { background: #e5e7eb; }
.toolbar-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}
.toolbar-check input { cursor: pointer; }

.diff-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}
.diff-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    min-width: 0;
}
.diff-pane:last-of-type { border-right: none; }
.pane-header {
    padding: 10px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}
.pane-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
}
.doc-content {
    max-width: 100%;
    word-wrap: break-word;
}
.doc-paragraph {
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
    transition: background 0.2s;
    font-size: 14px;
    line-height: 1.8;
    color: #111827;
}
.doc-paragraph.diff-removed { background: #fee2e2; }
.doc-paragraph.diff-added { background: #dcfce7; }
.doc-paragraph.diff-changed { background: transparent; }
.doc-paragraph.diff-active {
    outline: 2px solid #1a56db;
    outline-offset: 1px;
}
.char-diff-removed {
    background: #fed7aa;
    color: #9a3412;
    text-decoration: line-through;
    text-decoration-color: #9a3412;
    border-radius: 2px;
    padding: 0 1px;
}
.char-diff-added {
    background: #bbf7d0;
    color: #166534;
    border-radius: 2px;
    padding: 0 1px;
}
/* 点击右侧差异点时，高亮具体差异文字 */
.diff-point-active {
    outline: 2px solid #1a56db;
    outline-offset: 1px;
    background: #dbeafe !important;
    color: #1e40af !important;
    text-decoration: none !important;
    border-radius: 3px;
    padding: 1px 2px;
}
.doc-table { margin: 10px 0; font-size: 13px; }

/* ========== 差异列表面板 ========== */
.diff-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}
.sidebar-header {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-title { font-size: 15px; font-weight: 600; color: #111827; }
.similarity { font-size: 13px; color: #6b7280; }
.similarity strong { color: #1a56db; font-size: 15px; }
.diff-filters {
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}
.filter-btn:hover { border-color: #1a56db; color: #1a56db; }
.filter-btn.active { background: #1a56db; color: #fff; border-color: #1a56db; }
.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a56db;
    padding: 4px 0;
}
.diff-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f9fafb;
}
.diff-item {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #d1d5db;
    transition: all 0.2s;
}
.diff-item:hover { background: #f0f5fb; border-color: #1a56db; box-shadow: 0 2px 8px rgba(26,86,219,0.1); }
.diff-item-removed { border-left-color: #ef4444; }
.diff-item-added { border-left-color: #22c55e; }
.diff-item-changed { border-left-color: #f59e0b; }
.diff-item-header { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #e5e7eb; }
.diff-type-tag {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.type-removed { color: #dc2626; }
.type-added { color: #16a34a; }
.type-changed { color: #d97706; }
.diff-item-content { font-size: 13px; color: #374151; }
.diff-original, .diff-modified { margin-bottom: 8px; line-height: 1.7; word-break: break-all; }
.diff-original:last-child, .diff-modified:last-child { margin-bottom: 0; }
.diff-label { color: #6b7280; font-size: 12px; font-weight: 600; display: block; margin-bottom: 2px; }
.diff-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
    font-size: 14px;
}

/* ========== 首页 ========== */
.hero {
    background: linear-gradient(135deg, #1e3a8a, #1a56db);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { font-size: 18px; opacity: 0.9; }
.features {
    max-width: 1100px;
    margin: -30px auto 0;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    cursor: pointer;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; color: #111827; }
.feature-card p { color: #6b7280; font-size: 14px; line-height: 1.7; }
.feature-card.coming-soon { opacity: 0.6; cursor: default; }
.feature-card.coming-soon:hover { transform: none; }

/* ========== 三列上传布局 ========== */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.upload-col {
    display: flex;
    flex-direction: column;
}
.upload-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}
.required { color: #ef4444; }
.template-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    color: #166534;
    line-height: 1.6;
}

/* ========== 信息板块 ========== */
.info-section {
    margin-bottom: 28px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a56db;
}

/* ========== 页面头部 ========== */
.page-header {
    position: relative;
    display: block;
    margin-bottom: 30px;
}
.page-header > div:first-child {
    width: 100%;
    box-sizing: border-box;
}
.page-title {
    padding-right: 120px; /* 给API配置按钮留出空间，避免重叠 */
}
#apiConfigBtn {
    position: absolute;
    top: 0;
    right: 0;
}

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 4px;
}
.modal-close:hover { background: #f3f4f6; }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.api-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}
.api-status.success { background: #dcfce7; color: #166534; display: block; }
.api-status.error { background: #fee2e2; color: #991b1b; display: block; }
.api-status.info { background: #dbeafe; color: #1e40af; display: block; }

/* 提取方式标签 */
.extract-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}
.extract-badge.ai { background: #dcfce7; color: #166534; }
.extract-badge.regex { background: #fef3c7; color: #92400e; }
.extract-message {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 6px;
}

/* 招标人选项 */
.beneficiary-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.beneficiary-choice-label {
    font-size: 13px;
    color: #004898;
    font-weight: 600;
    flex-shrink: 0;
}
.beneficiary-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
}
.beneficiary-option:hover {
    background: #e5e7eb;
}
.beneficiary-option input[type="radio"] {
    margin: 0;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
    .upload-row { flex-direction: column; }
    .upload-grid { grid-template-columns: 1fr; }
    .steps-nav { flex-wrap: wrap; gap: 8px; }
    .step-line { display: none; }
    .diff-sidebar { width: 100%; height: 300px; border-left: none; border-top: 1px solid #e5e7eb; }
    .diff-main { flex-direction: column; }
    .summary-box { gap: 16px; padding: 10px 14px; font-size: 13px; }
    .toolbar-center { display: none; }
}

/* 格式模板下拉选择 */
.template-select-area {
    width: 100%;
}
.template-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
}
.template-select:hover {
    border-color: #4a90d9;
    background: #f0f7ff;
}
.template-select:focus {
    outline: none;
    border-color: #4a90d9;
    background: #fff;
}

/* 首页功能卡片细节 */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 16px;
}
.feature-tags .tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    color: var(--ccb-primary);
    background: rgba(0, 72, 152, 0.06);
    border-radius: 3px;
}
.feature-btn {
    color: var(--ccb-primary);
    font-size: 13px;
    font-weight: 500;
}
.feature-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}
.feature-card.coming-soon:hover {
    transform: none !important;
    box-shadow: var(--ccb-shadow) !important;
}
.feature-btn.disabled {
    color: var(--ccb-text-light);
}

/* API配置按钮 */
#apiConfigBtn {
    background: #fff !important;
    border: 1px solid var(--ccb-border) !important;
    color: var(--ccb-text-secondary) !important;
    border-radius: 4px !important;
}
#apiConfigBtn:hover {
    border-color: var(--ccb-primary) !important;
    color: var(--ccb-primary) !important;
}

/* 加载动画 */
.loading-overlay {
    background: rgba(255,255,255,0.85) !important;
}
.loading-spinner {
    border: 3px solid var(--ccb-border-light) !important;
    border-top-color: var(--ccb-primary) !important;
}

/* 模态框 */
.modal-content {
    border-radius: 6px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
}
.modal-header {
    border-bottom: 1px solid var(--ccb-border-light) !important;
}
.modal-footer {
    border-top: 1px solid var(--ccb-border-light) !important;
}

/* 生成结果文件列表 */
.result-item {
    border: 1px solid var(--ccb-border) !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
}
.result-item:hover {
    border-color: var(--ccb-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 72, 152, 0.08) !important;
}

/* 信息区块 */
.info-section {
    border: 1px solid var(--ccb-border-light) !important;
    border-radius: 6px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    background: #fcfdff !important;
}

/* 营业执照卡片 */
.license-card {
    border: 1px solid var(--ccb-border) !important;
    border-radius: 6px !important;
}
.license-card:hover {
    border-color: var(--ccb-primary-light) !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 22px !important; }
    .page-title { font-size: 20px !important; }
    .navbar { padding: 0 16px !important; }
}

/* ========== 必填项缺失高亮 ========== */
.form-group.missing-field {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}
.form-group.missing-field label {
    color: #dc2626 !important;
    font-weight: 600 !important;
}
.form-group.missing-field input,
.form-group.missing-field select {
    border: 2px solid #ef4444 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.field-warning {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* 营业执照卡片缺失警告 */
.license-card:has(.missing-field) {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* ========== 多格式选择样式 ========== */
.template-multi-area {
    width: 100%;
}

/* 上传网格布局 */
.upload-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.upload-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 30px;
}
.upload-col-full {
    width: 100%;
}

/* 标题行：标题 + 数量提示 */
.upload-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.upload-label-row .upload-label {
    margin-bottom: 0;
}
.template-count-inline {
    font-size: 12px;
    color: #6b7280;
    font-weight: normal;
    margin-left: 8px;
}
.template-count-inline span {
    color: #2563eb;
    font-weight: 700;
    font-size: 14px;
}

/* 使用说明 */
.usage-guide {
    margin-top: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}
.usage-guide strong {
    color: #1f2937;
    margin-right: 4px;
}
.usage-guide span {
    margin-right: 16px;
}

/* 操作说明 */
.operation-guide {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.guide-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
}
.guide-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #475569;
    line-height: 1.9;
}
.guide-list li {
    margin-bottom: 2px;
}
.guide-list li:last-child {
    margin-bottom: 0;
}
.guide-warning {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 13px;
    color: #b91c1c;
    font-weight: 500;
}

/* 步骤提示 */
.step-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}
.step-hint ul {
    margin: 4px 0 0 0;
    padding-left: 20px;
}
.step-hint li {
    margin-bottom: 2px;
}

/* 固定格式多选区域 - 全宽时改为3列 */
.upload-col-full .fixed-templates-grid {
    grid-template-columns: repeat(3, 1fr);
}
.fixed-templates-section {
    margin-bottom: 12px;
}
.section-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.fixed-templates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.fixed-template-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    background: #fff;
}
.fixed-template-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.fixed-template-item input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}
.fixed-template-item span {
    flex: 1;
    color: #374151;
    line-height: 1.3;
}
.fixed-template-item:has(input:checked) {
    border-color: #3b82f6;
    background: #dbeafe;
}
.fixed-template-item:has(input:checked) span {
    color: #1d4ed8;
    font-weight: 500;
}
.fixed-template-item:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}
.custom-templates-section {
    margin-bottom: 12px;
}
.template-count-hint {
    padding: 8px 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 12px;
    color: #0369a1;
    text-align: center;
}
.template-count-hint span {
    font-weight: 700;
    color: #0284c7;
    font-size: 14px;
}
.template-count-hint.warning {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
.template-count-hint.warning span {
    color: #dc2626;
}

/* 营业执照与格式对应关系 */
.mapping-section {
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.mapping-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}
.mapping-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mapping-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}
.mapping-license {
    flex: 1;
    font-size: 13px;
    color: #374151;
}
.mapping-arrow {
    color: #9ca3af;
    font-size: 16px;
}
.mapping-template {
    flex: 1;
    font-size: 13px;
    color: #1d4ed8;
    font-weight: 500;
}
.mapping-warning {
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    font-size: 13px;
    text-align: center;
}
