/* ============ 导航页前台样式 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1f2937;
  overflow-x: hidden;
}

/* 背景：全屏覆盖 + 毛玻璃遮罩感 */
.bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -3;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 原白渐变已移除：它是「调透明了还是发白」的元凶之一，白雾强度也跟随卡片透明度 */
  background: linear-gradient(180deg, rgba(255,255,255, calc(var(--card-alpha) * 0.08)), rgba(255,255,255, calc(var(--card-alpha) * 0.15)));
}

/* 花瓣画布 */
#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

:root { --card-alpha: 0.4; }  /* 后台「卡片透明度」可调，越小越透 */

/* 内容 */
.wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(30px, env(safe-area-inset-top)) 14px max(56px, env(safe-area-inset-bottom));
}
.panel {
  margin: auto;            /* 内容短则垂直居中；内容长则自动贴顶、可滚动，不裁切 */
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, calc(var(--card-alpha) * 0.3));  /* 面板白底更薄，跟随透明度 */
  backdrop-filter: blur(2px);   /* 只保留极轻的朦胧感，透明度低时背景依然清晰 */
  -webkit-backdrop-filter: blur(2px);
  border-radius: 18px;
  padding: 22px 16px 26px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.10);
  height: fit-content;
}

.title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.title .hl {
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 14px;
  border-radius: 6px;
  box-decoration-break: clone;
}

.notice {
  font-size: 14px;
  line-height: 1.7;
  color: #111827;
  text-shadow: 0 1px 0 rgba(255,255,255, calc(var(--card-alpha) * 0.4));
  margin: 0 4px 16px;
}

/* 链接卡片 */
.links { display: flex; flex-direction: column; gap: 22px; margin-bottom: 20px; }

.card-link {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, var(--card-alpha));
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card-link:active {
  transform: scale(.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

.tag {
  position: absolute;
  top: -10px;
  left: 8px;
  background: linear-gradient(135deg, #ff8f6b, #f5564e);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(245, 86, 78, .35);
}

.link-text {
  font-size: 19px;
  font-weight: 800;
  color: #111827;
}
.link-text.red { color: #e02424; }

/* 底部文字 */
.foot {
  font-size: 14px;
  text-align: center;
  color: #111827;
  text-shadow: 0 1px 0 rgba(255,255,255, calc(var(--card-alpha) * 0.4));
  line-height: 1.9;
}
.foot-red { color: #e02424; font-weight: 700; }
.foot-small { font-size: 13px; }

/* 底部按钮 */
.btn-area { text-align: center; margin-top: 18px; }
.btn-main {
  display: inline-block;
  min-width: 200px;
  padding: 13px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb400, #ff5b2e);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 91, 46, .38);
  transition: transform .12s ease;
}
.btn-main:active { transform: scale(.96); }

/* 底部黄色光晕装饰 */
.bottom-glow {
  position: fixed;
  left: 50%;
  bottom: -70px;
  transform: translateX(-50%);
  width: 140%;
  max-width: 720px;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(255, 196, 0, .55), rgba(255, 196, 0, 0) 65%);
  pointer-events: none;
  z-index: -1;
}

/* ============ 音乐播放器（右下角悬浮） ============ */
#music-box {
  position: fixed;
  right: 18px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow .15s ease;
}
#music-box:active { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
#music-box .disc {
  font-size: 22px;
  display: inline-block;
  animation: spin 3.2s linear infinite;
  animation-play-state: paused;
}
#music-box.playing .disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 小屏适配 */
@media (max-width: 480px) {
  .title { font-size: 22px; }
  .link-text { font-size: 17px; }
  .panel { padding: 18px 12px 22px; }
}
