/* ===== 姓名预测专属样式（公共样式请见 tools/common.css） ===== */

/* 姓名输入区域 */
.name-inputs {
    display: flex; align-items: center; gap: 6px;
}
.name-inputs input {
    width: 80px; padding: 6px 10px; border: 1px solid var(--border-color, #ddd);
    border-radius: 6px; font-size: .9rem; text-align: center;
    background: var(--input-bg, #fff); color: var(--text-primary, #1a1a1a);
}

/* 多选题标签 — Element UI 风格（原生 checkbox） */
.checkbox-group { display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; }
.checkbox-group label {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .85rem; color: var(--text-regular, #606266); cursor: pointer;
    user-select: none; white-space: nowrap; padding: 2px 0;
}
.checkbox-group label input[type="checkbox"] {
    width: 14px; height: 14px; margin: 0;
    accent-color: var(--sun-red, #eb1313);
    cursor: pointer;
}
.checkbox-group label:has(input:checked) {
    color: var(--sun-red); font-weight: 600;
}

/* AI 流式加载动画 */
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 康熙字典热门字网格（4列 × 5行） ===== */
.kangxi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.kangxi-char {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 8px 2px; border: 1px solid var(--border-color);
    border-radius: 8px; background: var(--bg-light); text-decoration: none;
    color: var(--text-primary); transition: .2s;
}
.kangxi-char:hover {
    border-color: var(--sun-red); background: #fff;
    transform: translateY(-2px); box-shadow: 0 4px 10px rgba(235,19,19,.08);
}
.kangxi-char .kc-hanzi { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.kangxi-char .kc-meta { font-size: .62rem; color: var(--text-muted); }

/* 热门起名列表中的评分徽标 */
.bazi-list-item .list-score {
    flex-shrink: 0; font-size: .72rem; color: var(--sun-red); font-weight: 600;
    background: var(--sun-red-light); padding: 1px 6px; border-radius: 10px;
    margin-left: auto;
}

/* 康熙字详情页大号汉字 */
.kc-big { font-size: 2rem; font-weight: 700; color: var(--sun-red); line-height: 1; }

/* ============================================================
   姓名预测模块 · 体验优化新增组件（2026-09-04）
   目标：提高惊喜度 / 免费舒适感 / 引导测算点击 / 内容导流
   ============================================================ */

/* 通用区块标题 */
.nm-section { margin: 22px 0 0; }
.nm-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.nm-section-head h3 { font-size: 1.05rem; margin: 0; font-weight: 700; color: var(--text-primary, #1a1a1a); }
.nm-section-head .nm-sub { font-size: .8rem; color: var(--text-muted); }
.nm-section-head .nm-more { margin-left: auto; font-size: .8rem; color: var(--sun-red); text-decoration: none; }

/* —— Hero 价值主张 —— */
/* Hero：主题红（--sun-red #eb1313），纯色无渐变 */
/* ★恢复品牌横幅样式（与八字首页 .bz-hero 一致）：宣纸底色 + 楼阁图，无红色背景。
   楼阁右图(::before)与左侧深色渐变遮罩(::after)由 hero-banner.css 的 .xb-banner 规则提供。 */
.nm-hero {
    position: relative; overflow: hidden;
    border-radius: 0; padding: 34px 28px 32px;
    color: #fff; box-shadow: none;
    background-color: #E6D6C0;
    background-image: url(/brand/hero-01-pavilion-sun-left.jpg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 100%;
}
/* index 首页用：内容与下方 .container 对齐（窄屏时由 hero 自身 padding 兜底） */
.nm-hero-inner { max-width: 1200px; margin: 0 auto; }
.nm-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
    color: #fff; font-size: .76rem; font-weight: 600;
    padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
    backdrop-filter: blur(2px);
}
.nm-hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 8px #ffe08a; }
.nm-hero h1 { font-size: 1.6rem; margin: 0 0 8px; font-weight: 800; letter-spacing: .5px; }
.nm-hero p { margin: 0; font-size: .92rem; line-height: 1.7; opacity: .95; max-width: 720px; }
.nm-hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.nm-hero-trust span { font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; opacity: .95; }
.nm-hero-trust b { font-weight: 700; }
.nm-hero-cta {
    display: inline-block; margin-top: 18px; padding: 12px 28px; border-radius: 30px;
    background: #fff; color: #8a1f12; font-weight: 700; font-size: 1rem;
    text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.18); transition: .18s;
}
.nm-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.24); }

/* —— 痛点 → 利益点 短带 —— */
.nm-pain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.nm-pain .nm-pain-item {
    background: var(--bg-light, #fafafa); border: 1px solid var(--border-color, #eee);
    border-radius: 12px; padding: 14px 16px;
}
/* 图标与标题同行（一行显示），描述折行 */
.nm-pain .nm-pain-item .ic { font-size: 1.4rem; display: inline-block; vertical-align: middle; margin-right: 8px; }
.nm-pain .nm-pain-item .t { font-weight: 700; margin: 0; color: var(--text-primary, #1a1a1a); display: inline-block; vertical-align: middle; }
.nm-pain .nm-pain-item .d { font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }

/* —— 3 步步骤条 —— */
.nm-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.nm-step { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border-color, #eee); border-radius: 12px; padding: 10px 16px; flex: 1; min-width: 200px; }
.nm-step .num { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: #eb1313; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.nm-step .st-t { font-weight: 700; font-size: .9rem; color: var(--text-primary, #1a1a1a); }
.nm-step .st-d { font-size: .76rem; color: var(--text-muted); }
.nm-step-arrow { color: var(--text-muted); font-size: 1.1rem; }

/* —— 快捷分析大卡片（引导点击测算） —— */
.nm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.nm-quick .nm-qcard {
    cursor: pointer; border: 1px solid var(--border-color, #eee); border-radius: 14px;
    padding: 16px; background: #fff; transition: .2s; text-align: left;
    display: flex; flex-direction: column; gap: 6px;
}
.nm-quick .nm-qcard:hover { transform: translateY(-3px); border-color: var(--sun-red, #eb1313); box-shadow: 0 8px 20px rgba(235,19,19,.1); }
.nm-quick .nm-qcard .qic { font-size: 1.5rem; }
.nm-quick .nm-qcard .qt { font-weight: 700; color: var(--text-primary, #1a1a1a); }
.nm-quick .nm-qcard .qd { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.nm-quick .nm-qcard .qgo { margin-top: auto; font-size: .78rem; color: var(--sun-red); font-weight: 600; }

/* —— 示例名字点评（惊喜感，纯展示） —— */
.nm-example { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nm-example .nm-ecard {
    border: 1px solid var(--border-color, #eee); border-radius: 14px; padding: 16px;
    background: linear-gradient(180deg,#fff, #fffaf6);
}
.nm-example .nm-ecard .eh { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nm-example .nm-ecard .ename { font-size: 1.5rem; font-weight: 800; color: var(--sun-red); letter-spacing: 2px; }
.nm-example .nm-ecard .escore { font-size: .78rem; color: #b8860b; font-weight: 700; background: #fff4dc; padding: 2px 8px; border-radius: 10px; }
.nm-example .nm-ecard .erow { display: flex; gap: 8px; font-size: .8rem; margin: 5px 0; }
.nm-example .nm-ecard .erow .lab { color: var(--text-muted); flex-shrink: 0; width: 42px; }
.nm-example .nm-ecard .erow .val { color: var(--text-primary, #1a1a1a); line-height: 1.5; }
.nm-example .nm-ecard .etip { margin-top: 8px; font-size: .76rem; color: var(--sun-red); }
/* 动态示例点评：正文来自测试案例（富文本） */
.nm-example .nm-ecard .ebody { font-size: .8rem; line-height: 1.75; color: var(--text-primary, #1a1a1a); }
.nm-example .nm-ecard .ebody p { margin: 0 0 6px; }
.nm-example .nm-ecard .ebody b { color: var(--sun-red); }
.nm-example .nm-ecard .ego { display: inline-block; margin-top: 10px; font-size: .78rem; color: var(--sun-red); text-decoration: none; }
.nm-example .nm-ecard .ego:hover { text-decoration: underline; }
.nm-example-empty { padding: 14px 0; color: var(--text-muted); font-size: .85rem; }

/* —— 康熙字典热门用字网格（10 列 × 3 行 = 30 条） —— */
.nm-kx-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.nm-kx {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 10px 4px; border: 1px solid var(--border-color, #eee); border-radius: 10px;
    background: #fff; text-decoration: none; transition: .15s;
}
.nm-kx:hover { border-color: var(--sun-red, #eb1313); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.nm-kx .kx-hz { font-size: 1.25rem; font-weight: 700; color: var(--text-primary, #1a1a1a); line-height: 1.2; }
.nm-kx .kx-meta { font-size: .62rem; color: var(--text-muted); white-space: nowrap; }

/* —— 报告维度说明 —— */
.nm-dim { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.nm-dim .nm-dcard { border: 1px dashed var(--border-color, #eee); border-radius: 12px; padding: 12px; background: #fff; }
/* 图标与标题同行（一行显示），描述折行 */
.nm-dim .nm-dcard .dic { font-size: 1.2rem; display: inline-block; vertical-align: middle; margin-right: 8px; }
.nm-dim .nm-dcard .dt { font-weight: 700; font-size: .85rem; margin: 0; display: inline-block; vertical-align: middle; }
.nm-dim .nm-dcard .dd { font-size: .74rem; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }

/* —— 相关功能导流（提高依赖性） —— */
.nm-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nm-related .nm-rcard {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    border: 1px solid var(--border-color, #eee); border-radius: 14px; padding: 14px 16px;
    background: #fff; transition: .2s; color: var(--text-primary, #1a1a1a);
}
.nm-related .nm-rcard:hover { transform: translateY(-2px); border-color: var(--sun-red, #eb1313); box-shadow: 0 6px 16px rgba(235,19,19,.08); }
.nm-related .nm-rcard .ric { font-size: 1.5rem; }
.nm-related .nm-rcard .rt { font-weight: 700; font-size: .9rem; }
.nm-related .nm-rcard .rd { font-size: .74rem; color: var(--text-muted); }

/* —— 免费标识小徽标（用于子页顶部） —— */
.nm-free-flag {
    display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600;
    color: #1a7a4a; background: #e7f7ee; border: 1px solid #b7e6cb;
    padding: 3px 10px; border-radius: 999px; margin-left: 8px;
}
.nm-free-flag .dot { width: 6px; height: 6px; border-radius: 50%; background: #1a7a4a; }

/* 输入区增强：五行偏好 + 备注 */
.nm-extra-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin-top: 10px; }
.nm-extra-row .filter-group { align-items: flex-start; }
.nm-sample-btn {
    border: 1px dashed var(--sun-red, #eb1313); color: var(--sun-red, #eb1313);
    background: #fff5f5; border-radius: 8px; padding: 6px 14px; font-size: .82rem; cursor: pointer;
    transition: .2s; white-space: nowrap;
}
.nm-sample-btn:hover { background: var(--sun-red, #eb1313); color: #fff; }
.nm-hint { font-size: .76rem; color: var(--text-muted); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* —— 康熙字典详情页「查其它字」跳转搜索框 —— */
.kx-jump {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 14px; padding: 10px 12px;
    background: var(--bg-light, #fafafa); border: 1px solid var(--border-color, #eee);
    border-radius: 10px;
}
.kx-jump .kx-jump-label { font-size: .84rem; font-weight: 600; color: var(--text-primary, #1a1a1a); white-space: nowrap; }
.kx-jump .kx-jump-input {
    flex: 1; min-width: 160px; height: 34px; padding: 0 12px;
    border: 1px solid var(--border-color, #dcdfe6); border-radius: 6px;
    background: var(--input-bg, #fff); color: var(--text-primary, #1a1a1a);
    font-size: .88rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.kx-jump .kx-jump-input:focus { border-color: var(--sun-red, #eb1313); box-shadow: 0 0 0 2px rgba(235,19,19,.08); }
.kx-jump .kx-jump-btn {
    height: 34px; padding: 0 18px; border: 0; border-radius: 6px; cursor: pointer;
    background: #eb1313; color: #fff;
    font-size: .86rem; font-weight: 600; transition: opacity .2s; white-space: nowrap;
}
.kx-jump .kx-jump-btn:hover { opacity: .9; }
.kx-jump .kx-jump-link { font-size: .8rem; color: var(--sun-red); text-decoration: none; white-space: nowrap; }
.kx-jump .kx-jump-link:hover { text-decoration: underline; }

/* ============================================================
   案例预览弹窗 + PDF 打印导出（水印）
   ============================================================ */

.nm-modal-mask {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0, 0, 0, .45);
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.nm-modal-mask.open { display: flex; }
.nm-modal {
    width: min(920px, 100%); max-height: 86vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}
.nm-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--border-color, #eee);
    background: #eb1313;
    color: #fff;
}
.nm-modal-head .nm-modal-title { font-weight: 700; font-size: 1rem; }
.nm-modal-head .nm-modal-close { cursor: pointer; font-size: 1.5rem; line-height: 1; opacity: .85; }
.nm-modal-head .nm-modal-close:hover { opacity: 1; }
.nm-modal-body {
    flex: 1; overflow-y: auto; padding: 18px 20px;
    font-size: .92rem; line-height: 1.8; color: var(--text-primary, #1a1a1a);
}
.nm-modal-body table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.nm-modal-body th, .nm-modal-body td { border: 1px solid var(--border-color, #eee); padding: 7px 10px; }
.nm-modal-body th { background: var(--bg-light, #fafafa); }
.nm-modal-foot {
    padding: 10px 18px; border-top: 1px solid var(--border-color, #eee);
    font-size: .78rem; color: var(--text-muted); background: #fffaf6;
}
.nm-case-loading { text-align: center; padding: 40px 0; color: var(--text-muted); }
.nm-case-empty { text-align: center; padding: 44px 20px; color: var(--text-muted); }
.nm-case-empty .ic { font-size: 2.6rem; }
.nm-case-empty .t { margin-top: 10px; font-weight: 600; color: var(--text-primary, #1a1a1a); }
.nm-case-empty .d { margin-top: 6px; font-size: .8rem; line-height: 1.6; }
/* 案例头部基础信息（标题 + 测试入参，位于正文上方） */
.nm-case-head {
    margin: 0 0 14px; padding: 12px 14px;
    border: 1px solid #f3c1c1; border-left: 4px solid #eb1313;
    background: #fff7f7; border-radius: 10px;
}
.nm-case-head .nm-ch-name { font-weight: 700; font-size: .95rem; color: #c62828; line-height: 1.6; }
.nm-case-head .nm-ch-name .nm-ch-tag {
    display: inline-block; font-size: .72rem; font-weight: 700; color: #fff;
    background: #eb1313; border-radius: 6px; padding: 1px 8px; margin-right: 8px; vertical-align: 1px;
}
.nm-case-head .nm-ch-name + .nm-ch-info { margin-top: 6px; }
.nm-case-head .nm-ch-info { font-size: .82rem; line-height: 1.7; color: var(--text-regular, #606266); }
.nm-case-head .nm-ch-info b { color: #1a1a1a; }

/* ===== 额度用完 · 单次支付弹窗 ===== */
.qp-modal { width: min(560px, 100%); }
.qp-tip {
    padding: 10px 12px; margin-bottom: 14px; border-radius: 8px;
    background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
    font-size: .86rem; line-height: 1.6;
}
.qp-rules { border: 1px solid var(--border-color, #eee); border-radius: 10px; padding: 12px 14px; background: #fafafa; }
.qp-rules .qp-rules-title { font-weight: 700; font-size: .9rem; margin-bottom: 8px; color: var(--text-primary, #1a1a1a); }
.qp-rules ul { margin: 0; padding-left: 18px; }
.qp-rules li { font-size: .82rem; line-height: 1.75; color: var(--text-regular, #606266); }
.qp-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; background: #fff; }
.qp-btn {
    border: 1px solid var(--border-color, #dcdfe6); background: #fff; color: var(--text-regular, #606266);
    border-radius: 8px; padding: 8px 18px; font-size: .86rem; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; transition: .2s;
}
.qp-btn:hover { border-color: var(--sun-red, #eb1313); color: var(--sun-red, #eb1313); }
.qp-btn.primary {
    background: #eb1313; border-color: transparent; color: #fff; font-weight: 600;
}
.qp-btn.primary:hover { opacity: .9; color: #fff; }
.qp-btn.ghost { background: #fafafa; }
.qp-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* 支付状态面板（保留兼容；主题红） */
.qp-pay {
    margin-top: 14px; padding: 12px 14px; border-radius: 10px;
    background: #fef3f3; border: 1px solid #f3c1c1;
}
.qp-pay .qp-pay-title { font-weight: 700; font-size: .88rem; color: #c62828; margin-bottom: 6px; }
.qp-pay .qp-pay-status { font-size: .82rem; color: #c0392b; }

/* ===== 游客内嵌扫码支付面板（单次购买） ===== */
.qp-scan { margin-top: 6px; text-align: center; }
.qp-scan-tabs {
    display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px;
    background: #f0f2f5; margin-bottom: 14px;
}
.qp-scan-tabs button {
    border: 0; background: transparent; padding: 6px 18px; border-radius: 8px;
    font-size: .85rem; color: #606266; cursor: pointer;
}
.qp-scan-tabs button.on { background: #fff; color: #eb1313; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.qp-scan-qr {
    width: 220px; height: 220px; margin: 0 auto 10px; padding: 10px;
    background: #fff; border: 1px solid #e8ecf0; border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.qp-scan-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qp-scan-amount { font-size: .9rem; color: #606266; margin-bottom: 6px; }
.qp-scan-amount b { color: #eb1313; font-size: 1.15rem; margin-left: 2px; }
.qp-scan-status { font-size: .85rem; color: #606266; margin-bottom: 12px; }
.qp-scan-status.pending { color: #d03050; }
.qp-scan-status.success { color: #eb1313; font-weight: 700; }
.qp-scan-status.failed { color: #d03050; }
.qp-mock {
    width: 100%; max-width: 300px; margin: 0 auto 8px;
    background: #eb1313 !important; border: 0 !important;
}
/* 扫码面板「登录 / 注册后支付」次要按钮（红描边） */
.qp-scan-login {
    display: block; width: 100%; max-width: 300px; margin: 0 auto 8px;
    color: #eb1313 !important; border-color: #f3c1c1 !important; background: #fff7f7 !important;
    font-weight: 600;
}
.qp-scan-login:hover { border-color: #eb1313 !important; color: #c62828 !important; }
.qp-scan-tip { font-size: .76rem; color: #b0b8c4; line-height: 1.6; }
.qp-scan-title { text-align: center; font-weight: 700; font-size: .92rem; color: #1a1a1a; margin-bottom: 12px; }

/* ===== 登录用户套餐选择卡（单次 + 次数包） ===== */
.qp-plan-tip { font-size: .84rem; color: #606266; margin-bottom: 12px; line-height: 1.6; }
.qp-plan-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px;
}
.qp-plan-card {
    position: relative; padding: 12px 8px 10px; text-align: center;
    border: 1px solid var(--border-color, #e6e8eb); border-radius: 12px;
    background: #fff; cursor: pointer; transition: all .18s ease; user-select: none;
}
.qp-plan-card:hover { border-color: #eb1313; box-shadow: 0 4px 14px rgba(235,19,19,.08); }
.qp-plan-card.on {
    border: 1.5px solid #eb1313; background: #fef3f3;
    box-shadow: 0 4px 16px rgba(235,19,19,.14);
}
.qp-plan-card .qp-plan-count { font-weight: 700; font-size: .95rem; color: #1f2d3d; }
.qp-plan-card.on .qp-plan-count { color: #c62828; }
.qp-plan-card .qp-plan-price { font-size: 1.05rem; font-weight: 800; color: #eb1313; margin: 4px 0 2px; }
.qp-plan-card .qp-plan-sub { font-size: .7rem; color: #98a2b3; }
.qp-plan-tag {
    position: absolute; top: -7px; right: -4px; font-size: .62rem; font-weight: 700;
    background: #c62828; color: #fff;
    padding: 2px 6px; border-radius: 8px; line-height: 1.3;
}
.qp-paynow { min-width: 180px; }

@media (max-width: 560px) {
    .qp-plan-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 结果区：给用户留足查看空间 */
.result-wrapper { min-height: 500px; }
.result-panel .result-wrapper { max-height: none; }

/* ===== 打印视图（默认隐藏） ===== */
.nm-print-area { display: none; }

@media print {
    @page { size: A4; margin: 14mm; }
    body { background: #fff; }
    body > *:not(#nmPrintArea) { display: none !important; }
    #nmPrintArea { display: block !important; position: relative; }

    /* 平铺斜向水印 */
    .nm-print-watermark {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        z-index: 0; pointer-events: none;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='180'><text x='30' y='100' transform='rotate(-28 30 100)' font-size='26' font-family='Microsoft YaHei' fill='%23eb1313' fill-opacity='0.09'>青阳易智</text></svg>");
        background-repeat: repeat;
    }
    .nm-print-doc { position: relative; z-index: 1; }
    .nm-print-head { text-align: center; padding-bottom: 12px; border-bottom: 2px solid #eb1313; margin-bottom: 16px; }
    .nm-print-brand { font-size: 1.1rem; font-weight: 800; color: #eb1313; letter-spacing: 2px; }
    .nm-print-title { font-size: 1.3rem; font-weight: 700; margin: 6px 0; }
    .nm-print-meta { font-size: .8rem; color: #888; }
    .nm-print-content { font-size: .92rem; line-height: 1.8; }
    .nm-print-content table { width: 100%; border-collapse: collapse; margin: 10px 0; }
    .nm-print-content th, .nm-print-content td { border: 1px solid #ddd; padding: 6px 9px; }
    .nm-print-foot {
        margin-top: 24px; padding-top: 10px; border-top: 1px solid #eee;
        font-size: .76rem; color: #999; text-align: center;
    }
}

/* 响应式 */
@media (max-width: 900px) {
    .nm-pain, .nm-quick, .nm-related { grid-template-columns: repeat(2, 1fr); }
    .nm-example { grid-template-columns: 1fr; }
    .nm-dim { grid-template-columns: repeat(2, 1fr); }
    .nm-kx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .nm-pain, .nm-quick, .nm-related, .nm-dim { grid-template-columns: 1fr; }
    .nm-hero h1 { font-size: 1.3rem; }
    .nm-kx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   姓名模块头图：人物徽章改到左侧（对齐 theme/index.html 图标在左）
   —— 覆盖 hero-banner.css 通用「right:36px 贴右」规则；
      文字区相应右移，给左侧人物留出空间；窄屏隐藏徽章时不留左空。
      仅作用姓名模块（.xb-naming），不影响其它模块。
   ============================================================ */
/* 人物：固定贴左边，与右侧青阳阁主景分离，避免压图 */
.xb-naming .ge-badge {
    left: 28px;
    right: auto;
    bottom: 0;
}
/* xb-banner-inner 型（analyze/detail/kangxi/kangxi_list/rank）：
   人物跟随 1200 内容体左缘，文字右移 150px 避让 */
.xb-banner.xb-naming:not(.nm-hero) .ge-badge {
    left: max(28px, calc(50% - 572px));
}
.xb-banner.xb-naming:not(.nm-hero) .xb-banner-inner {
    padding-left: 150px;
}
/* nm-hero 型（index/company/net）：整段内容右移避让左侧人物 */
.xb-naming.nm-hero {
    padding-left: 150px;
}
/* 窄屏（徽章已隐藏）恢复默认左内边距，避免文字被挤窄 */
@media (max-width: 600px) {
    .xb-banner.xb-naming:not(.nm-hero) .xb-banner-inner,
    .xb-naming.nm-hero {
        padding-left: 28px;
    }
}

