@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "Microsoft YaHei", serif;
  background: #FAF7F2; 
  color: #2C2520; 
  line-height: 1.5;
}

.page {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 20px 0 30px;
}

/* --- 首页样式 --- */
.home-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.home-page { padding: 20px 18px 40px; }
.home-title { text-align: center; margin-bottom: 30px; }
.home-title h1 { 
  margin: 0; 
  font-size: 32px; 
  letter-spacing: 0.2em; 
  font-weight: 700; 
  color: #1A1512;
  display: flex;
  align-items: center;
  justify-content: center;
}
.title-logo {
  height: 1.25em;    
  width: auto;       
  margin-left: 8px;  
  object-fit: contain;
}
.home-title p { margin: 10px 0 0; color: #7A6F62; font-size: 14px; letter-spacing: 0.05em; }

.home-card {
  background: #FFFFFF;
  border: 1px solid #DFD8CC;
  border-radius: 4px; 
  box-shadow: 0 4px 12px rgba(44, 37, 32, 0.03);
  padding: 30px 24px 26px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

label { 
  display: grid; 
  gap: 8px; 
  color: #5E5347; 
  font-size: 13px; 
  font-weight: 600; 
  text-align: center;
}

select {
  width: 100%;
  min-width: 0;
  padding: 10px 4px;
  border: 1px solid #D5C9B3;
  border-radius: 2px;
  background: #FAFAFA;
  font-family: inherit;
  font-size: 16px;
  color: #2C2520;
  text-align: center;
  appearance: none; 
  cursor: pointer;
}
select:focus { outline: none; border-color: #8C2222; }

.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }

/* --- 按钮样式 --- */
.btn, button.btn, .topic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  text-decoration: none;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary { background: #8C2222; color: #FFFFFF; } 
.btn.primary:hover { background: #731A1A; }

.btn.secondary { background: #F0EBE1; color: #5E5347; border: 1px solid #E3DBCF; }
.btn.secondary:hover { background: #E6DFD3; }

.btn.full { margin: 12px auto; display: flex; width: calc(100% - 24px); }

/* --- 盘面页样式 --- */
.pan-page {
  padding-top: 12px;
  background: #FFFFFF;
  --meta-main-size: 13px;
  --meta-small-size: 11px;
}

.error {
  margin: 12px;
  padding: 12px 14px;
  border-radius: 2px;
  background: #FDF5F5;
  color: #8C2222;
  border: 1px solid #F0D5D5;
  font-size: 14px;
  text-align: center;
}

/* --- 顶部信息区 --- */
.pan-info-box {
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 4px 0 0;
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.info-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 2px 10px;
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.time-group {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: start;
}

/* 独立、紧凑的返回行 */
.pan-back-row {
  display: flex;
  align-items: center;
  height: 19px;
  margin-bottom: 2px;
}
.btn-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 4px 0 1px;
  border: 0;
  background: transparent;
  color: #7A6F62;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-return::before {
  content: "‹";
  font-size: 15px;
  line-height: 1;
  margin-right: 2px;
  transform: translateY(-1px);
}
.btn-return:hover {
  color: #8C2222;
  background: #FAF8F4;
}

.date-text {
  padding-top: 0;
  font-size: 16px;
  font-weight: 500;
  color: #4A4036;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.pillar-text {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 600;
  color: #1A1512;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.pillar-text > span:not(.pillar-divider) { white-space: nowrap; }
.pillar-divider { color: #C2B8AA; font-weight: 400; }

.ju-group {
  display: contents;
}
.ju-title {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  font-size: clamp(16px, 4.5vw, 18px);
  font-weight: 600;
  color: #8C2222;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}
.jieqi-text {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  font-size: 11px;
  color: #7A6F62;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.info-sub-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 7px;
  padding: 5px 0 6px;
  border-top: 1px solid #EEE9E4;
  border-bottom: 1px solid #EEE9E4;
}

.sub-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  border-right: 1px solid #EEE9E4;
  font-size: var(--meta-main-size);
  font-weight: 500;
  color: #1A1512;
  line-height: 1.25;
  white-space: nowrap;
}
.sub-item:last-child { border-right: 0; }

button.sub-item {
  width: 100%;
  padding: 0;
  border: 0;
  border-right: 1px solid #EEE9E4;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}
button.sub-item:focus-visible {
  outline: 1px dashed rgba(140, 34, 34, 0.55);
  outline-offset: -3px;
}
button.sub-item[aria-pressed="true"] {
  background: #FFF7ED;
  color: #8C2222;
}

.sub-label {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #8B8175;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: var(--meta-main-size);
  font-weight: 400;
  line-height: 1.25;
}

.geju-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 24px;
  margin: 0;
  padding-top: 4px;
  border: 0;
  color: #8C2222;
  font-size: var(--meta-main-size);
  font-weight: 500;
  line-height: 1.4;
}

.geju-label {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #7A6F62;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: var(--meta-main-size);
  font-weight: 400;
}
.geju-value {
  color: #8C2222;
  font-size: var(--meta-main-size);
  line-height: 1.6;
}

/* 推六亲 */
.pan-toolbar {
  width: calc(100% - 24px);
  min-height: 34px;
  margin: 0 auto 8px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-top: 1px solid #C9C2BA;
  border-bottom: 1px solid #C9C2BA;
  background: #FFFFFF;
}
.kinship-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8C2222;
  font-family: inherit;
  font-size: var(--meta-main-size);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.kinship-toggle span {
  display: inline-block;
  margin-left: 3px;
  transition: transform 0.18s ease;
}
.kinship-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.kinship-tool {
  width: calc(100% - 24px);
  margin: 0 auto 8px;
  border: 1px solid #C2B8AA;
  background: #FCFAF7;
}
.kinship-tool[hidden] { display: none; }
.kinship-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 8px;
}
.kinship-use-control {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #7A6F62;
  font-size: var(--meta-small-size);
  font-weight: 600;
  text-align: left;
}
.kinship-use-label { flex: 0 0 auto; }
.kinship-select-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}
.kinship-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 5px;
  height: 5px;
  border-right: 1px solid #7A6F62;
  border-bottom: 1px solid #7A6F62;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.kinship-use-control select {
  width: auto;
  min-width: 54px;
  height: 28px;
  padding: 2px 18px 2px 6px;
  border: 1px solid #E3DBCF;
  border-radius: 2px;
  background: #FAF8F4;
  color: #4A4036;
  font-size: var(--meta-main-size);
}
.kinship-gender-switch {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 12px;
}
.kinship-gender-switch button {
  min-height: 28px;
  padding: 2px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: var(--meta-main-size);
  font-weight: 600;
  color: #7A6F62;
  cursor: pointer;
  transition: all 0.2s ease;
}
.kinship-gender-switch button.active {
  color: #8C2222;
  border-bottom-color: #8C2222;
}
.kinship-confirm {
  flex: 0 0 auto;
  padding: 3px 12px;
  border: 1px solid #DFD8CC;
  border-radius: 2px;
  background: #FAF8F4;
  color: #5E5347;
  font-family: inherit;
  font-size: var(--meta-main-size);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.kinship-confirm:hover { background: #F0EBE1; border-color: #D5C9B3; }
.kinship-result {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  padding: 9px 10px 10px;
  border-top: 1px dashed #DDD3C5;
  background: #FFFCF8;
}
.kinship-result[hidden] { display: none; }
.kinship-result-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #2C2520;
  font-size: var(--meta-main-size);
  line-height: 1.55;
  white-space: nowrap;
}
.kinship-result-item strong {
  color: #8C2222;
  font-size: var(--meta-main-size);
}

/* 快捷导航：3等分列（上个时辰、当前时辰、下个时辰） */
.nav-actions {
  width: auto;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.nav-post-form { display: flex; margin: 0; }
.nav-post-form .btn { width: 100%; }

.btn.slim {
  min-height: 32px;
  background: #FFFFFF;
  color: #4A4036;
  border: 0;
  font-size: var(--meta-main-size);
  font-weight: 500;
  letter-spacing: 0;
}
.btn.slim:hover { background: #FAFAFA; border-color: #8C2222; color: #8C2222; }

/* --- 九宫格排盘核心区 --- */
.grid-wrap {
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.qimen-grid {
  width: calc(100% - 24px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #B9B0A5;
  border-left: 1px solid #B9B0A5;
  background: transparent;
  gap: 0;
  box-shadow: none;
}

.gong {
  position: relative;
  aspect-ratio: 1 / 1 !important; 
  min-height: 0;
  background: #FFFDF9;
  border-right: 1px solid #C7BFB5;
  border-bottom: 1px solid #C7BFB5;
  overflow: hidden;
  display: grid;
  grid-template-columns: 16% 54% 30%;
  grid-template-rows: 26% 41% 26% 7%;
  align-items: center;
  justify-items: center;
  padding: 2px 0;
  
  --main-size: clamp(14px, 4.2vw, 18px);
  --small-size: clamp(10px, 3vw, 12px);
  --board-content-shift-y: -1.5px;
}

.gong-name {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: var(--small-size);
  color: #A39684;
  line-height: 1;
  z-index: 5;
}

.gong-direction {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: var(--small-size);
  color: #A39684;
  line-height: 1;
  z-index: 5;
  opacity: 0.55;
}

.angan-corner {
  position: absolute;
  left: 6px;
  top: 24px;
  font-size: clamp(11px, 3.2vw, 13px);
  color: #7A6F62;
  line-height: 1;
  z-index: 5;
}

.kw-circle {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 1px solid #8C2222;
  border-radius: 50%;
  z-index: 6;
}

.shen-pos {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: center;
  font-size: var(--main-size);
  font-weight: 600;
  color: #2C2520;
  line-height: 1;
  white-space: nowrap;
}

.shen-pos,
.star-center,
.door-center {
  font-size: var(--main-size);
}

.shen-pos,
.star-center,
.door-center,
.tian-right,
.dipan-right {
  transform: translateY(var(--board-content-shift-y));
}

.star-center { 
  grid-column: 2 / 3; 
  grid-row: 2 / 3;
  align-self: center; 
}

.door-center { 
  grid-column: 2 / 3; 
  grid-row: 3 / 4;
  align-self: center; 
}

.tian-left { 
  position: absolute;
  left: 2px;
  top: calc(43% + var(--board-content-shift-y));
  padding: 0;
  transform: translateY(-50%);
}
.tian-right { 
  grid-column: 3 / 4; 
  grid-row: 2 / 3;
  align-self: center; 
  justify-self: start; 
  padding-left: 4px; 
}
.dipan-right { 
  grid-column: 3 / 4; 
  grid-row: 3 / 4;
  align-self: center; 
  justify-self: start; 
  padding-left: 4px; 
}

.center-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--main-size);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  z-index: 3;
  color: #1A1512;
}

.gan-slot {
  display: flex;
  align-items: center;
  gap: 1px;
  z-index: 3;
}

.board-symbol {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2em;
  min-height: 2.5em;
  padding: 0.3em 0.55em;
  border-radius: 2px;
  color: #1A1512;
  line-height: 1;
  white-space: nowrap;
}

.symbol-core {
  position: relative;
  z-index: 1;
}

.gan-board-symbol {
  min-width: 1.9em;
  padding-right: 0.45em;
  padding-left: 0.2em;
  font-size: var(--main-size);
  font-weight: 700;
  color: #2C2520;
}

.board-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 2px;
  border: 0;
  border-radius: 2px;
  font-size: clamp(7.5px, 2vw, 9.5px);
  font-weight: 700;
  line-height: 1;
  z-index: 3;
}

.badge-top-right { top: 0; right: 0; }
.badge-bottom-right { right: 0; bottom: 0; }
.gan-board-symbol .badge-top-right { top: 3px; }
.gan-board-symbol .badge-bottom-right { bottom: 3px; }
.badge-danger {
  background: rgba(163, 58, 50, 0.08);
  color: #A12D28;
}
.badge-neutral {
  background: rgba(122, 111, 98, 0.08);
  color: #7A6F62;
}
.star-state-label {
  position: absolute;
  top: -0.2em;
  left: 50%;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(7px, 1.9vw, 9px);
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
}
.star-state-positive {
  color: #A12D28;
}
.star-state-neutral {
  color: #82786C;
}
.is-value-text {
  color: #8C2222;
}

/* --- 宫位象义与格局 --- */
.gong-selectable {
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.gong-selectable:focus-visible {
  outline: 1px dashed rgba(140, 34, 34, 0.55);
  outline-offset: -3px;
}
.gong-selectable.selected {
  background: #FFF7ED;
  box-shadow: inset 0 0 0 2px #8C2222;
}

.interpretation-shell {
  scroll-margin-top: 12px;
  width: calc(100% - 24px);
  margin: 16px auto 0;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #C2B8AA;
  border-top: 3px solid #8C2222;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(44, 37, 32, 0.025);
}
.interpretation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E3DBCF;
}
.interpretation-eyebrow {
  margin-bottom: 2px;
  color: #8C2222;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.interpretation-heading h2 {
  margin: 0;
  color: #1A1512;
  font-size: 19px;
  letter-spacing: 0.04em;
}
.interpretation-prompt {
  padding: 24px 8px 12px;
  color: #7A6F62;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}
.palace-interpretation { margin-top: 14px; }
.interpretation-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 8px;
  row-gap: 0;
  margin: 0 -16px 16px;
  padding: 0 16px 0;
  border-bottom: 1px solid #E3DBCF;
}
.interpretation-tab {
  flex: 0 0 auto;
  padding: 8px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #7A6F62;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}
.interpretation-tab.active {
  color: #8C2222;
  border-bottom-color: #8C2222;
}
.interpretation-tab:focus-visible {
  outline: none;
  background: #FFF9F1;
}
.interpretation-tab-panel { animation: interpretation-in 0.18s ease; }
@keyframes interpretation-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
.pattern-group + .pattern-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #D5C9B3;
}
.pattern-group > h3,
.stem-interpretation > .stem-heading h3 {
  margin: 0 0 10px;
  color: #4A4036;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.global-patterns > h3 { color: #8C2222; }
.interpretation-card {
  margin-top: 9px;
  padding: 12px 13px;
  border-left: 3px solid #A99D8D;
  background: #FAF8F4;
}
.interpretation-card.good {
  border-left-color: #71815A;
  background: #F7F9F2;
}
.interpretation-card.bad {
  border-left-color: #8C2222;
  background: #FDF7F5;
}
.interpretation-card h4,
.lecture-section h4 {
  margin: 0 0 7px;
  color: #1A1512;
  font-size: 15px;
}
.pattern-match-note {
  margin: -2px 0 7px;
  color: #8A7E70;
  font-size: 11px;
  line-height: 1.55;
}
.stem-classic-reading,
.stem-comprehensive-reading {
  padding: 9px 11px;
}
.stem-classic-reading {
  border: 1px solid #DED5C8;
  background: #FFFDF9;
}
.stem-comprehensive-reading {
  margin-top: 9px;
  border-left: 2px solid #8C2222;
  background: #FFFFFF;
}
.stem-classic-reading p,
.stem-comprehensive-reading p {
  margin-top: 0;
}
.stem-comprehensive-reading p + p {
  margin-top: 7px;
}
.interpretation-card p,
.lecture-section p,
.growth-card p {
  margin: 5px 0 0;
  color: #4A4036;
  font-size: 13px;
  line-height: 1.72;
  text-align: justify;
}
.empty-state {
  margin: 0;
  padding: 12px;
  background: #FAF8F4;
  color: #8A7E70;
  font-size: 12px;
  line-height: 1.7;
}
.lecture-section + .lecture-section { margin-top: 18px; }
.meaning-field {
  display: grid;
  grid-template-columns: minmax(4.5em, 6em) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #E3DBCF;
  font-size: 13px;
  line-height: 1.72;
}
.meaning-field:last-child { border-bottom: 0; }
.meaning-continuation { padding-top: 0; }
.meaning-label {
  color: #8C2222;
  font-weight: 700;
}
.meaning-value {
  color: #4A4036;
  text-align: justify;
}
.lecture-general {
  margin-top: 14px;
  border-top: 1px dashed #D5C9B3;
  padding-top: 12px;
}
.lecture-general summary {
  color: #7A6F62;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lecture-general[open] summary { margin-bottom: 10px; }
.current-state {
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid #D5C9B3;
  background: #FAF8F4;
  color: #5E5347;
  font-size: 13px;
}
.current-state strong { color: #8C2222; font-size: 15px; }
.symbol-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.symbol-status-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #C98E84;
  border-radius: 2px;
  background: #FDF7F5;
  color: #8C2222;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.lecture-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}
.lecture-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  color: #4A4036;
  font-size: 11px;
  line-height: 1.5;
}
.lecture-table th,
.lecture-table td {
  padding: 7px 6px;
  border: 1px solid #D5C9B3;
  text-align: left;
  vertical-align: top;
}
.lecture-table th { background: #F0EBE1; color: #2C2520; }
.stem-interpretation {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #D5C9B3;
}
.stem-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.stem-interpretation > .stem-heading h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 50%;
  background: #8C2222;
  color: #FFFFFF;
  font-size: 17px;
}
.stem-heading span { color: #7A6F62; font-size: 12px; }
.growth-statuses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.growth-card {
  padding: 9px 10px;
  border: 1px solid #E3DBCF;
  background: #FAF8F4;
}
.growth-card strong { color: #8C2222; font-size: 13px; }
.growth-card p { font-size: 11px; text-align: left; }

/* --- 个人介绍落款区 --- */
.pan-footer-profile {
  width: calc(100% - 24px);
  margin: 24px auto 10px;
  padding-top: 16px;
  border-top: 1px dashed #C2B8AA;
  text-align: center;
  font-size: 12px;
  color: #5E5347;
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.profile-divider {
  margin: 0 8px;
  color: #D5C9B3;
}
.profile-name {
  font-weight: 600;
  color: #1A1512;
}
.profile-gzh {
  color: #8C2222;
  font-weight: 500;
}

/* --- 响应式适配 --- */
@media (max-width: 380px) {
  .home-title h1 { font-size: 28px; }
  .home-card { padding: 24px 16px; }
  .time-grid { gap: 8px; }
  select { font-size: 15px; padding: 8px 2px; }
  
  .pan-info-box { padding: 4px 0 0; }
  .date-text { font-size: 15px; }
  .jieqi-text { font-size: 10px; }
  .sub-item { font-size: var(--meta-main-size); }

  .pan-back-row { height: 19px; }
  .btn-return { height: 18px; padding: 0 3px 0 1px; font-size: 11px; }
  .btn-return::before { font-size: 14px; }
  
  .gong {
    aspect-ratio: 1 / 1 !important; 
    --main-size: clamp(13px, 4.1vw, 16px);
    --small-size: 9px;
  }
  .angan-corner { top: 20px; }
  .kinship-controls { gap: 4px; padding-right: 6px; padding-left: 6px; }
  .kinship-use-label { display: none; }
  .kinship-use-control select { min-width: 50px; padding-right: 12px; font-size: var(--meta-main-size); }
  .kinship-confirm { padding-right: 7px; padding-left: 7px; }
  .interpretation-shell { padding: 14px; }
  .interpretation-tabs { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .interpretation-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .growth-statuses { grid-template-columns: 1fr; }
  
  .pan-footer-profile { font-size: 11px; }
  .profile-divider { margin: 0 4px; }
}

@media (max-width: 330px) {
  .home-actions { grid-template-columns: 1fr; gap: 12px; }
  .gong {
    --main-size: 13px;
  }
}
