:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --paper-soft: #fffaf0;
  --ink: #1d1a16;
  --muted: #756b5e;
  --line: rgba(45, 35, 24, .16);
  --gold: #b9852d;
  --cinnabar: #9d2d24;
  --jade: #1f7a5a;
  --shadow: 0 24px 80px rgba(45, 35, 24, .14);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15130f;
  --paper-soft: #211d16;
  --ink: #f5ead8;
  --muted: #c0ad91;
  --line: rgba(245, 234, 216, .16);
  --gold: #d4a24a;
  --cinnabar: #d35b45;
  --jade: #63b48e;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ink-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    radial-gradient(circle at 12% 18%, rgba(157,45,36,.10), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(31,122,90,.12), transparent 30%),
    linear-gradient(120deg, transparent 0 20%, rgba(185,133,45,.08) 20% 21%, transparent 21% 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 5px);
  z-index: -1;
}
.ambient-taiji {
  position: fixed;
  right: -120px;
  bottom: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(29,26,22,.11) 50%, rgba(255,250,240,.10) 50%);
  border: 1px solid rgba(29,26,22,.10);
  pointer-events: none;
  z-index: -1;
  animation: ambientSpin 48s linear infinite;
}
.ambient-taiji::before, .ambient-taiji::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
.ambient-taiji::before { top: 0; background: rgba(29,26,22,.11); }
.ambient-taiji::after { bottom: 0; background: rgba(255,250,240,.10); }
.ambient-taiji i, .ambient-taiji b {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 50%;
}
.ambient-taiji i { top: 112px; background: rgba(255,250,240,.22); }
.ambient-taiji b { bottom: 112px; background: rgba(29,26,22,.12); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 5vw, 72px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 3px double var(--gold);
  font-weight: 800;
  font-size: 24px;
}
.brand strong { display: block; font-size: 24px; line-height: 1; }
.brand small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.main-nav a, .wechat-id {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 15px;
}
.main-nav a:hover, .wechat-id:hover { color: var(--ink); background: rgba(185,133,45,.12); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--ink);
  cursor: pointer;
}
.hero, .service-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 100px) clamp(18px, 5vw, 36px);
}
.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
}
.hero.compact { min-height: 56vh; grid-template-columns: 1fr; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cinnabar);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(42px, 6vw, 82px); max-width: 920px; }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: 23px; }
.hero-title-lines {
  margin: 4px 0 22px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.35;
  max-width: 780px;
}
.hero-title-lines span { display: block; }
.hero-text, .lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.9;
  max-width: 760px;
}
.hero-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 28px 0 4px;
}
.hero-services a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-soft) 82%, transparent);
}
.hero-services span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5d37a, var(--gold));
  color: #221305;
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 8px 18px rgba(185,133,45,.24);
  font-weight: 900;
}
.hero-services strong { font-size: 18px; }
.hero-services small { color: var(--muted); line-height: 1.55; margin-top: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.button.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button.secondary { background: var(--gold); color: #1d1306; border-color: var(--gold); }
.button.ghost { background: var(--paper-soft); color: var(--ink); }
.button.full { width: 100%; margin-top: 16px; }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}
.trust-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-soft) 84%, transparent);
  border-radius: 999px;
  color: var(--muted);
}
.hero-seal {
  display: grid;
  place-items: center;
  gap: 20px;
  padding: 24px 0;
  min-height: 420px;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.hero-master-avatar {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  border: 12px solid var(--ink);
  outline: 4px solid var(--gold);
  box-shadow: 0 20px 54px rgba(45, 35, 24, .22);
}
.bagua-card {
  display: grid;
  place-items: center;
  gap: 18px;
}
.bagua-caption {
  display: grid;
  place-items: center;
  gap: 8px;
  padding-top: 8px;
}
.bagua-caption strong { font-size: 30px; }
.bagua-caption small { color: var(--muted); }
.bagua-diagram {
  position: relative;
  width: 310px;
  height: 310px;
  border-radius: 6px;
  background: transparent;
  color: #050505;
  border: 3px solid var(--ink);
  outline: 2px solid var(--gold);
  outline-offset: -10px;
  box-shadow: none;
}
.gua {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 0;
  color: #050505;
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  line-height: 1;
}
.gua em {
  font-style: normal;
  font-size: 25px;
  font-weight: 700;
}
.gua b {
  font-size: 54px;
  line-height: .72;
  font-family: "Times New Roman", serif;
}
.gua span {
  font-size: 25px;
  font-weight: 700;
}
.gua.top { top: 10px; left: 50%; transform: translateX(-50%); }
.gua.bottom { bottom: 9px; left: 50%; transform: translateX(-50%); }
.gua.left { top: 50%; left: 14px; transform: translateY(-50%); grid-template-columns: auto auto auto; gap: 7px; }
.gua.right { top: 50%; right: 14px; transform: translateY(-50%); grid-template-columns: auto auto auto; gap: 7px; }
.gua.upper-left { top: 56px; left: 38px; transform: rotate(-38deg); }
.gua.upper-right { top: 56px; right: 38px; transform: rotate(38deg); }
.gua.lower-left { bottom: 54px; left: 38px; transform: rotate(38deg); }
.gua.lower-right { bottom: 54px; right: 38px; transform: rotate(-38deg); }
.taiji.clean {
  position: absolute;
  inset: 105px;
  border-radius: 50%;
  background: linear-gradient(90deg, #fff 50%, #050505 50%);
  border: 2px solid #050505;
  animation: none;
}
.taiji.clean::before, .taiji.clean::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
.taiji.clean::before { top: 0; background: #fff; }
.taiji.clean::after { bottom: 0; background: #050505; }
.taiji.clean i, .taiji.clean b {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
}
.taiji.clean i { top: 21px; background: #050505; }
.taiji.clean b { bottom: 21px; background: #fff; }
.wechat-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wechat-mini {
  position: relative;
  display: inline-block;
  width: 1.08em;
  height: 1em;
  background: transparent;
  color: #14b66f;
  font-size: 1em;
  line-height: 1;
  flex: 0 0 auto;
}
.wechat-mini::before,
.wechat-mini::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: currentColor;
}
.wechat-mini::before {
  width: .76em;
  height: .58em;
  left: 0;
  top: .12em;
  box-shadow: .18em -.06em 0 -.12em #fff, .42em -.06em 0 -.12em #fff;
}
.wechat-mini::after {
  width: .64em;
  height: .48em;
  right: 0;
  bottom: .08em;
  box-shadow: .16em -.05em 0 -.11em #fff, .38em -.05em 0 -.11em #fff;
}
.bagua-ring {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 12px solid var(--ink);
  outline: 2px solid var(--gold);
  background:
    radial-gradient(circle, var(--paper-soft) 0 43%, transparent 44%),
    conic-gradient(from 22.5deg, rgba(185,133,45,.20), transparent 12%, rgba(157,45,36,.16) 25%, transparent 37%, rgba(31,122,90,.16) 50%, transparent 62%, rgba(185,133,45,.20) 75%, transparent 88%);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent), 0 22px 60px rgba(45, 35, 24, .18);
}
.bagua-ring > span {
  position: absolute;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 800;
}
.bagua-ring > span:nth-child(1) { top: 10px; left: 113px; }
.bagua-ring > span:nth-child(2) { bottom: 10px; left: 113px; }
.bagua-ring > span:nth-child(3) { top: 113px; right: 10px; }
.bagua-ring > span:nth-child(4) { top: 113px; left: 10px; }
.bagua-ring > span:nth-child(5) { top: 42px; right: 42px; }
.bagua-ring > span:nth-child(6) { bottom: 42px; left: 42px; }
.bagua-ring > span:nth-child(7) { top: 42px; left: 42px; }
.bagua-ring > span:nth-child(8) { bottom: 42px; right: 42px; }
.taiji {
  position: absolute;
  inset: 68px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, var(--paper-soft) 50%);
  border: 4px solid var(--ink);
  animation: slowSpin 18s linear infinite;
}
.taiji::before, .taiji::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
.taiji::before { top: 0; background: var(--ink); }
.taiji::after { bottom: 0; background: var(--paper-soft); }
.taiji i, .taiji b {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
}
.taiji i { top: 26px; background: var(--paper-soft); }
.taiji b { bottom: 26px; background: var(--ink); }
.seal-ring {
  width: 230px;
  height: 230px;
  border: 14px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at 50% 50%, transparent 0 33%, var(--ink) 34% 35%, transparent 36%);
}
.seal-ring span, .seal-ring b {
  position: absolute;
  font-size: 28px;
  background: var(--paper-soft);
  padding: 5px 12px;
}
.seal-ring span { top: 38px; }
.seal-ring b { bottom: 38px; }
.keyword-cloud, .category-panel, .process, .related, .wechat-band, .content-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px clamp(18px, 5vw, 36px);
}
.keyword-cloud > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.keyword-cloud a {
  padding: 9px 13px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.home-service-index {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(18px, 5vw, 36px) 36px;
}
.home-service-index details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper-soft) 72%, transparent);
  padding: 16px 18px;
}
.home-service-index summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}
.home-service-index p { color: var(--muted); line-height: 1.75; }
.index-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.index-groups > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}
.index-groups h3 {
  width: 100%;
  font-size: 18px;
  margin-bottom: 4px;
}
.index-groups a,
.topic-question-grid a {
  padding: 8px 11px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.4;
}
.topic-question-section {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.topic-question-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.priority-topics {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px clamp(18px, 5vw, 36px) 20px;
}
.priority-topics .section-head > a {
  color: var(--cinnabar);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}
.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.priority-grid article {
  padding: 26px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper-soft) 92%, transparent), color-mix(in srgb, var(--paper) 78%, transparent));
  box-shadow: 0 16px 48px rgba(45, 35, 24, .08);
}
.priority-grid h3 { font-size: 30px; margin-bottom: 12px; }
.priority-grid p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 18px;
}
.priority-grid article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.priority-grid a {
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--muted);
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.category-panel .section-head {
  display: block;
  text-align: center;
  margin-bottom: 16px;
}
.category-panel .section-head .eyebrow { margin-bottom: 8px; }
.category-panel {
  padding-top: 28px;
  padding-bottom: 28px;
}
.category-panel + .category-panel { padding-top: 24px; }
.category-panel .cards { gap: 14px; }
.category-panel .card {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 20px 18px;
  text-align: center;
}
.category-panel .card p { margin-bottom: 10px; }
.category-panel .card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}
.category-panel .card span {
  display: block;
  line-height: 1.55;
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 22px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 176px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 70%, var(--line)); }
.card p { margin: 0 0 16px; color: var(--cinnabar); font-size: 13px; font-weight: 700; }
.card h3 { margin-bottom: 14px; }
.card span { color: var(--muted); line-height: 1.7; }
.process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.process li {
  counter-increment: step;
  padding: 24px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--gold);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 16px;
}
.process span { display: block; color: var(--muted); line-height: 1.75; margin-top: 8px; }
.breadcrumb { display: flex; gap: 10px; color: var(--muted); margin-bottom: 26px; }
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}
.consult-box, .side-panel, .notice {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.consult-box h2, .side-panel h2 { font-size: 24px; margin-bottom: 14px; }
.consult-box p, .side-panel li { color: var(--muted); line-height: 1.75; }
.consult-box ul { padding-left: 18px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}
.main-content {
  background: color-mix(in srgb, var(--paper-soft) 72%, transparent);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.main-content h2 { margin-top: 38px; margin-bottom: 14px; }
.main-content p { color: var(--muted); font-size: 18px; line-height: 1.9; }
.notice { margin: 32px 0; color: var(--muted); box-shadow: none; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; }
.answer-block { margin-top: 36px; }
.value-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
.value-list li {
  padding: 12px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.6;
}
.tool-panel {
  margin: 28px 0 38px;
  padding: 24px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.tool-head p { color: var(--muted); line-height: 1.8; }
.tool-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin: 18px 0;
}
.tool-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}
.tool-form input, .tool-form select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.tool-result {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 64%, transparent);
  color: var(--muted);
  line-height: 1.8;
}
.tool-result h3 { color: var(--ink); margin-bottom: 10px; }
.result-grid, .pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.result-grid > div, .pillar-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}
.pillar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar-grid span { display: block; color: var(--muted); font-size: 14px; }
.pillar-grid strong { display: block; color: var(--ink); font-size: 28px; margin-top: 6px; }
.bazi-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.bazi-summary p,
.almanac-info p,
.result-note {
  margin: 0;
}
.bazi-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}
.bazi-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.bazi-table th,
.bazi-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.bazi-table thead th {
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  color: var(--ink);
}
.bazi-table tbody th {
  width: 110px;
  color: var(--cinnabar);
  background: color-mix(in srgb, var(--paper) 62%, transparent);
}
.bazi-table td b {
  display: inline-block;
  margin-right: 2px;
  font-size: 24px;
}
.bazi-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.gz-wood, .bar-wood { color: #257a4d; }
.gz-fire, .bar-fire { color: #b9342b; }
.gz-earth, .bar-earth { color: #9a6c18; }
.gz-metal, .bar-metal { color: #7b7f86; }
.gz-water, .bar-water { color: #1f5ea8; }
.element-bars {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.element-bars > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
}
.element-bars i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 76%, transparent);
}
.element-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}
.almanac-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #006100 64%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, #eaf4f6 52%, var(--paper));
  text-align: center;
  color: var(--ink);
}
.almanac-top {
  display: grid;
  gap: 3px;
  padding: 8px;
  background: #006100;
  color: #fff;
  font-weight: 800;
}
.almanac-main {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
}
.almanac-main p {
  margin: 0;
  color: #005000;
  font-size: 28px;
  font-weight: 800;
}
.almanac-main b {
  color: #174f9e;
  font-size: clamp(72px, 12vw, 112px);
  line-height: .9;
}
.almanac-sub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 18px 20px;
}
.almanac-sub span {
  padding: 9px;
  background: color-mix(in srgb, #006100 88%, #111);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
}
.mini-title {
  margin: 20px 0 12px;
}
.time-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.time-grid > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}
.time-grid strong,
.time-grid span,
.time-grid em,
.time-grid small {
  display: block;
}
.time-grid strong {
  color: #174f9e;
}
.time-grid span {
  color: var(--muted);
  font-size: 13px;
}
.time-grid em {
  width: max-content;
  margin: 6px 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
}
.luck-good {
  background: rgba(31, 122, 90, .14);
  color: #1f7a5a;
}
.luck-bad {
  background: rgba(157, 45, 36, .14);
  color: var(--cinnabar);
}
.time-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.result-note,
.error-text {
  margin-top: 16px;
  color: var(--muted);
}
.error-text {
  color: var(--cinnabar);
  font-weight: 800;
}
.blessing-hero, .deity-section, .altar-stage, .offering-section, .wish-wall {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px clamp(18px, 5vw, 36px);
}
.blessing-hero {
  min-height: 62vh;
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(96, 14, 8, .92), rgba(39, 6, 4, .9)),
    radial-gradient(circle at 50% 20%, rgba(255, 207, 91, .24), transparent 42%);
  color: #fff7db;
  max-width: none;
  padding-left: clamp(18px, 8vw, 120px);
}
.blessing-hero .hero-text { color: rgba(255, 247, 219, .82); }
.blessing-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.blessing-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 232, 163, .45);
  border-radius: 999px;
  background: rgba(255, 247, 219, .1);
}
.blessing-steps strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffcc45;
  color: #5f140d;
}
.deity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.deity-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff4cf, #fffaf0);
  border: 3px double #9b2f22;
  color: #30170f;
  text-align: center;
  box-shadow: 0 18px 50px rgba(70, 16, 8, .18);
}
.deity-portrait {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 225, 119, .9), transparent 32%),
    linear-gradient(160deg, #8e1f18, #d8a542 55%, #5f150f);
  border: 3px solid #f7e6b4;
  animation: deityFloat 3.6s ease-in-out infinite;
}
.deity-portrait span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 230, .9);
  color: #7c1e17;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(255, 220, 88, .8);
}
.deity-card p { min-height: 96px; color: #6b4030; line-height: 1.65; }
.deity-card strong {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #b33a28;
  color: #fff2d6;
}
.altar-stage { max-width: none; background: linear-gradient(180deg, #260502, #66140b 55%, #260502); }
.altar-bg {
  position: relative;
  max-width: 960px;
  min-height: 740px;
  margin: 0 auto;
  padding: 38px;
  color: #fff7db;
  text-align: center;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(123, 24, 13, .9), transparent 18% 82%, rgba(123, 24, 13, .9)),
    radial-gradient(circle at 50% 16%, rgba(255, 210, 83, .24), transparent 36%),
    linear-gradient(180deg, #4b0d07, #1d0503);
  box-shadow: inset 0 0 80px rgba(0,0,0,.45), 0 22px 80px rgba(0,0,0,.35);
}
.altar-side {
  position: absolute;
  top: 110px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(154, 48, 32, .88);
  border: 2px solid rgba(255, 232, 163, .7);
}
.altar-side.left { left: 36px; }
.altar-side.right { right: 36px; }
.altar-deity {
  width: 280px;
  height: 280px;
  margin: 70px auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff1b6, #d69b29 48%, #7d1b12 70%);
  box-shadow: 0 0 70px rgba(255, 212, 82, .62);
  animation: deityGlow 2.8s ease-in-out infinite;
}
.altar-deity span { font-size: 96px; font-weight: 900; color: #65160f; }
.altar-table {
  min-height: 180px;
  margin-top: 26px;
  padding: 28px 20px;
  border-radius: 50% 50% 12px 12px / 18% 18% 12px 12px;
  background: linear-gradient(180deg, #7a2b12, #3f1208);
  border-top: 8px solid #b9792d;
}
.altar-offerings {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  flex-wrap: wrap;
}
.altar-offerings span { font-size: 42px; filter: drop-shadow(0 0 10px rgba(255, 210, 91, .8)); }
.altar-offerings strong { width: 100%; color: #ffe6a6; }
.incense i {
  display: inline-block;
  width: 5px;
  height: 74px;
  margin: 0 5px;
  background: linear-gradient(#fce8a2, #733017);
  border-radius: 8px;
  box-shadow: 0 -14px 22px rgba(255, 221, 111, .75);
}
.center { justify-content: center; }
.offering-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.offering-card {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8df, #fff3cc);
  border: 2px solid #e6d29b;
  color: #33170d;
  box-shadow: 0 12px 34px rgba(89, 28, 8, .14);
}
.offering-scene {
  height: 132px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 72%, rgba(211, 51, 45, .95) 0 20px, transparent 21px),
    radial-gradient(circle at 23% 76%, rgba(238, 139, 31, .95) 0 24px, transparent 25px),
    radial-gradient(ellipse at 55% 75%, #8f4d1f 0 38px, transparent 39px),
    linear-gradient(135deg, #ffd76e, #fff3bd);
  position: relative;
  overflow: hidden;
}
.offering-scene i, .offering-scene b, .offering-scene em {
  position: absolute;
  bottom: 18px;
  display: block;
  border-radius: 50%;
}
.offering-scene i { left: 23px; width: 98px; height: 18px; background: #b96a23; border-radius: 50%; }
.offering-scene b { left: 45%; width: 96px; height: 16px; background: #c99037; border-radius: 50%; }
.offering-scene em { right: 36px; width: 12px; height: 86px; border-radius: 8px; background: #c52424; box-shadow: 0 -8px 20px #ffe66e; }
.offering-card small {
  display: inline-block;
  margin: 2px 0 10px;
  padding: 4px 10px;
  border: 1px solid #9f6c38;
  border-radius: 999px;
  color: #7c3b19;
}
.wish-wall {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.wish-form textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 18px;
  font: inherit;
  background: var(--paper-soft);
  color: var(--ink);
}
.wish-form div { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); }
.wish-result {
  grid-column: 2;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}
.blessing-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .72);
}
.blessing-modal[hidden] { display: none; }
.blessing-modal > div {
  position: relative;
  max-width: 560px;
  padding: 38px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff3c7, #fffaf0);
  color: #33170d;
  box-shadow: 0 0 80px rgba(255, 207, 77, .35);
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}
.pray-orb {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4b2, #f2a51f);
  font-size: 72px;
  box-shadow: 0 0 60px rgba(255, 210, 80, .9);
}
.master-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px clamp(18px, 5vw, 36px);
}
.master-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}
.master-avatar {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  border: 6px solid #ffe7ad;
  box-shadow: 0 12px 36px rgba(45, 35, 24, .18);
}
.master-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.master-tags span {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 199, 64, .22);
  color: var(--gold);
  font-weight: 700;
}
.master-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  margin-bottom: 18px;
}
.master-stats strong { display: block; font-size: 30px; }
.master-stats span, .master-info p { color: var(--muted); line-height: 1.8; }
@keyframes deityFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes deityGlow { 0%, 100% { box-shadow: 0 0 54px rgba(255, 212, 82, .48); } 50% { box-shadow: 0 0 96px rgba(255, 212, 82, .86); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes ambientSpin { to { transform: rotate(360deg); } }
.side-panel { position: sticky; top: 102px; box-shadow: none; }
.side-panel ul { padding-left: 18px; }
.side-panel img { border-radius: 8px; border: 1px solid var(--line); margin-top: 18px; }
.wechat-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  margin-bottom: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}
.wechat-band p { color: color-mix(in srgb, var(--paper) 76%, transparent); line-height: 1.8; }
.wechat-band .eyebrow { color: var(--gold); }
.wechat-band .button.primary { background: var(--paper); color: var(--ink); }
.qr-card {
  margin: 0;
  background: #fff;
  color: #222;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.qr-card img { border-radius: 6px; }
.qr-card figcaption { font-size: 13px; margin-top: 8px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer strong, .site-footer span { display: block; }
.footer-links { display: flex; gap: 16px; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; justify-content: start; overflow-x: auto; flex-wrap: nowrap; }
  .hero, .service-grid, .content-grid, .wechat-band { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .cards, .process ol, .deity-grid, .offering-grid, .index-groups, .priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-list, .tool-form { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wish-wall { grid-template-columns: 1fr; }
  .master-card { grid-template-columns: 1fr; text-align: center; }
  .master-avatar { margin: 0 auto; }
  .master-tags { justify-content: center; }
  .wish-result { grid-column: auto; }
  .side-panel { position: static; }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .brand small, .wechat-id { display: none; }
  .brand strong { font-size: 20px; }
  .brand-mark { width: 44px; height: 44px; }
  h1 { font-size: 42px; }
  .hero-title-lines { font-size: 38px; }
  .hero-services { grid-template-columns: 1fr; }
  .bagua-diagram { width: 260px; height: 260px; }
  .gua em, .gua span { font-size: 21px; }
  .gua b { font-size: 44px; }
  .gua.top { top: 8px; }
  .gua.bottom { bottom: 7px; }
  .gua.left { left: 10px; }
  .gua.right { right: 10px; }
  .gua.upper-left { top: 48px; left: 30px; }
  .gua.upper-right { top: 48px; right: 30px; }
  .gua.lower-left { bottom: 45px; left: 30px; }
  .gua.lower-right { bottom: 45px; right: 30px; }
  .taiji.clean { inset: 88px; }
  .ambient-taiji {
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -80px;
  }
  .ambient-taiji i, .ambient-taiji b { width: 30px; height: 30px; }
  .ambient-taiji i { top: 70px; }
  .ambient-taiji b { bottom: 70px; }
  .bagua-ring { width: 210px; height: 210px; }
  .bagua-ring > span:nth-child(1) { top: 7px; left: 88px; }
  .bagua-ring > span:nth-child(2) { bottom: 7px; left: 88px; }
  .bagua-ring > span:nth-child(3) { top: 88px; right: 7px; }
  .bagua-ring > span:nth-child(4) { top: 88px; left: 7px; }
  .bagua-ring > span:nth-child(5) { top: 31px; right: 31px; }
  .bagua-ring > span:nth-child(6) { bottom: 31px; left: 31px; }
  .bagua-ring > span:nth-child(7) { top: 31px; left: 31px; }
  .bagua-ring > span:nth-child(8) { bottom: 31px; right: 31px; }
  .taiji { inset: 54px; }
  .cards, .process ol, .result-grid, .pillar-grid, .deity-grid, .offering-grid, .index-groups, .priority-grid { grid-template-columns: 1fr; }
  .almanac-sub, .time-grid { grid-template-columns: 1fr; }
  .altar-bg { min-height: 650px; padding: 28px 16px; }
  .altar-side { position: static; display: inline-block; margin: 4px; }
  .altar-deity { width: 210px; height: 210px; margin-top: 34px; }
  .altar-deity span { font-size: 72px; }
  .hero-seal { min-height: 320px; }
  .seal-ring { width: 180px; height: 180px; }
  .site-footer { flex-direction: column; }
}