/* =========================================================
   2027 丁未羊年 · 犯太岁查询
   ========================================================= */

@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/serif-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sans-700.woff2') format('woff2');
}

:root {
  --ink: #17120f;
  --ink-2: #211a16;
  --ink-3: #2c231d;
  --paper: #f6f1e7;
  --paper-2: #efe6d5;
  --paper-3: #e7dcc7;
  --cinnabar: #a32b26;
  --cinnabar-2: #7c1c19;
  --gold: #b28f5a;
  --gold-2: #dcc39a;
  --muted: #6d6157;
  --line: rgba(23, 18, 15, 0.14);
  --line-soft: rgba(23, 18, 15, 0.08);
  --line-gold: rgba(178, 143, 90, 0.35);

  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;

  --wrap: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 全局纸纹 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.sprite { display: none; }

h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

::selection { background: var(--cinnabar); color: var(--paper); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--cinnabar);
  color: #fff;
  padding: 10px 18px;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.wrap--narrow { max-width: 860px; }

.ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--lg { width: 26px; height: 26px; stroke-width: 1.35; }

/* ============ 顶栏 ============ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease), padding .4s var(--ease);
}
.topbar.is-stuck {
  background: rgba(23, 18, 15, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(220, 195, 154, 0.16);
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--cinnabar);
  color: #fbeee0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(251, 238, 224, 0.4), 0 4px 14px -6px rgba(0, 0, 0, .6);
}
.brand__seal--sm { width: 32px; height: 32px; font-size: 18px; }
.brand__txt {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .18em;
  white-space: nowrap;
}

.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); font-size: 14px; letter-spacing: .12em; }
.nav a {
  position: relative;
  padding: 4px 0;
  color: rgba(246, 241, 231, 0.72);
  transition: color .3s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 13px;
  letter-spacing: .14em;
  padding: 9px 18px;
  border: 1px solid rgba(220, 195, 154, 0.45);
  color: var(--gold-2);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 3.4vw, 46px);
  padding: clamp(96px, 12vh, 132px) 0 clamp(20px, 3vh, 34px);
  background:
    radial-gradient(120% 90% at 78% 12%, #4a1a15 0%, #2a1512 38%, #171110 72%, #120e0d 100%);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.hero__wash {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle at 50% 50%, rgba(163, 43, 38, 0.55), rgba(163, 43, 38, 0) 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.hero__glyph {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 700;
  font-size: min(78vw, 780px);
  line-height: .8;
  color: #fff;
  opacity: 0.028;
  pointer-events: none;
  z-index: -1;
  user-select: none;
}

.hero__inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: .3em;
  color: rgba(246, 241, 231, 0.56);
  margin-bottom: clamp(18px, 3vh, 30px);
}
.eyebrow__dot {
  width: 5px;
  height: 5px;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(163, 43, 38, 0.22);
  animation: pulse-dot 3.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(163, 43, 38, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(163, 43, 38, 0.04); }
}

.hero__title { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 22px); }

.hero__year {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4.2rem, 11.5vw, 10.4rem);
  line-height: .92;
  letter-spacing: .06em;
  color: #f4e8d6;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: .22em;
  color: var(--gold-2);
  padding-left: .3em;
}

.hero__desc {
  max-width: 34em;
  margin-top: clamp(20px, 3vw, 30px);
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 2;
  color: rgba(246, 241, 231, 0.68);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 14.5px;
  letter-spacing: .14em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
}
.btn:active { transform: scale(0.98); }
.btn--solid {
  background: var(--cinnabar);
  color: #fdf3e6;
  box-shadow: 0 18px 36px -22px rgba(163, 43, 38, 0.95);
}
.btn--solid:hover {
  background: #b5332d;
  box-shadow: 0 22px 44px -20px rgba(163, 43, 38, 1);
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: rgba(246, 241, 231, 0.26);
  color: rgba(246, 241, 231, 0.88);
}
.btn--ghost:hover {
  border-color: rgba(220, 195, 154, 0.7);
  color: var(--gold-2);
  transform: translateY(-2px);
}
.btn--sm { padding: 12px 24px; font-size: 14px; letter-spacing: .1em; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: clamp(20px, 4vw, 54px);
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
}
.hero__meta dt {
  font-size: 11.5px;
  letter-spacing: .24em;
  color: rgba(246, 241, 231, 0.52);
  margin-bottom: 6px;
}
.hero__meta dd {
  font-family: var(--serif);
  font-size: clamp(13.5px, 1.1vw, 15.5px);
  letter-spacing: .06em;
  color: rgba(246, 241, 231, 0.9);
}

/* 太岁牌位 */
.hero__altar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 30px);
}

.altar {
  position: relative;
  width: clamp(212px, 23vw, 320px);
  aspect-ratio: 5 / 7;
  padding: 9px;
  background: linear-gradient(158deg, #a32b26 0%, #8a201d 34%, #61130f 100%);
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(220, 195, 154, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: altar-float 9s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
@keyframes altar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.altar__frame {
  height: 100%;
  padding: 6px;
  border: 1px solid rgba(220, 195, 154, 0.5);
}
.altar__inner {
  position: relative;
  height: 100%;
  border: 1px solid rgba(220, 195, 154, 0.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  padding: 22px 10px 30px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 7px);
}
.altar__inner::before,
.altar__inner::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 195, 154, 0.65), transparent);
}
.altar__inner::before { top: 16px; }
.altar__inner::after { bottom: 16px; }

.altar__top {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold-2);
  border: 1px solid rgba(220, 195, 154, 0.5);
  width: 1.75em;
  height: 1.75em;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}
.altar__name {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.9vw, 1.72rem);
  letter-spacing: .12em;
  line-height: 1.3;
  color: #f7e9d2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.altar__seal {
  position: absolute;
  bottom: 26px;
  right: 22px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(220, 195, 154, 0.85);
  border: 1px solid rgba(220, 195, 154, 0.4);
  padding: 2px 5px;
  writing-mode: vertical-rl;
}

.altar__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(220, 195, 154, 0.6);
  pointer-events: none;
}
.altar__corner--tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.altar__corner--tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.altar__corner--bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; }
.altar__corner--br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }

.countdown { width: 100%; max-width: 296px; text-align: center; }
.countdown__label {
  font-size: 11.5px;
  letter-spacing: .28em;
  color: rgba(246, 241, 231, 0.45);
  margin-bottom: 10px;
}
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.countdown__cell {
  min-width: 56px;
  padding: 6px 4px 5px;
  border-top: 1px solid rgba(220, 195, 154, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.countdown__cell b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f4e8d6;
  line-height: 1.2;
}
.countdown__cell i {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(246, 241, 231, 0.4);
}

.hero__foot {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(246, 241, 231, 0.5);
}
.hero__foot-line { flex: 1; height: 1px; background: rgba(246, 241, 231, 0.1); }

/* ============ 通用 section ============ */
.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; scroll-margin-top: 64px; }
.section--paper { background: var(--paper); }
.section--paper + .section--paper { padding-top: 0; }

.section--ink {
  background: linear-gradient(180deg, #171110 0%, #1d1613 100%);
  color: var(--paper);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--cinnabar);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.kicker--light { color: var(--gold-2); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 76px);
}
.sec-head--split { align-items: start; }
.sec-head--center {
  display: block;
  text-align: center;
  margin-bottom: clamp(34px, 5vw, 52px);
}
.sec-head--center .kicker::before { display: none; }

.sec-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.05rem, 4.2vw, 3.5rem);
  line-height: 1.28;
  letter-spacing: .04em;
  color: var(--ink);
}
.sec-title--light { color: #f4e8d6; }
.sec-title__line { display: block; }

.sec-body { font-size: 15px; line-height: 2.05; color: var(--muted); max-width: 40em; }
.sec-body p + p { margin-top: 1em; }
.sec-body strong,
.faq-item__body strong {
  color: var(--cinnabar-2);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(163, 43, 38, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.sec-body--tight { max-width: 34em; }

/* ============ 岁次 ============ */
.year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.year-cell {
  position: relative;
  padding: clamp(24px, 3vw, 38px) clamp(20px, 2.6vw, 34px) clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--line-soft);
}
.year-cell:last-child { border-right: 0; }
.year-cell__no {
  position: absolute;
  top: clamp(22px, 3vw, 34px);
  right: clamp(20px, 2.6vw, 30px);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gold);
  opacity: .8;
}
.year-cell h3 {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--muted);
  margin-bottom: 18px;
}
.year-cell__big {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--ink);
}
.year-cell__note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

/* ============ 四支卡片 ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(180deg, #fbf7ee 0%, #f2e9d8 100%);
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 20px 40px -40px rgba(23, 18, 15, .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(178, 143, 90, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 60px -40px rgba(23, 18, 15, .55);
}
.card:hover::before { opacity: 1; }

.card__watermark {
  position: absolute;
  right: -0.14em;
  bottom: -0.34em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(8rem, 15vw, 13rem);
  line-height: 1;
  color: var(--ink);
  opacity: .038;
  pointer-events: none;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.card:hover .card__watermark { opacity: .055; transform: translateY(-6px); }

.card__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.card__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.7vw, 2.1rem);
  letter-spacing: .06em;
  line-height: 1.3;
}
.card__rel {
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--cinnabar);
  line-height: 1.7;
}

.seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--cinnabar);
  color: #fbeede;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(251, 238, 222, 0.45), inset 0 0 0 4px rgba(0, 0, 0, 0.04), 0 10px 20px -14px rgba(124, 28, 25, .9);
  transform: rotate(-3deg);
  transition: transform .55s var(--ease);
  flex: none;
}
.seal--lg { width: 58px; height: 58px; font-size: 27px; }
.card:hover .seal { transform: rotate(3deg) scale(1.04); }

.card__desc {
  position: relative;
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(15px, 1.3vw, 16.5px);
  line-height: 2.05;
  color: #3b312a;
}

.card__list {
  position: relative;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.card__list li {
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}
.card__list .ico { color: var(--cinnabar); margin-top: 4px; opacity: .85; }
.card__list b {
  display: inline-block;
  margin-right: 8px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 13px;
}

.card__years {
  position: relative;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.card__years-label {
  display: block;
  font-size: 11px;
  letter-spacing: .26em;
  color: #8a6a3e;
  margin-bottom: 6px;
}
.card__years p {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.9;
  color: #4a4036;
  font-variant-numeric: tabular-nums;
}

/* 冲太岁卡：反色强调 */
.card--heavy {
  background: linear-gradient(165deg, #241c17 0%, #1a1310 100%);
  border-color: rgba(220, 195, 154, 0.16);
  color: var(--paper);
}
.card--heavy::before {
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(163, 43, 38, 0.4), transparent 62%);
}
.card--heavy .card__name { color: #f4e8d6; }
.card--heavy .card__rel { color: var(--gold-2); }
.card--heavy .card__desc { color: rgba(246, 241, 231, 0.84); }
.card--heavy .card__list li { color: rgba(246, 241, 231, 0.56); }
.card--heavy .card__list b { color: rgba(246, 241, 231, 0.94); }
.card--heavy .card__list .ico { color: var(--gold-2); }
.card--heavy .card__top { border-bottom-color: rgba(246, 241, 231, 0.12); }
.card--heavy .card__years { border-top-color: rgba(246, 241, 231, 0.12); }
.card--heavy .card__years p { color: rgba(246, 241, 231, 0.7); }
.card--heavy .card__watermark { color: #fff; opacity: .04; }
.card--heavy:hover .card__watermark { opacity: .07; }

/* ============ 查询 ============ */
.query-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.query-intro__text {
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 2.05;
  color: rgba(246, 241, 231, 0.6);
  max-width: 26em;
}
.query-intro__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(246, 241, 231, 0.38);
}
.query-intro__hint .ico { width: 15px; height: 15px; color: var(--gold); }

.quickmap {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(246, 241, 231, 0.12);
}
.quickmap li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(246, 241, 231, 0.07);
  font-size: 13px;
  color: rgba(246, 241, 231, 0.42);
}
.quickmap span {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-2);
  min-width: 1.2em;
}
.quickmap em {
  font-style: normal;
  color: rgba(246, 241, 231, 0.78);
  letter-spacing: .08em;
  min-width: 4.6em;
}

.panel {
  background: linear-gradient(180deg, #241b17 0%, #1c1512 100%);
  border: 1px solid rgba(220, 195, 154, 0.16);
  padding: clamp(24px, 3.4vw, 42px);
  box-shadow: 0 40px 90px -60px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel__form label {
  display: block;
  font-size: 12px;
  letter-spacing: .26em;
  color: rgba(246, 241, 231, 0.5);
  margin-bottom: 12px;
}
.field { display: flex; gap: 10px; }
.field input {
  flex: 1;
  min-width: 0;
  background: rgba(246, 241, 231, 0.04);
  border: 1px solid rgba(246, 241, 231, 0.16);
  color: #f4e8d6;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: .12em;
  padding: 12px 18px;
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input::placeholder {
  color: rgba(246, 241, 231, 0.22);
  font-weight: 400;
  letter-spacing: .04em;
  font-size: 1rem;
}
.field input:focus {
  border-color: rgba(220, 195, 154, 0.6);
  background: rgba(246, 241, 231, 0.07);
  box-shadow: 0 0 0 4px rgba(178, 143, 90, 0.1);
}
.field input[aria-invalid='true'] { border-color: var(--cinnabar); }

.field__hint {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(246, 241, 231, 0.46);
  min-height: 1.5em;
  transition: color .3s;
}
.field__hint[data-state='error'] { color: #e08079; }

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 241, 231, 0.08);
}
.quick::before {
  content: '常查年份';
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(246, 241, 231, 0.3);
  align-self: center;
  margin-right: 4px;
}
.quick button {
  background: transparent;
  border: 1px solid rgba(246, 241, 231, 0.14);
  color: rgba(246, 241, 231, 0.62);
  font-size: 12.5px;
  padding: 5px 12px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: all .3s var(--ease);
}
.quick button:hover {
  border-color: rgba(220, 195, 154, 0.5);
  color: var(--gold-2);
  background: rgba(220, 195, 154, 0.06);
}

/* 结果面板 */
.result {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(246, 241, 231, 0.1);
  min-height: 232px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result__empty {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(246, 241, 231, 0.34);
}
.result__glyph {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(220, 195, 154, 0.16);
  flex: none;
}
.result__empty p { font-size: 13.5px; line-height: 1.9; max-width: 26em; }

.res { animation: res-in .6s var(--ease) both; }
@keyframes res-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.res__top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  justify-content: space-between;
}
.res__zodiac {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  color: #f4e8d6;
  letter-spacing: .04em;
}
.res__zodiac small {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .24em;
  color: rgba(246, 241, 231, 0.5);
  margin-top: 10px;
}
.res__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .2em;
  padding: 7px 14px;
  border: 1px solid rgba(220, 195, 154, 0.4);
  color: var(--gold-2);
  white-space: nowrap;
}
.res__tag--hit {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fbeede;
}
.res__tag--safe { border-color: rgba(120, 140, 93, 0.6); color: #b6c79a; }

.res__rel {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  letter-spacing: .06em;
  color: #f4e8d6;
}
.res__rel span { color: #da958d; }
.res__desc {
  margin-top: 12px;
  font-size: 13.8px;
  line-height: 1.95;
  color: rgba(246, 241, 231, 0.6);
}
.res__list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.res__list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(246, 241, 231, 0.55);
}
.res__list .ico { color: var(--gold); margin-top: 4px; width: 15px; height: 15px; }
.res__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(246, 241, 231, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12px;
  color: rgba(246, 241, 231, 0.46);
  font-variant-numeric: tabular-nums;
}

/* ============ 关系盘 ============ */
.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.wheel-box { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.wheel {
  position: relative;
  width: clamp(280px, 34vw, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(178, 143, 90, 0.09), transparent 62%);
}
.wheel__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 18, 15, 0.14);
  border-radius: 50%;
}
.wheel__ring--inner {
  inset: 20%;
  border-color: rgba(23, 18, 15, 0.08);
  border-style: dashed;
}
.wheel__center {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(180deg, #fbf7ee, #f0e6d3);
  border: 1px solid rgba(178, 143, 90, 0.4);
  box-shadow: 0 18px 40px -30px rgba(23, 18, 15, .8), inset 0 1px 0 #fff;
}
.wheel__center span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1;
  color: var(--cinnabar);
}
.wheel__center small {
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--muted);
}

.wheel__node {
  position: absolute;
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  margin: -22px 0 0 -22px;
  padding: 0;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
  text-align: center;
  border: 1px solid rgba(23, 18, 15, 0.12);
  background: #fbf7ee;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  z-index: 2;
}
.wheel__node:hover {
  transform: scale(1.1);
  border-color: var(--gold);
  box-shadow: 0 12px 24px -16px rgba(23, 18, 15, .8);
}
.wheel__node[data-kind='zhi'],
.wheel__node[data-kind='chong'],
.wheel__node[data-kind='xing'],
.wheel__node[data-kind='hai'] {
  border-color: rgba(163, 43, 38, 0.35);
  color: var(--cinnabar-2);
}
.wheel__node[data-kind='he'] {
  border-color: rgba(120, 140, 93, 0.45);
  color: #4d6440;
}
.wheel__node[data-kind='center'],
.wheel__node.is-active {
  background: var(--cinnabar);
  color: #fbeede;
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 6px rgba(163, 43, 38, 0.1);
  transform: scale(1.06);
}
.wheel__label {
  position: absolute;
  margin-top: 30px;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}

.wheel__hint {
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--muted);
  opacity: .7;
}

.chart-legend { display: flex; flex-direction: column; }
.legend-item {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  transition: background .4s var(--ease), padding-left .4s var(--ease);
  cursor: default;
}
.legend-item:last-child { border-bottom: 1px solid var(--line-soft); }
.legend-item:hover,
.legend-item.is-active { background: linear-gradient(90deg, rgba(178, 143, 90, 0.12), transparent 72%); padding-left: 12px; }
.legend-tag {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  border: 1px solid rgba(163, 43, 38, 0.3);
  color: var(--cinnabar);
  border-radius: 2px;
}
.legend-item[data-kind='he'] .legend-tag { border-color: rgba(120, 140, 93, .45); color: #4d6440; }
.legend-item h4 {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 3px;
}
.legend-item p { font-size: 12.8px; line-height: 1.85; color: var(--muted); }

/* ============ 化解 ============ */
.section--remedy { background: var(--paper-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(23, 18, 15, 0.22);
}
.step {
  position: relative;
  padding: clamp(26px, 3vw, 38px) clamp(16px, 2vw, 26px) clamp(26px, 3vw, 34px);
  border-right: 1px solid var(--line-soft);
}
.step:last-child { border-right: 0; }
.step::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cinnabar);
  transition: width .8s var(--ease);
}
.step:hover::after { width: 100%; }

.step__no {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(23, 18, 15, 0.1);
  letter-spacing: .02em;
  display: block;
  margin-bottom: 14px;
}
.step__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--cinnabar);
  margin-bottom: 16px;
  transform: rotate(45deg);
  transition: transform .6s var(--ease), border-color .4s;
}
.step__icon .ico { transform: rotate(-45deg); }
.step:hover .step__icon { transform: rotate(0deg); border-color: var(--cinnabar); }
.step:hover .step__icon .ico { transform: rotate(0deg); transition: transform .6s var(--ease); }

.step h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.step p { font-size: 13px; line-height: 1.95; color: var(--muted); }
.step__when {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: .16em;
  color: #8a6a3e;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ink);
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cinnabar); }
.faq-item__mark {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
}
.faq-item__mark::before,
.faq-item__mark::after {
  content: '';
  position: absolute;
  background: var(--muted);
  transition: transform .4s var(--ease), background .3s;
}
.faq-item__mark::before { left: 0; top: 6px; width: 14px; height: 1px; }
.faq-item__mark::after { left: 6px; top: 0; width: 1px; height: 14px; }
.faq-item[open] .faq-item__mark::after { transform: rotate(90deg); opacity: 0; }
.faq-item[open] .faq-item__mark::before { background: var(--cinnabar); }
.faq-item__body { padding: 0 40px 24px 0; }
.faq-item__body p {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--muted);
  max-width: 46em;
  animation: faq-in .5s var(--ease);
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ============ 页脚 ============ */
.footer {
  background: #14100e;
  color: rgba(246, 241, 231, 0.5);
  padding: clamp(46px, 6vw, 70px) 0 26px;
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(30px, 4vw, 46px);
  border-bottom: 1px solid rgba(246, 241, 231, 0.1);
}
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__title {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .08em;
  color: rgba(246, 241, 231, 0.86);
}
.footer__sub {
  font-size: 12px;
  letter-spacing: .1em;
  margin-top: 6px;
  color: rgba(246, 241, 231, 0.34);
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 28px;
  align-content: start;
  font-size: 12.5px;
  letter-spacing: .08em;
}
.footer__nav a {
  color: rgba(246, 241, 231, 0.5);
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.footer__nav a:hover { color: var(--gold-2); }

.footer__note {
  font-size: 12px;
  line-height: 2;
  color: rgba(246, 241, 231, 0.5);
  max-width: 46em;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 56px) 0;
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(246, 241, 231, 0.36);
}

/* ============ 滚动揭示 ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__altar { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 34px; padding-left: 6px; }
  .altar { width: 216px; }
  .altar__name { font-size: 1rem; letter-spacing: .1em; }
  .altar__inner { padding: 20px 8px 26px; gap: 12px; }
  .countdown { text-align: left; }
  .countdown__grid { justify-content: flex-start; }
  .countdown__cell { min-width: 52px; }
  .query-grid { grid-template-columns: 1fr; gap: 34px; }
  .chart-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .year-grid { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .year-cell { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-left: 0; padding-right: 0; }
  .year-cell:last-child { border-bottom: 0; }
  .cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .hero { min-height: auto; padding-top: 84px; padding-bottom: 42px; gap: 28px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { padding: 14px 22px; }
  .hero__altar { width: 100%; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; }
  .altar { width: 152px; padding: 6px; animation: none; }
  .altar__frame { padding: 4px; }
  .altar__inner { padding: 12px 4px 14px; gap: 7px; }
  .altar__inner::before { top: 8px; }
  .altar__inner::after { bottom: 8px; }
  .altar__name { font-size: .74rem; letter-spacing: .1em; line-height: 1.3; }
  .altar__top { font-size: 9px; }
  .altar__seal { display: none; }
  .countdown { flex: 1; max-width: none; text-align: left; }
  .countdown__grid { gap: 2px; }
  .countdown__cell { min-width: 0; padding: 5px 2px 4px; }
  .countdown__cell b { font-size: 19px; }
  .countdown__cell i { font-size: 9.5px; }
  .countdown__label { font-size: 10.5px; letter-spacing: .18em; margin-bottom: 8px; }
  .hero__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; margin-top: 26px; padding-top: 18px; }
  .hero__meta dt { font-size: 10.5px; letter-spacing: .14em; margin-bottom: 4px; }
  .hero__meta dd { font-size: 12.5px; line-height: 1.65; }
  .hero__foot { display: none; }
  .nav-cta { padding: 7px 12px; font-size: 11.5px; letter-spacing: .08em; }
  .brand__txt { font-size: 13px; letter-spacing: .12em; }
  .seal--lg { width: 48px; height: 48px; font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-left: 0; }
  .step:last-child { border-bottom: 0; }
  .field { flex-wrap: wrap; }
  .field input { width: 100%; flex: 1 1 100%; }
  .field .btn { width: 100%; }
  .res__top { flex-direction: column; gap: 12px; }
  .wheel__node { width: 38px; height: 38px; margin: -19px 0 0 -19px; font-size: 16.5px; }
  .card__watermark { font-size: 8rem; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta > div:last-child { grid-column: 1 / -1; }
  .hero__desc { font-size: 14px; line-height: 1.95; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== 文章 / 页面（博客形态，供 page/single/archive 复用） ===== */
.page-head { margin-bottom: clamp(28px, 4vw, 48px); }
.page-head__desc { margin-top: 12px; color: var(--ink-3); max-width: 42em; }
.entry { padding: 26px 0; border-bottom: 1px solid var(--line); }
.entry__title { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.35; }
.entry__title a { color: var(--ink); text-decoration: none; }
.entry__title a:hover { color: var(--cinnabar-2); }
.entry__meta { font-size: 12.5px; letter-spacing: .04em; color: var(--gold); margin: 8px 0 14px; }
.entry__sep { margin: 0 8px; }
.entry__summary { color: var(--muted); line-height: 2; max-width: 46em; }
.entry__empty { color: var(--muted); }
.entry__content { font-size: 16px; line-height: 2; color: var(--ink-2); max-width: 46em; }
.entry__content h2, .entry__content h3 { font-family: var(--serif); margin: 1.6em 0 .6em; color: var(--ink); }
.entry__content p { margin: 0 0 1.2em; }
.entry__content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry__content a { color: var(--cinnabar-2); }

/* 短代码结果卡在浅色页面上的可读性兜底 */
.ft-panel { border-radius: 16px; padding: clamp(20px, 3vw, 34px); margin: 8px 0; }
