@charset "UTF-8";

:root {
  color-scheme: light;
  --indigo: #243b64;
  --indigo-deep: #172b4b;
  --indigo-soft: #eaf0f8;
  --coral: #e26d5a;
  --coral-soft: #fbede9;
  --ink: #17243b;
  --muted: #647087;
  --paper: #f4f6fa;
  --surface: #ffffff;
  --line: #dfe4eb;
  --gold: #d8b26e;
  --wood: #39775c;
  --fire: #d66351;
  --earth: #9a7140;
  --metal: #63758f;
  --water: #416a9b;
  --shadow: 0 16px 42px rgba(29, 48, 80, 0.08);
  --sans: "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --content-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, summary { font: inherit; }
::selection { color: #fff; background: var(--coral); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  transform: translateY(-160%);
  border-radius: 7px;
  background: #fff;
  color: var(--indigo);
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; z-index: 100; inset: 0 0 auto; height: 3px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--coral); transition: width 80ms linear; }

.site-header {
  position: relative;
  z-index: 30;
  height: 76px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(36, 59, 100, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), 1320px);
  height: 100%;
  margin: 0 auto;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 1px solid var(--indigo);
  border-radius: 12px 12px 12px 3px;
  background: var(--indigo);
  transform: rotate(-4deg);
}
.brand-mark i, .brand-mark b { position: absolute; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.brand-mark i:nth-child(1) { top: 8px; left: 9px; }
.brand-mark i:nth-child(2) { top: 8px; right: 9px; }
.brand-mark i:nth-child(3) { bottom: 8px; left: 9px; }
.brand-mark i:nth-child(4) { bottom: 8px; right: 9px; }
.brand-mark b { top: 16px; left: 16px; width: 6px; height: 6px; background: var(--coral); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { color: var(--indigo); font-size: 16px; letter-spacing: 0.06em; }
.brand-copy small { margin-top: 4px; color: #7c8799; font-family: Arial, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 0.12em; }
.top-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 38px); margin-left: auto; }
.top-nav a, .header-index { text-decoration: none; font-size: 13px; font-weight: 650; transition: color 160ms ease; }
.top-nav a { color: #4d5b72; }
.top-nav a:hover, .header-index:hover { color: var(--coral); }
.header-index { display: inline-flex; align-items: center; gap: 8px; color: var(--indigo); white-space: nowrap; }
.index-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--indigo);
  isolation: isolate;
}
.hero::before, .hero::after { position: absolute; z-index: -1; content: ""; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; }
.hero::before { width: 640px; height: 640px; top: -310px; right: -70px; }
.hero::after { width: 840px; height: 840px; top: -420px; right: -170px; }
.hero-grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.13;
  background-image: radial-gradient(rgba(255,255,255,.55) .55px, transparent .55px);
  background-size: 8px 8px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), 1120px);
  min-height: 480px;
  margin: 0 auto;
  padding: 62px 0 54px;
  gap: 70px;
}
.hero-copy { width: min(58%, 610px); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 23px; color: #d4deef; font-size: 12px; letter-spacing: .08em; }
.eyebrow-mark { padding: 4px 8px; border: 1px solid rgba(255,255,255,.28); color: #f6c5b9; font-family: Arial, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.hero h1 { margin: 0; font-size: clamp(46px, 6.4vw, 76px); font-weight: 850; line-height: 1.17; letter-spacing: .035em; }
.hero h1 em { color: #ff9a82; font-style: normal; }
.hero-lead { max-width: 520px; margin: 22px 0 0; color: #dce4f0; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 19px; border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 750; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-coral { color: #fff; background: var(--coral); box-shadow: 0 8px 18px rgba(226,109,90,.22); }
.button-coral:hover { background: #d65e4e; box-shadow: 0 12px 22px rgba(226,109,90,.28); }
.text-link { text-decoration: none; font-size: 13px; font-weight: 700; }
.light-link { color: #f4d8d1; }
.light-link span { display: inline-block; margin-left: 5px; transition: transform 160ms ease; }
.light-link:hover span { transform: translateX(4px); }
.hero-note { margin: 25px 0 0; color: #adbad0; font-size: 12px; }
.hero-visual { position: relative; display: grid; flex: 0 0 350px; width: 350px; height: 350px; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid rgba(255,255,255,.27); border-radius: 50%; }
.orbit-one { width: 245px; height: 245px; transform: rotate(28deg) scaleY(.68); }
.orbit-two { width: 245px; height: 245px; transform: rotate(-28deg) scaleY(.68); }
.visual-center { z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border: 1px solid rgba(255,255,255,.44); border-radius: 50%; background: rgba(20,37,67,.62); box-shadow: 0 0 0 12px rgba(255,255,255,.025), 0 0 0 28px rgba(255,255,255,.02); }
.visual-center span { color: #fff; font-size: 27px; font-weight: 800; letter-spacing: .12em; }
.visual-center small { color: #c2ccdc; font-size: 10px; letter-spacing: .16em; }
.orbit-label { position: absolute; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: #fff; background: var(--indigo-deep); font-size: 17px; font-weight: 800; box-shadow: 0 0 0 6px rgba(255,255,255,.05); }
.label-wood { top: 33px; left: 155px; color: #b7dfc5; }
.label-fire { top: 119px; right: 20px; color: #ffb09e; }
.label-earth { bottom: 45px; right: 84px; color: #f0d19b; }
.label-metal { bottom: 45px; left: 84px; color: #d0d9e6; }
.label-water { top: 119px; left: 20px; color: #b9d5f5; }
.visual-caption { position: absolute; right: 2px; bottom: 0; display: flex; align-items: center; gap: 9px; color: #aebbd1; font-size: 11px; letter-spacing: .1em; }
.caption-line { width: 22px; height: 1px; background: var(--coral); }
.hero-stats { display: flex; align-items: stretch; width: min(calc(100% - 64px), 1120px); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.19); }
.hero-stats div { display: flex; align-items: baseline; gap: 10px; min-height: 64px; padding: 14px 38px 12px 0; margin-right: 38px; border-right: 1px solid rgba(255,255,255,.16); }
.hero-stats div:last-child { border: 0; }
.hero-stats strong { color: #fff; font-family: Arial, sans-serif; font-size: 22px; font-weight: 750; }
.hero-stats span { color: #c5d0e0; font-size: 12px; }

.page-layout { display: flex; align-items: flex-start; gap: 56px; width: min(calc(100% - 64px), var(--content-width)); margin: 0 auto; padding: 58px 0 80px; }
.toc-wrap { position: sticky; top: 26px; flex: 0 0 220px; padding-top: 9px; }
.toc-card { padding: 19px 16px 16px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.74); }
.toc-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; padding: 0 2px 12px; border-bottom: 1px solid var(--line); color: var(--indigo); font-size: 13px; font-weight: 800; }
.toc-heading span { color: #98a1b0; font-family: Arial, sans-serif; font-size: 8px; letter-spacing: .12em; }
.toc { display: flex; flex-direction: column; gap: 3px; }
.toc a { display: flex; align-items: center; gap: 11px; min-height: 36px; padding: 5px 8px; border-radius: 4px; color: #637087; text-decoration: none; font-size: 12px; transition: color 140ms ease, background 140ms ease; }
.toc a span { color: #98a1b0; font-family: Arial, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.toc a:hover, .toc a[aria-current="location"] { color: var(--indigo); background: var(--indigo-soft); }
.toc a[aria-current="location"] span { color: var(--coral); }
.toc-top { display: flex; justify-content: space-between; margin: 14px 4px 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-decoration: none; }
.toc-top:hover { color: var(--coral); }
.article { min-width: 0; flex: 1 1 auto; max-width: 820px; }
.chapter { position: relative; padding: 7px 0 52px; margin-bottom: 13px; border-bottom: 1px solid #d9dfe8; scroll-margin-top: 98px; }
.chapter:last-of-type { border-bottom: 0; }
.chapter-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 21px; }
.chapter-number { display: inline-flex; align-items: center; gap: 10px; padding-top: 9px; color: var(--coral); font-family: Arial, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.chapter-number i { display: block; width: 23px; height: 1px; background: #e6a298; }
.section-kicker { margin: 0 0 4px; color: #8a95a7; font-family: Arial, sans-serif; font-size: 9px; font-weight: 750; letter-spacing: .16em; line-height: 1.4; }
.chapter h2 { margin: 0; color: var(--indigo); font-size: clamp(24px, 3vw, 32px); font-weight: 820; line-height: 1.35; letter-spacing: .03em; }
.bazi-subheading { margin: 25px 0 9px; padding-left: 11px; border-left: 2px solid var(--coral); color: var(--indigo); font-size: 16px; font-weight: 800; line-height: 1.5; }
.lead-paragraph { margin: 0 0 20px; color: #45536a; font-size: 16px; line-height: 1.9; }
.body-copy { margin: 0 0 17px; color: #4c5a70; font-size: 14px; line-height: 1.95; }
.goal-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 19px 0 18px; }
.goal-item { display: flex; align-items: center; gap: 10px; flex: 1 1 calc(50% - 9px); min-height: 55px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.goal-item > span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 4px; color: var(--indigo); background: var(--indigo-soft); font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; }
.goal-item p { margin: 0; color: #526078; font-size: 12px; line-height: 1.6; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 4px; }
.notice p { margin: 0; color: #58657a; font-size: 12px; line-height: 1.8; }
.notice-symbol { display: grid; flex: 0 0 21px; width: 21px; height: 21px; place-items: center; border-radius: 50%; font-family: Georgia, serif; font-size: 13px; font-weight: 800; }
.notice-neutral { border-left: 3px solid #7b91b4; background: #edf1f7; }
.notice-neutral .notice-symbol { color: var(--indigo); background: #d7e0ef; }
.notice-coral { margin-top: 18px; border-left: 3px solid var(--coral); background: #fbefec; }
.notice-coral .notice-symbol { color: #fff; background: var(--coral); }
.definition-stack { display: flex; flex-direction: column; gap: 9px; margin: 18px 0; }
.definition-card { display: flex; align-items: center; gap: 14px; min-height: 83px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.definition-index { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid #d9e0eb; border-radius: 50%; color: var(--coral); font-family: Georgia, serif; font-size: 12px; font-weight: 700; }
.definition-card > div { flex: 1; }
.definition-card h3 { margin: 0 0 2px; color: var(--indigo); font-size: 14px; }
.definition-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.definition-card .symbol-sequence { margin-top: 4px; color: var(--ink); font-size: 13px; font-weight: 750; letter-spacing: .08em; }
.definition-count { color: #c4cbd5; font-family: Arial, sans-serif; font-size: 25px; font-weight: 800; }
.table-shell { overflow-x: auto; margin: 20px 0; border: 1px solid #d9dfe8; border-radius: 5px; background: #fff; box-shadow: 0 5px 18px rgba(36,59,100,.035); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
thead { color: #fff; background: var(--indigo); }
th, td { padding: 11px 14px; border-bottom: 1px solid #e7eaf0; }
thead th { font-size: 11px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
tbody th { color: var(--indigo); font-weight: 800; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f8f9fb; }
tbody tr:hover { background: #f1f4f8; }
.element-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 25px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.element-tag.wood { color: #286345; background: #e7f1eb; }
.element-tag.fire { color: #a94335; background: #fae9e5; }
.element-tag.earth { color: #805d30; background: #f4eee2; }
.element-tag.metal { color: #4d607a; background: #e9edf3; }
.element-tag.water { color: #315987; background: #e6eff8; }
.reference-card { overflow: hidden; margin: 23px 0 19px; border: 1px solid #d9dfe8; border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.figure-topline { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid #e8ebf1; color: var(--indigo); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.figure-topline span:first-child { color: #8994a5; font-family: Arial, sans-serif; font-size: 8px; letter-spacing: .14em; }
.reference-card img { display: block; width: min(100%, 520px); max-height: 760px; margin: 0 auto; object-fit: contain; background: #111a25; }
.reference-card figcaption { display: flex; align-items: baseline; gap: 10px; padding: 12px 15px; border-top: 1px solid #e8ebf1; color: #657187; font-size: 11px; line-height: 1.7; }
.caption-number { color: var(--coral); font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.memory-strip { display: flex; align-items: center; gap: 13px; margin: 17px 0; padding: 11px 14px; border: 1px solid #f2d5cf; border-radius: 4px; background: var(--coral-soft); }
.memory-label { flex: 0 0 auto; padding: 3px 7px; border-radius: 3px; color: #fff; background: var(--coral); font-size: 10px; font-weight: 750; }
.memory-strip p { margin: 0; color: #573d3a; font-size: 12px; font-weight: 700; }
.branch-table { min-width: 480px; }
.bazi-pillar-table { min-width: 610px; }
.bazi-ten-gods-table { min-width: 650px; }
.row-number { width: 62px; color: #9aa3b2; font-family: Arial, sans-serif; font-size: 10px; }
.branch-table th:not(:first-child), .branch-table td:not(:first-child) { text-align: center; }
.element-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.group-card { display: flex; align-items: center; gap: 10px; flex: 1 1 30%; min-width: 138px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.group-symbol { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 5px; font-size: 15px; font-weight: 850; }
.group-card div { display: flex; flex-direction: column; line-height: 1.45; }
.group-card strong { font-size: 12px; }
.group-card small { color: var(--muted); font-size: 10px; }
.group-wood .group-symbol { color: #286345; background: #e7f1eb; }
.group-fire .group-symbol { color: #a94335; background: #fae9e5; }
.group-earth .group-symbol { color: #805d30; background: #f4eee2; }
.group-metal .group-symbol { color: #4d607a; background: #e9edf3; }
.group-water .group-symbol { color: #315987; background: #e6eff8; }
.season-list { overflow: hidden; margin: 19px 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.season-row { display: flex; align-items: center; gap: 15px; min-height: 64px; padding: 9px 16px; border-bottom: 1px solid #e8ebf1; }
.season-row:last-child { border-bottom: 0; }
.season-mark { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 50%; color: #fff; font-size: 15px; font-weight: 800; }
.season-mark.spring { background: #6c9c79; }.season-mark.summer { background: #e27860; }.season-mark.autumn { background: #b8874f; }.season-mark.winter { background: #5b7da5; }
.season-branches { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 15px; }
.season-branches strong { color: var(--indigo); font-size: 15px; letter-spacing: .1em; }
.season-branches span { color: #66738a; font-size: 12px; }
.season-index { color: #a0a8b4; font-family: Arial, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.relation-panels { display: flex; align-items: stretch; gap: 13px; margin: 20px 0; }
.relation-panel { flex: 1 1 50%; min-width: 0; padding: 17px 16px 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.generate-panel { border-top: 3px solid #577a68; }.control-panel { border-top: 3px solid var(--coral); }
.relation-heading { display: flex; align-items: center; gap: 10px; }
.relation-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: #577a68; font-size: 14px; font-weight: 800; }
.control-panel .relation-icon { background: var(--coral); }
.relation-heading h3 { margin: 0; color: var(--indigo); font-size: 17px; line-height: 1.3; }
.relation-heading .section-kicker { margin-bottom: 2px; font-size: 8px; }
.relation-note { margin-left: auto; color: #929bac; font-size: 9px; }
.relation-sequence { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 0; margin: 20px 0 13px; list-style: none; }
.relation-sequence li { position: relative; display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 850; }
.relation-sequence li:not(:last-child)::after { position: absolute; top: 50%; left: calc(100% + 3px); color: #8e99aa; content: "→"; font-size: 11px; font-weight: 500; transform: translateY(-55%); }
.wood-node { background: #538269; }.fire-node { background: #d66a57; }.earth-node { background: #a47a46; }.metal-node { background: #687a94; }.water-node { background: #4a75a5; }
.cycle-caption { min-height: 40px; margin: 0; color: #67748a; font-size: 10px; line-height: 1.7; }
.cycle-summary { display: flex; align-items: center; justify-content: space-between; gap: 11px; margin: 21px 0; padding: 20px; border: 1px solid #dce3ee; border-radius: 5px; background: #fff; }
.cycle-count, .cycle-total { display: flex; flex-direction: column; align-items: center; min-width: 76px; color: #6b778a; font-size: 10px; }
.count-number { color: var(--indigo); font-family: Arial, sans-serif; font-size: 28px; font-weight: 800; line-height: 1.15; }
.multiply-sign { color: #adb5c1; font-size: 18px; }
.result-arrow { padding: 5px 9px; border-radius: 3px; color: #53627b; background: var(--indigo-soft); font-size: 10px; font-weight: 750; }
.cycle-total { padding-left: 16px; border-left: 1px solid var(--line); }
.cycle-total .count-number { color: var(--coral); font-size: 36px; }
.note-list { display: flex; flex-direction: column; }
.note-item { display: flex; gap: 15px; padding: 16px 2px; border-top: 1px solid var(--line); }
.note-item > span { flex: 0 0 31px; padding-top: 1px; color: var(--coral); font-family: Arial, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.note-item h3 { margin: 0 0 3px; color: var(--indigo); font-size: 14px; }
.note-item p { margin: 0; color: #637087; font-size: 12px; line-height: 1.85; }
.quiz-chapter { padding: 21px 20px 28px; border: 1px solid #dce3ee; border-radius: 6px; background: #fff; }
.quiz-chapter .chapter-heading { margin-bottom: 13px; }
.quiz-list { display: flex; flex-direction: column; gap: 7px; padding: 0; margin: 18px 0; list-style: none; }
.quiz-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border: 1px solid #edf0f4; border-radius: 4px; color: #49576d; font-size: 13px; }
.question-number { flex: 0 0 27px; padding-top: 1px; color: var(--coral); font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.answer-panel { overflow: hidden; border: 1px solid #f0d0c9; border-radius: 4px; background: #fff9f7; }
.answer-panel summary { display: flex; align-items: center; gap: 9px; padding: 12px 14px; color: #823e35; cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; }
.answer-panel summary::-webkit-details-marker { display: none; }
.answer-panel summary small { margin-left: auto; color: #aa8078; font-size: 10px; font-weight: 500; }
.answer-toggle-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--coral); font-size: 15px; line-height: 1; transition: transform 160ms ease; }
.answer-panel[open] .answer-toggle-icon { transform: rotate(45deg); }
.answer-content { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 4px 14px 12px 45px; border-top: 1px solid #f3ded9; }
.answer-content p { margin: 5px 0 0; color: #6b514c; font-size: 11px; }
.answer-content strong { color: #a54a3d; }
.ten-gods-tool { margin: 19px 0 23px; padding: 18px; border: 1px solid #dce3ee; border-radius: 6px; background: linear-gradient(135deg, #fff 0%, #f7f9fc 100%); }
.ten-gods-tool-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.ten-gods-tool-heading .section-kicker { margin-bottom: 3px; }
.ten-gods-tool-heading h3 { margin: 0; color: var(--indigo); font-size: 17px; line-height: 1.4; }
.ten-gods-badge { padding: 4px 9px; border-radius: 999px; color: #315987; background: #e6eff8; font-size: 9px; font-weight: 800; white-space: nowrap; }
.ten-gods-tool-intro { margin: 0 0 13px; color: #637087; font-size: 11px; line-height: 1.8; }
.ten-gods-prompt { padding: 12px 14px; border-left: 3px solid var(--coral); border-radius: 4px; background: var(--coral-soft); }
.ten-gods-round { margin: 0 0 3px; color: #a14c3f; font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.ten-gods-question { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.75; }
.ten-gods-question strong { color: var(--indigo); white-space: nowrap; }
.ten-gods-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 13px 0; }
.ten-gods-option { min-height: 38px; padding: 6px 8px; border: 1px solid #dce3ed; border-radius: 4px; color: var(--indigo); background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.ten-gods-option:hover:not(:disabled) { border-color: #9babc3; background: #f5f7fb; transform: translateY(-1px); }
.ten-gods-option:focus-visible, .ten-gods-button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.ten-gods-option:disabled { cursor: default; opacity: .66; }
.ten-gods-option.is-correct { border-color: #8bb89a; color: #2e6640; background: #edf6ef; opacity: 1; }
.ten-gods-option.is-wrong { border-color: #e29a8c; color: #9d4337; background: #fbede9; opacity: 1; }
.ten-gods-feedback { min-height: 43px; margin: 8px 0 10px; padding: 9px 11px; border: 1px dashed #d8dfea; border-radius: 4px; color: #5a677d; font-size: 10px; line-height: 1.75; }
.ten-gods-feedback.is-success { border-style: solid; border-color: #c7dfce; color: #2f6941; background: #f1f8f2; }
.ten-gods-feedback.is-error { border-style: solid; border-color: #eed1cb; color: #7b4a43; background: #fff8f6; }
.ten-gods-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ten-gods-score { margin: 0; color: var(--muted); font-size: 10px; font-weight: 750; }
.ten-gods-control-actions { display: flex; gap: 7px; }
.ten-gods-button { min-height: 34px; padding: 6px 11px; border-radius: 4px; font-size: 10px; font-weight: 750; cursor: pointer; }
.ten-gods-button-primary { border: 1px solid var(--indigo); color: #fff; background: var(--indigo); }
.ten-gods-button-secondary { border: 1px solid #d3dbe7; color: var(--indigo); background: #fff; }
.ten-gods-button:disabled { cursor: default; opacity: .5; }
.ten-gods-footnote, .ten-gods-noscript { margin: 10px 0 0; color: #7c8797; font-size: 9px; line-height: 1.7; }
.glossary-list { margin: 18px 0 0; border-top: 1px solid var(--line); }
.glossary-list div { display: flex; gap: 15px; padding: 11px 4px; border-bottom: 1px solid #e6eaf0; }
.glossary-list dt { flex: 0 0 58px; color: var(--indigo); font-size: 13px; font-weight: 850; }
.glossary-list dd { margin: 0; color: #657187; font-size: 12px; line-height: 1.8; }
.references-chapter { padding-bottom: 34px; }
.reference-list { padding: 0; margin: 16px 0 18px; border-top: 1px solid var(--line); list-style: none; }
.reference-list li { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid #e5e9ef; }
.reference-index { color: var(--coral); font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.reference-list li div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.reference-list strong { color: #7c8799; font-size: 10px; font-weight: 600; }
.reference-list a { color: var(--indigo); font-size: 12px; font-weight: 700; text-decoration-color: #bdc9da; text-underline-offset: 3px; }
.reference-list a span { margin-left: 6px; color: var(--coral); font-family: Arial, sans-serif; }
.reference-list a:hover { color: var(--coral); }
.source-note { margin: 0; color: #7a8597; font-size: 11px; line-height: 1.8; }
.site-footer { display: flex; align-items: center; gap: 18px; padding-top: 19px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--indigo); font-size: 12px; white-space: nowrap; }
.small-mark { width: 28px; height: 28px; border-radius: 9px 9px 9px 2px; transform: scale(.82) rotate(-4deg); }
.small-mark i { transform: scale(.75); }
.small-mark i:nth-child(1) { top: 6px; left: 7px; }.small-mark i:nth-child(2) { top: 6px; right: 7px; }.small-mark i:nth-child(3) { bottom: 6px; left: 7px; }.small-mark i:nth-child(4) { bottom: 6px; right: 7px; }.small-mark b { top: 11px; left: 11px; width: 5px; height: 5px; }
.site-footer p { flex: 1; margin: 0; color: #7d8797; font-size: 10px; }
.site-footer > a { color: var(--indigo); font-size: 10px; text-decoration: none; white-space: nowrap; }
.site-footer > a:hover { color: var(--coral); }

@media (max-width: 1050px) {
  .header-inner { width: min(calc(100% - 40px), 1320px); gap: 18px; }
  .top-nav { gap: 16px; }
  .page-layout { width: min(calc(100% - 40px), var(--content-width)); gap: 28px; }
  .toc-wrap { flex-basis: 190px; }
  .hero-inner, .hero-stats { width: min(calc(100% - 40px), 1120px); }
  .hero-inner { gap: 30px; }
  .hero-visual { flex-basis: 310px; width: 310px; height: 310px; transform: scale(.92); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  body { font-size: 15px; }
  .site-header { height: 64px; }
  .header-inner { width: calc(100% - 32px); gap: 10px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 10px 10px 10px 3px; }
  .brand-mark i:nth-child(1) { top: 7px; left: 7px; }.brand-mark i:nth-child(2) { top: 7px; right: 7px; }.brand-mark i:nth-child(3) { bottom: 7px; left: 7px; }.brand-mark i:nth-child(4) { bottom: 7px; right: 7px; }.brand-mark b { top: 13px; left: 13px; width: 5px; height: 5px; }
  .brand-copy strong { font-size: 14px; }.brand-copy small { font-size: 7px; }
  .top-nav { display: none; }
  .header-index { font-size: 11px; }
  .hero-inner { flex-direction: column; align-items: flex-start; width: calc(100% - 40px); min-height: 0; padding: 44px 0 25px; gap: 18px; }
  .hero-copy { width: 100%; }
  .eyebrow { margin-bottom: 17px; font-size: 10px; }
  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .hero-lead { max-width: 500px; margin-top: 15px; font-size: 14px; }
  .hero-actions { gap: 17px; margin-top: 21px; }
  .button { min-height: 42px; padding: 0 14px; font-size: 12px; }
  .hero-note { margin-top: 17px; font-size: 10px; }
  .hero-visual { align-self: center; flex: 0 0 auto; width: 320px; height: 240px; margin: -8px 0 0; transform: none; }
  .hero-visual .visual-orbit { width: 210px; height: 210px; }
  .hero-visual .visual-center { width: 88px; height: 88px; }
  .hero-visual .visual-center span { font-size: 23px; }
  .hero-visual .orbit-label { width: 38px; height: 38px; }
  .hero-visual .label-wood { top: 0; left: 141px; }
  .hero-visual .label-water { top: 78px; left: 6px; }
  .hero-visual .label-fire { top: 78px; right: 6px; }
  .hero-visual .label-metal { bottom: 22px; left: 53px; }
  .hero-visual .label-earth { bottom: 22px; right: 53px; }
  .visual-caption { right: 0; bottom: -2px; }
  .hero-stats { width: calc(100% - 40px); flex-wrap: wrap; padding: 0 0 6px; }
  .hero-stats div { flex: 1 1 40%; min-height: 48px; padding: 9px 12px 8px 0; margin: 0; border-right: 0; }
  .hero-stats strong { font-size: 18px; }.hero-stats span { font-size: 10px; }
  .page-layout { display: block; width: 100%; padding: 0 0 42px; }
  .toc-wrap { position: sticky; z-index: 20; top: 0; width: 100%; padding: 0; background: rgba(244,246,250,.96); backdrop-filter: blur(12px); }
  .toc-card { overflow: hidden; padding: 7px 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  .toc-heading, .toc-top { display: none; }
  .toc { display: flex; flex-direction: row; overflow-x: auto; gap: 5px; padding: 0 15px 2px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: 0 0 auto; min-height: 34px; gap: 6px; padding: 5px 9px; border: 1px solid transparent; white-space: nowrap; font-size: 10px; }
  .toc a[aria-current="location"] { border-color: #d9e2ef; background: #fff; }
  .toc a span { font-size: 8px; }
  .article { width: 100%; max-width: none; padding: 0 20px; }
  .chapter { padding: 30px 0 37px; margin-bottom: 0; scroll-margin-top: 74px; }
  .chapter-heading { gap: 11px; margin-bottom: 15px; }
  .chapter-number { gap: 7px; padding-top: 8px; font-size: 9px; }
  .chapter-number i { width: 12px; }
  .section-kicker { font-size: 8px; }
  .chapter h2 { font-size: 23px; }
  .bazi-subheading { margin-top: 21px; font-size: 14px; }
  .lead-paragraph { font-size: 14px; }
  .body-copy { font-size: 12px; }
  .goal-list { gap: 7px; }
  .goal-item { flex-basis: 100%; min-height: 47px; }
  .notice { padding: 11px 12px; }
  .notice p { font-size: 11px; }
  .definition-card { gap: 10px; padding: 11px 10px; }
  .definition-card .symbol-sequence { font-size: 11px; letter-spacing: .02em; }
  .definition-count { font-size: 20px; }
  .table-shell { margin: 15px 0; }
  table { font-size: 11px; }
  th, td { padding: 9px 9px; }
  thead th { font-size: 10px; }
  .reference-card { margin: 17px 0; }
  .reference-card img { width: min(100%, 430px); max-height: 690px; }
  .figure-topline { padding: 9px 11px; font-size: 9px; }
  .reference-card figcaption { align-items: flex-start; padding: 10px 11px; font-size: 10px; }
  .memory-strip { align-items: flex-start; gap: 9px; padding: 9px 10px; }
  .memory-strip p { font-size: 10px; }
  .memory-label { font-size: 9px; }
  .element-groups { gap: 6px; }
  .group-card { flex-basis: calc(50% - 6px); min-width: 0; gap: 8px; padding: 8px; }
  .group-card:last-child { flex-grow: 0; }
  .group-symbol { flex-basis: 29px; width: 29px; height: 29px; font-size: 13px; }
  .group-card strong { font-size: 10px; }.group-card small { font-size: 9px; }
  .season-row { gap: 10px; min-height: 57px; padding: 8px 10px; }
  .season-mark { flex-basis: 30px; width: 30px; height: 30px; font-size: 13px; }
  .season-branches { align-items: flex-start; flex-direction: column; gap: 0; }
  .season-branches strong { font-size: 13px; }.season-branches span { font-size: 10px; }
  .season-index { font-size: 7px; }
  .relation-panels { flex-direction: column; gap: 9px; }
  .relation-panel { padding: 13px 12px; }
  .relation-sequence { gap: 9px; max-width: 350px; }
  .relation-sequence li { flex-basis: 32px; width: 32px; height: 32px; font-size: 13px; }
  .relation-sequence li:not(:last-child)::after { left: calc(100% + 1px); font-size: 10px; }
  .cycle-caption { font-size: 9px; }
  .cycle-summary { gap: 5px; padding: 14px 10px; }
  .cycle-count, .cycle-total { min-width: 52px; font-size: 9px; }
  .count-number { font-size: 23px; }.cycle-total .count-number { font-size: 30px; }
  .result-arrow { padding: 4px 6px; font-size: 8px; }
  .note-item { gap: 9px; padding: 13px 0; }
  .note-item h3 { font-size: 12px; }.note-item p { font-size: 11px; }
  .quiz-chapter { margin-top: 8px; padding: 16px 12px 18px; }
  .quiz-list li { gap: 8px; padding: 9px; font-size: 11px; }
  .answer-panel summary { gap: 7px; padding: 10px; font-size: 11px; }
  .answer-panel summary small { font-size: 8px; }
  .answer-content { gap: 3px 12px; padding-left: 39px; }
  .answer-content p { font-size: 10px; }
  .ten-gods-tool { padding: 13px 10px; }
  .ten-gods-tool-heading { align-items: flex-start; gap: 8px; }
  .ten-gods-tool-heading h3 { font-size: 14px; }
  .ten-gods-tool-intro { font-size: 10px; }
  .ten-gods-question { font-size: 12px; }
  .ten-gods-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ten-gods-option { min-height: 37px; font-size: 11px; }
  .ten-gods-feedback { font-size: 10px; }
  .ten-gods-controls { align-items: stretch; flex-direction: column; }
  .ten-gods-control-actions { width: 100%; }
  .ten-gods-button { flex: 1; }
  .glossary-list div { gap: 10px; padding: 9px 1px; }
  .glossary-list dt { flex-basis: 49px; font-size: 11px; }.glossary-list dd { font-size: 10px; }
  .reference-list li { gap: 10px; padding: 11px 1px; }
  .reference-list strong { flex-basis: 100%; }.reference-list a { font-size: 11px; }
  .source-note { font-size: 10px; }
  .site-footer { flex-wrap: wrap; gap: 8px 11px; padding-top: 14px; }
  .site-footer p { flex-basis: calc(100% - 100px); order: 3; }
  .site-footer > a { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
