:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-block;
}

.tag {
    font-size: 0.75rem;
    background: #eff6ff;
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    font-weight: 600;
}

/* 隐私安全醒目横幅 */
.privacy-banner {
    background: linear-gradient(90deg, #fef2f2 0%, #fff1f2 100%);
    border-bottom: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    text-align: center;
}

.banner-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.warning-icon {
    font-size: 1.1rem;
}

/* 主容器 */
.main-container {
    max-width: 880px;
    width: 100%;
    margin: 1.25rem auto;
    padding: 0 1rem;
    flex: 1;
}


/* 卡片 */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.card-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 拖拽上传区 */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: #eff6ff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.drop-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.browse-btn {
    color: var(--primary);
    text-decoration: underline;
}

.drop-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 文件预览 */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow);
}

.file-icon {
    font-size: 1.8rem;
    margin-right: 0.75rem;
}

.file-info {
    flex: 1;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

/* 选项表单 */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
}

.form-select, .form-input {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fff;
    outline: none;
    transition: border 0.2s;
}

.form-select:focus, .form-input:focus {
    border-color: var(--primary);
}

.checkbox-group {
    grid-column: span 2;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
}

/* 按钮通用 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

/* 立即解析按钮专属高质感状态与清晰对比度 */
#startAnalyzeBtn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.95rem 1.75rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    letter-spacing: 0.3px;
}

#startAnalyzeBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
    transform: translateY(-1px);
}

#startAnalyzeBtn:disabled {
    background: #e2e8f0 !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed;
    opacity: 0.95;
}

#startAnalyzeBtn * {
    color: inherit !important;
}

/* 强说服力购买转化保障卡片 */
.value-props-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin: 1.25rem 0;
    padding: 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.value-prop-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.prop-icon {
    font-size: 1.35rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.prop-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.prop-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 640px) {
    .value-props-container {
        grid-template-columns: 1fr;
    }
}


.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

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

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ================= 步骤 2：紧凑一屏双栏布局 (免滑动) ================= */
.quote-card {
    padding: 1.5rem 1.75rem !important;
}

.quote-header-compact {
    margin-bottom: 1rem !important;
    text-align: left !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.65rem;
}

.quote-header-compact h2 {
    font-size: 1.25rem !important;
    margin-bottom: 0.2rem !important;
    color: var(--text-main);
}

.quote-header-compact p {
    font-size: 0.82rem !important;
    color: var(--text-muted);
}

.quote-layout-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
    align-items: start;
}

/* ★ 核心凭证提取码特别提示卡片 */
.retrieval-alert-box {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
}

.alert-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.alert-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.alert-sub {
    font-size: 0.72rem;
    color: #92400e;
}

.alert-code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #fef08a;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.45rem;
}

.code-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.code-title {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.code-text {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.35rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 1px;
}

.btn-copy-sm {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-sm:hover {
    background: #2563eb;
    color: #ffffff;
}

.alert-notice {
    font-size: 0.75rem;
    color: #78350f;
    line-height: 1.4;
}

.alert-notice strong {
    color: #92400e;
}

/* 文件字数与特惠金额条 */
.quote-summary-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 0.75rem;
}

.sum-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sum-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.sum-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.sum-price {
    text-align: right;
}

.price-val-row {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    justify-content: flex-end;
}

.price-sym {
    font-size: 0.95rem;
    color: #dc2626;
    font-weight: 700;
}

.price-num {
    font-size: 1.5rem;
    color: #dc2626;
    font-weight: 800;
    line-height: 1;
}

.badge-min {
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-weight: 600;
    margin-left: 0.4rem;
}

/* 4项微型服务保障 */
.mini-guarantees-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.guarantee-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
}

.g-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.g-info {
    display: flex;
    flex-direction: column;
}

.g-info strong {
    font-size: 0.78rem;
    color: var(--text-main);
    line-height: 1.2;
}

.g-info span {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* 右栏：支付二维码专区 */
.quote-right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 0.75rem;
}

.pay-method-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    width: 100%;
}

.tab-btn {
    flex: 1;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

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

.qr-container-compact {
    text-align: center;
    width: 100%;
}

.qr-box-compact {
    width: 168px;
    height: 168px;
    margin: 0 auto 0.45rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.qr-box-compact img {
    width: 154px;
    height: 154px;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.qr-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.mock-pay-area {
    margin-top: 0.35rem;
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    width: 100%;
}

.quote-cancel-row {
    margin-top: 0.5rem;
}

.btn-link-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-link-cancel:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .quote-layout-grid {
        grid-template-columns: 1fr;
    }
}


/* 进度条 */
.order-badge-row {
    display: flex;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.btn-copy {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 0.4rem;
}

.progress-bar-container {
    height: 16px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progress-status-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
}

.status-pct {
    font-weight: 700;
    color: var(--primary);
}

/* 下载完成区 */
.download-container {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.success-banner {
    display: flex;
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: left;
    gap: 1rem;
}

.success-icon {
    font-size: 2.2rem;
}

.success-text h3 {
    color: #065f46;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.success-text p {
    color: #047857;
    font-size: 0.88rem;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    margin: 0 auto;
}

/* 模态弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 480px;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.input-with-btn {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.input-with-btn input {
    flex: 1;
}

.retrieval-result {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
}

/* 旋转加载动画 */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 页脚 */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-color);
    background: #fff;
    margin-top: auto;
}

/* 移动端自适应 */
@media (max-width: 640px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    .checkbox-group {
        grid-column: span 1;
    }
    .quote-details-grid {
        grid-template-columns: 1fr;
    }
    .price-item {
        grid-column: span 1;
    }
}

/* ==========================================================================
   v2.6.0 第一页与局部样例预览组件样式 (PDF 图像 / Excel 局部网格 / Word 排版)
   ========================================================================== */

/* 上传报价页预览卡片 */
.doc-preview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.65rem;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 0.45rem 0.75rem;
}

.preview-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.preview-icon {
    font-size: 0.95rem;
}

.preview-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
}

.preview-badge {
    font-size: 0.68rem;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
}

.btn-preview-toggle {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.72rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: background 0.15s;
}

.btn-preview-toggle:hover {
    color: #1e293b;
    background: #e2e8f0;
}

.preview-body {
    padding: 0.65rem;
    max-height: 280px;
    overflow: auto;
    background: #fdfdfd;
}

/* 交付完成页的成品样式预览容器 */
.delivery-preview-section {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.1rem;
    margin: 1.25rem auto;
    max-width: 820px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.delivery-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.85rem;
}

.delivery-preview-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.delivery-preview-title strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.preview-hint {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.preview-switch-tabs {
    display: flex;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.2rem;
    border-radius: 6px;
}

.preview-switch-btn {
    border: none;
    background: transparent;
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}

.preview-switch-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.delivery-preview-viewer {
    min-height: 220px;
    max-height: 520px;
    overflow: auto;
    position: relative;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.delivery-preview-content {
    width: 100%;
    padding: 0.75rem;
}

/* 1. PDF 预览图样式 */
.pdf-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.pdf-preview-img {
    max-width: 100%;
    max-height: 460px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid #cbd5e1;
    object-fit: contain;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.pdf-preview-meta {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    gap: 0.85rem;
}

/* 2. Excel 仿真实体表格预览样式 */
.excel-preview-box {
    width: 100%;
    overflow-x: auto;
}

.excel-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #334155;
    background: #f1f5f9;
    padding: 0.4rem 0.75rem;
    border-radius: 6px 6px 0 0;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    font-weight: 500;
}

.excel-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Consolas, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.75rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.excel-grid-table th,
.excel-grid-table td {
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.55rem;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.excel-grid-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: center;
}

.excel-row-num {
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    text-align: center !important;
    width: 36px;
    user-select: none;
}

.excel-preview-tip {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.4rem;
    text-align: right;
}

/* 3. Word 仿真排版卡片样式 */
.word-preview-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.word-meta-bar {
    font-size: 0.72rem;
    color: #64748b;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.45rem;
    margin-bottom: 0.85rem;
}

.word-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.6rem 0 0.35rem 0;
}

.word-paragraph {
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 0.5rem;
    text-indent: 1.5em;
}

.word-sample-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6rem 0;
    font-size: 0.76rem;
}

.word-sample-table td {
    border: 1px solid #cbd5e1;
    padding: 0.35rem 0.55rem;
    background: #f8fafc;
}

