:root {
  color-scheme: dark;
  --bg: #0b0a1a;
  --bg-2: #151030;
  --ink: #fff8ee;
  --muted: #c9bfe8;
  --gold: #ffd978;
  --paper: #f5e6c8;
  --rose: #ff7ab8;
  --violet: #6c3ce1;
  --pink: #e87aff;
  --line: rgba(255, 255, 255, .15);
  --surface: rgba(255, 255, 255, .08);
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(232, 122, 255, .24), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(255, 217, 120, .18), transparent 24%),
    linear-gradient(145deg, var(--bg), #100d25 48%, #070713);
  padding-bottom: 92px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(11, 10, 26, .75);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0; }
.brand img { width: 44px; height: 44px; border-radius: 8px; box-shadow: 0 0 22px rgba(255, 217, 120, .25); }
.nav-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.nav-links a {
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: var(--surface); }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; color: #fff; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 28px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .92rem;
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 8px;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 1;
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-weight: 400;
  text-shadow: 0 0 34px rgba(232, 122, 255, .5);
}
h2 { font-size: clamp(1.65rem, 4vw, 2.55rem); line-height: 1.2; margin-bottom: 14px; }
h3 { line-height: 1.35; }
.hero-slogan { font-size: clamp(1.3rem, 3vw, 2rem); color: #fff; margin-bottom: 12px; }
.hero-desc, .section-head p, .tool-hero p { color: var(--muted); max-width: 660px; }
.hero-actions, .lottery-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.08);
}
.btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 0 0 rgba(232, 122, 255, .0);
  animation: pulseGlow 2.8s infinite;
}
.btn.ghost:hover, .btn.primary:hover { transform: translateY(-2px); }

.hero-oracle {
  aspect-ratio: 1;
  min-height: 320px;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.oracle-ring {
  position: absolute;
  width: min(58vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 217, 120, .32);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,217,120,.25), transparent, rgba(232,122,255,.35), transparent);
  animation: spin 18s linear infinite;
}
.oracle-core {
  width: min(38vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Ma Shan Zheng", serif;
  font-size: clamp(6rem, 17vw, 12rem);
  color: var(--gold);
  background: radial-gradient(circle, rgba(255,255,255,.14), rgba(108,60,225,.16) 60%, rgba(0,0,0,.2));
  box-shadow: inset 0 0 44px rgba(255,217,120,.18), 0 34px 90px rgba(108,60,225,.32);
}

.lottery {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 120, .2);
  border-radius: 8px;
  padding: 42px 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 217, 120, .16), transparent 32%),
    linear-gradient(145deg, #1a0e2e, #08152d);
  box-shadow: var(--shadow);
}
.lottery-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 60;
  width: min(860px, calc(100% - 32px));
  max-height: calc(100dvh - 28px);
  margin: 0;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: calc(100% - 36px) 50%;
  opacity: 1;
  transition: opacity .32s ease, transform .38s cubic-bezier(.2, .8, .2, 1), visibility .32s ease;
  visibility: visible;
}
.lottery-modal::before {
  content: "";
  position: fixed;
  inset: -100vmax;
  z-index: -1;
  background: rgba(5, 4, 14, .66);
  backdrop-filter: blur(7px);
}
.lottery-modal.is-collapsed {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(calc(-50% + 38vw), -50%) scale(.16);
}
.lottery-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(255,255,255,.09);
  cursor: pointer;
}
.floating-lottery {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 50;
  width: 74px;
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 217, 120, .45);
  border-radius: 999px;
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 18%, rgba(255,217,120,.24), transparent 34%),
    linear-gradient(160deg, rgba(26,14,46,.96), rgba(8,21,45,.96));
  box-shadow: 0 18px 42px rgba(0,0,0,.35), inset 0 0 18px rgba(255,217,120,.12);
  cursor: pointer;
  transform: translateY(-50%);
  animation: floatShake 1.2s ease-in-out infinite;
}
.floating-lottery[hidden] {
  display: none;
}
.floating-lottery span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Ma Shan Zheng", serif;
  font-size: 2rem;
  background: rgba(255,217,120,.12);
}
.floating-lottery em {
  color: #fff6d8;
  font-size: .86rem;
  font-style: normal;
}
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .82; }
.lottery > *:not(canvas) { position: relative; z-index: 1; }
.lottery .lottery-close {
  position: absolute;
  z-index: 8;
}
.lottery-stage {
  min-height: 300px;
  display: grid;
  grid-template-rows: minmax(252px, auto) auto;
  align-items: center;
  justify-items: stretch;
  gap: 14px;
}
.lottery-visual {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}
.fortune-pot {
  width: 142px;
  height: 172px;
  position: relative;
  transform-style: preserve-3d;
  background:
    linear-gradient(90deg, rgba(40,18,7,.25), rgba(255,218,150,.25), rgba(55,24,9,.42)),
    repeating-linear-gradient(90deg, #5c2d13, #6f3718 12px, #3e1d0c 18px);
  border: 3px solid rgba(255,217,120,.5);
  border-radius: 26px 26px 34px 34px;
  box-shadow: inset 0 16px 24px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.45);
  animation: potRotate 4.5s ease-in-out infinite;
}
.fortune-pot::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -14px;
  height: 28px;
  border-radius: 50%;
  background: #3c1b0c;
  border: 3px solid rgba(255,217,120,.55);
}
.pot-glyph {
  position: absolute;
  inset: 36px 0 auto;
  text-align: center;
  font-family: "Ma Shan Zheng", serif;
  font-size: 4.4rem;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255,217,120,.45);
}
.bamboo-stick {
  width: min(92%, 620px);
  min-height: 142px;
  padding: 24px 28px 24px 34px;
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -18%) scale(.62) rotate(-10deg);
  transform-origin: center;
  color: #432d1d;
  background:
    linear-gradient(90deg, rgba(212,168,75,.18), transparent 16%, transparent 82%, rgba(212,168,75,.18)),
    var(--paper);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(95,54,20,.18);
}
.stick-top {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(#b7192d, #d4a84b);
}
.fortune-category { display: inline-block; margin-bottom: 8px; color: #9d2235; font-weight: 900; }
.fortune-text {
  display: block;
  min-height: 58px;
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.35;
}
.lottery.is-drawing .fortune-pot { animation: potShake .78s ease-in-out 3, potRotate 4.5s ease-in-out infinite; }
.lottery.is-idle .fortune-pot { animation: potIdle 1.15s ease-in-out infinite; }
.lottery.is-revealed .bamboo-stick { opacity: 1; animation: stickFly 1.15s cubic-bezier(.16, .84, .2, 1) both; }
.lottery-actions { justify-content: center; opacity: 1; transform: translateY(0); transition: .35s ease; }
.lottery.is-drawing .lottery-actions { opacity: 0; transform: translateY(10px); pointer-events: none; }
.lottery .btn[disabled] { cursor: not-allowed; opacity: .55; animation: none; }
.share-preview { margin-top: 18px; text-align: center; color: var(--muted); }
.share-preview img { margin: 14px auto 0; width: min(420px, 100%); border-radius: 8px; box-shadow: var(--shadow); }
.lottery-stage .share-preview {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(255,217,120,.26);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: #fff6d8;
  line-height: 1.68;
  text-align: left;
}
.lottery-stage .share-preview:empty {
  display: none;
}
.lottery-stage .share-preview p {
  margin: 0;
}
.lottery-recommendation { margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(255,217,120,.28); border-radius: 8px; background: rgba(255,217,120,.08); }
.lottery-recommendation span { color: var(--gold); font-size: .8rem; font-weight: 800; }
.lottery-recommendation p { margin: 6px 0 8px; color: #fff6d8; line-height: 1.55; }
.lottery-recommendation a { color: var(--gold); font-weight: 800; }

.huangli {
  position: relative;
}
.huangli::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 2px;
  height: 44px;
  background: linear-gradient(var(--gold), rgba(255,217,120,0));
  opacity: .5;
}
.almanac-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 217, 120, .38);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(245,230,200,.08), transparent 10%, transparent 90%, rgba(245,230,200,.08)),
    rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.almanac-date {
  text-align: center;
  color: var(--gold);
  margin-bottom: 22px;
}
.almanac-date strong {
  display: block;
  font-size: clamp(1.65rem, 5vw, 3.1rem);
  line-height: 1.15;
  animation: datePulse 2.4s ease-in-out infinite;
}
.almanac-date span { color: var(--muted); }
.yi-ji {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.yi-box, .ji-box {
  padding: 18px;
  border-radius: 8px;
}
.yi-box { background: rgba(74, 222, 128, .12); color: #9af0b5; }
.ji-box { background: rgba(248, 113, 113, .13); color: #ffb0b0; }
.yi-box b, .ji-box b {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.yi-box div, .ji-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.yi-box span, .ji-box span {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}
.clash-alert {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(251, 146, 60, .42);
  border-radius: 8px;
  color: #ffd4a1;
  background: rgba(251, 146, 60, .13);
}
.zodiac-flash {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.zodiac-flash span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.almanac-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.almanac-detail-grid div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 217, 120, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}
.almanac-detail-grid small, .almanac-detail-grid strong {
  display: block;
}
.almanac-detail-grid small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .76rem;
}
.almanac-detail-grid strong {
  overflow: hidden;
  color: #f8e8bd;
  font-size: .92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.almanac-more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.almanac-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
.almanac-facts p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  margin: 0;
  line-height: 1.65;
}
.almanac-facts b { color: #f8e8bd; font-weight: 600; }
.almanac-facts span { color: var(--muted); }
.almanac-hour {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tool-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool-card, .article-card, .panel, .calculator, .result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.05));
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.tool-card {
  min-height: 172px;
  padding: 22px;
  transition: transform .25s ease, border-color .25s ease;
  transform-style: preserve-3d;
}
.tool-card:hover { transform: translateY(-8px) rotateX(4deg); border-color: rgba(255,217,120,.42); }
.tool-card span { color: var(--gold); font-weight: 900; }
.tool-card span:first-child { font-size: 1.55rem; }
.tool-card strong { display: block; margin: 18px 0 6px; font-size: 1.28rem; }
.tool-card em { color: var(--muted); font-style: normal; }
.accent-card {
  border-color: rgba(232,122,255,.42);
  background: linear-gradient(145deg, rgba(232,122,255,.15), rgba(255,255,255,.05));
}
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.panel, .calculator { padding: 26px; }
.insight-grid .panel { display: flex; flex-direction: column; }
.pair-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1; }
.pair-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}
.pair-list span { color: var(--gold); }
.text-link { color: var(--gold); font-weight: 900; }
.rich-hero-cta { box-shadow: 0 0 24px rgba(255,81,125,.35); }
.api-loading { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.api-loading i { width: 16px; height: 16px; border: 2px solid rgba(255,217,120,.28); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }

.yuanlai-qr-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 9, 6, .68);
  backdrop-filter: blur(8px);
}

.yuanlai-qr-mask.is-confirming {
  display: none;
}

.yuanlai-poster-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 9, 6, .78);
  backdrop-filter: blur(8px);
}

.yuanlai-poster-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: 92vh;
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255, 217, 120, .42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 251, 235, .98), rgba(252, 238, 205, .98));
  text-align: center;
}

.yuanlai-poster-panel h2 { margin: 0 0 16px; color: #8f1717; }
.yuanlai-poster-panel img { display: block; width: 100%; border-radius: 12px; }
.yuanlai-poster-panel .btn { display: block; margin-top: 16px; }
.poster-generate-btn { display: block; width: 100%; margin-top: 18px; }
.sober-reply { display: none; }
.today-sign-form { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.today-sign-form select { flex: 1; min-width: 0; }
.today-sign-form .btn { flex: 0 0 auto; white-space: nowrap; }
.daily-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.daily-result-grid span { display: block; padding: 12px; border-radius: 8px; background: rgba(255,255,255,.07); line-height: 1.6; }
.daily-result-grid b { display: block; color: var(--gold); }

.yuanlai-qr-panel {
  position: relative;
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid rgba(255, 217, 120, .42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 251, 235, .98), rgba(252, 238, 205, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
  color: #2a1712;
  text-align: center;
}

.yuanlai-qr-panel h2 {
  margin: 4px 0 12px;
  color: #8f1717;
  font-size: 1.9rem;
}

.yuanlai-qr-tip {
  margin: 0 auto 18px;
  color: #6b4a37;
  line-height: 1.75;
}

.yuanlai-qr-img {
  width: min(100%, 260px);
  aspect-ratio: 1;
  display: block;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(139, 21, 21, .14);
}

.yuanlai-qr-status {
  margin: 10px 0 0;
  color: #8b6143;
  font-size: .92rem;
}

.yuanlai-qr-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 20px;
}

.yuanlai-qr-actions .btn.ghost {
  color: #4a3025;
  background: #fff;
  border: 1px solid rgba(74, 48, 37, .28);
  box-shadow: 0 8px 18px rgba(74, 48, 37, .10);
}

.yuanlai-qr-actions .btn.ghost:hover {
  color: #8f1717;
  background: #fff8e8;
  transform: translateY(-2px);
}

.yuanlai-qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(143, 23, 23, .1);
  color: #8f1717;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.module-recommendation { margin: 16px 0; padding: 16px 18px; border: 1px solid rgba(255,217,120,.32); border-radius: 8px; background: linear-gradient(120deg, rgba(255,217,120,.1), rgba(232,122,255,.08)); }
.module-recommendation span { color: var(--gold); font-size: .8rem; font-weight: 800; }
.module-recommendation p { margin: 7px 0 10px; color: #fff6d8; line-height: 1.65; }
.module-recommendation a { color: var(--gold); font-weight: 800; }
button:disabled { cursor: wait; opacity: .6; }
.yuanlai-loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; background: rgba(5,4,14,.78); backdrop-filter: blur(10px); transition: opacity .22s ease, visibility .22s ease; }
.yuanlai-loading.is-visible { opacity: 1; visibility: visible; }
.loading-panel { width: min(330px, 100%); padding: 32px 24px; border: 1px solid rgba(255,217,120,.34); border-radius: 12px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(255,217,120,.14), transparent 46%), rgba(13,10,31,.94); box-shadow: 0 20px 80px rgba(0,0,0,.5), inset 0 0 35px rgba(255,217,120,.06); }
.loading-bagua { position: relative; width: 142px; height: 142px; display: grid; place-items: center; margin: 0 auto 22px; border: 1px solid rgba(255,217,120,.5); border-radius: 50%; color: var(--gold); animation: baguaSpin 8s linear infinite; box-shadow: 0 0 30px rgba(255,217,120,.14), inset 0 0 28px rgba(255,217,120,.1); }
.loading-bagua::before, .loading-bagua::after { content: ""; position: absolute; border: 1px solid rgba(255,217,120,.3); border-radius: 50%; }
.loading-bagua::before { inset: 14px; }
.loading-bagua::after { inset: 30px; border-color: rgba(232,122,255,.32); }
.loading-bagua span { position: absolute; font-size: 1.25rem; }
.loading-bagua span:nth-child(1) { top: -5px; }.loading-bagua span:nth-child(2) { right: 17px; top: 18px; }.loading-bagua span:nth-child(3) { right: -3px; top: 61px; }.loading-bagua span:nth-child(4) { right: 17px; bottom: 18px; }.loading-bagua span:nth-child(5) { bottom: -5px; }.loading-bagua span:nth-child(6) { left: 17px; bottom: 18px; }
.loading-bagua i { position: absolute; font-style: normal; font-family: "Ma Shan Zheng", serif; font-size: 1.3rem; color: #fff6d8; animation: baguaCore 2s ease-in-out infinite; }
.loading-title { margin: 0; color: var(--gold); font-family: "Ma Shan Zheng", serif; font-size: 1.8rem; }
.loading-text { margin: 10px 0 14px; color: var(--muted); line-height: 1.5; }
.loading-dots { display: flex; justify-content: center; gap: 7px; }.loading-dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: loadingDot 1.1s ease-in-out infinite; }.loading-dots b:nth-child(2) { animation-delay: .16s; }.loading-dots b:nth-child(3) { animation-delay: .32s; }
.rich-banner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 20px 24px !important; border: 1px solid rgba(255,217,120,.35); border-radius: 8px; background: linear-gradient(100deg, rgba(232,122,255,.16), rgba(255,217,120,.08)); }
.rich-banner span, .rich-banner b { color: var(--gold); font-weight: 800; }
.rich-banner strong { color: #fff6d8; }
.rich-banner em { color: var(--muted); font-style: normal; }
.aizhanbu-page .calculator { border-color: rgba(255,217,120,.3); }
.gender-choice { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 18px; padding: 0; border: 0; color: var(--muted); }
.gender-choice legend { width: 100%; margin-bottom: -8px; }
.gender-choice label { display: flex; display: inline-flex; align-items: center; gap: 6px; }
.gender-choice input { width: auto; min-height: 0; }
.rich-result { padding: 28px; border: 1px solid rgba(255,217,120,.34); border-radius: 8px; background: radial-gradient(circle at 80% 0, rgba(232,122,255,.16), transparent 30%), rgba(255,255,255,.07); }
.rich-score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rich-score span { color: var(--muted); }
.rich-score strong { color: var(--gold); font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1; }
.rich-score em { color: #ffb0b0; font-style: normal; font-weight: 800; }
.rich-comment { max-width: 720px; color: #fff6d8; font-size: 1.05rem; line-height: 1.75; }
.rich-summary { padding: 14px 16px; border-left: 3px solid var(--gold); color: #fff6d8; line-height: 1.8; background: rgba(255,217,120,.07); }
.rich-elements, .rich-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.rich-elements span { padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--muted); }
.rich-elements b { margin-left: 6px; color: var(--gold); }
.year-progress > div:first-child { display: flex; justify-content: space-between; color: var(--muted); }
.year-progress b { color: var(--gold); }
.progress-track { height: 10px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.12); }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width .7s ease; }
.rich-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.rich-section h3 { margin: 0 0 10px; color: #f8e8bd; }
.rich-section ol { display: grid; gap: 8px; margin: 0; padding-left: 1.3rem; color: var(--muted); line-height: 1.65; }
.rich-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rich-detail-grid p { display: grid; grid-template-columns: 72px 1fr; gap: 8px; margin: 0; padding: 10px; border-radius: 7px; background: rgba(255,255,255,.05); line-height: 1.55; }
.rich-detail-grid b { color: #f8e8bd; font-size: .84rem; }
.rich-detail-grid span { color: var(--muted); }
.rich-sign p { margin: 0; color: var(--gold); font-family: "Ma Shan Zheng", serif; font-size: 1.4rem; }
.rich-copy-status { min-height: 1.4em; color: var(--gold); }
.rich-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rich-tool-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.06); }
.rich-tool-grid h3 { margin-top: 0; color: #f8e8bd; }
.rich-tool-grid p, .rich-tool-grid small { color: var(--muted); line-height: 1.6; }
.lamp-slots { display: grid; gap: 8px; }
.lamp-slots .btn { width: 100%; min-height: 42px; padding: 8px 10px; font-size: .85rem; }
.lamp-blessing { min-height: 3.2em; color: var(--gold) !important; }
.rich-disclaimer { padding: 16px; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.06); }
.daily-meta { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 10px; color: var(--muted); font-size: .85rem; }
.daily-meta span:first-child { color: var(--gold); font-weight: 700; }
.daily-sign-select { display: grid; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: .86rem; }
.daily-sign-select select { min-height: 42px; }
.daily-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.daily-scores div { padding: 12px 8px; border-radius: 8px; background: rgba(255,255,255,.07); text-align: center; }
.daily-scores strong, .daily-scores span { display: block; }
.daily-scores strong { color: var(--gold); font-size: 1.45rem; line-height: 1.1; }
.daily-scores span { margin-top: 5px; color: var(--muted); font-size: .78rem; }
.daily-reading { display: grid; gap: 8px; }
.daily-reading p { display: grid; grid-template-columns: 52px 1fr; gap: 8px; margin: 0; line-height: 1.55; }
.daily-reading b { color: #f8e8bd; }
.daily-reading span { color: var(--muted); }
.daily-lucky { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.daily-lucky span { padding: 7px 9px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.06); font-size: .78rem; }
.daily-lucky b { color: #f8e8bd; }
.daily-more { margin: 14px 0 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.daily-more summary { color: var(--gold); cursor: pointer; font-weight: 700; }
.daily-period-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.daily-period-grid > div { padding: 12px; border-radius: 8px; background: rgba(255,255,255,.05); }
.daily-period-grid h3 { margin: 0 0 8px; color: #f8e8bd; font-size: 1rem; }
.daily-period-grid p { margin: 7px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid rgba(255,217,120,.24);
  border-radius: 8px;
  background: rgba(255,217,120,.09);
}
.article-grid { grid-template-columns: repeat(3, 1fr); }
.article-card { padding: 22px; }
.article-card time, .meta { color: var(--gold); font-size: .9rem; }
.article-card p, .result-card, .site-footer, .article-body p, .article-body li { color: var(--muted); }

.tool-main { padding-top: 18px; }
.tool-hero { padding-bottom: 28px; }
.tool-hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); }
.calculator h2 { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
label { display: grid; gap: 8px; color: var(--muted); }
select, input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(11,10,26,.86);
  outline: none;
  font-size: 16px;
}
select:focus, input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,217,120,.14); }
.result-card { margin-top: 18px; padding: 20px; }
.match-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.match-stats span { display: grid; gap: 4px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--gold); }
.match-stats b { color: var(--muted); font-size: .78rem; font-weight: 400; }
.zodiac-summary { padding: 14px; border-left: 3px solid var(--gold); color: #fff6d8; line-height: 1.8; background: rgba(255,217,120,.07); }
.sign-summary { padding: 14px; border-left: 3px solid var(--pink); color: #fff6d8; line-height: 1.8; background: rgba(232,122,255,.08); }
.zodiac-score { color: var(--gold); font-size: 1.25rem; font-weight: 800; }
.sign-dynamics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.sign-dynamics div { padding: 12px; border-radius: 7px; background: rgba(232,122,255,.08); }
.sign-dynamics b { color: #f8e8bd; }
.sign-dynamics p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.zodiac-report-block { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.zodiac-report-block h3 { margin: 0 0 10px; color: #f8e8bd; }
.zodiac-report-block ul, .zodiac-report-block ol { margin: 0; padding-left: 1.3rem; color: var(--muted); line-height: 1.7; }
.zodiac-report-block.warning h3 { color: #ffb0b0; }
.zodiac-scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.zodiac-scene { padding: 12px; border-radius: 7px; background: rgba(255,255,255,.05); }
.zodiac-scene h4 { margin: 0 0 7px; color: var(--gold); }
.zodiac-scene p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.zodiac-scene b { color: #f8e8bd; }
.zodiac-easter, .zodiac-ending { margin-top: 16px; padding: 14px; border-radius: 7px; color: #fff6d8; line-height: 1.7; background: rgba(232,122,255,.09); }
.dream-match { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dream-match h3 { margin: 0 0 8px; color: #f8e8bd; }
.dream-match p { margin: 7px 0; color: var(--muted); line-height: 1.65; }
.dream-guide { margin-top: 22px; padding: 18px; border: 1px solid rgba(255,217,120,.3); border-radius: 8px; background: rgba(255,217,120,.06); }
.dream-guide h3 { margin: 0 0 10px; color: var(--gold); }
.dream-guide-summary, .dream-guide-next { color: #fff6d8; line-height: 1.75; }
.dream-guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.dream-guide-grid > div { padding: 12px; border-radius: 7px; background: rgba(255,255,255,.06); }
.dream-guide-grid b { color: #f8e8bd; }
.dream-guide-grid p, .dream-guide-grid ul { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.dream-guide-grid ul { padding-left: 1.2rem; }
.remote-result { margin: 14px 0; padding: 14px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.05); }
.remote-result p { margin: 8px 0; color: var(--muted); line-height: 1.65; }
.energy-summary { line-height: 1.8; }
.energy-section { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.energy-section h3 { margin: 0 0 12px; color: #f8e8bd; }
.energy-bars { display: grid; gap: 12px; }
.energy-bar > div { display: flex; justify-content: space-between; color: var(--muted); }
.energy-bar b, .energy-bar span { color: #f8e8bd; }
.energy-bar span { color: var(--gold); }
.energy-bar i { display: block; height: 9px; margin: 6px 0 4px; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--gold)); }
.energy-bar small { color: var(--muted); }
.energy-calendar { padding: 14px; border-radius: 8px; background: rgba(255,255,255,.05); }
.energy-calendar p, .energy-kit p, .energy-check p { margin: 7px 0; color: var(--muted); line-height: 1.65; }
.energy-calendar b, .energy-kit b { color: #f8e8bd; }
.energy-calendar-button, .energy-check-button { margin-top: 8px; padding: 8px 12px; border: 1px solid rgba(255,217,120,.35); border-radius: 6px; color: var(--gold); background: transparent; cursor: pointer; }
.energy-check label { margin-right: 14px; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.energy-check input { width: auto; min-height: 0; }
.energy-check-result { color: var(--gold) !important; }
.ai-energy-report { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,217,120,.3); }
.ai-energy-report h3, .ai-report-block h4 { color: var(--gold); }
.ai-report-summary { color: #fff6d8; line-height: 1.8; }
.ai-report-block { margin-top: 16px; padding: 12px 14px; border-radius: 7px; background: rgba(232,122,255,.07); }
.ai-report-block h4 { margin: 0 0 8px; }
.ai-report-block p { margin: 7px 0; color: var(--muted); line-height: 1.65; }
.ai-report-block b { color: #f8e8bd; }
.ziwei-profile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.ziwei-profile span { display: grid; gap: 4px; padding: 9px; border-radius: 7px; background: rgba(255,255,255,.06); color: #f8e8bd; }
.ziwei-profile b { color: var(--muted); font-size: .75rem; font-weight: 400; }
.ziwei-explanation { line-height: 1.8; }
.ziwei-explanation { line-height: 1.8; }
.score { color: var(--gold); font-size: 2rem; font-weight: 900; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.compact-actions { margin-top: 0; margin-bottom: 18px; }
.jixiong-card {
  padding: 24px;
  border-radius: 8px;
  background: radial-gradient(circle at 20% 0, rgba(255,217,120,.16), transparent 30%), rgba(18,15,43,.94);
  border: 1px solid rgba(255,217,120,.32);
}
.number-orb {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--gold);
  font-size: 2.7rem;
  font-weight: 900;
  background: rgba(255,217,120,.1);
  border: 1px solid rgba(255,217,120,.45);
  box-shadow: inset 0 0 26px rgba(255,217,120,.18);
}
.level-da吉, .level-吉 { color: #9af0b5; }
.level-ban吉 { color: #93c5fd; }
.level-凶 { color: #fdba74; }
.level-da凶 { color: #fca5a5; }
.is-spinning { animation: resultPulse .26s linear infinite; }
.history-list {
  display: grid;
  gap: 10px;
}
.history-list button, .history-list p {
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: left;
  background: rgba(255,255,255,.07);
}
.history-list span {
  float: right;
  color: var(--gold);
}
.quote-teaser {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: center;
}
.teaser-card, .zhanan-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 122, 184, .36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 122, 184, .22), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.045));
  box-shadow: var(--shadow);
}
.teaser-card p, .zhanan-card blockquote {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.35rem, 3.5vw, 2.6rem);
  line-height: 1.35;
  font-weight: 900;
}
.teaser-card strong, .sober-reply {
  display: block;
  margin-bottom: 20px;
  color: #ffd3e4;
}
.zhanan-stage {
  width: min(920px, calc(100% - 32px));
}
.heart-score {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 217, 120, .1);
}
.like-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.like-row button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
.pop-in {
  animation: resultPulse .32s ease;
}
.quote-list {
  display: grid;
  gap: 10px;
}
.quote-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.quote-list-item b {
  display: block;
  color: #fff;
  line-height: 1.5;
}
.quote-list-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.quote-list-item button,
.quote-pager button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
.quote-list-item button {
  color: var(--gold);
  white-space: nowrap;
}
.quote-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.quote-pager button.active {
  border-color: rgba(255,217,120,.7);
  color: #1b1027;
  background: linear-gradient(135deg, var(--gold), #fff2bf);
}
.quote-pager button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.quote-pager span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
}
.ziwei-layout {
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}
.ziwei-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,217,120,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}
.palace-cell {
  min-height: 118px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: left;
  background: rgba(11,10,26,.78);
  cursor: pointer;
}
.palace-cell:hover, .palace-cell.active {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255,217,120,.14);
}
.palace-cell b, .palace-cell span, .palace-cell strong, .palace-cell em {
  display: block;
}
.palace-cell b { color: #fff; }
.palace-cell span { font-size: .82rem; }
.palace-cell strong { color: var(--gold); font-size: 1.16rem; margin: 8px 0 4px; }
.palace-cell em { color: #fca5a5; font-style: normal; font-size: .86rem; }
.chart-spinner {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -4px;
  border: 2px solid rgba(255,217,120,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.article-main { width: min(860px, calc(100% - 32px)); margin: auto; padding: 42px 0; }
.article-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 46px);
  background: rgba(255,255,255,.07);
}
.article-body h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.article-body h2 { margin-top: 32px; font-size: 1.55rem; }
.related { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.related a { display: inline-flex; margin: 8px 12px 0 0; color: var(--gold); }

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.floating-download {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(520px, calc(100% - 32px));
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff517d, var(--violet), var(--pink));
  box-shadow: 0 16px 46px rgba(232,122,255,.38);
  transform: translateX(-50%);
  animation: pulseGlow 2.4s infinite;
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1024px) {
  .nav-wrap,
  .section,
  .site-footer {
    width: min(1180px, calc(100% - 64px));
  }

  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    gap: 56px;
  }

  .hero-copy {
    padding-bottom: 5vh;
  }

  .hero-desc {
    font-size: 1.08rem;
  }

  .lottery {
    display: grid;
    grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
    grid-template-areas:
      "intro stage"
      "actions stage";
    align-items: center;
    column-gap: 24px;
    min-height: 430px;
    padding: 32px 30px;
  }

  .lottery-modal {
    width: min(860px, calc(100% - 64px));
  }

  .lottery .section-head {
    grid-area: intro;
    align-self: end;
  }

  .lottery .section-head h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
  }

  .lottery-stage {
    grid-area: stage;
    min-height: 342px;
  }

  .lottery-actions {
    grid-area: actions;
    justify-content: flex-start;
    align-self: start;
  }

  .lottery > .share-preview {
    grid-area: share;
    text-align: left;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-card:hover {
    transform: translateY(-8px) rotateX(4deg);
  }

  .insight-grid {
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  }

  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-main .tool-hero,
  .tool-main .calculator {
    width: min(960px, calc(100% - 64px));
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr .82fr;
    gap: 28px;
    min-height: 760px;
  }

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(232,122,255,0), 0 16px 46px rgba(232,122,255,.22); }
  50% { box-shadow: 0 0 28px rgba(232,122,255,.42), 0 20px 54px rgba(108,60,225,.34); }
}
@keyframes datePulse {
  0%, 100% { text-shadow: 0 0 0 rgba(255,217,120,0); }
  50% { text-shadow: 0 0 22px rgba(255,217,120,.42); }
}
@keyframes resultPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes floatShake {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  20% { transform: translateY(-50%) rotate(-6deg); }
  40% { transform: translateY(-50%) rotate(5deg); }
  60% { transform: translateY(-50%) rotate(-4deg); }
  80% { transform: translateY(-50%) rotate(3deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes baguaSpin { to { transform: rotate(360deg); } }
@keyframes baguaCore { 0%, 100% { transform: scale(.9); opacity: .65; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes loadingDot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes potRotate {
  0%, 100% { transform: rotateY(-12deg); }
  50% { transform: rotateY(16deg); }
}
@keyframes potShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-18px) rotate(-8deg); }
  45% { transform: translateX(18px) rotate(8deg); }
  70% { transform: translateX(-12px) rotate(-5deg); }
}
@keyframes potIdle {
  0%, 100% { transform: translateX(0) rotateY(-10deg) rotate(0deg); }
  20% { transform: translateX(-9px) rotateY(-6deg) rotate(-4deg); }
  40% { transform: translateX(8px) rotateY(10deg) rotate(4deg); }
  60% { transform: translateX(-6px) rotateY(-8deg) rotate(-3deg); }
  80% { transform: translateX(5px) rotateY(8deg) rotate(2deg); }
}
@keyframes stickFly {
  0% { opacity: 0; transform: translate(-50%, 54%) scale(.42) rotate(-22deg); }
  54% { opacity: 1; transform: translate(-50%, -128%) scale(.72) rotate(16deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at 50% -8%, rgba(232, 122, 255, .25), transparent 34%),
      linear-gradient(180deg, #100d25, #0b0a1a 58%, #070713);
    padding-bottom: 86px;
  }

  .site-header {
    position: sticky;
  }

  .rich-banner { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .rich-banner strong, .rich-banner em { grid-column: 1 / -1; }

  .brand span {
    font-size: 1.05rem;
  }

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

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11,10,26,.96);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    width: 100%;
    min-height: 48px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 24px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-oracle {
    min-height: 220px;
    order: -1;
  }

  .oracle-ring {
    width: min(78vw, 280px);
  }

  .oracle-core {
    width: min(56vw, 194px);
    font-size: clamp(5.2rem, 26vw, 8rem);
  }

  .tool-grid, .article-grid, .insight-grid, .form-grid, .yi-ji, .ziwei-layout, .quote-teaser { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }

  .lottery {
    width: min(100% - 24px, 1120px);
    padding: 30px 14px 22px;
  }

  .lottery-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 20px);
    padding: 48px 14px 18px;
  }

  .lottery-modal.is-collapsed {
    transform: translate(calc(-50% + 42vw), -50%) scale(.14);
  }

  .floating-lottery {
    right: 10px;
    width: 62px;
    min-height: 78px;
  }

  .lottery .section-head {
    text-align: center;
  }

  .lottery-stage {
    min-height: 252px;
  }

  .lottery-visual {
    min-height: 252px;
  }

  .fortune-pot {
    width: 112px;
    height: 142px;
  }

  .pot-glyph {
    top: 30px;
    font-size: 3.45rem;
  }

  .bamboo-stick {
    width: calc(100% - 18px);
    min-height: 154px;
  }

  .tool-card {
    min-height: 126px;
    padding: 18px;
  }

  .tool-card strong {
    margin-top: 10px;
  }

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

  .quote-list-item button {
    width: 100%;
    white-space: normal;
  }

  .panel, .calculator {
    padding: 20px;
  }

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

  .pair-list a {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-main {
    width: min(100% - 24px, 860px);
    padding-top: 26px;
  }
}

@media (max-width: 480px) {
  .section { width: min(100% - 24px, 1120px); padding: 42px 0; }
  .nav-wrap { width: calc(100% - 24px); }
  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .almanac-detail-grid, .almanac-facts {
    grid-template-columns: 1fr;
  }

  .match-stats, .ziwei-profile, .daily-period-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zodiac-scenes, .sign-dynamics {
    grid-template-columns: 1fr;
  }

  .match-stats span, .ziwei-profile span {
    min-width: 0;
  }

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

  .btn { width: 100%; }
  .rich-tool-grid { grid-template-columns: 1fr; }
  .rich-detail-grid { grid-template-columns: 1fr; }
  .dream-guide-grid { grid-template-columns: 1fr; }
  .rich-banner { grid-template-columns: 1fr; }
  .rich-banner b { grid-column: auto; }
  .lottery-actions .btn { width: auto; flex: 1; min-width: 132px; }
  .fortune-text { font-size: 1.35rem; }
  .bamboo-stick { padding: 22px 18px 22px 28px; }

  .tag-cloud {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tag-cloud a {
    justify-content: center;
    text-align: center;
  }

  .zodiac-flash {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ziwei-board {
    grid-template-columns: 1fr;
  }

  .floating-download {
    width: calc(100% - 20px);
    min-height: 56px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}
