/* tool_page.css — /tools/* 落地页共用的版式组件（2026-11-16 建立）
 *
 * 为什么单独一份：这些规则与“哪个数据库/哪个方向”无关，之前散在 db_to_excel.css / excel_to_db.css
 * 和页面内联 <style> 里，同一套样式在三条线上各写一遍。共用一份后：
 *   - 颜色/间距只改一处
 *   - 新增工具页（sqlite-to-excel、excel-to-sqlite、③ 迁移簇…）直接引用即可
 *
 * 只放“跨页面复用”的组件；页面特有的规则（字号层级、目录、表格）留在页面自己的 <style> 里。
 */

/* --- 分组标签：8 个场景分三组时用，靠分隔线 + 小字距表达“这是一组的抬头” --- */
.group {
    margin: 36px 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #5b6b7a;
    border-top: 1px solid #e6ebf0;
    padding-top: 10px;
}

/* --- 截图：统一独占一行、左对齐（四大原则里的“对齐”） --- */
.shot {
    margin: 10px 0 22px;
    text-align: left;
}
.shot a {
    text-decoration: none;
    font-size: 18px;
}

/* --- 提示块：提醒（蓝）与警告（红）用不同左边条 + 浅底，让读者一眼分辨（“对比”） --- */
.callout {
    margin: 40px 0;
    padding: 18px 22px;
    border-left: 4px solid #2b7db3;
    background: #f5f9fc;
    border-radius: 6px;
}
.callout h2 {
    margin-top: 0;
    border-bottom: none;
    font-size: 24px;
}
.callout.warn {
    border-left-color: #c0392b;
    background: #fdf4f3;
}

/* --- CTA：2026-11-19 改为浅蓝底 + 深色文字（与下载区统一 #e8f4fd）。
   旧版是深蓝渐变 + 白字，价格行几乎看不见。 --- */
.cta h2,
.cta p,
.cta { color: #1f2937; }
.cta h2 { border-bottom-color: rgba(0, 0, 0, .12); }
.cta p { font-size: 17px; opacity: 1; }
.cta { background: #e8f4fd; }
.cta .price-note, .cta .price-note a { color: #334155; }

/* 2026-11-17: db-to-db 工具页「What you can do」改成卡片网格（8 个操作模式） */
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 10px; }
@media (max-width: 1080px) { .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .mode-grid { grid-template-columns: 1fr; } }
.mode-card { display: flex; flex-direction: column; border: 1px solid #e1e8ef; border-radius: 10px;
             padding: 18px 20px; background: #fff; }
.mode-card:hover { border-color: #b7d3e8; }
.mode-ico { display: block; color: #2f80c8; margin-bottom: 10px; }
.mode-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7;
                stroke-linecap: round; stroke-linejoin: round; }
.mode-tag { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
            color: #8a9aa9; font-weight: 600; margin-bottom: 4px; }
.mode-card h3 { margin: 0 0 8px !important; font-size: 18px !important; color: #1f3d55; line-height: 1.3; }
.mode-lead { margin: 0 0 10px; font-size: 16px; color: #33475b; font-weight: 500; }
 .mode-body { margin: 0; font-size: 15px; color: #5b6b7a; line-height: 1.55; }
.mode-points { margin: 0; padding-left: 18px; }
.mode-points li { font-size: 15px; color: #5b6b7a; line-height: 1.5; margin-bottom: 5px; }
.mode-shot { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px;
             border-top: 1px solid #eef2f6; font-size: 14px; color: #2f80c8; text-decoration: none; }
.mode-shot:hover { text-decoration: underline; }
.mode-shot svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7;
                 stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 2026-11-17: 顶部产品截图 —— 桌面按原始像素（722px，小于容器），窄屏才收缩防溢出 */
.hero-shot { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* 2026-11-17: 反方向页提示（成对页互链用），放在卡片网格之后 */
.rel-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin: 22px 0 0;
            padding: 10px 14px; border-left: 3px solid #b7d3e8; background: #f5f9fc;
            border-radius: 4px; font-size: 14px; color: #4a5c6d; }
.rel-note b { font-weight: 600; color: #8a9aa9; font-size: 11px; letter-spacing: .08em;
              text-transform: uppercase; }
.rel-note a { color: #2f80c8; text-decoration: none; }
.rel-note a:hover { text-decoration: underline; }

/* 2026-11-17: FAQ 字号统一（两套模板：div.faq-question 与 details>summary） */
.faq-question, details > summary { font-size: 16px; line-height: 1.45; }
.faq-answer, details p { font-size: 15px; line-height: 1.65; }

/* 2026-11-17: 类型映射表（tool 页通用）—— 与 db→mongodb 页的表格观感一致 */
.mapping { width: 100%; max-width: 880px; margin: 22px auto 6px; border-collapse: collapse; background: #fff;
           border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mapping th, .mapping td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #e8eef4;
                           font-size: 15px; }
.mapping th { background: #3498db; color: #fff; font-weight: 600; font-size: 14px;
              letter-spacing: .02em; }
.mapping td code { background: #f4f7fa; padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.mapping tbody tr:hover { background: #f5f9fc; }
.mapping tbody tr:last-child td { border-bottom: 0; }

/* callout / 提示块正文：bootstrap 把 body 设成 14px，这里统一到 15px（与卡片要点一致） */
.callout p, .callout li { font-size: 15px; line-height: 1.7; }
.callout h2, .callout h3 { font-size: 18px; }
