/* 每日星座灵签。
 *
 * 基调：夜色、金、朱。整块要「暗」—— 星图只有在暗底上才亮得起来，
 * 而这一块的全部氛围都系于「星在闪」这一件事上。
 * 页面其余部分是纸色的，所以这一块自己带底色，像夜里推开的一扇窗。
 */

/* ⚠ 这一块**必须压得住**。
 *
 * 它原来是 948px 高：首屏是标语，第二屏整屏是它，人要滚到第三屏才看得见
 * 八门收费的东西。于雷原话：「这个免费模块会不会太大了，导致用户不往下拉了，
 * 根本都看不到真正值钱的东西了。」—— 免费模块的作用是**把人留住**，
 * 不是把人挡在收费内容前面。
 *
 * 现在的分寸：
 *   · 十二宫由 4×3 的大格改成**一横排 12 格**（窄屏 6×2），星图缩到 56px
 *   · 说明文字砍到一行
 *   · 整块压到 ~360px，抽完签才长高（那时人已经被留住了，长多高都行）
 */
.lq {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.5rem 1.2rem 1.4rem;
  background: radial-gradient(120% 90% at 50% 0%, #14161f 0%, #0b0c11 62%);
  border: 1px solid #23262f;
  overflow: hidden;
}
/* 底噪：极淡的星尘，让大片暗底不至于「死」 */
.lq::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.30), transparent),
    radial-gradient(1px 1px at 78% 14%, rgba(255,255,255,.22), transparent),
    radial-gradient(1px 1px at 34% 68%, rgba(255,255,255,.18), transparent),
    radial-gradient(1px 1px at 88% 74%, rgba(255,255,255,.24), transparent),
    radial-gradient(1px 1px at 58% 40%, rgba(255,255,255,.16), transparent);
}
.lq > * { position: relative; }

.lq-head { text-align: center; margin-bottom: .95rem; }
.lq-eyebrow {
  font-size: .62rem; letter-spacing: .34em; color: #b08d57;
  text-transform: uppercase; margin: 0 0 .45rem;
}
.lq-title {
  font-family: "Songti SC", "Songti TC", serif; font-weight: 500;
  font-size: clamp(1.3rem, 4.2vw, 1.66rem); color: #ece6da;
  letter-spacing: .1em; margin: 0;
}
.lq-sub {
  margin: .5rem auto 0; max-width: 44rem; font-size: .78rem;
  line-height: 1.75; color: #8d8778;
}
.lq-sub b { color: #b08d57; font-weight: 500; }

/* ── 十二宫选择：一横排 ──
   12 格排成一行，宽屏一眼看全，不占竖向空间。 */
.lq-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px;
  background: #1c1f27; border: 1px solid #1c1f27;
  max-width: 62rem; margin: 0 auto;
}
@media (max-width: 900px) { .lq-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 460px) { .lq-grid { grid-template-columns: repeat(4, 1fr); } }

.lq-cell {
  background: #0d0f14; border: 0; padding: .5rem .18rem .45rem;
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
  gap: .15rem; transition: background .25s; font-family: inherit;
}
.lq-cell:hover { background: #12151c; }
.lq-cell.on { background: #171a23; }
.lq-cell .nm {
  font-size: .64rem; color: #7f7a6d; letter-spacing: .02em;
  font-family: "Songti SC", serif; line-height: 1.3; text-align: center;
  /* ♈–♓ 这批码位系统默认按 emoji 画 —— macOS 上是一排紫粉色圆角方块，
     摆在这套墨金里像贴纸。连同 JS 里那个 U+FE0E 一起，强制走文字字形：
     变成描边的星座符，颜色跟着 color 走。两处缺一不可。 */
  font-variant-emoji: text;
}
.lq-cell.on .nm { color: #d9c49a; }
/* 次与辰是「懂行的人才看」的一层 —— 窄格里塞不下（「鹑首 Chunshou · 未 Wei」
   会折成两行把格子撑高），所以一横排时只在 hover / 选中那一格显示。 */
.lq-cell .zhi {
  font-size: .55rem; color: #4e4c46; letter-spacing: .04em;
  line-height: 1.25; text-align: center;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .25s ease, opacity .25s ease;
}
.lq-cell:hover .zhi, .lq-cell.on .zhi { max-height: 3em; opacity: 1; }
.lq-cell.on .zhi { color: #8a7a5e; }

/* 星图本体 */
.lq-sky { width: 100%; max-width: 56px; aspect-ratio: 1; display: block; }
.lq-st {
  fill: #cfd6e6;
  animation: lq-twinkle 3s ease-in-out infinite;
}
@keyframes lq-twinkle {
  0%, 100% { opacity: .42; }
  50%      { opacity: 1; }
}
/* 连线默认就画出来，只是很暗。
   原来是 dashoffset:60 全藏起来、选中才连 —— 结果十二格全是零散的点，
   一张星座图都认不出来，「十二张真星图」这个卖点等于没做。
   现在：不选时是一张暗着的星图（看得出形状），选中时金线**重画一遍**，
   那一下才是反馈。 */
.lq-ln {
  stroke: #39404f; stroke-width: .6; fill: none; opacity: .75;
}
.lq-cell:hover .lq-ln { stroke: #4d566b; }
.lq-sky.on .lq-ln {
  stroke: #b08d57; stroke-width: .8; opacity: 1;
  stroke-dasharray: 60;
  animation: lq-draw .5s ease-out both;
}
.lq-sky.on .lq-st { fill: #f3e9d2; }
@keyframes lq-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

/* ── 求签按钮 ── */
.lq-go {
  display: block; margin: 1.05rem auto 0; padding: .68rem 2.4rem;
  background: transparent; border: 1px solid #b08d57; color: #d9c49a;
  font-family: "Songti SC", serif; font-size: 1.02rem; letter-spacing: .3em;
  cursor: pointer; transition: .25s;
}
.lq-go:hover:not(:disabled) { background: rgba(176,141,87,.12); }
.lq-go:disabled { opacity: .38; cursor: default; }
.lq-note {
  text-align: center; margin: .8rem auto 0; max-width: 34rem;
  font-size: .74rem; line-height: 1.8; color: #6b6659;
}
/* 「今天已经求过了」必须**看得见**。
   它原来只是签文最底下一行灰字 —— 于雷点了好几个星座都出同一支签，
   完全不知道是被锁住了，只当成算错了（「为什么我选哪个都是大过卦？」）。
   现在提到按钮正下方，加朱色边框。 */
.lq-note.warn {
  color: #d6c7a4; font-size: .78rem;
  border: 1px solid rgba(158,59,50,.55);
  background: rgba(158,59,50,.10);
  padding: .6rem .9rem;
}
.lq-note.warn b { color: #e0b45a; font-weight: 500; }

/* ── 签筒 ──
   筒和签都由案头的 wuxing.js 出（实拍图 + wx-shake/wx-pull/wx-word），
   样式跟着它走，这里只给它一个落脚的台子。
   原来这里有一整套 .lq-tube/.lq-body/.lq-knot… 的矢量竹筒样式，
   连同那个 SVG 一起删了 —— 那是案头 v2，于雷说过「太动画了」。 */
.lq-stage { text-align: center; }
.lq-stage:empty { display: none; }

/* ── 签文 ── */
.lq-slipbox {
  max-width: 30rem; margin: 1.6rem auto 0; padding: 1.8rem 1.5rem 1.6rem;
  background: linear-gradient(180deg, #f3ece0 0%, #eae0d0 100%);
  border: 1px solid #c9b489; position: relative;
  box-shadow: 0 14px 44px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(10px);
  animation: lq-rise .7s ease-out .1s forwards;
}
@keyframes lq-rise { to { opacity: 1; transform: translateY(0); } }
.lq-slipbox::after {
  content: ''; position: absolute; inset: 5px; pointer-events: none;
  border: 1px solid rgba(176,141,87,.4);
}

.lq-gua {
  text-align: center; font-family: "Songti SC", serif;
  font-size: 1.9rem; letter-spacing: .22em; color: #2b2620; margin: 0;
  /* 卦名逐字浮现：字距先宽后收，像刻上去的 */
  animation: lq-word .9s ease-out both;
}
@keyframes lq-word {
  0%   { opacity: 0; letter-spacing: .7em; }
  100% { opacity: 1; letter-spacing: .22em; }
}
.lq-yaoname {
  text-align: center; font-size: .74rem; letter-spacing: .2em;
  color: #9e3b32; margin: .5rem 0 1.2rem;
}
/* 古语 —— 这一块是主角，字要大、行要疏 */
.lq-text {
  font-family: "Songti SC", serif; font-size: 1.06rem; line-height: 2.3;
  color: #2b2620; text-align: center; letter-spacing: .06em;
  margin: 0 0 .5rem;
}
.lq-text + .lq-text { margin-top: .9rem; }
.lq-src {
  display: block; font-size: .66rem; letter-spacing: .18em;
  color: #a09383; margin-bottom: .2rem; font-family: -apple-system, sans-serif;
}
.lq-plain {
  margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px dashed #cbbea6;
  font-size: .88rem; line-height: 2; color: #554e44; text-align: center;
}
.lq-rel {
  margin: .7rem 0 0; font-size: .76rem; line-height: 1.9;
  color: #8a7f6f; text-align: center;
}
.lq-rel b { color: #9e3b32; font-weight: 500; }

/* 起法与桥 —— 折叠，想看的人才看 */
.lq-how { max-width: 30rem; margin: 1rem auto 0; font-size: .72rem; }
.lq-how summary {
  cursor: pointer; color: #6f6a5c; list-style: none; padding: .35rem 0;
  letter-spacing: .04em;
}
.lq-how summary::-webkit-details-marker { display: none; }
.lq-how summary::before { content: '⌖ '; color: #b08d57; }
.lq-how p { margin: .45rem 0; line-height: 1.95; color: #6f6a5c; }

/* ── 两个付费入口 ── */
.lq-more {
  max-width: 30rem; margin: 1.4rem auto 0;
  display: grid; gap: .7rem; grid-template-columns: 1fr 1fr;
}
@media (max-width: 420px) { .lq-more { grid-template-columns: 1fr; } }
/* 用 flex + flex-start 而不是 block：<button> 的内容默认是**垂直居中**的，
   两张卡被 grid 拉成等高后，字少的那张标题就往下掉半格，两个标题错开
   一截，看着像没对齐的 bug。 */
.lq-buy {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: .85rem .8rem; text-align: left; cursor: pointer;
  background: rgba(176,141,87,.07); border: 1px solid #3a3628;
  color: #d9c49a; font-family: inherit; transition: .2s;
}
.lq-buy:hover { background: rgba(176,141,87,.14); border-color: #b08d57; }
.lq-buy b {
  display: block; font-family: "Songti SC", serif; font-size: .98rem;
  letter-spacing: .1em; margin-bottom: .3rem;
}
.lq-buy span { display: block; font-size: .72rem; line-height: 1.75; color: #7f7a6d; }

.lq-foot {
  max-width: 30rem; margin: 1.4rem auto 0; text-align: center;
  font-size: .7rem; line-height: 1.9; color: #5d594e;
}

/* 卦名英文副标 —— 只在英文站出现。压得比正标低两级：
   它是抓手，不是主角，抢了汉字的位置就本末倒置了。 */
.lq-gloss {
  text-align: center; margin: .5rem 0 0; font-size: .76rem;
  letter-spacing: .1em; color: #8a7f6f; font-style: italic;
}
.lq-gloss + .lq-yaoname { margin-top: .35rem; }

/* ── 「已抽过」这一块 = 支付按钮 ──
   于雷 2026-08-04：「说明即是支付按钮」。
   他此刻正想再抽一支，是全站转化最好的一刻；把出路做成句末一条小链接，
   等于让他先读完一段「不行」再自己去找门。整块可点，读到哪儿点哪儿都能付。 */
.lq-note.warn { padding: 0; border: 0; background: none; }
.lq-paynote {
  display: block; text-decoration: none; cursor: pointer;
  text-align: left; padding: .85rem 1rem;
  border: 1px solid rgba(158,59,50,.55);
  background: rgba(158,59,50,.10);
  transition: border-color .2s ease, background .2s ease, transform .16s ease;
}
.lq-paynote:hover {
  border-color: #b08d57; background: rgba(176,141,87,.13);
  transform: translateY(-1px);
}
.lq-paynote .pn-lead {
  display: block; color: #d6c7a4; font-size: .78rem; line-height: 1.8;
}
.lq-paynote .pn-lead b { color: #e0b45a; font-weight: 500; }
/* 这一行是按钮的脸：金色、稍大、右端一个进入号 */
.lq-paynote .pn-cta {
  display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  margin-top: .55rem; padding-top: .55rem;
  border-top: 1px solid rgba(176,141,87,.28);
  font-family: "Songti SC", serif; font-size: 1rem; letter-spacing: .06em;
  color: #f0cd82;
}
.lq-paynote .pn-cta em {
  font-style: normal; color: #e0b45a; font-size: .92rem;
  border: 1px solid rgba(224,180,90,.5); padding: .05rem .38rem;
}
.lq-paynote .pn-cta i { margin-left: auto; font-style: normal; }
.lq-paynote .pn-sub {
  display: block; margin-top: .35rem;
  color: #8d8778; font-size: .7rem; line-height: 1.7;
}
