/* =========================================================
   玄机盘 · 首页封面与内容区块（精装版）
   ========================================================= */

/* ---------- 基础 ---------- */
html, body { overflow-x: hidden; }
body { min-width: 320px; }

/* ---------- 封面舞台 ---------- */
.hero {
  position: relative;
  padding: 118px 0 0;
  overflow: hidden;
  background:
    radial-gradient(1100px 760px at 12% -8%, #2b2318 0%, transparent 58%),
    radial-gradient(900px 700px at 88% 6%, #1b2530 0%, transparent 55%),
    radial-gradient(760px 520px at 50% 108%, #241a13 0%, transparent 62%),
    linear-gradient(165deg, #12100d 0%, #0d0b09 55%, #080706 100%);
}


.hero-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-stage .grid-lines {
  position: absolute; inset: -10% -10% 0;
  background-image:
    linear-gradient(rgba(200, 164, 92, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 92, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(820px 560px at 26% 30%, #000 0%, transparent 76%);
  mask-image: radial-gradient(820px 560px at 26% 30%, #000 0%, transparent 76%);
}
.hero-stage .ink {
  position: absolute; border-radius: 50%;
  filter: blur(46px); opacity: 0.55; mix-blend-mode: screen;
}
.hero-stage .ink.i1 { width: 460px; height: 320px; left: -90px; top: 8%; background: radial-gradient(circle, rgba(200,164,92,.20), transparent 70%); animation: drift 28s ease-in-out infinite; }
.hero-stage .ink.i2 { width: 520px; height: 380px; right: -140px; top: 36%; background: radial-gradient(circle, rgba(112,86,46,.22), transparent 70%); animation: drift 36s ease-in-out infinite reverse; }
.hero-stage .ink.i3 { width: 360px; height: 360px; left: 38%; bottom: -150px; background: radial-gradient(circle, rgba(176,58,46,.14), transparent 70%); animation: drift 32s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(20px,-26px,0) scale(1.07); }
}

.hero-stage .arcs { position: absolute; border-radius: 50%; border: 1px solid rgba(200,164,92,.16); }
.hero-stage .arcs.a1 { width: 1320px; height: 1320px; left: -520px; top: -600px; border-color: rgba(200,164,92,.14) transparent transparent transparent; transform: rotate(24deg); }
.hero-stage .arcs.a2 { width: 1600px; height: 1600px; right: -880px; bottom: -940px; border-color: rgba(200,164,92,.09) transparent transparent transparent; transform: rotate(168deg); }

.hero-stage .beam {
  position: absolute; inset: -20% -10%;
  background: linear-gradient(112deg, transparent 38%, rgba(255,236,190,.05) 47%, rgba(255,236,190,.018) 53%, transparent 62%);
  animation: beamMove 16s ease-in-out infinite; mix-blend-mode: screen;
}
@keyframes beamMove {
  0%, 100% { transform: translateX(-5%); opacity: .7; }
  50% { transform: translateX(5%); opacity: 1; }
}

.hero-stage .grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.32'/></svg>");
}
.hero-stage .sparks i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(255,236,190,.9);
  box-shadow: 0 0 8px rgba(255,214,140,.8);
  opacity: 0; animation: twinkle var(--d,6s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.6); }
  45% { opacity: .9; transform: scale(1); }
}

/* 背景浑天仪 */
.hero-stage .instrument {
  position: absolute;
  width: clamp(360px, 40vw, 620px);
  height: clamp(360px, 40vw, 620px);
  left: 27%;
  top: 40%;
  transform: translate(-50%, -50%);
  opacity: .26;
  -webkit-mask-image: radial-gradient(circle, transparent 22%, #000 40%, #000 72%, transparent 90%);
  mask-image: radial-gradient(circle, transparent 22%, #000 40%, #000 72%, transparent 90%);
}
.hero-stage .instrument canvas { width: 100%; height: 100%; display: block; }

/* ---------- 封面内容 ---------- */
.hero-wrap { position: relative; z-index: 3; }
.hero-left { position: relative; }
.hero-left::before {
  content: "";
  position: absolute;
  left: -60px; top: -40px; right: -20px; bottom: -30px;
  background: radial-gradient(60% 60% at 30% 40%, rgba(10, 8, 6, 0.55), transparent 72%);
  pointer-events: none;
  z-index: -1;
  border-radius: 40px;
}
.hero-topline {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.ht-chip {
  font-size: 10.5px; letter-spacing: .12em; color: rgba(243,234,214,.72);
  border: 1px solid rgba(200,164,92,.3); border-radius: 99px;
  padding: 4px 11px; background: rgba(200,164,92,.06);
}
.ht-today {
  margin-left: auto;
  font-size: 10.5px; letter-spacing: .1em; color: rgba(243,234,214,.45);
  display: inline-flex; align-items: center; gap: 7px;
}
.ht-today i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #7fc59b; box-shadow: 0 0 9px rgba(127,197,155,.85);
}

.hero-kicker {
  font-size: 10.5px; letter-spacing: .34em; color: var(--gold);
  margin: 0 0 16px; text-transform: uppercase;
}
.hero h1 {
  position: relative;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.16;
  letter-spacing: .01em;
  color: transparent;
  background: linear-gradient(96deg, #fffaf0 6%, #f3e4c0 34%, #d8b76a 60%, #fdf6e6 92%);
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 8px;
  text-shadow: 0 20px 56px rgba(0,0,0,.5);
}
.hero h1 span { position: relative; }
.hero h1 span::after {
  content: "";
  position: absolute; left: 0; right: 6%; bottom: 2px; height: 6px;
  background: linear-gradient(90deg, rgba(200,164,92,.55), transparent);
  border-radius: 99px; z-index: -1;
}
.hero-sub {
  max-width: 30em; margin: 18px 0 0;
  font-size: 14px; line-height: 1.95; color: rgba(243,234,214,.62);
}
.hero-sub b { color: #ecd8a8; font-weight: 600; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  background: linear-gradient(150deg, #d8b76a, #b8913f 60%, #9a742c);
  color: #201709; font-weight: 700; font-size: 14px; letter-spacing: .04em;
  border: 1px solid rgba(255,244,214,.5);
  box-shadow: 0 12px 30px rgba(184,145,63,.28), inset 0 1px 0 rgba(255,246,220,.55);
  text-decoration: none; transition: .2s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(184,145,63,.36), inset 0 1px 0 rgba(255,246,220,.6); }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  border: 1px solid rgba(200,164,92,.45);
  color: #ecd8a8; font-size: 13.5px; text-decoration: none;
  background: rgba(200,164,92,.05); transition: .2s;
}
.btn-line:hover { border-color: rgba(214,183,120,.8); background: rgba(200,164,92,.12); }

.hero-feats { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.hero-feats span {
  font-size: 11px; color: rgba(243,234,214,.55); letter-spacing: .06em;
  padding: 5px 10px; border-radius: 7px;
  background: rgba(255,250,236,.04);
  border: 1px solid rgba(200,164,92,.14);
}
.hero-feats span b { color: #e8c98a; font-weight: 600; margin-right: 4px; }

.hero-meta {
  display: flex; gap: 30px; flex-wrap: wrap;
  margin: 26px 0 0; padding: 18px 0 0;
  border-top: 1px solid rgba(200,164,92,.16);
}
.hero-meta .hm { display: flex; flex-direction: column; gap: 3px; }
.hero-meta .hm b {
  font-family: var(--serif); font-size: 24px; line-height: 1; color: #ecd8a8; font-weight: 700;
}
.hero-meta .hm span { font-size: 10px; letter-spacing: .14em; color: rgba(243,234,214,.34); }

/* 封面底部：今日速览 */
.hero-strip {
  position: relative; z-index: 3;
  margin-top: 42px;
  margin-bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(200,164,92,.16);
  border-bottom: 1px solid rgba(200,164,92,.1);
  background: linear-gradient(180deg, rgba(255,250,236,.035), rgba(255,250,236,.01));
}
.hero-strip .hs {
  padding: 16px 18px;
  border-right: 1px solid rgba(200,164,92,.1);
}
.hero-strip .hs:last-child { border-right: none; }
.hero-strip .hs .k { font-size: 9.5px; letter-spacing: .18em; color: rgba(243,234,214,.32); margin-bottom: 5px; }
.hero-strip .hs .v { font-size: 13px; color: #ecdfc2; font-family: var(--serif); letter-spacing: .04em; }
.hero-strip .hs .v em { font-style: normal; color: #d8b76a; }

/* ---------- 表单卡片精修 ---------- */
.hero-right .form {
  background:
    linear-gradient(#fffdf8, #fffdf8) padding-box,
    linear-gradient(150deg, rgba(214,183,120,.7), rgba(214,183,120,.15) 42%, rgba(214,183,120,.5)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 38px 90px rgba(0,0,0,.55),
    0 1px 0 rgba(255,255,255,.6) inset,
    0 -26px 60px rgba(214,183,120,.05) inset;
  border-radius: 20px;
}
.hero-right .form::before {
  content: "";
  position: absolute; left: 26px; right: 26px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,246,220,.95), transparent);
}
.hero-right .form-head h2 { letter-spacing: .02em; }
.hero-right .field > label { letter-spacing: .06em; }
.hero-right .btn-main { border-radius: 11px; letter-spacing: .1em; }

/* ---------- 功能矩阵 ---------- */
.features-section { background: linear-gradient(180deg, var(--paper-2), var(--paper)); scroll-margin-top: 84px; }
#howto, #faq, #glossary { scroll-margin-top: 84px; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cap {
  position: relative;
  display: block;
  padding: 20px 20px 18px;
  border-radius: 14px;
  background: #fffdf8;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: .22s;
  overflow: hidden;
}
.cap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(214,183,120,.14) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .7s;
}
.cap:hover { transform: translateY(-3px); border-color: rgba(184,145,63,.5); box-shadow: 0 18px 40px rgba(40,30,10,.12); }
.cap:hover::after { transform: translateX(120%); }
.cap .c-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(184,145,63,.16), rgba(184,145,63,.05));
  border: 1px solid rgba(184,145,63,.3);
  color: var(--gold); font-family: var(--serif); font-size: 15px;
  margin-bottom: 12px;
}
.cap h3 { font-size: 15px; margin: 0 0 5px; letter-spacing: .02em; }
.cap p { font-size: 11.5px; line-height: 1.7; color: var(--text-3); margin: 0; }
.cap .c-arrow {
  position: absolute; right: 16px; top: 18px;
  color: var(--line-2); font-size: 13px; transition: .2s;
}
.cap:hover .c-arrow { color: var(--gold); transform: translateX(3px); }

/* ---------- 四步入门 ---------- */
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 20px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px dashed var(--line); }
.step .s-no {
  font-family: var(--serif); font-size: 12px; color: var(--gold);
  letter-spacing: .2em; margin-bottom: 8px;
}
.step h4 { font-size: 15px; margin: 0 0 7px; }
.step p { font-size: 11.5px; line-height: 1.75; color: var(--text-3); margin: 0; }
.step::after {
  content: "→";
  position: absolute; right: 4px; top: 2px;
  color: var(--line-2); font-size: 13px;
}
.step:last-child::after { display: none; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  font-family: var(--serif);
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(184,145,63,.45);
  border-radius: 5px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  flex: none;
}
.faq-item summary::after {
  content: "+";
  margin-left: auto; color: var(--gold); font-size: 17px; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 18px 16px 48px;
  font-size: 12.5px; line-height: 1.9; color: var(--text-2);
}
.faq-item .faq-a a { color: var(--gold); }

/* ---------- 术语表 ---------- */
.gloss { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.gloss div {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--paper-3);
}
.gloss dt { font-family: var(--serif); font-size: 13.5px; color: var(--gold); font-weight: 700; }
.gloss dd { margin: 0; font-size: 12px; line-height: 1.75; color: var(--text-3); }

/* ---------- 联系我 ---------- */
.contact-band {
  position: relative;
  scroll-margin-top: 84px;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 12% 10%, rgba(200,164,92,.18), transparent 62%),
    linear-gradient(150deg, #17130e, #0d0b09);
  color: #f3ead6;
  padding: 54px 0;
}
.contact-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(200,164,92,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(200,164,92,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(600px 300px at 20% 40%, #000, transparent 75%);
  mask-image: radial-gradient(600px 300px at 20% 40%, #000, transparent 75%);
}
.contact-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.contact-band h2 { font-size: clamp(22px, 2.6vw, 30px); color: #fbf5e6; margin: 0 0 8px; }
.contact-band p { margin: 0; font-size: 12.5px; color: rgba(243,234,214,.55); line-height: 1.8; max-width: 46ch; }
.contact-band .cb-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cb-qr {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 12px 9px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid rgba(200, 164, 92, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.cb-qr img {
  width: 88px; height: 88px; border-radius: 8px; display: block;
  background: #fff;
}
.cb-qr span {
  font-size: 10.5px; color: var(--text-2); letter-spacing: .08em; white-space: nowrap;
}

/* 悬浮微信按钮 */
.float-wx {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-radius: 99px;
  background: linear-gradient(150deg, #2e9c5f, #1f7a49);
  color: #fff; font-size: 12.5px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(20, 80, 50, .4), inset 0 1px 0 rgba(255,255,255,.25);
  transition: .2s;
}
.float-wx:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(20,80,50,.5); }
.float-wx.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.float-wx .fw-ico { font-size: 14px; }

/* ---------- 联系页 ---------- */
.contact-main { padding: 92px 0 60px; background: var(--paper); min-height: 70vh; }
.contact-head { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.contact-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 12px 0 10px; }
.contact-head p { font-size: 13px; color: var(--text-2); line-height: 1.9; margin: 0; }
.wx-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.wx-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.qr-box {
  width: 236px; height: 236px; margin: 0 auto 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 10px;
  display: grid; place-items: center;
  box-shadow: inset 0 0 24px rgba(184,145,63,.06);
}
.qr-box img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.wx-name { font-family: var(--serif); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.wx-tip { font-size: 11.5px; color: var(--text-3); margin-bottom: 16px; }
.wx-id {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--paper);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.wx-id .id-k { font-size: 10.5px; color: var(--text-3); letter-spacing: .1em; }
.wx-id .id-v { font-family: ui-monospace, Consolas, monospace; font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.copy-btn {
  flex: none; border: 1px solid var(--line-2); background: #fffefb;
  border-radius: 7px; padding: 5px 10px; font-size: 11px; color: var(--text-2); cursor: pointer;
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.wx-actions { display: grid; gap: 8px; }
.wx-actions .btn { width: 100%; }
.wx-steps { background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.wx-steps h2 { font-size: 18px; margin: 0 0 4px; }
.wx-steps > p { font-size: 12px; color: var(--text-3); margin: 0 0 18px; }
.wx-step { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--paper-3); }
.wx-step:last-child { border-bottom: none; }
.wx-step .n {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(184,145,63,.1); border: 1px solid rgba(184,145,63,.35);
  color: var(--gold); font-size: 11px; font-family: var(--serif);
}
.wx-step .t { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.wx-step .d { font-size: 11.5px; line-height: 1.75; color: var(--text-3); }
.wx-alt { margin-top: 16px; font-size: 11.5px; color: var(--text-3); text-align: center; }
.wx-alt a { color: var(--gold); }

.nav-home {
  display: none;
  padding: 7px 12px;
  border: 1px solid rgba(200, 164, 92, 0.4);
  border-radius: 8px;
  color: rgba(243, 234, 214, 0.78);
  font-size: 12px;
  text-decoration: none;
}
.nav-home:hover { color: var(--gold-2); border-color: var(--gold); }

.contact-foot { padding: 22px 0 30px; text-align: center; font-size: 11px; color: var(--text-3); }
.contact-foot a { color: var(--gold); text-decoration: none; }

@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-left: none; }
  .step:nth-child(2)::after, .step:nth-child(4)::after { display: none; }
  .step:nth-child(n+3) { margin-top: 20px; padding-top: 20px; }
  .gloss { grid-template-columns: 1fr; }
  .wx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-top: 100px; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip .hs:nth-child(2) { border-right: none; }
  .hero-strip .hs:nth-child(-n+2) { border-bottom: 1px solid rgba(200,164,92,.1); }
  .cap-grid, .howto { grid-template-columns: 1fr; }
  .step + .step { margin-top: 16px; padding-top: 16px; padding-left: 0; border-left: none; border-top: 1px dashed var(--line); }
  .step::after { display: none; }
  .hero-meta { gap: 20px; }
  .float-wx {
    right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 50px; height: 50px; padding: 0; border-radius: 50%;
    justify-content: center; font-size: 0;
  }
  .float-wx .fw-ico { font-size: 19px; }
  .nav-home { display: inline-block; }
  .contact-main .nav-links { display: none; }
  .cb-qr { width: 100%; justify-content: center; }
  .hero-stage .instrument { display: none; }
}
