:root {
  --bg: #f3f4fb;
  --card: #ffffff;
  --text: #1f2330;
  --muted: #7a7f92;
  --primary: #5b6cff;
  --primary-dark: #4453e6;
  --danger: #e5484d;
  --border: #e6e8f0;
  --radius: 16px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景装饰光斑 */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}
.blob-1 { width: 420px; height: 420px; background: #8ea2ff; top: -120px; left: -120px; }
.blob-2 { width: 380px; height: 380px; background: #b39cff; bottom: -120px; right: -100px; }

/* 自定义页面背景（仅首页/跳转页，二级页会移除该类） */
/* 手机端兼容：iOS Safari 不支持 background-attachment: fixed，
   直接写在 body 上会导致背景不显示或整图异常放大错位。
   统一改用固定定位图层实现「背景不随页面滚动」，手机/电脑表现一致 */
body.custom-bg {
  background: var(--bg);   /* 背景图层加载前的保底色，避免闪白 */
}
body.custom-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page-bg) center center / cover no-repeat;
  pointer-events: none;
}
body.custom-bg .bg-blob { display: none; }

/* 自定义背景时：卡片图层完全透明，背景图完整透出 */
body.custom-bg .page .card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}
/* 文字加描影保证在任意背景图上可读 */
body.custom-bg .title,
body.custom-bg .subtitle,
body.custom-bg .section-title,
body.custom-bg .stats,
body.custom-bg .footer-tip,
body.custom-bg .photo-main-cap,
body.custom-bg .media-cap,
body.custom-bg .announcement {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .4);
}
body.custom-bg .announcement {
  background: rgba(0, 0, 0, .25);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}
/* 输入框 / 按钮保留半透明底，保证可见可点 */
body.custom-bg #pwInput,
body.custom-bg input {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .45);
  color: #1f2330;
}
body.custom-bg input::placeholder { color: rgba(31, 35, 48, .55); }
body.custom-bg .btn.ghost,
body.custom-bg .tip-links a,
body.custom-bg .head-actions .btn {
  background: rgba(255, 255, 255, .45);
  border-color: rgba(255, 255, 255, .4);
  color: #1f2330;
  text-shadow: none;
}
body.custom-bg .tip-links a { color: #1f2330; }
body.custom-bg .btn.primary { text-shadow: none; }
/* 媒体内容正常展示：照片/视频自带白色底与圆角，不受透明化影响 */
body.custom-bg .photo-main,
body.custom-bg .media-card video,
body.custom-bg .media-card img {
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 560px;   /* 全页收窄，沿中轴线居中对齐 */
  margin: 0 auto;
  padding: 48px 16px 64px;
}

.hidden { display: none !important; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 10px 40px rgba(60, 70, 140, .08);
}

/* ---------- 密码门 ---------- */
.gate { text-align: center; }

.logo {
  width: 72px; height: 72px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6a7bff, #9b6bff);
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(91, 108, 255, .35);
}
.logo.small { width: 52px; height: 52px; font-size: 28px; border-radius: 14px; margin-bottom: 12px; }
/* 站点标识区（二级页）：站点标识+公告+收藏/刷新/退出，位于「看签定果」下方、链接列表上方；顶部「神赐秘境」「密径获取」保持原位 */
.head-card.logo-foot { margin-top: 2px; }
/* 顶部标题卡（「一处神址」）：渐变淡紫白底色 */
.head-card.head-top { background: linear-gradient(160deg, #ede7ff 0%, #f6f3ff 45%, #ffffff 100%); }

/* ---------- 站点标题：金色渐变 + 四面八方照耀的光晕 ---------- */
.title {
  --title-glow:
    0 0 4px rgba(206, 146, 26, .38),
    0 0 9px rgba(220, 162, 44, .24),
    0 -4px 9px rgba(216, 168, 74, .16),
    0 4px 9px rgba(216, 168, 74, .16),
    -4px 0 9px rgba(216, 168, 74, .16),
    4px 0 9px rgba(216, 168, 74, .16),
    -3px -3px 11px rgba(206, 150, 56, .12),
    3px -3px 11px rgba(206, 150, 56, .12),
    -3px 3px 11px rgba(206, 150, 56, .12),
    3px 3px 11px rgba(206, 150, 56, .12);
  position: relative;
  isolation: isolate;
  display: inline-block;   /* 让光晕以文字实际宽度为基准，而不是整行 */
  max-width: 100%;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fff6cf 0%, #ffd964 30%, #e2a92e 62%, #b07614 84%, #7c4d06 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--title-glow);
}
/* 四面八方的放射光柱：缓慢旋转，越往外越淡 */
.title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 230%;
  transform: translate(-50%, -50%);
  z-index: -2;
  pointer-events: none;
  opacity: .3;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(210, 156, 42, .12) 0deg 1.2deg,
    rgba(206, 150, 40, .03) 1.2deg 4deg,
    transparent 4deg 16deg);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .35) 30%, transparent 58%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .35) 30%, transparent 58%);
  animation: titleRays 36s linear infinite;
}
/* 中心暖金光晕：呼吸明暗，让光像是从字里透出来 */
.title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128%;
  height: 190%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(252, 220, 140, .26) 0%,
    rgba(244, 184, 66, .13) 34%,
    rgba(226, 156, 28, .04) 58%,
    rgba(226, 156, 28, 0) 72%);
  animation: titleHalo 3.8s ease-in-out infinite;
}
/* 自定义背景页上沿用同一套金色与光晕（覆盖原白字规则） */
body.custom-bg .title {
  color: transparent;
  text-shadow: var(--title-glow);
}

@keyframes titleHalo {
  0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.97); }
  50% { opacity: .8; transform: translate(-50%, -50%) scale(1.03); }
}
@keyframes titleRays {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.subtitle { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.pw-row { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }
#pwInput {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border .2s;
}
#pwInput:focus { border-color: var(--primary); }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  user-select: none;
}
.btn:active { transform: scale(.96); }
.btn.primary {
  background: linear-gradient(135deg, #6a7bff, #5b6cff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(91, 108, 255, .3);
}
.btn.primary:hover { background: var(--primary-dark); }
/* 首页密码门「确认」按钮：金色底（纯色块，不加光效） */
#pwBtn {
  background: linear-gradient(135deg, #f0c455, #d5a127);
  color: #4a3208;
  font-weight: 600;
  box-shadow: none;
}
#pwBtn:hover { background: linear-gradient(135deg, #e6b845, #c3931d); }
.btn.ghost {
  background: #f2f3fa;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: #e9ebf5; }

.error { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 6px; }

.tip-links {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.tip-links a {
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
  background: #f0f2ff;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .2s;
}
.tip-links a:hover { background: #e4e8ff; }

/* 密码门「加入交流群领福利」：电脑悬停 / 手机点击 → 弹出加群页的小图预览 */
/* 只有该页确实有图片时才弹（.has-pic）；视频无法用静态小图表达，不放进弹层，点进页面才看 */
.tip-group { position: relative; display: block; }
.tip-group > a { display: block; }
.tip-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 15;
  display: block;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(224, 191, 106, .5);
  background: #fff;
  box-shadow: 0 16px 40px rgba(30, 30, 60, .24);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.tip-pop img {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.tip-group.has-pic.open .tip-pop {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto;
}
/* 电脑端：鼠标移到「加入交流群领福利」上直接显示小图 */
@media (hover: hover) and (pointer: fine) {
  .tip-group.has-pic:hover .tip-pop {
    opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto;
  }
}

.footer-tip { color: var(--muted); font-size: 12px; margin-top: 10px; }

/* ---------- 链接列表 ---------- */
.head-card { text-align: center; margin-bottom: 20px; padding: 28px 24px; }
.announcement {
  background: #fff8e6;
  border: 1px solid #ffe9b0;
  color: #8a6d1d;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 14px 0 18px;
}
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.head-actions .btn { padding: 8px 14px; font-size: 13px; }

.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.link-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s, box-shadow .15s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(60, 70, 140, .12); }

.link-name { font-size: 16px; font-weight: 600; word-break: break-all; }
.link-name .at {
  display: inline-block;
  background: #eef0ff;
  color: var(--primary);
  border-radius: 6px;
  padding: 1px 7px;
  margin-right: 6px;
  font-size: 14px;
}
.link-desc { color: var(--muted); font-size: 13px; flex: 1; min-height: 18px; }
.link-actions { display: flex; gap: 8px; margin-top: 4px; }
.link-actions .btn { padding: 7px 14px; font-size: 13px; flex: 1; text-align: center; }

.stats { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }

/* ---------- 环绕图舞台（内圈+外圈紧贴中轴照片，老虎机式，无间隔） ---------- */
.photo-stage { position: relative; }
#ringLayers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ring-layer { position: absolute; inset: 0; pointer-events: none; }
/* 同一系列图片之间串联的金线（铅笔头粗细，穿过每张图中心） */
.ring-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.ring-link rect,
.ring-link line {
  fill: none;
  stroke: #e0bf6a;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1.5px rgba(224, 191, 106, .8));
}
.ring-item {
  position: absolute;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, .8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  pointer-events: auto;
  transition: box-shadow .25s, border-color .25s;
}
.ring-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 底部条带模式：每张图正下方的文字介绍（白字，统一紫蓝底，宽度与对应图片对齐，字号随图自适应） */
.ring-caption {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  padding: 3px 4px;
  border-radius: 6px;
  background: rgba(92, 96, 220, .92);
  color: #fff;
  text-align: center;
  line-height: 1.4;
  word-break: break-all;
  box-shadow: 0 3px 10px rgba(60, 64, 160, .35);
}
/* 系列与系列之间的金黄色粗分隔线 */
.ring-divider {
  position: absolute;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(245,197,66,0), #f5c542 18%, #ffe08a 50%, #f5c542 82%, rgba(245,197,66,0));
  box-shadow: 0 0 6px rgba(245, 197, 66, .55);
}
/* 系列介绍：白字紫蓝底圆角块，宽度与该系列条带对齐（留空不显示） */
.ring-series-caption {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(92, 96, 220, .92);
  color: #fff;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
  word-break: break-all;
  box-shadow: 0 3px 10px rgba(60, 64, 160, .35);
}
/* 跑马灯扫过的光（金光） */
/* [patch-marquee] 指定图点亮前的跑马灯预热：金色流动光边绕图旋转（特效占位通道，金光前预热，转速/时长后台可调） */
.ring-item.marquee {
  overflow: visible;                       /* 让旋转光边露出图片外框 */
  border-color: rgba(255, 205, 80, .85);
  box-shadow: 0 0 10px 2px rgba(255, 200, 60, .45);
}
.ring-item.marquee img { border-radius: 10px; }   /* overflow 打开后由 img 自身保持圆角 */
.ring-item.marquee::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 12px;
  padding: 3px;
  background: conic-gradient(from 0deg,
    transparent 0 10%, #ffd700 16%, #fff3c4 22%, transparent 28%,
    transparent 44%, #ffd700 50%, #fff3c4 56%, transparent 62%,
    transparent 78%, #ffd700 84%, #fff3c4 90%, transparent 96%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  animation: ufx-chase var(--ufx-chase-dur, 1.1s) linear infinite;   /* 转速由后台「跑马灯速度」写入 --ufx-chase-dur */
  pointer-events: none;
  z-index: 2;
}
@keyframes ufx-chase { to { transform: rotate(360deg); } }
/* 金光高亮（跑马灯最终停住的图：金光 + 金丝亮光） */
.ring-item.aurora {
  border-color: #ffd700;
  box-shadow:
    0 0 12px 3px rgba(255, 200, 60, .95),
    0 0 26px 8px rgba(255, 190, 40, .55),
    0 0 30px 12px rgba(168, 85, 247, .6),
    0 0 48px 20px rgba(140, 60, 255, .35),
    inset 0 0 8px 3px rgba(255, 215, 0, .6),
    inset 0 0 16px 7px rgba(185, 110, 255, .45);
  outline: 2px dashed rgba(255, 215, 0, .9);   /* 金丝亮边 */
  outline-offset: 2px;
  animation: auroraPulse 1.6s ease-in-out infinite;
}
@keyframes auroraPulse {
  0%, 100% { box-shadow: 0 0 12px 3px rgba(255,200,60,.95), 0 0 26px 8px rgba(255,190,40,.55), 0 0 30px 12px rgba(168,85,247,.6), 0 0 48px 20px rgba(140,60,255,.35), inset 0 0 8px 3px rgba(255,215,0,.6), inset 0 0 16px 7px rgba(185,110,255,.45); }
  50% { box-shadow: 0 0 18px 5px rgba(255,205,70,1), 0 0 38px 11px rgba(255,190,40,.7), 0 0 40px 16px rgba(178,105,255,.75), 0 0 60px 26px rgba(140,60,255,.45), inset 0 0 11px 4px rgba(255,215,0,.85), inset 0 0 20px 9px rgba(195,125,255,.6); }
}

/* ---------- 照片展示（居中单张，位于链接上方） ---------- */
/* 合并面板：照片/上香/视频同属一个透明框，去掉卡片底色与边框 */
.media-panel { margin-bottom: 20px; }
.media-panel .card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 22px;
}
.media-panel .card:last-child { padding-bottom: 0; }
.media-panel .photo-section { margin-bottom: 0; }
.photo-section { margin-bottom: 20px; text-align: center; }
.section-title { font-size: 18px; margin-bottom: 14px; }
.photo-main {
  display: block;
  /* 固定主图尺寸：3:4 比例，环绕图以此为基准工整对称排列 */
  width: min(340px, 82vw);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-height: none;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 32px rgba(60, 70, 140, .14);
  background: #fff;
}
.photo-main-cap { color: var(--muted); font-size: 13px; margin-top: 10px; min-height: 16px; }
.photo-thumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.photo-thumbs img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s, border-color .2s;
}
.photo-thumbs img:hover { opacity: 1; }
.photo-thumbs img.active { border-color: var(--primary); opacity: 1; }

/* 主图为动图：按原始比例自适应展示（不裁剪） */
.photo-main.natural { aspect-ratio: auto; object-fit: contain; }

/* 主图为视频：居中大画幅（比单张图片更大，作为主打展示），右下角可开声音 */
.photo-video-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.photo-main-video {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: auto;
  max-height: min(80vh, 720px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(224, 191, 106, .5);
  box-shadow: 0 18px 44px rgba(20, 24, 50, .24), 0 0 28px rgba(224, 191, 106, .14);
  background: #0b0d16;
  cursor: pointer;
}
/* 自定义背景页：视频保持深色底，不被 .photo-main 的白底规则覆盖 */
body.custom-bg .photo-main.photo-main-video {
  background: #0b0d16;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 28px rgba(224, 191, 106, .16);
}
/* 声音开关：默认静音自动播放，点一下出声（仅照片区视频带声音） */
.photo-sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(10, 14, 26, .52);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  z-index: 2;
}
.photo-sound:hover { background: rgba(10, 14, 26, .78); }
.photo-sound:active { transform: scale(.94); }
.photo-sound.on {
  color: #ffdf8a;
  border-color: rgba(255, 200, 60, .8);
  background: rgba(58, 40, 8, .62);
}
.photo-thumbs video {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .7;
  background: #0b0d16;
}
.photo-thumbs video:hover { opacity: 1; }
.photo-thumbs video.active { border-color: var(--primary); opacity: 1; }

/* ---------- 链接列表（单列居中，位于照片下方） ---------- */
.link-list { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 首页跳转页内容（获取密码/加群） ---------- */
.media-list { display: flex; flex-direction: column; gap: 16px; }
.media-card { padding: 14px; text-align: center; }
.media-card img,
.media-card video {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
}
.media-cap { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- 二级页视频作品（最多 4 个：2×2 竖屏卡片，每张下方带说明） ---------- */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 14px;
}
.video-item {
  min-width: 0;
  flex: 0 0 calc((100% - 14px) / 2);
  max-width: calc((100% - 14px) / 2);
  display: flex;
  flex-direction: column;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0d16;
  border: 1px solid rgba(224, 191, 106, .38);
  box-shadow: 0 8px 22px rgba(20, 24, 50, .16);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0b0d16;
}
/* 防偷窥磨砂膜：到设定的公开时间前盖住画面（朦胧半透、若隐若现），时间一到自动揭开播放 */
.video-frame.locked video {
  filter: blur(11px) saturate(.68) brightness(1.03);
  transform: scale(1.08);
}
.vf-frost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1) 58%),
    repeating-linear-gradient(48deg, rgba(255, 255, 255, .1) 0 2px, rgba(255, 255, 255, .03) 2px 5px),
    linear-gradient(160deg, rgba(246, 249, 255, .15), rgba(212, 221, 244, .26));
  backdrop-filter: blur(8px) saturate(.72) brightness(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(.72) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, .44);
  box-shadow: inset 0 0 46px rgba(255, 255, 255, .3);
  border-radius: inherit;
  animation: vfFadeIn .3s ease;
}
@keyframes vfFadeIn { from { opacity: 0; } to { opacity: 1; } }
.vf-cd {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(20, 24, 60, .55);
  font-variant-numeric: tabular-nums;
  background: rgba(24, 28, 58, .46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: 0 2px 12px rgba(18, 22, 52, .22);
}
.video-frame.unlocking .vf-frost { opacity: 0; transition: opacity .5s ease; }

/* 手机端自动播放被拦截时的兜底播放按钮（点一下才播，避免整块黑屏） */
.vf-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .62);
  background: rgba(16, 20, 44, .48);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(10, 14, 36, .35);
}
.video-item.need-play .vf-play { display: flex; }
.video-item.video-error .vf-play { display: none; }
/* 定时公开未到：磨砂膜下不露出播放按钮 */
.video-frame.locked .vf-play { display: none !important; }
.video-item .vf-play span { transform: translateX(2px); }

.video-item .media-cap {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  word-break: break-word;
  padding: 0 2px;
}
/* 电脑端悬停：轻微上浮 + 金光描边 */
@media (hover: hover) and (pointer: fine) {
  .video-item:hover .video-frame {
    transform: translateY(-3px);
    border-color: rgba(255, 200, 60, .85);
    box-shadow: 0 12px 28px rgba(200, 160, 60, .34), 0 0 14px rgba(255, 200, 60, .35);
  }
}
/* 手机端：间距与字号收紧 */
@media (max-width: 420px) {
  .video-grid { gap: 14px 10px; }
  .video-item { flex: 0 0 calc((100% - 10px) / 2); max-width: calc((100% - 10px) / 2); }
  .video-item .media-cap { font-size: 11.5px; }
}

/* ---------- 上香祈愿 ---------- */
.incense-section { text-align: center; }
.incense-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0 14px;
  position: relative;
}

/* ---------- 神农鼎香炉（一体设计） ---------- */
.ding-wrap { position: relative; width: min(250px, 60vw); margin: 2px auto 0; }
.ding-img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(80, 40, 15, .30));
}
/* 鼎口火光：缓慢呼吸的暖光（与鼎中五彩火焰呼应） */
.ding-glow {
  position: absolute;
  left: 50%; top: 26%;
  width: 80%; height: 36%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 176, 80, .32), rgba(150, 220, 255, .10) 46%, transparent 68%);
  mix-blend-mode: screen;
  filter: blur(2px);
  animation: dingBreath 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dingBreath {
  0%, 100% { opacity: .5;  transform: translate(-50%, -50%) scale(.95); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.07); }
}

/* 香插在鼎口：容器底边压在鼎口一线（约图高 1/3 处），香身向上、烟向上升起 */
.incense-sticks {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 29.5%;   /* 底边压在新图鼎口一线（约图高 30% 处） */
  pointer-events: none;
}
.incense-sticks .stick {
  position: absolute;
  bottom: -6px;
  width: 4px;
  background: linear-gradient(#7a4f2c, #96602f);
  border-radius: 2px;
  transform-origin: bottom center;
  animation: stickGrow .55s ease-out both, stickSway 4.5s ease-in-out .55s infinite;
}
.incense-sticks .stick:nth-child(1) { left: calc(50% - 13px); height: 66px; }
.incense-sticks .stick:nth-child(2) { left: calc(50% - 2px);  height: 77px; }
.incense-sticks .stick:nth-child(3) { left: calc(50% + 9px);  height: 69px; }
.incense-sticks .stick:only-child   { left: calc(50% - 2px);  height: 75px; }
/* 上香瞬间：香从鼎口"插"进去的生长动画 */
@keyframes stickGrow {
  from { transform: scaleY(0); opacity: .2; }
  to   { transform: scaleY(1); opacity: 1; }
}
.incense-sticks .stick .ember {
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffd27a, #ff7a1a 55%, #d43a12);
  box-shadow: 0 0 8px 2px rgba(255, 122, 26, .55);
  animation: emberPulse 1.4s ease-in-out infinite;
}
.incense-sticks .stick .smoke {
  position: absolute;
  top: -6px; left: 50%;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: rgba(215, 215, 220, .55);
  filter: blur(3px);
  animation: smokeRise 3.2s linear infinite;
}
.incense-sticks .stick .smoke.s2 { animation-delay: 1s; }
.incense-sticks .stick .smoke.s3 { animation-delay: 2.1s; }

@keyframes stickSway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}
@keyframes emberPulse {
  0%, 100% { opacity: .85; box-shadow: 0 0 6px 2px rgba(255, 122, 26, .45); }
  50% { opacity: 1; box-shadow: 0 0 10px 3px rgba(255, 122, 26, .65); }
}
@keyframes smokeRise {
  0%   { transform: translate(0, 0) scale(.8); opacity: 0; }
  15%  { opacity: .55; }
  100% { transform: translate(-10px, -78px) scale(2.4); opacity: 0; }
}
.incense-sticks .stick:nth-child(2) .smoke { animation-name: smokeRise2; }
.incense-sticks .stick:nth-child(3) .smoke { animation-name: smokeRise3; }
@keyframes smokeRise2 {
  0%   { transform: translate(0, 0) scale(.8); opacity: 0; }
  15%  { opacity: .5; }
  100% { transform: translate(12px, -72px) scale(2.2); opacity: 0; }
}
@keyframes smokeRise3 {
  0%   { transform: translate(0, 0) scale(.8); opacity: 0; }
  15%  { opacity: .5; }
  100% { transform: translate(-14px, -66px) scale(2); opacity: 0; }
}

.burner { width: 200px; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.incense-actions { display: flex; gap: 10px; justify-content: center; }
.incense-actions .btn { min-width: 130px; }

/* 二维码弹窗按钮 + 弹出图片（电脑悬停 / 手机点击） */
.qr-box {
  position: relative;
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
/* 放在按钮行里的变体（二级页「密径获取」） */
.qr-box.inline { margin-top: 0; }
.qr-pop-empty {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7f92;
  font-size: 13px;
  background: #f7f8fc;
  border-radius: 8px;
}
.head-actions .qr-trigger { font-size: 13px; padding: 8px 16px; letter-spacing: 1px; }
.qr-trigger {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8a5a00;
  padding: 9px 24px;
  border-radius: 999px;
  border: 1px solid rgba(224, 191, 106, .8);
  background: linear-gradient(180deg, #fff8e3, #ffe8b4);
  box-shadow: 0 4px 14px rgba(200, 160, 60, .22);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.qr-trigger:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200, 160, 60, .34); }
.qr-trigger:active { transform: translateY(0); }

/* 弹出层：默认隐藏，悬停（电脑）或 .open（手机点击）时显示 */
.qr-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 12;
  opacity: 0;
  visibility: hidden;
  transform: translate(calc(-50% + var(--pop-dx, 0px)), 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.qr-pop-card {
  background: #fff;
  padding: 10px 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(224, 191, 106, .55);
  box-shadow: 0 18px 44px rgba(30, 30, 60, .26);
  text-align: center;
}
.qr-pop-card img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.qr-pop-name {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #8a5a00;
}
.qr-box.open .qr-pop {
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-50% + var(--pop-dx, 0px)), 0);
  pointer-events: auto;
}
/* 电脑端：鼠标移到二维码按钮上直接显示 */
@media (hover: hover) and (pointer: fine) {
  .qr-box:hover .qr-pop {
    opacity: 1;
    visibility: visible;
    transform: translate(calc(-50% + var(--pop-dx, 0px)), 0);
    pointer-events: auto;
  }
}

/* ---------- 进人组团：整条金色大药丸，按钮与文字相连、无分界线 ---------- */
/* 注意：.media-panel .card 会把面板内卡片底框透明化，故此处用高特异性选择器 + !important 保住药丸底 */
.card.team-section {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 6px 8px 6px 12px !important;
  overflow: visible;   /* 弹出图片不被裁切 */
  background: linear-gradient(180deg, #fff8e3, #ffe8b4) !important;
  border: 1px solid rgba(224, 191, 106, .8) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(200, 160, 60, .22) !important;
}
/* 虚线圈只包住「进人组团」——让访客一眼看出这里能点、不只是文字 */
.team-section .qr-box {
  margin-top: 0;
  display: flex;
  align-items: center;
  padding: 0 !important;
  flex: 0 0 auto;
  border: 1.5px dashed rgba(198, 148, 34, .62);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
/* 悬停 / 展开 / 键盘聚焦时虚线转实线并高亮，进一步暗示可点 */
.team-section .qr-box:hover,
.team-section .qr-box.open,
.team-section .qr-box:focus-within {
  border-style: solid;
  border-color: #c9971f;
  background: #fffdf6;
  box-shadow: 0 0 0 3px rgba(224, 191, 106, .22);
}
.team-section .qr-box:hover,
.team-section .qr-box.open,
.team-section .qr-box:focus-within { animation: none; }
/* 按钮融入虚线胶囊：保留金色字面，去掉独立底 */
.team-section .qr-trigger {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 9px 18px;
  cursor: pointer;
}
/* 轻柔呼吸光晕：提示虚线框是可点区域 */
@keyframes teamBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 191, 106, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(224, 191, 106, .28); }
}
.team-section .qr-box { animation: teamBreathe 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .team-section .qr-box { animation: none; }
}
.team-section .qr-trigger:hover { transform: none; box-shadow: none; color: #b8860b; }
.team-intro {
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 460px;
  padding: 12px 26px 12px 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #8a5a00;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: none;
  display: flex;
  align-items: center;
}
/* 手机/小平板端：改为上下排，药丸转圆角矩形（768 与 .card 圆角覆盖断点一致，避免被覆盖回直角） */
@media (max-width: 768px) {
  .card.team-section { flex-direction: column; align-items: center; border-radius: 24px !important; }
  .card.team-section::after { inset: 5px; border-radius: 19px; }
  .team-section .qr-box { margin: 10px 0 2px; }
  .team-intro {
    width: 100%;
    max-width: none;
    padding: 8px 18px 14px;
    text-align: center;
    justify-content: center;
  }
}

/* ---------- 响应式适配（手机 / 平板 / 电脑） ---------- */
@media (max-width: 768px) {
  .page { padding: 28px 12px 48px; }
  .card { border-radius: 12px; }
  .gate { padding: 24px 20px; }
  .title { font-size: 22px; }
  .logo { width: 60px; height: 60px; font-size: 32px; }
  .head-actions .btn { flex: 1 1 40%; }
  .head-actions .qr-box { flex: 1 1 40%; }
  .photo-main { max-height: none; }
  .media-card video, .media-card img { max-height: 50vh; }
}

@media (max-width: 480px) {
  .page { padding: 14px 10px 32px; }
  .card { padding: 16px 14px; }
  .title { font-size: 20px; }
  .subtitle { font-size: 13px; }
  .pw-row { flex-direction: column; gap: 8px; }
  .pw-row .btn { width: 100%; padding: 11px; }
  #pwInput { padding: 11px 14px; font-size: 16px; }  /* 16px 防 iOS 聚焦缩放 */
  .tip-links a { font-size: 14px; padding: 9px; }
  .head-actions { gap: 6px; }
  .head-actions .btn { flex: 1 1 45%; font-size: 12px; padding: 9px 8px; }
  .link-actions .btn { padding: 10px; }
  .photo-thumbs img { width: 48px; height: 48px; }
  .photo-main { max-height: none; }
  .media-card video, .media-card img { max-height: 46vh; }
  .confirm-card { max-width: 320px; }
  .confirm-row .btn { min-width: 80px; }
}

@media (min-width: 1200px) {
  /* 大屏电脑：页面稍加宽松 */
  .page { max-width: 640px; }
  .photo-main { max-height: none; }
}

/* 触屏友好：按钮最小点击区域 */
.btn { min-height: 40px; }
@media (hover: none) {
  .btn:hover { transform: none; }
  .link-card:hover, .photo-item:hover { transform: none; box-shadow: none; }
}

/* ---------- 确认弹窗 ---------- */
.mask {
  position: fixed; inset: 0;
  background: rgba(20, 24, 40, .45);
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.confirm-card { max-width: 360px; width: 100%; text-align: center; padding: 26px 22px; }
.confirm-card p { font-size: 15px; word-break: break-all; margin-bottom: 18px; }
.confirm-row { display: flex; gap: 10px; justify-content: center; }
.confirm-row .btn { min-width: 100px; }

@media (max-width: 480px) {
  .card { padding: 24px 18px; }
  /* 页1 密码门：行距收紧，把纵向空间让给「江湖接送侠」 */
  .gate { padding: 18px 14px; }
  .link-list { grid-template-columns: 1fr; }
  .pw-row { flex-direction: column; }
}

/* ================= 三级页：神赐秘境 ================= */

/* 二级页入口：发光五彩字（紧跟"收藏 / 刷新"之后） */
.secret-entry {
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  cursor: pointer;
  background-image: linear-gradient(90deg, #ff5f6d, #ffc371, #7ef29d, #5bc8ff, #b57bff, #ff5f6d);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: secretFlow 6s linear infinite, secretGlow 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 120, 200, .65)) drop-shadow(0 0 14px rgba(120, 180, 255, .45));
  transition: transform .18s, filter .18s;
}
.secret-entry:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(255, 140, 220, .95)) drop-shadow(0 0 22px rgba(120, 190, 255, .75));
}
@keyframes secretFlow { to { background-position: 300% 0; } }
@keyframes secretGlow { 0%, 100% { opacity: .88; } 50% { opacity: 1; } }

/* 进入密码框：只有一个输入框，不做任何标注 */
#secretGate { z-index: 70; }
.secret-gate { width: min(340px, 88vw); padding: 22px 20px 16px; text-align: center; }
.secret-gate input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  letter-spacing: 4px;
  text-align: center;
  outline: none;
  font-family: inherit;
}
.secret-gate input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 108, 255, .15); }
.secret-gate .confirm-row { margin-top: 16px; }
.secret-gate .error { margin-top: 8px; }

/* 三级页整页（深色秘境底，竖向滚动） */
.secret-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 60px;
  color: #f4f1ff;
  background:
    radial-gradient(circle at 50% -10%, rgba(140, 120, 255, .30), transparent 62%),
    radial-gradient(circle at 50% 105%, rgba(255, 205, 120, .16), transparent 58%),
    linear-gradient(180deg, #0d0f22 0%, #151833 48%, #0b0d1d 100%);
}
body.secret-open { overflow: hidden; }

.secret-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px 12px;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(13, 15, 34, .94), rgba(13, 15, 34, .55));
}
.secret-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 5px;
  background-image: linear-gradient(90deg, #ffe08a, #ff9bd2, #9ab6ff, #ffe08a);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: secretFlow 7s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 200, 120, .5));
}
.secret-head .btn.ghost {
  color: #e9e6ff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .26);
}

.secret-stage { max-width: 1080px; margin: 0 auto; }
/* 一个系列 = 一块整体居中的条带，多个系列自上而下排列 */
.secret-series { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 0 10px; width: 100%; }
.secret-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px 14px; width: 100%; }
.secret-cell { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* 横向金线：穿过同一行每张图的中心（图片不透明，只在图与图之间可见） */
.secret-line {
  position: absolute;
  top: 0;
  left: 2%;
  right: 2%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(224, 191, 106, 0), #e0bf6a 8%, #ffe9a8 50%, #e0bf6a 92%, rgba(224, 191, 106, 0));
  box-shadow: 0 0 8px rgba(224, 191, 106, .55);
  z-index: 0;
}

.secret-item {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, .78);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transition: box-shadow .25s, border-color .25s;
}
.secret-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.secret-item.marquee { border-color: #ffe08a; box-shadow: 0 0 16px 5px rgba(255, 200, 60, .9); }
.secret-item.aurora {
  border-color: #ffd700;
  box-shadow:
    0 0 12px 3px rgba(255, 200, 60, .95),
    0 0 26px 8px rgba(255, 190, 40, .55),
    0 0 30px 12px rgba(168, 85, 247, .6),
    0 0 48px 20px rgba(140, 60, 255, .35),
    inset 0 0 8px 3px rgba(255, 215, 0, .6),
    inset 0 0 16px 7px rgba(185, 110, 255, .45);
  outline: 2px dashed rgba(255, 215, 0, .9);
  outline-offset: 3px;
  animation: auroraPulse 1.6s ease-in-out infinite;
}

.secret-cap {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(92, 96, 220, .92);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  word-break: break-all;
  box-shadow: 0 3px 10px rgba(20, 20, 60, .5);
}

.secret-divider {
  height: 4px;
  width: min(760px, 92vw);
  margin: 14px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(245, 197, 66, 0), #f5c542 18%, #ffe08a 50%, #f5c542 82%, rgba(245, 197, 66, 0));
  box-shadow: 0 0 10px rgba(245, 197, 66, .6);
}

.secret-series-caption {
  position: static;
  width: auto;
  max-width: min(720px, 92vw);
  font-size: 13px;
}
.secret-empty { text-align: center; color: #cfc9ff; padding: 70px 0; font-size: 14px; }

/* ---------- 满屏特效所属页提示（右下角，特效播放层 z-index 9999 之下） ---------- */
.fx-page-hint {
  position: fixed; right: 14px; bottom: 14px; z-index: 9000;
  background: rgba(30, 34, 48, .92); color: #ffd76a;
  border: 1px solid rgba(255, 215, 106, .45); border-radius: 999px;
  padding: 9px 16px; font-size: 13px; cursor: pointer; user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.fx-page-hint.hidden { display: none; }
.fx-page-hint:hover { background: rgba(48, 54, 74, .95); }


/* ---------- 蓝色分界线下方区块框：系列图（指定发亮/金光）+ 入群行，与特效占位区视觉区分（分界线颜色不变） ---------- */
.zone-frame {
  width: 100%;            /* 随父容器收缩：窄栏页（如正式版页2 560px 列）不溢出，宽容器页最多 1080px */
  max-width: min(1080px, 94vw);
  margin: 0 auto 16px;
  padding: 14px 10px 10px;
  border: 1.5px solid rgba(120, 160, 255, .48);
  border-radius: 14px;
  background: rgba(16, 22, 40, .38);
  box-shadow: inset 0 0 24px rgba(60, 90, 180, .10);
  box-sizing: border-box;
}
@media (max-width: 560px) {
  .zone-frame { padding: 10px 6px 6px; border-radius: 12px; margin-bottom: 10px; }
}

/* ---------- 指定图礼物特效（全屏覆盖层：只有声音开关 + 跳过） ---------- */
body.fx-open { overflow: hidden; }
.fx-stage {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(8, 6, 2, .30) 0%, rgba(0, 0, 0, .56) 100%);   /* 半透明暗底：托出特效细节，页面隐约可见 */
  opacity: 0; transition: opacity .3s ease;
}
.fx-stage.on { opacity: 1; }
.fx-stage.hidden { display: none !important; }
.fx-video {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;          /* 电脑横屏：整段特效完整可见 */
  background: transparent;      /* 透明化：黑边区域透出页面原背景 */
}
/* 手机竖屏：铺满整屏（按屏幕比例自适应裁切） */
@media (max-aspect-ratio: 3/4) {
  .fx-video { object-fit: cover; }
}
.fx-ctrl {
  position: absolute; z-index: 2;
  right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 10px;
}
.fx-btn {
  -webkit-appearance: none; appearance: none;
  min-width: 46px; height: 46px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(22, 17, 8, .44);
  color: #f6e6c4;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s ease, transform .15s ease;
}
.fx-btn:hover { background: rgba(46, 36, 16, .62); }
.fx-btn:active { transform: scale(.94); }
.fx-btn-skip { font-size: 14px; letter-spacing: 1px; }
@media (max-width: 480px) {
  .fx-ctrl { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .fx-btn { min-width: 42px; height: 42px; padding: 0 14px; font-size: 18px; }
  .fx-btn-skip { font-size: 13px; }
}

/* ---------- 手机端兜底：自动播放被拦时的「点击播放」层 ---------- */
.fx-taplay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .18);
  opacity: 0; transition: opacity .2s ease;
  cursor: pointer;
}
.fx-taplay.on { opacity: 1; }
.fx-taplay.hidden { display: none !important; }
.fx-tap-core {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 232, 180, .5);
  background: rgba(20, 15, 6, .58);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #f8eccb;
  animation: fx-tap-pulse 1.6s ease-in-out infinite;
}
.fx-tap-ico { font-size: 34px; line-height: 1; color: #ffe6a6; }
.fx-tap-txt { font-size: 14px; letter-spacing: 2px; }
@keyframes fx-tap-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- 电影式大字倒数（钟声响起 → 特效弹出之间的心理准备） ---------- */
.fx-count {
  position: fixed; inset: 0;
  z-index: 9998;                       /* 比特效层低一层：倒数散去时画面正好浮出 */
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(10, 8, 3, .22) 0%, rgba(0, 0, 0, .46) 74%);   /* 轻度暗底：金色大字更聚焦，页面隐约可见 */
  opacity: 0; transition: opacity .34s ease;
  pointer-events: none;                /* 倒数期间不挡任何点击 */
}
.fx-count.on { opacity: 1; }
.fx-count.hidden { display: none !important; }
/* 老胶片质感：四角压暗 + 竖向颗粒闪动 */
.fx-count::before {
  content: ""; position: absolute; inset: 0;
  background: transparent;            /* 透明化：去掉四角压暗 */
}
.fx-count::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 3px);
  opacity: .5; mix-blend-mode: screen;
  animation: fxCFlicker 1.5s steps(8) infinite;
}
@keyframes fxCFlicker { 0%, 100% { opacity: .44; } 37% { opacity: .58; } 68% { opacity: .4; } }
.fx-c-core {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  animation: fxCJitter 3.4s steps(1) infinite;   /* 老放映机的轻微抖动 */
}
.fx-c-num {
  font-family: "Times New Roman", Georgia, "Songti SC", "SimSun", serif;
  font-weight: 700;
  font-size: clamp(110px, 34vmin, 330px);
  line-height: .92;
  color: #fbf0d4;
  letter-spacing: .02em;
  text-shadow:
    0 0 18px rgba(243, 214, 138, .5),
    0 0 60px rgba(243, 214, 138, .26),
    0 10px 40px rgba(0, 0, 0, .6);
}
.fx-c-num.tick { animation: fxCTick .95s cubic-bezier(.15, .8, .25, 1) both; }
@keyframes fxCTick {
  0% { opacity: 0; transform: scale(1.24); text-shadow: 0 0 90px rgba(255, 248, 224, .95), 0 0 160px rgba(243, 214, 138, .7); }
  28% { opacity: 1; transform: scale(1); }
  100% { opacity: .96; transform: scale(1); text-shadow: 0 0 18px rgba(243, 214, 138, .5), 0 0 60px rgba(243, 214, 138, .26); }
}
@keyframes fxCJitter {
  0%, 100% { transform: translate(0, 0); }
  18% { transform: translate(-1px, 1px); }
  42% { transform: translate(1px, -1px); }
  67% { transform: translate(-1px, 0); }
  84% { transform: translate(0, 1px); }
}
@media (max-width: 480px) {
  .fx-c-num { font-size: clamp(90px, 46vmin, 300px); }
}


/* ============================================================
   以下样式复刻自正式版：今日特效占位墙（49 席）+ 互助墙
   ============================================================ */

/* ================= 用户特效占位墙（49 席菱形） ================= */
.ufx-wall {
  width: 100%;
  max-width: 620px;
  margin: 18px auto 0;
  text-align: center;
  padding: 0 4px 6px;
}
.ufx-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.ufx-title { font-size: 13.5px; font-weight: 600; color: #5b4a86; letter-spacing: .3px; }
.ufx-stats { font-size: 12px; color: #453c63; font-weight: 500; }
.ufx-stage {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ufx-diamond {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--g, 5px) * 0.92);
}
.ufx-d-row { display: flex; gap: var(--g, 5px); justify-content: center; }
/* 49 席原版方形菱形：7×7 网格旋转 45°，左右中轴对称 */
.ufx-diamond.dia {
  display: grid;
  grid-template-columns: repeat(7, var(--c, 40px));
  gap: var(--g, 5px);
  transform: rotate(45deg);
  transform-origin: center center;
}
.ufx-diamond.dia .ufx-cell { transform: rotate(-45deg); }
.ufx-diamond.dia .ufx-cell:hover { transform: rotate(-45deg) scale(1.06); }
.ufx-diamond.dia .ufx-cell:disabled:hover, .ufx-diamond.dia .ufx-cell.off:hover { transform: rotate(-45deg); }
.ufx-diamond.dia .ufx-cell:active { transform: rotate(-45deg) scale(.96); }
/* 2~12 席：以中心点圆形围绕（子元素绝对定位，容器须铺满舞台提供参照） */
.ufx-diamond.ring { display: block; position: relative; width: 100%; height: 100%; }
.ufx-ring-pt { position: absolute; transform: translate(-50%, -50%); }
.ufx-cell {
  width: var(--c, 40px); height: var(--c, 40px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 8px;
  transition: transform .16s ease, filter .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.ufx-cell:hover { filter: brightness(1.04); transform: scale(1.06); }
/* 次数已用完：空位禁用，不给席位通道 */
.ufx-cell:disabled, .ufx-cell.off { cursor: not-allowed; opacity: .5; filter: grayscale(.45); }
.ufx-cell:disabled:hover, .ufx-cell.off:hover { filter: grayscale(.45); }
.ufx-cell:disabled .av, .ufx-cell.off .av { border-style: dotted; }
.ufx-cell:active { transform: scale(.96); }
.ufx-cell .av {
  width: calc(var(--c, 40px) * 0.64);
  height: calc(var(--c, 40px) * 0.64);
  border-radius: 50%;
  object-fit: cover;
  background: #f2f3fa;
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 2px 6px rgba(60, 70, 140, .14);
  display: flex; align-items: center; justify-content: center;
}
.ufx-cell.empty .av {
  border: 1.5px dashed #c9cde4;
  color: #b3b8cd;
  font-size: calc(var(--c, 40px) * 0.3);
  background: rgba(255, 255, 255, .55);
}
.ufx-cell.matched .av { border-color: #f0c96a; box-shadow: 0 0 0 2px rgba(240, 201, 106, .35), 0 2px 6px rgba(60, 70, 140, .14); }
.ufx-cell.pending .av { border-color: #c4b0f0; box-shadow: 0 0 0 2px rgba(196, 176, 240, .3), 0 2px 6px rgba(60, 70, 140, .14); }
.ufx-cell .st {
  font-size: clamp(8px, calc(var(--c, 40px) * 0.2), 11.5px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -.2px;
}
.st.matched { color: #b07a12; }
.st.pending { color: #7b52c9; }
.st.empty { color: #a9aec2; }
/* [patch-audit] 审核中 / 待重填（驳回）状态色 */
.ufx-cell.review .av { border-color: #f0a96a; box-shadow: 0 0 0 2px rgba(240, 169, 106, .35), 0 2px 6px rgba(60, 70, 140, .14); }
.ufx-cell.rejected .av { border-color: #e26d5a; box-shadow: 0 0 0 2px rgba(226, 109, 90, .4), 0 2px 6px rgba(60, 70, 140, .14); }
.ufx-cell .st.review, .ufx-cell.review .st { color: #c26a1b; }
.ufx-cell .st.rejected, .ufx-cell.rejected .st { color: #c0392b; }
.ufx-cell.mine::after {
  content: "我";
  position: absolute; right: -2px; top: -2px;
  width: calc(var(--c, 40px) * 0.34); height: calc(var(--c, 40px) * 0.34);
  border-radius: 50%;
  background: #5b6cff; color: #fff;
  font-size: calc(var(--c, 40px) * 0.2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(91, 108, 255, .5);
}
.ufx-cell { position: relative; }
.ufx-tip {
  font-size: 11.5px; color: #322b4a; font-weight: 500; margin-top: 4px; line-height: 1.7;
  text-shadow: 0 1px 0 rgba(255,255,255,.75), 0 0 6px rgba(255,255,255,.5);   /* 深色字 + 浅色描边，背景为白图时依然可读 */
}
/* 功能用途介绍框（占位图下方，后台可编辑；无标题，内容留空时显示空框待编辑） */
.ufx-intro {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  border: 1px dashed rgba(150, 130, 190, .45);
  text-align: left;
}
.ufx-intro-b { font-size: 12px; line-height: 1.85; color: #6f6a85; margin: 0; white-space: pre-wrap; word-break: break-word; }

/* 弹层 */
.ufx-modal { width: min(360px, 92vw); text-align: left; }
.ufx-modal-title { font-size: 17px; margin-bottom: 6px; }
.ufx-modal-sub { font-size: 12px; color: var(--muted, #7a7f92); line-height: 1.7; margin-bottom: 12px; }
.ufx-input {
  width: 100%; padding: 11px 13px; margin-bottom: 10px;
  border: 1px solid #e6e8f0; border-radius: 10px; font-size: 14px; outline: none;
  background: #fff; color: #1f2330;
}
.ufx-input:focus { border-color: #5b6cff; }
.ufx-file { width: 100%; font-size: 12.5px; margin: 4px 0 10px; }
.ufx-note { font-size: 11.5px; color: #9a9fb3; line-height: 1.7; }
.ufx-pv-imgwrap { position: relative; border: 1px solid #e6e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #f6f7fb; }
.ufx-pv-imgwrap img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.ufx-pv-no { position: absolute; left: 8px; top: 8px; background: rgba(30,34,60,.72); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 12px; }
.ufx-pv-fxlink { margin-left: 8px; color: #5b6cff; font-size: 11.5px; text-decoration: none; }
.ufx-wx-tip {
  font-size: 12.5px; color: #1a7f4b; background: #e9f7ef;
  border: 1px solid #bfe6cf; border-radius: 9px; padding: 10px 12px; line-height: 1.7;
}
.ufx-actions { display: flex; gap: 10px; margin-top: 14px; }
.ufx-actions .btn { flex: 1; }
.ufx-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 12px);
  background: rgba(31, 35, 48, .92); color: #fff;
  font-size: 13px; padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .25s ease; z-index: 60;
  max-width: 86vw; text-align: center; line-height: 1.5;
}
.ufx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 页1 留言墙 ---------- */
.msg-board { margin-top: 20px; text-align: left; }
.mb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mb-title { font-size: 15px; font-weight: 600; color: var(--text); }
.mb-count { font-size: 12px; color: var(--muted); }

/* 同屏 10 条：每条约 52px，超出滚动 */
.mb-scroll {
  display: flex; flex-direction: column; gap: 8px;
  max-height: min(520px, 56vh); overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin;
}
.mb-scroll::-webkit-scrollbar { width: 6px; }
.mb-scroll::-webkit-scrollbar-thumb { background: rgba(140, 146, 170, .35); border-radius: 999px; }
.mb-item {
  display: flex; gap: 8px; align-items: flex-start;
  min-height: 44px; padding: 9px 12px;
  background: #f7f8fd; border: 1px solid #eef0f8; border-radius: 12px;
}
.mb-avatar {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #8f7bff, #5b6cff);
}
.mb-main { flex: 1 1 auto; min-width: 0; }
.mb-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.mb-nick { font-size: 12px; font-weight: 600; color: #4a4f66; }
.mb-time { font-size: 11px; color: #a3a8ba; }
.mb-body {
  font-size: 13px; line-height: 1.55; color: #33384a;
  white-space: pre-wrap; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mb-empty { text-align: center; font-size: 12.5px; color: var(--muted); padding: 18px 0; }

.mb-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-start; flex-wrap: wrap; }
.mb-name {
  width: 118px; height: 42px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px; font-size: 13px;
  outline: none; background: #fff; color: var(--text);
}
.mb-text {
  flex: 1 1 200px; min-height: 42px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; font-size: 13px;
  line-height: 1.5; outline: none; resize: vertical; background: #fff;
  font-family: inherit; color: var(--text);
}
.mb-name:focus, .mb-text:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 108, 255, .12); }
.mb-form .btn { height: 42px; padding: 0 20px; }

@media (max-width: 560px) {
  .mb-name { width: 100%; }
  .mb-form .btn { width: 100%; }
  .mb-scroll { max-height: 62vh; }
}

/* 待审核提交反馈（成功色，区别于错误红） */
.mb-pending { color: #1d9a55 !important; }

/* [patch-mb-badge] 后台互助墙页签待审角标 */
.mb-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border-radius: 999px; background: #fff2d9; border: 1px solid #eab04d;
  color: #9a6a00; font-size: 11px; font-weight: 700; line-height: 1.5;
  transform: translateY(-1px);
}

/* [patch-ufx-mask] 特效占位后台敏感信息脱敏 */
.ufx-mask { cursor: pointer; border-bottom: 1px dashed #b9bed0; }

/* ---------- 新版三页布局补充 ---------- */
/* 页1 已解锁续进：从页2 返回后不必重输密码 */
.pw-resume { margin-top: 10px; font-size: 13px; }
.pw-resume a { color: var(--primary); text-decoration: none; }
.pw-resume a:hover { text-decoration: underline; }

/* 13/15/16/17 共用尾部：页2 内自然排布 */
.shared-tail { width: 100%; }

/* 进人组团已移出合并面板（仍是卡片药丸），选择器同步去掉 .media-panel 前缀 */
.card.team-section { margin-bottom: 20px; }

/* 三级页内：共用尾部收窄居中，与秘境版面协调 */
.secret-view .shared-tail {
  max-width: 620px;
  width: 100%;
  margin: 26px auto 0;
}
/* 三级页内：占位墙夜色底重新配色，保证可读 */
.secret-view .ufx-wall { margin-top: 2px; }
.secret-view .ufx-title { color: #ffe9b8; text-shadow: 0 0 12px rgba(255, 210, 130, .35); }
.secret-view .ufx-stats { color: #c9bfe8; }
.secret-view .ufx-tip { color: #b3a8d9; }
.secret-view .ufx-intro { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28); }
.secret-view .ufx-intro-b { color: #e8e3fa; }
.secret-view .st.matched { color: #f0c96a; }
.secret-view .st.pending { color: #c4b0f0; }
.secret-view .st.empty { color: #a9a3c9; }
.secret-view .stats { color: #b3a8d9; }
/* 三级页内打开的弹层（占位墙登录/上传）必须盖过秘境覆盖层（z-index 60） */
body.secret-open #ufxMask { z-index: 80; }

/* 页3 背景跟随页2：后台配置了二级页背景图时，神赐秘境覆盖层改用同一张图，
   上面压一层夜色半透明膜，保证秘境页浅色文字在任意背景图上依然可读 */
body.custom-bg .secret-view {
  background:
    linear-gradient(180deg, rgba(13, 15, 34, .84) 0%, rgba(17, 20, 42, .78) 48%, rgba(11, 13, 29, .88) 100%),
    var(--page-bg) center center / cover no-repeat;
}

/* 页3 共用尾部（每日更新/收藏本页不迷路 栏、进人组团）：与页2 同款透明底，不再白底 */
.secret-view .card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}
/* 公告条与页2 自定义背景时同款：半透明深色底 + 白字 */
.secret-view .announcement {
  background: rgba(0, 0, 0, .25);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .4);
}

/* ============================================================
   联系文字：固定在首页（页1）右上角，后台留空即隐藏；页2/页3 自动隐藏
   ============================================================ */
.contact-box {
  position: fixed;
  top: 12px;
  right: 14px;
  max-width: min(320px, 55vw);
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
  word-break: break-all;
  color: var(--text);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 4px 16px rgba(31, 35, 48, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 30;
  pointer-events: none;
}
body.custom-bg .contact-box {
  color: #fff;
  background: rgba(13, 15, 34, .55);
  border-color: rgba(255, 255, 255, .22);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
@media (max-width: 560px) {
  .contact-box { max-width: 62vw; font-size: 12px; padding: 6px 10px; }
}

/* ============================================================
   江湖接送侠（页1 · 互助墙上方互动区）
   胶囊任务条三态：st-rainbow 彩虹待抢 | st-gold 荣耀黄金 | st-red 透明酒红
   ============================================================ */
.jianghu-board { margin-bottom: 14px; }
.jh-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jh-title {
  border: none; background: none; cursor: pointer;
  font-size: 19px; font-weight: 800; letter-spacing: 3px;
  color: var(--text, #2c3242);          /* 不支持渐变文字时的兜底色 */
  padding: 2px 10px; border-radius: 10px;
  transition: transform .15s ease;
}
/* 彩虹渐变字：七色循环 + 缓慢流动 */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .jh-title {
    background-image: linear-gradient(90deg,
      #e11d48, #ea580c, #c28a00, #16a34a, #0891b2, #2563eb, #7c3aed, #db2777, #e11d48);
    background-size: 220% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(255, 140, 0, .22));
    animation: jh-rainbow-flow 7s linear infinite;
  }
}
@keyframes jh-rainbow-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .jh-title { animation: none; }
}
/* 自定义深色背景时用更亮的彩虹，避免发闷 */
body.custom-bg .jh-title {
  background-image: linear-gradient(90deg,
    #ff7b72, #ff9f45, #ffd93d, #69db7c, #4dd4e8, #74b9ff, #b197fc, #ff8cc8, #ff7b72);
}
.jh-title:hover { transform: scale(1.06); filter: drop-shadow(0 2px 6px rgba(255, 140, 0, .35)); }
.jh-sub { font-size: 12px; color: var(--muted, #7a7f92); }
.jh-pills { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.jh-empty { text-align: center; font-size: 13px; color: var(--muted, #7a7f92); padding: 10px 0 4px; }

/* 细长胶囊任务条 */
.jh-pill {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 5px 12px;
  border-radius: 999px;
  user-select: none;
}
.jh-pill.grabbing { opacity: .6; pointer-events: none; }

/* [patch-jh-broadcast] 新侠士过审广播条（轮播通道顶部展示） */
.jh-pill.jh-broadcast {
  background: linear-gradient(90deg, #fff3c9, #ffe9a8);
  border: 1px solid #e8c35d;
  box-shadow: 0 2px 8px rgba(232, 195, 93, .28);
}
.jh-pill.jh-broadcast .jh-content { color: #7a5410; }
.jh-content {
  flex: 1; min-width: 0;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jh-right { display: flex; align-items: center; gap: 8px; flex: none; }
.jh-seat { font-size: 12px; opacity: .75; }

/* 编号头像（圆形专属编号） */
.jh-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #4a3200;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #f3c74e 55%, #c8951c);
  border: 2px solid #a37411;
  box-shadow: 0 2px 6px rgba(120, 84, 10, .4);
}
.jh-avatar-pending { border-style: dashed; opacity: .8; }

/* 尾灯标识 */
.jh-tail {
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.jh-tail-go { color: #fff; background: linear-gradient(180deg, #d43425, #8f150a); box-shadow: 0 1px 4px rgba(143, 21, 10, .45); }
.jh-tail-rest { color: #fff; background: rgba(90, 20, 30, .75); }
.jh-tail-wait { color: #3d2c00; background: rgba(255, 255, 255, .55); }

/* ---- 三态配色 ---- */
/* 彩虹：发布未抢 */
.jh-pill.st-rainbow {
  background: linear-gradient(90deg, #ff9a9e, #ffd276, #b6ff9c, #8be0ff, #c9a6ff, #ff9ad5, #ff9a9e);
  background-size: 300% 100%;
  animation: jh-rainbow 3.2s linear infinite;
  box-shadow: 0 2px 10px rgba(160, 120, 255, .25);
}
@keyframes jh-rainbow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.jh-pill.st-rainbow .jh-content { color: #23283a; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.jh-pill.st-rainbow.clickable { cursor: pointer; }
.jh-pill.st-rainbow.clickable:hover { filter: brightness(1.08); }

/* 荣耀黄金：抢到 / 已确认 */
.jh-pill.st-gold {
  background: linear-gradient(90deg, #b8860b, #f5d67b 42%, #d9a628 72%, #a3770e);
  box-shadow: 0 3px 12px rgba(217, 166, 40, .45);
}
.jh-pill.st-gold .jh-content { color: #3d2c00; text-shadow: 0 1px 0 rgba(255, 235, 170, .5); }

/* 透明酒红：参与未抢到 */
.jh-pill.st-red {
  background: rgba(138, 15, 35, .38);
  border: 1px solid rgba(138, 15, 35, .3);
  box-shadow: none;
}
.jh-pill.st-red .jh-content { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.jh-pill.st-red .jh-avatar { filter: grayscale(.5) brightness(.9); }

/* ---- 注册弹窗 ---- */
.jh-modal { width: min(92vw, 380px); }
.jh-modal-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: 2px; text-align: center; }
.jh-modal-sub { font-size: 12.5px; color: var(--muted, #7a7f92); line-height: 1.6; margin: 4px 0 10px; }
.jh-reg-type { display: flex; gap: 8px; margin: 6px 0 10px; }
.jh-reg-type .jh-type { flex: 1; padding: 8px 0; font-size: 13px; }
.jh-reg-type .jh-type.on { background: var(--primary, #5b6cff); color: #fff; border-color: var(--primary, #5b6cff); }
.jh-input {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--border, #e6e8f0); border-radius: 10px;
  font-size: 14px; outline: none; margin-bottom: 4px;
}

/* ---- 浮屏视频特效（首页限定） ---- */
.jh-fx {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 10, 18, .86);
  display: flex; align-items: center; justify-content: center;
}
.jh-fx.hidden { display: none; }
.jh-fx-inner {
  position: relative; width: min(92vw, 560px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.jh-fx-text {
  margin: 0; font-size: 20px; font-weight: 800; letter-spacing: 2px;
  color: #ffd98a; text-shadow: 0 2px 10px rgba(255, 180, 60, .5);
}
.jh-fx-inner video {
  width: 100%; max-height: 62vh; border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  background: #000;
}
.jh-fx-close { position: absolute; right: 0; top: -8px; }
.jh-fx-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.jh-fx-actions .btn { font-size: 14px; }
.jh-fx-sound { animation: jhSoundPulse 1.2s ease-in-out infinite; }
@keyframes jhSoundPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 80, .55); }
  50% { box-shadow: 0 0 0 8px rgba(255, 200, 80, 0); }
}

/* ---- 轻提示 ---- */
.jh-toast {
  position: fixed; left: 50%; bottom: 12%; transform: translateX(-50%) translateY(8px);
  background: rgba(20, 24, 34, .92); color: #fff;
  padding: 10px 18px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s ease;
  z-index: 320; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  max-width: 80vw; text-align: center;
}
.jh-toast.err { background: rgba(150, 30, 30, .94); }
.jh-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .jh-content { font-size: 12.5px; }
  .jh-tail { font-size: 10px; padding: 2px 7px; }
  .jh-avatar { width: 30px; height: 30px; font-size: 12px; }
}

/* ---------- 特效播放前缀（指定图 / 用户特效，后台可自定义 ≤30 字，留空隐藏） ---------- */
.fx-label {
  position: absolute; z-index: 2;
  top: calc(26px + env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  max-width: 82%;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 130, .45);
  background: rgba(22, 17, 8, .55);
  font-size: 17px; font-weight: 800; letter-spacing: 2px;
  color: #ffd98a; text-shadow: 0 2px 10px rgba(255, 180, 60, .5);
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-label.hidden { display: none !important; }
@media (max-width: 480px) {
  .fx-label { font-size: 14px; padding: 7px 16px; top: calc(16px + env(safe-area-inset-top, 0px)); }
}

/* ===== 特效占位区与环绕图/系列区之间的蓝色长分界线 + 占位独立系列图 ===== */
.blue-divider {
  height: 4px;
  margin: 30px 2px 26px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(46,107,255,0), #2e6bff 15%, #7db4ff 50%, #2e6bff 85%, rgba(46,107,255,0));
  box-shadow: 0 0 16px rgba(46, 107, 255, .8), 0 0 4px rgba(46, 107, 255, .9);
}
.ufx-strip-stage { margin-top: 24px; }
.ufx-strip-stage .ring-series-caption { position: static; width: fit-content; max-width: 100%; margin: 10px auto 0; }
.ufx-strip-stage .ring-divider { position: static; margin: 16px auto; width: 72%; }
.ufx-strip-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px 12px; width: 100%; }
.ufx-strip-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ufx-strip-item { position: relative; width: 62px; height: 62px; }
.ufx-strip-cap { max-width: 84px; font-size: 11px; line-height: 1.35; text-align: center; color: #fff; background: rgba(92, 96, 220, .92); padding: 3px 5px; border-radius: 6px; word-break: break-all; box-shadow: 0 3px 10px rgba(60, 64, 160, .35); }

/* 弹出图片防溢出：顶部空间不足时改为向下弹出（placeQrPop 控制） */
.qr-pop.below { bottom: auto; top: calc(100% + 12px); }
