/* ══════════════════════════════════════════
   排盘表单
══════════════════════════════════════════ */
.form-section {
  padding: 100px 10% 60px;
  min-height: 100vh;
}
.form-header { text-align: center; margin-bottom: 36px; }
.form-header h1 { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
.form-header p  { color: var(--text-muted); font-size: .95rem; }

.chart-form {
  background: rgba(30,15,58,.75);
  border: 1px solid rgba(212,168,67,.2);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 700px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px 24px;
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.chart-form input[type="number"],
.chart-form select {
  width: 100%;
  background: rgba(18,7,31,.85);
  border: 1px solid rgba(212,168,67,.25);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  transition: border-color .2s;
}
.chart-form input:focus, .chart-form select:focus {
  border-color: rgba(212,168,67,.6);
}
.chart-form select option { background: #1e0f3a; }

.gender-row { display: flex; gap: 10px; }
.gender-btn {
  flex: 1; padding: 10px 0;
  background: rgba(18,7,31,.8);
  border: 1px solid rgba(212,168,67,.25);
  border-radius: 8px;
  color: var(--text-muted); font-size: .95rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.gender-btn.active {
  background: rgba(107,63,160,.5);
  color: #fff; border-color: var(--purple-light);
}
.form-error {
  background: rgba(200,60,60,.15);
  border: 1px solid rgba(200,60,60,.4);
  border-radius: 8px;
  padding: 10px 16px;
  color: #f08080; font-size: .88rem; margin-bottom: 16px;
}
.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--purple-main), var(--purple-light));
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 1.05rem; letter-spacing: 2px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(107,63,160,.4);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(107,63,160,.55);
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-note {
  text-align: center; margin-top: 14px;
  color: rgba(154,139,191,.5); font-size: .78rem; line-height: 1.7;
}
.form-note a { color: var(--gold); }

/* ══════════════════════════════════════════
   结果区顶部
══════════════════════════════════════════ */
.chart-result-section { padding: 60px 10% 80px; }
.result-meta {
  text-align: center; color: var(--text-muted);
  font-size: .88rem; margin-bottom: 10px;
}
.time-warn {
  text-align: center;
  background: rgba(200,140,0,.1);
  border: 1px solid rgba(212,168,67,.25);
  border-radius: 8px; padding: 10px 20px;
  color: var(--gold-light); font-size: .85rem;
  margin: 0 auto 16px; max-width: 720px;
}

/* ══════════════════════════════════════════
   三方四正提示条
══════════════════════════════════════════ */
.sanyao-hint {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px;
  margin: 0 auto 14px; max-width: 860px;
  font-size: .8rem; color: var(--text-muted);
}
.sanyao-legend { display: flex; gap: 10px; }
.sl-item {
  padding: 2px 10px; border-radius: 20px; font-size: .75rem;
}
.sl-self  { background: rgba(212,168,67,.25); color: var(--gold); border: 1px solid rgba(212,168,67,.5); }
.sl-sanhe { background: rgba(155,111,212,.2); color: var(--purple-light); border: 1px solid rgba(155,111,212,.4); }
.sl-dui   { background: rgba(80,180,180,.15); color: #7dd; border: 1px solid rgba(80,180,180,.35); }

/* ══════════════════════════════════════════
   命盘网格
══════════════════════════════════════════ */
.chart-board-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
}
.palace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  grid-template-rows: repeat(4, minmax(148px, auto));
  gap: 4px;
  min-width: 580px;
  max-width: 900px;
  margin: 0 auto;
  padding: 4px;
  background: rgba(212,168,67,.1);
  border: 1px solid rgba(212,168,67,.22);
  border-radius: 10px;
  position: relative;
}

/* 宫位显式定位 */
#p-si    { grid-row:1; grid-column:1; }
#p-wu    { grid-row:1; grid-column:2; }
#p-wei   { grid-row:1; grid-column:3; }
#p-shen  { grid-row:1; grid-column:4; }
#p-chen  { grid-row:2; grid-column:1; }
#chart-center { grid-row:2/4; grid-column:2/4; }
#p-you   { grid-row:2; grid-column:4; }
#p-mao   { grid-row:3; grid-column:1; }
#p-xu    { grid-row:3; grid-column:4; }
#p-yin   { grid-row:4; grid-column:1; }
#p-chou  { grid-row:4; grid-column:2; }
#p-zi    { grid-row:4; grid-column:3; }
#p-hai   { grid-row:4; grid-column:4; }

/* ── 单宫样式 ── */
.palace-cell {
  background: rgba(14,6,26,.9);
  border-radius: 5px;
  padding: 8px 9px;
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
  min-height: 148px;
  border-top: 2px solid transparent;   /* 三合色覆盖 */
}
.palace-cell:hover { background: rgba(30,15,58,.95); }

/* 三合组颜色（永久顶边色） */
.sh申子辰 { border-top-color: rgba(80,140,255,.55); }
.sh亥卯未 { border-top-color: rgba(80,200,120,.55); }
.sh寅午戌 { border-top-color: rgba(255,110,70,.55);  }
.sh巳酉丑 { border-top-color: rgba(220,180,60,.55);  }

/* 三方四正交互高亮 */
.sanyao-self   { box-shadow: 0 0 0 2px var(--gold); background: rgba(107,63,160,.22) !important; }
.sanyao-sanhe  { box-shadow: 0 0 0 1px var(--purple-light); background: rgba(107,63,160,.12) !important; }
.sanyao-dui    { box-shadow: 0 0 0 1px rgba(80,200,200,.5); background: rgba(30,100,100,.12) !important; }

/* 命宫 / 身宫特殊标记 */
.is-life { border-left: 3px solid var(--gold); }
.is-body { border-right: 3px solid rgba(155,111,212,.7); }

/* ── 宫位头部 ── */
.palace-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 4px;
}
.palace-name {
  font-size: .82rem; font-weight: bold; color: var(--gold-light);
  display: flex; align-items: center; gap: 3px;
}
.palace-stem {
  font-size: .7rem; color: rgba(154,139,191,.7); white-space: nowrap;
}
.badge-body {
  display: inline-block; font-size: .58rem; font-weight: bold;
  background: rgba(155,111,212,.25); color: var(--purple-light);
  border: 1px solid rgba(155,111,212,.4);
  border-radius: 3px; padding: 0 3px; vertical-align: middle;
}
.palace-stage {
  font-size: .65rem; color: rgba(154,139,191,.55);
  display: block; margin-top: -2px;
}
.empty-palace { font-size: .72rem; color: rgba(154,139,191,.35); font-style: italic; }

/* ── 主星（第 1 层）── */
.palace-major { display: flex; flex-wrap: wrap; gap: 3px; }
.star { display: inline-flex; align-items: center; gap: 2px; border-radius: 4px; padding: 1px 5px; font-size: .76rem; line-height: 1.5; }
.star-major {
  background: rgba(107,63,160,.35);
  color: #e0d0ff;
  border: 1px solid rgba(155,111,212,.35);
  font-weight: bold;
}
/* ── 辅星（第 2 层）── */
.palace-minor { display: flex; flex-wrap: wrap; gap: 3px; }
.star-minor {
  background: rgba(30,15,58,.9);
  color: var(--text-muted);
  border: 1px solid rgba(100,80,160,.2);
  font-size: .68rem;
}
/* ── 杂曜（第 3 层）── */
.palace-adj { display: flex; flex-wrap: wrap; gap: 3px; }
.star-adj {
  background: rgba(20,10,40,.8);
  color: rgba(154,139,191,.6);
  border: 1px solid rgba(80,60,120,.15);
  font-size: .62rem;
  border-radius: 3px;
  padding: 0 4px;
}
/* ── 长生12神（第 4 层）── */
.palace-cs { display: flex; flex-wrap: wrap; gap: 3px; }
.cs-tag {
  font-size: .6rem; color: rgba(212,168,67,.6);
  background: rgba(212,168,67,.07);
  border: 1px solid rgba(212,168,67,.15);
  border-radius: 3px; padding: 0 4px;
}
.cs-tag.bs { color: rgba(120,180,255,.6); background: rgba(120,180,255,.07); border-color: rgba(120,180,255,.15); }

/* 四化 Badge */
.mutagen-badge {
  display: inline-block; font-size: .6rem;
  background: rgba(212,168,67,.22); color: var(--gold);
  border-radius: 3px; padding: 0 3px;
  border: 1px solid rgba(212,168,67,.3);
  vertical-align: middle;
}
.mutagen-badge.sm { font-size: .56rem; }

/* 亮度 tag */
.brightness-tag {
  display: inline-block; font-size: .56rem;
  color: rgba(212,168,67,.55);
  vertical-align: middle;
}

/* ── 中心格 ── */
.chart-center {
  background: rgba(10,4,20,.92);
  border-radius: 6px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px 12px; gap: 7px; text-align: center;
  border: 1px solid rgba(212,168,67,.2);
}
.cc-zodiac { font-size: 1.5rem; color: var(--gold); font-weight: bold; }
.cc-date   { font-size: .72rem; color: var(--text-muted); line-height: 1.5; }
.cc-divider {
  width: 60%; height: 1px;
  background: rgba(212,168,67,.15); margin: 2px 0;
}
.cc-row   { display: flex; gap: 6px; align-items: center; }
.cc-lbl   { font-size: .68rem; color: rgba(154,139,191,.55); white-space: nowrap; }
.cc-val   { font-size: .78rem; color: var(--gold-light); font-weight: bold; }

/* ══════════════════════════════════════════
   图例
══════════════════════════════════════════ */
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: center; align-items: center;
  max-width: 900px; margin: 0 auto 10px;
  padding: 12px 20px;
  background: rgba(0,0,0,.18); border-radius: 8px;
  color: var(--text-muted); font-size: .78rem;
}
.chart-legend .star.demo, .chart-legend .mutagen-badge, .chart-legend .brightness-tag,
.chart-legend .badge-body, .chart-legend .cs-tag { pointer-events: none; }

/* 三合组图例 */
.sanhe-legend {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  justify-content: center;
  max-width: 900px; margin: 0 auto 28px;
  font-size: .74rem; color: var(--text-muted);
}
.sanhe-legend span {
  padding: 2px 12px; border-radius: 20px;
  border-top: 2px solid transparent; background: rgba(0,0,0,.2);
}
.sh申子辰 { border-top-color: rgba(80,140,255,.55); }
.sh亥卯未 { border-top-color: rgba(80,200,120,.55); }
.sh寅午戌 { border-top-color: rgba(255,110,70,.55); }
.sh巳酉丑 { border-top-color: rgba(220,180,60,.55); }

/* ══════════════════════════════════════════
   一键分析按钮区
══════════════════════════════════════════ */
.analyze-cta {
  text-align: center;
  padding: 32px 0 8px;
}
.analyze-cta p { color: var(--text-muted); font-size: .83rem; margin-top: 10px; }
.btn-analyze {
  background: linear-gradient(135deg, #2a1060, var(--purple-main));
  color: var(--gold-light);
  border: 1px solid rgba(212,168,67,.4);
  padding: 14px 40px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(107,63,160,.35);
  transition: transform .15s, box-shadow .15s, border-color .2s;
}
.btn-analyze:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,63,160,.5);
  border-color: var(--gold);
}

/* ══════════════════════════════════════════
   分析面板
══════════════════════════════════════════ */
.analysis-panel {
  margin-top: 32px;
  background: rgba(14,6,26,.9);
  border: 1px solid rgba(212,168,67,.25);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
.analysis-header { text-align: center; margin-bottom: 28px; }
.analysis-header h2 { font-size: 1.5rem; color: var(--gold); margin-bottom: 6px; }
.analysis-sub { color: var(--text-muted); font-size: .88rem; }

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.analysis-section {
  background: rgba(30,15,58,.6);
  border: 1px solid rgba(212,168,67,.1);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.an-wide { grid-column: 1 / -1; }
.analysis-section h3 {
  font-size: .92rem; color: var(--gold-light);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.analysis-section h3 span { font-size: 1rem; }
.analysis-section p {
  color: var(--text-muted); font-size: .88rem; line-height: 1.8;
}
.analysis-disclaimer {
  text-align: center; font-size: .75rem;
  color: rgba(154,139,191,.4); margin-top: 8px;
}

/* ══════════════════════════════════════════
   响应式
══════════════════════════════════════════ */
@media (max-width: 640px) {
  .form-section { padding: 88px 5% 40px; }
  .chart-form { padding: 24px 18px; }
  .chart-result-section { padding: 40px 4% 60px; }
  .palace-grid { grid-template-columns: repeat(4, minmax(110px, 1fr)); min-width: 460px; }
  .palace-cell { min-height: 120px; padding: 6px 7px; }
  .analysis-panel { padding: 24px 18px; }
}

/* ══════════════════════════════════════════
   Figma 新版命盘样式（fc-* 前缀）
══════════════════════════════════════════ */
.fc-section {
  padding: 72px 10% 80px;   /* 62px navbar + 10px 间距 */
  background: transparent;
}
.fc-section-title {
  text-align: center;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 24px;
  opacity: .7;
}
.fc-card {
  max-width: 430px;
  margin: 0 auto;
  background: #f0ebe1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #2d2420;
}
.fc-header {
  padding: 12px 16px 8px;
  display: flex;
  align-items: center;
}
.fc-header-title {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 4px;
  color: #2d2420;
}

/* 4×4 命盘网格 */
.fc-grid-wrap { padding: 0 12px 4px; }
.fc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1.25fr 1.35fr 1.35fr 1fr;
  gap: 1px;
  background: #d2c4b5;
  border: 1px solid #d2c4b5;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1 / 1.18;
}
.fc-cell {
  background: #fdfcf9;
  padding: 4px 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  min-height: 0;
  overflow: hidden;
}
.fc-cell:hover { background: #f7f2ea; }
.fc-cell.fc-ben  { background: #fae5df; }
.fc-cell.fc-rel  { background: #f4ebd5; }

/* 宫位 id → 网格位置 */
#fc-si    { grid-column:1; grid-row:1; }
#fc-wu    { grid-column:2; grid-row:1; }
#fc-wei   { grid-column:3; grid-row:1; }
#fc-shen  { grid-column:4; grid-row:1; }
#fc-chen  { grid-column:1; grid-row:2; }
#fc-you   { grid-column:4; grid-row:2; }
#fc-mao   { grid-column:1; grid-row:3; }
#fc-xu    { grid-column:4; grid-row:3; }
#fc-yin   { grid-column:1; grid-row:4; }
#fc-chou  { grid-column:2; grid-row:4; }
#fc-zi    { grid-column:3; grid-row:4; }
#fc-hai   { grid-column:4; grid-row:4; }
#fc-center-panel {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  background: #fdfcf9;
  padding: 8px 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: visible;
}

/* 宫格内部元素 */
.fc-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  overflow: hidden;
}
.fc-major-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fc-major-star {
  font-size: 10px;
  font-weight: bold;
  color: #2d2420;
  line-height: 1.25;
  white-space: nowrap;
}
.fc-mutagen-lu  { color: #4d7a5b; }
.fc-mutagen-quan { color: #6e526a; }
.fc-mutagen-ke  { color: #476885; }
.fc-mutagen-ji  { color: #a34439; }
.fc-minor-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.fc-minor-star {
  font-size: 8px;
  color: #73655c;
  line-height: 1.2;
  white-space: nowrap;
}
.fc-cell-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2px;
}
.fc-shen-list {
  font-size: 7px;
  color: #8c7e75;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}
.fc-palace-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin-left: 2px;
}
.fc-branch    { font-size: 9px; color: #4a3f39; line-height: 1.2; }
.fc-age       { font-size: 8px; color: #6e615a; line-height: 1.2; margin: 1px 0; }
.fc-palace-name {
  font-size: 10px;
  font-weight: bold;
  color: #1f1917;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
}

/* 中央面板 */
.fc-center-title {
  text-align: center;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 3px;
  color: #2d2420;
  margin-bottom: 3px;
}
.fc-center-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #6e615a;
  margin-bottom: 2px;
}
.fc-center-name { color: #963d32; font-weight: bold; font-size: 10px; }
.fc-center-rows { display: flex; flex-direction: column; gap: 2px; }
.fc-center-row  { display: flex; align-items: center; font-size: 8px; color: #6e615a; }
.fc-center-lbl  { width: 42px; flex-shrink: 0; }
.fc-center-val  { font-weight: bold; color: #4a3f39; font-size: 8px; }
.fc-sizhu {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  margin-left: 4px;
}
.fc-sizhu-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  font-weight: bold;
  line-height: 1.3;
}
.fc-gua-rows { margin-top: 3px; display: flex; flex-direction: column; gap: 1px; }
.fc-gua-row  { display: flex; align-items: center; font-size: 8px; color: #6e615a; }
.fc-center-btns {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
  gap: 2px;
}
.fc-center-btn {
  flex: 1;
  background: #f0ebe1;
  border: 1px solid #e4dcce;
  border-radius: 20px;
  color: #6e615a;
  font-size: 8px;
  padding: 3px 0;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}
.fc-center-btn:hover { background: #e4dcce; }

/* Tab 栏 */
.fc-tabs-wrap {
  padding: 12px 12px 0;
}
.fc-tabs {
  display: flex;
  background: #fdfcf9;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(210,196,181,.6);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.fc-tab {
  flex: 1;
  padding: 8px 4px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #8c7e75;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .2s, color .2s;
}
.fc-tab.active {
  background: #46352d;
  color: #fdfcf9;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.fc-tab-deco { font-size: 9px; color: #bcae9f; }

/* 流年卦年份滚动条 */
.fc-liunian-wrap {
  padding: 12px 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fc-liunian-scroll {
  flex: 1;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  padding: 4px 0;
  scrollbar-width: none;
}
.fc-liunian-scroll::-webkit-scrollbar { display: none; }
.fc-year-card {
  flex-shrink: 0;
  width: 68px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid #d2c4b5;
  background: #fdfcf9;
  color: #6e615a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all .15s;
  font-family: inherit;
}
.fc-year-card:hover { border-color: #8c7e75; }
.fc-year-card.active {
  background: #46352d;
  color: #fdfcf9;
  border: 2px solid #963d32;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  font-weight: bold;
}
.fc-scroll-btn {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: #8c7e75; font-size: 13px; flex-shrink: 0;
}
.fc-scroll-btn:hover { color: #46352d; }

/* 人生曲线（测试版） */
/* ── 人生曲线 v3 极简版 ────────────────────────────────────── */
.fc-score-wrap {
  margin: 6px 12px 4px;
  padding: 14px 14px 16px;
  background: #fdfaf5;
  border: 1px solid rgba(210,196,181,.72);
  border-radius: 16px;
  position: relative;
}
.aip-score-wrap { margin: 0 0 14px; }

/* ── 标题行 ────────────────────────────────────────────────── */
.fc-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fc-score-title {
  font-size: 16px;
  font-weight: 700;
  color: #3d302b;
  letter-spacing: .02em;
}
.fc-score-modes {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #ede6dc;
  border: 1px solid rgba(210,196,181,.6);
}
.fc-score-mode {
  border: 0;
  background: transparent;
  color: #9c8878;
  border-radius: 999px;
  padding: 5px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.fc-score-mode.active {
  background: #46352d;
  color: #fff9f1;
  box-shadow: 0 1px 4px rgba(40,20,10,.18);
}

/* ── Hero 区（Figma: 65分 左 + 36岁/逆势回升 右）───────────── */
.fc-hero {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 6px;
}
.fc-hero-left {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}
.fc-hero-score {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: #9a6a18;
  transition: color .3s;
  letter-spacing: -.02em;
}
.fc-hero-score.good { color: #2a6b42; }
.fc-hero-score.mid  { color: #9a6a18; }
.fc-hero-score.low  { color: #b3443a; }
.fc-hero-unit {
  font-size: 13px;
  color: #9c8878;
  margin-left: 2px;
}
.fc-hero-right {
  padding-bottom: 6px;
}
.fc-hero-age {
  font-size: 16px;
  font-weight: 700;
  color: #3d302b;
  line-height: 1.3;
}
.fc-hero-trend {
  font-size: 12px;
  font-weight: 600;
  color: #2a6b42;
  line-height: 1.4;
}
.fc-hero-summary {
  font-size: 11px;
  color: #9c8878;
  padding-bottom: 6px;
  margin-left: auto;
  text-align: right;
  max-width: 38%;
  word-break: break-all;
}

/* ── 大运条（纯文字，不加卡片）──────────────────────────────── */
.fc-decade-bar {
  font-size: 12px;
  color: #7a6050;
  margin: 0 0 4px;
  padding: 0 2px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 分割线 ────────────────────────────────────────────────── */
.fc-divider {
  height: 1px;
  background: rgba(210,196,181,.55);
  margin: 6px 0 8px;
}

/* ── 进度条 ────────────────────────────────────────────────── */
.fc-score-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
}
.fc-score-progress-fill {
  height: 4px;
  flex: 1 1 auto;
  background: rgba(210,196,181,.35);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.fc-score-progress-fill::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--fc-progress, 0%);
  background: linear-gradient(90deg, #7a4a37, #c07050);
  border-radius: 99px;
  transition: width .5s ease;
}
/* indeterminate 扫描态：第一批 partial 到达前使用 */
.fc-score-progress-fill.fc-progress-indeterminate::after {
  width: 38% !important;
  left: -45%;
  animation: fc-progress-sweep 1.5s cubic-bezier(.45,.05,.55,.95) infinite;
  transition: none;
}
@keyframes fc-progress-sweep {
  0%   { left: -45%; }
  100% { left: 115%; }
}
.fc-score-progress-text {
  font-size: 10px;
  color: #9c8878;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ── SVG 预热骨架动画 ──────────────────────────────────────── */
.fc-score-skeleton-bg {
  fill: rgba(210,196,181,.12);
}
.fc-score-skeleton-line {
  stroke: rgba(140,100,80,.28);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  animation: fc-skeleton-pulse 1.6s ease-in-out infinite;
}
/* shimmer：宽条位置由 JS 设置，translate 驱动扫过整个图表区 */
.fc-score-shimmer {
  fill: rgba(180,148,122,.13);
  pointer-events: none;
  animation: fc-shimmer-sweep 1.8s ease-in-out infinite;
}
@keyframes fc-skeleton-pulse {
  0%, 100% { stroke-opacity: .25; }
  50%       { stroke-opacity: .95; }
}
@keyframes fc-shimmer-sweep {
  0%   { transform: translateX(0px);    }
  100% { transform: translateX(1100px); }
}

/* ── 加载状态文字 ──────────────────────────────────────────── */
.fc-score-meta {
  font-size: 12px;
  color: #7a6050;
  margin-bottom: 4px;
  padding: 0 2px;
}

/* ── 重大关口年提示横幅 ──────────────────────────────────────── */
.fc-critical-banner {
  background: rgba(140,60,40,.08);
  border-left: 3px solid rgba(160,70,45,.55);
  border-radius: 0 4px 4px 0;
  color: #7a3825;
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 10px;
  margin-bottom: 6px;
}

/* ── 重大关口年 SVG 标记 ─────────────────────────────────────── */
.fc-score-critical-line {
  stroke: rgba(160,70,45,.55);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
  pointer-events: none;
}
.fc-score-critical-label {
  font-size: 8px;
  fill: rgba(140,60,40,.75);
  pointer-events: none;
  user-select: none;
}
/* 关口期后段曲线样式（降低透明度，体现低迷但不报丧） */
.fc-score-area-postcritical {
  fill-opacity: 0.35;
}
.fc-score-path-postcritical {
  stroke: #a06040;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  opacity: 0.6;
}
/* 关口期后的数据点：略微淡化 */
.fc-score-point.fc-post-critical {
  opacity: 0.55;
}

/* ── 曲线图 SVG（主角，满宽）───────────────────────────────── */
.fc-score-svg {
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;
  height: auto;
  aspect-ratio: 390 / 260;
  display: block;
  overflow: hidden;
  background: #fff;
}
.fc-score-path {
  fill: none;
  stroke: #7a4a37;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fc-score-area {
  fill: rgba(122,74,55,.07);
}
.fc-score-point {
  stroke: #fff;
  stroke-width: 2;
  cursor: pointer;
}
.fc-score-point.good { fill: #2a6b42; }
.fc-score-point.mid  { fill: #9a6a18; }
.fc-score-point.low  { fill: #b3443a; }
.fc-score-point-key {
  stroke: #fff;
  stroke-width: 2.5;
}
.fc-score-keylabel {
  font-size: 9px;
  font-weight: 700;
  pointer-events: none;
}
.fc-score-cursor {
  stroke: #7a4a37;
  stroke-width: 1.2;
  opacity: .35;
}
.fc-score-label {
  font-size: 9px;
  fill: #8e857d;
}
.fc-score-refline {
  stroke: rgba(140,120,100,.12);
  stroke-width: .5;
  stroke-dasharray: 6 4;
}

/* ── Tooltip ────────────────────────────────────────────────── */
.fc-tooltip {
  position: absolute;
  background: rgba(30,22,16,.92);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  pointer-events: none;
  z-index: 90;
  min-width: 130px;
  box-shadow: 0 4px 16px rgba(20,10,5,.2);
  transition: opacity .15s, transform .15s;
}
.fc-tooltip-age {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.fc-tooltip-score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.fc-tooltip-score {
  font-size: 26px;
  font-weight: 800;
}
.fc-tooltip-level {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 99px;
}
.fc-tooltip-level.good { background: rgba(42,107,66,.35); }
.fc-tooltip-level.mid  { background: rgba(154,106,24,.35); }
.fc-tooltip-level.low  { background: rgba(179,68,58,.35); }
.fc-tooltip-summary {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  margin-bottom: 2px;
}
.fc-tooltip-decade {
  font-size: 10px;
  color: rgba(255,255,255,.45);
}

/* ── 十年卡片 ──────────────────────────────────────────────── */
.fc-score-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.fc-score-chip {
  border: 1px solid rgba(210,196,181,.4);
  border-radius: 10px;
  background: #fff;
  padding: 7px 4px 9px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.fc-score-chip:hover { border-color: rgba(122,74,55,.35); background: #fdf8f2; }
.fc-score-chip.active {
  background: #46352d;
  border-color: #46352d;
}
.fc-score-chip-age {
  display: block;
  font-size: 10px;
  color: #9c8878;
  margin-bottom: 3px;
  line-height: 1;
}
.fc-score-chip.active .fc-score-chip-age { color: rgba(255,249,241,.65); }
.fc-score-chip-score {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  color: #3d302b;
}
.fc-score-chip.active .fc-score-chip-score { color: #fff9f1; }
.fc-score-chip-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  margin: 5px auto 0;
  width: 60%;
  opacity: .55;
}

/* ── 峰谷一行 ──────────────────────────────────────────────── */
.fc-peaks-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
  padding: 9px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(210,196,181,.4);
  font-size: 12px;
  color: #5a4030;
  line-height: 1.5;
}
.fc-peaks-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.fc-peaks-item + .fc-peaks-item::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(210,196,181,.6);
  margin: 0 8px;
}
.fc-peaks-label { font-weight: 700; }
.fc-peaks-label.good { color: #2a6b42; }
.fc-peaks-label.low  { color: #b3443a; }
.fc-peaks-label.avg  { color: #7a6050; }
.fc-peaks-label.best { color: #2a6b42; }

/* ── 大运总览横滚 ──────────────────────────────────────────── */
.fc-decades-scroll-wrap {
  margin-top: 8px;
}
.fc-decades-scroll-title {
  font-size: 13px;
  font-weight: 700;
  color: #3d302b;
  margin-bottom: 6px;
}
.fc-decades-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fc-decades-scroll::-webkit-scrollbar { display: none; }
.fc-decade-card {
  flex: 0 0 auto;
  min-width: 68px;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
}
.fc-decade-card.active {
  border-color: #7a4a37;
}
.fc-decade-card-range {
  font-size: 10px;
  font-weight: 700;
  color: #3d302b;
  margin-bottom: 2px;
}
.fc-decade-card-score {
  font-size: 11px;
  font-weight: 800;
  color: #6f594f;
  margin-bottom: 1px;
}
.fc-decade-card-score.good { color: #2a6b42; }
.fc-decade-card-score.mid  { color: #9a6a18; }
.fc-decade-card-score.low  { color: #b3443a; }
.fc-decade-card-label {
  font-size: 10px;
  font-weight: 600;
}
.fc-decade-card-label.good { color: #2a6b42; }
.fc-decade-card-label.mid  { color: #9a6a18; }
.fc-decade-card-label.weak { color: #b27434; }
.fc-decade-card-label.low  { color: #b3443a; }

/* ── 底部操作 ──────────────────────────────────────────────── */
.fc-bottom-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.fc-score-btn {
  flex: 1 1 0;
  border: 0;
  border-radius: 999px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
  text-align: center;
}
.fc-btn-primary {
  background: #46352d;
  color: #fff9f1;
}
.fc-btn-secondary {
  background: #ede6dc;
  color: #5a3524;
  border: 1px solid rgba(210,196,181,.6);
}
.fc-score-btn[disabled] {
  opacity: .55;
  cursor: wait;
}
.fc-footer {
  font-size: 10px;
  color: #9c8878;
  margin-top: 8px;
  padding: 0 2px;
}

/* ── 十年大运色块（SVG rect）──────────────────────────────── */
.fc-decade-band-even  { fill: rgba(140,110,90,.05); }
.fc-decade-band-odd   { fill: rgba(140,110,90,.02); }
.fc-decade-band-good  { fill: rgba(77,122,91,.12);  }
.fc-decade-band-mid   { fill: rgba(200,138,46,.08); }
.fc-decade-band-weak  { fill: rgba(179,87,75,.10);  }
.fc-decade-band-low   { fill: rgba(139,26,26,.14);  }
.fc-decade-band-even.active  { fill: rgba(140,110,90,.14); }
.fc-decade-band-odd.active   { fill: rgba(140,110,90,.10); }
.fc-decade-band-good.active  { fill: rgba(77,122,91,.22);  }
.fc-decade-band-mid.active   { fill: rgba(200,138,46,.18); }
.fc-decade-band-weak.active  { fill: rgba(179,87,75,.22);  }
.fc-decade-band-low.active   { fill: rgba(139,26,26,.26);  }
.fc-decade-band-label {
  font-size: 8px;
  fill: rgba(120,95,80,.35);
  pointer-events: none;
  user-select: none;
}
.fc-decade-band-label.active {
  fill: rgba(60,40,32,.65);
  font-weight: 700;
}

/* 卦象展示区 */
.fc-hexagram-area {
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fc-hex-name {
  font-size: 1.15rem;
  font-weight: bold;
  color: #2d2420;
  letter-spacing: 4px;
  margin-bottom: 2px;
}
.fc-hex-sub {
  font-size: 9px;
  color: #8c7e75;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.fc-hex-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 120px;
}
.fc-hex-gap { height: 2px; }
.fc-yao-solid {
  height: 12px;
  background: #362923;
  border-radius: 1px;
}
.fc-yao-broken {
  height: 12px;
  display: flex;
  gap: 12%;
}
.fc-yao-broken > div {
  flex: 1;
  background: #362923;
  border-radius: 1px;
}

/* 卦辞文案卡片 */
.fc-guaci-card {
  margin: 0 12px 16px;
  padding: 14px 16px;
  background: #fdf8f2;
  border: 1px solid rgba(150,61,50,.18);
  border-radius: 8px;
}
.fc-guaci-text {
  font-size: 13px;
  color: #3d2b22;
  line-height: 1.9;
  margin: 0;
  white-space: pre-wrap;
}

/* 流年卦叠加行 */
.fc-yearly-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 1px 0;
  padding: 1px 2px;
  border-top: 1px dashed rgba(150,61,50,.3);
}
.fc-yearly-life {
  font-size: 7px;
  color: #fdfcf9;
  background: #963d32;
  border-radius: 2px;
  padding: 0 2px;
  line-height: 1.4;
}

/* 小限宫位高亮 */
.fc-cell.fc-xiaolian {
  background: #fef3e2 !important;
  outline: 2px solid #c07820;
  outline-offset: -2px;
}
.fc-cell.fc-ben.fc-xiaolian  { background: #fceac0 !important; }
.fc-cell.fc-rel.fc-xiaolian  { background: #fef3e2 !important; }

/* badge 放在 fc-cell-bottom 末尾，作为 flex 行内的最后一项 */
.fc-xiaolian-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  margin-left: auto;
  background: #c07820;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .fc-xiaolian-badge {
    font-size: 7px;
    padding: 1px 4px;
  }
}

/* ══════════════════════════════════════════
   排盘表单 — 棕金色东方美学（Figma 轮5最终稿）
   色系: bg #18130e | card #211b15 | gold #c9a961
══════════════════════════════════════════ */
.nf-page {
  padding-top: 70px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 80px;
  min-height: 100vh;
  background: #18130e;
  color: #c6b7a6;
}
.nf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px 20px;
}
.nf-logo {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #c9a961;
  letter-spacing: 3px;
}
.nf-diamond {
  width: 8px;
  height: 8px;
  background: #c9a961;
  transform: rotate(45deg);
  border-radius: 2px;
  opacity: .7;
}
.nf-history-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: #c6b7a6;
  background: rgba(201,169,97,.10);
  border: 1px solid rgba(201,169,97,.30);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}
.nf-history-btn:hover {
  background: rgba(201,169,97,.16);
}
.nf-card {
  background: #211b15;
  border-radius: 20px;
  padding: 0 20px;
  border: 1px solid rgba(201,169,97,.20);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}
/* 卡片顶部金色横线 */
.nf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(201,169,97,.75);
  border-radius: 20px 20px 0 0;
}
/* 卡片左右上角金点 */
.nf-card::after {
  content: '';
  position: absolute;
  top: 8px; right: 14px;
  width: 4px; height: 4px;
  background: rgba(201,169,97,.35);
  border-radius: 50%;
  box-shadow: -320px 0 0 rgba(201,169,97,.35);
}
.nf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: none;
  position: relative;
}
/* 行间分隔：金色菱形线 */
.nf-row + .nf-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(201,169,97,.15) 20%,
    rgba(201,169,97,.15) 48%,
    transparent 50%,
    rgba(201,169,97,.15) 52%,
    rgba(201,169,97,.15) 80%,
    transparent 100%
  );
}
/* 菱形中心点 */
.nf-row + .nf-row::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 7px; height: 7px;
  background: rgba(201,169,97,.45);
  border-radius: 1px;
}
.nf-row:last-child, .nf-row-last {
  border-bottom: none;
}
.nf-row-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nf-label {
  color: #a29482;
  font-size: .88rem;
  font-weight: 500;
}
.nf-required {
  color: #e04d4d;
  margin-right: 4px;
  font-weight: 700;
}
.nf-row-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c6b7a6;
  font-weight: 500;
  cursor: pointer;
}
.nf-chevron {
  color: rgba(201,169,97,.4);
  font-size: 1.1rem;
}
.nf-name-input {
  border: none;
  outline: none;
  background: transparent;
  color: #c6b7a6;
  flex: 1;
  font-size: .92rem;
  font-family: inherit;
}
.nf-name-input::placeholder { color: #a29482; }
.nf-gender-pill {
  display: flex;
  background: #110d09;
  border: 1px solid rgba(201,169,97,.22);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
}
.nf-gender-btn {
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #a29482;
  font-size: .88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.nf-gender-btn.active {
  background: #c9a961;
  color: #14100c;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,169,97,.3);
}
.nf-inline-inputs {
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nf-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(201,169,97,.20);
  background: #110d09;
  color: #c6b7a6;
  padding: 9px 10px;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  transition: border-color .15s;
}
.nf-select:focus {
  border-color: rgba(201,169,97,.55);
}
.nf-select option {
  background: #211b15;
  color: #c6b7a6;
}
.nf-val-muted {
  color: #a29482;
  font-size: .85rem;
}
.nf-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nf-toggle {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(201,169,97,.18);
  padding: 2px;
  cursor: pointer;
  transition: background .2s;
  position: relative;
  display: flex;
  align-items: center;
}
.nf-toggle.on {
  background: #c9a961;
}
.nf-toggle-knob {
  width: 20px;
  height: 20px;
  background: #e8dcc8;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: transform .2s;
  transform: translateX(0);
}
.nf-toggle.on .nf-toggle-knob {
  transform: translateX(20px);
}
.nf-error {
  background: rgba(224,77,77,.08);
  border: 1px solid rgba(224,77,77,.30);
  border-radius: 10px;
  padding: 10px 14px;
  color: #e07070;
  font-size: .85rem;
  margin-top: 8px;
}
.nf-submit-wrap {
  padding: 20px 0 8px;
}
.nf-submit {
  width: 100%;
  padding: 16px;
  background: #c9a961;
  color: #14100c;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  letter-spacing: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: opacity .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(201,169,97,.35);
}
/* 顶部光泽 */
.nf-submit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: rgba(255,255,255,.07);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}
.nf-submit:hover:not(:disabled) {
  opacity: .92;
  box-shadow: 0 6px 28px rgba(201,169,97,.5);
}
.nf-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.nf-reset-btn {
  display: block;
  margin: 20px auto 0;
  padding: 12px 40px;
  background: transparent;
  color: #a29482;
  border: 1px solid rgba(201,169,97,.30);
  border-radius: 999px;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.nf-reset-btn:hover {
  background: rgba(201,169,97,.08);
}

/* ── 公历/农历切换 ── */
.nf-cal-toggle {
  display: flex;
  background: #110d09;
  border: 1px solid rgba(201,169,97,.18);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.nf-cal-btn {
  padding: 4px 13px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #a29482;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.nf-cal-btn.active {
  background: #c9a961;
  color: #14100c;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(201,169,97,.3);
}
.nf-cal-btn-ai {
  font-size: .76rem;
  color: #dec48c;
  border: 1px solid rgba(201,169,97,.0);
}
.nf-cal-btn-ai.active {
  background: rgba(201,169,97,.12);
  border: 1px solid rgba(201,169,97,.45);
  color: #dec48c;
  font-weight: 500;
  box-shadow: none;
}
/* ── AI识别 内联面板 ── */
#ai-inline-wrap {
  margin-top: 4px;
  padding: 12px 14px;
  background: rgba(201,169,97,.05);
  border-radius: 12px;
  border: 1px solid rgba(201,169,97,.15);
}
#ai-inline-wrap .ai-chat-messages {
  max-height: 160px;
  margin-bottom: 10px;
}
/* ── 日期输入行 ── */
.nf-date-inputs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nf-date-inputs .nf-select {
  min-width: 0;
}
/* ── 城市搜索下拉 ── */
.nf-city-dropdown {
  background: #1a1410;
  border: 1px solid rgba(201,169,97,.20);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}
.nf-city-item {
  padding: 10px 16px;
  font-size: .88rem;
  color: #c6b7a6;
  cursor: pointer;
  transition: background .1s;
  border-bottom: 1px solid rgba(201,169,97,.06);
}
.nf-city-item:hover {
  background: rgba(201,169,97,.10);
  color: #dec48c;
}

/* ── 出生时刻行 ── */
.nf-time-row {
  align-items: center;
}
.nf-time-selects {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nf-time-sel {
  width: 72px;
  text-align: center;
  padding: 9px 6px;
  font-size: 1rem;
}
.nf-time-sep {
  font-size: .88rem;
  color: #c6b7a6;
  padding: 0 2px;
}

/* ── 真太阳时区域 ── */
#tst-row .nf-label,
#tst-label { color: #a29482 !important; }
#tst-display { color: #e8dcc8 !important; font-size: .88rem; }
#tst-estimated-badge {
  background: rgba(201,169,97,.10) !important;
  border: 1px solid rgba(201,169,97,.28) !important;
  color: #dec48c !important;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .72rem;
}
#shichen-preview { color: #a29482 !important; }
#shichen-infer-badge {
  background: rgba(201,169,97,.12) !important;
  border: 1px solid rgba(201,169,97,.35) !important;
  color: #c9a961 !important;
}

/* ── 日期/城市 相关内联颜色覆盖 ── */
#date-preview { color: #a29482 !important; }
#city-selected { color: #dec48c !important; }
#city-selected span[style] { color: #a29482 !important; }
#btn-clear-city { color: #a29482 !important; }

/* ── 不知道时辰按钮 ── */
#shichen-trigger {
  background: rgba(201,169,97,.08) !important;
  border: 1px solid rgba(201,169,97,.30) !important;
  border-radius: 8px !important;
  color: #dec48c !important;
  font-size: .75rem;
  padding: 4px 10px;
  cursor: pointer;
}

/* ── 底部版权文字 ── */
.nf-card > p,
.nf-card p[style*="text-align:center"] {
  color: #a29482 !important;
}
.nf-card a[href*="iztro"] {
  color: #c9a961 !important;
}

/* ── 农历闰月 ── */
#inp-lunar-leap-wrap { color: #a29482 !important; }
#inp-lunar-leap-note { color: #8e7c6b !important; }

@media (max-width: 540px) {
  .nf-time-sel { width: 64px; font-size: .92rem; }
}

/* ══════════════════════════════════════════
   移动端命盘优化（≤ 540px）
   目标：命盘尽量满屏、字尽量大、空白尽量少
══════════════════════════════════════════ */
@media (max-width: 540px) {

  /* ── 输入表单页 ── */
  .nf-page {
    padding-top: 62px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
  }
  .nf-card {
    max-width: 100%;
    border-radius: 16px;
    padding: 0 14px;
  }
  .nf-row { padding: 12px 0; }

  /* ── 命盘区域整体 ── */
  .fc-section {
    padding: 66px 8px 16px;   /* 56px navbar + 10px 间距 */
  }
  .fc-card {
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
  }

  /* ── 顶部标题行 ── */
  .fc-header { padding: 8px 10px 5px; }
  .fc-header-title { font-size: .85rem; letter-spacing: 3px; }

  /* ── 格网外层缩边距 ── */
  .fc-grid-wrap { padding: 0 3px 2px; }
  .fc-grid { aspect-ratio: 1 / 1.24; }

  /* ── 宫格内 — 主星、宫名字体放大 ── */
  .fc-major-star { font-size: 12px; }
  .fc-palace-name { font-size: 12px; }
  .fc-branch { font-size: 10px; }
  .fc-age    { font-size: 9px; }
  .fc-minor-star { font-size: 9px; }
  .fc-shen-list  { font-size: 8px; }

  /* ── 宫位四化标签放大 ── */
  .fc-pal-mutagen { font-size: 10px; padding: 1px 5px; }
  .fc-cell-mutagen { gap: 2px; margin-bottom: 2px; }

  /* ── 中央面板压缩 ── */
  #fc-center-panel { padding: 5px 5px 4px; gap: 1px; }
  .fc-center-title  { font-size: 10px; letter-spacing: 2px; margin-bottom: 1px; }
  .fc-center-meta   { font-size: 8px; margin-bottom: 1px; }
  .fc-center-name   { font-size: 9px; }
  .fc-center-rows   { gap: 1px; }
  .fc-center-row    { font-size: 7.5px; }
  .fc-center-lbl    { width: 34px; }
  .fc-center-val    { font-size: 7.5px; }
  .fc-sizhu { gap: 4px; margin-top: 2px; }
  .fc-sizhu-col { font-size: 8px; }
  .fc-gua-rows { margin-top: 2px; gap: 1px; }
  .fc-gua-row  { font-size: 7px; }
  .fc-center-btns { gap: 1px; padding-top: 3px; }
  .fc-center-btn  { font-size: 7px; padding: 2px 0; }

  /* ── 四化分布（中央面板内） ── */
  .fc-mutagen-dist { margin: 3px 0 2px; padding: 4px 6px; }
  .fc-mut-title    { margin-bottom: 2px; }
  .fc-mut-palace   { font-size: 8px; }
  .fc-mut-star     { font-size: 7px; }

  /* ── Tab 栏 ── */
  .fc-tabs-wrap { padding: 8px 6px 0; }
  .fc-tab { font-size: 11px; padding: 7px 4px; }

  /* ── 流年年份滚动 ── */
  .fc-liunian-wrap { padding: 8px 2px 0; }
  .fc-year-card { width: 56px; height: 48px; font-size: 10px; border-radius: 6px; }

  /* ── 卦象区 ── */
  .fc-hexagram-area { padding: 10px 8px 12px; }
  .fc-hex-name { font-size: .95rem; letter-spacing: 3px; }
  .fc-hex-sub  { margin-bottom: 8px; }
  .fc-hex-lines { width: 96px; }
  .fc-score-wrap { margin: 6px 6px 4px; padding: 12px 10px 14px; }
  .fc-score-svg { width: calc(100% + 20px); margin-left: -10px; margin-right: -10px; }
  .fc-hero-score { font-size: 40px; }
  .fc-hero-age { font-size: 14px; }
  .fc-score-chip-score { font-size: 16px; }
  .fc-score-chip { padding: 6px 3px 8px; }
  .fc-score-list { gap: 4px; }
  .fc-score-mode { padding: 5px 12px; font-size: 12px; }
  .fc-bottom-actions { gap: 8px; }
  .fc-score-btn { padding: 10px 0; font-size: 12px; }

  /* ── 重新排盘按钮 ── */
  .nf-reset-btn {
    padding: 10px 24px;
    font-size: .88rem;
  }

  /* ── 区块间距压缩 ── */
  .fc-section-title { margin-bottom: 10px; font-size: .95rem; }
}

/* ══════════════════════════════════════════
   宫位级四化 — 命盘格内
══════════════════════════════════════════ */
/* 格内四化行：置于主星上方，作为第一眼视觉 */
.fc-cell-mutagen {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
/* 宫位四化标签（彩色实色药丸） */
.fc-pal-mutagen {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  padding: 1px 4px;
  letter-spacing: .5px;
  line-height: 1.4;
}
.fc-pal-mutagen.fc-mutagen-lu   { background: #e6f4ea; color: #2d7a3a; border: 1px solid #b5d9bc; }
.fc-pal-mutagen.fc-mutagen-quan { background: #f0e8f8; color: #6b3fa0; border: 1px solid #cdb8e8; }
.fc-pal-mutagen.fc-mutagen-ke   { background: #e8eef7; color: #2d5fa0; border: 1px solid #b0c4e0; }
.fc-pal-mutagen.fc-mutagen-ji   { background: #fcecea; color: #963d32; border: 1px solid #e8b8b4; }

/* ══════════════════════════════════════════
   本盘四化分布 — 中央面板
══════════════════════════════════════════ */
.fc-mutagen-dist {
  margin: 6px 0 4px;
  padding: 6px 8px;
  background: rgba(203,165,135,.08);
  border-radius: 6px;
  border: 1px solid rgba(203,165,135,.2);
}
.fc-mut-title {
  font-size: 8px;
  color: #a0908a;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.fc-mut-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fc-mut-item {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.fc-mut-palace {
  font-size: 9px;
  font-weight: 600;
  color: #4a3f35;
}
.fc-mut-star {
  font-size: 8px;
  color: #a0908a;
}

@media (max-width: 600px) {
  .fc-pal-mutagen { font-size: 8px; padding: 1px 3px; }
  .fc-mut-palace  { font-size: 8px; }
  .fc-mut-star    { font-size: 7px; }
}

/* ─── AI批命区 ──────────────────────────────────────────── */
#aip-section { background: #faf6f0; padding: 0 0 36px; border-top: 1px solid #ede6dc; }
.aip-wrap    { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.aip-head    { display: flex; align-items: center; gap: 10px; padding: 20px 0 10px; }
.aip-badge   { background: #963d32; color: #fff; font-size: 11px; font-weight: bold;
               padding: 3px 10px; border-radius: 20px; letter-spacing: 1px; }
.aip-desc    { font-size: 11px; color: #9c8878; }
.aip-tabs    { display: flex; border-bottom: 1px solid #e4dcce; margin-bottom: 14px; }
.aip-tab     { background: none; border: none; border-bottom: 2px solid transparent;
               padding: 8px 20px; font-size: 13px; color: #9c8878; cursor: pointer;
               font-family: inherit; margin-bottom: -1px; transition: color .15s; }
.aip-tab.active  { color: #963d32; border-bottom-color: #963d32; font-weight: bold; }
.aip-tab:hover   { color: #6b4e41; }
.aip-mainline-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f7efe4;
  border: 1px solid #eadcca;
  border-radius: 10px;
}
.aip-mainline-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efe1cd;
  color: #8b5e32;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.aip-mainline-copy {
  font-size: 11px;
  line-height: 1.7;
  color: #7a6758;
}
.aip-panel   { display: flex; flex-direction: column; gap: 10px; }
.aip-card    { background: #fff; border: 1px solid #ede6dc; border-radius: 8px; padding: 13px 15px; }
.aip-card-head  { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.aip-tag        { background: #f5ede0; color: #7a5c4a; font-size: 10px;
                  padding: 2px 9px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.aip-card-title { font-size: 13px; font-weight: bold; color: #3d302b; }
.aip-card-body  { font-size: 12.5px; color: #5c4d45; line-height: 1.75; }
.aip-card-body .aip-body-title { display: block; font-size: 13px; font-weight: 700; color: #3d2b1f; margin: 14px 0 4px; }
.aip-card-body .aip-body-title:first-child { margin-top: 2px; }
.aip-card-body .aip-body-para  { margin: 0 0 2px; }
.aip-card-tip   { margin-top: 7px; font-size: 11px; color: #963d32;
                  padding-left: 9px; border-left: 2px solid #e8c9b0; line-height: 1.6; }
/* ── 整体批命主卡片 ──────────────────────────────────── */
.aip-main-card {
  border-color: #d4c4b0;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(40, 20, 8, .09);
}

/* Hero 头（深色命格标识区）*/
.aip-main-hero {
  background: #201208;
  border-radius: 14px 14px 0 0;
  padding: 16px 20px 18px;
}
.aip-main-card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.aip-hero-tag {
  background: rgba(180, 120, 50, .35) !important;
  color: #f0c878 !important;
  border: 1px solid rgba(200, 160, 80, .3);
}
.aip-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffe8c4;
  letter-spacing: .02em;
  line-height: 1.3;
}

/* 正文内容区 */
.aip-main-body-wrap {
  padding: 14px 18px 18px;
}

/* 身宫副卡（降层级）*/
.aip-sub-card {
  border-color: #e0d4c4;
  border-radius: 10px;
  padding: 14px 16px;
  background: #f8f4ee;
}
.aip-shen-card { margin-top: 6px; }
.aip-shen-card .aip-card-body { min-height: 48px; font-size: 13px; }
.aip-shen-tag {
  background: #ede4d4 !important;
  color: #8a6840 !important;
  font-size: 10px !important;
}
.aip-hunyin-card { margin-top: 6px; }
.aip-hunyin-card .aip-card-body { min-height: 48px; font-size: 13px; }
.aip-hunyin-tag {
  background: #f0dde8 !important;
  color: #8a4068 !important;
  font-size: 10px !important;
}
.aip-jiankang-card { margin-top: 6px; }
.aip-jiankang-card .aip-card-body { min-height: 48px; font-size: 13px; }
.aip-jiankang-tag {
  background: #d8eddf !important;
  color: #3a6e4a !important;
  font-size: 10px !important;
}

.aip-caiyun-card { margin-top: 6px; }
.aip-caiyun-card .aip-card-body { min-height: 48px; font-size: 13px; }
.aip-caiyun-tag {
  background: #f5eed6 !important;
  color: #7a5c1a !important;
  font-size: 10px !important;
}

.aip-shiye-card { margin-top: 6px; }
.aip-shiye-card .aip-card-body { min-height: 48px; font-size: 13px; }
.aip-shiye-tag {
  background: #ede8f5 !important;
  color: #5a3a8a !important;
  font-size: 10px !important;
}

/* 主卡分区：风险 / 依据 */
.aip-life-risk {
  margin-top: 12px;
  font-size: 12px; color: #7a2e20; white-space: pre-line;
  padding: 10px 14px;
  background: #fdf0ec;
  border: 1px solid rgba(180, 80, 60, .25);
  border-radius: 8px; line-height: 1.75;
}
.aip-life-basis {
  margin-top: 8px; font-size: 11px; color: #8a7a70; white-space: pre-line;
  padding: 4px 9px; border-left: 2px solid #d4c9be; line-height: 1.6;
}
.aip-life-ev { display: none; }

/* ── 命格速览结构卡 ──────────────────────────────────── */
.aip-struct-badge-row {
  background: #f5ede0;
  border-top: 1px solid #e0d0bc !important;
}
.aip-struct-badge-row .aip-struct-label { color: #9a6a30; font-weight: 700; }
.aip-struct-badge-row .aip-struct-val   { font-size: 12.5px; font-weight: 700; color: #7a4e2a; letter-spacing: .02em; }

/* AI 综合解读 section 标签（胶囊式）*/
.aip-section-label {
  display: inline-flex; align-items: center;
  background: #f0e8d8; border-radius: 9px;
  padding: 3px 10px; margin-bottom: 8px;
  font-size: 10px; font-weight: 700;
  color: #8a6030; letter-spacing: .06em;
}

/* 命盘结构区 */
.aip-struct-details { margin: 0 0 8px; }
.aip-struct-summary {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; list-style: none; padding: 4px 0 8px;
}
.aip-struct-summary::-webkit-details-marker { display: none; }
.aip-struct-summary::before {
  content: '▸'; font-size: 11px; color: #b0957e;
  line-height: 1; transition: transform .18s ease;
}
.aip-struct-details[open] .aip-struct-summary::before { transform: rotate(90deg); }
.aip-struct-summary-label {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  border-radius: 8px;
  background: #f5ede0; color: #7a5c40;
  font-size: 12px; font-weight: 600;
  transition: background .15s;
}
.aip-struct-summary:hover .aip-struct-summary-label { background: #ede4d4; }

/* 速览区容器 */
.aip-struct {
  margin: 0 0 2px;
  border: 1px solid #e6dbce; border-radius: 10px;
  overflow: hidden; font-size: 11.5px;
  background: #fffdfa;
}

/* 单行内联：主星 + 小星在同一行 */
.aip-inline-val { flex: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.aip-inline-val > span:first-child { font-size: 12px; font-weight: 600; color: #3d302b; }
.aip-inline-min { font-size: 10.5px; color: #9a7a60; }
.aip-inline-min:empty { display: none; }
/* 每行 */
.aip-struct-row {
  display: flex; align-items: flex-start;
  gap: 8px; padding: 8px 11px;
  border-bottom: 1px solid #f2ece4;
}
.aip-struct-row:last-child { border-bottom: none; }
/* label 列：固定宽度，顶部对齐，与主星首行垂直居中 */
.aip-struct-label {
  flex-shrink: 0; width: 30px;
  font-size: 10px; font-weight: 600;
  color: #a08878; letter-spacing: .04em;
  padding-top: 3px;   /* 让文字与主星视觉居中 */
  line-height: 1.4;
}
/* value 列（旧兼容）*/
.aip-struct-val {
  flex: 1; color: #3d302b; font-size: 11.5px; line-height: 1.55;
  word-break: break-all;
}
/* 宫位内容容器：主星 + 小星两行 */
.aip-struct-palace { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.aip-palace-maj    { font-size: 12px; font-weight: 600; color: #3d302b; line-height: 1.5; }
.aip-palace-min    { font-size: 10.5px; color: #9a7a60; line-height: 1.4; }
.aip-palace-min:empty { display: none; }
/* 命宫行：比三方行略重 */
.aip-struct-life-row { background: #faf5ee; }
.aip-struct-life-row .aip-struct-label { color: #7a4e2a; font-weight: 700; }
.aip-struct-life-row .aip-palace-maj   { font-size: 13px; color: #2d2218; }
/* AI 补充行（格局/破格）—— 浅背景区分 */
.aip-struct-row.aip-struct-ai {
  background: #fdf8f2;
}
.aip-struct-row.aip-struct-ai .aip-struct-label { color: #7a5c4a; }
/* 格局标签 */
.aip-pattern-tag {
  display: inline-block; font-size: 10px;
  background: #eef5ea; color: #4a6a3a;
  padding: 1px 7px; border-radius: 9px;
  margin: 1px 3px 1px 0;
}
/* 破格标签 */
.aip-break-tag {
  display: inline-block; font-size: 10px;
  background: rgba(150,61,50,.07); color: #7a3020;
  padding: 1px 7px; border-radius: 9px;
  margin: 1px 3px 1px 0;
}
/* 速览区与 body 之间的分割线 */
.aip-struct-divider {
  border: none; border-top: 1px solid #ede6dc; margin: 10px 0 4px;
}

/* 主卡 AI 按钮区 — 已生成时变绿 */
.aip-main-card .aip-card-ai-btn.done    { background: #296637; }
.aip-main-card .aip-card-ai-btn.loading { background: #854c10; }
.aip-footer-note { text-align: center; font-size: 11px; color: #c0b4aa; padding: 14px 0 0; }

.aip-ai-bar   { display: flex; align-items: center; gap: 12px; margin-top: 18px; justify-content: center; }
.aip-ai-btn   { background: linear-gradient(135deg, #7a3b2e 0%, #b05a3a 100%);
                color: #fff5ec; font-size: 13px; font-weight: bold;
                border: none; border-radius: 22px; padding: 9px 28px;
                cursor: pointer; letter-spacing: 0.05em; transition: opacity .15s; }
.aip-ai-btn:hover   { opacity: .88; }
.aip-ai-btn:disabled { opacity: .5; cursor: default; }
.aip-ai-status { font-size: 12px; color: #7a5c4a; }
.aip-card-ai-bar { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.aip-card-ai-btn { background: linear-gradient(135deg, #7a3b2e 0%, #b05a3a 100%);
                   color: #fff5ec; font-size: 13px; font-weight: bold;
                   border: none; border-radius: 22px; padding: 8px 24px;
                   cursor: pointer; letter-spacing: 0.05em; transition: opacity .15s; }
.aip-card-ai-btn:hover    { opacity: .88; }
.aip-card-ai-btn:disabled { opacity: .5; cursor: default; }

/* ── 大限流年 新版选择器 ──────────────────────────────────── */
#dlx-wrap { width: 100%; }
.dlx-section { margin-bottom: 16px; }
.dlx-section-label { font-size: 11px; color: #9c8878; letter-spacing: .08em; margin-bottom: 8px; }
.dlx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dlx-overview-list { display: grid; gap: 8px; margin-top: 8px; }
.dlx-focus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 190, 160, .35);
  border-radius: 14px;
  background: rgba(88, 63, 35, .18);
}
.dlx-focus-toolbar b {
  display: block;
  color: #ead2a8;
  font-size: 13px;
}
.dlx-focus-toolbar span {
  display: block;
  margin-top: 2px;
  color: #9c8878;
  font-size: 11px;
}
.dlx-show-all-btn,
.dlx-decade-toggle-btn,
.dlx-range-batch-btn,
.dlx-inline-year-ai-btn {
  border: 1px solid rgba(201, 169, 97, .35);
  border-radius: 999px;
  background: rgba(201, 169, 97, .12);
  color: #d8bd82;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.dlx-show-all-btn { padding: 7px 12px; }
.dlx-decade-toggle-btn,
.dlx-range-batch-btn { padding: 6px 12px; }
.dlx-range-batch-btn {
  background: linear-gradient(135deg, #7a3b2e 0%, #b05a3a 100%);
  border-color: rgba(255, 230, 190, .18);
  color: #fff5ec;
}
.dlx-show-all-btn:hover,
.dlx-decade-toggle-btn:hover,
.dlx-inline-year-ai-btn:hover { background: rgba(201, 169, 97, .2); }
.dlx-range-batch-btn:hover { opacity: .9; }
.dlx-range-batch-btn:disabled,
.dlx-inline-year-ai-btn:disabled { opacity: .55; cursor: default; }
.dlx-focus-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(201, 169, 97, .14);
  color: #d8bd82;
  font-size: 11px;
  font-weight: 900;
}
.dlx-focus-current .dlx-focus-label {
  background: rgba(176, 90, 58, .28);
  color: #ffe0c7;
}
.dlx-inline-years {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(201, 169, 97, .22);
}
.dlx-inline-year {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(201, 169, 97, .18);
  border-radius: 14px;
  background: rgba(255, 246, 228, .035);
}
.dlx-inline-year.active {
  border-color: rgba(201, 169, 97, .55);
  background: rgba(201, 169, 97, .12);
}
.dlx-inline-year.done {
  border-color: rgba(87, 135, 82, .38);
}
.dlx-inline-year-select {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.dlx-inline-year-age {
  color: #f2dfbd;
  font-size: 13px;
  font-weight: 900;
}
.dlx-inline-year-sub {
  color: #7f6e5c;
  font-size: 10px;
}
.dlx-inline-year-preview {
  min-height: 30px;
  color: #a89878;
  font-size: 10px;
  line-height: 1.45;
}
.dlx-inline-year-ai-btn {
  justify-self: start;
  padding: 4px 9px;
  font-size: 11px;
}
.dlx-inline-year-detail {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 169, 97, .28);
  border-radius: 14px;
  background: rgba(255, 246, 228, .045);
}
.dlx-inline-year-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #f2dfbd;
  font-size: 13px;
  font-weight: 900;
}
.dlx-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(200, 185, 162, .48);
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f0e6 0%, #fffaf3 100%);
}
.dlx-nav-mid { text-align: center; min-width: 0; }
.dlx-nav-title { font-size: 18px; font-weight: 800; color: #4a2d20; letter-spacing: .02em; }
.dlx-nav-sub { margin-top: 2px; font-size: 11px; color: #9c8878; }
.dlx-nav-btn {
  border: 1px solid #d4c4b2;
  background: #fffaf3;
  color: #744538;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.dlx-nav-btn:hover:not(:disabled) { background: #7a3b2e; border-color: #7a3b2e; color: #fff5ec; }
.dlx-nav-btn:disabled { opacity: .38; cursor: default; }
.dlx-bottom-batch-card { margin-top: 16px; border-style: dashed; }

/* ── 大运卡片 ── */
.dlx-overview-item {
  position: relative;
  border: 1px solid rgba(200, 185, 162, .55);
  background: #fefaf3;
  border-radius: 10px;
  padding: 14px 16px 12px 20px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.dlx-overview-item::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 3px; height: calc(100% - 20px);
  background: #cdb89a;
  border-radius: 2px;
}
.dlx-overview-item:hover:not(.active) {
  border-color: rgba(200, 168, 120, .45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.dlx-overview-item.active {
  background: #1e1409;
  border-color: #c9a878;
  box-shadow: 0 4px 20px rgba(200, 168, 120, .16);
}
.dlx-overview-item.active::before { background: #c9a878; }
.dlx-overview-item.era-past { background: #f5f2ee; border-color: rgba(190, 178, 162, .5); }
.dlx-overview-item.era-past::before { background: #b8a994; }
.dlx-overview-item.is-loading { border-color: #c8b080; }

/* ── 卡片头部 ── */
.dlx-overview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dlx-title-group { display: flex; flex-direction: column; gap: 2px; }
.dlx-decade-num { font-size: 10px; font-weight: 600; color: #9c8c7c; letter-spacing: .04em; }
.dlx-overview-item.active .dlx-decade-num { color: #c9a878; }
.dlx-overview-item.era-past .dlx-decade-num { color: #a09080; }
.dlx-overview-title { font-size: 16px; font-weight: 700; color: #2e1e14; line-height: 1.2; }
.dlx-overview-item.active .dlx-overview-title { color: #ffe8c4; }
.dlx-overview-item.era-past .dlx-overview-title { color: #6a5244; }

/* ── 状态徽章（4色编码）── */
.dlx-overview-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  border-radius: 11px;
  padding: 3px 10px;
  white-space: nowrap;
}
.dlx-badge-empty   { background: #e9e6e2; color: #857569; }
.dlx-badge-loading { background: #fff0cc; color: #9e5a0a; }
.dlx-badge-done    { background: #d9f0e0; color: #296637; }
.dlx-badge-error   { background: #f9ddd9; color: #8c2920; }

/* ── Meta 行 ── */
.dlx-overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(190, 178, 162, .4);
}
.dlx-overview-item.active .dlx-overview-meta { border-bottom-color: rgba(80, 60, 40, .5); }
.dlx-overview-row { display: flex; flex-direction: column; gap: 2px; min-width: 48px; }
.dlx-overview-label { color: #9c8878; font-size: 10px; white-space: nowrap; }
.dlx-overview-item.active .dlx-overview-label { color: #7a6c5e; }
.dlx-overview-value { color: #3d2b1f; font-size: 12px; }
.dlx-overview-item.active .dlx-overview-value { color: #e0cdb4; }
.dlx-overview-item.era-past .dlx-overview-value { color: #6a5a4e; }

/* ── 星曜徽章 ── */
.dlx-stars-wrap { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding-top: 1px; }
.dlx-star-badge {
  display: inline-flex; align-items: center;
  border-radius: 11px; padding: 2px 7px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.dlx-star-庙 { background: #fded7f; color: #4d3300; }
.dlx-star-旺 { background: #f5e08c; color: #503800; }
.dlx-star-得 { background: #dff2c7; color: #2e5922; }
.dlx-star-利 { background: #d6eafb; color: #1a4d7a; }
.dlx-star-平 { background: #ebe9e6; color: #5a524c; }
.dlx-star-不 { background: #f7e2dd; color: #7a3e34; }
.dlx-star-陷 { background: #f5d0cc; color: #8c2920; }
.dlx-star-default { background: #ebe9e6; color: #5a524c; }

/* ── 三方四正独立行 ── */
.dlx-sanfang-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.dlx-sanfang-value { font-size: 12px; color: #5a4c40; }
.dlx-overview-item.active .dlx-sanfang-value { color: #a09080; }
.dlx-overview-item.era-past .dlx-sanfang-value { color: #7a6c62; }

/* ── 操作区 ── */
.dlx-overview-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dlx-overview-status { font-size: 11px; color: #9c8878; flex: 1; }
.dlx-overview-item.active .dlx-overview-status { color: #7a6c5e; }

/* 批命按钮（状态驱动颜色）*/
.dlx-dayun-ai-btn {
  flex-shrink: 0;
  color: #fff5ec; font-size: 12px; font-weight: 600;
  border: none; border-radius: 14px; padding: 6px 16px;
  cursor: pointer; font-family: inherit; letter-spacing: .02em;
  transition: opacity .15s;
}
.dlx-dayun-ai-btn:hover:not(:disabled) { opacity: .88; }
.dlx-dayun-ai-btn:disabled { opacity: .5; cursor: default; }
.dlx-dayun-ai-btn.state-idle    { background: linear-gradient(135deg, #7a3b2e 0%, #b05a3a 100%); }
.dlx-dayun-ai-btn.state-loading { background: #854c10; }
.dlx-dayun-ai-btn.state-done    { background: #296637; }
.dlx-dayun-ai-btn.state-error   { background: #8c2920; }

/* ── AI 结果体 ── */
.dlx-overview-summary { font-size: 13px; line-height: 1.75; color: #5d4c3f; margin-top: 10px; }
.dlx-overview-item.active .dlx-overview-summary { color: #c8b89a; }
.dlx-overview-risk { margin-top: 8px; font-size: 12px; color: #9b5a4b; padding-left: 8px; border-left: 2px solid #e8c9b0; }
.dlx-overview-item.is-empty .aip-card-body { color: #9c8878; }
.dlx-ai-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  background: #efe3d1;
  color: #8d735e;
  white-space: nowrap;
}
.dlx-ai-score-pill.good { background: #dfead9; color: #2f6b3a; }
.dlx-ai-score-pill.mid { background: #f2e4c6; color: #8a5c12; }
.dlx-ai-score-pill.low { background: #f0d2cb; color: #9b3a31; }
.dlx-ai-score-pill.done { background: #dfead9; color: #2f6b3a; }
.dlx-ai-score-pill.pending { background: #eee7dc; color: #9c8878; }
.dlx-ai-score-box {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 196, 172, .9);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 250, 242, .96), rgba(245, 235, 220, .86));
  color: #5d4c3f;
  font-size: 12px;
  line-height: 1.65;
}
.dlx-ai-score-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.dlx-ai-score-main span { color: #8c7662; }
.dlx-ai-score-main b { font-size: 18px; letter-spacing: .02em; }
.dlx-ai-score-main b.good { color: #2f6b3a; }
.dlx-ai-score-main b.mid { color: #8a5c12; }
.dlx-ai-score-main b.low { color: #9b3a31; }
.dlx-ai-score-main b.pending { color: #9c8878; }
.dlx-ai-score-box > span {
  display: inline-flex;
  margin-right: 10px;
  color: #7b6654;
}
.dlx-ai-score-box em {
  display: block;
  margin-top: 3px;
  color: #8b5b46;
  font-style: normal;
}
.dlx-pill-btn {
  background: #f5f0e8; border: 1px solid #d8ccbc; border-radius: 20px;
  padding: 5px 14px; font-size: 13px; color: #6b4e41; cursor: pointer;
  font-family: inherit; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap; }
.dlx-pill-btn:hover   { background: #ede5d4; border-color: #b8a492; }
.dlx-pill-btn.active  { background: #7a3b2e; border-color: #7a3b2e; color: #fff5ec; font-weight: bold; }
.dlx-year-pills .dlx-pill-btn { padding: 4px 10px; font-size: 12px; }
.dlx-year-pills .dlx-year-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  padding: 5px 8px;
  border-radius: 10px;
  line-height: 1.1;
}
.dlx-year-age { font-size: 12px; font-weight: 800; }
.dlx-year-score {
  font-size: 10px;
  font-weight: 800;
  color: #9c8878;
}
.dlx-year-score.good,
.dlx-year-score-val.good { color: #2a6b42; }
.dlx-year-score.mid,
.dlx-year-score-val.mid { color: #9a6a18; }
.dlx-year-score.low,
.dlx-year-score-val.low { color: #b3443a; }
.dlx-year-score.pending,
.dlx-year-score-val.pending { color: #a89880; }
.dlx-year-pill.active .dlx-year-score { color: rgba(255, 245, 236, .76); }
.dlx-year-score-val {
  font-size: 15px;
  font-weight: 900;
}
.dlx-score-row {
  padding-top: 2px;
  border-top: 1px dashed rgba(210, 196, 181, .55);
}
.dlx-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 8px 0 12px; }
.dlx-info-row  { display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
.dlx-info-label { color: #9c8878; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.dlx-info-val  { color: #3d2b1f; }

@media (max-width: 540px) {
  .aip-mainline-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .aip-wrap { padding: 0 10px; }
  .aip-tab  { font-size: 12px; padding: 7px 14px; }
  .aip-card { padding: 10px 12px; }
  .aip-main-card { padding: 0; }
  .aip-main-hero { padding: 14px 16px 16px; }
  .aip-hero-title { font-size: 18px; }
  .aip-main-body-wrap { padding: 12px 14px 16px; }
  .aip-card-title { font-size: 12px; }
  .aip-card-body  { font-size: 11px; }
  .aip-card-tip   { font-size: 10px; }
  .dlx-focus-toolbar { align-items: flex-start; flex-direction: column; }
  .dlx-inline-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlx-overview-actions { align-items: flex-start; flex-direction: column; }
  .dlx-nav { grid-template-columns: 1fr 1fr; }
  .dlx-nav-mid { grid-column: 1 / -1; grid-row: 1; }
  .dlx-nav-btn { grid-row: 2; }
  .dlx-overview-meta { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   AI 批命调试台（已移除）
   ───────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════
   排盘历史记录弹窗
══════════════════════════════════════════ */
.history-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(30,22,16,.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.history-panel {
  width: 92%; max-width: 480px;
  background: #fdf8f2;
  border-radius: 18px;
  padding: 0;
  max-height: 72vh;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(80,40,10,.22);
}
.history-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(210,196,181,.5);
}
.history-panel-title { font-size: 15px; font-weight: 700; color: #3d302b; }
.history-panel-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: #a09080; line-height: 1; padding: 2px 4px;
}
.history-panel-close:hover { color: #5a3524; }
.history-list {
  overflow-y: auto; flex: 1;
  padding: 8px 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb { background: #d8ccbf; border-radius: 2px; }
.history-empty {
  text-align: center; color: #b0a89f; font-size: 13px; padding: 32px 0;
}
.history-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff9f4; border: 1px solid rgba(210,196,181,.6);
  border-radius: 10px; padding: 10px 12px;
  cursor: pointer; transition: background .12s, border-color .12s;
}
.history-item:hover { background: #fff3e8; border-color: #c8a070; }
.history-item-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #46352d; color: #fff9f1;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.history-item-avatar.female { background: #7a3a5a; }
.history-item-info { flex: 1; min-width: 0; }
.history-item-name { font-size: 14px; font-weight: 700; color: #3d302b; }
.history-item-date { font-size: 12px; color: #8e7a6c; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item-time { font-size: 11px; color: #b0a89f; flex-shrink: 0; text-align: right; }
.history-item-del {
  background: none; border: none; cursor: pointer;
  color: #c0afa0; font-size: 16px; padding: 2px 4px; flex-shrink: 0;
  line-height: 1;
}
.history-item-del:hover { color: #b3443a; }

/* ══════════════════════════════════════════
   天纪推时辰
══════════════════════════════════════════ */
.sc-q { margin-bottom: 14px; }
.sc-q-label { font-size: .85rem; font-weight: 600; color: #4a3f35; margin-bottom: 6px; }
.sc-q-opts { display: flex; flex-direction: column; gap: 5px; }
.sc-opt { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: #4a3f35; cursor: pointer; padding: 5px 8px; border-radius: 7px; transition: background .15s; }
.sc-opt:hover { background: #f0e8de; }
.sc-opt input { accent-color: #7a4f2e; width: 15px; height: 15px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   AI 智能识别聊天区
══════════════════════════════════════════ */
.ai-chat-wrap {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201,169,97,.12);
}
.ai-chat-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #c6b7a6;
  margin-bottom: 12px;
}
.ai-chat-label-icon { color: #c9a961; }
.ai-chat-messages {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 10px;
  max-height: 220px; overflow-y: auto;
}
.ai-chat-messages::-webkit-scrollbar { width: 3px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(201,169,97,.25); border-radius: 2px; }
.ai-msg {
  max-width: 88%; padding: 9px 13px;
  font-size: 13.5px; line-height: 1.65;
}
.ai-msg-ai {
  background: rgba(201,169,97,.08); color: #c6b7a6;
  border-radius: 4px 14px 14px 14px;
  border: 1px solid rgba(201,169,97,.12);
  align-self: flex-start;
}
.ai-msg-ai em { font-style: italic; color: #dec48c; }
.ai-msg-user {
  background: rgba(201,169,97,.18); color: #e8dcc8;
  border-radius: 14px 4px 14px 14px;
  align-self: flex-end;
}
.ai-msg-thinking {
  font-size: 12px; color: #a29482;
  padding: 4px 2px; align-self: flex-start;
}
.ai-chat-input-row {
  display: flex; gap: 8px; align-items: center;
}
.ai-chat-input {
  flex: 1; border: 1px solid rgba(201,169,97,.25); border-radius: 20px;
  padding: 9px 14px; font-size: 13.5px; color: #c6b7a6;
  background: #110d09; outline: none; font-family: inherit;
  transition: border-color .15s;
}
.ai-chat-input:focus { border-color: rgba(201,169,97,.55); }
.ai-chat-input::placeholder { color: #a29482; }
.ai-chat-send {
  background: #c9a961; color: #14100c; border: none; border-radius: 20px;
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: opacity .15s;
  font-family: inherit;
}
.ai-chat-send:hover { opacity: .85; }
.ai-chat-send:disabled { opacity: .4; cursor: default; }
.ai-chat-tip {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #a29482;
}
.ai-chat-divider {
  text-align: center; font-size: 12px; color: #a29482;
  margin: 0 0 16px; letter-spacing: .04em;
}

/* ══════════════════════════════════════════
   AI 确认弹窗
══════════════════════════════════════════ */
.ai-confirm-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(30,22,16,.58);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ai-confirm-card {
  background: #fdf8f2; border-radius: 18px;
  padding: 24px 22px; max-width: 340px; width: 100%;
  box-shadow: 0 8px 40px rgba(80,40,10,.28);
}
.ai-confirm-title {
  font-size: 16px; font-weight: 700; color: #2e221a;
  margin-bottom: 18px; text-align: center;
}
.ai-confirm-rows {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 22px;
  background: #f8f3eb; border-radius: 10px; padding: 14px 16px;
}
.ai-confirm-row {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; color: #3d302b;
}
.ai-confirm-label { color: #9a8878; min-width: 52px; flex-shrink: 0; }
.ai-confirm-value { font-weight: 600; color: #2e221a; }
.ai-confirm-btns { display: flex; gap: 10px; }
.ai-confirm-cancel {
  flex: 1; background: none; border: 1.5px solid #d8ccbf; border-radius: 24px;
  padding: 11px; font-size: 14px; color: #5a4a3a; cursor: pointer;
  font-family: inherit; transition: border-color .15s;
}
.ai-confirm-cancel:hover { border-color: #9a6a4a; }
.ai-confirm-ok {
  flex: 2; background: #5a3824; color: #fff5ec; border: none; border-radius: 24px;
  padding: 11px; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: opacity .15s;
}
.ai-confirm-ok:hover { opacity: .88; }

/* ══════════════════════════════════════════
   AI半仙 聊天面板
══════════════════════════════════════════ */

/* 角色卡 */
.chat-role-card { padding: 18px 18px 14px; }
.chat-role-head { display: flex; align-items: center; gap: 14px; }
.chat-role-avatar {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, #5a2518, #8c3d2a);
  color: #e8c87a; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px rgba(201,169,97,.45), 0 0 16px rgba(201,169,97,.15);
  letter-spacing: -.5px;
}
.chat-role-info { flex: 1; min-width: 0; }
.chat-role-name   { font-size: 18px; font-weight: 700; color: #f0e6d8; letter-spacing: .02em; }
.chat-role-tagline { font-size: 12px; color: #a29482; margin-top: 3px; }
.chat-role-status { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.chat-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.04); color: #8a7a6a;
  border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, border-color .2s, color .2s;
}
.chat-badge.chat-badge-ok {
  color: #c9a961; border-color: rgba(201,169,97,.5);
  background: rgba(201,169,97,.12);
}
.chat-badge.chat-badge-stale {
  color: #d49060; border-color: rgba(212,144,96,.4);
  background: rgba(212,144,96,.1);
}
/* 模式徽章：临时会话用橙色 */
#chat-badge-mode.chat-badge-transient {
  color: #e09050; border-color: rgba(224,144,80,.45);
  background: rgba(224,144,80,.1);
}
.chat-role-tip {
  margin-top: 12px; font-size: 12px; color: #8a7a6a; line-height: 1.55;
  border-left: 2px solid rgba(122,59,46,.4);
  padding: 5px 10px;
}
.chat-role-tools {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chat-mini-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,169,97,.32);
  background: rgba(201,169,97,.08);
  color: #d7c2a2;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.chat-mini-btn:hover:not(:disabled) { background: rgba(201,169,97,.16); border-color: rgba(201,169,97,.5); }
.chat-mini-btn:disabled { opacity: .4; cursor: not-allowed; }
.chat-role-tools-note {
  font-size: 12px;
  color: #7a6a5a;
  line-height: 1.5;
}
.chat-context-preview {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,169,97,.18);
  background: #1a130c;
  color: #c8b89a;
  font-size: 13px;
  line-height: 1.75;
}
/* 折角装饰 */
.chat-context-preview::before {
  content: '已读命盘';
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: rgba(201,169,97,.7);
  margin-bottom: 8px;
}
.chat-context-preview::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(225deg, rgba(201,169,97,.25) 50%, transparent 50%);
}
.chat-memory-sources {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chat-memory-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: #7a6a5a;
  font-size: 11.5px;
  line-height: 1.2;
}
/* 已读：金色 */
.chat-memory-source.is-ready {
  background: rgba(201,169,97,.08);
  border-color: rgba(201,169,97,.38);
  color: #c9a961;
}
.chat-memory-source.is-ready::before { content: '✓ '; }
.chat-memory-source.is-demand {
  background: rgba(120,100,60,.06);
  border-color: rgba(150,130,80,.25);
  color: #7a6a4a;
}
.chat-memory-source.is-demand::before { content: '○ '; }
.chat-memory-source.is-used {
  background: rgba(132, 66, 48, .08);
  border-color: rgba(132, 66, 48, .34);
  color: #844230;
}
.chat-memory-source.is-used::before { content: '✓ '; }
.chat-background-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid rgba(201,169,97,.18);
  color: #7a6a5a;
  background: rgba(201,169,97,.06);
}
.chat-background-status.is-working {
  color: #b88f55;
  border-color: rgba(201,169,97,.35);
  background: rgba(201,169,97,.08);
}
.chat-background-status.is-ok {
  color: #8c6f3d;
  border-color: rgba(170,140,80,.28);
  background: rgba(160,134,78,.08);
}
.chat-background-status.is-warn {
  color: #b27254;
  border-color: rgba(210,136,96,.28);
  background: rgba(210,136,96,.08);
}
.chat-starters {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-starter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122,59,46,.38);
  background: rgba(122,59,46,.1);
  color: #d4b898;
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, border-color .18s, color .18s;
}
.chat-starter-btn:hover:not(:disabled) {
  background: #7a3b2e;
  border-color: #7a3b2e;
  color: #fff5ec;
}
.chat-starter-btn:disabled { opacity: .4; cursor: not-allowed; }

/* 载入进度条 */
#chat-loading-bar {
  display: none; height: 2px; border-radius: 2px; margin-bottom: 8px;
  background: linear-gradient(90deg, #7a3b2e 0%, #c9a961 50%, #7a3b2e 100%);
  background-size: 200% 100%;
  animation: chat-bar-slide 1.4s linear infinite;
}
@keyframes chat-bar-slide { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* 消息列表 */
.chat-messages {
  min-height: 240px; max-height: 420px;
  overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 0;
  scroll-behavior: smooth;
}
.chat-msg {
  display: flex; align-items: flex-start; gap: 8px;
  animation: chat-fade-in .2s ease;
}
@keyframes chat-fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.chat-msg-assistant { flex-direction: row; }
.chat-msg-user      { flex-direction: row-reverse; }
.chat-msg-system    { justify-content: center; }

.chat-sender {
  font-size: 11px; color: #7a6a5a;
  flex-shrink: 0; margin-top: 5px;
  align-self: flex-start; white-space: nowrap;
}
/* 许半仙气泡：深墨棕 + 左侧金色竖线 */
.chat-bubble {
  background: #1e1409; border: 1px solid rgba(201,169,97,.16);
  border-left: 3px solid rgba(201,169,97,.6);
  border-radius: 2px 14px 14px 2px;
  padding: 10px 14px; font-size: 14px; line-height: 1.72;
  color: #e0ccb0; max-width: 80%;
  word-break: break-word;
}
/* 用户气泡：宣纸底色，右对齐 */
.chat-bubble-user {
  background: linear-gradient(180deg, rgba(255,250,244,.96) 0%, rgba(247,238,227,.96) 100%);
  border: 1px solid rgba(201,169,97,.28);
  border-left: none;
  border-right: 3px solid rgba(122,59,46,.56);
  border-radius: 14px 2px 2px 14px;
  color: #7a4638;
  box-shadow: 0 6px 16px rgba(62,34,16,.06);
}
.chat-sys-msg {
  font-size: 12px; color: #8a7a6a; text-align: center;
  padding: 4px 14px; background: rgba(201,169,97,.06);
  border: 1px solid rgba(201,169,97,.1);
  border-radius: 999px;
}
.chat-err { color: #c06060; background: rgba(200,60,60,.09); }
.chat-setup {
  color: #d09f6f;
  background: rgba(160,104,44,.12);
  border: 1px solid rgba(201,169,97,.18);
  border-radius: 12px;
  padding: 10px 14px;
  line-height: 1.75;
}

/* 输入区 */
.chat-input-bar { display: flex; gap: 10px; align-items: flex-end; }
.chat-input {
  flex: 1; background: #1a1108; border: 1px solid rgba(201,169,97,.2);
  border-radius: 12px; padding: 10px 14px; color: #e8d8c4;
  font-size: 14px; font-family: inherit; resize: none; outline: none;
  line-height: 1.55; transition: border-color .2s, box-shadow .2s;
}
.chat-input:focus {
  border-color: rgba(201,169,97,.5);
  box-shadow: 0 0 0 3px rgba(201,169,97,.07);
}
.chat-input::placeholder { color: #5a4a3a; }
.chat-send-btn {
  padding: 10px 20px; background: #6a3226;
  color: #fff5ec; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  align-self: flex-end; font-family: inherit;
  transition: background .18s, box-shadow .18s;
  letter-spacing: .03em;
}
.chat-send-btn:hover:not(:disabled) {
  background: #7a3b2e;
  box-shadow: 0 4px 14px rgba(122,59,46,.35);
}
.chat-send-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ===== 许半仙 Figma 定稿刷新 ===== */
#aip-panel-chat {
  --xb-gold: #c9a878;
  --xb-bg-0: #110d0a;
  --xb-bg-1: #1a1612;
  --xb-bg-2: #241e18;
  --xb-text: #efe1cf;
  --xb-muted: #cfbda5;
  --xb-soft: #897762;
}

#aip-panel-chat .aip-card,
#aip-panel-chat .xb-starters-bar,
#aip-panel-chat .xb-composer {
  background: var(--xb-bg-1);
  border: 1px solid rgba(201, 168, 120, .15);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

#aip-panel-chat .xb-hero {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#aip-panel-chat .xb-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

#aip-panel-chat .xb-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--xb-bg-2);
  border: 1px solid rgba(201, 168, 120, .32);
  color: var(--xb-gold);
  font-size: 24px;
  font-weight: 700;
}

#aip-panel-chat .xb-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#aip-panel-chat .xb-name {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--xb-text);
  letter-spacing: .02em;
}

#aip-panel-chat .xb-tagline {
  margin-top: 6px;
  color: var(--xb-muted);
  font-size: 13px;
  line-height: 1.6;
}

#aip-panel-chat .chat-badge {
  background: rgba(201, 168, 120, .08);
  border: 1px solid rgba(201, 168, 120, .18);
  color: var(--xb-soft);
}

#aip-panel-chat .chat-badge.chat-badge-ok {
  background: rgba(201, 168, 120, .12);
  border-color: rgba(201, 168, 120, .34);
  color: var(--xb-gold);
}

#aip-panel-chat #chat-badge-mode.chat-badge-transient,
#aip-panel-chat .chat-badge.chat-badge-stale {
  background: rgba(201, 168, 120, .1);
  border-color: rgba(201, 168, 120, .24);
  color: #d3bb96;
}

#aip-panel-chat .xb-quota {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--xb-bg-2);
  border: 1px solid rgba(201, 168, 120, .14);
}

#aip-panel-chat .xb-quota-label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--xb-soft);
}

#aip-panel-chat .xb-quota-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--xb-text);
}

#aip-panel-chat .xb-quota-upgrade {
  display: none !important;
}

#aip-panel-chat .xb-insight,
#aip-panel-chat .xb-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--xb-bg-2);
  border: 1px solid rgba(201, 168, 120, .12);
  border-radius: 18px;
}

#aip-panel-chat .xb-insight {
  justify-content: space-between;
}

#aip-panel-chat .xb-memory-drawer {
  border: 1px solid rgba(201, 168, 120, .12);
  border-radius: 18px;
  background: var(--xb-bg-2);
  overflow: hidden;
}

#aip-panel-chat .xb-memory-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

#aip-panel-chat .xb-memory-summary::-webkit-details-marker {
  display: none;
}

#aip-panel-chat .xb-memory-summary-label {
  color: var(--xb-muted);
  font-size: 13px;
  font-weight: 600;
}

#aip-panel-chat .xb-memory-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 14px;
}

#aip-panel-chat .xb-insight-body {
  flex: 1;
  min-width: 0;
}

#aip-panel-chat .xb-insight-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#aip-panel-chat .xb-insight-title {
  color: var(--xb-gold);
  font-size: 12px;
  font-weight: 700;
}

#aip-panel-chat .xb-insight-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--xb-gold);
  flex-shrink: 0;
}

#aip-panel-chat .chat-context-preview {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--xb-muted);
  font-size: 13px;
  line-height: 1.8;
}

#aip-panel-chat .chat-context-preview::before,
#aip-panel-chat .chat-context-preview::after {
  content: none;
  display: none;
}

#aip-panel-chat .chat-context-preview strong {
  color: var(--xb-gold);
  font-weight: 600;
}

#aip-panel-chat .xb-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 120, .18);
  background: transparent;
  color: var(--xb-gold);
  cursor: pointer;
  font: inherit;
}

#aip-panel-chat .xb-refresh:disabled {
  opacity: .45;
  cursor: not-allowed;
}

#aip-panel-chat .chat-memory-sources {
  margin: 0;
  gap: 8px;
}

#aip-panel-chat .chat-memory-source {
  background: transparent;
  border-color: rgba(201, 168, 120, .12);
  color: var(--xb-soft);
}

#aip-panel-chat .chat-memory-source.is-ready {
  background: rgba(201, 168, 120, .08);
  border-color: rgba(201, 168, 120, .26);
  color: var(--xb-gold);
}
#aip-panel-chat .chat-memory-source.is-demand {
  background: transparent;
  border-color: rgba(150, 130, 80, .15);
  color: rgba(150, 130, 80, .6);
}

#aip-panel-chat .chat-memory-source.is-used {
  background: rgba(132, 66, 48, .14);
  border-color: rgba(178, 112, 82, .42);
  color: #e4c3a4;
}

#aip-panel-chat .chat-memory-source.is-ready::before {
  content: '✓ ';
}

#aip-panel-chat .chat-memory-source.is-used::before {
  content: '✓ ';
}

#aip-panel-chat .xb-bg-status {
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(201, 168, 120, .06);
  border: 1px solid rgba(201, 168, 120, .12);
}

#aip-panel-chat .xb-starters-bar {
  order: 20;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#aip-panel-chat .xb-starters-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--xb-soft);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: none;
  flex-shrink: 0;
}

#aip-panel-chat .xb-starters-kicker span:last-child {
  font-size: 0;
  line-height: 0;
}

#aip-panel-chat .xb-starters-kicker span:last-child::after {
  content: '常用快捷问答';
  font-size: 12px;
  line-height: 1;
}

#aip-panel-chat .xb-starters-glyph {
  font-size: 12px;
}

#aip-panel-chat .xb-starters {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

#aip-panel-chat .xb-starter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 120, .16);
  background: var(--xb-bg-2);
  color: var(--xb-text);
  font-size: 13px;
}

#aip-panel-chat .xb-starter:hover:not(:disabled) {
  background: rgba(201, 168, 120, .12);
  border-color: rgba(201, 168, 120, .3);
  color: #fff7ee;
}

#aip-panel-chat .xb-starter-icon {
  color: var(--xb-gold);
  font-size: 11px;
}

#aip-panel-chat .xb-starters-tip {
  display: none;
}

#aip-panel-chat #chat-loading-bar {
  margin: 4px 0 14px;
  background: linear-gradient(90deg, rgba(201, 168, 120, .28) 0%, var(--xb-gold) 50%, rgba(201, 168, 120, .28) 100%);
}

#aip-panel-chat .xb-conversation {
  padding: 6px;
  background: var(--xb-bg-1);
}

#aip-panel-chat .chat-messages {
  min-height: 420px;
  max-height: 680px;
  padding: 22px 24px;
  gap: 18px;
}

#aip-panel-chat .chat-msg {
  width: 100%;
  gap: 12px;
}

#aip-panel-chat .chat-msg-assistant {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  justify-items: start;
}

#aip-panel-chat .chat-msg-assistant::before {
  content: '仙';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--xb-bg-2);
  border: 1px solid rgba(201, 168, 120, .22);
  color: var(--xb-gold);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
  grid-column: 1;
  grid-row: 1 / span 2;
}

#aip-panel-chat .chat-msg-assistant .chat-sender {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 4px;
  color: var(--xb-gold);
  font-size: 12px;
  letter-spacing: .04em;
}

#aip-panel-chat .chat-msg-assistant .chat-bubble {
  grid-column: 2;
  grid-row: 2;
  max-width: min(78%, 780px);
  padding: 13px 16px;
  border: 1px solid rgba(201, 168, 120, .14);
  border-radius: 8px 18px 18px 18px;
  background: linear-gradient(180deg, rgba(40, 31, 23, .96) 0%, rgba(28, 22, 16, .98) 100%);
  color: var(--xb-text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  line-height: 1.84;
  position: relative;
}

#aip-panel-chat .chat-msg-assistant .chat-bubble::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: rgba(38, 29, 22, .98);
  border-left: 1px solid rgba(201, 168, 120, .14);
  border-bottom: 1px solid rgba(201, 168, 120, .14);
  transform: rotate(45deg);
}

#aip-panel-chat .chat-msg-user {
  justify-content: flex-end;
  padding-left: 56px;
}

#aip-panel-chat .chat-msg-user .chat-sender {
  display: none;
}

#aip-panel-chat .chat-bubble-user {
  max-width: min(74%, 760px);
  margin-left: auto;
  padding: 13px 16px;
  border: 1px solid rgba(233, 207, 154, .28);
  border-radius: 18px 8px 18px 18px;
  background: linear-gradient(180deg, #e3c183 0%, #cfa35f 100%);
  color: #2a1a0d;
  box-shadow: 0 12px 28px rgba(163, 115, 39, .22);
  position: relative;
}

#aip-panel-chat .chat-bubble-user::after {
  content: '';
  position: absolute;
  top: 12px;
  right: -7px;
  width: 12px;
  height: 12px;
  background: #d5ab68;
  border-right: 1px solid rgba(233, 207, 154, .28);
  border-top: 1px solid rgba(233, 207, 154, .28);
  transform: rotate(45deg);
}

#aip-panel-chat .chat-sys-msg {
  color: var(--xb-soft);
  background: rgba(201, 168, 120, .06);
  border-color: rgba(201, 168, 120, .08);
}

#aip-panel-chat .xb-composer {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

#aip-panel-chat .xb-input-pill {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 120, .18);
  background: var(--xb-bg-1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}

#aip-panel-chat .xb-input {
  min-height: 24px;
  max-height: 160px;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: var(--xb-text);
}

#aip-panel-chat .xb-input:focus {
  border: none;
  box-shadow: none;
}

#aip-panel-chat .xb-input::placeholder {
  color: #766756;
}

#aip-panel-chat .xb-send {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
  background: var(--xb-gold);
  color: var(--xb-bg-0);
  box-shadow: 0 10px 24px rgba(201, 168, 120, .18);
}

#aip-panel-chat .xb-send:hover:not(:disabled) {
  background: #d5b687;
  box-shadow: 0 14px 28px rgba(201, 168, 120, .22);
}

#aip-panel-chat .xb-send:disabled {
  opacity: .38;
  box-shadow: none;
}

#aip-panel-chat .xb-composer-hint {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--xb-soft);
  font-size: 12px;
}

#aip-panel-chat .xb-dot {
  color: rgba(201, 168, 120, .45);
}

@media (max-width: 768px) {
  .chat-role-head { align-items: flex-start; }
  .chat-role-status { width: 100%; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .chat-input-bar { flex-direction: column; align-items: stretch; }
  .chat-send-btn { width: 100%; }

  #aip-panel-chat .xb-head {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  #aip-panel-chat .xb-quota {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  #aip-panel-chat .xb-memory-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  #aip-panel-chat .chat-bubble-user {
    max-width: 88%;
  }

  #aip-panel-chat .chat-msg-assistant .chat-bubble {
    max-width: 88%;
  }

  #aip-panel-chat .xb-starters-bar {
    align-items: flex-start;
  }

  #aip-panel-chat .xb-starters {
    flex-basis: 100%;
  }

  #aip-panel-chat .xb-input-pill {
    border-radius: 24px;
    align-items: center;
  }
}

/* ══════════════════════════════════════════
   命书解读区 — 深色主题升级 (Round 2)
   覆盖上方所有 aip-* / dlx-* 浅色默认值
══════════════════════════════════════════ */

/* ── 整体容器 ── */
#aip-section {
  background: transparent !important;
  border-top: 1px solid rgba(201,169,97,.12) !important;
  padding: 0 0 48px !important;
}
.aip-wrap { max-width: 1320px !important; padding: 0 24px !important; }

/* ── 顶部信息栏 ── */
.aip-head { padding: 24px 0 14px !important; }
.aip-badge {
  background: linear-gradient(135deg, #7a3b2e 0%, #b05a3a 100%) !important;
  color: #fff5ec !important;
  font-size: 11px !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  letter-spacing: .08em !important;
  box-shadow: 0 2px 8px rgba(122,59,46,.3) !important;
}
.aip-desc { font-size: 12px !important; color: #6b5c4a !important; }

/* ── 标签栏 ── */
.aip-tabs-guide {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px !important;
  padding: 13px 18px;
  border: 1px solid rgba(201,169,97,.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(201,169,97,.16), transparent 42%),
    linear-gradient(135deg, rgba(201,169,97,.09), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 34px rgba(0,0,0,.18);
  overflow: hidden;
}
.aip-tabs-guide::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,225,148,.44), transparent);
}
.aip-tabs-guide-tag {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a3b2e 0%, #b05a3a 100%);
  color: #fff5ec;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 8px 18px rgba(122,59,46,.26);
}
.aip-tabs-guide-title {
  color: #fff0c9;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .03em;
  min-width: 0;
}
.aip-tabs-guide-copy {
  color: #c9ad77;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.aip-tabs {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  border-bottom: none !important;
  margin-bottom: 22px !important;
}
.aip-tab {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 116px;
  padding: 20px 22px 18px !important;
  border: 1px solid rgba(201,169,97,.16) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 42%),
    radial-gradient(circle at top right, rgba(201,169,97,.10), transparent 36%),
    #171009 !important;
  color: #8e7758 !important;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 26px rgba(0,0,0,.16);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease !important;
}
.aip-tab::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(201,169,97,.22);
}
.aip-tab-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #6f5f4c;
}
.aip-tab-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #e4d4bc;
}
.aip-tab-sub {
  font-size: 14px;
  line-height: 1.45;
  color: #927d61;
}
.aip-tab-action {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 13px;
  border: 1px solid rgba(201,169,97,.36);
  border-radius: 999px;
  background: rgba(201,169,97,.10);
  color: #f0ce80;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.aip-tab.active {
  border-color: rgba(201,169,97,.42) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 42%),
    radial-gradient(circle at top right, rgba(201,169,97,.16), transparent 42%),
    #201408 !important;
  box-shadow: 0 14px 34px rgba(201,169,97,.14), inset 0 1px 0 rgba(255,255,255,.05);
}
.aip-tab.active::before { background: #d7b063; }
.aip-tab.active .aip-tab-kicker { color: #d0a85c; }
.aip-tab.active .aip-tab-title { color: #ffe8c4; }
.aip-tab.active .aip-tab-sub { color: #d0b182; }
.aip-tab.active .aip-tab-action {
  border-color: rgba(255,231,171,.14);
  background: linear-gradient(135deg, #7a3b2e 0%, #b05a3a 100%);
  color: #fff5ec;
}
.aip-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(201,169,97,.44) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.28), 0 0 0 1px rgba(201,169,97,.08);
}
.aip-tab:hover .aip-tab-action {
  border-color: rgba(255,225,148,.58);
  background: rgba(201,169,97,.22);
  color: #ffe8a6;
  transform: translateX(3px);
}
.aip-tab:active {
  transform: translateY(0) scale(.985);
}
.aip-tab:focus-visible {
  outline: 2px solid rgba(255,225,148,.7);
  outline-offset: 3px;
}

/* ── 卡片基础 ── */
.aip-panel { gap: 12px !important; }
.aip-card {
  background: #1a1208 !important;
  border: 1px solid rgba(201,169,97,.12) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  position: relative !important;
  overflow: hidden !important;
}
/* 卡片顶部渐变光边（类首页 card） */
.aip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.25), transparent);
  pointer-events: none;
}

/* ── 通用元素 ── */
.aip-card-head { margin-bottom: 10px !important; }
.aip-tag {
  background: rgba(201,169,97,.1) !important;
  color: #a89878 !important;
  border: 1px solid rgba(201,169,97,.18) !important;
  font-size: 10px !important;
  padding: 2px 9px !important;
  border-radius: 10px !important;
}
.aip-card-title { color: #ede4d4 !important; font-size: 13px !important; }
.aip-card-body  { color: #a89878 !important; font-size: 13px !important; line-height: 1.8 !important; }
.aip-card-body .aip-body-title { color: #c9a961 !important; font-size: 13.5px !important; }
.aip-card-body .aip-body-para  { color: #a89878 !important; }
.aip-card-tip {
  color: #c9a961 !important;
  border-left-color: rgba(201,169,97,.3) !important;
  margin-top: 10px !important;
  font-size: 12px !important;
}

/* ── 整体批命主卡 ── */
.aip-main-card {
  border-color: rgba(201,169,97,.2) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.35) !important;
}
.aip-main-card::before { display: none; }
.aip-main-hero {
  background: linear-gradient(135deg, #150e06 0%, #201208 100%) !important;
  border-radius: 14px 14px 0 0 !important;
  padding: 18px 22px 20px !important;
  border-bottom: 1px solid rgba(201,169,97,.15) !important;
  position: relative !important;
  overflow: hidden !important;
}
.aip-main-hero::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse at 100% 50%, rgba(122,59,46,.15) 0%, transparent 70%);
  pointer-events: none;
}
.aip-hero-tag {
  background: rgba(201,169,97,.15) !important;
  color: #c9a961 !important;
  border: 1px solid rgba(201,169,97,.25) !important;
}
.aip-hero-title { color: #ede4d4 !important; font-size: 24px !important; letter-spacing: .03em !important; }
.aip-main-body-wrap { background: #1a1208 !important; padding: 16px 20px 20px !important; }

/* ── 副卡 ── */
.aip-sub-card {
  background: #160f08 !important;
  border-color: rgba(201,169,97,.1) !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  margin-top: 12px !important;
}
/* 五个专项批命卡统一展示层级：向身宫卡靠齐，避免颜色体系杂乱 */
.aip-shen-card,
.aip-hunyin-card,
.aip-jiankang-card,
.aip-caiyun-card,
.aip-shiye-card,
.aip-tiekou-card {
  background:
    linear-gradient(180deg, rgba(30,20,10,.98) 0%, rgba(20,14,8,.98) 100%) !important;
  border: 1px solid rgba(201,169,97,.13) !important;
  box-shadow: inset 0 1px 0 rgba(255,235,190,.035) !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  column-gap: 16px !important;
  row-gap: 12px !important;
  align-items: center !important;
}

.aip-sub-card .aip-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.aip-sub-card .aip-card-title {
  color: #ede4d4 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.aip-sub-card .aip-card-ai-bar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: flex-end !important;
  margin: 0 !important;
}

.aip-sub-card .aip-card-ai-btn {
  min-width: 150px !important;
  height: 34px !important;
  padding: 0 18px !important;
  border-radius: 18px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  background: linear-gradient(135deg, #7a3b2e 0%, #a95036 100%) !important;
  color: #fff5ec !important;
  box-shadow: 0 7px 18px rgba(122,59,46,.22) !important;
}

.aip-sub-card .aip-card-ai-btn:hover:not(:disabled) {
  opacity: .92 !important;
  transform: translateY(-1px) !important;
}

.aip-sub-card .aip-sub-struct-details {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
}

.aip-sub-card .aip-sub-struct-details .aip-struct-summary {
  padding: 0 !important;
}

.aip-sub-card .aip-sub-struct-details .aip-struct-summary-label {
  height: 28px !important;
  padding: 0 12px !important;
  font-size: 11px !important;
}

.aip-sub-card .aip-sub-struct {
  margin-top: 10px !important;
  background: rgba(10, 7, 4, .38) !important;
  border-color: rgba(201,169,97,.12) !important;
}

.aip-sub-card .aip-sub-struct .aip-struct-label {
  width: 42px !important;
}

.aip-sub-card .aip-sub-struct .aip-struct-row {
  padding: 8px 10px !important;
}

.aip-sub-card .aip-ai-status,
.aip-sub-card .aip-card-ai-status {
  color: #6b5c4a !important;
  font-size: 11.5px !important;
}

.aip-sub-card .aip-card-body {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(201,169,97,.08) !important;
  color: #a89878 !important;
  font-size: 13px !important;
  line-height: 1.82 !important;
}

.aip-sub-card .aip-card-body:empty {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
}

.aip-sub-card .aip-card-tip {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  color: #9b7b52 !important;
  border-left-color: rgba(201,169,97,.24) !important;
  background: transparent !important;
  font-size: 12px !important;
}

.aip-sub-card .aip-card-tip:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
}

/* 五个专项标签统一为身宫的金色体系 */
.aip-shen-tag,
.aip-hunyin-tag,
.aip-jiankang-tag,
.aip-caiyun-tag,
.aip-shiye-tag {
  background: rgba(201,169,97,.12) !important;
  color: #c9a961 !important;
  border: 1px solid rgba(201,169,97,.2) !important;
  font-size: 10px !important;
  padding: 2px 9px !important;
  border-radius: 10px !important;
}

.tiekou-intro-card {
  border-color: rgba(201,169,97,.18) !important;
  background:
    linear-gradient(135deg, rgba(201,169,97,.08), rgba(122,59,46,.08)),
    #160f08 !important;
}

.tiekou-summary {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(201,169,97,.08) !important;
}

.tiekou-summary-overview {
  color: #d7c3a2 !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
}

.tiekou-summary-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.tiekou-summary-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(201,169,97,.14) !important;
  background: rgba(255,255,255,.02) !important;
  color: #a89878 !important;
  font-size: 11px !important;
}

.tiekou-summary-pill strong {
  color: #e6d5b7 !important;
  font-weight: 700 !important;
}

.tiekou-summary-pill em {
  font-style: normal !important;
  color: inherit !important;
}

.tiekou-summary-pill.is-idle {
  color: #7f6d59 !important;
}

.tiekou-summary-pill.is-running {
  color: #c9a961 !important;
  border-color: rgba(201,169,97,.28) !important;
  background: rgba(201,169,97,.08) !important;
}

.tiekou-summary-pill.is-done {
  color: #d8c19a !important;
  border-color: rgba(144,181,120,.22) !important;
  background: rgba(144,181,120,.08) !important;
}

.tiekou-summary-pill.is-empty {
  color: #af987a !important;
  border-color: rgba(175,152,122,.2) !important;
  background: rgba(175,152,122,.08) !important;
}

.tiekou-summary-pill.is-error {
  color: #d79083 !important;
  border-color: rgba(180,60,50,.22) !important;
  background: rgba(180,60,50,.08) !important;
}

.tiekou-test-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.tiekou-test-flow {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.tiekou-group-banner {
  order: 0;
  flex: 0 0 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(201,169,97,.1) !important;
  background: rgba(255,255,255,.02) !important;
}

.tiekou-group-banner-tag {
  display: inline-flex !important;
  align-items: center !important;
  height: 24px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: rgba(201,169,97,.1) !important;
  color: #c9a961 !important;
  font-size: 10px !important;
  border: 1px solid rgba(201,169,97,.18) !important;
  white-space: nowrap !important;
}

.tiekou-group-banner-title {
  color: #ede4d4 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.tiekou-group-banner-desc {
  color: #8f785b !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.tiekou-card-order-1 { order: 1 !important; }
.tiekou-card-order-2 { order: 2 !important; }
.tiekou-card-order-3 { order: 3 !important; }
.tiekou-group-banner-public { order: 4 !important; }
.tiekou-card-order-4 { order: 5 !important; }
.tiekou-card-order-5 { order: 6 !important; }
.tiekou-card-order-6 { order: 7 !important; }
.tiekou-group-banner-final { order: 8 !important; }
.tiekou-card-order-7 { order: 9 !important; }

.aip-tiekou-card {
  flex: 1 1 calc(33.333% - 12px) !important;
  min-width: 280px !important;
  min-height: 185px !important;
}

.tiekou-card-final {
  flex-basis: 100% !important;
}

.aip-tiekou-card .aip-card-body {
  min-height: 64px !important;
}

.aip-tiekou-card .aip-card-tip {
  color: #8f785b !important;
}

@media (max-width: 720px) {
  .aip-shen-card,
  .aip-hunyin-card,
  .aip-jiankang-card,
  .aip-caiyun-card,
  .aip-shiye-card,
  .aip-tiekou-card {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }

  .aip-sub-card .aip-card-ai-bar {
    justify-content: flex-start !important;
  }

  .aip-sub-card .aip-card-ai-btn {
    width: 100% !important;
  }

  .tiekou-test-grid {
    grid-template-columns: 1fr !important;
  }

  .tiekou-test-flow {
    flex-direction: column !important;
  }

  .tiekou-group-banner {
    align-items: flex-start !important;
    flex-direction: column !important;
    padding: 12px !important;
    gap: 6px !important;
  }

  .aip-tiekou-card,
  .tiekou-card-final {
    min-width: 0 !important;
    flex-basis: 100% !important;
  }
}

/* ── 深度报告：付费报告样式预览 ── */
.report-panel {
  align-items: center !important;
}

.report-stage {
  width: min(100%, 980px);
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  background: #f8f6f1;
  color: #343230;
  border: 1px solid rgba(234, 202, 146, .7);
  box-shadow:
    0 24px 70px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.report-topbar {
  min-height: 86px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  background: #fffdf9;
  border-bottom: 1px solid #ece5d9;
}

.report-icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #2f2f2f;
  font-size: 40px;
  line-height: 1;
}

.report-icon-btn:last-child {
  font-size: 34px;
  letter-spacing: 2px;
}

.report-title-wrap {
  min-width: 0;
  text-align: center;
}

.report-title {
  color: #24282d;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.18;
}

.report-subtitle {
  margin-top: 5px;
  color: #b08a55;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.report-mode-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px 28px 18px;
  background: #f8f6f1;
  border-bottom: 1px solid #eee6d8;
}

.report-mode {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #343230;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 500;
  white-space: nowrap;
}

.report-mode-year {
  background: linear-gradient(90deg, #df5d8c, #e9a52d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.report-mode.active {
  background: #fff3df;
  color: #b7864d;
}

.report-mode.locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.report-mode.locked::before {
  content: none;
}

.report-lock-mark {
  position: relative;
  width: .82em;
  height: .62em;
  border: 2px solid currentColor;
  border-radius: .16em;
  box-sizing: border-box;
}

.report-lock-mark::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% - 1px);
  width: .48em;
  height: .38em;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: .42em .42em 0 0;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.report-paper {
  margin: 18px 30px 26px;
  padding: 38px 42px 30px;
  border: 2px solid #f1d59d;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(226,154,52,.12), transparent 34%) 0 164px / 100% 76px no-repeat,
    #fffdfa;
  box-shadow:
    0 10px 28px rgba(91,63,34,.08),
    inset 0 0 0 1px rgba(255,255,255,.7);
}

.report-paper-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid #efd49d;
}

.report-paper-kicker {
  display: block;
  margin-bottom: 7px;
  color: #c18b42;
  font-size: 12px;
  letter-spacing: .18em;
}

.report-paper h2 {
  margin: 0;
  color: #60401f;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-weight: 800;
}

.report-refresh-btn {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #d49436;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 500;
}

.report-block {
  margin-top: 30px;
}

.report-block h3 {
  margin: 0 0 22px;
  padding: 12px 0 12px 24px;
  border-left: 5px solid #df9932;
  color: #60401f;
  background: linear-gradient(90deg, rgba(227,151,45,.16), transparent 72%);
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.1;
}

.report-block p {
  margin: 0 0 20px;
  color: #3f3f3f;
  font-size: clamp(22px, 3.5vw, 36px);
  line-height: 2.05;
  font-weight: 400;
}

.report-block strong {
  color: #5d3d1e;
  font-weight: 900;
}

.report-grid-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 6px;
}

.report-grid-block > div {
  padding: 22px 22px 12px;
  border: 1px solid #f0d7a6;
  border-radius: 16px;
  background: #fffaf0;
}

.report-grid-block h3 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3.6vw, 40px);
}

.report-grid-block p {
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.85;
}

.report-paper-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #efd49d;
  color: #b98a46;
  font-size: 13px;
  letter-spacing: .12em;
}

.report-askbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 30px 28px;
  padding: 12px 14px 12px 28px;
  border: 2px solid #f1d19a;
  border-radius: 999px;
  background: #fffdfa;
  box-shadow: 0 8px 20px rgba(91,63,34,.08);
}

.report-askbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3b3b3b;
  font-size: 24px;
}

.report-askbar input::placeholder {
  color: #b9b0a6;
}

.report-askbar button {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #65421e;
  color: #fffaf2;
  font-size: 27px;
  line-height: 1;
}

@media (max-width: 720px) {
  .report-stage {
    width: calc(100% + 4px);
    margin: 0 -2px;
    border-radius: 18px;
  }

  .report-topbar {
    min-height: 68px;
    grid-template-columns: 38px 1fr 38px;
    padding: 0 14px;
  }

  .report-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 32px;
  }

  .report-subtitle {
    display: none;
  }

  .report-mode-row {
    gap: 8px;
    padding: 18px 10px 14px;
  }

  .report-mode {
    min-height: 42px;
    font-size: 17px;
    border-radius: 10px;
  }

  .report-paper {
    margin: 8px 10px 20px;
    padding: 26px 18px 24px;
    border-radius: 14px;
  }

  .report-paper-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .report-paper h2 {
    font-size: 42px;
  }

  .report-refresh-btn {
    font-size: 18px;
  }

  .report-block {
    margin-top: 24px;
  }

  .report-block h3 {
    font-size: 31px;
    margin-bottom: 18px;
    padding-left: 18px;
  }

  .report-block p {
    font-size: 24px;
    line-height: 2.05;
  }

  .report-grid-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .report-grid-block p {
    font-size: 22px;
  }

  .report-paper-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-askbar {
    margin: 0 10px 18px;
    padding: 9px 10px 9px 18px;
  }

  .report-askbar input {
    font-size: 20px;
  }

  .report-askbar button {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}

/* ── 风险/依据区 ── */
.aip-life-risk {
  color: #d4786a !important;
  background: rgba(180,60,50,.1) !important;
  border-color: rgba(180,60,50,.25) !important;
}
.aip-life-basis { color: #6b5c4a !important; border-left-color: rgba(201,169,97,.2) !important; }

/* ── 命格速览 ── */
.aip-section-label {
  background: rgba(201,169,97,.1) !important;
  color: #c9a961 !important;
  border: 1px solid rgba(201,169,97,.18) !important;
  border-radius: 9px !important;
  font-size: 10px !important;
}
.aip-struct-summary::before { color: #c9a961 !important; }
.aip-struct-summary-label {
  background: rgba(201,169,97,.1) !important;
  color: #a89878 !important;
  border: 1px solid rgba(201,169,97,.15) !important;
  font-size: 12px !important;
}
.aip-struct-summary:hover .aip-struct-summary-label {
  background: rgba(201,169,97,.18) !important;
  color: #c9a961 !important;
}
.aip-struct {
  background: #150e06 !important;
  border-color: rgba(201,169,97,.12) !important;
}
.aip-struct-row { border-bottom-color: rgba(201,169,97,.08) !important; }
.aip-struct-label { color: #6b5c4a !important; }
.aip-struct-val { color: #ede4d4 !important; }
.aip-palace-maj { color: #ede4d4 !important; }
.aip-palace-min { color: #6b5c4a !important; }
.aip-inline-val > span:first-child { color: #ede4d4 !important; }
.aip-inline-min { color: #6b5c4a !important; }
.aip-struct-life-row { background: rgba(201,169,97,.06) !important; }
.aip-struct-life-row .aip-struct-label { color: #c9a961 !important; }
.aip-struct-life-row .aip-palace-maj { color: #ede4d4 !important; }
.aip-struct-row.aip-struct-ai { background: rgba(255,255,255,.02) !important; }
.aip-struct-row.aip-struct-ai .aip-struct-label { color: #a89878 !important; }
.aip-struct-badge-row { background: rgba(201,169,97,.06) !important; border-top-color: rgba(201,169,97,.12) !important; }
.aip-struct-badge-row .aip-struct-label { color: #c9a961 !important; }
.aip-struct-badge-row .aip-struct-val { color: #ede4d4 !important; }
.aip-struct-divider { border-top-color: rgba(201,169,97,.1) !important; }
.aip-pattern-tag { background: rgba(60,160,100,.1) !important; color: #6dc48a !important; }
.aip-break-tag   { background: rgba(180,60,50,.1)  !important; color: #d4786a !important; }

/* ── mainline note ── */
.aip-mainline-note {
  background: rgba(201,169,97,.06) !important;
  border-color: rgba(201,169,97,.15) !important;
}
.aip-mainline-tag { background: rgba(201,169,97,.15) !important; color: #c9a961 !important; }
.aip-mainline-copy { color: #6b5c4a !important; }

/* ── 整体批命阅读层级重构 ── */
.aip-overall-panel {
  gap: 18px !important;
}

.aip-overall-panel .aip-main-card {
  overflow: hidden !important;
  border-radius: 18px !important;
  border-color: rgba(201,169,97,.24) !important;
  background: linear-gradient(180deg, rgba(35,24,12,.98), rgba(18,12,7,.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,235,190,.04),
    0 18px 44px rgba(0,0,0,.3) !important;
}

.aip-overall-panel .aip-main-hero {
  min-height: 116px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 22px 26px !important;
  background:
    linear-gradient(115deg, rgba(26,18,9,.98) 0%, rgba(34,20,10,.98) 58%, rgba(63,25,14,.9) 100%) !important;
}

.aip-overall-panel .aip-main-card-head {
  margin-bottom: 12px !important;
}

.aip-overall-panel .aip-hero-title {
  max-width: 760px !important;
  color: #fff2d8 !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

.aip-overall-panel .aip-main-body-wrap {
  display: grid !important;
  grid-template-columns: minmax(250px, 32%) minmax(0, 1fr) !important;
  gap: 18px !important;
  padding: 20px !important;
  background:
    linear-gradient(180deg, rgba(24,16,8,.96), rgba(17,11,6,.98)) !important;
}

.aip-main-structure-pane,
.aip-main-result-pane {
  min-width: 0 !important;
}

.aip-main-structure-pane {
  align-self: start !important;
  padding: 12px !important;
  border: 1px solid rgba(201,169,97,.1) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.018) !important;
}

.aip-main-structure-pane .aip-struct-details {
  margin: 0 !important;
}

.aip-main-structure-pane .aip-struct-summary {
  padding: 0 !important;
}

.aip-main-structure-pane .aip-struct-summary-label {
  width: 100% !important;
  justify-content: center !important;
  height: 34px !important;
}

.aip-main-structure-pane .aip-struct {
  margin-top: 12px !important;
  border-radius: 12px !important;
}

.aip-main-result-pane {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.aip-main-result-pane .aip-struct-divider {
  display: none !important;
}

.aip-main-result-pane > .aip-card-ai-bar {
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid rgba(201,169,97,.1) !important;
}

.aip-main-result-pane #aip-overall-btn {
  min-width: 168px !important;
  height: 38px !important;
  padding: 0 22px !important;
}

.aip-main-result-pane #aip-life-body:not(:empty) {
  padding: 18px 20px !important;
  border: 1px solid rgba(201,169,97,.11) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.026) !important;
  color: #d4c3a8 !important;
  font-size: 14px !important;
  line-height: 1.92 !important;
}

.aip-main-result-pane #aip-life-body:empty {
  display: none !important;
}

.aip-main-result-pane #aip-life-tip:empty,
.aip-main-result-pane #aip-life-risk:empty,
.aip-main-result-pane #aip-life-basis:empty {
  display: none !important;
}

.aip-main-result-pane .aip-life-risk,
.aip-main-result-pane .aip-life-basis {
  margin-top: 0 !important;
  border-radius: 12px !important;
}

.aip-specialty-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.aip-specialty-grid .aip-shen-card {
  grid-column: 1 / -1 !important;
}

.aip-specialty-grid .aip-sub-card {
  margin-top: 0 !important;
  min-height: 168px !important;
  align-items: start !important;
  align-content: start !important;
  padding: 18px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(31,21,11,.96), rgba(18,12,7,.98)) !important;
}

.aip-specialty-grid .aip-sub-card .aip-card-title {
  white-space: normal !important;
  line-height: 1.4 !important;
}

.aip-specialty-grid .aip-sub-card .aip-card-body:not(:empty) {
  padding: 12px 0 0 12px !important;
  border-top: 0 !important;
  border-left: 1px solid rgba(201,169,97,.16) !important;
  color: #d2bf9f !important;
}

.aip-specialty-grid .aip-sub-card .aip-card-tip:not(:empty) {
  padding: 0 0 0 12px !important;
  border-left-width: 1px !important;
}

.aip-specialty-grid .aip-sub-card .aip-sub-struct-details {
  opacity: .72 !important;
}

.aip-specialty-grid .aip-sub-card .aip-sub-struct-details[open] {
  opacity: 1 !important;
}

@media (max-width: 900px) {
  .aip-overall-panel .aip-main-body-wrap {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .aip-overall-panel .aip-main-hero {
    min-height: 96px !important;
    padding: 18px !important;
  }

  .aip-overall-panel .aip-hero-title {
    font-size: 24px !important;
  }

  .aip-overall-panel .aip-main-body-wrap {
    padding: 14px !important;
    gap: 14px !important;
  }

  .aip-main-result-pane > .aip-card-ai-bar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .aip-main-result-pane #aip-overall-btn {
    width: 100% !important;
  }

  .aip-specialty-grid {
    grid-template-columns: 1fr !important;
  }

  .aip-specialty-grid .aip-sub-card {
    min-height: 0 !important;
  }
}

/* ── 整体批命 V8：命格主卡 + 操作薄条 + 紧凑卡组 ── */
.aip-overall-panel {
  gap: 16px !important;
}

.aip-overall-panel .aip-main-card {
  position: relative !important;
  overflow: visible !important;
  border-radius: 14px !important;
  border-color: rgba(201,169,97,.24) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.aip-overall-panel .aip-main-card::before {
  display: none !important;
}

.aip-overall-panel .aip-main-hero {
  min-height: 142px !important;
  padding: 28px 30px !important;
  border: 1px solid rgba(201,169,97,.28) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(110deg, rgba(28,18,9,.98) 0%, rgba(26,16,8,.98) 54%, rgba(76,31,18,.72) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,235,190,.04) !important;
}

.aip-overall-panel .aip-hero-title {
  max-width: 680px !important;
  color: #fff1d6 !important;
  font-size: 34px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

.aip-overall-panel .aip-main-body-wrap {
  display: block !important;
  padding: 14px 0 0 !important;
  background: transparent !important;
}

.aip-main-structure-pane {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.aip-main-structure-pane .aip-struct-details {
  margin: 0 !important;
}

.aip-main-structure-pane .aip-struct-summary {
  min-height: 48px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(201,169,97,.22) !important;
  border-radius: 10px !important;
  background: rgba(70,49,26,.54) !important;
}

.aip-main-structure-pane .aip-struct-summary-label {
  width: auto !important;
  min-width: 128px !important;
  height: 30px !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.035) !important;
}

.aip-main-structure-pane .aip-struct {
  margin-top: 10px !important;
  border-radius: 10px !important;
}

.aip-main-result-pane {
  display: block !important;
}

.aip-main-result-pane > .aip-card-ai-bar {
  position: absolute !important;
  top: 52px !important;
  right: 30px !important;
  display: flex !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.aip-main-result-pane #aip-overall-btn {
  min-width: 156px !important;
  height: 38px !important;
  padding: 0 22px !important;
  border-radius: 19px !important;
  box-shadow: 0 12px 22px rgba(122,59,46,.24) !important;
}

.aip-main-result-pane .aip-ai-status {
  align-self: center !important;
}

.aip-main-result-pane #aip-life-body:not(:empty) {
  margin-top: 16px !important;
  padding: 24px 28px !important;
  border: 1px solid rgba(201,169,97,.2) !important;
  border-radius: 12px !important;
  background: rgba(13,9,5,.74) !important;
  color: #ead9bd !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

.aip-main-result-pane #aip-life-body .aip-body-title {
  color: #e8c878 !important;
  font-size: 15px !important;
  margin: 18px 0 8px !important;
}

.aip-main-result-pane #aip-life-tip:not(:empty) {
  margin-top: 12px !important;
  padding-left: 12px !important;
  border-left-width: 2px !important;
  color: #c9a961 !important;
}

.aip-main-result-pane .aip-life-risk,
.aip-main-result-pane .aip-life-basis {
  margin-top: 12px !important;
}

.aip-specialty-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.aip-specialty-grid .aip-shen-card {
  grid-column: auto !important;
}

.aip-specialty-grid .aip-sub-card {
  min-height: 0 !important;
  margin-top: 0 !important;
  padding: 16px !important;
  border-radius: 12px !important;
  align-items: start !important;
  background:
    linear-gradient(180deg, rgba(30,20,10,.94), rgba(17,11,6,.98)) !important;
  border-color: rgba(201,169,97,.2) !important;
  box-shadow: none !important;
}

.aip-specialty-grid .aip-sub-card .aip-card-head {
  align-self: center !important;
}

.aip-specialty-grid .aip-sub-card .aip-card-title {
  font-size: 16px !important;
  color: #f1e4cd !important;
}

.aip-specialty-grid .aip-sub-card .aip-card-ai-bar {
  align-self: center !important;
}

.aip-specialty-grid .aip-sub-card .aip-card-ai-btn {
  min-width: 112px !important;
  width: auto !important;
  height: 32px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

.aip-specialty-grid .aip-sub-card .aip-sub-struct-details {
  grid-column: 1 / -1 !important;
  opacity: .62 !important;
}

.aip-specialty-grid .aip-sub-card .aip-sub-struct-details[open] {
  opacity: 1 !important;
}

.aip-specialty-grid .aip-sub-card .aip-sub-struct-details .aip-struct-summary-label {
  height: 28px !important;
  padding: 0 10px !important;
  background: rgba(201,169,97,.08) !important;
}

.aip-specialty-grid .aip-sub-card .aip-card-body:not(:empty) {
  grid-column: 1 / -1 !important;
  padding: 10px 0 0 12px !important;
  border-top: 0 !important;
  border-left: 1px solid rgba(201,169,97,.18) !important;
  color: #d9c6a7 !important;
  font-size: 13px !important;
  line-height: 1.82 !important;
}

.aip-specialty-grid .aip-sub-card .aip-card-tip:not(:empty) {
  grid-column: 1 / -1 !important;
  padding-left: 12px !important;
  border-left-width: 1px !important;
}

@media (max-width: 1120px) {
  .aip-specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .aip-overall-panel .aip-main-hero {
    min-height: 116px !important;
    padding: 20px !important;
  }

  .aip-overall-panel .aip-hero-title {
    font-size: 30px !important;
    padding-right: 0 !important;
  }

  .aip-main-result-pane > .aip-card-ai-bar {
    position: static !important;
    margin-top: 12px !important;
  }

  .aip-main-result-pane #aip-overall-btn {
    width: 100% !important;
  }

  .aip-main-result-pane #aip-life-body:not(:empty) {
    padding: 18px !important;
    font-size: 14px !important;
  }

  .aip-specialty-grid {
    grid-template-columns: 1fr !important;
  }

  .aip-specialty-grid .aip-sub-card {
    grid-template-columns: 1fr !important;
  }

  .aip-specialty-grid .aip-sub-card .aip-card-ai-bar {
    justify-content: stretch !important;
    width: 100% !important;
  }

  .aip-specialty-grid .aip-sub-card .aip-card-ai-btn {
    width: 100% !important;
  }
}

/* ── 大限流年 ── */
.dlx-section-label { color: #6b5c4a !important; }
.dlx-nav {
  background: linear-gradient(135deg, #1c1509 0%, #221a0c 100%) !important;
  border-color: rgba(201,169,97,.2) !important;
}
.dlx-nav-title { color: #ede4d4 !important; }
.dlx-nav-sub { color: #6b5c4a !important; }
.dlx-nav-btn {
  background: rgba(201,169,97,.08) !important;
  border-color: rgba(201,169,97,.2) !important;
  color: #a89878 !important;
}
.dlx-nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #7a3b2e 0%, #b05a3a 100%) !important;
  border-color: #b05a3a !important;
  color: #fff5ec !important;
}
.dlx-bottom-batch-card { border-color: rgba(201,169,97,.15) !important; }

/* ── 大运卡片 ── */
.dlx-overview-item {
  background: #1a1208 !important;
  border-color: rgba(201,169,97,.12) !important;
}
.dlx-overview-item::before { background: rgba(201,169,97,.3) !important; }
.dlx-overview-item:hover:not(.active) {
  border-color: rgba(201,169,97,.25) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.3) !important;
}
.dlx-overview-item.active {
  background: #201408 !important;
  border-color: rgba(201,169,97,.4) !important;
  box-shadow: 0 4px 20px rgba(201,169,97,.08) !important;
}
.dlx-overview-item.active::before { background: #c9a961 !important; }
.dlx-overview-item.era-past { background: #150f08 !important; border-color: rgba(201,169,97,.07) !important; }
.dlx-overview-item.era-past::before { background: rgba(201,169,97,.2) !important; }
.dlx-decade-num { color: #6b5c4a !important; }
.dlx-overview-item.active .dlx-decade-num { color: #c9a961 !important; }
.dlx-overview-title { color: #ede4d4 !important; }
.dlx-overview-item.active .dlx-overview-title { color: #ede4d4 !important; }
.dlx-overview-item.era-past .dlx-overview-title { color: #6b5c4a !important; }
.dlx-overview-label { color: #6b5c4a !important; }
.dlx-overview-item.active .dlx-overview-label { color: #6b5c4a !important; }
.dlx-overview-value { color: #a89878 !important; }
.dlx-overview-item.active .dlx-overview-value { color: #ede4d4 !important; }
.dlx-overview-item.era-past .dlx-overview-value { color: #4a3d34 !important; }
.dlx-overview-meta { border-bottom-color: rgba(201,169,97,.1) !important; }
.dlx-overview-item.active .dlx-overview-meta { border-bottom-color: rgba(201,169,97,.15) !important; }
.dlx-sanfang-value { color: #a89878 !important; }

/* ── 星曜徽章（强度4色）── */
.dlx-star-庙 { background: rgba(220,168,40,.2) !important; color: #d4a832 !important; }
.dlx-star-旺 { background: rgba(220,168,40,.15) !important; color: #c9a440 !important; }
.dlx-star-得 { background: rgba(60,160,100,.12) !important; color: #6dc48a !important; }
.dlx-star-利 { background: rgba(60,140,220,.1)  !important; color: #6aaad4 !important; }
.dlx-star-平 { background: rgba(255,255,255,.05) !important; color: #6b5c4a !important; }
.dlx-star-不 { background: rgba(180,60,50,.1)   !important; color: #d4786a !important; }
.dlx-star-陷 { background: rgba(180,60,50,.15)  !important; color: #c05a50 !important; }
.dlx-star-default { background: rgba(255,255,255,.05) !important; color: #6b5c4a !important; }

/* ── 状态徽章 ── */
.dlx-badge-empty   { background: rgba(255,255,255,.05) !important; color: #6b5c4a !important; }
.dlx-badge-loading { background: rgba(220,168,40,.12)  !important; color: #c9a440 !important; }
.dlx-badge-done    { background: rgba(60,160,100,.12)  !important; color: #6dc48a !important; }
.dlx-badge-error   { background: rgba(180,60,50,.12)   !important; color: #d4786a !important; }

/* ── 大限流年选择 pill ── */
.dlx-pills .dlx-pill,
.dlx-pills [class*="dlx-pill"] {
  background: rgba(201,169,97,.08) !important;
  border: 1px solid rgba(201,169,97,.15) !important;
  color: #a89878 !important;
  border-radius: 20px !important;
}
.dlx-pills .dlx-pill.active,
.dlx-pills .dlx-pill-active {
  background: rgba(201,169,97,.2) !important;
  border-color: rgba(201,169,97,.4) !important;
  color: #c9a961 !important;
}
.dlx-info-grid { color: #a89878 !important; }

/* ── AI 状态文字 ── */
.aip-ai-status, .aip-card-ai-status { color: #6b5c4a !important; }
.aip-footer-note { color: #4a3d34 !important; }

/* 打字动画 */
.chat-typing-dots {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 6px 8px;
}
.chat-typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c9a961; opacity: .55;
  animation: typing-blink .9s ease-in-out infinite;
}
.chat-typing-dots span:nth-child(2) { animation-delay: .18s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes typing-blink {
  0%, 80%, 100% { transform: scale(.75); opacity: .4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ── 三段大运分层配色 ── */
.dlx-focus-card {
  --dlx-tone-bg: #1a1208;
  --dlx-tone-bg-active: #22160a;
  --dlx-tone-border: rgba(201, 169, 97, .16);
  --dlx-tone-border-strong: rgba(201, 169, 97, .28);
  --dlx-tone-border-active: rgba(201, 169, 97, .42);
  --dlx-tone-stripe: rgba(201, 169, 97, .34);
  --dlx-tone-stripe-active: #d4ac56;
  --dlx-tone-label-bg: rgba(181, 105, 62, .18);
  --dlx-tone-label-border: rgba(214, 161, 104, .24);
  --dlx-tone-label-color: #f0cb93;
  --dlx-tone-title: #f2e5cf;
  --dlx-tone-muted: #a08663;
  --dlx-tone-value: #cbb190;
  --dlx-tone-value-active: #f7ead2;
  --dlx-tone-divider: rgba(201, 169, 97, .12);
  --dlx-tone-inline-bg: rgba(255, 246, 228, .03);
  --dlx-tone-inline-border: rgba(201, 169, 97, .16);
  --dlx-tone-inline-active: rgba(201, 169, 97, .12);
  --dlx-tone-detail-bg: rgba(201, 169, 97, .07);
  --dlx-tone-detail-border: rgba(201, 169, 97, .24);
  --dlx-tone-shadow: rgba(201, 169, 97, .12);
  --dlx-tone-wash: rgba(201, 169, 97, .08);
}

.dlx-focus-past {
  --dlx-tone-bg: #15140f;
  --dlx-tone-bg-active: #1b1913;
  --dlx-tone-border: rgba(129, 154, 116, .18);
  --dlx-tone-border-strong: rgba(143, 169, 129, .30);
  --dlx-tone-border-active: rgba(159, 190, 145, .38);
  --dlx-tone-stripe: rgba(151, 179, 136, .42);
  --dlx-tone-stripe-active: #8faa78;
  --dlx-tone-label-bg: rgba(118, 144, 106, .16);
  --dlx-tone-label-border: rgba(141, 171, 128, .24);
  --dlx-tone-label-color: #b9cca9;
  --dlx-tone-title: #d8dfd2;
  --dlx-tone-muted: #7f8b73;
  --dlx-tone-value: #a9b39d;
  --dlx-tone-value-active: #e0ead9;
  --dlx-tone-divider: rgba(151, 179, 136, .12);
  --dlx-tone-inline-bg: rgba(118, 144, 106, .04);
  --dlx-tone-inline-border: rgba(151, 179, 136, .16);
  --dlx-tone-inline-active: rgba(118, 144, 106, .11);
  --dlx-tone-detail-bg: rgba(122, 146, 110, .06);
  --dlx-tone-detail-border: rgba(151, 179, 136, .22);
  --dlx-tone-shadow: rgba(118, 144, 106, .12);
  --dlx-tone-wash: rgba(118, 144, 106, .09);
}

.dlx-focus-current {
  --dlx-tone-shadow: rgba(201, 169, 97, .14);
  --dlx-tone-wash: rgba(201, 169, 97, .10);
}

.dlx-focus-future {
  --dlx-tone-bg: #12151a;
  --dlx-tone-bg-active: #161c23;
  --dlx-tone-border: rgba(104, 150, 173, .18);
  --dlx-tone-border-strong: rgba(122, 173, 199, .30);
  --dlx-tone-border-active: rgba(126, 182, 212, .42);
  --dlx-tone-stripe: rgba(118, 173, 199, .46);
  --dlx-tone-stripe-active: #7fc4df;
  --dlx-tone-label-bg: rgba(82, 121, 140, .18);
  --dlx-tone-label-border: rgba(124, 171, 194, .24);
  --dlx-tone-label-color: #b9dbe7;
  --dlx-tone-title: #d8ecf3;
  --dlx-tone-muted: #7d97a3;
  --dlx-tone-value: #9eb7c1;
  --dlx-tone-value-active: #e0f2f8;
  --dlx-tone-divider: rgba(118, 173, 199, .14);
  --dlx-tone-inline-bg: rgba(82, 121, 140, .05);
  --dlx-tone-inline-border: rgba(118, 173, 199, .16);
  --dlx-tone-inline-active: rgba(82, 121, 140, .14);
  --dlx-tone-detail-bg: rgba(78, 118, 138, .08);
  --dlx-tone-detail-border: rgba(118, 173, 199, .22);
  --dlx-tone-shadow: rgba(82, 121, 140, .13);
  --dlx-tone-wash: rgba(118, 173, 199, .10);
}

.dlx-overview-item.dlx-focus-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .015), transparent 44%),
    radial-gradient(circle at top right, var(--dlx-tone-wash) 0, transparent 40%),
    var(--dlx-tone-bg) !important;
  border-color: var(--dlx-tone-border) !important;
}

.dlx-overview-item.dlx-focus-card::before {
  background: var(--dlx-tone-stripe) !important;
}

.dlx-overview-item.dlx-focus-card:hover:not(.active) {
  border-color: var(--dlx-tone-border-strong) !important;
  box-shadow: 0 4px 18px var(--dlx-tone-shadow) !important;
}

.dlx-overview-item.dlx-focus-card.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 42%),
    radial-gradient(circle at top right, var(--dlx-tone-wash) 0, transparent 44%),
    var(--dlx-tone-bg-active) !important;
  border-color: var(--dlx-tone-border-active) !important;
  box-shadow: 0 6px 22px var(--dlx-tone-shadow) !important;
}

.dlx-overview-item.dlx-focus-card.active::before {
  background: var(--dlx-tone-stripe-active) !important;
}

.dlx-focus-card .dlx-focus-label {
  background: var(--dlx-tone-label-bg) !important;
  border: 1px solid var(--dlx-tone-label-border) !important;
  color: var(--dlx-tone-label-color) !important;
}

.dlx-overview-item.dlx-focus-card .dlx-decade-num,
.dlx-overview-item.dlx-focus-card .dlx-overview-label,
.dlx-overview-item.dlx-focus-card .dlx-inline-year-sub,
.dlx-overview-item.dlx-focus-card .dlx-overview-status,
.dlx-overview-item.dlx-focus-card .dlx-ai-score-main span,
.dlx-overview-item.dlx-focus-card .dlx-ai-score-box > span {
  color: var(--dlx-tone-muted) !important;
}

.dlx-overview-item.dlx-focus-card .dlx-overview-title,
.dlx-overview-item.dlx-focus-card .dlx-inline-year-age,
.dlx-overview-item.dlx-focus-card .dlx-inline-year-detail-head {
  color: var(--dlx-tone-title) !important;
}

.dlx-overview-item.dlx-focus-card .dlx-overview-value,
.dlx-overview-item.dlx-focus-card .dlx-sanfang-value,
.dlx-overview-item.dlx-focus-card .dlx-overview-summary,
.dlx-overview-item.dlx-focus-card .dlx-inline-year-preview,
.dlx-overview-item.dlx-focus-card .dlx-ai-score-box,
.dlx-overview-item.dlx-focus-card .aip-body-para {
  color: var(--dlx-tone-value) !important;
}

.dlx-overview-item.dlx-focus-card.active .dlx-overview-value,
.dlx-overview-item.dlx-focus-card.active .dlx-sanfang-value,
.dlx-overview-item.dlx-focus-card.active .dlx-overview-summary,
.dlx-overview-item.dlx-focus-card.active .dlx-inline-year-preview,
.dlx-overview-item.dlx-focus-card.active .aip-body-para {
  color: var(--dlx-tone-value-active) !important;
}

.dlx-overview-item.dlx-focus-card .dlx-overview-meta,
.dlx-overview-item.dlx-focus-card .dlx-inline-years {
  border-color: var(--dlx-tone-divider) !important;
}

.dlx-overview-item.dlx-focus-card .dlx-inline-year {
  border-color: var(--dlx-tone-inline-border) !important;
  background: var(--dlx-tone-inline-bg) !important;
}

.dlx-overview-item.dlx-focus-card .dlx-inline-year.active {
  border-color: var(--dlx-tone-border-active) !important;
  background: var(--dlx-tone-inline-active) !important;
}

.dlx-overview-item.dlx-focus-card .dlx-inline-year-detail,
.dlx-overview-item.dlx-focus-card .dlx-ai-score-box {
  border-color: var(--dlx-tone-detail-border) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .02), transparent 55%),
    var(--dlx-tone-detail-bg) !important;
}

.dlx-overview-item.dlx-focus-card .dlx-overview-risk {
  border-left-color: var(--dlx-tone-stripe) !important;
}

.dlx-overview-item.dlx-focus-card .dlx-ai-score-main b.pending {
  color: var(--dlx-tone-muted) !important;
}

#dlx-overview-card > .aip-card-head {
  display: none !important;
}

#dlx-overview-card {
  padding-top: 18px !important;
}

#dlx-overview-list {
  margin-top: 0 !important;
  gap: 16px !important;
}

.dlx-timeline-shell {
  padding: 22px !important;
  border: 1px solid rgba(201,169,97,.18) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at top center, rgba(201,169,97,.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 36%),
    #151009 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.dlx-timeline-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

.dlx-timeline-kicker {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: rgba(201,169,97,.12) !important;
  border: 1px solid rgba(201,169,97,.18) !important;
  color: #d4b372 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

.dlx-timeline-title {
  margin-top: 10px !important;
  color: #f0debd !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: .03em !important;
}

.dlx-timeline-copy {
  margin-top: 6px !important;
  color: #8d7558 !important;
  font-size: 12px !important;
}

.dlx-timeline-track {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1.28fr) 42px minmax(0, 1fr);
  align-items: center !important;
  gap: 12px !important;
}

.dlx-timeline-connector {
  display: block !important;
  height: 2px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(90deg, rgba(126,160,134,.55), rgba(205,170,94,.75), rgba(116,168,193,.58)) !important;
  box-shadow: 0 0 0 6px rgba(201,169,97,.03) !important;
}

.dlx-timeline-node {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 126px !important;
  padding: 16px 18px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(201,169,97,.14) !important;
  background: rgba(255,255,255,.025) !important;
  color: inherit !important;
  font-family: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.dlx-timeline-node:hover {
  transform: translateY(-2px) !important;
}

.dlx-timeline-node.is-current {
  min-height: 152px !important;
  padding: 22px 22px 18px !important;
}

.dlx-timeline-past {
  border-color: rgba(143,169,129,.22) !important;
  background: linear-gradient(180deg, rgba(143,169,129,.08), transparent 62%), #16150f !important;
}

.dlx-timeline-current {
  border-color: rgba(201,169,97,.3) !important;
  background: linear-gradient(180deg, rgba(201,169,97,.12), transparent 62%), #25180c !important;
  box-shadow: 0 12px 32px rgba(201,169,97,.1) !important;
}

.dlx-timeline-future {
  border-color: rgba(118,173,199,.22) !important;
  background: linear-gradient(180deg, rgba(118,173,199,.08), transparent 62%), #13171c !important;
}

.dlx-timeline-node.is-selected {
  box-shadow: 0 0 0 1px rgba(255,238,208,.18), 0 10px 26px rgba(0,0,0,.28) !important;
}

.dlx-timeline-node-label {
  color: #a89172 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

.dlx-timeline-current .dlx-timeline-node-label {
  color: #e6c685 !important;
}

.dlx-timeline-node-age {
  color: #f4e5ca !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

.dlx-timeline-current .dlx-timeline-node-age {
  font-size: 34px !important;
}

.dlx-timeline-node-copy {
  color: #a89478 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.dlx-timeline-node-score {
  margin-top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.04) !important;
  color: #f1dfbe !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.dlx-timeline-node-score.done {
  background: rgba(104, 147, 98, .16) !important;
  color: #dcebd0 !important;
}

.dlx-timeline-node-score.pending {
  background: rgba(255,255,255,.04) !important;
  color: #f1dfbe !important;
}

.dlx-timeline-summary {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 16px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(201,169,97,.1) !important;
  background: rgba(255,255,255,.025) !important;
  flex-wrap: wrap !important;
}

.dlx-timeline-summary-score {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  color: #e9d6b3 !important;
  white-space: nowrap !important;
}

.dlx-timeline-summary-score span {
  color: #927c61 !important;
  font-size: 12px !important;
}

.dlx-timeline-summary-score strong {
  color: #f0dfbf !important;
  font-size: 30px !important;
  line-height: 1 !important;
}

.dlx-timeline-summary-score em {
  color: #8f775a !important;
  font-style: normal !important;
  font-size: 13px !important;
}

.dlx-timeline-summary-copy {
  color: #d4bf9d !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.dlx-timeline-summary-meta {
  color: #867056 !important;
  font-size: 12px !important;
}

.dlx-spotlight-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px !important;
  align-items: start !important;
}

.dlx-spotlight-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.dlx-spotlight-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.dlx-meta-chip {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid var(--dlx-tone-inline-border) !important;
  background: rgba(255,255,255,.03) !important;
  color: var(--dlx-tone-value) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.dlx-spotlight-copy {
  color: var(--dlx-tone-value-active) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.dlx-spotlight-score-box {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 160px !important;
  padding: 18px !important;
  border-radius: 20px !important;
  border: 1px solid var(--dlx-tone-detail-border) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 42%),
    var(--dlx-tone-detail-bg) !important;
  text-align: center !important;
}

.dlx-spotlight-score-box span {
  color: var(--dlx-tone-muted) !important;
  font-size: 12px !important;
}

.dlx-spotlight-score-box strong {
  font-size: 44px !important;
  line-height: 1 !important;
}

.dlx-spotlight-score-box strong.good { color: #85d18f !important; }
.dlx-spotlight-score-box strong.mid  { color: #edc066 !important; }
.dlx-spotlight-score-box strong.low  { color: #df887a !important; }
.dlx-spotlight-score-box strong.done { color: #f0dfbf !important; }
.dlx-spotlight-score-box strong.pending { color: var(--dlx-tone-title) !important; }

.dlx-spotlight-score-box em {
  color: var(--dlx-tone-muted) !important;
  font-style: normal !important;
  font-size: 13px !important;
}

.dlx-spotlight-score-box b {
  color: var(--dlx-tone-value) !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
  font-weight: 600 !important;
}

.dlx-stars-line {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--dlx-tone-divider) !important;
}

.dlx-stars-line .dlx-stars-wrap {
  flex: 1 !important;
}

.dlx-decade-detail {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px dashed var(--dlx-tone-divider) !important;
}

.dlx-decade-detail > summary {
  list-style: none !important;
  cursor: pointer !important;
  color: var(--dlx-tone-label-color) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.dlx-decade-detail > summary::-webkit-details-marker {
  display: none !important;
}

.dlx-decade-detail[open] > summary {
  margin-bottom: 10px !important;
}

.dlx-rest-rail {
  padding: 16px 18px !important;
  border: 1px solid rgba(201,169,97,.12) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.02) !important;
}

.dlx-rest-rail-title {
  color: #d2b27b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

.dlx-rest-rail-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
  margin-top: 12px !important;
}

.dlx-test-score-card {
  margin-top: 18px !important;
  padding: 0 !important;
  border-radius: 22px !important;
  border: 1px solid rgba(201,169,97,.14) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    rgba(22, 16, 11, .92) !important;
  overflow: hidden !important;
}

.dlx-test-score-details {
  display: block !important;
}

.dlx-test-score-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  margin-bottom: 0 !important;
  flex-wrap: wrap !important;
  cursor: pointer !important;
  list-style: none !important;
}

.dlx-test-score-head::-webkit-details-marker {
  display: none !important;
}

.dlx-test-score-details[open] .dlx-test-score-head {
  border-bottom: 1px solid rgba(201,169,97,.12) !important;
}

.dlx-test-score-kicker {
  color: #d4b67d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

.dlx-test-score-title {
  color: #f5e9d2 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.dlx-test-score-copy,
.dlx-test-score-meta {
  color: #9d8462 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}

.dlx-test-score-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 54px !important;
  height: 28px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(201,169,97,.22) !important;
  color: #d7bb82 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.dlx-test-score-details[open] .dlx-test-score-toggle {
  color: #14100c !important;
  background: #c9a961 !important;
  border-color: #c9a961 !important;
}

.dlx-test-score-details[open] .dlx-test-score-toggle::before {
  content: '收起';
}

.dlx-test-score-details[open] .dlx-test-score-toggle {
  font-size: 0 !important;
}

.dlx-test-score-details[open] .dlx-test-score-toggle::before {
  font-size: 12px !important;
}

.dlx-test-score-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px !important;
  padding: 18px !important;
}

.dlx-test-score-chip {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(201,169,97,.16) !important;
  background: rgba(255,255,255,.03) !important;
}

.dlx-test-score-age {
  color: #f2dfbf !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.dlx-test-score-year {
  color: #8c7558 !important;
  font-size: 11px !important;
}

.dlx-test-score-chip strong {
  justify-self: end !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.dlx-test-score-chip.good strong { color: #85d18f !important; }
.dlx-test-score-chip.mid strong { color: #edc066 !important; }
.dlx-test-score-chip.low strong { color: #df887a !important; }
.dlx-test-score-chip.pending strong { color: #b69d7d !important; }

@media (max-width: 960px) {
  .dlx-test-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dlx-test-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dlx-rail-card {
  display: grid !important;
  gap: 4px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(201,169,97,.12) !important;
  border-radius: 16px !important;
  background: #161009 !important;
  color: inherit !important;
  font-family: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
}

.dlx-rail-card.active {
  border-color: rgba(201,169,97,.34) !important;
  background: #1e1409 !important;
}

.dlx-rail-card-top {
  color: #8f795d !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.dlx-rail-card-age {
  color: #f0dfbf !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.dlx-rail-card-copy {
  color: #9b8668 !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
}

.dlx-inline-years {
  gap: 12px !important;
  margin-top: 18px !important;
  padding-top: 18px !important;
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
}

.dlx-inline-year {
  grid-template-rows: 1fr auto !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  min-height: 176px !important;
  position: relative !important;
  z-index: 2 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 174, .03),
    0 16px 34px rgba(0, 0, 0, .18) !important;
}

.dlx-inline-year-trend {
  position: absolute !important;
  left: -1.5% !important;
  top: 132px !important;
  width: 103% !important;
  height: 96px !important;
  pointer-events: none !important;
  z-index: 3 !important;
  opacity: .78 !important;
  mix-blend-mode: screen !important;
}

.dlx-inline-year-trend-glow {
  fill: none !important;
  stroke: rgba(224, 174, 72, .22) !important;
  stroke-width: 13 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: blur(5px) drop-shadow(0 0 16px rgba(238, 190, 82, .45)) !important;
}

.dlx-inline-year-trend-line {
  fill: none !important;
  stroke: rgba(250, 218, 124, .82) !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 0 8px rgba(245, 207, 112, .7)) !important;
}

.dlx-inline-year-trend-dot {
  fill: #f4d985 !important;
  stroke: rgba(74, 49, 18, .85) !important;
  stroke-width: 1.2 !important;
  filter: drop-shadow(0 0 8px rgba(250, 216, 128, .74)) !important;
}

.dlx-inline-year-trend-dot.active {
  fill: #fff2bd !important;
  stroke: #d2a145 !important;
  stroke-width: 1.6 !important;
  filter: drop-shadow(0 0 13px rgba(255, 221, 132, .95)) !important;
}

.dlx-inline-year-select {
  gap: 8px !important;
  align-content: start !important;
}

.dlx-inline-year-top {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.dlx-inline-year-age {
  font-size: 18px !important;
}

.dlx-inline-year-sub {
  font-size: 11px !important;
}

.dlx-inline-year-preview {
  min-height: 54px !important;
  font-size: 11px !important;
  line-height: 1.7 !important;
}

.dlx-inline-year-ai-btn {
  width: 100% !important;
  justify-self: stretch !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  text-align: center !important;
  font-size: 12px !important;
}

.dlx-inline-year-detail {
  margin-top: 14px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
}

@media (max-width: 1180px) {
  .dlx-inline-years {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .dlx-inline-year-trend {
    display: none !important;
  }

  .dlx-rest-rail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .dlx-timeline-track {
    grid-template-columns: 1fr !important;
  }

  .dlx-timeline-connector {
    display: none !important;
  }

  .dlx-spotlight-top {
    grid-template-columns: 1fr !important;
  }

  .dlx-inline-years {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .dlx-timeline-shell {
    padding: 16px !important;
  }

  .dlx-timeline-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .dlx-timeline-title {
    font-size: 28px !important;
  }

  .dlx-timeline-node,
  .dlx-timeline-node.is-current {
    min-height: 0 !important;
  }

  .dlx-inline-years,
  .dlx-rest-rail-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .aip-wrap {
    max-width: 860px !important;
  }

  .aip-tabs-guide {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .aip-tabs-guide-copy {
    white-space: normal;
  }

  .aip-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .aip-wrap {
    padding: 0 14px !important;
  }

  .aip-tabs-guide {
    border-radius: 22px;
    padding: 12px 14px;
  }

  .aip-tabs-guide-title {
    font-size: 17px;
  }

  .aip-tabs {
    display: flex !important;
    gap: 10px;
    margin-right: -14px !important;
    padding: 2px 14px 10px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .aip-tabs::-webkit-scrollbar {
    height: 0;
  }

  .aip-tab {
    flex: 0 0 184px;
    min-height: 112px;
    padding: 16px 15px 14px !important;
    scroll-snap-align: start;
  }
  .aip-tab-title {
    font-size: 20px;
  }
  .aip-tab-sub {
    font-size: 12px;
  }
  .aip-tab-action {
    font-size: 11px;
    padding: 6px 11px;
  }
}

/* 深度报告 V6：Figma 最终落地版 */
.report-panel {
  align-items: flex-start !important;
}

.report-stage {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto;
  padding-bottom: 24px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff6df;
  background:
    radial-gradient(circle at 50% -8%, rgba(210, 160, 72, .22), transparent 34%),
    linear-gradient(180deg, #2a1b0d 0%, #0f0b07 42%, #080604 100%);
  border: 1px solid rgba(230, 190, 105, .72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
}

.report-stage::before {
  content: '';
  position: absolute;
  inset: 118px 24px auto;
  height: 120px;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(230, 190, 105, .22), transparent);
  filter: blur(18px);
}

.report-topbar {
  position: relative;
  z-index: 1;
  min-height: 78px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  background: rgba(37, 24, 12, .88);
  border-bottom: 1px solid rgba(230, 190, 105, .36);
}

.report-icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff3d2;
  font-size: 36px;
  line-height: 1;
}

.report-icon-btn:last-child {
  font-size: 28px;
  letter-spacing: 2px;
}

.report-title {
  color: #fff3d2;
  font-size: clamp(25px, 3.7vw, 36px);
  font-weight: 800;
  letter-spacing: .02em;
}

.report-subtitle {
  margin-top: 4px;
  color: rgba(235, 192, 108, .82);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.report-mode-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 24px 30px 18px;
  background: transparent;
  border-bottom: 0;
}

.report-mode {
  min-height: 44px;
  border: 1px solid rgba(230, 190, 105, .68);
  border-radius: 999px;
  background: rgba(255, 251, 240, .97);
  color: #725235;
  font-size: clamp(14px, 2.4vw, 18px);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.report-mode.active {
  background: linear-gradient(180deg, #fff2cf, #f1c982);
  color: #4e3317;
  border-color: #f2d28e;
  box-shadow: 0 0 22px rgba(229, 176, 82, .22), inset 0 1px 0 rgba(255,255,255,.75);
}

.report-score-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 30px 24px;
  padding: 18px 26px;
  border: 1px solid rgba(230, 190, 105, .8);
  border-radius: 22px;
  background: rgba(20, 13, 7, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.report-score-strip > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.report-score-label {
  color: #e8c679;
  font-size: 14px;
  font-weight: 800;
}

.report-score-num {
  color: #fff7df;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.report-score-unit,
.report-score-copy {
  color: #fff0c9;
  font-size: 16px;
  font-weight: 800;
}

.report-paper {
  position: relative;
  z-index: 1;
  margin: 0 30px 18px;
  padding: 34px 40px 28px;
  overflow: hidden;
  border: 2px solid #f0cf8b;
  border-radius: 22px;
  color: #27211b;
  background:
    radial-gradient(circle at 82% 9%, rgba(216, 165, 72, .11), transparent 13%),
    linear-gradient(90deg, rgba(222, 154, 45, .12), transparent 46%) 0 180px / 100% 68px no-repeat,
    #fffdf8;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}

.report-paper::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2d28e, rgba(242, 210, 142, .25));
}

.report-paper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 18px 18px;
  border-bottom: 2px solid #edd09a;
}

.report-paper-kicker {
  color: #d69a3b;
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 800;
}

.report-paper h2 {
  margin: 10px 0 0;
  color: #5b371a;
  font-size: clamp(42px, 6vw, 58px);
  line-height: 1;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-weight: 900;
}

.report-unlock-badge {
  flex-shrink: 0;
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  color: #5b371a;
  background: #fff0cf;
  border: 1px solid #e8bd6b;
  font-size: 15px;
  font-weight: 900;
}

.report-hero-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  margin: 26px 0 4px;
  padding-left: 18px;
}

.report-summary-card,
.report-toc-card {
  border: 1px solid #edca84;
  border-radius: 16px;
  background: rgba(255, 247, 228, .86);
}

.report-summary-card {
  padding: 18px 20px;
}

.report-summary-card span {
  display: inline-block;
  margin-bottom: 9px;
  color: #6a421f;
  font-size: 22px;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-weight: 900;
}

.report-summary-card p {
  margin: 0;
  color: #3d3329;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 700;
}

.report-toc-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  align-content: center;
  padding: 18px;
}

.report-toc-card strong {
  grid-column: 1 / -1;
  color: #6a421f;
  font-size: 18px;
}

.report-toc-card span {
  color: #7e6a50;
  font-size: 14px;
}

.report-block {
  margin-top: 30px;
  padding-left: 18px;
}

.report-block h3 {
  margin: 0 0 18px;
  padding: 11px 0 11px 22px;
  border-left: 5px solid #df9932;
  color: #60401f;
  background: linear-gradient(90deg, rgba(227,151,45,.16), transparent 72%);
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
}

.report-block p {
  margin: 0 0 16px;
  color: #3f3f3f;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.9;
}

.report-block strong {
  color: #5d3d1e;
  font-weight: 900;
}

.report-grid-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 2px;
}

.report-grid-block > div {
  padding: 22px 22px 12px;
  border: 1px solid #f0d0a0;
  border-radius: 16px;
  background: rgba(255, 248, 235, .9);
}

.report-grid-block h3 {
  margin-bottom: 14px;
  font-size: 30px;
}

.report-grid-block p {
  font-size: 18px;
  line-height: 1.75;
}

.report-paper-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 0 18px;
  padding-top: 18px;
  border-top: 1px solid #efd49d;
  color: #b98a46;
  font-size: 13px;
  letter-spacing: .12em;
}

.report-askbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 30px;
  padding: 10px 12px 10px 22px;
  border: 2px solid #f0cf8b;
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.report-askbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3b3b3b;
  font-size: 18px;
}

.report-askbar input::placeholder {
  color: #a99d8d;
}

.report-askbar button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #65421e;
  color: #fffaf2;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 720px) {
  .report-stage {
    width: calc(100% + 4px);
    margin: 0 -2px;
    border-radius: 18px;
    padding-bottom: 10px;
  }

  .report-topbar {
    min-height: 68px;
    grid-template-columns: 38px 1fr 38px;
    padding: 0 14px;
  }

  .report-title {
    font-size: 25px;
  }

  .report-subtitle {
    display: none;
  }

  .report-mode-row {
    gap: 12px;
    padding: 18px 18px 14px;
  }

  .report-mode {
    min-height: 38px;
    font-size: 14px;
  }

  .report-score-strip {
    margin: 0 18px 22px;
    padding: 14px 20px;
    border-radius: 18px;
  }

  .report-score-label {
    font-size: 13px;
  }

  .report-score-num {
    font-size: 34px;
  }

  .report-score-unit,
  .report-score-copy {
    font-size: 13px;
  }

  .report-paper {
    margin: 0 10px 12px;
    padding: 28px 18px 24px;
    border-radius: 16px;
  }

  .report-paper::before {
    left: 20px;
  }

  .report-paper-head {
    padding-left: 20px;
  }

  .report-paper h2 {
    font-size: 42px;
  }

  .report-unlock-badge {
    padding: 8px 14px;
    font-size: 13px;
  }

  .report-hero-summary {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 20px;
  }

  .report-summary-card {
    padding: 16px 18px;
  }

  .report-summary-card span {
    font-size: 28px;
  }

  .report-summary-card p {
    font-size: 16px;
    line-height: 1.75;
  }

  .report-toc-card {
    grid-template-columns: 1fr 1fr;
    padding: 15px 16px;
  }

  .report-block {
    margin-top: 24px;
    padding-left: 20px;
  }

  .report-block h3 {
    font-size: 31px;
    margin-bottom: 16px;
    padding-left: 18px;
  }

  .report-block p {
    font-size: 20px;
    line-height: 1.82;
  }

  .report-grid-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .report-grid-block p {
    font-size: 18px;
  }

  .report-paper-foot {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 20px;
  }

  .report-askbar {
    margin: 0 10px;
    padding: 9px 10px 9px 18px;
  }

  .report-askbar input {
    font-size: 17px;
  }

  .report-askbar button {
    width: 42px;
    height: 42px;
  }
}

/* 深度报告 V7：付费卷宗感优化 */
.report-panel {
  align-items: flex-start !important;
}

.report-stage {
  isolation: isolate;
  position: relative;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 0 28px;
  overflow: hidden;
  border: 1px solid rgba(232, 200, 112, .72);
  border-radius: 32px;
  color: #fff4ce;
  background:
    radial-gradient(circle at 82% 12%, rgba(189, 94, 45, .18), transparent 24%),
    radial-gradient(circle at 16% 0%, rgba(232, 200, 112, .20), transparent 31%),
    linear-gradient(180deg, #241508 0%, #100b06 44%, #070503 100%);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 244, 210, .08);
}

.report-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(232, 200, 112, .035) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(232, 200, 112, .025) 1px, transparent 1px) 0 0 / 42px 100%,
    radial-gradient(circle at 50% 42%, transparent 0 170px, rgba(232, 200, 112, .10) 171px 172px, transparent 173px 268px, rgba(232, 200, 112, .06) 269px 270px, transparent 271px);
  opacity: .78;
}

.report-bg-sigil {
  position: absolute;
  right: -16px;
  top: 108px;
  z-index: -1;
  color: rgba(232, 200, 112, .055);
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: clamp(150px, 22vw, 310px);
  line-height: 1;
  pointer-events: none;
}

.report-topbar {
  position: relative;
  z-index: 2;
  min-height: 82px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(232, 200, 112, .26);
  background: rgba(12, 8, 4, .72);
  backdrop-filter: blur(16px);
}

.report-title-wrap {
  min-width: 0;
  text-align: center;
}

.report-title {
  color: #fff3d2;
  font-size: clamp(25px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .03em;
}

.report-subtitle {
  margin-top: 7px;
  color: rgba(232, 200, 112, .82);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.report-icon-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 200, 112, .26);
  border-radius: 50%;
  background: rgba(255, 246, 218, .05);
  color: #fff3d2;
  font-size: 34px;
  line-height: 1;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.report-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 200, 112, .62);
  background: rgba(232, 200, 112, .10);
}

.report-icon-btn:last-child {
  font-size: 26px;
  letter-spacing: 2px;
}

.report-cover-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  margin: 26px 28px 18px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(232, 200, 112, .34);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(232, 200, 112, .14), transparent 46%),
    linear-gradient(180deg, rgba(255, 247, 225, .06), rgba(255, 247, 225, .015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.report-cover-card::before {
  content: '';
  position: absolute;
  right: 190px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 112, .13);
  box-shadow: 0 0 0 34px rgba(232, 200, 112, .035), 0 0 0 72px rgba(232, 200, 112, .018);
}

.report-cover-copy {
  position: relative;
  z-index: 1;
}

.report-cover-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e8c870;
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 800;
}

.report-cover-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8c870;
  box-shadow: 0 0 12px rgba(232, 200, 112, .75);
}

.report-cover-copy h2 {
  max-width: 690px;
  margin: 16px 0 12px;
  color: #fff1cf;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.08;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  letter-spacing: .02em;
}

.report-cover-copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 239, 202, .74);
  font-size: 16px;
  line-height: 1.9;
}

.report-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.report-cover-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(232, 200, 112, .22);
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  color: rgba(255, 238, 197, .86);
  font-size: 12px;
  font-weight: 700;
}

.report-score-orb {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: 190px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 112, .58);
  background:
    radial-gradient(circle at 50% 35%, rgba(232, 200, 112, .28), transparent 48%),
    radial-gradient(circle, rgba(0, 0, 0, .26), rgba(0, 0, 0, .60));
  box-shadow: inset 0 0 32px rgba(232, 200, 112, .10), 0 0 45px rgba(232, 200, 112, .12);
}

.report-score-orb::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 200, 112, .34);
}

.report-score-orb span,
.report-score-orb em {
  color: rgba(255, 240, 205, .70);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .16em;
}

.report-score-orb strong {
  margin: 3px 0;
  color: #fff6dd;
  font-size: 58px;
  line-height: .92;
  font-weight: 900;
}

.report-mode-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 28px 18px;
  padding: 8px;
  border: 1px solid rgba(232, 200, 112, .24);
  border-radius: 22px;
  background: rgba(0, 0, 0, .22);
}

.report-mode {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: rgba(255, 241, 210, .58);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.report-mode small {
  color: rgba(232, 200, 112, .48);
  font-size: 11px;
  font-weight: 700;
}

.report-mode.active {
  color: #3f2a13;
  border-color: rgba(255, 244, 216, .72);
  background: linear-gradient(180deg, #fff0c7, #d8aa58);
  box-shadow: 0 12px 30px rgba(216, 170, 88, .22), inset 0 1px 0 rgba(255,255,255,.72);
}

.report-mode.active small {
  color: rgba(73, 43, 15, .72);
}

.report-score-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 28px 24px;
  padding: 14px 22px;
  border: 1px solid rgba(232, 200, 112, .38);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(232, 200, 112, .11), rgba(0, 0, 0, .20));
}

.report-score-strip > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.report-score-label {
  color: #e8c870;
  font-size: 13px;
  font-weight: 900;
}

.report-score-num {
  color: #fff6dd;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.report-score-unit,
.report-score-copy {
  color: rgba(255, 239, 202, .80);
  font-size: 14px;
  font-weight: 800;
}

.report-paper {
  position: relative;
  z-index: 1;
  margin: 0 28px 20px;
  padding: 38px 46px 32px;
  overflow: hidden;
  border: 1px solid #f1ce89;
  border-radius: 24px;
  color: #2d251d;
  background:
    linear-gradient(90deg, rgba(224, 151, 45, .12), transparent 45%) 0 194px / 100% 78px no-repeat,
    radial-gradient(circle at 88% 4%, rgba(216, 165, 72, .12), transparent 18%),
    #fffdf7;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .30), inset 0 0 0 1px rgba(255,255,255,.72);
}

.report-paper::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 34px;
  bottom: 34px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e7ad50, rgba(231, 173, 80, .18));
}

.report-paper::after {
  content: '阅天';
  position: absolute;
  right: 40px;
  top: 172px;
  color: rgba(91, 55, 26, .045);
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: 124px;
  line-height: 1;
  pointer-events: none;
}

.report-paper-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 20px 24px;
  border-bottom: 2px solid #ecd19c;
}

.report-paper-kicker {
  display: block;
  color: #d69433;
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 900;
}

.report-paper h2 {
  margin: 10px 0 0;
  color: #5b371a;
  font-size: clamp(44px, 5.8vw, 70px);
  line-height: 1;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-weight: 900;
}

.report-unlock-badge {
  flex-shrink: 0;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #5b371a;
  background: #fff0cf;
  border: 1px solid #e4b765;
  font-size: 14px;
  font-weight: 900;
}

.report-hero-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  margin: 26px 0 0;
  padding-left: 24px;
}

.report-summary-card,
.report-toc-card,
.report-keyline div,
.report-grid-block > div,
.report-action-card {
  border: 1px solid #edc987;
  border-radius: 18px;
  background: rgba(255, 248, 232, .88);
}

.report-summary-card {
  padding: 20px 22px;
}

.report-summary-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: #6a421f;
  font-size: 26px;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-weight: 900;
}

.report-summary-card p {
  margin: 0;
  color: #362b22;
  font-size: 18px;
  line-height: 1.85;
  font-weight: 800;
}

.report-toc-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: center;
  padding: 18px;
}

.report-toc-card strong {
  color: #6a421f;
  font-size: 18px;
}

.report-toc-card span {
  color: #7d684e;
  font-size: 14px;
}

.report-keyline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
  padding-left: 24px;
}

.report-keyline div {
  padding: 15px 16px;
}

.report-keyline span {
  display: block;
  margin-bottom: 5px;
  color: #a87a3d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.report-keyline strong {
  color: #563717;
  font-size: 21px;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
}

.report-block {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding-left: 24px;
}

.report-block h3 {
  margin: 0 0 18px;
  padding: 12px 0 12px 22px;
  border-left: 5px solid #df9932;
  color: #60401f;
  background: linear-gradient(90deg, rgba(227,151,45,.16), transparent 72%);
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
}

.report-block p {
  margin: 0 0 17px;
  color: #3b3935;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.95;
}

.report-block strong {
  color: #5d3d1e;
  font-weight: 900;
}

.report-grid-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 2px;
}

.report-grid-block > div {
  padding: 22px 22px 12px;
}

.report-grid-block h3 {
  margin-bottom: 14px;
  font-size: 31px;
}

.report-grid-block p {
  font-size: 18px;
  line-height: 1.8;
}

.report-action-card {
  margin: 28px 0 0 24px;
  padding: 20px 22px;
  border-style: dashed;
}

.report-action-card span {
  color: #a66d22;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12em;
}

.report-action-card p {
  margin: 8px 0 0;
  color: #4a3b2c;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 700;
}

.report-paper-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 0 24px;
  padding-top: 18px;
  border-top: 1px solid #efd49d;
  color: #b98a46;
  font-size: 13px;
  letter-spacing: .12em;
}

.report-askbar {
  position: sticky;
  z-index: 3;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 28px;
  padding: 10px 12px 10px 22px;
  border: 1px solid rgba(232, 200, 112, .86);
  border-radius: 999px;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
}

.report-askbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3b3b3b;
  font-size: 18px;
}

.report-askbar input::placeholder {
  color: #a99d8d;
}

.report-askbar button {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b4a1f, #3c260f);
  color: #fffaf2;
  font-size: 31px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(74, 45, 19, .28);
}

@media (max-width: 860px) {
  .report-stage {
    width: min(100%, 760px);
  }

  .report-cover-card {
    grid-template-columns: 1fr;
  }

  .report-score-orb {
    justify-self: start;
    width: 142px;
  }

  .report-score-orb strong {
    font-size: 45px;
  }
}

@media (max-width: 720px) {
  .report-stage {
    width: 100%;
    margin: 0;
    border-radius: 20px;
    padding-bottom: 14px;
  }

  .report-topbar {
    min-height: 66px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 0 12px;
  }

  .report-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .report-title {
    font-size: 22px;
  }

  .report-subtitle {
    display: none;
  }

  .report-cover-card {
    margin: 14px 12px 12px;
    padding: 20px;
    border-radius: 20px;
  }

  .report-cover-copy h2 {
    font-size: 34px;
  }

  .report-cover-copy p {
    font-size: 14px;
  }

  .report-cover-tags span {
    font-size: 11px;
  }

  .report-mode-row {
    margin: 0 12px 12px;
    padding: 6px;
    border-radius: 18px;
  }

  .report-mode {
    min-height: 52px;
    border-radius: 13px;
    font-size: 13px;
  }

  .report-mode small {
    font-size: 10px;
  }

  .report-score-strip {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 12px 14px;
    padding: 13px 15px;
    gap: 8px;
  }

  .report-score-num {
    font-size: 30px;
  }

  .report-score-copy {
    font-size: 12px;
    line-height: 1.5;
  }

  .report-paper {
    margin: 0 8px 12px;
    padding: 26px 17px 24px;
    border-radius: 18px;
  }

  .report-paper::before {
    left: 17px;
  }

  .report-paper::after {
    right: 16px;
    top: 142px;
    font-size: 72px;
  }

  .report-paper-head {
    flex-direction: column;
    gap: 12px;
    padding-left: 18px;
  }

  .report-paper h2 {
    font-size: 44px;
  }

  .report-unlock-badge {
    margin-top: 0;
    padding: 8px 12px;
    font-size: 13px;
  }

  .report-hero-summary,
  .report-keyline,
  .report-block,
  .report-action-card,
  .report-paper-foot {
    padding-left: 18px;
    margin-left: 0;
  }

  .report-hero-summary,
  .report-keyline,
  .report-grid-block {
    grid-template-columns: 1fr;
  }

  .report-summary-card {
    padding: 17px 18px;
  }

  .report-summary-card span {
    font-size: 25px;
  }

  .report-summary-card p,
  .report-action-card p {
    font-size: 15px;
  }

  .report-toc-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }

  .report-block h3 {
    font-size: 31px;
    margin-bottom: 15px;
    padding-left: 18px;
  }

  .report-block p {
    font-size: 18px;
    line-height: 1.86;
  }

  .report-grid-block p {
    font-size: 16px;
  }

  .report-paper-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-askbar {
    bottom: 8px;
    margin: 0 8px;
    padding: 9px 10px 9px 16px;
  }

  .report-askbar input {
    font-size: 16px;
  }

  .report-askbar button {
    width: 42px;
    height: 42px;
  }
}

/* 许半仙：客户默认只看对话入口，后台状态点开才展示 */
#aip-panel-chat .xb-hero.xb-control-drawer {
  display: block;
  padding: 0;
}

#aip-panel-chat .xb-control-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

#aip-panel-chat .xb-control-summary::-webkit-details-marker {
  display: none;
}

#aip-panel-chat .xb-mini-tagline {
  margin-top: 4px;
  color: rgba(207, 189, 165, .82);
  font-size: 12px;
  line-height: 1.5;
}

#aip-panel-chat .xb-control-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--xb-gold);
  background: rgba(201, 168, 120, .08);
  border: 1px solid rgba(201, 168, 120, .18);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#aip-panel-chat .xb-control-hint::after {
  content: '⌄';
  font-size: 13px;
  transition: transform .18s ease;
}

#aip-panel-chat .xb-control-drawer[open] .xb-control-hint::after {
  transform: rotate(180deg);
}

#aip-panel-chat .xb-control-panel {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

#aip-panel-chat .xb-control-drawer:not([open]) > .xb-control-panel,
#aip-panel-chat .xb-memory-drawer:not([open]) > .xb-memory-panel {
  display: none;
}

#aip-panel-chat .xb-control-panel .xb-tagline {
  margin: 0;
  padding: 11px 13px;
  border-radius: 16px;
  color: var(--xb-muted);
  background: rgba(201, 168, 120, .045);
  border: 1px solid rgba(201, 168, 120, .1);
}

#aip-panel-chat .xb-control-panel .xb-quota {
  width: fit-content;
  min-width: 0;
  align-items: flex-start;
}

#aip-panel-chat .xb-control-panel .xb-memory-drawer {
  margin: 0;
}

#aip-panel-chat .xb-control-panel .xb-memory-summary {
  padding: 10px 12px;
}

@media (max-width: 720px) {
  #aip-panel-chat .xb-control-summary {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px 16px;
  }

  #aip-panel-chat .xb-control-summary .xb-avatar {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  #aip-panel-chat .xb-mini-tagline {
    display: none;
  }

  #aip-panel-chat .xb-control-hint {
    padding: 7px 10px;
  }

  #aip-panel-chat .xb-control-panel {
    padding: 0 14px 14px;
  }
}

/* Figma Make 提取版：整体批命命书封面视觉 */
.aip-fm-overall {
  position: relative;
  isolation: isolate;
  gap: 24px !important;
}

.aip-fm-overall::before {
  content: '';
  position: absolute;
  inset: -40px -18px auto;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  opacity: .48;
  background:
    radial-gradient(circle at 50% 36%, rgba(185, 148, 68, .16), transparent 28%),
    repeating-conic-gradient(from 8deg at 50% 45%, rgba(185,148,68,.12) 0 1deg, transparent 1deg 30deg),
    radial-gradient(circle at 50% 45%, transparent 0 150px, rgba(185,148,68,.12) 151px 152px, transparent 153px 210px, rgba(185,148,68,.08) 211px 212px, transparent 213px);
}

.aip-fm-overall .aip-main-card {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(201, 169, 97, .38) !important;
  background: linear-gradient(175deg, #100c08 0%, #090704 52%, #0e0a05 100%) !important;
  box-shadow: 0 0 0 3px rgba(185,148,68,.055), 0 30px 76px rgba(0,0,0,.56), inset 0 0 0 1px rgba(255,236,180,.025) !important;
}

.aip-fm-overall .aip-main-card::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 11px !important;
  pointer-events: none !important;
  border: 1px solid rgba(185, 148, 68, .13) !important;
  border-radius: 4px !important;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(185,148,68,.025) 29px),
    radial-gradient(circle at 78% 22%, rgba(125,35,22,.18), transparent 26%) !important;
}

.aip-fm-overall .aip-main-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent 6%, #772418 39%, #b23a24 50%, #772418 61%, transparent 94%);
  box-shadow: 0 0 20px rgba(160, 48, 32, .35);
}

.aip-fm-corner {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  pointer-events: none;
  border-color: rgba(201, 169, 97, .42);
}
.aip-fm-corner-tl { top: 7px; left: 7px; border-top: 1px solid; border-left: 1px solid; }
.aip-fm-corner-tr { top: 7px; right: 7px; border-top: 1px solid; border-right: 1px solid; }
.aip-fm-corner-bl { bottom: 7px; left: 7px; border-bottom: 1px solid; border-left: 1px solid; }
.aip-fm-corner-br { bottom: 7px; right: 7px; border-bottom: 1px solid; border-right: 1px solid; }

.aip-fm-overall .aip-main-hero {
  position: relative !important;
  min-height: 184px !important;
  padding: 72px 44px 30px 104px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(110deg, rgba(20,13,7,.82) 0%, rgba(26,16,8,.62) 58%, rgba(84,31,18,.42) 100%) !important;
  box-shadow: none !important;
}

.aip-fm-overall .aip-main-hero::after {
  content: '';
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.42), transparent);
}

.aip-fm-seal {
  position: absolute;
  top: 34px;
  left: 38px;
  width: 54px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 4px;
  transform: rotate(-4deg);
  color: #ffe7dc;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  background: radial-gradient(circle at 34% 28%, #cf4635 0%, #982719 56%, #6e1b12 100%);
  border: 1px solid #8b2418;
  box-shadow: 0 0 0 2px rgba(190,54,35,.86), 0 12px 24px rgba(120,25,14,.36), inset 0 0 0 4px rgba(0,0,0,.14);
}

.aip-fm-seal::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,224,214,.36);
  border-radius: 2px;
}

.aip-fm-birthmark {
  position: absolute;
  top: 34px;
  right: 38px;
  padding: 7px 13px;
  border: 1px solid rgba(201,169,97,.28);
  border-radius: 4px;
  background: linear-gradient(180deg, #110c07, #090704);
  color: rgba(232,200,112,.86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.aip-fm-overall .aip-main-card-head { margin-bottom: 16px !important; }

.aip-fm-overall .aip-hero-tag {
  border-radius: 3px !important;
  border-color: rgba(201,169,97,.42) !important;
  background: rgba(185,148,68,.12) !important;
  color: #d8b967 !important;
  letter-spacing: .16em !important;
}

.aip-fm-overall .aip-hero-title {
  max-width: 760px !important;
  color: #f7e7bd !important;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
  letter-spacing: .04em !important;
  text-shadow: 0 12px 28px rgba(185,148,68,.18) !important;
}

.aip-fm-hero-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: rgba(185,148,68,.66);
  font-size: 12px;
  letter-spacing: .22em;
}

.aip-fm-hero-sub::before,
.aip-fm-hero-sub::after {
  content: '';
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185,148,68,.45));
}
.aip-fm-hero-sub::after { background: linear-gradient(90deg, rgba(185,148,68,.45), transparent); }

.aip-fm-overall .aip-main-body-wrap {
  display: grid !important;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) !important;
  gap: 26px !important;
  padding: 28px 44px 40px !important;
  background: transparent !important;
}

.aip-fm-overall .aip-main-structure-pane {
  position: relative !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.aip-fm-overall .aip-main-structure-pane .aip-struct-summary {
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid rgba(185,148,68,.32) !important;
  border-radius: 3px !important;
  background: transparent !important;
}

.aip-fm-overall .aip-main-structure-pane .aip-struct-summary-label {
  min-width: 100% !important;
  height: 40px !important;
  color: rgba(232,200,112,.84) !important;
  background: rgba(185,148,68,.055) !important;
  border: 0 !important;
  letter-spacing: .12em !important;
}

.aip-fm-chart-wheel {
  position: relative;
  width: min(270px, 100%);
  aspect-ratio: 1;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  padding: 8px;
  border: 1px solid rgba(185,148,68,.32);
  box-shadow:
    inset 0 0 0 1px rgba(185,148,68,.08),
    0 0 32px rgba(185,148,68,.08);
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(185,148,68,.035) 25px),
    rgba(8, 7, 4, .58);
  opacity: .8;
}

.aip-fm-chart-wheel::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(185,148,68,.34);
  pointer-events: none;
}

.aip-fm-chart-wheel::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(185,148,68,.18);
  pointer-events: none;
}

.aip-fm-palace {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(185,148,68,.27);
  border-bottom: 1px solid rgba(185,148,68,.27);
}

.aip-fm-palace b {
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: rgba(232,200,112,.78);
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: .04em;
}

.aip-fm-palace i {
  position: absolute;
  left: 8px;
  bottom: 7px;
  color: rgba(185,148,68,.44);
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: 15px;
  font-style: normal;
}

.aip-fm-p1 { grid-area: 1 / 1; }
.aip-fm-p2 { grid-area: 1 / 2; }
.aip-fm-p3 { grid-area: 1 / 3; }
.aip-fm-p4 { grid-area: 1 / 4; border-right: 0; }
.aip-fm-p5 { grid-area: 2 / 4; border-right: 0; }
.aip-fm-p6 { grid-area: 3 / 4; border-right: 0; }
.aip-fm-p7 { grid-area: 4 / 4; border-right: 0; border-bottom: 0; }
.aip-fm-p8 { grid-area: 4 / 3; border-bottom: 0; }
.aip-fm-p9 { grid-area: 4 / 2; border-bottom: 0; }
.aip-fm-p10 { grid-area: 4 / 1; border-bottom: 0; }
.aip-fm-p11 { grid-area: 3 / 1; }
.aip-fm-p12 { grid-area: 2 / 1; }

.aip-fm-palace-center {
  grid-area: 2 / 2 / 4 / 4;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(185,148,68,.27);
  border-bottom: 1px solid rgba(185,148,68,.27);
  background: rgba(185,148,68,.02);
}

.aip-fm-palace-center::before {
  content: '';
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(185,148,68,.22);
  box-shadow: inset 0 0 0 16px rgba(185,148,68,.025);
}

.aip-fm-palace-center strong {
  position: relative;
  z-index: 1;
  color: rgba(232,200,112,.76);
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .12em;
}

.aip-fm-palace-center span {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: rgba(185,148,68,.42);
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: 13px;
  letter-spacing: .34em;
}

.aip-fm-overall .aip-main-result-pane {
  position: relative !important;
  display: block !important;
  min-width: 0 !important;
  padding-top: 4px !important;
}

.aip-fm-overall .aip-main-result-pane > .aip-card-ai-bar {
  position: static !important;
  justify-content: center !important;
  margin: 18px 0 0 !important;
  padding: 22px 0 0 !important;
  border-top: 1px solid rgba(185,148,68,.16) !important;
  border-bottom: 0 !important;
}

.aip-fm-overall .aip-main-result-pane #aip-overall-btn {
  min-width: 230px !important;
  height: 50px !important;
  padding: 0 42px !important;
  border-radius: 3px !important;
  border: 1px solid rgba(240,205,115,.5) !important;
  background: linear-gradient(135deg, #c9a050 0%, #e8c870 42%, #b98536 100%) !important;
  color: #180d05 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
  box-shadow: 0 14px 34px rgba(185,148,68,.25), inset 0 1px 0 rgba(255,240,180,.5) !important;
}

.aip-fm-overall .aip-main-result-pane #aip-life-body:not(:empty) {
  margin-top: 24px !important;
  padding: 24px 28px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(185,148,68,.18) !important;
  background: rgba(185,148,68,.035) !important;
  color: rgba(245,228,184,.9) !important;
}

.aip-fm-overall .aip-specialty-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.aip-fm-overall .aip-sub-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 260px !important;
  padding: 26px 24px 24px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(185,148,68,.2) !important;
  background: linear-gradient(180deg, rgba(18,13,8,.94), rgba(8,6,3,.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,236,180,.025), 0 18px 44px rgba(0,0,0,.24) !important;
}

.aip-fm-overall .aip-sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--aip-card-accent, #b8903c);
  opacity: .9;
  box-shadow: 0 0 22px var(--aip-card-glow, rgba(185,148,68,.18));
}

.aip-fm-overall .aip-sub-card::after {
  content: var(--aip-card-watermark, '卷');
  position: absolute;
  right: 12px;
  bottom: -24px;
  color: var(--aip-card-accent, #b8903c);
  opacity: .055;
  font-family: "KaiTi", "STKaiti", "SimSun", serif;
  font-size: 118px;
  font-weight: 900;
  line-height: 1;
}

.aip-fm-overall .aip-shen-card { --aip-card-accent: #c8a652; --aip-card-glow: rgba(200,166,82,.22); --aip-card-watermark: '身'; }
.aip-fm-overall .aip-hunyin-card { --aip-card-accent: #b86b75; --aip-card-glow: rgba(184,107,117,.22); --aip-card-watermark: '婚'; }
.aip-fm-overall .aip-jiankang-card { --aip-card-accent: #6aa678; --aip-card-glow: rgba(106,166,120,.2); --aip-card-watermark: '疾'; }
.aip-fm-overall .aip-caiyun-card { --aip-card-accent: #d0a044; --aip-card-glow: rgba(208,160,68,.22); --aip-card-watermark: '财'; }
.aip-fm-overall .aip-shiye-card { --aip-card-accent: #8f75cc; --aip-card-glow: rgba(143,117,204,.2); --aip-card-watermark: '官'; }

.aip-fm-overall .aip-sub-card .aip-card-head {
  position: relative !important;
  z-index: 1 !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 24px !important;
}

.aip-fm-overall .aip-sub-card .aip-tag {
  border-radius: 3px !important;
  background: rgba(185,148,68,.08) !important;
  border: 1px solid rgba(185,148,68,.2) !important;
  color: var(--aip-card-accent, #b8903c) !important;
}

.aip-fm-overall .aip-sub-card .aip-card-title {
  display: block !important;
  color: #f5e4b8 !important;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

.aip-fm-overall .aip-sub-card .aip-card-ai-bar {
  position: relative !important;
  z-index: 1 !important;
  justify-content: stretch !important;
  width: 100% !important;
  margin: 0 0 22px !important;
}

.aip-fm-overall .aip-sub-card .aip-card-ai-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  border-radius: 3px !important;
  border: 1px solid rgba(185,148,68,.26) !important;
  background: rgba(185,148,68,.035) !important;
  color: var(--aip-card-accent, #b8903c) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
}

.aip-fm-overall .aip-sub-card .aip-card-ai-btn:hover:not(:disabled) {
  background: rgba(185,148,68,.12) !important;
  transform: translateY(-1px);
}

.aip-fm-overall .aip-sub-card .aip-sub-struct-details {
  position: relative !important;
  z-index: 1 !important;
  opacity: .78 !important;
}

.aip-fm-overall .aip-sub-card .aip-sub-struct-details .aip-struct-summary-label {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 3px !important;
  background: transparent !important;
  border-color: rgba(185,148,68,.16) !important;
  color: rgba(185,148,68,.68) !important;
}

.aip-fm-overall .aip-sub-card .aip-card-body:not(:empty),
.aip-fm-overall .aip-sub-card .aip-card-tip:not(:empty) {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 1120px) {
  .aip-fm-overall .aip-specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .aip-fm-overall .aip-main-hero {
    min-height: 162px !important;
    padding: 68px 22px 24px !important;
  }

  .aip-fm-seal {
    top: 20px;
    left: 22px;
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .aip-fm-birthmark {
    top: 22px;
    right: 22px;
    font-size: 10px;
  }

  .aip-fm-overall .aip-hero-title {
    font-size: 28px !important;
  }

  .aip-fm-overall .aip-main-body-wrap {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
  }

  .aip-fm-chart-wheel {
    display: none;
  }

  .aip-fm-overall .aip-specialty-grid {
    grid-template-columns: 1fr !important;
  }

  .aip-fm-overall .aip-sub-card {
    min-height: 0 !important;
  }
}

/* Figma Make 背景补强：把导出稿里的星盘暗纹落到网页层 */
.aip-fm-overall {
  overflow: visible !important;
}

.aip-fm-overall::before {
  inset: 8px 0 auto !important;
  height: 260px !important;
  z-index: -1 !important;
  opacity: .32 !important;
  background:
    radial-gradient(ellipse 55% 42% at 50% 30%, rgba(128, 55, 28, .24) 0%, transparent 68%),
    radial-gradient(circle at 50% 52%, transparent 0 86px, rgba(185, 148, 68, .14) 87px 88px, transparent 89px 160px, rgba(185, 148, 68, .08) 161px 162px, transparent 163px),
    radial-gradient(ellipse at 50% 12%, #1e0f06 0%, #0c0704 62%, transparent 82%) !important;
  -webkit-mask-image: radial-gradient(ellipse 56% 48% at 50% 42%, #000 0 54%, transparent 100%);
  mask-image: radial-gradient(ellipse 56% 48% at 50% 42%, #000 0 54%, transparent 100%);
}

.aip-fm-overall::after {
  content: none !important;
  position: absolute !important;
  inset: -120px -8vw auto !important;
  height: 720px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: .44 !important;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(232, 200, 112, .95) 0 1px, transparent 1.6px),
    radial-gradient(circle at 28% 64%, rgba(185, 148, 68, .72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 28%, rgba(232, 200, 112, .9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 58%, rgba(185, 148, 68, .7) 0 1px, transparent 1.5px);
  background-size: 220px 180px, 260px 220px, 300px 240px, 240px 200px;
  filter: drop-shadow(0 0 8px rgba(232, 200, 112, .18));
  -webkit-mask-image: radial-gradient(ellipse 76% 46% at 50% 34%, #000 0 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 46% at 50% 34%, #000 0 62%, transparent 100%);
}

.aip-fm-overall > * {
  position: relative;
  z-index: 1;
}

.aip-fm-overall .aip-main-card::before {
  z-index: 0 !important;
  opacity: .72 !important;
  background:
    radial-gradient(circle at 76% 52%, transparent 0 92px, rgba(232, 200, 112, .12) 93px 94px, transparent 95px 166px, rgba(185, 148, 68, .1) 167px 168px, transparent 169px 244px, rgba(185, 148, 68, .06) 245px 246px, transparent 247px),
    repeating-conic-gradient(from 10deg at 76% 52%, rgba(185,148,68,.07) 0deg 1deg, transparent 1deg 18deg),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(185,148,68,.035) 29px),
    radial-gradient(circle at 78% 22%, rgba(125,35,22,.22), transparent 28%) !important;
}

.aip-fm-overall .aip-main-card > * {
  position: relative;
  z-index: 1;
}

.aip-fm-overall .aip-main-body-wrap {
  position: relative !important;
  overflow: hidden !important;
}

.aip-fm-overall .aip-main-body-wrap::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: .42 !important;
  background:
    linear-gradient(90deg, rgba(185,148,68,.06), transparent 22%, transparent 78%, rgba(185,148,68,.04)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(185,148,68,.035) 32px),
    radial-gradient(ellipse at 20% 50%, rgba(185,148,68,.055), transparent 42%) !important;
}

.aip-fm-overall .aip-main-body-wrap > * {
  position: relative;
  z-index: 1;
}

.aip-fm-chart-wheel {
  opacity: 1 !important;
  box-shadow:
    inset 0 0 0 1px rgba(185,148,68,.1),
    0 0 38px rgba(185,148,68,.12) !important;
}

.aip-fm-overall .aip-specialty-grid {
  position: relative !important;
}

.aip-fm-overall .aip-specialty-grid::before {
  content: none !important;
  position: absolute !important;
  inset: -70px -60px -50px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: .34 !important;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 120px, rgba(185,148,68,.16) 121px 123px, transparent 124px 230px, rgba(185,148,68,.1) 231px 233px, transparent 234px),
    repeating-conic-gradient(from 6deg at 50% 42%, rgba(185,148,68,.14) 0deg 1deg, transparent 1deg 18deg),
    radial-gradient(ellipse at 50% 18%, rgba(105, 42, 23, .18), transparent 62%);
}

.aip-fm-overall .aip-specialty-grid > * {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 820px) {
  .aip-fm-overall::before {
    inset: -90px -24vw auto !important;
    height: 520px !important;
    opacity: .72 !important;
  }

  .aip-fm-overall::after {
    inset: -70px -20vw auto !important;
    height: 460px !important;
    opacity: .28 !important;
  }

  .aip-fm-overall .aip-main-body-wrap::before {
    inset: -70px -40px -60px 0 !important;
    opacity: .45 !important;
  }
}

/* ────────────────────────────────────────────────────────────────
   Make 导出样式（整体批命“命书卷轴”预览）
   说明：只做新增区块样式，不影响原有布局
──────────────────────────────────────────────────────────────── */

.mk-preview-details {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(185, 148, 68, 0.18);
  background: linear-gradient(180deg, rgba(18, 12, 8, 0.55), rgba(8, 6, 4, 0.55));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.mk-preview-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  user-select: none;
}
.mk-preview-details > summary::-webkit-details-marker { display: none; }
.mk-preview-details > summary::marker { content: ''; }

.mk-preview-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(245, 228, 184, 0.92);
  background: rgba(185, 148, 68, 0.14);
  border: 1px solid rgba(185, 148, 68, 0.25);
}
.mk-preview-name {
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(245, 228, 184, 0.88);
  flex: 1;
}
.mk-preview-hint {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(185, 148, 68, 0.7);
}

.mk-preview-stage {
  position: relative;
  overflow: hidden;
  padding: 34px 22px 44px;
  background: radial-gradient(ellipse 100% 70% at 50% 30%, #1c130a 0%, #0e0805 60%, #060402 100%);
}
.mk-preview-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(232, 200, 112, 0.018) 0px, rgba(232, 200, 112, 0.018) 1px, transparent 1px, transparent 4px);
}
.mk-preview-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(232, 200, 112, 0.012) 0px, rgba(232, 200, 112, 0.012) 1px, transparent 1px, transparent 5px);
}

.mk-preview-scroll-rod {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #2a1d0e 0%, #18100a 50%, #0a0604 100%);
  box-shadow: 6px 0 14px rgba(0, 0, 0, 0.5);
}
.mk-preview-scroll-rod-left {
  left: 0;
  border-right: 1px solid rgba(185, 148, 68, 0.35);
}
.mk-preview-scroll-rod-right {
  right: 0;
  transform: scaleX(-1);
  border-left: 1px solid rgba(185, 148, 68, 0.35);
}

.mk-preview-inner {
  position: relative;
  z-index: 5;
  max-width: 920px;
  margin-left: 328px;
  margin-right: 10px;
  color: rgba(200, 184, 150, 0.96);
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
}

.mk-sidebar {
  position: absolute;
  z-index: 6;
  left: 22px;
  top: 34px;
  bottom: 44px;
  width: 296px;
  background: linear-gradient(180deg, rgba(16, 11, 6, 0.97) 0%, rgba(8, 5, 3, 0.97) 100%);
  border-right: 1px solid rgba(201, 160, 80, 0.25);
  border-left: 1px solid rgba(201, 160, 80, 0.16);
  box-shadow: inset -1px 0 0 rgba(232, 200, 112, 0.05), 12px 0 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.mk-sidebar-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.7;
  background: linear-gradient(90deg, transparent, #e8c870 20%, #fbecbf 50%, #e8c870 80%, transparent);
}

.mk-sidebar-brand {
  position: relative;
  padding: 26px 22px 22px;
  text-align: center;
  border-bottom: 1px solid rgba(201, 160, 80, 0.18);
}
.mk-sidebar-kicker {
  margin-bottom: 10px;
  font-size: 9px;
  letter-spacing: 8px;
  color: rgba(185, 148, 68, 0.55);
}
.mk-sidebar-logo {
  font-size: 22px;
  letter-spacing: 12px;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(180deg, #fbecbf 0%, #e8c870 50%, #b8903c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(232, 200, 112, 0.18));
}
.mk-sidebar-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.mk-sidebar-divider span {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 112, 0.6));
}
.mk-sidebar-divider span:last-child {
  background: linear-gradient(90deg, rgba(232, 200, 112, 0.6), transparent);
}
.mk-sidebar-divider i {
  color: #c9a050;
  font-size: 8px;
  font-style: normal;
}

.mk-sidebar-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 18px 4px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(155, 46, 32, 0.18), rgba(155, 46, 32, 0.04) 60%, rgba(0, 0, 0, 0));
  border: 1px solid rgba(201, 160, 80, 0.22);
}
.mk-sidebar-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.55;
  pointer-events: none;
}
.mk-sidebar-corner-tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid #e8c870;
  border-right: 2px solid #e8c870;
}
.mk-sidebar-corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid #e8c870;
  border-left: 2px solid #e8c870;
}
.mk-sidebar-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fde9a9;
  font-size: 18px;
  font-weight: 700;
  background: radial-gradient(circle at 35% 30%, #d68a4a, #8a3318 65%, #4a1a0a);
  border: 1px solid rgba(232, 200, 112, 0.5);
  box-shadow: 0 0 0 2px rgba(155, 46, 32, 0.25), 0 4px 14px rgba(155, 46, 32, 0.4);
}
.mk-sidebar-profile-text { min-width: 0; }
.mk-sidebar-name {
  color: #fff3c8;
  font-size: 14px;
  letter-spacing: 4px;
  font-weight: 600;
}
.mk-sidebar-meta {
  margin-top: 5px;
  color: rgba(185, 148, 68, 0.6);
  font-size: 10px;
  letter-spacing: 1.5px;
  line-height: 1.7;
}

.mk-sidebar-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 10px;
}
.mk-sidebar-titlebar div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e8c870;
  font-size: 12px;
  letter-spacing: 5px;
  font-weight: 600;
}
.mk-sidebar-titlebar div span {
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: linear-gradient(180deg, #fbecbf, #b8903c);
}
.mk-sidebar-titlebar em {
  padding: 2px 6px;
  border: 1px solid rgba(185, 148, 68, 0.25);
  border-radius: 2px;
  color: rgba(185, 148, 68, 0.4);
  font-size: 9px;
  letter-spacing: 2px;
  font-style: normal;
}

.mk-sidebar-nav {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 4px 14px 16px 18px;
}
.mk-sidebar-nav::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 160, 80, 0.45) 8%, rgba(201, 160, 80, 0.45) 92%, transparent);
}
.mk-sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 48px);
  min-height: 58px;
  margin: 0 0 6px 48px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 160, 80, 0.15);
  border-radius: 2px;
  background: rgba(20, 14, 8, 0.4);
  color: rgba(232, 200, 112, 0.65);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
}
.mk-sidebar-item:hover {
  background: rgba(201, 160, 80, 0.08);
  border-color: rgba(201, 160, 80, 0.35);
  transform: translateX(3px);
}
.mk-sidebar-item.active {
  background: linear-gradient(90deg, rgba(232, 200, 112, 0.18) 0%, rgba(201, 160, 80, 0.06) 60%, transparent);
  border-color: rgba(232, 200, 112, 0.55);
  color: #fff3c8;
  transform: translateX(6px);
  box-shadow: 0 4px 18px rgba(232, 200, 112, 0.18), inset 0 1px 0 rgba(255, 243, 200, 0.15);
}
.mk-sidebar-node {
  position: absolute;
  left: -16px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(20, 14, 8, 0.95);
  border: 1px solid rgba(201, 160, 80, 0.5);
  transform: translateX(-50%);
  z-index: 2;
}
.mk-sidebar-item.active .mk-sidebar-node {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #fff3c8, #e8c870 50%, #b8903c);
  border-color: #fff3c8;
  box-shadow: 0 0 0 3px rgba(232, 200, 112, 0.18), 0 0 12px rgba(232, 200, 112, 0.6);
}
.mk-sidebar-item.active .mk-sidebar-node::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 112, 0.3);
  animation: mk-node-ring 2.4s ease-out infinite;
}
.mk-sidebar-item b {
  min-width: 22px;
  text-align: center;
  color: rgba(185, 148, 68, 0.45);
  font-size: 18px;
  font-family: "STKaiti", "KaiTi", serif;
}
.mk-sidebar-item.active b {
  color: #fff3c8;
  filter: drop-shadow(0 0 4px rgba(232, 200, 112, 0.55));
}
.mk-sidebar-item i {
  flex: 1;
  min-width: 0;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 400;
}
.mk-sidebar-item.active i { font-weight: 600; }
.mk-sidebar-item small {
  display: block;
  margin-bottom: 4px;
  color: rgba(185, 148, 68, 0.4);
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
}
.mk-sidebar-item.active small { color: #c9a050; }
.mk-sidebar-item strong {
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: linear-gradient(135deg, #c93b22, #8a2818);
  color: #fde9a9;
  font-size: 9px;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 1px rgba(232, 200, 112, 0.4), 0 2px 6px rgba(155, 46, 32, 0.5);
  animation: mk-stamp-pop 0.4s ease-out;
}
.mk-sidebar-item:not(.active) strong { display: none; }
.mk-sidebar-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #fbecbf, transparent);
  animation: mk-sweep 2.2s ease-in-out infinite;
}

.mk-sidebar-subnav {
  margin: 8px 0 10px 60px;
  padding-left: 14px;
  border-left: 1px dashed rgba(201, 160, 80, 0.3);
}
.mk-sidebar-subnav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 2px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: rgba(185, 148, 68, 0.55);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}
.mk-sidebar-subnav button:hover,
.mk-sidebar-subnav button.active {
  color: #e8c870;
  background: rgba(232, 200, 112, 0.08);
}
.mk-sidebar-subnav span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(185, 148, 68, 0.4);
}
.mk-sidebar-subnav button.active span {
  background: #e8c870;
  box-shadow: 0 0 6px #e8c870;
}
.mk-sidebar-subnav small {
  color: rgba(185, 148, 68, 0.45);
  font-size: 9px;
}

.mk-sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(201, 160, 80, 0.18);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
  color: rgba(185, 148, 68, 0.5);
  font-size: 10px;
  letter-spacing: 3px;
  text-align: center;
}

.mk-cover {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 0 18px;
}
.mk-cover-stamp-wrap { margin-bottom: 34px; }

.mk-seal {
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 35% 30%, #c8362a 0%, #9b2418 55%, #7a1c12 100%);
  border: 1.5px solid #8a1f15;
  box-shadow: 0 0 0 2px #b9301f, 0 4px 14px rgba(155, 36, 24, 0.55), inset 0 0 0 3px rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  background-blend-mode: multiply;
}
.mk-seal span {
  color: #fde6dd;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.mk-seal-inner-frame {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 220, 210, 0.35);
  border-radius: 2px;
  pointer-events: none;
}
.mk-seal-grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 75%, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: 3px;
}

.mk-cover-kicker {
  font-size: 11px;
  letter-spacing: 8px;
  color: rgba(185, 148, 68, 0.55);
  margin-bottom: 22px;
}

.mk-mega-title {
  font-size: clamp(46px, 8.2vw, 124px);
  letter-spacing: 0.15em;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(180deg, #fbecbf 0%, #e8c870 45%, #b8903c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(200, 160, 80, 0.25));
  margin: 0 0 26px;
  line-height: 1.1;
}

.mk-cover-subline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}
.mk-cover-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 148, 68, 0.6));
}
.mk-cover-line-right {
  background: linear-gradient(90deg, rgba(185, 148, 68, 0.6), transparent);
}
.mk-cover-subtitle {
  font-size: 14px;
  letter-spacing: 8px;
  color: #e8c870;
  font-weight: 600;
}

.mk-cover-meta {
  font-size: 14px;
  color: rgba(232, 200, 112, 0.8);
  letter-spacing: 4px;
  line-height: 2.4;
  margin: 0;
}

.mk-cover-hint {
  margin-top: 64px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  border: 1px solid rgba(185, 148, 68, 0.3);
  border-radius: 40px;
  animation: mk-hint-bob-v 2s ease-in-out infinite;
}
.mk-cover-hint-text {
  font-size: 11px;
  letter-spacing: 4px;
  color: #c9a050;
}
.mk-cover-hint-arrow { color: #e8c870; }

.mk-chapter {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 18px 0 12px;
  padding: 12px 2px 10px;
  border-bottom: 1px solid rgba(185, 148, 68, 0.16);
}
.mk-chapter-title {
  font-size: 13px;
  letter-spacing: 8px;
  color: rgba(232, 200, 112, 0.85);
  font-weight: 700;
}
.mk-chapter-subtitle {
  font-size: 12px;
  letter-spacing: 6px;
  color: rgba(185, 148, 68, 0.7);
}

.mk-card {
  background: linear-gradient(180deg, rgba(20, 14, 8, 0.82), rgba(10, 7, 4, 0.92));
  border: 1px solid rgba(201, 160, 80, 0.3);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(232, 200, 112, 0.08);
}

.mk-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.mk-card-head-left { min-width: 0; }
.mk-card-head-right { flex: none; }
.mk-card-title {
  margin: 0;
  font-size: 16px;
  color: rgba(232, 200, 112, 0.92);
  letter-spacing: 4px;
  font-weight: 700;
}
.mk-card-desc {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(232, 200, 112, 0.6);
  letter-spacing: 2px;
  line-height: 1.6;
}

.mk-mini-btn {
  border: 1px solid rgba(185, 148, 68, 0.35);
  background: rgba(12, 9, 6, 0.55);
  color: rgba(245, 228, 184, 0.82);
  letter-spacing: 2px;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}
.mk-mini-btn:hover {
  border-color: rgba(232, 200, 112, 0.6);
  box-shadow: 0 0 0 1px rgba(232, 200, 112, 0.18);
}

.mk-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 10px;
}
.mk-ai-btn {
  border: 1px solid rgba(185, 148, 68, 0.35);
  background: linear-gradient(180deg, rgba(185, 148, 68, 0.22), rgba(12, 9, 6, 0.38));
  color: rgba(245, 228, 184, 0.95);
  letter-spacing: 2px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}
.mk-ai-btn:hover {
  border-color: rgba(232, 200, 112, 0.75);
  box-shadow: 0 12px 38px rgba(185, 148, 68, 0.14);
  transform: translateY(-1px);
}
.mk-ai-status {
  font-size: 12px;
  color: rgba(185, 148, 68, 0.75);
  letter-spacing: 1px;
}

.mk-struct-details {
  margin-top: 10px;
  border: 1px dashed rgba(185, 148, 68, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.12);
}
.mk-struct-summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(232, 200, 112, 0.72);
}
.mk-struct-body {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(245, 228, 184, 0.82);
  line-height: 1.7;
}

.mk-overview-reading {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px dashed rgba(201, 160, 80, 0.25);
}

.mk-card-title-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mk-card-meta {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(185, 148, 68, 0.72);
}
.mk-reading-body {
  font-size: 15px;
  color: rgba(245, 228, 184, 0.85);
  line-height: 2.1;
}
.mk-reading-body p { margin: 10px 0; }
.mk-reading-body h4 {
  margin: 16px 0 8px;
  font-size: 14px;
  letter-spacing: 3px;
  color: rgba(232, 200, 112, 0.92);
}

.mk-footnotes { margin-top: 14px; display: grid; gap: 8px; }
.mk-footnote {
  font-size: 12px;
  letter-spacing: 1px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(185, 148, 68, 0.18);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(245, 228, 184, 0.84);
}
.mk-footnote-risk { border-color: rgba(150, 61, 50, 0.35); }
.mk-footnote-basis { border-color: rgba(185, 148, 68, 0.22); }

.mk-specialty-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mk-end-card {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 180px;
}
.mk-end-card p {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(232, 200, 112, 0.56);
}
.mk-end-seal {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c93b22, #8a2818);
  color: #fde9a9;
  font-size: 22px;
  font-weight: 800;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 1px rgba(232, 200, 112, 0.4), 0 8px 20px rgba(155, 46, 32, 0.42);
}
@media (max-width: 900px) {
  .mk-specialty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .mk-sidebar { display: none; }
  .mk-preview-inner {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 600px) {
  .mk-preview-stage { padding: 26px 14px 34px; }
  .mk-cover { min-height: 66vh; }
  .mk-cover-line { width: 54px; }
  .mk-specialty-grid { grid-template-columns: 1fr; }
  .mk-card { padding: 18px; }
}

.mk-spec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.mk-spec-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  border: 1px solid rgba(185, 148, 68, 0.22);
  color: rgba(245, 228, 184, 0.86);
  background: rgba(185, 148, 68, 0.1);
}
.mk-spec-title {
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(245, 228, 184, 0.9);
  font-weight: 700;
}
.mk-spec-body {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(245, 228, 184, 0.82);
  white-space: pre-wrap;
}

.mk-spec-shen { --mk-accent: rgba(201, 160, 80, 0.35); }
.mk-spec-hunyin { --mk-accent: rgba(192, 120, 128, 0.35); }
.mk-spec-jiankang { --mk-accent: rgba(111, 168, 120, 0.28); }
.mk-spec-caiyun { --mk-accent: rgba(208, 152, 56, 0.32); }
.mk-spec-shiye { --mk-accent: rgba(136, 112, 184, 0.28); }
.mk-spec { position: relative; }
.mk-spec::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--mk-accent);
  opacity: 0.75;
}

@keyframes mk-hint-bob-v {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-6px); opacity: 1; }
}

@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.5) rotate(-12deg); }
  60% { opacity: 1; transform: scale(0.92) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(-3deg); }
}
.stamp-in { animation: stamp-in 0.6s ease-out both; }

@keyframes mk-node-ring {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

@keyframes mk-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes mk-stamp-pop {
  0% { transform: scale(1.8) rotate(-30deg); opacity: 0; }
  60% { transform: scale(0.95) rotate(-4deg); opacity: 1; }
  100% { transform: scale(1) rotate(-6deg); opacity: 1; }
}
