:root {
  --ink: #1f2421;
  --muted: #69645d;
  --paper: #f7f1e7;
  --paper-deep: #eee5d6;
  --teal: #315f5a;
  --cinnabar: #a94738;
  --line: rgba(31, 36, 33, 0.16);
  --white: #fffaf2;
  --shadow: 0 24px 60px rgba(31, 36, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

body[data-lang="en"] {
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.58;
}

body[data-lang="en"] h1,
body[data-lang="en"] h2,
body[data-lang="en"] .hero-stats dt,
body[data-lang="en"] .signature strong,
body[data-lang="en"] .mingge-title,
body[data-lang="en"] .post-detail h1 {
  font-family: Georgia, "Times New Roman", serif;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 241, 231, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 58px;
  height: 68px;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
}

.image-mark {
  overflow: visible;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.image-mark img {
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  font-size: 11px;
  max-width: 360px;
  overflow: hidden;
  line-height: 1.35;
  opacity: 0.72;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
}

.nav a,
.header-action {
  position: relative;
}

.nav a::after,
.header-action::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.header-action:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action {
  font-size: 14px;
  font-weight: 700;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 16px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid currentColor;
}

.language-switch button {
  min-width: 38px;
  min-height: 32px;
  padding: 0 8px;
  color: inherit;
  background: transparent;
  border: 0;
  border-right: 1px solid currentColor;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button.is-active {
  color: var(--ink);
  background: var(--white);
}

.site-header.is-scrolled .language-switch button.is-active,
.site-header.is-open .language-switch button.is-active {
  color: var(--white);
  background: var(--teal);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  padding: 118px clamp(20px, 5vw, 72px) 56px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(19, 24, 22, 0.88) 0%, rgba(19, 24, 22, 0.68) 43%, rgba(19, 24, 22, 0.18) 100%),
    linear-gradient(180deg, rgba(19, 24, 22, 0.34), rgba(19, 24, 22, 0.24));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c1ad;
}

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

h1,
h2 {
  font-family: "Noto Serif SC", SimSun, Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.16;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.3;
}

.hero-lead {
  max-width: 580px;
  margin-bottom: 34px;
  color: rgba(255, 250, 242, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--cinnabar);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 250, 242, 0.72);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin: 0;
  border-top: 1px solid rgba(255, 250, 242, 0.34);
}

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

.hero-stats dt {
  font-family: Georgia, serif;
  font-size: 32px;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: 13px;
}

.band,
.services,
.proof,
.contact,
.site-footer {
  padding: clamp(72px, 9vw, 126px) clamp(20px, 5vw, 72px);
}

.band {
  background: var(--paper);
}

.section-heading {
  width: min(820px, 100%);
}

.section-note {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.section-heading.wide {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}

.section-heading.wide .eyebrow,
.section-heading.wide h2 {
  grid-column: 1;
}

.section-heading.wide p:not(.eyebrow),
.section-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-bottom: 22px;
}

.section-heading.wide p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-side {
  display: grid;
  gap: 18px;
}

.section-side p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-side a {
  width: fit-content;
  color: var(--teal);
  font-weight: 900;
}

.insights-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.insights-footer a {
  color: var(--teal);
  font-weight: 900;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: clamp(28px, 6vw, 90px);
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.intro-grid p {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.signature {
  min-width: 190px;
  border-left: 3px solid var(--teal);
  padding-left: 22px;
}

.signature span,
.signature strong {
  display: block;
}

.signature span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.signature strong {
  margin-top: 6px;
  font-family: "Noto Serif SC", SimSun, serif;
  font-size: 32px;
}

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
}

.service-card:hover,
.service-card:focus-within {
  color: var(--white);
  background: var(--teal);
}

.service-index {
  margin-bottom: 68px;
  color: var(--cinnabar);
  font-family: Georgia, serif;
  font-size: 20px;
}

.service-card:hover .service-index,
.service-card:focus-within .service-index {
  color: #f3c2ad;
}

.service-card p {
  color: var(--muted);
}

.service-card:hover p,
.service-card:focus-within p {
  color: rgba(255, 250, 242, 0.78);
}

.service-card a {
  margin-top: auto;
  font-weight: 800;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.process-list div {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.process-list span {
  display: block;
  margin-bottom: 26px;
  color: var(--cinnabar);
  font-family: Georgia, serif;
}

.process-list p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.proof {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(280px, 1.25fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  color: var(--white);
  background: var(--ink);
}

.proof h2 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
}

.proof-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: 17px;
}

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

.proof-items span {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  padding: 22px 24px;
  color: rgba(255, 250, 242, 0.9);
}

.proof-items strong {
  color: var(--white);
  font-size: 18px;
}

.proof-items small {
  color: rgba(255, 250, 242, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.insights {
  background: var(--paper-deep);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.article-card {
  min-height: 270px;
  display: block;
  padding: 28px;
  color: inherit;
  background: var(--white);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-4px);
  background: #fffaf2;
  box-shadow: 0 26px 70px rgba(31, 36, 33, 0.14);
}

.article-card:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 4px;
}

.article-grid span {
  display: block;
  margin-bottom: 48px;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 800;
}

.article-grid p {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 520px);
  gap: clamp(32px, 7vw, 100px);
  align-items: start;
  background: var(--white);
}

.contact p {
  color: var(--muted);
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.contact-form label,
.contact-form span {
  display: block;
}

.contact-form span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

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

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.form-status.is-error {
  color: var(--cinnabar);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 38px;
  padding-bottom: 38px;
  color: rgba(255, 250, 242, 0.84);
  background: var(--ink);
}

.site-footer strong {
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.tool-hero {
  display: grid;
  min-height: 56vh;
  align-items: end;
  padding: 150px clamp(20px, 5vw, 72px) 64px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(31, 36, 33, 0.92), rgba(49, 95, 90, 0.74)),
    url("assets/hero-consulting.png") center / cover;
}

.tool-hero > div {
  width: min(820px, 100%);
}

.tool-hero h1 {
  margin-bottom: 18px;
}

.tool-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 250, 242, 0.82);
  font-size: 19px;
}

.bazi-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 480px) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
  background: var(--paper);
  min-width: 0;
}

.bazi-form,
.bazi-result {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.bazi-form {
  position: sticky;
  top: 108px;
  padding: 28px;
}

.form-section h2,
.bazi-result h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
}

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

.bazi-form label,
.bazi-form span {
  display: block;
}

.bazi-form label > span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.bazi-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.button.ghost {
  color: var(--teal);
  border-color: var(--teal);
  background: transparent;
}

.tool-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tool-entry-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.tool-entry-points > strong {
  color: var(--ink);
  font-size: 14px;
}

.tool-entry-points a {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.tool-entry-points span {
  color: var(--teal);
  font-size: 15px;
  font-weight: 800;
}

.tool-entry-points small {
  color: var(--muted);
  font-size: 12px;
}

.bazi-result {
  padding: 30px;
}

.bazi-result.is-empty {
  min-height: 380px;
  display: grid;
  align-content: center;
}

.bazi-result.is-empty p:not(.eyebrow) {
  color: var(--muted);
}

.bazi-result.is-empty a {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 900;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.birth-summary {
  margin: 0 0 22px;
  color: #24302d;
  font-size: 15px;
  font-weight: 500;
}

.pillar-grid,
.mingge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mingge-table {
  margin-bottom: 28px;
  max-width: 100%;
  min-width: 0;
}

.mingge-title {
  margin-bottom: 12px;
  text-align: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.mingge-grid {
  background: var(--line);
}

.mingge-cell {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px;
  background: var(--paper);
  text-align: center;
}

.mingge-label,
.ten-god,
.hidden-gods {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.stem-cell,
.branch-cell {
  min-height: 78px;
  color: var(--ink);
  font-family: "Noto Serif SC", SimSun, serif;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1;
}

.stem-cell.is-day-master {
  text-shadow: 0 0 0 currentColor;
}

.element-wood {
  color: #2f6f55;
}

.element-fire {
  color: #b24a37;
}

.element-earth {
  color: #8a6b36;
}

.element-metal {
  color: #b08a36;
}

.element-water {
  color: #275f72;
}

.hidden-gods {
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.hidden-gods span {
  display: inline-grid;
  gap: 2px;
  min-width: 42px;
}

.hidden-gods small {
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 800;
}

.pillar-card {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px 14px;
  background: var(--paper);
}

.pillar-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pillar-card strong {
  margin: 10px 0;
  color: var(--teal);
  font-family: "Noto Serif SC", SimSun, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
}

.pillar-card small {
  color: var(--cinnabar);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.result-grid article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.result-grid article:nth-last-child(-n + 2) {
  grid-column: 1 / -1;
}

.result-grid h3 {
  font-size: 20px;
}

.element-bars {
  display: grid;
  gap: 12px;
}

.element-row {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  gap: 10px;
  align-items: center;
}

.element-row span,
.element-row strong {
  color: var(--muted);
  font-size: 13px;
}

.element-row div {
  height: 10px;
  overflow: hidden;
  background: var(--paper-deep);
}

.element-row i {
  display: block;
  height: 100%;
  background: var(--teal);
}

.result-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.dayun-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.dayun-item {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 18px 10px;
  background: var(--paper);
}

.bazi-consult-card {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: 24px;
  color: var(--white);
  background: var(--teal);
}

.bazi-consult-card h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 22px;
}

.bazi-consult-card p,
.bazi-consult-card li {
  color: rgba(255, 250, 242, 0.82);
}

.bazi-consult-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.bazi-consult-card .button {
  width: fit-content;
}

.dayun-item strong {
  color: var(--teal);
  font-family: "Noto Serif SC", SimSun, serif;
  font-size: 26px;
}

.dayun-item span,
.dayun-item small {
  color: var(--muted);
  font-size: 13px;
}

.blog-hero {
  display: grid;
  min-height: 50vh;
  align-items: end;
  padding: 150px clamp(20px, 5vw, 72px) 64px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(31, 36, 33, 0.94), rgba(49, 95, 90, 0.76)),
    url("assets/hero-consulting.png") center / cover;
}

.blog-hero > div {
  width: min(820px, 100%);
}

.blog-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 250, 242, 0.82);
  font-size: 19px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}

.blog-main {
  display: grid;
  gap: 22px;
}

.post-list {
  display: grid;
  gap: 22px;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.blog-categories a {
  padding: 8px 12px;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.blog-categories a.is-active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.post-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(31, 36, 33, 0.08);
}

.featured-post {
  border-top: 4px solid var(--cinnabar);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.post-meta span {
  color: var(--cinnabar);
}

.post-card h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
}

.post-card p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.post-card > a {
  width: fit-content;
  color: var(--teal);
  font-weight: 900;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.pagination a {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 900;
}

.pagination a.is-current {
  color: var(--white);
  background: var(--teal);
}

.blog-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}

.sidebar-panel {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.sidebar-panel h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-form input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
}

.search-form button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--white);
  background: var(--teal);
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.category-list,
.latest-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list a,
.latest-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.category-list span {
  color: var(--cinnabar);
  font-weight: 900;
}

.about-panel img {
  width: 110px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 14px;
}

.about-panel p {
  color: var(--muted);
  font-size: 14px;
}

.about-panel > a {
  color: var(--teal);
  font-weight: 900;
}

.post-detail {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 96px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--teal);
  font-weight: 900;
}

.post-detail h1 {
  color: var(--ink);
  max-width: 760px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.28;
}

.post-detail time {
  display: block;
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 800;
}

.post-body {
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.post-body h2 {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
}

.post-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.post-consultation {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cinnabar);
}

.post-consultation h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
}

.post-consultation p {
  margin: 0;
  color: var(--muted);
}

.post-consultation a {
  width: fit-content;
  color: var(--teal);
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .header-action {
    display: none;
  }

  .header-tools {
    justify-self: end;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav {
    position: fixed;
    inset: 104px 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 16px 20px 28px;
    color: var(--ink);
    background: rgba(247, 241, 231, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading.wide,
  .intro-grid,
  .proof,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-heading.wide .eyebrow,
  .section-heading.wide h2,
  .section-heading.wide p:not(.eyebrow) {
    grid-column: auto;
    grid-row: auto;
  }

  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bazi-workspace {
    grid-template-columns: 1fr;
  }

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

  .bazi-form {
    position: static;
  }

  .blog-sidebar {
    position: static;
  }

  .pillar-grid,
  .mingge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 16px;
  }

  .nav {
    inset: 96px 0 auto;
    max-height: calc(100vh - 96px);
  }

  .brand small {
    display: none;
  }

  .language-switch button {
    min-width: 32px;
    min-height: 30px;
    padding: 0 6px;
    font-size: 11px;
  }

  .hero {
    min-height: 94vh;
    padding: 100px 18px 42px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(19, 24, 22, 0.9) 0%, rgba(19, 24, 22, 0.78) 64%, rgba(19, 24, 22, 0.44) 100%),
      linear-gradient(180deg, rgba(19, 24, 22, 0.26), rgba(19, 24, 22, 0.4));
  }

  h1 {
    font-size: 42px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 250, 242, 0.22);
  }

  .band,
  .services,
  .proof,
  .contact,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .service-grid,
  .process-list,
  .proof-items {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 280px;
  }

  .service-index {
    margin-bottom: 42px;
  }

  .site-footer {
    flex-direction: column;
  }

  .tool-hero {
    min-height: 48vh;
    padding: 124px 18px 46px;
  }

  .blog-hero {
    min-height: 44vh;
    padding: 124px 18px 46px;
  }

  .blog-layout {
    padding-right: 18px;
    padding-left: 18px;
  }

  .blog-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .blog-categories a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .post-card {
    padding: 22px;
  }

  .post-card h2 {
    font-size: 21px;
  }

  .post-card p,
  .post-body p {
    font-size: 16px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form button {
    width: 100%;
  }

  .form-grid,
  .result-grid,
  .dayun-list {
    grid-template-columns: 1fr;
  }

  .bazi-workspace {
    padding-right: 18px;
    padding-left: 18px;
  }

  .bazi-form,
  .bazi-result {
    padding: 22px;
  }

  .mingge-table {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .pillar-grid,
  .mingge-grid {
    min-width: 560px;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .mingge-cell {
    padding: 7px 5px;
  }

  .stem-cell,
  .branch-cell {
    min-height: 66px;
    font-size: 34px;
  }

  .hidden-gods {
    min-height: 58px;
    gap: 5px;
  }

  .hidden-gods span {
    min-width: 34px;
  }

  .dayun-list {
    max-height: 420px;
    overflow-y: auto;
  }

  .form-actions,
  .result-header {
    flex-direction: column;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
