:root {
  --ink: #172422;
  --ink-soft: #52615d;
  --paper: #f6f1e7;
  --paper-bright: #fcf9f1;
  --line: rgba(26, 44, 40, 0.13);
  --jade: #234f48;
  --jade-light: #dce9e2;
  --gold: #b78942;
  --gold-light: #ead9b6;
  --wood: #4c8a63;
  --fire: #c55e42;
  --earth: #b8844d;
  --metal: #71828a;
  --water: #4c7595;
  --shadow: 0 22px 55px rgba(34, 47, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.page-grain,
.ambient {
  position: fixed;
  pointer-events: none;
}

.page-grain {
  z-index: -1;
  inset: 0;
  opacity: 0.34;
  background-image: radial-gradient(rgba(41, 61, 54, 0.14) 0.6px, transparent 0.7px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.ambient {
  z-index: -2;
  border-radius: 50%;
  filter: blur(1px);
}

.ambient-one {
  top: 275px;
  right: -160px;
  width: 430px;
  height: 430px;
  background: rgba(221, 194, 141, 0.2);
}

.ambient-two {
  top: 1150px;
  left: -210px;
  width: 420px;
  height: 420px;
  background: rgba(153, 195, 177, 0.16);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  transform: rotate(45deg);
}

.brand-mark span {
  display: block;
  border: 1px solid var(--jade);
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(4) {
  background: var(--jade);
}

.brand-type {
  display: grid;
  gap: 1px;
  letter-spacing: 0.12em;
}

.brand-type strong {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.brand-type small {
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.19em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 33px;
  margin-left: 88px;
}

.site-nav a,
.header-cta,
.text-link,
.site-footer a {
  font-size: 13px;
  font-weight: 650;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a {
  color: var(--ink-soft);
}

.site-nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--jade);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 10px 19px;
  border-left: 1px solid var(--line);
}

.header-cta span,
.text-link span,
.site-footer a span {
  color: var(--gold);
  font-size: 18px;
  line-height: 0;
}

.hero {
  display: grid;
  min-height: 590px;
  grid-template-columns: 1fr 0.88fr;
  align-items: center;
  gap: 52px;
  padding: 44px 0 84px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--jade);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.eyebrow span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.hero h1,
.section-intro h2,
.method h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(43px, 5.1vw, 68px);
  line-height: 1.2;
}

.hero h1 em {
  color: var(--jade);
  display: block;
  font-style: normal;
}

.hero-description {
  max-width: 530px;
  margin: 25px 0 31px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 47px;
  border: 1px solid transparent;
  padding: 0 19px;
  font-size: 13px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffdf7;
  background: var(--jade);
  box-shadow: 0 12px 24px rgba(35, 79, 72, 0.18);
}

.button-primary:hover {
  background: #173e38;
  box-shadow: 0 16px 28px rgba(35, 79, 72, 0.23);
}

.button-primary span {
  color: var(--gold-light);
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-stats {
  display: flex;
  gap: 35px;
  margin: 56px 0 0;
}

.hero-stats div {
  position: relative;
  padding-right: 35px;
}

.hero-stats div:not(:last-child)::after {
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 31px;
  background: var(--line);
  content: "";
}

.hero-stats dt {
  color: var(--jade);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  width: min(100%, 455px);
  aspect-ratio: 1 / 1;
  justify-self: end;
}

.orbital-grid {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(35, 79, 72, 0.11);
  background-image: linear-gradient(rgba(35, 79, 72, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 79, 72, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: rotate(6deg);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(183, 137, 66, 0.56);
  border-radius: 50%;
}

.orbit-large {
  inset: 2%;
  transform: rotate(-23deg) scaleY(0.56);
}

.orbit-small {
  inset: 18%;
  border-color: rgba(35, 79, 72, 0.34);
  transform: rotate(52deg) scaleY(0.49);
}

.orbit-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(183, 137, 66, 0.4);
}

.node-one {
  top: 22%;
  right: 10%;
}

.node-two {
  bottom: 17%;
  left: 10%;
  background: var(--jade);
  box-shadow: 0 0 0 1px rgba(35, 79, 72, 0.35);
}

.hero-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 125px;
  height: 158px;
  border: 1px solid rgba(41, 65, 58, 0.14);
  background: rgba(252, 249, 241, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card::before {
  position: absolute;
  top: 9px;
  right: 9px;
  bottom: 9px;
  left: 9px;
  border: 1px solid rgba(183, 137, 66, 0.26);
  content: "";
}

.hero-card span,
.hero-card small,
.visual-caption {
  position: relative;
  z-index: 1;
}

.hero-card span {
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.hero-card strong {
  position: relative;
  z-index: 1;
  color: var(--jade);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 45px;
  font-weight: 500;
  line-height: 0.91;
  text-align: center;
}

.hero-card small {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
}

.card-year {
  top: 18%;
  left: 9%;
  transform: rotate(-8deg);
}

.card-day {
  right: 11%;
  bottom: 15%;
  transform: rotate(8deg);
}

.card-day strong {
  color: var(--fire);
}

.hero-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 104px;
  height: 104px;
  place-content: center;
  border: 1px solid var(--jade);
  border-radius: 50%;
  color: var(--jade);
  background: rgba(246, 241, 231, 0.88);
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero-seal::before,
.hero-seal::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(35, 79, 72, 0.37);
  border-radius: 50%;
  content: "";
}

.hero-seal::after {
  inset: 15px;
  border-style: dashed;
}

.hero-seal span,
.hero-seal b,
.hero-seal i {
  position: relative;
  z-index: 1;
}

.hero-seal span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-seal b {
  margin: 2px 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  letter-spacing: 0.09em;
}

.hero-seal i {
  color: var(--gold);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px;
  font-style: normal;
}

.visual-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.workspace {
  padding: 82px 0 97px;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 30px;
}

.section-intro h2,
.method h2 {
  font-size: clamp(29px, 3.5vw, 42px);
  line-height: 1.26;
}

.section-intro > p {
  max-width: 350px;
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.panel {
  border: 1px solid rgba(31, 53, 47, 0.12);
  background: rgba(252, 249, 241, 0.75);
  box-shadow: var(--shadow);
}

.input-panel {
  position: sticky;
  top: 18px;
  padding: 28px;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-index {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(183, 137, 66, 0.42);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
}

.panel-heading p,
.panel-heading h3 {
  margin: 0;
}

.panel-heading p,
.card-label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-heading h3 {
  margin-top: 2px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.bazi-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 14px;
  margin-top: 29px;
}

.field,
.choice-field {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span,
.choice-field legend {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.field i,
.choice-field i {
  color: #8a9692;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  padding: 0 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--jade) 50%), linear-gradient(135deg, var(--jade) 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus {
  border-color: rgba(35, 79, 72, 0.7);
  box-shadow: 0 0 0 3px rgba(35, 79, 72, 0.1);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.segmented-control label {
  position: relative;
  cursor: pointer;
}

.segmented-control label + label {
  border-left: 1px solid var(--line);
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.segmented-control span {
  display: grid;
  height: 40px;
  place-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.segmented-control input:checked + span {
  color: #fff;
  background: var(--jade);
}

.segmented-control input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 49px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  cursor: pointer;
}

.switch-row > span:first-child {
  display: grid;
  gap: 2px;
}

.switch-row b {
  font-size: 12px;
}

.switch-row small {
  color: var(--ink-soft);
  font-size: 10px;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 12px;
  background: #c6ceca;
  transition: background 160ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(20, 36, 31, 0.22);
  content: "";
  transition: transform 160ms ease;
}

.switch-row input:checked + .switch {
  background: var(--jade);
}

.switch-row input:checked + .switch::after {
  transform: translateX(15px);
}

.switch-row input:focus-visible + .switch {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.button-submit {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 1px;
}

.sample-button {
  grid-column: 1 / -1;
  border: 0;
  padding: 1px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sample-button:hover {
  color: var(--jade);
}

.privacy-note {
  display: flex;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.privacy-note span {
  color: var(--gold);
  font-size: 12px;
}

.privacy-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

.result-panel {
  min-width: 0;
  padding: 28px;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.icon-button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--jade);
  background: transparent;
  font-size: 19px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  border-color: rgba(35, 79, 72, 0.4);
  background: var(--jade-light);
  transform: translateY(-1px);
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 26px 0 21px;
  padding: 13px 0 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--jade);
  background: var(--jade-light);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  font-weight: 700;
}

.profile-summary p,
.profile-summary h4 {
  margin: 0;
}

.profile-summary p {
  color: var(--jade);
  font-size: 12px;
  font-weight: 750;
}

.profile-summary h4 {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.result-tag {
  margin-left: auto;
  border: 1px solid rgba(183, 137, 66, 0.32);
  padding: 5px 8px;
  color: #88652e;
  font-size: 10px;
  white-space: nowrap;
}

.boundary-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -8px 0 17px;
  border: 1px solid rgba(183, 137, 66, 0.35);
  padding: 9px 10px;
  color: #775929;
  background: rgba(234, 217, 182, 0.34);
}

.boundary-note span {
  margin-top: 1px;
}

.boundary-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.65;
}

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

.pillar-card {
  --pillar: var(--jade);
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 12px 10px 10px;
  background: rgba(255, 255, 255, 0.42);
}

.pillar-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--pillar);
  content: "";
}

.pillar-card.is-day-master {
  border-color: rgba(197, 94, 66, 0.34);
  background: rgba(251, 241, 235, 0.7);
}

.pillar-wood { --pillar: var(--wood); }
.pillar-fire { --pillar: var(--fire); }
.pillar-earth { --pillar: var(--earth); }
.pillar-metal { --pillar: var(--metal); }
.pillar-water { --pillar: var(--water); }

.pillar-name,
.pillar-god {
  display: block;
  font-size: 10px;
}

.pillar-name {
  color: var(--ink-soft);
  font-weight: 700;
}

.pillar-god {
  position: absolute;
  top: 12px;
  right: 10px;
  color: var(--pillar);
  font-size: 9px;
  font-weight: 750;
}

.pillar-card strong {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 2px;
  margin: 15px 0 10px;
  color: var(--pillar);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(28px, 3.2vw, 39px);
  font-weight: 500;
  line-height: 1;
}

.pillar-card strong b {
  font-weight: 500;
}

.pillar-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  text-align: center;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 0.87fr 1.13fr;
  gap: 10px;
  margin-top: 10px;
}

.day-master-card,
.elements-card {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.day-master-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}

.element-glyph {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 26px;
}

.element-wood { color: var(--wood); }
.element-fire { color: var(--fire); }
.element-earth { color: var(--earth); }
.element-metal { color: var(--metal); }
.element-water { color: var(--water); }

.day-master-main p,
.day-master-main h4 {
  margin: 0;
}

.day-master-main p {
  color: var(--jade);
  font-size: 12px;
  font-weight: 750;
}

.day-master-main h4 {
  margin-top: 3px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.4;
}

.day-master-copy {
  min-height: 62px;
  margin: 15px 0 13px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-row span {
  border: 1px solid var(--line);
  padding: 4px 7px;
  color: var(--jade);
  background: rgba(220, 233, 226, 0.43);
  font-size: 9px;
  font-weight: 700;
}

.element-card-heading,
.rhythm-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.element-card-heading h4,
.rhythm-heading h4 {
  margin: 3px 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
}

.element-card-heading > span,
#direction-tag {
  border: 1px solid rgba(35, 79, 72, 0.18);
  padding: 4px 6px;
  color: var(--jade);
  background: rgba(220, 233, 226, 0.38);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.element-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.element-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 19px;
  align-items: center;
  gap: 7px;
}

.element-row > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.element-row > div {
  height: 6px;
  overflow: hidden;
  background: #e6e8df;
}

.element-row b {
  display: block;
  height: 100%;
  background: var(--element, var(--jade));
  transition: width 580ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.element-row strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 11px;
  text-align: right;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--element, var(--jade));
}

.dot-wood { --element: var(--wood); }
.dot-fire { --element: var(--fire); }
.dot-earth { --element: var(--earth); }
.dot-metal { --element: var(--metal); }
.dot-water { --element: var(--water); }

.insight-section {
  margin-top: 10px;
  border: 1px solid var(--line);
  padding: 20px 18px 18px;
  background: rgba(220, 233, 226, 0.2);
}

.insight-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.insight-heading .eyebrow {
  margin-bottom: 5px;
}

.insight-heading h4 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
}

.insight-heading > p {
  max-width: 200px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
  text-align: right;
}

.insight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 17px;
}

.insight-cards article {
  min-width: 0;
  padding: 13px 12px 12px;
  background: rgba(252, 249, 241, 0.76);
}

.insight-cards span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
}

.insight-cards h5 {
  margin: 11px 0 5px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px;
}

.insight-cards p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.75;
}

.rhythm-section {
  margin-top: 10px;
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.rhythm-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 20px;
}

.rhythm-item {
  position: relative;
  min-width: 0;
  padding: 0 12px 4px 0;
}

.rhythm-item:not(:last-child)::after {
  position: absolute;
  top: 7px;
  right: 0;
  left: 14px;
  height: 1px;
  background: rgba(35, 79, 72, 0.2);
  content: "";
}

.rhythm-point {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 11px;
  border: 3px solid var(--paper-bright);
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 1px rgba(35, 79, 72, 0.36);
}

.rhythm-item:nth-child(2) .rhythm-point { background: var(--gold); box-shadow: 0 0 0 1px rgba(183, 137, 66, 0.5); }
.rhythm-item:nth-child(3) .rhythm-point { background: var(--water); box-shadow: 0 0 0 1px rgba(76, 117, 149, 0.48); }
.rhythm-item:nth-child(4) .rhythm-point { background: var(--fire); box-shadow: 0 0 0 1px rgba(197, 94, 66, 0.46); }

.rhythm-item strong,
.rhythm-item span,
.rhythm-item p {
  display: block;
}

.rhythm-item strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 13px;
}

.rhythm-item > span {
  margin-top: 3px;
  color: var(--jade);
  font-size: 10px;
  font-weight: 750;
}

.rhythm-item p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.disclaimer {
  margin: 13px 0 0;
  color: #7a8581;
  font-size: 9px;
  line-height: 1.7;
}

.method {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 90px;
  padding: 73px 0 90px;
  border-top: 1px solid var(--line);
}

.method-copy > p:last-child {
  max-width: 415px;
  margin: 21px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.method-list li {
  display: flex;
  gap: 13px;
  min-height: 142px;
  padding: 21px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-list > li > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 13px;
}

.method-list h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
}

.method-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-content {
  display: grid;
  min-height: 126px;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  column-gap: 30px;
  row-gap: 13px;
  padding: 24px 0;
}

.footer-copy p,
.footer-copyright {
  margin: 0;
  color: var(--ink-soft);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
}

.footer-copy small {
  display: block;
  margin-top: 4px;
  color: #7a8581;
  font-size: 10px;
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-legal-links a {
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.footer-back-link {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.footer-copyright {
  grid-column: 2 / -1;
  color: #8a9692;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  border-bottom: 1px solid var(--line);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.legal-home-link span {
  color: var(--gold);
  font-size: 17px;
  line-height: 0;
}

.legal-main {
  width: min(100% - 48px, 920px);
  margin: 0 auto;
  padding: 76px 0 92px;
}

.legal-article {
  width: min(100%, 720px);
  margin: 0 auto;
}

.legal-eyebrow {
  margin: 0 0 15px;
  color: var(--jade);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.legal-title {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.18;
}

.legal-meta {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.legal-intro,
.legal-callout {
  margin-top: 38px;
  border: 1px solid rgba(183, 137, 66, 0.36);
  padding: 18px 20px;
  color: #6f5832;
  background: rgba(234, 217, 182, 0.24);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 14px;
  line-height: 1.9;
}

.legal-intro::before,
.legal-section h2::before {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 12px;
  background: var(--gold);
  content: "";
}

.legal-section {
  margin-top: 42px;
}

.legal-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 22px;
  line-height: 1.5;
}

.legal-section h2 span {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-section p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}

.legal-section a,
.legal-callout a {
  color: var(--jade);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(183, 137, 66, 0.65);
  text-underline-offset: 4px;
}

.legal-callout {
  margin-top: 48px;
}

.legal-page .site-footer {
  margin-top: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr 0.75fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(39px, 5.5vw, 56px);
  }

  .hero-visual {
    transform: scale(0.91);
    transform-origin: right center;
  }

  .calculator-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .input-panel,
  .result-panel {
    padding: 22px;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .day-master-copy {
    min-height: 0;
  }

  .method {
    gap: 45px;
  }
}

@media (max-width: 920px) {
  .shell {
    width: min(calc(100% - 32px), 720px);
  }

  .site-header {
    height: 80px;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    padding-left: 13px;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 50px 0 68px;
  }

  .hero h1 {
    font-size: clamp(39px, 10vw, 55px);
  }

  .hero-description {
    margin: 20px 0 27px;
  }

  .hero-stats {
    margin-top: 43px;
  }

  .hero-stats div {
    padding-right: 18px;
  }

  .hero-visual {
    width: min(100%, 360px);
    margin: 36px auto 0;
    transform: none;
  }

  .section-intro,
  .insight-heading {
    display: block;
  }

  .section-intro > p {
    margin-top: 14px;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .input-panel {
    position: static;
  }

  .insight-heading > p {
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .method {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .method-list li {
    min-height: 124px;
  }

  .footer-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding: 27px 0;
  }

  .footer-copyright {
    margin-top: 2px;
  }

  .legal-header-inner {
    min-height: 80px;
  }

  .legal-main {
    width: min(100% - 32px, 720px);
    padding: 55px 0 68px;
  }

  .legal-intro,
  .legal-callout {
    padding: 16px;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-stats {
    gap: 15px;
  }

  .hero-stats div {
    padding-right: 15px;
  }

  .hero-stats dt {
    font-size: 21px;
  }

  .input-panel,
  .result-panel {
    padding: 18px;
  }

  .bazi-form {
    gap: 16px 10px;
  }

  .profile-summary {
    flex-wrap: wrap;
  }

  .result-tag {
    margin-left: 47px;
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-card strong {
    font-size: 38px;
  }

  .insight-cards {
    grid-template-columns: 1fr;
  }

  .rhythm-line {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 19px;
  }

  .rhythm-item:nth-child(2)::after {
    display: none;
  }

  .method-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
