/* ===== zodiac-analysis.css — 运程批命/姓名五行分析 =====
   从 zodiac.css 拆分而来，保持原始顺序
   ===== */


/* ═══════════════════════════════════════════════════ */
/*  运程批命 (lf- prefix)                              */
/* ═══════════════════════════════════════════════════ */

/* ── 命理信息药丸 ── */
.lf-command-bar { padding: 0; }
.lf-info-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(108, 92, 231, 0.06); color: #555;
  font-size: 11px; font-weight: 500;
  border: 1px solid rgba(108, 92, 231, 0.1);
}
.lf-pill i { color: var(--accent); font-size: 12px; }

/* ── 大运时间线横滑 ── */
.lf-timeline-scroll {
  overflow-x: auto; overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-top: 6px; padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 92, 231, 0.2) transparent;
}
.lf-timeline-scroll::-webkit-scrollbar { height: 4px; }
.lf-timeline-scroll::-webkit-scrollbar-thumb { background: rgba(108, 92, 231, 0.2); border-radius: 2px; }

.lf-timeline {
  display: flex; gap: 8px;
  min-width: max-content;
}

/* ── 单个大运项 ── */
.lf-dy-item {
  flex-shrink: 0;
  width: 110px; padding: 10px 8px;
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
}
.lf-dy-item:hover {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1);
}
.lf-dy-item.lf-dy-selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(162, 155, 254, 0.08));
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12), 0 4px 12px rgba(108, 92, 231, 0.15);
  transform: translateY(-2px);
}
.lf-dy-item.lf-dy-current {
  border-color: var(--gold, #F39C12);
  background: rgba(243, 156, 18, 0.05);
}
.lf-dy-item.lf-dy-current.lf-dy-selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(243, 156, 18, 0.05));
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12), 0 4px 12px rgba(108, 92, 231, 0.15);
}
.lf-dy-item.lf-dy-past {
  opacity: 0.65;
}
.lf-dy-item.lf-dy-past:hover { opacity: 1; }

/* ── 大运项内部 ── */
.lf-dy-header { margin-bottom: 6px; }
.lf-dy-gz {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px; font-weight: 700;
  color: #333;
  letter-spacing: 2px;
}
.lf-dy-age { font-size: 11px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.lf-dy-year { font-size: 10px; color: #999; margin-top: 1px; }
.lf-dy-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 4px; }
.lf-dy-nayin, .lf-dy-shishen {
  font-size: 9px; padding: 1px 5px;
  border-radius: 8px; background: rgba(0, 0, 0, 0.03);
  color: #888;
}
.lf-dy-badge-current {
  font-size: 9px; padding: 1px 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold, #F39C12), #F1C40F);
  color: #fff; font-weight: 600;
}
.lf-dy-badge-cached {
  font-size: 9px; padding: 1px 4px;
  border-radius: 8px;
  background: rgba(0, 184, 148, 0.15);
  color: #00B894;
}

/* ── 占位提示 ── */
.lf-placeholder {
  text-align: center; padding: 60px 20px;
}
.lf-placeholder-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.1));
  display: flex; align-items: center; justify-content: center;
}
.lf-placeholder-icon i {
  font-size: 28px; color: var(--accent); opacity: 0.6;
}
.lf-placeholder-text {
  font-size: 14px; color: #666; margin-bottom: 6px;
}
.lf-placeholder-hint {
  font-size: 12px; color: #aaa;
}

/* ── 加载状态 ── */
.lf-loading {
  text-align: center; padding: 60px 20px;
}
.lf-loading-spinner {
  width: 72px; height: 72px; margin: 0 auto 20px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.lf-spinner-ring {
  position: absolute; inset: 0;
  border: 3px solid rgba(108, 92, 231, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lf-spin 1.2s linear infinite;
}
.lf-spinner-icon {
  font-size: 24px; color: var(--accent);
  animation: lf-pulse 2s ease-in-out infinite;
}
@keyframes lf-spin {
  to { transform: rotate(360deg); }
}
@keyframes lf-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
.lf-loading-title {
  font-size: 14px; color: #555; margin-bottom: 4px;
}
.lf-loading-title strong { color: var(--accent); }
.lf-loading-hint {
  font-size: 12px; color: #aaa; margin-bottom: 16px;
}
.lf-loading-dots {
  display: flex; justify-content: center; gap: 6px;
}
.lf-loading-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.3;
  animation: lf-dot-bounce 1.4s ease-in-out infinite;
}
.lf-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.lf-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lf-dot-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

.lf-loading-quote {
  margin-top: 16px; padding: 12px 16px;
  background: rgba(108,92,231,0.04); border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.lf-quote-text {
  font-size: 12px; color: var(--text-secondary); font-style: italic; line-height: 1.7; margin: 0;
}
.lf-quote-src {
  font-size: 11px; color: var(--text-tertiary); text-align: right; margin: 6px 0 0;
}

/* ── 错误状态 ── */
.lf-error {
  text-align: center; padding: 50px 20px;
}
.lf-error-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(253, 121, 168, 0.1);
  display: flex; align-items: center; justify-content: center;
}
.lf-error-icon i { font-size: 24px; color: #FD79A8; }
.lf-error-title { font-size: 14px; color: #555; font-weight: 600; margin-bottom: 4px; }
.lf-error-msg { font-size: 12px; color: #999; margin-bottom: 16px; }
.lf-retry-btn {
  display: inline-flex; align-items: center;
  padding: 8px 20px; border-radius: 20px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 500;
  border: none; cursor: pointer;
  transition: all 0.2s;
}
.lf-retry-btn:hover {
  background: #5A4BD1;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
  transform: translateY(-1px);
}

/* ── 分析结果 ── */
.lf-result { animation: lf-fade-in 0.4s ease; }
@keyframes lf-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.lf-result-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.lf-result-age {
  font-size: 12px; padding: 3px 10px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--accent); font-weight: 600;
}
.lf-result-body {
  font-size: 14px; line-height: 1.75; color: #444;
}
.lf-result-footer {
  margin-top: 20px; padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.lf-disclaimer {
  font-size: 11px; color: #bbb;
  display: flex; align-items: flex-start; gap: 2px;
}
.lf-disclaimer i { margin-top: 2px; flex-shrink: 0; }

/* ── Markdown 渲染样式 ── */
.lf-md-h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px; font-weight: 700; color: #333;
  margin: 16px 0 6px;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(108, 92, 231, 0.15);
}
.lf-md-h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px; font-weight: 600; color: var(--accent);
  margin: 14px 0 5px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.lf-md-h3 {
  font-size: 13px; font-weight: 600; color: #555;
  margin: 10px 0 4px;
}
.lf-md-p {
  margin-bottom: 4px;
}
.lf-md-ul {
  margin: 4px 0; padding-left: 16px;
  list-style: none;
}
.lf-md-li {
  position: relative; padding-left: 14px;
  margin-bottom: 4px; font-size: 13px; color: #555;
}
.lf-md-li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.5;
}
.lf-md-underline {
  text-decoration: underline; text-decoration-color: var(--accent, #6c5ce7);
  text-underline-offset: 3px; font-weight: 500;
}
.lf-md-hr {
  border: none; height: 1px; margin: 10px 0;
  background: linear-gradient(to right, transparent, rgba(108, 92, 231, 0.15), transparent);
}
.lf-result-body strong {
  color: var(--accent); font-weight: 600;
}
.lf-result-body em {
  color: #888; font-style: italic;
}

/* ── 运程批命 移动端适配 ── */
@media (max-width: 640px) {
  .lf-dy-item { width: 95px; padding: 8px 6px; }
  .lf-dy-gz { font-size: 16px; }
  .lf-dy-age { font-size: 10px; }
  .lf-dy-year { font-size: 9px; }
  .lf-pill { font-size: 10px; padding: 3px 8px; }
  .lf-result-body { font-size: 13px; }
  .lf-md-h1 { font-size: 15px; }
  .lf-md-h2 { font-size: 14px; }
}

@media (max-width: 380px) {
  .lf-dy-item { width: 85px; }
  .lf-dy-gz { font-size: 14px; }
  .lf-info-pills { gap: 4px; }
  .lf-pill { font-size: 9px; }
}

/* ═══════════════════════════════════════════════════ */
/*  模块7：姓名五行分析 (nm-)                         */
/* ═══════════════════════════════════════════════════ */

/* 姓名字符展示 */
.nm-name-display {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 8px;
}
.nm-char-card-v2 {
  text-align: center; padding: 16px 20px;
  border-radius: var(--radius-md, 12px);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(108, 92, 231, 0.1);
  min-width: 80px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nm-char-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.12);
}
.nm-char-label {
  font-size: 10px; color: #aaa; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 6px;
}
.nm-char-big {
  font-size: 32px; font-weight: 700; color: #333;
  font-family: 'Noto Serif SC', serif;
  line-height: 1.2; margin-bottom: 8px;
}
.nm-char-detail {
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.nm-char-stroke { font-size: 11px; color: #999; }
.nm-char-wx-tag {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}

/* 信息药丸栏 */
.nm-info-pills {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 10px;
}
.nm-pill {
  font-size: 11px; color: #777; padding: 3px 10px;
  background: rgba(108,92,231,0.04); border-radius: 12px;
  border: 1px solid rgba(108,92,231,0.08);
}
.nm-pill strong { font-weight: 600; }

/* 板块标题 v2 */
.nm-section-title-v2 {
  font-size: 14px; font-weight: 600; color: #555;
  margin-bottom: 12px; display: flex; align-items: center; gap: 4px;
  font-family: 'Noto Serif SC', serif; flex-wrap: wrap;
}
.nm-section-title-v2 i { color: var(--accent); font-size: 15px; }
.nm-title-stats { margin-left: auto; display: flex; gap: 6px; font-size: 11px; font-weight: 500; }
.nm-stat-ji { color: #27AE60; background: rgba(39,174,96,0.08); padding: 1px 8px; border-radius: 8px; }
.nm-stat-xiong { color: #E74C3C; background: rgba(231,76,60,0.08); padding: 1px 8px; border-radius: 8px; }

/* 五格卡片网格 v3 */
.nm-ge-grid-v3 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.nm-ge-card-v3 {
  padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 8px;
}
.nm-ge-card-v3:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
.nm-ge-card-top { display: flex; flex-direction: column; gap: 4px; }
.nm-ge-name-row { display: flex; align-items: center; justify-content: space-between; }
.nm-ge-name-v3 { font-size: 12px; color: #888; font-weight: 500; }
.nm-ge-wx-pill {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 8px; border-radius: 8px; font-size: 11px; font-weight: 600;
}
.nm-ge-num-row { display: flex; align-items: baseline; gap: 8px; }
.nm-ge-num {
  font-size: 26px; font-weight: 700; color: #333;
  font-family: 'Noto Serif SC', serif; line-height: 1.1;
}
.nm-ge-luck {
  display: inline-flex; align-items: center; padding: 1px 8px;
  border-radius: 8px; font-size: 11px; font-weight: 600;
}
.nm-ge-card-mid {
  padding: 6px 0; border-top: 1px dashed rgba(0,0,0,0.06);
}
.nm-ge-shuli-name {
  font-size: 12px; color: #555; font-weight: 600; margin: 0 0 2px;
  font-family: 'Noto Serif SC', serif;
}
.nm-ge-shuli-poem {
  font-size: 11px; color: #999; font-style: italic; margin: 0;
  line-height: 1.4;
}
.nm-ge-card-bot {
  border-top: 1px dashed rgba(0,0,0,0.06); padding-top: 6px;
}
.nm-ge-desc-v3 { font-size: 11px; color: #888; margin: 0 0 2px; line-height: 1.4; }
.nm-ge-weight { font-size: 10px; color: #bbb; margin: 0; }
.nm-ge-hints { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.nm-hint-tag {
  font-size: 9px; padding: 1px 6px; border-radius: 6px;
  background: rgba(108,92,231,0.06); color: var(--accent);
  font-weight: 500;
}

/* 三才配置 v3 */
.nm-sancai-v3 {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.nm-sc-node { text-align: center; }
.nm-sc-circle-v3 {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nm-sc-circle-v3:hover { transform: scale(1.08); }
.nm-sc-wx-big { font-size: 20px; line-height: 1.1; }
.nm-sc-wx-name { font-size: 13px; font-weight: 700; line-height: 1.1; }
.nm-sc-pos-label { font-size: 10px; color: #999; margin-top: 4px; display: block; }
.nm-sc-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.nm-sc-link-label { font-size: 10px; font-weight: 600; }
.nm-sancai-luck-badge {
  display: inline-flex; align-items: center; padding: 1px 10px;
  border-radius: 8px; font-size: 12px; font-weight: 600; margin-left: 6px;
}
.nm-sancai-detail {
  background: rgba(108,92,231,0.03); border-radius: 8px;
  padding: 10px 14px;
}
.nm-sancai-config {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.nm-sc-config-label { font-size: 10px; color: #aaa; }
.nm-sc-config-val { font-size: 12px; color: #666; font-weight: 500; }
.nm-sancai-desc-v3 {
  font-size: 12px; color: #777; line-height: 1.7; margin: 0;
}

/* 人格性格分析 */
.nm-xingge-card {
  background: rgba(255,255,255,0.4); border-radius: 10px;
  padding: 14px; border: 1px solid rgba(0,0,0,0.04);
}
.nm-xingge-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 6px;
}
.nm-xingge-trait {
  font-size: 18px; font-weight: 700; font-family: 'Noto Serif SC', serif;
}
.nm-xingge-shuli {
  font-size: 11px; color: #999;
  display: flex; gap: 8px; align-items: center;
}
.nm-xingge-shuli strong { color: #555; }
.nm-xingge-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.nm-xingge-item {
  padding: 10px; border-radius: 8px;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(0,0,0,0.04);
}
.nm-xingge-item-icon { font-size: 16px; margin-bottom: 4px; }
.nm-xingge-item-label { font-size: 10px; color: #aaa; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.nm-xingge-item-text { font-size: 12px; color: #666; line-height: 1.5; }

/* 五行能量分布 */
.nm-wx-dist { display: flex; flex-direction: column; gap: 8px; }
.nm-wx-bar-row { display: flex; align-items: center; gap: 8px; }
.nm-wx-bar-label { width: 48px; font-size: 12px; font-weight: 600; text-align: right; flex-shrink: 0; }
.nm-wx-bar-track {
  flex: 1; height: 10px; border-radius: 5px;
  background: rgba(0,0,0,0.04); overflow: hidden;
}
.nm-wx-bar-fill {
  height: 100%; border-radius: 5px;
  transition: width 0.6s ease-out;
}
.nm-wx-bar-count { font-size: 11px; color: #999; width: 30px; text-align: left; }
.nm-wx-missing, .nm-wx-complete {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  font-size: 12px; color: #666; line-height: 1.5;
}
.nm-wx-missing { background: rgba(231,76,60,0.04); }
.nm-wx-complete { background: rgba(39,174,96,0.04); }
.nm-wx-missing-warn { font-size: 11px; color: #E74C3C; font-weight: 500; margin-left: 4px; }

/* 匹配度 v3 */
.nm-match-v3 {
  display: flex; gap: 20px; align-items: flex-start;
}
.nm-match-left {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.nm-match-score-v2 {
  position: relative; width: 100px; height: 100px;
}
.nm-match-ring { width: 100%; height: 100%; }
.nm-match-num-v2 {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #333;
  font-family: 'Noto Serif SC', serif;
}
.nm-match-num-v2 span { font-size: 12px; color: #999; margin-left: 1px; }
.nm-match-badge {
  display: inline-block; padding: 3px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 600;
}
.nm-match-right { flex: 1; min-width: 0; }
.nm-match-detail-grid {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px;
}
.nm-match-detail-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,0.4);
}
.nm-md-name { color: #888; width: 36px; flex-shrink: 0; }
.nm-md-wx { font-weight: 600; width: 20px; text-align: center; }
.nm-md-tag {
  padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 600;
  margin-left: auto;
}
.nm-match-summary {
  font-size: 12px; color: #777; line-height: 1.6; margin: 0;
}

/* AI介绍 */
.nm-ai-intro { margin-bottom: 12px; }
.nm-ai-intro-text {
  font-size: 12px; color: #888; line-height: 1.6;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(108,92,231,0.03);
  font-style: italic;
}
.nm-ai-intro-text i { font-style: normal; }
.nm-ai-intro-src {
  font-size: 11px; color: #bbb; margin-left: 6px; font-style: normal;
}

/* ⑤⑥ 并排布局容器 */
.nm-side-by-side {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.nm-side-by-side .glass-card { margin-bottom: 0; }
.nm-side-by-side .nm-match-v3 { flex-direction: column; align-items: center; }
.nm-side-by-side .nm-match-right { width: 100%; }

/* 分析按钮 */
.nm-analyze-btn {
  width: 100%; padding: 12px 20px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.25s; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.nm-analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,92,231,0.3);
}
.nm-analyze-btn:disabled {
  opacity: 0.7; cursor: not-allowed; transform: none;
}

/* ── 姓名五行 AI 深度解析结果 (nm-ai-*) ── */
.nm-ai-result {
  animation: lf-fade-in 0.5s ease;
}

/* 顶部 header */
.nm-ai-header {
  display: flex; align-items: center; gap: 14px;
}
.nm-ai-header-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(139,92,246,0.12));
  color: var(--accent); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nm-ai-header-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px; font-weight: 700; color: #333;
  margin: 0; line-height: 1.3;
}
.nm-ai-header-sub {
  font-size: 11px; color: #aaa; margin: 2px 0 0; letter-spacing: 0.5px;
}

/* 分隔线 */
.nm-ai-divider {
  height: 1px; margin: 14px 0 16px;
  background: linear-gradient(to right,
    transparent, rgba(108,92,231,0.15) 20%, rgba(108,92,231,0.15) 80%, transparent);
}

/* section 容器 */
.nm-ai-sections {
  display: flex; flex-direction: column; gap: 14px;
}
.nm-ai-section {
  border-radius: 12px; padding: 16px 18px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.04);
  border-left: 3px solid var(--nm-ai-accent, var(--accent));
  transition: transform 0.2s, box-shadow 0.2s;
}
.nm-ai-section:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* section header */
.nm-ai-section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.nm-ai-section-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.nm-ai-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px; font-weight: 700; color: #444;
  margin: 0;
}

/* section body 文本 */
.nm-ai-section-body {
  font-size: 13.5px; line-height: 1.9; color: #555;
  padding-left: 42px;
}
.nm-ai-section-body strong {
  color: var(--nm-ai-accent, var(--accent)); font-weight: 600;
}
.nm-ai-section-body em {
  color: #999; font-style: italic;
}
.nm-ai-p {
  margin-bottom: 6px;
}
.nm-ai-h3 {
  font-size: 13px; font-weight: 600; color: #666;
  margin: 10px 0 4px; padding-left: 8px;
  border-left: 2px solid var(--nm-ai-accent, var(--accent));
}
.nm-ai-ul {
  margin: 6px 0; padding-left: 14px; list-style: none;
}
.nm-ai-li {
  position: relative; padding-left: 14px;
  margin-bottom: 4px; font-size: 13px; color: #555;
}
.nm-ai-li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--nm-ai-accent, var(--accent)); opacity: 0.5;
}
.nm-ai-hr {
  border: none; height: 1px; margin: 12px 0;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.06), transparent);
}

/* ── 关键词高亮 (nm-kw-*) ── */
.nm-kw {
  font-weight: 600; padding: 0 2px; border-radius: 3px;
  white-space: nowrap;
}
/* 五行本色 */
.nm-kw-jin  { color: #C9971A; background: rgba(201,151,26,0.08); }
.nm-kw-mu   { color: #27AE60; background: rgba(39,174,96,0.08); }
.nm-kw-shui { color: #2980B9; background: rgba(41,128,185,0.08); }
.nm-kw-huo  { color: #E74C3C; background: rgba(231,76,60,0.08); }
.nm-kw-tu   { color: #8D6E63; background: rgba(141,110,99,0.08); }
/* 吉凶 */
.nm-kw-ji    { color: #27AE60; background: rgba(39,174,96,0.10); }
.nm-kw-xiong { color: #E74C3C; background: rgba(231,76,60,0.10); }
.nm-kw-banji { color: #E5A100; background: rgba(229,161,0,0.10); }
/* 喜忌 */
.nm-kw-xi    { color: #6c5ce7; background: rgba(108,92,231,0.10); font-weight: 700; }
/* 生克 */
.nm-kw-sheng { color: #27AE60; }
.nm-kw-ke    { color: #E74C3C; }
/* 建议动作 */
.nm-kw-suggest { color: #D4840A; background: rgba(212,132,10,0.08); }

/* 底部 footer */
.nm-ai-footer {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.04);
  font-size: 11px; color: #bbb; line-height: 1.5;
}
.nm-ai-footer i {
  font-size: 13px; margin-top: 1px; flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 640px) {
  .nm-ai-section-body { padding-left: 0; }
  .nm-ai-section { padding: 12px 14px; }
  .nm-ai-header-title { font-size: 15px; }
}
@media (max-width: 380px) {
  .nm-ai-section-body { font-size: 12.5px; }
  .nm-ai-section-icon { width: 28px; height: 28px; font-size: 14px; }
  .nm-ai-section-title { font-size: 13px; }
  .nm-ai-header-icon { width: 36px; height: 36px; font-size: 17px; }
}

/* 旧类名保留向后兼容 */
.nm-section-title {
  font-size: 14px; font-weight: 600; color: #555;
  margin: 16px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(108, 92, 231, 0.1);
  font-family: 'Noto Serif SC', serif;
}

@media (max-width: 640px) {
  .nm-ge-grid-v3 { grid-template-columns: repeat(2, 1fr); }
  .nm-xingge-grid { grid-template-columns: 1fr; }
  .nm-match-v3 { flex-direction: column; align-items: center; }
  .nm-match-right { width: 100%; }
  .nm-side-by-side { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .nm-name-display { gap: 10px; }
  .nm-char-card-v2 { min-width: 60px; padding: 12px 14px; }
  .nm-char-big { font-size: 24px; }
  .nm-ge-grid-v3 { grid-template-columns: 1fr; }
  .nm-sc-circle-v3 { width: 48px; height: 48px; }
  .nm-sc-wx-big { font-size: 16px; }
  .nm-sc-wx-name { font-size: 11px; }
  .nm-match-v3 { flex-direction: column; text-align: center; }
  .nm-match-right { text-align: left; }
}
