/* =========================================================
   每日一签 / 签文页
   独立文件、类名统一 lot- 前缀：style.css 已近两千行，同名类靠源码顺序
   互相覆盖的事故出过多次，这里不与它共用任何类名。
   配色只用 style.css 的 :root 变量，与全站的米色 / 墨色 / 金棕一致。
   ========================================================= */

/* 顶栏当前页 */

.lot-page {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.lot-crumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; }
.lot-crumb a { color: var(--ink-soft); text-decoration: none; }
.lot-crumb a:hover { color: var(--ink); }

.lot-hero { text-align: center; margin: 8px 0 26px; }
.lot-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.lot-hero p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* =========================================================
   求签区
   ========================================================= */

.lot-stage {
  padding: 12px 20px 30px;
  text-align: center;
}

.lot-steps {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.lot-steps li.is-on { color: var(--ink); }

/* 签筒场景 */
.lot-scene { position: relative; height: 250px; max-width: 220px; margin: 0 auto; }
.lot-tube {
  position: absolute;
  left: 50%; bottom: 6px;
  width: 280px; height: 340px;
  margin-left: -140px;
  transform-origin: 50% 94%;
  overflow: visible;   /* 摇出的签会升出画布上沿 */
}
.lot-tube-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.lot-tube.is-shaking { animation: lot-shake 1.44s ease-in-out both; }
@keyframes lot-shake {
  0%, 100% { transform: rotate(0deg); }
  14%, 42%, 70% { transform: rotate(-5deg); }
  28%, 56% { transform: rotate(5deg); }
  84% { transform: rotate(2deg); }
}

/* 独立的暖木签移至前景；动画始终限制在场景内，不越过步骤栏。 */
.lot-scene { isolation: isolate; overflow: hidden; }
.lot-stick {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 42px;
  height: 300px;
  opacity: 0;
  transform: translate(-50%, 30%) scale(.4);
  transform-origin: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
/* 以素材中间的木签为可视区域，裁掉生成图两侧透明留白。 */
/* 签号、吉凶是文字，HTML 一到就画出来；签条是图片要等下载。图片好之前先藏起文字，
   免得「先出字、后出签条」。is-art-ready 由签条 <img> 的 onload 加上 */
.lot-stick:not(.is-art-ready) .lot-stick-label,
.lot-stick:not(.is-art-ready) .lot-stick-grade { visibility: hidden; }
.lot-stick-art { position: absolute; top: 0; left: 50%; width: 800%; max-width: none; height: 100%; transform: translateX(-50%); object-fit: fill; }
.lot-stick-label {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  white-space: nowrap;
  font: 600 18px var(--serif);
  letter-spacing: .32em;
  color: var(--ink);
}
.lot-stick.is-up { animation: lot-rise 2.4s linear both; will-change: transform; backface-visibility: hidden; }
.lot-stick.lot-settled { opacity: 1; transform: translate(-50%, 0) scale(1); }
@keyframes lot-rise {
  0% { opacity: 1; transform: translate(-50%, 30%) scale(.4); }
  35% { opacity: 1; transform: translate(-50%, -30%) scale(.4); }
  75% { opacity: 1; transform: translate(-50%, -6%) scale(.88); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.lot-scene-mask {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 280px;
  height: 340px;
  transform: translateX(-50%);
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  z-index: 3;

}
.lot-tube { transition: none; }
/* 固定的虚化层仅切换透明度，避免放大阶段逐帧重算模糊。 */
.lot-tube-art { transition: opacity .8s .7s; will-change: opacity; }
.lot-tube-soft { filter: blur(4px); opacity: 0; }
.lot-revealing .lot-tube-art { opacity: 0; }
.lot-revealing .lot-tube-soft { opacity: .3; }
.lot-stage[data-state="done"] .lot-tube-art { transition: none; }
.lot-revealing .lot-scene-mask { animation: lot-mask-fade 2.4s linear both; }
.lot-stick.lot-settled + .lot-scene-mask { animation: none; opacity: 0; }
@keyframes lot-mask-fade {
  0%, 34% { opacity: 1; }
  42%, 100% { opacity: 0; }
}
@media (max-width: 520px) {
  .lot-scene-mask { width: 260px; height: 314px; }
  .lot-stick { top: 16px; height: 284px; width: 40px; }
}

/* 筊杯 */
.lot-jiao { position: relative; height: 140px; max-width: 240px; margin: 0 auto; }
.lot-block { position: absolute; bottom: 24px; width: 86px; height: 48px; }
.lot-block-l { left: calc(50% - 94px); }
.lot-block-r { left: calc(50% + 8px); transform: scaleX(-1); }
.lot-jiao { perspective: 800px; }
/* 筊杯向内聚拢，保持原始比例旋转一圈，再回到落点。 */
.lot-jiao.is-throwing .lot-block { animation: lot-toss 1.2s ease-in-out both; will-change: transform; }
.lot-jiao.is-throwing .lot-block-art { animation: lot-cup-spin 1.2s cubic-bezier(.3,0,.25,1) both; }
@keyframes lot-toss {
  0%, 100% { transform: rotate(var(--lot-cup-angle)); }
  50% { transform: translateX(var(--lot-cup-drift)) rotate(var(--lot-cup-angle)); }
}
@keyframes lot-cup-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* 两个面保持渲染，旋转中淡入交接，避免 display 切换时重新绘制。 */
.lot-block .lot-flat, .lot-block .lot-round { transition: opacity 80ms linear; }
.lot-block .lot-flat { opacity: 0; }
.lot-block.is-flat .lot-flat { opacity: 1; }
.lot-block.is-flat .lot-round { opacity: 0; }

.lot-cups { display: flex; justify-content: center; gap: 10px; margin: 0 0 10px; }
.lot-cups span {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  transition: background 0.3s;
}
.lot-cups span.is-ok { background: var(--gold-deep); }

.lot-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 4px 0 6px;
}
.lot-hint { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.lot-verdict { min-height: 24px; margin: 0 0 6px; font-size: 15px; color: var(--gold-deep); letter-spacing: 0.08em; }

.lot-panel[hidden] { display: none; }
.lot-panel { animation: lot-fade 0.4s ease-out both; }
@keyframes lot-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lot-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.lot-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  letter-spacing: 0.3em;
  padding: 12px 40px 12px calc(40px + 0.3em);
  border-radius: 999px;
  color: var(--card);
  background: linear-gradient(180deg, var(--accent), var(--gold-deep));
  box-shadow: 0 6px 16px -8px var(--card-edge);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-block;
}
/* display 写死了，必须显式让 hidden 生效 */
.lot-btn[hidden] { display: none; }
.lot-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px var(--card-edge); }
.lot-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.lot-btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.lot-btn-ghost {
  background: transparent;
  color: var(--gold-deep);
  box-shadow: inset 0 0 0 1.5px var(--gold-deep);
}
.lot-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.lot-sub { font-size: 13px; color: var(--ink-faint); margin: 12px 0 0; }

.lot-level {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.2em;
  padding: 3px 12px 3px calc(12px + 0.2em);
  border-radius: 999px;
  border: 1px solid currentColor;
}
/* 吉凶只靠颜色深浅区分；下签刻意不用红色，免得抽到的人心里一沉 */
.lot-level[data-level="上上"] { color: var(--gold-deep); background: var(--card-edge); }
.lot-level[data-level="上"]   { color: var(--gold-deep); background: var(--card-edge); }
.lot-level[data-level="中"]   { color: var(--accent); background: var(--card-edge); }
.lot-level[data-level="下"]   { color: var(--ink-soft); background: var(--card-edge); }
.lot-level[data-level="中上"] { color: var(--gold-deep); background: var(--card-edge); }
.lot-level[data-level="中下"] { color: var(--ink-soft); background: var(--card-edge); }

/* =========================================================
   签符（单签页顶部）：一张竖排签纸
   ========================================================= */

.lot-fu {
  width: min(100%, 320px);
  margin: 0 auto 28px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 6px;
  box-shadow: 0 18px 40px -26px var(--card-edge);
}
.lot-fu-inner {
  border: 1px solid var(--card-edge);
  padding: 14px 16px 12px;
}
.lot-fu-head {
  text-align: center;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.6em;
  color: var(--gold-deep);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-line);
}
.lot-fu-body {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 16px;
  padding: 18px 0 12px;
  min-height: 240px;
}
.lot-fu-no {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding-left: 14px;
  border-left: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.lot-seal {
  writing-mode: horizontal-tb;
  width: 40px; height: 40px;
  border: 1.5px solid var(--gold-deep);
  border-radius: 5px;
  color: var(--gold-deep);
  font-size: 14px;
  line-height: 1.05;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}
.lot-fu-poem {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 2;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin: 0;
}
.lot-fu-poem span { display: block; }
.lot-fu-foot {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  padding-top: 8px;
  border-top: 1px solid var(--paper-line);
}


/* =========================================================
   正文区
   ========================================================= */

.lot-intro { color: var(--ink-soft); }

.lot-section { margin-top: 40px; }
.lot-section h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}
.lot-section p { margin: 0 0 14px; }
.lot-section ol, .lot-section ul { padding-left: 22px; margin: 0 0 14px; }
.lot-section li { margin-bottom: 6px; }
.lot-section a { color: var(--ink); border-bottom: 1px solid var(--paper-line); text-decoration: none; }
.lot-section a:hover { border-bottom-color: var(--ink); }

.lot-today { background: var(--bg-soft); border-radius: 14px; padding: 18px 20px; }
.lot-today p:last-child { margin-bottom: 0; }
.lot-tip { font-weight: 600; }

.lot-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lot-topic {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  padding: 12px 14px;
}
.lot-topic b { display: block; font-size: 14px; color: var(--accent); margin-bottom: 2px; }
.lot-topic span { font-size: 15px; }
@media (max-width: 520px) {
  .lot-topics { gap: 8px; }
  .lot-topic { padding: 10px 12px; }
  .lot-topic span { font-size: 14px; }
}

/* 精准解签入口（需登录，计划付费） */
.lot-premium {
  margin-top: 40px;
  border-radius: 18px;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--card-edge);
}
.lot-premium h2 { margin-bottom: 6px; }
.lot-premium > p { color: var(--ink-soft); font-size: 15px; }
.lot-form { display: grid; gap: 12px; margin-top: 14px; }
.lot-form label { font-size: 14px; color: var(--ink-soft); display: grid; gap: 6px; }
.lot-form select, .lot-form textarea, .lot-form input {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-edge);
  background: var(--card);
  color: var(--ink);
}
.lot-form textarea { min-height: 84px; resize: vertical; }
.lot-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .lot-form-row { grid-template-columns: 1fr; } }
.lot-form .lot-btn { justify-self: center; margin-top: 6px; }
.lot-form-note { font-size: 13px; color: var(--ink-faint); text-align: center; margin: 0; }
.lot-form-msg { text-align: center; font-size: 14px; color: var(--gold-deep); margin: 0; }

.lot-faq details { border-bottom: 1px solid var(--paper-line); padding: 12px 0; }
.lot-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.lot-faq summary::-webkit-details-marker { display: none; }
.lot-faq summary::after { content: "+"; float: right; color: var(--ink-faint); }
.lot-faq details[open] summary::after { content: "−"; }
.lot-faq details p { margin: 10px 0 0; color: var(--ink-soft); }

.lot-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
  font-size: 15px;
}
.lot-pager a { color: var(--ink-soft); text-decoration: none; }
.lot-pager a:hover { color: var(--ink); }

.lot-cta { text-align: center; margin-top: 32px; }
.lot-disclaimer { margin-top: 32px; font-size: 13px; color: var(--ink-faint); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .lot-tube.is-shaking, .lot-panel { animation: none; }
  .lot-jiao.is-throwing .lot-block-l, .lot-jiao.is-throwing .lot-block-r { animation-duration: 0.01s; }
}

/* 留白与阅读节奏；所有显式 display 都尊重 hidden。 */
.lot-page [hidden] { display: none !important; }
.lot-stage { padding: 12px 0 34px; min-height: 520px; }
.lot-steps { gap: 0; counter-reset: lot-step; align-items: center; }
.lot-steps li { display: flex; align-items: center; gap: 8px; counter-increment: lot-step; }
.lot-steps li::before { content: counter(lot-step, decimal-leading-zero); font-size: 10px; letter-spacing: .04em; }
.lot-steps li + li::after { content: ''; width: 28px; height: 1px; background: var(--paper-line); order: -1; margin: 0 16px; }
.lot-steps li.lot-complete { color: var(--gold-deep); }
.lot-scene { height: 354px; max-width: 340px; margin: 10px auto 20px; }
.lot-jiao::after { content: ''; position: absolute; bottom: 1px; left: 20%; width: 60%; height: 14px; background: radial-gradient(ellipse, var(--card-edge), transparent 70%); z-index: 0; }
.lot-tube, .lot-block { z-index: 1; }
.lot-jiao { height: 266px; max-width: 260px; }
.lot-block { bottom: 44px; width: 112px; height: 74px; }
.lot-block-l { left: calc(50% - 118px); transform: rotate(-12deg); }
.lot-block-r { left: calc(50% + 6px); transform: scaleX(-1) rotate(-12deg); }
.lot-jiao::after { bottom: 47px; left: 4%; width: 92%; }
.lot-cups { gap: 14px; margin: 18px 0 12px; }
.lot-cups span { width: 12px; height: 12px; transition: background .3s, transform .3s; }
.lot-cups span.is-ok { transform: scale(1.12); box-shadow: 0 0 0 4px var(--bg-soft); }
.lot-btn { min-height: 48px; }
.lot-btn:active { transform: translateY(1px); }
.lot-stage[data-state="done"] .lot-scene { height: 354px; }
.lot-stage[data-state="done"] .lot-title { font-size: 16px; color: var(--ink-soft); font-weight: 400; }
.lot-result { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 16px 0 24px; }
.lot-result [data-done-no] { font-family: var(--serif); color: var(--ink); font-size: 28px; letter-spacing: .06em; }
.lot-fu { width: min(100%, 340px); padding: 12px; border-radius: 3px 3px 12px 3px; margin-top: 32px; margin-bottom: 32px; background: linear-gradient(110deg, var(--card), var(--bg)); box-shadow: 0 20px 36px -24px var(--card-edge); }
.lot-fu-inner { border-color: var(--paper-line); padding: 20px 18px 16px; }
.lot-fu-head { font-size: 13px; padding-bottom: 16px; }
.lot-fu-body { padding: 28px 0 24px; gap: 20px; min-height: 264px; }
.lot-fu-no { font-size: 25px; padding-left: 18px; gap: 20px; }
.lot-seal { border-radius: 50%; font-weight: 400; width: 38px; height: 38px; font-size: 13px; }
.lot-fu-poem { font-size: 20px; line-height: 1.9; letter-spacing: .24em; }
.lot-fu-foot { font-size: 10px; padding-top: 14px; letter-spacing: .12em; }
.lot-intro { text-align: center; max-width: 540px; margin: 0 auto 48px; line-height: 1.9; }
.lot-section { margin-top: 48px; line-height: 1.9; }
.lot-section h2 { font-size: 21px; margin-bottom: 18px; }
.lot-today { padding: 24px; border-left: 2px solid var(--gold); border-radius: 3px 14px 14px 3px; }
.lot-tip { border-top: 1px solid var(--paper-line); padding-top: 16px; font-weight: 400; color: var(--gold-deep); }
.lot-topics { gap: 12px; }
.lot-topic { padding: 20px; }
.lot-topic b { font-family: var(--serif); font-size: 17px; margin-bottom: 8px; }
.lot-topic span { line-height: 1.85; }
.lot-premium { margin-top: 48px; padding: 28px; }
.lot-premium h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-top: 0; }
.lot-form { gap: 18px; margin-top: 24px; }
.lot-form input, .lot-form select, .lot-form textarea { width: 100%; min-width: 0; font-size: 16px; }
.lot-form textarea { min-height: 116px; }
.lot-form input:focus-visible, .lot-form select:focus-visible, .lot-form textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lot-faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.lot-faq summary::after { flex-shrink: 0; font-weight: 400; }
.lot-faq details { padding: 18px 0; }
@media (max-width: 520px) {
  .lot-page { padding: 24px 20px 48px; }
  .lot-hero p { font-size: 13px; }
  .lot-stage { padding: 8px 0 28px; min-height: 500px; }
  .lot-scene, .lot-stage[data-state="done"] .lot-scene { height: 324px; margin-bottom: 16px; }
  .lot-tube { width: 260px; height: 314px; margin-left: -130px; }
  .lot-steps li + li::after { width: 20px; margin: 0 10px; }
  .lot-hint { font-size: 13px; }
  .lot-result [data-done-no] { font-size: 24px; }
  .lot-fu { margin-top: 24px; padding: 10px; }
  .lot-fu-inner { padding: 18px 12px 14px; }
  .lot-fu-body { gap: 16px; }
  .lot-fu-poem { font-size: 18px; }
  .lot-fu-no { padding-left: 12px; font-size: 24px; }
  .lot-topics { grid-template-columns: 1fr; gap: 10px; }
  .lot-topic { padding: 18px 20px; }
  .lot-topic span { font-size: 15px; }
  .lot-today, .lot-premium { padding: 22px 20px; }
  .lot-crumb { font-size: 12px; }
  .lot-section { margin-top: 36px; }
}
/* 首屏优先展示签筒与操作：保留大图，收紧文字与留白。 */
.lot-draw-page { padding-top: 12px; }
.lot-draw-page > .lot-hero { margin: 0 0 12px; }
.lot-draw-page > .lot-hero h1 {
  font-size: clamp(22px, 4.5vw, 30px);
  line-height: 1.3;
  letter-spacing: .04em;
  margin: 0;
}
.lot-draw-page .lot-stage { padding-top: 0; min-height: 0; }
.lot-draw-page .lot-scene,
.lot-draw-page .lot-stage[data-state="done"] .lot-scene { height: 378px; margin: 6px auto; }
.lot-draw-page .lot-steps { min-height: 34px; }
.lot-draw-page .lot-steps li {
  position: relative;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  gap: 7px;
  font-weight: 400;
}
.lot-draw-page .lot-steps li + li { margin-left: 30px; }
.lot-draw-page .lot-steps li + li::after {
  position: absolute;
  left: -25px;
  top: 50%;
  width: 18px;
  margin: 0;
}
.lot-draw-page .lot-steps li.is-on {
  color: var(--gold-deep);
  background: color-mix(in srgb, var(--gold) 38%, var(--bg));
  border-color: var(--gold);
  font-weight: 600;
}
.lot-draw-page .lot-steps li::before { font-size: 11px; }
.lot-draw-page .lot-btn {
  min-height: 44px;
  padding: 8px 28px 8px calc(28px + .16em);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--card);
  background: linear-gradient(180deg, var(--accent), var(--gold-deep));
  box-shadow: 0 3px 9px -5px var(--card-edge);
}
.lot-draw-page .lot-btn:hover { border-color: var(--gold-deep); box-shadow: 0 5px 12px -6px var(--card-edge); }
.lot-draw-page .lot-btn-ghost { color: var(--gold-deep); background: transparent; box-shadow: none; }
.lot-draw-page .lot-btn-ghost:hover { background: var(--bg-soft); }
@media (max-width: 520px) {
  .lot-draw-page .lot-steps li { padding: 5px 10px; }
  .lot-draw-page .lot-steps li + li { margin-left: 20px; }
  .lot-draw-page .lot-steps li + li::after { left: -16px; width: 10px; }
}
.lot-tube {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lot-tube:disabled { cursor: default; }
.lot-tube:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; border-radius: 12px; }
.lot-draw-page [data-panel="shake"] .lot-hint { margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .lot-page *, .lot-page *::before, .lot-page *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .lot-stick.is-up { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* 筊杯是本步视觉主体，先交代任务，按钮下再解释规则。 */
.lot-draw-page .lot-jiao { height: 246px; max-width: 440px; }
.lot-draw-page .lot-block {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  width: 206px;
  height: 146px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lot-block-art { transform-origin: 50% 50%; display: block; width: 100%; height: 100%; overflow: visible; }
.lot-draw-page .lot-block-l { left: calc(50% - 187px); bottom: 40px; --lot-cup-angle: -72deg; --lot-cup-drift: 58px; transform: rotate(var(--lot-cup-angle)); }
.lot-draw-page .lot-block-r { left: calc(50% - 19px); bottom: 64px; --lot-cup-angle: 78deg; --lot-cup-drift: -58px; transform: rotate(var(--lot-cup-angle)); }
.lot-draw-page .lot-block:disabled { cursor: default; }
.lot-block:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 18px; }
.lot-draw-page .lot-jiao::after { bottom: 32px; left: 8%; width: 84%; }
.lot-draw-page [data-panel="toss"] .lot-title { font-size: 19px; margin: 0 0 18px; }
.lot-draw-page [data-panel="toss"] .lot-cups { margin: 16px 0 8px; }
.lot-draw-page [data-panel="toss"] .lot-verdict { margin-bottom: 6px; }
.lot-toss-explainer { font-size: 13px; line-height: 1.8; margin: 12px 0 0; }
@media (max-width: 520px) {
  .lot-draw-page .lot-jiao { height: 222px; max-width: 320px; }
  .lot-draw-page .lot-block { width: 168px; height: 122px; }
  .lot-draw-page .lot-block-l { left: calc(50% - 158px); bottom: 40px; }
  .lot-draw-page .lot-block-r { left: calc(50% - 12px); bottom: 62px; }
  .lot-draw-page [data-panel="toss"] .lot-title { font-size: 17px; }
  .lot-draw-page .lot-scene, .lot-draw-page .lot-stage[data-state="done"] .lot-scene { height: 348px; }
}

/* 每一投都留下明确记录，紧贴操作入口。 */
.lot-draw-page [data-panel="toss"] .lot-cups { gap: 28px; margin: 0 0 14px; }
.lot-draw-page .lot-cups span {
  min-width: 56px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: transparent;
  box-shadow: none;
  transform: none;
}
.lot-draw-page .lot-cups span::before { content: ''; width: 7px; height: 7px; border: 1px solid var(--gold-deep); border-radius: 50%; }
.lot-draw-page .lot-cups span + span::after { content: '→'; position: absolute; left: -21px; color: var(--ink-faint); font-size: 12px; }
.lot-draw-page .lot-cups span.lot-recorded::before { background: var(--gold-deep); }
.lot-draw-page .lot-cups span.is-ok { color: var(--gold-deep); }
.lot-toss-explainer { margin-top: 14px; }
.lot-verdict:empty { display: none; }
/* 吉凶随签条呈现，操作区只留查看入口与次要说明。 */
.lot-stick-grade { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); writing-mode: vertical-rl; white-space: nowrap; color: var(--ink); font: 800 15px/1.2 var(--serif); letter-spacing: .12em; padding: 7px 3px; border-top: 1px solid var(--ink-soft); border-bottom: 1px solid var(--ink-soft); }
.lot-draw-page .lot-stage[data-state="done"] .lot-scene { height: 324px; }
.lot-draw-page .lot-stage[data-state="done"] .lot-tube { bottom: 0; }
.lot-draw-page [data-panel="done"] .lot-sub { margin-top: 8px; font-size: 12px; }
@media (max-width: 520px) {
  .lot-draw-page .lot-stage[data-state="done"] .lot-scene { height: 308px; }
}

/* 非圣杯是本轮的终止状态，原因紧贴主操作。 */
.lot-stage { --lot-error: #D0392D; }
.lot-draw-page .lot-cups span.lot-failed { color: var(--lot-error); font-weight: 600; }
.lot-draw-page .lot-cups span.lot-failed::before { background: var(--lot-error); border-color: var(--lot-error); }
.lot-draw-page .lot-rejected .lot-verdict { color: var(--lot-error); font-weight: 600; margin: 0 0 16px; letter-spacing: .03em; }


/* 得签页直接展示最终背景，避免重新播放签筒虚化的延时。 */
.lot-stage[data-state="done"] .lot-tube { transition: none; }

/* 包含筊杯之间的空隙，整块插画区域均可投掷。 */
.lot-jiao-hit { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; z-index: 1; }
.lot-jiao-hit:disabled { cursor: default; }
.lot-jiao-hit:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; border-radius: 24px; }
.lot-draw-page .lot-block { z-index: 2; }
.lot-jiao::after { pointer-events: none; }
/* 保持暖木色，拉开凸面高光与暗部，平面保留均匀明度。 */
.lot-block .lot-round { filter: contrast(1.22) brightness(.94); }
.lot-draw-page .lot-cups span { font-size: 14px; gap: 7px; }
.lot-draw-page .lot-cups span::before { width: 9px; height: 9px; flex-shrink: 0; }
/* 得签后适度放大签条，仍为按钮保留首屏空间。 */
.lot-draw-page .lot-stage[data-state="done"] .lot-scene { height: 366px; }
.lot-stage[data-state="done"] .lot-stick { width: 48px; height: 342px; }
@media (max-width: 520px) {
  .lot-draw-page .lot-stage[data-state="done"] .lot-scene { height: 340px; }
  .lot-stage[data-state="done"] .lot-stick { width: 44px; height: 320px; top: 16px; }
}

/* 放大投掷主视觉，桌面保留充分舒展的留白，手机控制在首屏内。 */
.lot-draw-page .lot-jiao { height: 294px; max-width: 500px; }
.lot-draw-page .lot-block { width: 258px; height: 184px; }
.lot-draw-page .lot-block-l { left: calc(50% - 228px); bottom: 44px; }
.lot-draw-page .lot-block-r { left: calc(50% - 30px); bottom: 72px; }
@media (max-width: 520px) {
  .lot-draw-page .lot-jiao { height: 244px; max-width: 320px; }
  .lot-draw-page .lot-block { width: 190px; height: 136px; }
  .lot-draw-page .lot-block-l { left: calc(50% - 173px); bottom: 44px; }
  .lot-draw-page .lot-block-r { left: calc(50% - 17px); bottom: 68px; }
}

/* 签纸：典故题名、竖排签诗与签号分层，采用暖纸与细金线。 */
.lot-fu { position: relative; width: min(100%, 404px); padding: 9px; margin: 28px auto 32px; border-radius: 2px; border-color: var(--paper-line); background: var(--card); box-shadow: 0 18px 48px -32px var(--ink-soft); }
.lot-fu::before, .lot-fu::after { content: ''; position: absolute; width: 28px; height: 28px; pointer-events: none; border-color: var(--gold); border-style: solid; }
.lot-fu::before { top: 0; right: 0; border-width: 1px 1px 0 0; }
.lot-fu::after { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.lot-fu-inner { padding: 22px 24px 18px; border: 1px solid var(--paper-line); background: linear-gradient(135deg, var(--card), transparent 65%); }
.lot-fu-head { display: flex; justify-content: space-between; align-items: center; padding: 0; border: 0; font: 11px var(--serif); letter-spacing: .3em; color: var(--gold-deep); }
.lot-fu-head span:last-child { color: var(--ink-faint); font-size: 10px; letter-spacing: .15em; }
.lot-fu-name { text-align: center; font: 500 32px/1.5 var(--serif); letter-spacing: .18em; padding: 20px 0 18px; color: var(--ink); border-bottom: 1px solid var(--paper-line); }
.lot-fu-body { min-height: 246px; padding: 28px 0 26px; gap: 25px; align-items: flex-start; }
.lot-fu-no { font-size: 20px; letter-spacing: .15em; padding-left: 20px; gap: 22px; border-color: var(--paper-line); }
.lot-fu .lot-seal { width: 30px; height: auto; min-height: 44px; padding: 7px 5px; writing-mode: vertical-rl; border: 1px solid var(--gold-deep); border-radius: 1px; font: 600 13px/1.3 var(--serif); letter-spacing: .12em; color: var(--gold-deep); background: var(--bg); }
.lot-fu-poem { font-size: 21px; line-height: 2.05; letter-spacing: .24em; }
.lot-fu-foot { font-size: 9px; letter-spacing: .16em; padding-top: 14px; border-top: 1px solid var(--paper-line); color: var(--ink-faint); }
@media (max-width: 520px) {
  .lot-fu { width: min(100%, 330px); margin-top: 22px; padding: 7px; }
  .lot-fu-inner { padding: 19px 18px 15px; }
  .lot-fu-name { font-size: 28px; padding: 17px 0 15px; }
  .lot-fu-body { gap: 18px; min-height: 234px; padding: 24px 0; }
  .lot-fu-no { font-size: 18px; padding-left: 14px; }
  .lot-fu-poem { font-size: 19px; line-height: 1.95; }
}

/* 绘制的暖金纸笺作为装饰底图，签诗与信息全部保留为真实文字。 */
.lot-fu { width: min(100%, 404px); aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 2px; background: var(--bg) url('/assets/lot-paper-painted-v2.webp') center / 100% 100% no-repeat; box-shadow: 0 18px 42px -26px var(--ink-soft); }
.lot-fu::before, .lot-fu::after { content: none; }
.lot-fu-inner { position: relative; height: 100%; padding: 0; border: 0; background: none; }
.lot-fu-head { position: absolute; top: 4.8%; left: 24%; width: 52%; height: 6.7%; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; background: none; }
.lot-fu-head span:first-child { font: 600 24px/1.3 var(--serif); letter-spacing: .14em; padding-left: .14em; color: var(--gold-deep); }
.lot-fu-head span:last-child { display: none; }
.lot-fu-meta { position: absolute; top: 17%; left: 12%; width: 76%; display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; padding: 0; border: 0; background: none; }
.lot-fu-name { display: block; padding: 0; border: 0; font: 500 28px/1.4 var(--serif); letter-spacing: .18em; color: var(--ink); }
.lot-fu-caption { display: none; }
.lot-fu-no { writing-mode: horizontal-tb; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0; border: 0; font: 15px/1.4 var(--serif); letter-spacing: .12em; color: var(--ink-soft); }
.lot-fu .lot-seal { writing-mode: horizontal-tb; width: auto; min-height: 0; padding: 3px 8px; font: 600 12px/1.2 var(--serif); border-radius: 2px; background: none; color: var(--gold-deep); }
.lot-fu-body { position: absolute; top: 31.5%; left: 12%; width: 76%; display: flex; align-items: flex-start; justify-content: center; min-height: 0; padding: 0; }
.lot-fu-poem-tag { display: none; }
.lot-fu-poem { font-size: 21px; line-height: 2.05; letter-spacing: .24em; }
.lot-fu-foot { position: absolute; top: 13.5%; left: 15%; width: 70%; padding: 0; border: 0; font-size: 9px; letter-spacing: .12em; color: var(--ink-soft); }
@media (max-width: 520px) {
  .lot-fu { width: min(100%, 330px); padding: 0; }
  .lot-fu-head span:first-child { font-size: 20px; }
  .lot-fu-meta { gap: 9px; }
  .lot-fu-name { font-size: 25px; }
  .lot-fu-no { font-size: 13px; }
  .lot-fu .lot-seal { font-size: 11px; }
  .lot-fu-body { padding: 0; min-height: 0; }
  .lot-fu-poem { font-size: 18px; line-height: 1.95; }
  .lot-fu-foot { font-size: 8px; top: 13.5%; }
}

/* 缩短签笺，装饰只留底角，首屏更早进入签意。 */
.lot-page:not(.lot-draw-page) .lot-fu { width: min(100%, 344px); margin: 14px auto 18px; }
.lot-fu-head { top: 5%; left: 14%; width: 72%; height: 8%; }
.lot-fu-meta { top: 17%; gap: 7px; }
.lot-fu-name { font-size: 26px; }
.lot-fu-body { top: 36%; }
.lot-fu-poem { font-size: 20px; line-height: 2; letter-spacing: .18em; }
.lot-fu-foot { top: 91%; left: 7%; width: 58%; font-size: 8px; }
.lot-page:not(.lot-draw-page) .lot-hero { margin: 0 0 14px; }
.lot-page:not(.lot-draw-page) .lot-intro { margin-bottom: 24px; }
.lot-page:not(.lot-draw-page) .lot-section { margin-top: 28px; }
@media (max-width: 520px) {
  .lot-page:not(.lot-draw-page) .lot-fu { width: min(100%, 300px); margin-top: 12px; }
  .lot-fu-name { font-size: 23px; }
  .lot-fu-no { font-size: 12px; }
  .lot-fu-poem { font-size: 17px; line-height: 1.95; }
  .lot-fu-foot { top: 91%; font-size: 7px; }
}

/* 吉凶统一采用暗朱印色，以文字而非多色区分等级。 */
.lot-page { --lot-seal-ink: #B52B30; }
.lot-fu .lot-seal { color: var(--lot-seal-ink); border-color: var(--lot-seal-ink); }
.lot-page:not(.lot-draw-page) .lot-level[data-level] { color: var(--lot-seal-ink); border-color: var(--lot-seal-ink); background: transparent; }

/* =========================================================
   签文内容区块（2026-10-16 新增，承载传统签文与解签内容）
   只新增类名，不改动上面的签筒 / 掷筊 / 签纸样式。
   ========================================================= */

.lot-section h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 8px;
  letter-spacing: .04em;
}
.lot-note { font-size: 14px; color: var(--ink-faint); }

/* 传统签文：签名 / 宫位 / 吉凶 / 诗曰 / 签语 / 解曰 */
.lot-classic {
  margin: 0;
  border-top: 1px solid var(--paper-line);
}
.lot-classic > div {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
}
.lot-classic dt {
  font-family: var(--serif);
  color: var(--gold-deep);
  letter-spacing: .2em;
}
.lot-classic dd { margin: 0; color: var(--ink); }

/* 其他签文 / 1-100 签目录 */
.lot-related { list-style: none; padding: 0; margin: 0 0 14px; }
.lot-related li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
}
.lot-related .lot-level { font-size: 12px; padding: 1px 10px 1px calc(10px + .2em); flex-shrink: 0; }

@media (max-width: 520px) {
  .lot-classic > div { grid-template-columns: 4em 1fr; gap: 12px; }
}
/* .lot-section ul / ol 自带 22px 缩进，特异度高于单个类名，新列表需显式清掉 */
.lot-section .lot-grid, .lot-section .lot-related { padding-left: 0; }

/* =========================================================
   单签页首屏：左签纸、右基础信息（2026-10-16）
   字号阶梯：34 标题 / 20 签名 / 16 正文 / 15 签文 / 13 标签；间距按 8 的倍数
   ========================================================= */
.lot-top {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin: 8px 0 16px;
}
/* 单签页整页统一一条 760px 内容栏：首屏与下方各节左右边缘对齐 */
/* 求签页、签文页、求签记录页统一 800px 宽（内容区 760），底部签号格子才放得下「观音灵签第100签」 */
.lot-page { max-width: 800px; }
/* 签纸原有规则带 :not(.lot-draw-page)，特异度更高，这里需同样带上才能覆盖 */
.lot-page:not(.lot-draw-page) .lot-top .lot-fu { width: 100%; max-width: 320px; margin: 0; }

/* 标题区两行：第一行「观音灵签第X签 · 吉凶 · 宫位」，第二行突出签名。
   h1 用 display: contents，让签号与签名分别落进网格，第一行才能和吉凶、宫位并排 */
/* flex 折行：签名不拆字；放不下时吉凶与宫位整体换到下一行 */
.lot-top-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
}
.lot-top-no { flex-basis: 100%; }
.lot-top-name { white-space: nowrap; }
/* 宽屏时标题行可向右越出栏宽，长签名（6 字）也能与吉凶、宫位排在同一行 */
@media (min-width: 821px) { .lot-top-head { margin-right: -140px; } }
.lot-top-head h1 { display: contents; }
.lot-top-no {
  grid-column: 1 / -1;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--ink-soft);
}
.lot-top-meta {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0 0 6px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.lot-top-meta .lot-level { font-size: 13px; padding: 1px 10px 1px calc(10px + .2em); }
/* 签名较长（如「曹操话梅止渴」）时这一列会被挤窄，吉凶与宫位不许折行 */
.lot-top-meta > * { flex-shrink: 0; white-space: nowrap; }
.lot-top-name {
  grid-column: 1;
  grid-row: 2;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  color: var(--ink);
}
.lot-top-summary {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 600;
  color: var(--ink);
}
.lot-summary-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 0 7px;
  border-radius: 5px;
  background: #B03A2E; /* 朱砂红，同签纸印章色系 */
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

.lot-facts { margin: 16px 0 0; border-top: 1px solid var(--paper-line); }
.lot-facts > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
}
.lot-facts dt {
  font-size: 13px;
  line-height: 24px;
  letter-spacing: .12em;
  color: var(--gold-deep);
}
.lot-facts dd { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink); }

/* 两个入口并排：提问精准解签（主）/ 查看通用解签（次） */
.lot-top-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lot-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.lot-act-primary { color: #fffaf0; background: var(--gold-deep); border: 1px solid var(--gold-deep); }
.lot-act-primary:hover { color: #fffaf0; background: #7A5C29; border-color: #7A5C29; }
.lot-act:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 逐句白话：原句 | 白话 两栏 */
.lot-lines-t { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.lot-lines-t tr { border-bottom: 1px solid var(--paper-line); }
.lot-lines-t th {
  width: 9.5em;
  padding: 10px 18px 10px 0;
  text-align: left;
  vertical-align: top;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .1em;
  white-space: nowrap;
  color: var(--ink);
}
.lot-lines-t td { padding: 10px 0; color: var(--ink-soft); }

/* 详细解签：带框表格（事项 | 仙机 | 解读） */
.lot-jq-wrap {
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.lot-jq-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.lot-jq-t th, .lot-jq-t td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--paper-line);
  line-height: 1.75;
}
.lot-jq-t thead th {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--ink-soft);
  background: var(--bg-soft);
  padding-top: 10px;
  padding-bottom: 10px;
}
.lot-jq-t tbody th {
  width: 7.5em;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.lot-jq-t td:nth-child(2) { width: 8em; white-space: nowrap; color: var(--gold-deep); }
.lot-jq-t td:last-child { color: var(--ink); }
.lot-jq-t tbody tr:nth-child(even) { background: rgba(184, 155, 94, .05); }
.lot-jq-t tfoot th { font-family: var(--serif); font-weight: 600; color: var(--ink); white-space: nowrap; }
.lot-jq-t tfoot th, .lot-jq-t tfoot td { border-bottom: 0; }
.lot-jq-none { color: var(--ink-faint); }

@media (max-width: 820px) {
  .lot-top { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
  .lot-top { grid-template-columns: 1fr; gap: 32px; }
  .lot-page:not(.lot-draw-page) .lot-top .lot-fu { max-width: 320px; margin: 0 auto; }
  .lot-top-name { font-size: 34px; }
}
@media (max-width: 520px) {
  .lot-lines-t th, .lot-lines-t td { display: block; width: auto; padding: 0; }
  .lot-lines-t th { padding-top: 10px; }
  .lot-lines-t td { padding: 2px 0 10px; font-size: 15px; }
}

/* 今日运势：每日一签用户最关心的内容，单独加强 */
#yunshi .lot-today {
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-left: 3px solid var(--gold-deep);
  border-radius: 4px 14px 14px 4px;
}
.lot-today-text { margin: 0 !important; font-family: var(--serif); font-size: 19px; line-height: 1.9; color: var(--ink); }

@media (max-width: 520px) {
  #yunshi .lot-today { padding: 20px; }
  .lot-today-text { font-size: 17px; }
}

/* 今日运势卡片底部的跳转提示 */
.lot-today-more {
  margin: 12px 0 0 !important;
  font-size: 14px;
  color: var(--ink-soft);
}
.lot-today-more a { color: var(--gold-deep); border-bottom: 1px solid var(--card-edge); text-decoration: none; }
.lot-today-more a:hover { color: var(--gold-deep); border-bottom-color: var(--gold-deep); }

/* 观音灵签 1-100 签目录：全称格子，悬停时变色并换成签名 */
.lot-grid {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.lot-grid li { margin: 0; }
.lot-cell {
  position: relative;
  display: block;
  height: 40px;
  border: 1px solid var(--card-edge);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
/* 两段文字叠放在同一位置，靠透明度切换，格子尺寸不变 */
.lot-cell-no, .lot-cell-name {
  position: absolute;
  inset: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity .15s;
}
.lot-cell-no { text-overflow: ellipsis; }
.lot-cell-name { opacity: 0; font-family: var(--serif); letter-spacing: .08em; }
.lot-cell-name { display: block; line-height: 38px; text-align: center; text-overflow: ellipsis; }
a.lot-cell:hover, a.lot-cell:focus-visible { color: #fffaf0; background: var(--gold-deep); border-color: var(--gold-deep); }
a.lot-cell:hover .lot-cell-no, a.lot-cell:focus-visible .lot-cell-no { opacity: 0; }
a.lot-cell:hover .lot-cell-name, a.lot-cell:focus-visible .lot-cell-name { opacity: 1; }
.lot-cell.is-current { color: var(--gold-deep); border-color: var(--gold-deep); background: var(--bg-soft); }
.lot-cell.is-off { color: var(--ink-faint); background: transparent; border-color: var(--paper-line); }

@media (max-width: 720px) {
  .lot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  /* 窄屏：三栏挤不下，改为每行一张小卡片——事项与仙机同一行，解读另起一行 */
  .lot-jq-t thead { display: none; }
  .lot-jq-t tbody tr, .lot-jq-t tfoot tr {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--paper-line);
  }
  .lot-jq-t tfoot tr { border-bottom: 0; }
  .lot-jq-t th, .lot-jq-t td { padding: 0; border-bottom: 0; font-size: 14px; width: auto !important; }
  .lot-jq-t tbody td:last-child, .lot-jq-t tfoot td { grid-column: 1 / -1; margin-top: 6px; }
  .lot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lot-cell { height: 36px; font-size: 12px; }
  .lot-cell-name { line-height: 34px; }
}

/* =========================================================
   精准解签（收费项目）：浅色便于阅读；用更深一档的暖金纸色、
   金色细线双框与页面区分，按钮保留金色渐变
   ========================================================= */
.lot-bridge {
  margin: 0 0 14px !important;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}
.lot-premium-wrap .lot-premium {
  --pm-line: rgba(140, 106, 49, .28);
  --pm-gold: #B8913F;
  position: relative;
  margin: 0;
  padding: 28px 32px 26px;
  border: 1px solid rgba(140, 106, 49, .55);
  border-radius: 4px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 255, 255, .55), transparent 50%),
    linear-gradient(170deg, #F8EBCF, #F1DDB6);
  box-shadow: inset 0 0 0 5px #F6E6C6, inset 0 0 0 6px rgba(140, 106, 49, .32), 0 22px 44px -30px rgba(92, 63, 33, .45);
}
/* 旧规则 .lot-premium > p 会把颜色压成灰色，这里提高特异度 */
.lot-premium-wrap .lot-premium .lot-premium-eyebrow {
  margin: 0 0 6px !important;
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--gold-deep);
}
.lot-premium-wrap .lot-premium h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}
.lot-premium-points {
  list-style: none;
  margin: 0 0 18px !important;
  padding: 14px 0 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border-top: 1px solid var(--pm-line);
  border-bottom: 1px solid var(--pm-line);
}
.lot-premium-points li { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.lot-premium-points b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.lot-premium-points b::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 8px 3px 0;
  transform: rotate(45deg);
  background: var(--gold-deep);
}

.lot-premium-wrap .lot-form { gap: 14px; margin-top: 0; }
.lot-chips { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lot-chips legend { margin-bottom: 8px; padding: 0; font-size: 14px; color: var(--ink-soft); }
.lot-chips label { display: inline-flex; cursor: pointer; }
/* 隐藏的单选框：.lot-form input 设了 width: 100%，不缩小会撑出页面造成横向滚动 */
.lot-premium-wrap .lot-chips input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.lot-chips span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px;
  border: 1px solid var(--pm-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .7);
  font-size: 14px;
  color: var(--ink);
  transition: background .15s, border-color .15s, color .15s;
}
.lot-chips label:hover span { border-color: var(--gold-deep); }
.lot-chips input:checked + span { color: #3A2A12; background: linear-gradient(180deg, #E4C27A, #C9A04E); border-color: transparent; }
.lot-chips input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.lot-premium-wrap .lot-field { display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.lot-premium-wrap .lot-form textarea {
  min-height: 84px;
  color: var(--ink);
  background: #FFFDF8;
  border: 1px solid var(--pm-line);
}
.lot-premium-wrap .lot-form textarea:focus-visible { outline: 1px solid var(--gold-deep); outline-offset: 0; border-color: var(--gold-deep); }

/* 出生年份：下拉选择，自绘箭头 */
.lot-premium-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lot-premium-wrap .lot-field-inline { grid-template-columns: auto auto auto; align-items: center; gap: 8px; }
.lot-field-inline > span:not(.lot-select) { font-size: 12px; color: var(--ink-faint); }
.lot-select { position: relative; display: inline-block; }
.lot-select::after {
  content: '';
  position: absolute;
  right: 14px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg);
  pointer-events: none;
}
.lot-premium-wrap .lot-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 116px;
  height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--pm-line);
  border-radius: 999px;
  background: #FFFDF8;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.lot-premium-wrap .lot-select select:hover { border-color: var(--gold-deep); }
.lot-premium-wrap .lot-select select:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.lot-premium-wrap .lot-premium-submit {
  height: 44px;
  padding: 0 32px;
  font-size: 15px;
  letter-spacing: .2em;
  color: #3A2A12;
  background: linear-gradient(180deg, #E4C27A, #C9A04E);
  border: 0;
  box-shadow: 0 8px 18px -10px rgba(140, 106, 49, .8);
}
.lot-premium-wrap .lot-premium-submit:hover { color: #3A2A12; background: linear-gradient(180deg, #EBCB86, #D1A955); }
.lot-premium-wrap .lot-form-msg { color: var(--gold-deep); }

@media (max-width: 520px) {
  .lot-premium-wrap .lot-premium { padding: 24px 20px 22px; }
  .lot-premium-wrap .lot-premium h2 { font-size: 21px; }
  .lot-premium-points { grid-template-columns: 1fr; gap: 10px; }
  .lot-premium-foot { flex-direction: column; align-items: stretch; }
  .lot-premium-wrap .lot-field-inline { grid-template-columns: auto auto 1fr; }
  .lot-premium-wrap .lot-select, .lot-premium-wrap .lot-select select { width: 100%; }
  .lot-premium-wrap .lot-premium-submit { width: 100%; }
}

/* =========================================================
   求签记录页
   ========================================================= */
.lot-history-page { max-width: 800px; }
.lot-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 24px;
}
.lot-history-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .08em;
}
.lot-history-state { margin: 0; padding: 40px 0; text-align: center; color: var(--ink-soft); }
.lot-history-state p { margin: 0 0 16px; }
.lot-act-ghost-light { color: var(--ink); background: transparent; border: 1px solid var(--card-edge); cursor: pointer; font: inherit; font-size: 14px; }
.lot-act-ghost-light:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
button.lot-act { cursor: pointer; font: inherit; font-size: 14px; }

/* 记录列表：按月分组的卡片网格（宽屏三列、中屏两列、手机一列），整张卡片可点。
   签名 / 吉凶 / 本签精髓都按签号从签文索引读取 */
.lot-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lot-history-month {
  grid-column: 1 / -1;
  margin: 12px 0 -2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-faint);
}
.lot-history-month:first-child { margin-top: 0; }
.lot-history-item { margin: 0; display: flex; }
.lot-history-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.lot-history-link:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--card-edge)); box-shadow: 0 6px 16px -10px rgba(42, 37, 32, .35); }
.lot-history-date { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-faint); }
.lot-history-date .lot-level { margin-left: auto; }
.lot-history-date b { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.lot-history-main { min-width: 0; flex: 1; }
.lot-history-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lot-history-no { font-size: 12px; color: var(--ink-soft); }
.lot-history-name { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.lot-history-link:hover .lot-history-name { color: var(--gold-deep); }
.lot-history-date .lot-level { font-size: 12px; padding: 0 8px 0 calc(8px + .2em); }
.lot-history-summary {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lot-history-type { font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }

@media (max-width: 720px) { .lot-history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .lot-history-head h1 { font-size: 24px; }
  .lot-history-list { grid-template-columns: 1fr; }
}
.lot-history-more { text-align: center; margin-top: 16px; }
