*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #0d0a1a;
  color: #e8dfc8;
  line-height: 1.7;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  background: rgba(10, 7, 20, 0.95);
  border-bottom: 1px solid #2a1f4a;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { font-size: 24px; }
.logo-name { font-size: 20px; font-weight: 700; color: #d4af37; letter-spacing: 1px; }
.logo-sub  { font-size: 14px; color: #9b8c6a; }

/* ── Palm Hero ── */
.palm-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

/* 金手掌容器 */
.palm-wrap {
  position: relative;
  width: 380px;
  height: 285px; /* 380 * 1792/2400，与图片同比例，消除 letterbox */
  animation: palmFloat 5s ease-in-out infinite;
}

.hand-img {
  width: 100%;
  height: 100%;
  display: block;
}

/* 节点 SVG 叠加层 */
.node-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@keyframes palmFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* 十二指节呼吸（alternate 慢呼吸，各节点错落延迟） */
.node {
  fill: #FDE08B;
  cursor: pointer;
  animation: breathe 4s ease-in-out var(--d, 0s) infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes breathe {
  from {
    opacity: 0.28;
    transform: scale(0.8);
  }
  to {
    opacity: 0.95;
    transform: scale(1.7);
    filter: drop-shadow(0 0 5px #FDE08B) drop-shadow(0 0 12px rgba(253,224,139,.4));
  }
}

/* Hover：暂停呼吸 + 高亮 */
.node:hover {
  animation-play-state: paused;
  opacity: 1;
  transform: scale(2.2);
  filter: drop-shadow(0 0 10px #FFD700) drop-shadow(0 0 22px rgba(255,215,0,.6));
  transform-box: fill-box;
  transform-origin: center;
}

/* 命宫节点——爆亮 */
.node-active {
  fill: #FFD700;
  animation: breatheActive 2s ease-in-out infinite alternate !important;
}

@keyframes breatheActive {
  from {
    opacity: 0.85;
    transform: scale(1.4);
    filter: drop-shadow(0 0 8px #FFD700);
  }
  to {
    opacity: 1;
    transform: scale(2.6);
    filter: drop-shadow(0 0 18px #FFD700) drop-shadow(0 0 32px rgba(255,215,0,.5));
  }
}

/* 非命宫节点——降调 */
.node-dim {
  opacity: 0.1 !important;
  animation: none !important;
  transform: scale(0.7) !important;
  transform-box: fill-box;
  transform-origin: center;
}

/* 指节 Tooltip */
.node-tooltip {
  position: absolute;
  background: rgba(10, 7, 22, 0.93);
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  color: #e8dfc8;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s;
  z-index: 10;
  transform: translateX(-50%);
  line-height: 1.7;
  text-align: center;
}

.node-tooltip.visible { opacity: 1; }
.tt-zhi  { font-size: 15px; font-weight: 800; color: #d4af37; margin-right: 4px; }
.tt-dao  { font-size: 11px; color: #9b8c6a; }

/* 底部胶囊标签 */
.palm-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.legend-item {
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid;
  letter-spacing: 1px;
}

.legend-l1 { color: #d4af37; border-color: rgba(212,175,55,.5); background: rgba(212,175,55,.07); }
.legend-l2 { color: #c4b0d8; border-color: rgba(196,176,216,.5); background: rgba(196,176,216,.07); }
.legend-l3 { color: #c8a870; border-color: rgba(200,168,112,.5); background: rgba(200,168,112,.07); }

/* ── Intro ── */
.intro {
  padding: 60px 0 50px;
  background:
    linear-gradient(180deg, rgba(13,10,26,0.82) 0%, rgba(13,10,26,0.96) 100%),
    url('https://images.unsplash.com/photo-1534447677768-be436bb09401?q=80&w=1000&auto=format&fit=crop')
    center center / cover no-repeat;
}

.intro-title {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  color: #d4af37;
  letter-spacing: 6px;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.intro-subtitle {
  text-align: center;
  color: #9b8c6a;
  font-size: 15px;
  margin: 8px 0 32px;
  letter-spacing: 3px;
}

.intro-body p {
  color: #c8bda0;
  font-size: 15px;
  margin-bottom: 16px;
}

.intro-body strong { color: #d4af37; }
.intro-body em { color: #b8a882; font-style: normal; }

.palace-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid;
}

.badge-gold   { color: #d4af37; border-color: #d4af37; background: rgba(212,175,55,.08); }
.badge-blue   { color: #7eb8f7; border-color: #7eb8f7; background: rgba(126,184,247,.08); }
.badge-purple { color: #c084fc; border-color: #c084fc; background: rgba(192,132,252,.08); }
.badge-green  { color: #6ee7b7; border-color: #6ee7b7; background: rgba(110,231,183,.08); }
.badge-red    { color: #f87171; border-color: #f87171; background: rgba(248,113,113,.08); }
.badge-gray   { color: #9ca3af; border-color: #9ca3af; background: rgba(156,163,175,.08); }

/* ── Calc Section ── */
.calc-section {
  padding: 48px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #d4af37;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.calendar-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.toggle-btn {
  padding: 8px 28px;
  border-radius: 24px;
  border: 1px solid #3a2f6a;
  background: transparent;
  color: #9b8c6a;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.toggle-btn:hover:not(.active) {
  border-color: #6b5f45;
  color: #c8bda0;
}

.toggle-btn.active {
  background: #d4af37;
  border-color: #d4af37;
  color: #0d0a1a;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(212,175,55,.35);
}

.form-card {
  background: rgba(255,255,255,.04);
  border: 1px solid #2a1f4a;
  border-radius: 16px;
  padding: 28px 24px;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.form-label {
  width: 110px;
  flex-shrink: 0;
  font-size: 14px;
  color: #c8bda0;
}

.label-hint {
  font-size: 12px;
  color: #6b5f45;
}

.form-input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid #3a2f6a;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e8dfc8;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.form-input::placeholder { color: #7a6b52; }

.form-input:focus { border-color: #d4af37; }

select.form-input option { background: #1a1530; }

.radio-group { display: flex; gap: 20px; }
.radio-item  { font-size: 14px; color: #c8bda0; cursor: pointer; display: flex; align-items: center; gap: 6px; }

.checkbox-item { font-size: 14px; color: #c8bda0; cursor: pointer; display: flex; align-items: center; gap: 6px; }

.calc-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #d4af37, #b8922a);
  border: none;
  border-radius: 10px;
  color: #0d0a1a;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  margin-top: 8px;
  transition: opacity .2s;
}

.calc-btn:hover { opacity: .85; }

/* ── Results ── */
.results { padding: 48px 0; }

.palace-card {
  background: linear-gradient(135deg, #1e1640 0%, #2a1f4a 100%);
  border: 1px solid #d4af37;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
  box-shadow: 0 0 40px rgba(212,175,55,.15);
}

.palace-symbol {
  font-size: 64px;
  flex-shrink: 0;
  line-height: 1;
}

.palace-zhi    { font-size: 36px; font-weight: 800; color: #d4af37; }
.palace-star   { font-size: 20px; color: #e8dfc8; margin: 4px 0; }
.palace-dao    { font-size: 14px; color: #9b8c6a; margin-bottom: 8px; }
.palace-tagline { font-size: 15px; color: #c8bda0; font-style: italic; }

.result-block {
  background: rgba(255,255,255,.03);
  border: 1px solid #2a1f4a;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.block-title {
  font-size: 18px;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.block-title-sub {
  font-size: 14px;
  font-weight: 400;
  color: #6b5f45;
}

.original-text {
  font-size: 16px;
  color: #c8bda0;
  line-height: 2;
  font-style: italic;
  padding: 16px;
  background: rgba(212,175,55,.05);
  border-left: 3px solid #d4af37;
  border-radius: 0 8px 8px 0;
}

/* ── Tabs ── */
.tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid #3a2f6a;
  background: transparent;
  color: #9b8c6a;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}

.tab-btn.active {
  background: #d4af37;
  border-color: #d4af37;
  color: #0d0a1a;
  font-weight: 700;
}

.tab-content {
  font-size: 15px;
  color: #c8bda0;
  line-height: 1.9;
}

/* ── 十二宫介绍网格 ── */
.intro-sub-title {
  font-size: 16px;
  color: #d4af37;
  letter-spacing: 2px;
  margin: 28px 0 16px;
  padding-top: 24px;
  border-top: 1px solid #2a1f4a;
}

.palace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.palace-grid-item {
  background: rgba(255,255,255,.03);
  border: 1px solid #2a1f4a;
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pg-zhi  { font-size: 22px; font-weight: 800; color: #d4af37; }
.pg-star { font-size: 12px; color: #c8bda0; }
.pg-dao  { font-size: 11px; border-radius: 8px; padding: 1px 8px; display: inline-block; width: fit-content; }
.pg-dao-gold   { color: #d4af37; background: rgba(212,175,55,.12); }
.pg-dao-blue   { color: #7eb8f7; background: rgba(126,184,247,.12); }
.pg-dao-purple { color: #c084fc; background: rgba(192,132,252,.12); }
.pg-dao-green  { color: #6ee7b7; background: rgba(110,231,183,.12); }
.pg-dao-red    { color: #f87171; background: rgba(248,113,113,.12); }
.pg-dao-gray   { color: #9ca3af; background: rgba(156,163,175,.12); }
.pg-desc { font-size: 11px; color: #6b5f45; line-height: 1.5; }

/* ── 四柱 ── */
/* 推算链容器 */
.pillar-chain {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.pillar-arrow {
  color: #3a2f5a;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 2px;
}

/* 过程宫（年/月/日）：较小，降调 */
.pillar-cell {
  flex: 1;
  background: rgba(255,255,255,.03);
  border: 1px solid #221840;
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  opacity: 0.55;
}

/* 命宫：正常大小，自然突出 */
.pillar-cell-ming {
  flex: 1.3;
  background: rgba(212,175,55,.06);
  border: 1px solid #3d3020;
  border-radius: 12px;
  padding: 16px 8px;
  opacity: 1;
}

.pillar-label {
  font-size: 11px;
  color: #6b5f45;
  margin-bottom: 8px;
}

.pillar-cell-ming .pillar-label {
  font-size: 13px;
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar-gan, .pillar-zhi {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.pillar-cell-ming .pillar-zhi {
  font-size: 28px;
  margin-bottom: 10px;
}

.pillar-wx { font-size: 10px; font-weight: 400; opacity: 0.7; padding-bottom: 2px; }

.pillar-palace {
  font-size: 11px;
  color: #d4af37;
  margin-top: 6px;
  font-weight: 600;
}

.pillar-cell-ming .pillar-palace {
  font-size: 12px;
  margin-top: 8px;
}

.pillar-dao {
  font-size: 9px;
  color: #6b5f45;
  line-height: 1.5;
  margin-top: 2px;
}

.pillar-cell-ming .pillar-dao {
  font-size: 10px;
}

.sizhu-note { font-size: 12px; color: #4a4035; margin-top: 8px; }

/* ── 命理解读平铺 ── */
.interp-flat { display: flex; flex-direction: column; gap: 16px; }

.interp-item {
  padding: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid #2a1f4a;
  border-radius: 10px;
}

.interp-label {
  font-size: 13px;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.interp-icon { font-size: 14px; }

.interp-text {
  font-size: 14px;
  color: #c8bda0;
  line-height: 1.9;
}

/* ── 命格 ── */
.gejv-block { border-color: #d4af37; background: rgba(212,175,55,.05); }
.gejv-title {
  font-size: 16px;
  color: #c8bda0;
  line-height: 1.8;
  font-style: italic;
  padding: 4px 0;
}

/* ── AI Loading ── */
.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #2a1f4a;
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { color: #6b5f45; font-size: 14px; }

/* ── AI Error ── */
.ai-error {
  text-align: center;
  padding: 32px 24px;
  background: rgba(248,113,113,.05);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: 12px;
}

.ai-error p { color: #f87171; font-size: 14px; margin-bottom: 8px; }

/* ── Fortune 时间轴 ── */
.fortune-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
}

/* 贯穿竖线 */
.fortune-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, #d4af37 0%, rgba(212,175,55,.08) 100%);
}

.fortune-item {
  position: relative;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid #2a1f4a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 年份节点圆点 */
.fortune-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 6px rgba(212,175,55,.7);
}

.fortune-header { display: flex; align-items: baseline; gap: 10px; }
.fortune-year   { font-size: 18px; font-weight: 700; color: #d4af37; }
.fortune-age    { font-size: 12px; color: #6b5f45; }
.fortune-desc   { font-size: 14px; color: #c8bda0; line-height: 1.8; }
.fortune-advice {
  font-size: 13px;
  color: #9b8c6a;
  background: rgba(212,175,55,.06);
  border-left: 2px solid #d4af37;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  line-height: 1.6;
}

/* ── 前世因缘 ── */
.qianshi-text {
  font-size: 14px;
  color: #c8bda0;
  line-height: 2;
  padding: 16px 20px;
  background: rgba(212,175,55,.04);
  border-left: 2px solid rgba(212,175,55,.3);
  border-radius: 0 10px 10px 0;
}

/* ── 五行喜忌 ── */
.wuxing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.wuxing-item {
  background: rgba(255,255,255,.03);
  border: 1px solid #2a1f4a;
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.wx-icon  { font-size: 16px; color: #d4af37; opacity: .6; }
.wx-label { font-size: 11px; color: #6b5f45; }
.wx-val   { font-size: 13px; color: #c8bda0; font-weight: 600; }

.wx-remedy {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(212,175,55,.05);
  border: 1px solid rgba(212,175,55,.15);
  border-radius: 10px;
  font-size: 13px;
  color: #c8bda0;
}

.wx-remedy-icon { font-size: 18px; color: #d4af37; opacity: .8; flex-shrink: 0; }

/* ── 流年详批 ── */
.liunian-text {
  font-size: 14px;
  color: #c8bda0;
  line-height: 2;
  padding: 16px 20px;
  background: rgba(126,184,247,.04);
  border-left: 2px solid rgba(126,184,247,.3);
  border-radius: 0 10px 10px 0;
}

/* ── 合盘配对 ── */
.block-subtitle {
  font-size: 13px;
  color: #6b5f45;
  margin-bottom: 16px;
  margin-top: -6px;
}

.peipan-form { }

.peipan-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.peipan-row .form-input { min-width: 0; }

.peipan-result {
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid #2a1f4a;
  border-radius: 16px;
}

.peipan-stars {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pp-star {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pp-zhi   { font-size: 36px; font-weight: 800; line-height: 1; }
.pp-wx    { font-size: 13px; font-weight: 600; }
.pp-role  { font-size: 12px; color: #6b5f45; }

.pp-relation {
  font-size: 24px;
  color: #d4af37;
  opacity: .6;
}

.peipan-score {
  font-size: 42px;
  font-weight: 800;
  color: #d4af37;
  line-height: 1;
}

.pp-score-unit { font-size: 16px; font-weight: 400; color: #9b8c6a; }

.peipan-title {
  font-size: 18px;
  font-weight: 700;
  color: #e8dfc8;
  letter-spacing: 2px;
}

.peipan-desc {
  font-size: 13px;
  color: #9b8c6a;
  line-height: 1.9;
  max-width: 360px;
}

/* ── 禅师寄语 ── */
.chanshi-block {
  margin: 8px 0 4px;
  padding: 28px 28px 24px;
  background: linear-gradient(135deg, #0e0b20 0%, #130f28 100%);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.chanshi-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,.06) 0%, transparent 70%);
  pointer-events: none;
}

.chanshi-deco {
  font-size: 20px;
  color: #d4af37;
  opacity: .45;
  margin-bottom: 14px;
  letter-spacing: 8px;
}

.chanshi-text {
  font-size: 15px;
  color: #c8bda0;
  line-height: 2.1;
  font-style: italic;
  letter-spacing: .5px;
  position: relative;
}

/* ── 模块分割线 ── */
.result-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.2) 30%, rgba(212,175,55,.2) 70%, transparent);
  margin: 32px 0;
}

/* ── 金色高亮（命理解读长段落中的核心断语） ── */
.highlight-gold {
  color: #d4af37;
  font-weight: 700;
}

/* ── 结果页随喜结缘 ── */
.result-donation {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px 20px;
  border-top: 1px solid #2a1f4a;
  margin-top: 16px;
}

.result-donation .donation-amounts {
  justify-content: center;
}

/* ── 打赏弹窗 ── */
.qr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qr-modal-card {
  background: #0f0d1a;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
  position: relative;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.07), 0 24px 64px rgba(0, 0, 0, 0.7);
}

.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #6b5f45;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  transition: color .15s;
}

.qr-modal-close:hover { color: #d4af37; }

.qr-modal-amount {
  font-size: 30px;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 1px;
  line-height: 1;
}

.qr-modal-qr {
  position: relative;
  width: 220px;
  height: 220px;
  background: #ffffff;
  border: 2px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-cover-logo {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32%;
  height: 32%;
  object-fit: cover;
  border-radius: 6px;
}

.qr-modal-blessing {
  font-size: 12px;
  color: rgba(212, 175, 55, 0.65);
  letter-spacing: 4px;
  font-weight: 400;
}

.qr-modal-hint {
  font-size: 10px;
  color: rgba(107, 95, 69, 0.75);
  letter-spacing: 0.3px;
  margin-top: -4px;
}

.qr-modal-note {
  font-size: 10px;
  color: rgba(100, 90, 70, 0.6);
  line-height: 1.7;
  text-align: center;
  max-width: 240px;
  margin-top: -6px;
}

.qr-modal-custom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.qr-modal-custom .form-input {
  max-width: 200px;
  text-align: center;
}

.qr-modal-custom-hint {
  font-size: 11px;
  color: #6b5f45;
}

/* ── 打赏模块（Footer 极简版） ── */
.footer-donation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 32px 0 24px;
}

.donation-icon {
  font-size: 22px;
  color: #d4af37;
  opacity: 0.7;
  line-height: 1;
}

.donation-title {
  font-size: 17px;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 3px;
}

.donation-desc {
  font-size: 13px;
  color: #9b8c6a;
  line-height: 1.9;
}

.donation-amounts {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.amount-btn {
  background: transparent;
  border: 1px solid #3a2f5a;
  color: #9b8c6a;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  font-family: inherit;
}

.amount-btn:hover {
  border-color: #d4af37;
  color: #d4af37;
}

.amount-btn.active {
  border-color: #d4af37;
  color: #d4af37;
  background: rgba(212,175,55,.08);
}

.donation-qr {
  position: relative;
  width: 120px;
  height: 120px;
  border: 1px solid #2a1f4a;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-divider {
  height: 1px;
  background: #1e1830;
  margin-bottom: 24px;
}

/* ── 十二宫科普区（底部） ── */
.palace-ref-section {
  padding: 60px 0;
  background: #0d0a1a;
  border-top: 1px solid #2a1f4a;
}

/* ── Footer ── */
.site-footer {
  background: #080612;
  border-top: 1px solid #2a1f4a;
  padding: 36px 0;
  margin-top: 20px;
}

.footer-disclaimer {
  font-size: 12px;
  color: #888888;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 12px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.footer-disclaimer strong { color: #aaaaaa; }

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: #888888;
}

.footer-copy a {
  color: #666666;
  text-decoration: none;
}

.footer-copy a:hover {
  color: #888888;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .palace-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .peipan-row {
    flex-wrap: wrap;
  }

  .peipan-row .form-input {
    flex: 1 1 calc(50% - 4px);
  }

  .pillar-chain {
    gap: 4px;
  }

  .pillar-arrow {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .intro-title { font-size: 32px; }
  .palm-wrap { width: 300px; height: 225px; }
  .palace-card { flex-direction: column; text-align: center; }
  .fortune-item {
    grid-template-columns: 50px 80px 100px 1fr;
    grid-template-rows: auto auto;
  }
  .fortune-dao { display: none; }
  .fortune-desc { grid-column: 1 / -1; }

  .pillar-chain {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pillar-arrow { display: none; }

  .pillar-cell,
  .pillar-cell-ming {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 400px) {
  .palace-grid {
    grid-template-columns: 1fr;
  }
}
