@font-face {
  font-family: "JinKai";
  src: url("/assets/fonts/JinKai-brand.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2");
}

:root {
  /* —— 冷淡极简（B 风）调色：中性灰单色（不偏暖也不偏蓝）+ 一丝克制墨红。沿用旧变量名，只换值。 —— */
  --parchment: #eeedec;
  --ivory: #f8f8f7;
  --warm-sand: #e7e6e5;
  --brand: #18181a;
  --brand-light: #3b3b3e;
  --seal: #9a463f;
  --seal-soft: #a85a52;
  --gold: #7e7d76;
  --near-black: #18181a;
  --dark-warm: #232220;
  --olive: #494844;
  --stone: #6b6a68;
  --border: #c9c8c6;
  --border-soft: #d9d8d6;
  --tag-bg: #e7e6e5;
  --display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, "Noto Serif SC", monospace;
  --radius: 6px;
  --radius-sm: 4px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* 锁定按 CSS 字号渲染：不让 iOS Safari 自作主张缩放正文（否则手机上偏小 / 忽大忽小） */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  position: relative;
  background: var(--parchment);
  color: var(--near-black);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 锁定缩放：禁止双指捏合 / 双击放大，仅保留滚动 */
  touch-action: pan-x pan-y;
}

/* 纸纹微噪点：让暖纸背景有质地，而非纯色 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 1;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

/* 双栏：左固定身份牌（堂）+ 右填写/命书报告 */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 390px) 1fr;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.aside {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 48px 52px 28px 0;
  border-right: 1px solid var(--border-soft);
}

.aside h1 {
  font-size: clamp(56px, 6vw, 96px);
  margin-bottom: 16px;
}

.aside-sub {
  margin: 0 0 18px;
  color: var(--olive);
  font-size: 18px;
  letter-spacing: 0.44em;
}

.aside-intro {
  margin: 0 0 26px;
  color: var(--olive);
  font-size: 16px;
  line-height: 1.85;
  max-width: 22em;
}

.method-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.method-list li {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
}

.method-list .n {
  font-family: var(--display);
  color: var(--seal);
  font-size: 15px;
}

.method-list b {
  font-weight: 600;
  color: var(--dark-warm);
  font-size: 16px;
}

.method-list p {
  margin: 3px 0 0;
  color: var(--stone);
  font-size: 13.5px;
  line-height: 1.6;
}

.aside-foot {
  margin-top: auto;
  padding-top: 20px;
}

.aside-seal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--seal);
  border-radius: var(--radius-sm);
  color: var(--seal);
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  transform: rotate(-4deg);
  box-shadow: 0 0 0 1px var(--seal) inset;
  margin-bottom: 16px;
}

.aside-disc {
  margin: 0;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.7;
  max-width: 20em;
}

/* 堂前小记：链接 + 浮层 */
.about-link {
  display: inline-block;
  align-self: start;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  background: none;
  color: var(--seal);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.about-link:hover {
  border-bottom-color: var(--seal);
}

.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 18, 14, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: about-fade 180ms ease;
}

@keyframes about-fade {
  from {
    opacity: 0;
  }
}

.about-card {
  position: relative;
  width: min(540px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 38px 34px 30px;
  box-shadow: 0 30px 80px -20px rgba(20, 18, 14, 0.5);
  animation: about-rise 200ms ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 18, 14, 0.2) transparent;
}
.about-card::-webkit-scrollbar {
  width: 6px;
}
.about-card::-webkit-scrollbar-track {
  background: transparent;
}
.about-card::-webkit-scrollbar-thumb {
  background: rgba(20, 18, 14, 0.18);
  border-radius: 3px;
}
.about-card::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 18, 14, 0.3);
}

@keyframes about-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.about-card h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
  color: var(--near-black);
}

.about-card p {
  color: var(--olive);
  font-size: 15px;
  line-height: 1.88;
  margin: 0 0 14px;
}

.about-card strong {
  color: var(--near-black);
  font-weight: 600;
}

.about-card a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--brand);
}

.about-credit {
  color: var(--dark-warm);
}

.about-disc {
  font-size: 13px !important;
  color: var(--stone) !important;
  line-height: 1.7 !important;
  margin: 18px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

/* —— 掷筊问杯 —— */
.jiao-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: start;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: none;
  color: var(--seal);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.jiao-link svg {
  flex: none;
}

.jiao-link:hover {
  border-color: var(--seal);
}

.jiao-card {
  text-align: center;
}

.jiao-card h3 {
  text-align: center;
}

.jiao-stage {
  display: flex;
  justify-content: center;
  padding: 22px 0 16px;
}

.jiao-cups {
  display: flex;
  gap: 26px;
  perspective: 700px;
}

.jiao-cup {
  position: relative;
  width: 82px;
  height: 50px;
  border-radius: 14px 14px 50px 50px;
  /* 玉石质感：高光 + 主体三段渐变 */
  background:
    radial-gradient(80% 60% at 32% 16%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(158deg, #dccba9 0%, #bd9f76 52%, #8c6f48 100%);
  box-shadow:
    inset 0 -9px 16px rgba(70, 48, 20, 0.4),
    inset 0 5px 9px rgba(255, 248, 234, 0.5),
    0 12px 20px -10px rgba(20, 18, 14, 0.55);
  transform-style: preserve-3d;
  transition:
    background 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-radius 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 收口的边沿光，强化「一片玉珓」的厚度感 */
.jiao-cup::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* 仰：圣面（平面）朝上 = 阳 = 朱砂玉 */
.jiao-cup.up {
  border-radius: 16px 16px 52px 52px;
  background:
    radial-gradient(78% 58% at 50% 14%, rgba(255, 226, 214, 0.6), rgba(255, 255, 255, 0) 58%),
    linear-gradient(160deg, #c5564c 0%, #9e2b25 55%, #75201b 100%);
  box-shadow:
    inset 0 -9px 16px rgba(74, 12, 8, 0.5),
    inset 0 6px 11px rgba(255, 198, 182, 0.45),
    0 12px 20px -10px rgba(20, 18, 14, 0.55);
}

/* 俯：背面（凸面）朝上 = 阴 = 墨玉（更鼓、高光偏一侧显凸面） */
.jiao-cup.down {
  border-radius: 52px 52px 16px 16px;
  background:
    radial-gradient(70% 66% at 36% 26%, rgba(186, 211, 240, 0.7), rgba(255, 255, 255, 0) 52%),
    linear-gradient(160deg, #3a648f 0%, #1b365d 56%, #102542 100%);
  box-shadow:
    inset 0 -8px 15px rgba(5, 14, 34, 0.6),
    inset 0 5px 10px rgba(170, 202, 240, 0.45),
    0 12px 20px -10px rgba(20, 18, 14, 0.6);
}

@keyframes jiao-tumble {
  0% {
    transform: translateY(0) rotateX(0);
  }
  30% {
    transform: translateY(-28px) rotateX(330deg);
  }
  60% {
    transform: translateY(-15px) rotateX(660deg);
  }
  85% {
    transform: translateY(0) rotateX(980deg);
  }
  93% {
    transform: translateY(-6px) rotateX(1035deg);
  }
  100% {
    transform: translateY(0) rotateX(1080deg);
  }
}

.jiao-cup.is-tumbling {
  animation: jiao-tumble 1.7s cubic-bezier(0.32, 0.42, 0.2, 1) both;
}

.jiao-cups .jiao-cup:nth-child(2).is-tumbling {
  animation-duration: 1.95s;
}

.jiao-body {
  min-height: 96px;
}

.jiao-guide {
  margin: 0;
  color: var(--olive);
  font-size: 14px;
  line-height: 1.75;
}

.jiao-casting {
  color: var(--stone);
}

.jiao-result strong {
  display: block;
  font-size: 23px;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.jiao-result span {
  display: block;
  margin: 5px 0 9px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--seal);
}

.jiao-result p {
  margin: 0;
  color: var(--olive);
  font-size: 15px;
  line-height: 1.75;
}

.jiao-throw {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 16px 0 4px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--ivory);
  font: inherit;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: background 160ms ease;
}

.jiao-throw:hover {
  background: var(--brand-light);
}

.jiao-throw:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .jiao-cup.is-tumbling {
    animation: none;
  }
}

.about-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--stone);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 160ms ease, color 160ms ease;
}

.about-close:hover {
  color: var(--near-black);
  background: var(--parchment);
}

.main {
  padding: 64px 0 64px 56px;
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}

.hero {
  min-height: 58vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.78fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0 52px;
  border-bottom: 1px solid var(--border-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--seal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--display);
  margin-bottom: 24px;
  color: var(--near-black);
  font-size: clamp(64px, 11vw, 128px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
}

h2 {
  font-family: var(--display);
  margin-bottom: 18px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.04em;
}

h3 {
  font-family: var(--display);
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--olive);
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link,
.submit-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-link,
.submit-button {
  border: none;
  background: var(--brand);
  color: #faf9f5;
  letter-spacing: 0.08em;
}

.secondary-link {
  border: none;
  background: var(--warm-sand);
  color: var(--dark-warm);
}

.primary-link:hover,
.submit-button:hover {
  background: var(--brand-light);
}

.secondary-link:hover {
  background: #dfe2e5;
}

.hero-panel,
.form-card,
.result-card,
.method article {
  position: relative;
  border-radius: var(--radius);
  background: var(--ivory);
}

.hero-panel {
  min-height: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--border-soft);
  border-radius: 3px;
  pointer-events: none;
}

.seal {
  width: 96px;
  height: 96px;
  position: absolute;
  top: 40px;
  right: 40px;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--seal);
  border-radius: var(--radius-sm);
  color: var(--seal);
  font-family: var(--display);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.06em;
  transform: rotate(-4deg);
  box-shadow: 0 0 0 1px var(--seal) inset;
  opacity: 0.92;
}

.pillar-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
  margin-bottom: 24px;
}

.pillar-strip span,
.pillar span,
.wuxing-row em {
  color: var(--stone);
  font-size: 13px;
}

.pillar-strip span {
  align-self: center;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--brand);
  background: var(--parchment);
}

.pillar-strip strong {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--near-black);
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  letter-spacing: 0.14em;
}

.pillar-strip strong:first-letter {
  color: var(--brand);
}

.hero-panel p {
  color: var(--olive);
  font-size: 18px;
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border-soft);
}

.form-card,
.result-card {
  padding: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--olive);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  color: var(--near-black);
  padding: 10px 12px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

/* 原生日期/时间控件：去掉系统默认外观，与其它字段左对齐一致 */
input[type="date"],
input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  text-align: left;
}

/* iOS 上 time 输入值仍会居中，补这两条把编辑区也左对齐 */
input[type="time"]::-webkit-datetime-edit {
  text-align: left;
}
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  text-align: left;
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.wide-field {
  grid-column: span 3;
}

/* 农历日期选择器：选「农历」时出现，年/月/日三个控件一行 */
#date-field.is-lunar {
  grid-column: span 2;
}

.lunar-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lunar-date > * {
  flex: 1 1 76px;
  min-width: 0;
}

/* 收紧左右内边距，省出空间让四个控件在一行里都不挤、不裁字 */
.lunar-date > *,
.lunar-date select {
  padding-left: 10px;
  padding-right: 8px;
}

.lunar-date #lunar-year {
  flex: 0 0 70px;
}

.lunar-date #birth-time {
  flex: 1 1 100px;
}

.submit-button {
  width: 100%;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.fineprint,
.disclaimer {
  margin: 16px 0 0;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.55;
}

.result-card {
  min-height: 620px;
}

.empty-state {
  min-height: 560px;
  display: grid;
  align-content: center;
}

.empty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.empty-grid figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--ivory);
}

.empty-grid svg {
  width: 50%;
  height: auto;
  color: var(--stone);
  opacity: 0.5;
}

.empty-grid img {
  width: 82%;
  height: auto;
  opacity: 0.86;
}

/* 排盘后：每根柱顶一枚淡淡的对应水墨小图 */
.pillar-art {
  display: block;
  width: 46px;
  height: auto;
  margin: 0 auto 10px;
  opacity: 0.42;
}

.empty-grid figcaption {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--stone);
  opacity: 0.62;
}

.empty-state p:not(.eyebrow),
.method p,
.reading-list p,
.error-box p {
  color: var(--olive);
  font-size: 17px;
  line-height: 1.62;
}

.result-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.result-head h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.inquiry-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.inquiry-line span {
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--brand);
  font-size: 13px;
  padding: 2px 7px;
}

.inquiry-line p {
  margin: 0;
  color: var(--olive);
  font-size: 15px;
  line-height: 1.5;
}

.time-adjustment {
  display: grid;
  gap: 4px;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  padding: 12px 14px;
  margin: -6px 0 18px;
}

.time-adjustment.subtle {
  background: var(--parchment);
}

.time-adjustment span {
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.time-adjustment p {
  margin: 0;
  color: var(--olive);
  font-size: 14px;
  line-height: 1.55;
}

.pillar {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  padding: 16px;
}

.pillar strong {
  font-family: var(--display);
  color: var(--brand);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
}

.wuxing-bars {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.wuxing-note {
  margin: 0 0 26px;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.6;
}

.wuxing-row {
  display: grid;
  grid-template-columns: 28px 1fr 22px 44px;
  gap: 12px;
  align-items: center;
}

.wuxing-row span,
.wuxing-row b {
  color: var(--dark-warm);
  font-weight: 500;
}

.bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--warm-sand);
}

.bar-track i {
  width: calc(var(--value) / 4 * 100%);
  min-width: 6px;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--brand);
}

.reading-list {
  display: grid;
  gap: 14px;
}

.advanced-block {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--border-soft);
  padding: 22px 0 0;
  margin-bottom: 24px;
}

.mini-head {
  display: grid;
  gap: 6px;
}

.mini-head span,
.luck-panel span,
.flow-list span,
.advanced-grid span {
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.mini-head p,
.luck-panel p,
.advanced-grid p {
  margin: 0;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.5;
}

/* 「怎么看这张盘」链接：与命理细盘标题同排靠右 */
.mini-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.primer-link {
  flex: none;
  padding: 0;
  border: none;
  background: none;
  color: var(--seal);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.primer-link:hover {
  border-color: var(--seal);
}

/* 看盘说明浮层里的十神速查表 */
.primer-shishen-intro {
  margin-bottom: 4px;
}

.primer-shishen {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.primer-shishen li {
  display: grid;
  grid-template-columns: 86px 38px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  background: var(--parchment);
  border-radius: var(--radius-sm);
}

.primer-shishen b {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}

.primer-shishen li > span {
  color: var(--seal);
  font-size: 13px;
}

.primer-shishen em {
  color: var(--olive);
  font-style: normal;
  font-size: 14px;
}

/* 命理细盘里可点的术语：虚线下划线，点开弹白话小注 */
.term {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px dotted currentColor;
  -webkit-tap-highlight-color: transparent;
}

.term:hover {
  opacity: 0.78;
}

.term-pop {
  position: absolute;
  z-index: 60;
  max-width: min(280px, calc(100vw - 24px));
  padding: 10px 13px;
  border-radius: 8px;
  background: #1c1f24;
  color: #e8eaec;
  font-size: 13px;
  line-height: 1.62;
  box-shadow: 0 14px 34px -12px rgba(20, 18, 14, 0.62);
  animation: term-pop-in 140ms ease;
}

.term-pop[hidden] {
  display: none;
}

.term-pop b {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
}

@keyframes term-pop-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.detail-table {
  display: grid;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.detail-row {
  display: grid;
  grid-template-columns: 48px 72px 64px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--parchment);
  padding: 11px 14px;
}

.detail-row:nth-child(even) {
  background: #e1e4e8;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row b,
.detail-row span {
  color: var(--stone);
  font-size: 13px;
  font-weight: 400;
}

.detail-row strong {
  font-family: var(--display);
  color: var(--brand);
  font-size: 22px;
  font-weight: 500;
}

.detail-row em,
.flow-list i,
.dayun-list i {
  color: var(--olive);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

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

.advanced-grid article,
.luck-panel,
.flow-list {
  border-radius: var(--radius-sm);
  background: var(--parchment);
  padding: 14px;
}

/* 当年流月（按节气）12 格 */
.liuyue-block {
  border-radius: var(--radius-sm);
  background: var(--parchment);
  padding: 14px;
}

.liuyue-block > span {
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.liuyue-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.liuyue-list i {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 6px;
  background: var(--ivory);
  text-align: center;
}

.liuyue-list i.is-now {
  background: #e3e6ea;
  box-shadow: inset 0 0 0 1.5px var(--seal);
}

.liuyue-now {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--seal);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.liuyue-list b {
  font-size: 12px;
  font-weight: 400;
  color: var(--stone);
}

.liuyue-list strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand);
}

.liuyue-list em {
  font-size: 12px;
  font-style: normal;
  color: var(--olive);
}

.advanced-grid strong {
  display: block;
  margin: 8px 0;
  font-family: var(--display);
  color: var(--brand);
  font-size: 26px;
  font-weight: 500;
}

.luck-panel {
  display: grid;
  gap: 12px;
}

.dayun-list,
.flow-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dayun-list i,
.flow-list i {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  border-radius: 6px;
  background: var(--ivory);
  padding: 6px 8px;
}

.dayun-list b {
  color: var(--brand);
  font-weight: 500;
}

.reading-list article {
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.reading-list article h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reading-list article h3::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--seal);
  transform: rotate(45deg);
}

.error-box {
  border-left: 4px solid var(--brand);
  background: var(--parchment);
  padding: 22px;
}

.ai-reading-panel {
  display: grid;
  gap: 14px;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  padding: 18px;
  margin-top: 18px;
}

.ai-reading-panel span {
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.ai-reading-panel p {
  margin: 6px 0 0;
  color: var(--olive);
  font-size: 15px;
  line-height: 1.6;
}

.ai-button {
  min-height: 46px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--ivory);
  cursor: pointer;
}

.ai-button:hover {
  background: var(--brand-light);
}

.ai-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ai-download-row {
  justify-self: start;
  flex-wrap: wrap;
}

.ai-download-label {
  color: var(--stone);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.ai-download {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  color: var(--brand);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.ai-download::before {
  content: "↓";
  font-size: 15px;
  line-height: 1;
}

/* 把握度小徽标：替代生硬的「（把握度：X）」括号 */
.conf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  vertical-align: 0.06em;
  line-height: 1.7;
}

.conf::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.conf-high {
  background: var(--tag-bg);
  color: var(--brand);
}

.conf-mid {
  background: #f0e7d4;
  color: #8a6d34;
}

.conf-low {
  background: var(--warm-sand);
  color: var(--stone);
}

.ai-download:hover {
  background: var(--parchment);
  border-color: var(--brand);
}

.ai-reading-result {
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

.ai-reading-result h3 {
  margin: 14px 0 8px;
  color: var(--near-black);
  font-size: 22px;
}

.ai-reading-result h4 {
  margin: 12px 0 6px;
  color: var(--near-black);
  font-size: 18px;
  font-weight: 500;
}

.ai-reading-result ul {
  margin: 8px 0 12px;
  padding-left: 20px;
  color: var(--olive);
  font-size: 15px;
  line-height: 1.7;
}

.ai-reading-result li {
  margin: 4px 0;
}

.ai-reading-result strong {
  color: var(--near-black);
  font-weight: 500;
}

.ai-followup {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.ai-followup-head span {
  color: var(--seal);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.ai-followup-head p {
  margin: 4px 0 0;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.5;
}

.ai-thread {
  display: grid;
  gap: 10px;
}

.ai-thread:empty {
  display: none;
}

.bubble {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  line-height: 1.66;
}

.bubble.ask {
  justify-self: end;
  max-width: 80%;
  background: var(--tag-bg);
  color: var(--near-black);
}

.bubble.ask p {
  margin: 0;
}

.bubble.reply {
  justify-self: stretch;
  max-width: 100%;
  background: var(--parchment);
  color: var(--olive);
}

.bubble.reply.waiting {
  color: var(--stone);
}

.bubble.reply.error {
  border-color: #d9bdbb;
  color: var(--seal);
}

.bubble.reply p {
  margin: 0 0 8px;
}

.bubble.reply > :last-child {
  margin-bottom: 0;
}

.bubble-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.bubble-dl-label {
  color: var(--stone);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.bubble-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  color: var(--stone);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 150ms ease;
}

/* 邀 TA 合盘：下载行右侧的入口按钮（墨红，与 .md/PDF 分隔） */
.invite-open {
  color: var(--seal);
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--border-soft);
}
.invite-open::before {
  content: "✦";
  font-size: 11px;
}
.invite-open:hover {
  color: var(--seal);
  opacity: 0.7;
}
.report-link-open {
  color: var(--seal);
}
.report-link-open::before {
  content: "↗";
  font-size: 12px;
}
.report-link-open:hover {
  color: var(--seal);
  opacity: 0.7;
}

/* 邀 TA 合盘 浮层内部 */
.invite-card {
  width: min(468px, 100%);
}
.invite-gen-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 2px 0 16px;
}
.invite-card #invite-rel {
  width: auto;
  min-width: 118px;
  min-height: 44px;
  padding: 10px 14px;
}
.invite-gen-btn {
  min-height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--seal);
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 150ms ease;
}
.invite-gen-btn:hover {
  opacity: 0.88;
}
.invite-gen-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.invite-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px 0 18px;
}
.invite-link-row input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  color: var(--stone);
  font-size: 12px;
}
.invite-copy-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--seal);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--seal);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.invite-copy-btn:hover {
  background: var(--seal);
  color: #fff;
}
.invite-steps {
  margin: 2px 0 6px;
}
.invite-steps-title {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--seal);
}
.invite-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--olive);
  font-size: 14px;
  line-height: 1.85;
}
.invite-steps li {
  margin-bottom: 4px;
}
.invite-steps strong {
  color: var(--near-black);
  font-weight: 600;
}

/* 合盘页：合盘既成后「分享结果与对方」面板 */
.syn-share {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.syn-hook { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; background: var(--ivory); border: 1px solid var(--border); border-left: 3px solid var(--seal); border-radius: 8px; padding: 12px 14px; margin: 10px 0 14px; }
.syn-hook-txt { flex: 1; min-width: 200px; margin: 0 !important; font-size: 13px !important; color: var(--olive) !important; line-height: 1.7; }
.syn-hook .invite-copy-btn { flex: 0 0 auto; align-self: center; }
.syn-again { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; font-size: 13.5px; }
.syn-again span { color: var(--stone); }
.syn-again a { color: var(--seal); text-decoration: none; border-bottom: 1px solid transparent; }
.syn-again a:hover { border-bottom-color: var(--seal); }
.syn-share-title {
  color: var(--seal);
  font-size: 14px;
  letter-spacing: 0.12em;
}
.syn-share p {
  margin: 8px 0 12px;
  color: var(--stone);
  font-size: 14px;
  line-height: 1.7;
}
.syn-share-ways {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--olive);
  font-size: 14px;
  line-height: 1.85;
}
.syn-share-ways strong {
  color: var(--seal);
  font-weight: 600;
}
.syn-share-note {
  margin: 10px 0 0 !important;
  font-size: 12px !important;
  color: var(--stone);
}
.syn-keep-hint {
  margin: 10px 0 0;
  color: var(--stone);
  font-size: 12px;
  line-height: 1.6;
}

.bubble-support {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--seal);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.bubble-support::before {
  content: "♡";
  font-size: 12px;
}

.bubble-support:hover {
  opacity: 0.75;
}

/* 随缘随喜浮层 */
.support-card h3 {
  text-align: center;
}

.support-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 16px auto 8px;
  border-radius: 8px;
}

.support-cap {
  text-align: center;
  color: var(--stone) !important;
  font-size: 13px !important;
  letter-spacing: 0.08em;
  margin: 2px 0 0 !important;
}

.bubble-download::before {
  content: "↓";
  font-size: 13px;
  line-height: 1;
}

.bubble-download:hover {
  color: var(--brand);
}

.bubble.reply h3,
.bubble.reply h4 {
  margin: 10px 0 6px;
  color: var(--near-black);
  font-size: 16px;
  font-weight: 500;
}

.bubble.reply ul {
  margin: 6px 0 8px;
  padding-left: 18px;
}

.bubble.reply strong {
  color: var(--near-black);
  font-weight: 500;
}

.ai-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.ai-presets[hidden] {
  display: none;
}

.ai-preset {
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--stone);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.ai-preset:hover {
  background: var(--tag-bg);
  color: var(--brand);
  border-color: transparent;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

/* 续问输入：下划线样式，空闲时显示闪烁伪光标，明确「可点此输入」 */
.ai-chat-field {
  position: relative;
}

.ai-chat-field input {
  width: 100%;
  min-height: 44px;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--near-black);
  padding: 8px 12px 8px 18px;
}

.ai-chat-field input::placeholder {
  color: var(--stone);
}

.ai-chat-field input:focus {
  border-bottom-color: var(--brand);
  box-shadow: none;
}

.ai-caret {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1.15em;
  background: var(--brand);
  pointer-events: none;
  animation: caret-blink 1.1s steps(1) infinite;
}

/* 聚焦或已有内容时，隐藏伪光标（交给真实光标） */
.ai-chat-field input:focus ~ .ai-caret,
.ai-chat-field input:not(:placeholder-shown) ~ .ai-caret {
  opacity: 0;
  animation: none;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.ai-chat-form .ai-button {
  min-width: 64px;
  min-height: 38px;
  padding: 7px 18px;
  margin-bottom: 3px;
}

.method {
  padding: 64px 0 16px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  counter-reset: method;
}

.method article {
  padding: 24px;
  overflow: hidden;
  counter-increment: method;
}

.method article::before {
  content: counter(method, cjk-ideographic);
  position: absolute;
  top: -18px;
  right: 4px;
  color: var(--warm-sand);
  font-family: var(--display);
  font-size: 86px;
  line-height: 1;
  pointer-events: none;
}

.method article h3 {
  position: relative;
}

@media (max-width: 880px) {
  /* 双栏在窄屏堆叠：身份牌在上、填写/报告在下 */
  .app {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }

  .aside {
    position: static;
    height: auto;
    overflow: visible;
    padding: 30px 0 26px;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }

  .method-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }

  .aside-foot {
    margin-top: 26px;
    padding-top: 22px;
  }

  .main {
    padding: 28px 0 40px;
  }
}

@media (max-width: 560px) {
  body {
    letter-spacing: 0.02em;
  }

  /* 手机上命书正文略放大，读着更舒服 */
  .ai-reading-panel p,
  .ai-reading-result ul,
  .bubble {
    font-size: 16px;
  }

  /* 命书 / 合盘详解正文再加一号，手机上读得更舒服 */
  .ai-reading-result p,
  .ai-reading-result li {
    font-size: 17px;
  }

  /* —— 移动端次级文字整体上移到舒适区（次级层 +1~2px） —— */
  label {
    font-size: 15px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .method-list p,
  .wuxing-note,
  .detail-row b,
  .detail-row span,
  .advanced-grid p,
  .fineprint,
  .aside-disc,
  .aside-intro,
  .time-adjustment p,
  .inquiry-line p {
    font-size: 14px;
  }
  .pillar em,
  .ai-preset,
  .ln em,
  .ly .sg,
  .liuyue-list em {
    font-size: 13px;
  }

  h1 {
    font-size: 72px;
  }

  /* 首屏收紧：八字示意卡随内容高度，不再占满一屏 */
  .hero {
    min-height: auto;
    gap: 20px;
    padding: 16px 0 36px;
  }

  .hero-panel {
    min-height: auto;
    padding: 22px;
  }

  .pillar-strip {
    margin-bottom: 16px;
  }

  .pillar-strip strong {
    font-size: 26px;
    padding: 6px 0;
  }

  .hero-panel p {
    font-size: 15px;
  }

  /* 表单保持两列，日期/时间等成对排，不再堆成长长一竖列 */
  .inquiry-line,
  .advanced-grid,
  .detail-row {
    grid-template-columns: 1fr;
  }

  /* 四柱：手机上仍一行四柱、收紧高度，不要堆成四个大盒子 */
  .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .pillar {
    min-height: auto;
    padding: 12px 6px;
    row-gap: 6px;
    text-align: center;
  }

  .pillar span {
    font-size: 12px;
  }

  .pillar strong {
    font-size: clamp(20px, 6vw, 26px);
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 12px;
  }

  .wide-field {
    grid-column: span 2;
  }

  .form-card,
  .result-card,
  .method article {
    padding: 20px;
  }

  .seal {
    width: 66px;
    height: 66px;
    top: 20px;
    right: 20px;
    font-size: 21px;
  }

  /* 命盘头：手机上仍是「日主在左、圆环在右」，圆环缩小、标题不折行 */
  .result-head {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .result-head-main {
    min-width: 0;
  }
  .result-head h2 {
    font-size: clamp(23px, 6vw, 30px);
    white-space: nowrap;
  }
  .chart-mark {
    width: 96px;
    height: 96px;
  }
  /* 四柱小图在手机上略缩 */
  .pillar-art {
    width: 36px;
    margin-bottom: 6px;
  }
}

/* —— 加载态：转圈 + 文案，明确告诉用户正在处理，不是卡死 —— */
.submit-button.is-loading,
.ai-button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: wait;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(250, 249, 245, 0.32);
  border-top-color: #faf9f5;
  animation: btn-spin 0.7s linear infinite;
}

/* 提高特异性盖过 .ai-reading-panel span 的墨蓝色，否则按钮文案与底色同色看不清 */
.submit-button.is-loading .btn-label,
.ai-button.is-loading .btn-label {
  color: #faf9f5;
  font-size: inherit;
  letter-spacing: 0.08em;
}

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

/* 命书详解出文前的占位提示 */
.ai-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--stone);
}

.ai-spinner {
  width: 15px;
  height: 15px;
  border-color: rgba(58, 74, 94, 0.22);
  border-top-color: var(--brand);
}

.ai-dots {
  display: inline-flex;
  gap: 3px;
}

.ai-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.25;
  animation: ai-dot-pulse 1.2s ease-in-out infinite;
}

.ai-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ai-dot-pulse {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner,
  .ai-dots i {
    animation: none;
  }
}

/* ========================================================================
   ③④ B 风 · 命盘报告 / 命书 / 续问 组件细化（覆盖基础规则，在媒体查询之前）
   ======================================================================== */

/* 命盘头：日主细宋体 + 右上角数据圆环 */
.result-head {
  align-items: center;
}
.result-head h2 {
  font-weight: 300;
  letter-spacing: 0.04em;
}
.chart-mark {
  flex: none;
  width: 208px;
  height: 208px;
  opacity: 0.95;
}
.chart-mark .ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}
.chart-mark .dot {
  fill: var(--seal);
}
.chart-mark text {
  font-family: var(--sans);
}
.chart-mark .t-o {
  fill: var(--stone);
}
.chart-mark .t-i {
  fill: var(--near-black);
}

/* 所问一行：去底色，发丝线分隔 */
.inquiry-line {
  background: none;
  padding: 14px 0 0;
  border-top: 1px solid var(--border-soft);
  align-items: baseline;
}
.inquiry-line span {
  background: none;
  color: var(--stone);
  padding: 0;
  font-size: 11.5px;
  letter-spacing: 0.2em;
}
.inquiry-line p {
  color: var(--dark-warm);
}

/* 真太阳时：去底色 */
.time-adjustment {
  background: none;
  padding: 0;
  margin: 0 0 18px;
}
.time-adjustment span {
  color: var(--stone);
  font-size: 11.5px;
  letter-spacing: 0.2em;
}

/* 四柱：无卡片、细竖线分隔、大字细宋体 + 人生段 */
.pillars {
  gap: 0;
}
.pillar {
  min-height: auto;
  background: none;
  border-radius: 0;
  padding: 8px 6px;
  border-left: 1px solid var(--border-soft);
  text-align: center;
  align-content: start;
}
.pillars .pillar:first-child {
  border-left: none;
}
.pillar span {
  color: var(--stone);
  font-size: 11.5px;
  letter-spacing: 0.28em;
}
.pillar strong {
  display: block;
  margin-top: 14px;
  color: var(--near-black);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0.04em;
}
.pillar em {
  display: block;
  margin-top: 12px;
  color: var(--stone);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
}
/* 并入四柱卡的逐柱十神 / 藏干（原命理细盘四柱表） */
.pillar .p-tg {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--olive);
  font-family: var(--sans);
}
.pillar .p-hid {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--stone);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.pillar .p-tg .term,
.pillar .p-hid .term,
.pillar .p-hid .gan-term {
  font-size: inherit;
}

/* 五行：生克环（左）+ 计数条（右） */
.wuxing-wrap {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 6px;
}
.wuxing-ring svg {
  width: 100%;
  height: auto;
  display: block;
}
.wuxing-ring .ring-cap {
  text-align: center;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--stone);
  font-family: var(--sans);
}
@media (max-width: 560px) {
  .wuxing-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .wuxing-ring {
    max-width: 250px;
    margin: 0 auto;
  }
}

/* 五行：细线条 */
.bar-track {
  height: 3px;
  border-radius: 2px;
  background: var(--border-soft);
}
.bar-track i {
  background: var(--near-black);
}
.wuxing-row span,
.wuxing-row b {
  color: var(--near-black);
}

/* 旺衰 / 格局：双 stat 块（发丝线分隔） */
.advanced-grid {
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 0;
}
.advanced-grid article {
  background: var(--parchment);
  padding: 22px 24px;
  border-radius: 0;
}
.advanced-grid span {
  color: var(--stone);
  font-size: 11.5px;
  letter-spacing: 0.26em;
}
.advanced-grid strong {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--display);
  color: var(--near-black);
  font-weight: 500;
  font-size: 28px;
}
.advanced-grid p {
  margin: 0;
  color: var(--dark-warm);
  font-size: 13px;
  line-height: 1.8;
}

/* 大运：时间轴 */
.luck-panel {
  background: none;
  padding: 0;
}
.dayun-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 6px;
}
.dayun-list i {
  flex: 1;
  display: block;
  position: relative;
  padding-top: 26px;
  text-align: center;
  background: none;
  border-radius: 0;
}
.dayun-list i::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.dayun-list i::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--stone);
  background: var(--parchment);
}
.dayun-list i b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  color: var(--near-black);
}
.dayun-list i span {
  display: block;
  margin-top: 6px;
  color: var(--stone);
  font-size: 11.5px;
}

/* 流年：描边 tag，当年（首个）墨红 */
.flow-list {
  background: none;
  padding: 0;
}
.flow-list i {
  border: 1px solid var(--border);
  background: none;
  padding: 8px 14px;
}
.flow-list > div > i:first-child {
  border-color: var(--seal);
  background: var(--seal);
  color: #fff;
}

/* 把握度：墨红描边小药丸（低调、别抢正文） */
.conf,
.conf-high,
.conf-mid,
.conf-low {
  background: none;
  color: var(--seal);
  border: 1px solid rgba(154, 70, 63, 0.45);
  padding: 0 7px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  vertical-align: 0.12em;
  margin: 0 1px;
}
.conf::before {
  display: none;
}

/* 命书正文：序号墨红、宋体行距 */
.ai-reading-result h3 {
  font-weight: 600;
}
.ai-followup-head span {
  color: var(--seal);
}

/* 续问气泡 */
.bubble.ask {
  background: var(--warm-sand);
}


/* ========================================================================
   两栏布局适配：保留原左右布局，仅换冷色 + B 风小样式
   ======================================================================== */
/* eyebrow → 墨红 kicker */
.eyebrow {
  color: var(--seal);
}
/* 表单字段在冷底色下需可见：浅一档背景 + 细边 */
input,
textarea,
select {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--seal);
  box-shadow: none;
}
/* 主按钮：墨色实心 */
.submit-button {
  background: var(--near-black);
  color: #f1efe9;
  letter-spacing: 0.2em;
}
.submit-button:hover {
  background: #000;
}
/* 命书详解面板：去卡片内缩，改无背景 + 顶线，与上文对齐 */
.ai-reading-panel {
  background: none;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
/* 报告区数据圆环：两栏右列略小一点 */
.chart-mark {
  width: 168px;
  height: 168px;
}

/* 移动端字号收尾：报告组件覆盖块在媒体查询之后，这里再用媒体查询兜底，确保最后生效 */
@media (max-width: 560px) {
  .pillar em {
    font-size: 13px;
  }
  .pillar .p-tg {
    font-size: 12px;
  }
  .pillar .p-hid {
    font-size: 11px;
    line-height: 1.65;
  }
  .advanced-grid p {
    font-size: 14px;
  }
  .advanced-grid span {
    font-size: 12.5px;
  }
}

/* —— 字体：长正文用无衬线更利于阅读；标题 / 四柱 / 数字 / 日主等展示性文字仍保留宋体 —— */
.ai-reading-result,
.reading-list p,
.reading-list li,
.disclaimer,
.bubble,
.aside-intro,
.method-list p,
.about-card p,
.about-card li,
.empty-state p,
.aside-disc,
.fineprint,
.invite-steps,
.syn-share p,
.syn-share-ways,
.syn-keep-hint {
  font-family: var(--sans);
}
/* 正文里的小节标题（一、二、三…渲染为 h3/h4）：默认无衬线 + 主题红 */
.ai-reading-result h3,
.ai-reading-result h4,
.bubble.reply h3,
.bubble.reply h4,
.reading-list article h3 {
  font-family: var(--sans);
  color: var(--seal);
}

/* —— 编辑区（表单标签 / 下拉 / 输入 / 表单标题）统一默认无衬线，不用宋体 —— */
label,
input,
textarea,
select,
.section-heading h2,
.person > legend,
.submit-button {
  font-family: var(--sans);
}

/* —— 正文排版更松，读着不挤 —— */
.ai-reading-result {
  line-height: 1.9;
}
.ai-reading-result p {
  margin: 0 0 1.15em;
}
.ai-reading-result ul {
  margin: 10px 0 1.15em;
}
.ai-reading-result li {
  margin: 6px 0;
}
.ai-reading-result h3 {
  margin-top: 30px;
}
.ai-reading-result h4 {
  margin-top: 26px;
}
.bubble.reply {
  line-height: 1.9;
}
.bubble.reply p {
  margin: 0 0 1.05em;
}

/* —— 首页顶部功能入口卡片（两人合盘 / 占卦问卜 / 掷筊问杯）—— */
.entry-cards-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}
.entry-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.entry-card:hover {
  border-color: var(--seal);
}
.entry-card .glyph {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--seal);
  border-radius: var(--radius-sm);
  color: var(--seal);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
}
.entry-card b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--near-black);
  font-family: var(--sans);
}
.entry-card p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--stone);
  font-family: var(--sans);
}
@media (max-width: 560px) {
  .entry-cards-top { gap: 8px; }
  .entry-card { flex-direction: column; gap: 8px; padding: 12px 6px 10px; text-align: center; }
  .entry-card p { display: none; }
  .entry-card b { font-size: 13px; font-weight: 500; }
}

/* 网格里的字段允许收缩：date/time 等控件有固有宽度，不加 min-width:0 会把手机页面撑出横向滚动 */
.field-grid label,
.field-grid input,
.field-grid select,
.field-grid textarea,
.entry-card {
  min-width: 0;
}

/* ============================================================
   观测台改版（redesign-observatory 分支）：单栏 + 顶栏 + 器物框
   ============================================================ */

/* —— 顶栏 —— */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(234, 233, 232, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-in {
  width: min(1200px, calc(100% - 48px)); margin: 0 auto; height: 52px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .seal-sq {
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1.5px solid var(--seal); border-radius: 3px; color: var(--seal);
  font-family: var(--display); font-weight: 600; font-size: 14px; transform: rotate(-4deg);
}
.brand b { font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: .18em; color: var(--near-black); }
.topnav { display: flex; gap: 26px; align-items: center; }
.topnav a, .topnav button {
  position: relative; text-decoration: none; border: none; background: none; cursor: pointer;
  color: var(--stone); font-family: var(--sans); font-size: 14px; letter-spacing: .06em; padding: 15px 0;
}
.topnav a:hover, .topnav button:hover { color: var(--near-black); }
.topnav a.on { color: var(--near-black); }
.topnav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--seal); }

/* —— 单栏页面骨架 —— */
.page { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.page-lede { padding: 40px 0 6px; }
.page-lede h1 { font-size: clamp(40px, 5vw, 56px); margin-bottom: 10px; }
.lede-sub { margin: 0; color: var(--olive); font-size: 15px; letter-spacing: .04em; max-width: 46em; line-height: 1.8; font-family: var(--sans); }
.page .main { padding: 18px 0 0; }
.page .form-card { background: var(--ivory); border-radius: var(--radius); padding: 28px; }
.page .result-card { background: none; padding: 36px 0 0; }
.page .empty-state { max-width: 760px; }

/* —— 页脚 —— */
.main-foot {
  margin-top: 52px; border-top: 1px solid var(--border-soft); padding: 22px 0 30px;
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.main-foot .f-brand { font-family: var(--display); font-weight: 600; letter-spacing: .16em; color: var(--olive); font-size: 14px; }
.main-foot nav { display: flex; gap: 16px; margin-left: auto; align-items: baseline; }
.main-foot nav a, .main-foot nav button {
  font-family: var(--sans); font-size: 12.5px; color: var(--stone); text-decoration: none;
  border: none; background: none; padding: 0; cursor: pointer;
}
.main-foot nav a:hover, .main-foot nav button:hover { color: var(--seal); }
.main-foot .f-disc { flex-basis: 100%; font-family: var(--sans); font-size: 12px; color: var(--stone); margin: 4px 0 0; line-height: 1.7; }

/* —— 器物：本命观测台 —— */
.instrument {
  position: relative;
  background: var(--ivory);
  border: 2px solid var(--near-black);
  border-radius: 14px;
  padding: 40px 34px 26px;
  margin-top: 14px;
}
.inst-tab {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--parchment);
  border: 1.5px solid var(--near-black); border-radius: 999px;
  padding: 4px 22px;
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .3em; text-indent: .3em;
  color: var(--near-black); white-space: nowrap;
}
.instrument::before, .instrument::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
  border-color: var(--stone); border-style: solid; opacity: .5;
}
.instrument::before { left: 12px; top: 12px; border-width: 1px 0 0 1px; }
.instrument::after { right: 12px; top: 12px; border-width: 1px 1px 0 0; }
.maker-seal {
  position: absolute; right: 18px; bottom: 16px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.5px solid var(--seal); border-radius: 4px; color: var(--seal);
  font-family: var(--display); font-weight: 600; font-size: 15px; transform: rotate(-6deg); opacity: .85;
}

.inst-grid { display: grid; grid-template-columns: 220px 1fr 300px; gap: 0; }
.rail-l { padding: 6px 24px 10px 2px; border-right: 1px solid var(--border-soft); display: grid; gap: 16px; align-content: start; }
.rail-r { padding: 6px 2px 10px 26px; border-left: 1px solid var(--border-soft); align-self: center; }
.mlabel { font-family: var(--sans); font-size: 10.5px; letter-spacing: .28em; color: var(--stone); }
.mlabel.rr { display: block; margin-bottom: 8px; }
.ritem .mlabel { display: block; margin-bottom: 6px; }
.ritem p { margin: 0; font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--dark-warm); }
.ritem p .mid { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--near-black); }
.ritem .big { font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--near-black); line-height: 1.15; }
.ritem .big small { font-size: 15px; color: var(--olive); font-weight: 400; margin-left: 6px; }
.ritem p em { font-style: normal; color: var(--seal); }
.ritem + .ritem { border-top: 1px solid var(--border-soft); padding-top: 14px; }

.inst-canvas { position: relative; overflow: hidden; padding: 22px 28px 8px; }
.deck-ghost {
  position: absolute; left: 0; right: 0; bottom: -18px;
  font-family: var(--display); font-weight: 900; font-size: 112px; letter-spacing: .04em; line-height: 1;
  color: var(--near-black); opacity: .04; white-space: nowrap; text-align: center; pointer-events: none;
}
.deck-pillars { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.dp { text-align: center; padding: 8px 0 14px; border-left: 1px solid var(--border-soft); min-width: 0; }
.dp:first-child { border-left: none; }
.dp .lab { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--stone); }
.dp strong { display: block; margin-top: 12px; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 50px); letter-spacing: .05em; color: var(--near-black); }
.dp .tg { display: block; margin-top: 10px; font-family: var(--sans); font-size: 12.5px; color: var(--olive); }
.dp .hid { display: block; margin-top: 4px; font-family: var(--sans); font-size: 11px; color: var(--stone); overflow-wrap: anywhere; }
.dp .gong { display: block; margin-top: 9px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .12em; color: var(--stone); opacity: .8; }
.dp .tg .term, .dp .hid .term { font-size: inherit; }

.inst-chips { border-top: 1px solid var(--border-soft); margin-top: 18px; padding: 15px 2px 2px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.inst-chips .mlabel { margin-right: 8px; }
.chip { font-family: var(--sans); font-size: 12.5px; color: var(--olive); background: none;
  border: 1px solid var(--border); border-radius: 4px; padding: 6px 12px; letter-spacing: .03em; }
.chip.on { background: var(--near-black); border-color: var(--near-black); color: var(--ivory); }

/* —— 章 —— */
.chap { margin-top: 44px; }
.chap-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.chap-head .cn { font-family: var(--display); color: var(--seal); font-size: 21px; font-weight: 600; }
.chap-head b { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: .14em; color: var(--near-black); }
.chap-head .rule { flex: 1; border-top: 1px solid var(--border-soft); transform: translateY(-4px); }
.chap-head .primer-link { flex: none; }

/* 细盘：三栏读数（去盒） */
.detail-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.dcol { padding: 20px 22px 20px 0; min-width: 0; }
.dcol + .dcol { border-left: 1px solid var(--border-soft); padding-left: 22px; }
.dcol .mlabel { display: block; margin-bottom: 8px; }
.dcol strong { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--near-black); }
.dcol p { margin: 6px 0 0; font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--stone); }
.detail-note { margin: 14px 0 0; font-family: var(--sans); font-size: 12px; color: var(--stone); line-height: 1.7; }

/* 章内的大运/流月：贴纸面（覆盖旧底色卡样式） */
.chap .luck-panel { background: none; padding: 20px 0 4px; }
.chap .flow-list { display: none; }  /* 流年已移入观测台 chips */

@media (max-width: 980px) {
  .inst-grid { grid-template-columns: 1fr; }
  .rail-l { border-right: none; border-bottom: 1px solid var(--border-soft); padding: 0 0 16px; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .rail-l .ritem + .ritem { border-top: none; padding-top: 0; }
  .rail-r { border-left: none; border-top: 1px solid var(--border-soft); padding: 18px 0 0; max-width: 300px; margin: 0 auto; }
  .inst-canvas { padding: 18px 4px 6px; }
  .detail-cols { grid-template-columns: 1fr; }
  .dcol { padding: 16px 0; }
  .dcol + .dcol { border-left: none; border-top: 1px solid var(--border-soft); padding-left: 0; }
}
@media (max-width: 560px) {
  .topbar-in { width: calc(100% - 32px); gap: 14px; }
  .topnav { gap: 16px; }
  .brand b { display: none; }
  .page { width: calc(100% - 32px); }
  .page-lede { padding: 26px 0 2px; }
  .instrument { padding: 30px 14px 22px; border-radius: 10px; }
  .rail-l { grid-template-columns: 1fr; }
  .deck-ghost { font-size: 54px; bottom: -8px; }
  .main-foot nav { margin-left: 0; }
}

/* —— 观测台版·版心分级：器物全宽，读文收窄，按钮回归内容宽 —— */
/* 表单卡收窄（三列字段回到舒适宽度） */
.page .form-card { max-width: 920px; }
/* 主按钮：不再满宽 */
.page .submit-button { width: auto; min-width: 300px; padding-left: 56px; padding-right: 56px; }
/* 章内读文统一 780px 版心 */
.chap .reading-list,
.chap .disclaimer,
.chap .ai-reading-panel,
.chap .detail-note { max-width: 780px; }
/* 「重新细看 / 问」按钮：内容宽 */
.ai-button { width: auto; min-width: 220px; padding: 13px 44px; }
.ai-chat-form .ai-button { min-width: 0; padding: 12px 30px; }
/* 细盘三栏 / 大运 / 流月 可稍宽于读文，但不满 1200 */
.chap .detail-cols, .chap .luck-panel, .chap .liuyue-block { max-width: 980px; }

/* —— 质感层：今楷品牌字 + 朱文印章 —— */
.brand b,
.inst-tab,
.page-lede h1,
.chap-head .cn,
.chap-head b,
.main-foot .f-brand {
  font-family: "JinKai", var(--display);
  font-weight: 400;
}
.page-lede h1 { letter-spacing: .1em; }
.inst-tab { font-weight: 400; letter-spacing: .26em; text-indent: .26em; padding: 5px 22px 3px; }
/* 朱底白文印「問命」 */
.brand .seal-sq {
  width: 30px; height: 30px;
  background: var(--seal); border: none; border-radius: 3px;
  color: #f6f3ef;
  font-family: "JinKai", var(--display); font-weight: 400;
  font-size: 12px; line-height: 1.08; letter-spacing: 0;
  display: grid; place-items: center;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 1.5px rgba(246, 243, 239, 0.28);
  padding: 2px 0 0;
  white-space: pre-line;
}
.maker-seal {
  background: var(--seal); border: none; color: #f6f3ef;
  font-family: "JinKai", var(--display); font-weight: 400;
  font-size: 11px; line-height: 1.1; white-space: pre-line;
  box-shadow: inset 0 0 0 1.5px rgba(246, 243, 239, 0.28);
  width: 32px; height: 32px; padding: 2px 0 0;
}

/* ============================================================
   册页骨架（品牌体系层）：全页细线框 + 统一区块语法
   + 纸面填写表单 + 版权页页脚 + 题头罗盘
   ============================================================ */
:root { --frame-w: 1240px; --fpad: clamp(22px, 4.5vw, 56px); }

/* 顶栏：与框身同宽，色温对齐冷灰 */
.topbar { background: rgba(238, 237, 236, 0.92); border-bottom: 1px solid var(--border); }
.topbar-in { width: min(var(--frame-w), calc(100% - 40px)); height: 56px; }

/* 框身：两条细线自顶栏贯到页底，整页收成一件文书 */
.page {
  width: min(var(--frame-w), calc(100% - 40px));
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.p-sec { padding-left: var(--fpad); padding-right: var(--fpad); }
.page .main { padding: 0; }

/* —— 题款 —— */
.p-lede { padding-top: 54px; padding-bottom: 44px; }
.lede-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.3em; color: var(--seal);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--seal); }
.p-lede h1 {
  font-family: "JinKai", var(--display); font-weight: 400;
  font-size: clamp(44px, 5vw, 64px); letter-spacing: 0.1em; margin-bottom: 18px;
}
.lede-sub { margin: 0; color: var(--olive); font-size: 15px; letter-spacing: 0.04em; max-width: 40em; line-height: 1.85; font-family: var(--sans); }
.lede-tags { list-style: none; display: flex; margin: 32px 0 0; padding: 0; }
.lede-tags li {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.18em; color: var(--stone);
  padding: 0 20px; border-left: 1px solid var(--border);
}
.lede-tags li:first-child { padding-left: 0; border-left: none; }
.lede-dial { justify-self: end; color: var(--stone); opacity: 0.55; cursor: grab; transition: opacity .5s ease; }
.lede-dial:hover { opacity: 0.72; }
.dial { width: 300px; height: 300px; display: block; }
.dial-chars text { font-family: var(--display); font-size: 13px; text-anchor: middle; dominant-baseline: central; }
.dial .mt { stroke: var(--seal); }
.dial-dot { fill: var(--seal); }

/* —— 罗盘微转：外刻度环缓转（JS 平滑控速，见 app.js），内虚环反向，中心朱点轻搏 —— */
.dial-ticks, .dial-inner { transform-box: fill-box; transform-origin: center; }
.dial-dot { transform-box: fill-box; transform-origin: center; }
.dial-inner { animation: dial-inner-spin 82s linear infinite; }
.dial-dot { animation: dial-dot-pulse 3.8s ease-in-out infinite; }
.lede-dial:hover .dial-dot { animation-duration: 1.6s; }
@keyframes dial-inner-spin { to { transform: rotate(-360deg); } }
@keyframes dial-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) {
  .dial-inner, .dial-dot { animation: none; }
}

/* —— 区块语法：朱印号 + 今楷题 + 右侧批注 —— */
.sec-head { display: flex; align-items: center; gap: 14px; padding: 24px 0 30px; }
.sec-head .sn {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center;
  background: var(--seal); color: #f6f3ef; border-radius: 2.5px;
  font-family: "JinKai", var(--display); font-size: 13px; line-height: 1;
  transform: rotate(-3deg); box-shadow: inset 0 0 0 1px rgba(246, 243, 239, 0.25);
}
.sec-head b { font-family: "JinKai", var(--display); font-weight: 400; font-size: 21px; letter-spacing: 0.2em; color: var(--near-black); }
.sec-head .sec-meta { margin-left: auto; font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; color: var(--stone); text-align: right; }
.sec-head .primer-link { margin-left: auto; }

/* 区块上缘细线：通到框边 */
.p-form { border-top: 1px solid var(--border); padding-bottom: 60px; }
.p-result { padding-top: 0; padding-bottom: 0; }
.chap {
  border-top: 1px solid var(--border);
  margin: 0 calc(-1 * var(--fpad));
  padding: 0 var(--fpad) 64px;
}
.chap-inst .instrument { margin-top: 0; }

/* —— 表单：纸面填写（去岛、下划线字段） —— */
.p-form .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 44px; margin: 4px 0 38px; max-width: 1020px; }
.page label { gap: 10px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; color: var(--stone); }
.page input, .page select, .page textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 8px 2px; min-height: 42px;
  font-family: var(--sans); font-size: 15px; color: var(--near-black);
}
.page select {
  -webkit-appearance: none; appearance: none; padding-right: 22px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M1 1l4 4 4-4" fill="none" stroke="%23968f88" stroke-width="1.2"/></svg>');
  background-repeat: no-repeat; background-position: right 6px center;
}
.page input:focus, .page select:focus, .page textarea:focus { box-shadow: none; border-bottom-color: var(--seal); }
.page textarea { min-height: 60px; line-height: 1.6; }
.submit-row { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.page .submit-button { border-radius: 2px; }
.submit-fine .fineprint { margin: 2px 0; font-size: 12px; }

/* —— 空态：与章同语法 —— */
.page .empty-state { display: block; min-height: 0; max-width: none; }
.empty-note { max-width: 640px; margin: 0 0 32px; font-family: var(--sans); font-size: 15px; line-height: 1.85; color: var(--olive); }
.page .empty-grid { max-width: 880px; margin: 0 0 12px; gap: 0; border: 1px solid var(--border); }
.page .empty-grid figure { border: none; border-left: 1px solid var(--border); border-radius: 0; }
.page .empty-grid figure:first-child { border-left: none; }

/* —— 页脚：版权页 —— */
.main-foot { display: block; margin-top: 0; padding-top: 0; padding-bottom: 0; border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 72px; padding: 42px 0 46px; }
.f-id { display: flex; gap: 16px; align-items: flex-start; }
.f-id .seal-sq {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--seal); border-radius: 3px; color: #f6f3ef;
  font-family: "JinKai", var(--display); font-weight: 400; font-size: 14px; line-height: 1.08;
  transform: rotate(-3deg); box-shadow: inset 0 0 0 1.5px rgba(246, 243, 239, 0.28);
  padding-top: 2px; white-space: pre-line; text-align: center;
}
.main-foot .f-brand { font-size: 17px; letter-spacing: 0.2em; color: var(--near-black); }
.f-line { margin: 7px 0 0; font-family: var(--sans); font-size: 12.5px; color: var(--stone); letter-spacing: 0.06em; }
.main-foot .f-nav { display: grid; gap: 11px; align-content: start; margin-left: 0; }
.f-lab { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.28em; color: var(--stone); margin-bottom: 5px; }
.main-foot .f-nav a, .main-foot .f-nav button {
  font-family: var(--sans); font-size: 13px; color: var(--olive); text-decoration: none;
  background: none; border: none; padding: 0; cursor: pointer; text-align: left; letter-spacing: 0.04em;
}
.main-foot .f-nav a:hover, .main-foot .f-nav button:hover { color: var(--seal); }
.foot-base {
  display: flex; align-items: baseline; gap: 28px;
  border-top: 1px solid var(--border-soft);
  margin: 0 calc(-1 * var(--fpad)); padding: 18px var(--fpad) 28px;
}
.main-foot .f-disc { flex: 1; margin: 0; }
.f-made { font-family: "JinKai", var(--display); font-size: 12px; letter-spacing: 0.18em; color: var(--stone); white-space: nowrap; }

/* —— 响应式 —— */
@media (max-width: 980px) {
  .lede-grid { grid-template-columns: 1fr; gap: 0; }
  .lede-dial { display: none; }
  .p-form .field-grid { grid-template-columns: 1fr 1fr; }
  .page .wide-field { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  :root { --fpad: 18px; }
  .page { width: 100%; border-left: none; border-right: none; }
  .p-lede { padding-top: 34px; padding-bottom: 30px; }
  .lede-tags { flex-wrap: wrap; gap: 8px 0; }
  .p-form .field-grid { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .page .submit-button { width: 100%; min-width: 0; }
  .submit-row { gap: 14px; }
  .sec-head b { font-size: 19px; letter-spacing: 0.14em; }
  .sec-head .sec-meta { display: none; }
  .page .empty-grid { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { padding: 30px 0 32px; }
  .foot-base { flex-wrap: wrap; gap: 10px; }
}

/* 命书面板：融入纸面，按钮回内容宽 */
.page .ai-reading-panel { background: none; padding: 20px 0 0; border-top: none; margin-top: 0; }
.page .ai-reading-panel .ai-button { justify-self: start; }

/* —— 眉批栏：读文章节右侧的竖排批注，留白收进框里 —— */
.chap-body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; }
.chap-body .chap-main { min-width: 0; }
.chap-rail { border-left: 1px solid var(--border-soft); position: relative; }
.rail-epigraph {
  position: sticky; top: 88px;
  display: inline-block; margin: 6px 0 0 26px;
  writing-mode: vertical-rl;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.42em;
  color: var(--stone);
}
/* 数据块（细盘三栏 / 大运 / 流月）铺满框宽 */
.chap .detail-cols, .chap .luck-panel, .chap .liuyue-block { max-width: none; }
@media (max-width: 980px) {
  .chap-body { grid-template-columns: 1fr; }
  .chap-rail { display: none; }
}

/* —— 起盘：六字段一行排满框宽 —— */
.p-form .field-grid { grid-template-columns: 0.8fr 1.1fr 0.9fr 0.7fr 1.4fr 0.8fr; gap: 28px 36px; max-width: none; }
.page .wide-field { grid-column: 1 / -1; }
/* 农历：日期占两格（年/月/日），出生地保持宽格，问题栏从第二格起补齐 */
#birth-form:has(#date-field.is-lunar) .field-grid { grid-template-columns: 0.8fr 1.15fr 1.15fr 0.9fr 0.7fr 1.4fr; }
#birth-form:has(#date-field.is-lunar) .wide-field { grid-column: 2 / -1; }
@media (max-width: 980px) {
  .p-form .field-grid,
  #birth-form:has(#date-field.is-lunar) .field-grid { grid-template-columns: 1fr 1fr; }
  .page .wide-field,
  #birth-form:has(#date-field.is-lunar) .wide-field { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .p-form .field-grid,
  #birth-form:has(#date-field.is-lunar) .field-grid { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
}

/* 命书面板引导句：默认字体 */
.page .ai-reading-panel p { font-family: var(--sans); }

/* 命书正文顶部：去多余细线（面板顶已有一条） */
.page .ai-reading-result { border-top: none; padding-top: 0; }

/* 空态四图：防 grid 被图片原始尺寸撑破（小屏溢出即显不居中） */
.page .empty-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page .empty-grid figure { min-width: 0; }
.page .empty-grid img { max-width: 82%; height: auto; }

/* —— 命盘图谱（命书上方·全局俯瞰+目录）：径向脑图，用站点灰黑/墨红/宋体 —— */
.chart-map {
  --map-ink: var(--brand); --map-jade: #6a7b5f;
  margin: 4px calc(-1 * var(--fpad)) 0; padding: 16px var(--fpad) 20px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--ivory), transparent 78%);
}
.cm-cap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.cm-cap-t { font-family: var(--display); font-size: 15px; color: var(--brand); letter-spacing: 2px; }
.cm-cap-s { font-size: 12px; color: var(--stone); letter-spacing: .5px; }

.cm-stage { position: relative; width: 100%; max-width: 720px; margin: 6px auto 0; aspect-ratio: 1 / .9; }
.cm-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cm-spokes path { stroke: var(--border); stroke-width: .35; fill: none; }

.cm-node { position: absolute; transform: translate(-50%, -50%); animation: cm-pop .5s ease backwards; }
@keyframes cm-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
.cm-branch {
  cursor: pointer; background: var(--ivory); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px 10px; width: 148px; text-align: center; font: inherit; color: inherit; display: block;
  box-shadow: 0 4px 16px rgba(24,24,26,.07); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cm-branch:hover { transform: translateY(-3px) scale(1.02); border-color: var(--brand); }
.cm-branch.on { border-color: var(--seal); box-shadow: 0 0 0 2px rgba(154,70,63,.16), 0 4px 16px rgba(24,24,26,.07); }
.cm-bt { font-family: var(--display); font-size: 15px; color: var(--brand); display: flex; align-items: center; justify-content: center; gap: 6px; letter-spacing: .5px; }
.cm-bn { font-family: var(--display); font-size: 11px; color: var(--ivory); background: var(--brand); width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; transform: rotate(-3deg); }
.cm-bsub { display: block; font-size: 11px; color: var(--stone); margin-top: 4px; line-height: 1.45; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 7px; }
.cm-chip { font-size: 10px; padding: 2px 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--olive); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cm-chip.cm-c-seal { border-color: rgba(154,70,63,.4); color: var(--seal); }
.cm-chip.cm-c-jade { border-color: rgba(106,123,95,.5); color: var(--map-jade); }
.cm-chip.f-full { opacity: 1; } .cm-chip.f-root { opacity: .9; }
.cm-chip.f-weak { opacity: .6; border-style: dashed; } .cm-chip.f-none { opacity: .42; border-style: dotted; }

.cm-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 168px; height: 168px;
  border-radius: 50%; background: radial-gradient(circle at 50% 42%, var(--ivory), var(--warm-sand));
  border: 1.5px solid var(--brand); display: grid; place-items: center; text-align: center; padding: 14px;
  cursor: pointer; font: inherit; color: inherit; box-shadow: 0 4px 18px rgba(24,24,26,.1);
}
.cm-core::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid var(--border-soft); }
.cm-core:hover { border-color: var(--seal); }
.cm-core.on { border-color: var(--seal); box-shadow: 0 0 0 2px rgba(154,70,63,.16), 0 4px 18px rgba(24,24,26,.1); }
.cm-dm { display: block; font-family: var(--display); font-size: 30px; color: var(--brand); letter-spacing: 3px; line-height: 1; }
.cm-ge { display: block; font-family: var(--display); font-size: 13px; color: var(--seal); margin-top: 5px; letter-spacing: 1.5px; }
.cm-zx { display: block; font-size: 11px; color: var(--stone); margin-top: 8px; line-height: 1.5; max-width: 140px; }
.cm-zx b { color: var(--brand); }

.cm-detail {
  max-width: 720px; margin: 16px auto 0; background: var(--ivory); border: 1px solid var(--border);
  border-left: 3px solid var(--seal); border-radius: 8px; padding: 14px 16px; box-shadow: 0 4px 16px rgba(24,24,26,.06);
}
.cm-dh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cm-dh h4 { font-family: var(--display); font-size: 16px; color: var(--brand); margin: 0; letter-spacing: .5px; font-weight: 600; }
.cm-tag { font-size: 11px; color: var(--stone); letter-spacing: 1px; }
.cm-rows { display: grid; gap: 6px; margin-top: 10px; }
.cm-drow { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; }
.cm-drow .k { font-family: var(--display); color: var(--brand); min-width: 66px; font-weight: 600; }
.cm-drow .v { color: var(--near-black); }
.cm-drow .v b { color: var(--brand); }
.cm-jump { margin-top: 12px; font-size: 12px; color: var(--seal); background: transparent; border: 1px dashed rgba(154,70,63,.5); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-family: var(--sans); }
.cm-jump:hover { background: rgba(154,70,63,.06); }

.cm-legend { max-width: 720px; margin: 14px auto 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--stone); }
.cm-legend .lg { display: flex; align-items: center; gap: 6px; }
.cm-legend .sw { width: 20px; height: 0; border-top: 2px solid var(--brand); }
.cm-legend .sw.chong { border-top: 2px solid var(--seal); }
.cm-legend .sw.hu { border-top: 2px dashed var(--map-jade); }
.cm-legend .sw.tg { border-top: 2px dotted var(--stone); }
.cm-legend .mut { color: var(--stone); opacity: .8; }

.cm-list { display: none; }
.ai-reading-result .cm-flash { background: rgba(154,70,63,.1); border-radius: 4px; transition: background .5s ease; }

@media (max-width: 760px) {
  .cm-stage, .chart-map .cm-detail { display: none; }
  .cm-list { display: flex; flex-direction: column; gap: 9px; max-width: 520px; margin: 12px auto 0; }
  .cm-acc { background: var(--ivory); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
  .cm-acc.on { border-color: var(--seal); }
  .cm-acc > button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 11px 13px; background: transparent; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
  .cm-acc .cm-bsub { margin: 0 0 0 auto; }
  .cm-panel { max-height: 0; overflow: hidden; transition: max-height .28s ease; padding: 0 13px; }
  .cm-acc.on .cm-panel { max-height: 720px; padding: 2px 13px 13px; }
}
@media (prefers-reduced-motion: reduce) { .cm-node, .cm-panel, .cm-branch, .cm-core { animation: none !important; transition: none !important; } }
.cm-branch:focus-visible, .cm-core:focus-visible, .cm-jump:focus-visible, .cm-acc > button:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }

/* —— 术语百科页 baike.html —— */
.bk-toc { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; }
.bk-toc a { font-size: 13px; color: var(--stone); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.bk-toc a:hover { color: var(--seal); border-bottom-color: var(--seal); }
.bk-faqs { display: grid; gap: 2px; }
.bk-faq { border-bottom: 1px solid var(--border-soft); }
.bk-faq > summary { cursor: pointer; list-style: none; padding: 14px 26px 14px 0; position: relative; font-family: var(--display); font-size: 16px; color: var(--brand); }
.bk-faq > summary::-webkit-details-marker { display: none; }
.bk-faq > summary::after { content: "＋"; position: absolute; right: 2px; top: 13px; color: var(--stone); font-size: 15px; }
.bk-faq[open] > summary::after { content: "－"; }
.bk-faq > p { margin: 0 0 16px; color: var(--olive); font-size: 14.5px; line-height: 1.8; max-width: 66ch; }
.bk-body { display: grid; gap: 8px; }
.bk-cat { padding-top: 6px; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; }
.bk-term { padding: 12px 0; border-top: 1px solid var(--border-soft); scroll-margin-top: 76px; }
.bk-term h3 { margin: 0 0 5px; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--brand); letter-spacing: .5px; }
.bk-term h3 .bk-anchor { color: inherit; text-decoration: none; }
.bk-term h3 .bk-anchor:hover { color: var(--seal); }
.bk-term:target { background: linear-gradient(90deg, rgba(154,70,63,.07), transparent 60%); }
.bk-term:target h3 { color: var(--seal); }
.bk-term p { margin: 0; color: var(--olive); font-size: 14px; line-height: 1.75; }
.bk-note { color: var(--stone); font-size: 12.5px; margin-top: 8px; }
@media (max-width: 720px) { .bk-grid { grid-template-columns: 1fr; } }

/* 百科页：标题不用「JinKai」品牌 subset（它只含問命書等少数字），改用宋体 --display，避免混字回退 */
.bk-page .p-lede h1 { font-family: var(--display); font-weight: 600; letter-spacing: .06em; }
.bk-page .sec-head b { font-family: var(--display); font-weight: 600; letter-spacing: .08em; }
.bk-page .sec-head .sn { font-family: var(--display); }
/* 百科页尾：独立版记，不复用 .main-foot（那条线紧贴内容） */
.bk-foot { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 20px; }
.bk-foot p { margin: 0 0 8px; color: var(--olive); font-size: 14px; line-height: 1.8; }
.bk-foot p:last-child { margin-bottom: 0; }
.bk-foot a { color: var(--brand); }
.bk-foot a:hover { color: var(--seal); }
.bk-foot .bk-note { color: var(--stone); font-size: 12.5px; }

/* —— 合盘落地页 SEO 内容区 —— */
.he-seo { border-top: 1px solid var(--border-soft); }
.he-seo-body { max-width: 780px; }
.he-seo-body h2 { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--brand); letter-spacing: .04em; margin: 24px 0 8px; }
.he-seo-body h2:first-child { margin-top: 8px; }
.he-seo-body p { font-family: var(--sans); font-size: 14.5px; line-height: 1.85; color: var(--olive); margin: 0; }
.he-seo-body strong { color: var(--brand); font-weight: 600; }

/* ═══ 参考 acuraly：底部“执笔”状态药丸（流式生成期间浮现）═══ */
.compose-pill { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(8px);
  z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: #ece9e4; border-radius: 999px; padding: 9px 18px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .05em;
  box-shadow: 0 8px 28px rgba(0,0,0,.18); opacity: 0; transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.compose-pill.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.compose-pill .cp-dots { display: inline-flex; gap: 3px; }
.compose-pill .cp-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: cpDot 1.4s ease-in-out infinite; }
.compose-pill .cp-dots i:nth-child(2) { animation-delay: .25s; }
.compose-pill .cp-dots i:nth-child(3) { animation-delay: .5s; }
@keyframes cpDot { 0%, 100% { opacity: .28; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .compose-pill, .compose-pill .cp-dots i { animation: none; transition: none; }
}

/* ═══ 首页改版：大字 slogan + 具象事例区（Co-Star 式排版，只一处特黑）═══ */
.p-lede h1.lede-slogan { font-family: var(--display); /* 盖掉 JinKai 子集（slogan 含子集外字） */
  font-weight: 900; font-size: clamp(40px, 5.6vw, 74px); line-height: 1.24;
  letter-spacing: .02em; margin: 14px 0 0; }
.lede-slogan .zhu, .ask-prime .zhu { color: var(--seal); }
.p-lede .lede-grid { align-items: center; }
/* 事例区 */
.asks { margin-top: 34px; }
.asks-lead { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--stone); }
.ask-prime { border-top: 1px solid var(--near-black); border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: baseline; gap: 18px; padding: 22px 0 20px; cursor: pointer; }
.ask-prime .q { font-size: clamp(19px, 2vw, 26px); font-weight: 400; letter-spacing: .02em; transition: color .15s; }
.ask-prime .tag { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: #f4f3f2;
  background: var(--seal); padding: 4px 11px; transform: translateY(-3px); white-space: nowrap; }
.ask-prime .w { margin-left: auto; font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em;
  color: var(--stone); white-space: nowrap; }
.ask-prime:hover .q { color: var(--seal); }
.ask-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.ask { display: block; padding: 20px 22px 18px 0; border-bottom: 1px solid var(--border-soft);
  cursor: pointer; text-decoration: none; color: inherit; }
.ask:nth-child(3n+2), .ask:nth-child(3n) { padding-left: 22px; border-left: 1px solid var(--border-soft); }
.ask .q { display: block; font-size: 16.5px; font-weight: 400; line-height: 1.55; letter-spacing: .02em; transition: color .15s; }
.ask .w { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--stone); display: flex; justify-content: space-between; }
.ask .w i { font-style: normal; transition: color .15s; }
.ask:hover .q, .ask:hover .w i:last-child { color: var(--seal); }
@media (max-width: 900px) {
  .ask-grid { grid-template-columns: 1fr; }
  .ask, .ask:nth-child(3n+2), .ask:nth-child(3n) { padding-left: 0; border-left: none; }
  .ask-prime { flex-wrap: wrap; gap: 10px; }
  .ask-prime .w { margin-left: 0; width: 100%; }
}

/* ═══ 排盘后的日主宣言屏（Co-Star 式身份时刻）═══ */
.decl { display: flex; align-items: center; gap: clamp(28px, 5vw, 70px); padding: 26px 0 10px; }
.decl-glyph { font-size: clamp(150px, 19vw, 260px); font-weight: 300; line-height: 1; flex: none; position: relative; }
.decl-glyph i { position: absolute; right: -14px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--seal); }
.decl-words { max-width: 620px; min-width: 0; }
.decl-l1 { font-family: var(--mono); font-size: 12px; letter-spacing: .36em; color: var(--stone); }
.decl-h2 { margin: 18px 0 0; font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.7; letter-spacing: .02em; }
.decl-l2 { margin-top: 20px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; color: var(--stone); }
.decl-l2 em { font-style: normal; color: var(--seal); }
@media (max-width: 720px) {
  .decl { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.main-foot .f-today { margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--stone); }
