/* ============================================================
   静盟庐道场 · 玄墨鎏金 多页版 (Jingmenglu Daochang)
   深玄黑底 × 鎏金流光 × 朱砂印 · 五幕帘幕转场 · 3D 斜置 · 流光描边
   性能铁律：动画只用 transform/opacity；流光边框仅 hover 激活
   ============================================================ */
:root {
  --ink: #0b0a08;
  --ink2: #12100c;
  --ink3: #1a1712;
  --ink4: #241e13;
  --gold: #d4af37;
  --gold2: #f0d98c;
  --gold3: #a8842a;
  --red: #c24632;
  --red2: #e06a50;
  --paper: #f2ead8;
  --tea: #b8ab8d;
  --ggray: #7d7460;
  --line: rgba(212, 175, 55, .14);
  --line2: rgba(212, 175, 55, .32);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --rad: 18px;
  --ease: cubic-bezier(.22, .68, .26, 1);
  --shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(212, 175, 55, .07), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(194, 70, 50, .06), transparent 55%),
    var(--ink);
  color: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(212, 175, 55, .35); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold3), #4a3d1c); border-radius: 6px; }

.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.gold-text {
  background: linear-gradient(105deg, #f7e7b0, #e6c96a 45%, #a8842a 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 香火进度线 / 粒子画布 ---------- */
.incense-progress {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold3), var(--gold), var(--gold2));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(212, 175, 55, .6);
}
.incense-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.nav, main, .footer, .banner, .hero, .ticker { position: relative; z-index: 2; }

/* ---------- 北斗青芒光标 ---------- */
.cur-dot, .cur-ring { position: fixed; z-index: 200; top: 0; left: 0; pointer-events: none; display: none; }
@media (pointer: fine) { .cur-dot, .cur-ring { display: block; } }
.cur-dot {
  width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  background: radial-gradient(circle, #eafff8 0%, #7fe3d0 52%, rgba(127, 227, 208, 0) 100%);
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
}
.cur-ring { width: 0; height: 0; }
.cur-ring::after {
  content: ""; position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(127, 227, 208, .38);
  border-top-color: rgba(234, 255, 248, .95);
  box-shadow: 0 0 16px rgba(127, 227, 208, .22), inset 0 0 10px rgba(127, 227, 208, .14);
  animation: cur-spin 5.5s linear infinite;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), border-color .25s, box-shadow .25s;
}
.cur-ring.on::after {
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-color: rgba(212, 175, 55, .55);
  border-top-color: #fff3d6;
  box-shadow: 0 0 18px rgba(212, 175, 55, .38), inset 0 0 10px rgba(212, 175, 55, .22);
  animation-duration: 2.4s;
}
.cur-ring.on ~ .cur-dot { transform-origin: center; }
@keyframes cur-spin { to { rotate: 360deg; } }
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- 灵光墨轮转场 ---------- */
.veil {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  pointer-events: none;
}
.veil-wheel {
  position: absolute; width: 230vmax; height: 230vmax; border-radius: 50%;
  background: radial-gradient(circle, #1b160d 0%, #0d0a07 55%, #070503 100%);
  border: 2px solid rgba(212, 175, 55, .38);
  box-shadow: 0 0 200px rgba(212, 175, 55, .22), inset 0 0 260px rgba(212, 175, 55, .1);
  transform: scale(1);
  transition: transform .3s cubic-bezier(.6, 0, .3, 1);
  will-change: transform;
}
.veil.done .veil-wheel { transform: scale(0); }
.veil.cover .veil-wheel {
  transform: scale(1);
  transition: transform .28s cubic-bezier(.5, 0, .2, 1);
}
.veil-taiji {
  position: relative; z-index: 1;
  width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(240, 217, 140, .6);
  background: radial-gradient(circle, rgba(212, 175, 55, .16), transparent 72%);
  box-shadow: 0 0 70px rgba(212, 175, 55, .3);
  color: var(--gold2); font-family: var(--serif); font-size: 46px; font-weight: 700;
  text-shadow: 0 0 22px rgba(240, 217, 140, .55);
  opacity: 0; transform: scale(.86);
  transition: opacity .28s, transform .28s var(--ease);
}
.veil-taiji::before {
  content: ""; position: absolute; inset: -13px; border-radius: 50%;
  border: 1px dashed rgba(240, 217, 140, .45);
  animation: veil-spin 12s linear infinite;
}
.veil.cover .veil-taiji { opacity: 1; transform: scale(1); }
@keyframes veil-spin { to { rotate: 360deg; } }
.veil.done { pointer-events: none; }

/* ---------- 印章 ---------- */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px;
  background: linear-gradient(150deg, #d8573f, #a83822);
  color: #fff7ea; font-family: var(--serif); font-size: 15px; font-weight: 700;
  letter-spacing: 2px; line-height: 1.1; text-align: center;
  box-shadow: 0 3px 14px rgba(194, 70, 50, .45), inset 0 0 0 1.5px rgba(255, 247, 234, .55);
  flex: none;
}
.seal-lg { width: 54px; height: 54px; font-size: 19px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; letter-spacing: 2px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s, color .3s;
  will-change: transform; color: var(--paper);
}
.btn:active { transform: scale(.97); }
.btn-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, .16), rgba(212, 175, 55, .06));
  border-color: rgba(212, 175, 55, .55); color: var(--gold2);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, .05);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212, 175, 55, .22); border-color: var(--gold); color: #fff3d6; }
.btn-ghost { border-color: rgba(242, 234, 216, .22); color: var(--tea); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(242, 234, 216, .5); color: var(--paper); }
.btn-red {
  background: linear-gradient(135deg, rgba(194, 70, 50, .2), rgba(194, 70, 50, .08));
  border-color: rgba(194, 70, 50, .6); color: #ffb9a6;
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(194, 70, 50, .3); border-color: var(--red2); color: #ffd9cc; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ---------- 返回顶部 ---------- */
.backtop {
  position: fixed; right: 22px; bottom: 26px; z-index: 85;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line2); background: rgba(18, 16, 12, .8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--gold2); font-size: 17px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease), box-shadow .3s, border-color .3s;
}
.backtop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.backtop:hover { border-color: var(--gold); box-shadow: 0 6px 22px rgba(212, 175, 55, .3); transform: translateY(-3px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 80;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px 10px 12px; border-radius: 999px;
  background: rgba(13, 11, 9, .55);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.nav.scrolled { background: rgba(13, 11, 9, .88); border-color: var(--line2); box-shadow: 0 10px 34px rgba(0, 0, 0, .5); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text b { font-family: var(--serif); font-size: 17px; letter-spacing: 3px; color: var(--paper); white-space: nowrap; }
.nav-logo-text i { font-style: normal; font-size: 9px; letter-spacing: 2.4px; color: var(--ggray); white-space: nowrap; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  position: relative; padding: 8px 13px; border-radius: 999px;
  font-size: 14px; letter-spacing: 1px; color: var(--tea);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--gold2); background: rgba(212, 175, 55, .08); }
.nav-links a.active { color: var(--gold2); background: rgba(212, 175, 55, .13); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .3); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: rgba(212, 175, 55, .05); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 17px; height: 1.6px; background: var(--gold2); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- 页面横幅 ---------- */
.banner {
  position: relative; overflow: hidden;
  padding: 168px 24px 74px;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(212, 175, 55, .12), transparent 62%),
    linear-gradient(180deg, rgba(18, 16, 12, .4), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.banner-taiji {
  position: absolute; right: -110px; top: 50%; margin-top: -280px;
  width: 560px; height: 560px; border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, .16);
  background: linear-gradient(90deg, rgba(242, 234, 216, .05) 50%, transparent 50%);
  opacity: .8; pointer-events: none;
  animation: spinYin 70s linear infinite;
}
.banner-taiji::before, .banner-taiji::after { content: ""; position: absolute; left: 25%; width: 50%; height: 50%; border-radius: 50%; }
.banner-taiji::before { top: 0; background: rgba(242, 234, 216, .09); }
.banner-taiji::after { bottom: 0; background: rgba(11, 10, 8, .55); box-shadow: inset 0 0 0 1.5px rgba(212, 175, 55, .2); }
.banner-inner { position: relative; z-index: 2; }
.banner-crumb { display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: 2px; color: var(--ggray); margin-bottom: 18px; }
.banner-crumb a:hover { color: var(--gold2); }
.banner-crumb i { font-style: normal; opacity: .5; }
.banner-crumb b { color: var(--gold); font-weight: 400; }
.banner-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.2; letter-spacing: 8px;
}
.banner-title .char { display: inline-block; will-change: transform; }
.banner-title.ht-gold .char {
  background: linear-gradient(180deg, #f7e7b0, #e6c96a 45%, #a8842a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.banner-sub { margin-top: 16px; max-width: 640px; color: var(--tea); font-size: 15.5px; }

/* ---------- 首屏（首页） ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 150px 24px 70px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; pointer-events: none; will-change: transform; }
.blob-gold { width: 560px; height: 560px; left: -160px; top: -120px; background: radial-gradient(circle, rgba(212, 175, 55, .34), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.blob-red { width: 520px; height: 520px; right: -140px; bottom: -140px; background: radial-gradient(circle, rgba(194, 70, 50, .28), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(120px, 70px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.08); } to { transform: translate(-110px, -60px) scale(.94); } }

.hero-inner {
  position: relative; width: min(1200px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.eyebrow-v { writing-mode: vertical-rl; font-family: var(--serif); font-size: 15px; letter-spacing: 10px; color: var(--gold); }
.eyebrow-line { width: 1px; height: 52px; background: linear-gradient(180deg, var(--gold), transparent); }
.eyebrow-sub { font-size: 10px; letter-spacing: 4px; color: var(--ggray); writing-mode: vertical-rl; }
.hero-title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.22; letter-spacing: 6px; }
.ht-line { display: block; }
.ht-line .char { display: inline-block; will-change: transform; }
.ht-gold .char {
  background: linear-gradient(180deg, #f7e7b0, #e6c96a 45%, #a8842a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 22px 0 32px; max-width: 520px; color: var(--tea); font-size: 16px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 4px; color: var(--ggray);
}
.hero-scroll i { width: 1px; height: 44px; background: linear-gradient(180deg, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

.hero-visual { position: relative; }
.hero-imgwrap {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: var(--shadow), 0 0 60px rgba(212, 175, 55, .08);
}
.hero-imgwrap img { width: 100%; aspect-ratio: 16 / 10.4; object-fit: cover; }
.hero-imgwrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(11, 10, 8, 0) 55%, rgba(11, 10, 8, .5)); pointer-events: none; }
.hero-taiji {
  position: absolute; left: -34px; bottom: -34px; z-index: 3;
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(90deg, #f2ead8 50%, #0b0a08 50%);
  border: 2px solid var(--gold); box-shadow: 0 10px 34px rgba(0, 0, 0, .6), 0 0 26px rgba(212, 175, 55, .25);
  animation: spinYin 26s linear infinite;
}
.hero-taiji::before, .hero-taiji::after { content: ""; position: absolute; left: 25%; width: 50%; height: 50%; border-radius: 50%; }
.hero-taiji::before { top: 0; background: #0b0a08; }
.hero-taiji::after { bottom: 0; background: #f2ead8; }
@keyframes spinYin { to { transform: rotate(360deg); } }

/* ---------- 跑马灯 ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(18, 16, 12, .5); overflow: hidden; padding: 15px 0;
}
.ticker-track { display: flex; gap: 0; width: max-content; animation: tick 36s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 22px; padding: 0 22px;
  font-family: var(--serif); font-size: 16px; letter-spacing: 6px; color: var(--tea);
  white-space: nowrap;
}
.ticker-item::after { content: "◆"; font-size: 8px; color: rgba(212, 175, 55, .55); letter-spacing: 0; }

/* ---------- 数据统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  position: relative; text-align: center; padding: 34px 16px 28px;
  border: 1px solid var(--line); border-radius: var(--rad);
  background: linear-gradient(180deg, rgba(26, 23, 18, .6), rgba(18, 16, 12, .3));
  overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .6), transparent); }
.stat-num { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; }
.stat-label { margin-top: 6px; font-size: 13px; letter-spacing: 3px; color: var(--ggray); }

/* ---------- 区块 ---------- */
.sec { padding: 96px 0; position: relative; }
.sec-tight { padding: 64px 0; }
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 5px; color: var(--gold); margin-bottom: 14px; }
.sec-eyebrow::before, .sec-eyebrow::after { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.sec-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: 4px; line-height: 1.3; }
.sec-sub { margin-top: 14px; color: var(--tea); font-size: 15px; }
.sec-more { text-align: center; margin-top: 44px; }

/* ---------- 筛选 ---------- */
.chipbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
  padding: 8px 20px; border-radius: 999px; font-size: 13.5px; letter-spacing: 2px;
  border: 1px solid var(--line); color: var(--tea); background: rgba(26, 23, 18, .4);
  transition: transform .25s var(--ease), color .25s, border-color .25s, background .25s, box-shadow .25s;
}
.chip:hover { transform: translateY(-2px); color: var(--gold2); border-color: var(--line2); }
.chip.active {
  color: #1b1508; font-weight: 600;
  background: linear-gradient(135deg, #e8cd7a, #c9a338);
  border-color: transparent; box-shadow: 0 6px 20px rgba(212, 175, 55, .3);
}
.searchbar {
  display: flex; align-items: center; gap: 10px;
  width: min(460px, 100%); margin: 0 auto 40px; padding: 12px 20px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(18, 16, 12, .6);
  transition: border-color .3s, box-shadow .3s;
}
.searchbar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .12); }
.searchbar i { font-style: normal; color: var(--gold); font-size: 15px; }
.searchbar input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--paper); font-size: 14.5px; letter-spacing: 1px; font-family: inherit;
}
.searchbar input::placeholder { color: var(--ggray); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 卡片 ---------- */
.card {
  position: relative; border-radius: var(--rad); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 23, 18, .72), rgba(16, 14, 10, .55));
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line2); box-shadow: var(--shadow); }
.card-img { position: relative; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); will-change: transform; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 8, .55)); pointer-events: none; }
.card-body { padding: 20px 22px 22px; }
.card-cat {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: 2px; color: var(--gold2);
  border: 1px solid rgba(212, 175, 55, .35); background: rgba(212, 175, 55, .07);
  margin-bottom: 10px;
}
.card-title { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 2px; color: var(--paper); }
.card-text { margin-top: 8px; font-size: 13.5px; color: var(--tea); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 6px; font-size: 12.5px; letter-spacing: 1px; color: var(--ggray); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.card-use { font-size: 12.5px; color: var(--gold); letter-spacing: 1px; }
/* flex 列容器内的分类徽章不被拉伸为通栏 */
.gilt-in > .card-cat { align-self: flex-start; }

/* ---------- 流光描边卡（hover 激活，transform 旋转） ---------- */
.gilt { position: relative; border-radius: var(--rad); overflow: hidden; border: 1px solid var(--line); background: var(--ink2); isolation: isolate; }
.gilt::before {
  content: ""; position: absolute; z-index: -1; inset: -80%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 295deg, rgba(240, 217, 140, .95) 335deg, transparent 360deg);
  animation: giltspin 4.5s linear infinite paused;
  will-change: transform;
}
.gilt:hover::before { animation-play-state: running; }
.gilt::after { content: ""; position: absolute; z-index: -1; inset: 1.2px; border-radius: calc(var(--rad) - 1.2px); background: linear-gradient(180deg, #17140e, #100e09); transition: background .4s; }
.gilt:hover { border-color: rgba(212, 175, 55, .4); }
@keyframes giltspin { to { transform: rotate(360deg); } }
.gilt-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }

/* ---------- 3D 斜置 ---------- */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .22s var(--ease); will-change: transform; }
.tilt.flat { transition: transform .5s var(--ease); }

/* ---------- 滚动浮现 ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: transform, opacity; }
.reveal.on { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- 玉皇钱 · 祭祀代烧 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.svc-in { display: flex; flex-direction: column; height: 100%; padding: 0 !important; overflow: hidden; }
.svc-img { position: relative; overflow: hidden; aspect-ratio: 16 / 8; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); will-change: transform; }
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.svc-points { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 8px; }
.svc-points li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--tea); letter-spacing: .5px; }
.svc-points li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 12px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- 首页导流卡 ---------- */
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.portal-card { padding: 30px 26px 26px; min-height: 250px; }
.portal-card .p-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.portal-card .p-num { font-family: var(--serif); font-size: 13px; letter-spacing: 2px; color: var(--ggray); }
.portal-card .p-icon {
  width: 56px; height: 56px; border-radius: 16px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; color: var(--gold2);
  border: 1px solid rgba(212, 175, 55, .3);
  background: radial-gradient(circle at 30% 25%, rgba(212, 175, 55, .18), rgba(212, 175, 55, .03));
  box-shadow: inset 0 0 20px rgba(212, 175, 55, .06);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.portal-card:hover .p-icon { transform: rotate(-6deg) scale(1.08); box-shadow: 0 8px 26px rgba(212, 175, 55, .22); }
.portal-card .p-title { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 3px; }
.portal-card .p-text { margin-top: 10px; font-size: 13px; color: var(--tea); flex: 1; }
.portal-card .p-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 12.5px; letter-spacing: 3px; color: var(--gold);
  transition: transform .3s var(--ease), color .3s;
}
.portal-card:hover .p-arrow { transform: translateX(6px); color: var(--gold2); }

/* ---------- 首页 CTA ---------- */
.home-cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 70px 40px; border-radius: calc(var(--rad) + 6px);
  border: 1px solid var(--line2);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(212, 175, 55, .16), transparent 65%),
    linear-gradient(180deg, #191510, #0f0d09);
}
.home-cta::before, .home-cta::after {
  content: "道"; position: absolute; font-family: var(--serif); font-size: 220px; line-height: 1;
  color: rgba(212, 175, 55, .05); pointer-events: none;
}
.home-cta::before { left: -20px; top: -50px; }
.home-cta::after { right: -20px; bottom: -70px; }
.home-cta h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: 5px; }
.home-cta p { margin: 14px auto 28px; max-width: 560px; color: var(--tea); font-size: 14.5px; }

/* ---------- 每日一签 ---------- */
.fortune-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: stretch; }
.fortune-stage {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 46px 30px; border-radius: var(--rad);
  border: 1px solid var(--line2); overflow: hidden;
  background:
    radial-gradient(400px 300px at 50% 0%, rgba(212, 175, 55, .12), transparent 70%),
    linear-gradient(180deg, #17140e, #0f0d09);
}
.fortune-stage .tube {
  width: 120px; height: 168px; border-radius: 18px 18px 26px 26px;
  border: 2px solid rgba(212, 175, 55, .5);
  background: linear-gradient(180deg, #3a2c17, #241b0d);
  box-shadow: inset 0 -14px 30px rgba(0, 0, 0, .5), 0 14px 40px rgba(0, 0, 0, .45);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.fortune-stage .tube::before {
  content: "簽"; font-family: var(--serif); font-size: 44px; color: var(--gold2);
  text-shadow: 0 0 18px rgba(240, 217, 140, .5);
}
.fortune-stage .tube::after {
  content: ""; position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 34px; background: linear-gradient(180deg, transparent, rgba(240, 217, 140, .7));
}
.fortune-stage .tube.shaking { animation: shake .5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-7deg) translateY(-3px); }
  75% { transform: rotate(7deg) translateY(-3px); }
}
.qian-card {
  position: relative; padding: 40px 44px; border-radius: var(--rad);
  border: 1px solid rgba(212, 175, 55, .4);
  background: linear-gradient(160deg, rgba(38, 30, 16, .85), rgba(20, 17, 11, .9));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .1), var(--shadow);
  display: flex; flex-direction: column; justify-content: center;
}
.qian-card.empty { align-items: center; justify-content: center; text-align: center; color: var(--ggray); border-style: dashed; }
.qian-level {
  position: absolute; top: -16px; left: 36px;
  padding: 6px 16px; border-radius: 8px;
  font-family: var(--serif); font-size: 15px; letter-spacing: 3px;
  background: linear-gradient(150deg, #d8573f, #a83822); color: #fff7ea;
  box-shadow: 0 4px 16px rgba(194, 70, 50, .5), inset 0 0 0 1.5px rgba(255, 247, 234, .5);
}
.qian-poem { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: 4px; line-height: 1.9; }
.qian-explain { margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(212, 175, 55, .25); color: var(--tea); font-size: 14.5px; }
.qian-tip { margin-top: 14px; font-size: 12px; letter-spacing: 2px; color: var(--ggray); }

/* ---------- 占卜服务 ---------- */
.div-card { padding: 28px 26px; }
.div-icon {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 23px; font-weight: 700;
  color: #fff7ea; background: linear-gradient(150deg, #d8573f, #8f2f1d);
  box-shadow: 0 6px 18px rgba(194, 70, 50, .4), inset 0 0 0 1.5px rgba(255, 247, 234, .4);
}
.div-card h3 { margin-top: 18px; font-family: var(--serif); font-size: 21px; letter-spacing: 3px; }
.div-card p { margin-top: 8px; font-size: 13.5px; color: var(--tea); flex: 1; }
.div-card .btn { margin-top: 18px; align-self: flex-start; }

/* ---------- 六十四卦 ---------- */
.gua-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.gua {
  padding: 16px 8px 14px; border-radius: 14px; text-align: center;
  border: 1px solid var(--line); background: rgba(20, 17, 12, .55);
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.gua:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, .5); background: rgba(30, 25, 16, .7); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.gua-sym { font-size: 21px; letter-spacing: 3px; color: var(--gold2); line-height: 1.2; text-shadow: 0 0 14px rgba(212, 175, 55, .35); }
.gua-name { margin-top: 7px; font-family: var(--serif); font-size: 13.5px; letter-spacing: 1px; color: var(--paper); white-space: nowrap; }
.gua-id { margin-top: 2px; font-size: 10px; color: var(--ggray); letter-spacing: 1px; }

/* ---------- 风水特写 ---------- */
.fs-feature {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  border-radius: calc(var(--rad) + 4px); overflow: hidden;
  border: 1px solid var(--line2); margin-bottom: 60px; background: var(--ink2);
}
.fs-feature-img { position: relative; min-height: 340px; }
.fs-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fs-feature-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(18, 16, 12, .9)); }
.fs-feature-body { padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.fs-feature-body h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 3px; }
.fs-feature-body p { margin-top: 14px; color: var(--tea); font-size: 14.5px; }
.fs-feature-body .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- 印章卡 ---------- */
.seal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.seal-card { display: flex; gap: 20px; padding: 24px; align-items: flex-start; }
.seal-img {
  width: 92px; height: 92px; border-radius: 14px; overflow: hidden; flex: none;
  border: 1px solid rgba(212, 175, 55, .35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.seal-img img { width: 100%; height: 100%; object-fit: cover; }
.seal-card h3 { font-family: var(--serif); font-size: 19px; letter-spacing: 2px; }
.seal-card .card-cat { margin: 8px 0; }
.seal-card p { font-size: 13px; color: var(--tea); }

/* ---------- 典籍 ---------- */
.book-card { display: flex; flex-direction: column; }
.book-cover { position: relative; overflow: hidden; }
.book-cover img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform .7s var(--ease); will-change: transform; }
.book-card:hover .book-cover img { transform: scale(1.06); }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 10, 8, .65)); pointer-events: none; }
.book-meta { font-size: 12px; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }
.book-meta i { font-style: normal; opacity: .6; margin: 0 6px; }

/* ---------- 名录 ---------- */
.filter-row { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 44px; }
.master-card { padding: 26px; display: flex; flex-direction: column; }
.m-top { display: flex; gap: 18px; align-items: center; }
.m-avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none;
  border: 2px solid rgba(212, 175, 55, .5);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .08), 0 8px 22px rgba(0, 0, 0, .5);
}
.m-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-idb { min-width: 0; }
.m-type {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: 2px; margin-bottom: 6px;
}
.m-type.t-doaoist, .m-type.t-daozhang { color: var(--gold2); border: 1px solid rgba(212, 175, 55, .45); background: rgba(212, 175, 55, .1); }
.m-type.t-shanxin { color: #ffb9a6; border: 1px solid rgba(194, 70, 50, .5); background: rgba(194, 70, 50, .12); }
.m-name { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: 2px; }
.m-name em { font-style: normal; font-size: 13px; color: var(--ggray); letter-spacing: 1px; margin-left: 8px; }
.m-level { font-size: 12.5px; color: var(--gold); letter-spacing: 1px; margin-top: 3px; }
.m-sect { font-size: 12.5px; color: var(--ggray); letter-spacing: 1px; margin-top: 2px; }
.m-skills { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.m-skills span {
  padding: 3px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 1px;
  color: var(--tea); border: 1px solid var(--line); background: rgba(212, 175, 55, .05);
}
.m-desc { margin-top: 14px; font-size: 13.5px; color: var(--tea); border-top: 1px dashed rgba(212, 175, 55, .2); padding-top: 14px; }

/* ---------- 结缘页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.c-card { padding: 30px 26px; text-align: center; }
.c-icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 24px; color: var(--gold2);
  border: 1px solid rgba(212, 175, 55, .35);
  background: radial-gradient(circle at 32% 26%, rgba(212, 175, 55, .18), rgba(212, 175, 55, .03));
}
.c-label { font-size: 12px; letter-spacing: 3px; color: var(--ggray); }
.c-val { margin-top: 8px; font-family: var(--serif); font-size: 19px; letter-spacing: 1px; color: var(--paper); word-break: break-all; }
.qr-big {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center;
  padding: 50px; border-radius: calc(var(--rad) + 4px);
  border: 1px solid var(--line2);
  background:
    radial-gradient(500px 280px at 20% 20%, rgba(212, 175, 55, .12), transparent 65%),
    linear-gradient(180deg, #17140e, #0e0c08);
}
.qr-big-frame {
  position: relative; width: min(300px, 100%); margin: 0 auto; padding: 14px;
  border-radius: 20px; border: 1px solid rgba(212, 175, 55, .5);
  background: #f2ead8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 50px rgba(212, 175, 55, .15);
}
.qr-big-frame img { border-radius: 10px; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.qr-big-frame::after {
  content: "靜盟庐"; position: absolute; right: -16px; top: -16px;
  width: 56px; height: 56px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #d8573f, #a83822);
  color: #fff7ea; font-family: var(--serif); font-size: 14px; letter-spacing: 1px; line-height: 1.2; text-align: center;
  box-shadow: 0 6px 18px rgba(194, 70, 50, .5), inset 0 0 0 1.5px rgba(255, 247, 234, .5);
  writing-mode: vertical-rl;
}
.qr-big-info h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: 4px; }
.qr-big-info p { margin-top: 14px; color: var(--tea); font-size: 15px; max-width: 460px; }
.qr-big-info .qr-steps { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.qr-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--tea); }
.qr-steps b {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #1b1508; background: linear-gradient(135deg, #e8cd7a, #c9a338);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden;
  background: rgba(20, 17, 12, .5); transition: border-color .3s;
}
.faq-item.open { border-color: rgba(212, 175, 55, .45); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left;
  font-family: var(--serif); font-size: 16.5px; letter-spacing: 1.5px; color: var(--paper);
}
.faq-q i {
  font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gold2); border: 1px solid rgba(212, 175, 55, .4);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--gold); color: #1b1508; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; font-size: 14px; color: var(--tea); }

/* ---------- 免责声明 ---------- */
.disclaimer {
  max-width: 820px; margin: 0 auto; padding: 24px 28px;
  border: 1px dashed rgba(212, 175, 55, .3); border-radius: var(--rad);
  background: rgba(212, 175, 55, .04);
  font-size: 13px; color: var(--ggray); line-height: 1.9;
}
.disclaimer b { color: var(--gold); letter-spacing: 2px; font-weight: 400; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none !important; }
.modal-mask { position: absolute; inset: 0; background: rgba(5, 4, 3, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box {
  position: relative; z-index: 2; width: min(520px, 100%);
  max-height: calc(100vh - 60px); overflow-y: auto;
  padding: 40px 38px 34px; border-radius: calc(var(--rad) + 4px);
  border: 1px solid rgba(212, 175, 55, .4);
  background: linear-gradient(170deg, #1c1810, #100e09);
  box-shadow: var(--shadow), 0 0 60px rgba(212, 175, 55, .08);
  animation: popIn .45s var(--ease);
}
.modal-box.wide { width: min(680px, 100%); }
@keyframes popIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line2); color: var(--tea); font-size: 14px;
  transition: transform .3s var(--ease), color .3s, border-color .3s;
}
.modal-close:hover { transform: rotate(90deg); color: var(--gold2); border-color: var(--gold); }
.md-cat { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: 2px; color: var(--gold2); border: 1px solid rgba(212, 175, 55, .35); background: rgba(212, 175, 55, .07); margin-bottom: 12px; }
.md-title { font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: 3px; }
.md-quote { margin: 14px 0 0; padding: 12px 18px; border-left: 2px solid var(--gold); background: rgba(212, 175, 55, .05); font-family: var(--serif); font-size: 15px; letter-spacing: 1px; color: var(--gold2); border-radius: 0 10px 10px 0; }
.md-text { margin-top: 16px; font-size: 14.5px; color: var(--tea); line-height: 1.95; }
.md-row { margin-top: 12px; font-size: 13px; color: var(--ggray); letter-spacing: 1px; }
.md-row b { color: var(--gold); font-weight: 400; }

/* ---------- 扫码获取弹窗 ---------- */
.qr-box { text-align: center; }
.qr-seal {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #d8573f, #a83822);
  color: #fff7ea; font-family: var(--serif); font-size: 17px; letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(194, 70, 50, .5), inset 0 0 0 1.5px rgba(255, 247, 234, .55);
}
.qr-title { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 4px; }
.qr-desc { margin: 10px auto 22px; max-width: 360px; font-size: 13.5px; color: var(--tea); }
.qr-frame {
  width: min(250px, 80%); margin: 0 auto; padding: 12px;
  border-radius: 16px; background: #f2ead8;
  border: 1px solid rgba(212, 175, 55, .5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(212, 175, 55, .12);
}
.qr-frame img { border-radius: 8px; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.qr-tip { margin-top: 16px; font-size: 12px; letter-spacing: 2px; color: var(--ggray); }

/* ---------- 页脚 ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(16, 14, 10, .6), rgba(9, 8, 6, .9)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr .8fr; gap: 40px; padding: 64px 0 46px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo b { font-family: var(--serif); font-size: 21px; letter-spacing: 4px; }
.footer-brand p { font-size: 13.5px; color: var(--tea); max-width: 340px; }
.footer-meta { margin-top: 16px; font-size: 12.5px; color: var(--ggray) !important; line-height: 2 !important; }
.footer-col h4 { font-family: var(--serif); font-size: 15px; letter-spacing: 3px; color: var(--gold); margin-bottom: 18px; font-weight: 400; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: var(--tea); padding: 5px 0; transition: color .25s, transform .25s var(--ease); }
.footer-col a:hover { color: var(--gold2); transform: translateX(4px); }
.footer-qr img {
  width: 130px; height: 130px; object-fit: cover; border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .4); background: #f2ead8; padding: 6px;
}
.footer-qr span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 2px; color: var(--ggray); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ggray); letter-spacing: 1px; }

/* ---------- 动画关键帧 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .9s var(--ease) both; }
@keyframes charIn { from { opacity: 0; transform: translateY(26px) rotate(4deg); } to { opacity: 1; transform: none; } }

/* ---------- 降级与响应式 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .veil { display: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1120px) {
  .gua-grid { grid-template-columns: repeat(6, 1fr); }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr .8fr 1fr .8fr; }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 76px; left: 16px; right: 16px; z-index: 79;
    flex-direction: column; gap: 4px; padding: 14px;
    border-radius: 20px; border: 1px solid var(--line2);
    background: rgba(13, 11, 9, .96);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 12px 16px; font-size: 15px; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .hero-inner, .fortune-wrap, .fs-feature, .qr-big { grid-template-columns: 1fr; }
  .fs-feature-img { min-height: 240px; }
  .fs-feature-img::after { background: linear-gradient(180deg, transparent 40%, rgba(18, 16, 12, .95)); }
  .g3, .g4, .seal-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gua-grid { grid-template-columns: repeat(5, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .banner { padding: 140px 24px 56px; }
  .banner-taiji { right: -160px; opacity: .5; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .sec { padding: 68px 0; }
  .g2, .g3, .g4, .seal-grid, .contact-grid { grid-template-columns: 1fr; }
  .gua-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-visual { margin-top: 10px; }
  .hero-taiji { width: 64px; height: 64px; left: -16px; bottom: -16px; }
  .qian-card { padding: 32px 26px; }
  .modal-box { padding: 32px 24px 28px; }
  .qr-big { padding: 34px 24px; }
  .backtop { right: 14px; bottom: 18px; }
}
