/* ============================================================
   千年之旅（0.1折星痕誓约）移动端官网
   纯静态 · 移动优先 · 桌面端同样呈现手机版布局
   ============================================================ */

:root {
  --bg: #07040e;
  --bg-2: #0f0820;
  --text: #ece7fb;
  --muted: #a79bc6;
  --dim: #877aa6;
  --violet: #8b6cff;
  --violet-deep: #5a3fd6;
  --pink: #ff7fb7;
  --gold: #ffd479;
  --gold-deep: #f0a94c;
  --line: rgba(155, 124, 255, 0.2);
  --card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  --radius: 16px;
  --maxw: 520px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.75 "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 桌面端环境光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(139, 108, 255, 0.16), transparent 70%),
    radial-gradient(50% 40% at 95% 20%, rgba(255, 127, 183, 0.12), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(90, 63, 214, 0.18), transparent 70%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

p {
  margin: 0 0 10px;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- 主容器：手机版宽度，桌面居中 ---------- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 96px;
  background:
    radial-gradient(120% 28% at 50% 0%, rgba(120, 80, 240, 0.3), transparent 70%),
    radial-gradient(90% 20% at 80% 40%, rgba(255, 127, 183, 0.07), transparent 70%),
    linear-gradient(180deg, #100a22 0%, #0a0616 45%, #07040e 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 90px rgba(110, 70, 240, 0.18);
  /* 用 overflow-x: clip 而不是 hidden，避免破坏顶部栏 sticky */
  overflow-x: clip;
}

/* 星点纹理（置于内容之下） */
.wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 24px 32px, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1px 1px at 96px 78px, rgba(210, 190, 255, 0.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 150px 20px, rgba(255, 214, 150, 0.6), transparent 60%);
  background-size: 190px 190px, 190px 190px, 190px 190px;
  background-position: 0 0, 60px 40px, 20px 120px;
}

/* ---------- 顶部栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(10, 6, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155, 124, 255, 0.14);
}

.top-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 212, 121, 0.35);
  flex: 0 0 auto;
}

.top-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.top-title b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-title span {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.6px;
  opacity: 0.9;
}

.pill {
  flex: 0 0 auto;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #2a0f1f;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  letter-spacing: 0.5px;
}

/* 汉堡菜单按钮 */
.menu-btn {
  margin-left: auto;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 212, 121, 0.32);
  background: rgba(255, 212, 121, 0.09);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffd479, #ff9fd0);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-btn.on span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.on span:nth-child(2) {
  opacity: 0;
}

.menu-btn.on span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 导航抽屉（展开在顶部栏之下） */
.menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: var(--maxw);
  z-index: 45;
  padding: calc(60px + env(safe-area-inset-top, 0px)) 14px calc(92px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 4, 16, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}

.menu.on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.menu-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(155, 124, 255, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  color: #ece7fb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.menu-list a span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.85;
  letter-spacing: 0.5px;
}

.menu-list a i {
  margin-left: auto;
  font-style: normal;
  color: var(--dim);
  font-size: 15px;
  line-height: 1;
}

.menu-list a:active {
  border-color: rgba(255, 212, 121, 0.4);
  background: rgba(255, 212, 121, 0.08);
}

/* ---------- 首屏 ---------- */
.hero {
  padding: 12px 14px 4px;
  text-align: center;
}

.hero-pic {
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 212, 121, 0.22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  background: rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
}

.hero-pic img {
  width: 100%;
  height: auto;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.3;
  background: linear-gradient(100deg, #fff6e2 8%, #ffd479 40%, #ff9fd0 72%, #b79dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255, 175, 190, 0.25));
}

.hero h1 em {
  display: inline;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  margin-left: 7px;
  opacity: 0.92;
  vertical-align: 1px;
}

.hero-sub {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin: 0 0 12px;
}

/* 标签 */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.tags li {
  font-size: 11.5px;
  color: #d9d0f5;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(155, 124, 255, 0.32);
  background: rgba(139, 108, 255, 0.1);
  letter-spacing: 0.3px;
}

/* 数据栏 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(155, 124, 255, 0.16);
  border: 1px solid rgba(155, 124, 255, 0.16);
}

.stats div {
  background: rgba(12, 7, 26, 0.72);
  padding: 5px 4px 4px;
}

.stats b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  color: #fff3d8;
  letter-spacing: 0.3px;
}

.stats span {
  display: block;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--dim);
}

/* 下载按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #2a0f1f;
  background: linear-gradient(135deg, #ffe6a6, #ffd479 30%, #ff9f6d 65%, #ff7fb7);
  box-shadow: 0 10px 26px rgba(255, 120, 150, 0.34), 0 0 0 1px rgba(255, 240, 210, 0.35) inset;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.975);
  box-shadow: 0 5px 16px rgba(255, 120, 150, 0.3);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  height: 52px;
  font-size: 17px;
}

.dl-note {
  margin: 11px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.dl-note b {
  color: var(--gold);
  font-weight: 800;
}

.dl-note i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  margin-top: 3px;
}

/* 省心玩（福利保障，低调但清晰） */
.safe {
  margin: 14px 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 212, 121, 0.26);
  background: linear-gradient(100deg, rgba(255, 212, 121, 0.1), rgba(255, 127, 183, 0.06));
}

.safe-ico {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: rgba(255, 212, 121, 0.16);
  border: 1px solid rgba(255, 212, 121, 0.32);
}

.safe b {
  font-size: 13px;
  color: #ffe6b0;
  letter-spacing: 0.3px;
}

.safe span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 通用区块 ---------- */
.sec {
  padding: 26px 14px 0;
  scroll-margin-top: 58px;
}

/* 锚点导航 */
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 16px 14px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips a {
  flex: 0 0 auto;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #cfc4ea;
  border-radius: 999px;
  border: 1px solid rgba(155, 124, 255, 0.28);
  background: rgba(139, 108, 255, 0.09);
  letter-spacing: 0.3px;
}

.chips a:active {
  color: #2a0f1f;
  background: linear-gradient(135deg, var(--gold), #ffb163);
}

.sec-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.sec-h::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--violet));
  box-shadow: 0 0 10px rgba(255, 212, 121, 0.5);
}

.sec-h h2 {
  margin: 0;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.sec-h small {
  margin-left: auto;
  font-size: 11px;
  color: var(--dim);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.card {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.card + .card {
  margin-top: 10px;
}

/* ---------- 游戏简介 ---------- */
.intro-text {
  font-size: 14px;
  color: #d6cdea;
  line-height: 1.9;
}

.intro-text b {
  color: var(--gold);
  font-weight: 700;
}

.quote {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(255, 127, 183, 0.6);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 127, 183, 0.07);
  font-size: 13px;
  color: #e8dcff;
}

.shots {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(155, 124, 255, 0.2);
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.04);
}

.shot img {
  width: 100%;
  height: auto;
}

/* ---------- 福利列表 ---------- */
.welfare {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.welfare li {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 12px 12px 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  font-size: 13.5px;
  color: #dcd3f2;
  line-height: 1.65;
}

.welfare .n {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #2a0f1f;
  background: linear-gradient(135deg, var(--gold), var(--pink));
}

.welfare b {
  color: #ffe6b0;
  font-weight: 700;
}

/* ---------- 图片画廊 ---------- */
.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.gal button {
  padding: 0;
  border: 1px solid rgba(155, 124, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 9 / 16;
  cursor: zoom-in;
  position: relative;
}

.gal button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 4, 18, 0.5));
}

.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 礼包 ---------- */
.gift {
  display: grid;
  gap: 10px;
}

.gift-card {
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.gift-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.gift-card h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffe9c2;
  letter-spacing: 0.4px;
}

.gift-card .valid {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--dim);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(155, 124, 255, 0.26);
}

.gift-card p {
  font-size: 13px;
  color: #d8d0ee;
  line-height: 1.65;
}

.gift-card .lab {
  display: inline-block;
  font-size: 10.5px;
  color: #2a0f1f;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gold), #ffb163);
  margin-right: 6px;
  vertical-align: 1px;
}

.gift-note {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 212, 121, 0.34);
  background: rgba(255, 212, 121, 0.06);
  font-size: 12.5px;
  color: #e6dcc6;
  line-height: 1.7;
}

.gift-note b {
  color: var(--gold);
}

/* ---------- 下载安装指南 ---------- */
.keybox {
  padding: 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 127, 183, 0.35);
  background: linear-gradient(120deg, rgba(255, 127, 183, 0.12), rgba(139, 108, 255, 0.09));
  font-size: 13.5px;
  line-height: 1.75;
  color: #f0e6ff;
}

.keybox strong {
  color: #ffd9a8;
}

.steps {
  list-style: none;
  counter-reset: st;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.steps li {
  counter-increment: st;
  position: relative;
  padding: 10px 12px 10px 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  color: #d9d1ef;
  line-height: 1.7;
}

.steps li::before {
  content: counter(st);
  position: absolute;
  left: 11px;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #2a0f1f;
  background: linear-gradient(135deg, var(--gold), var(--pink));
}

.steps b {
  color: #ffe0b3;
}

/* 折叠面板 */
details.acc {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.032);
  overflow: hidden;
}

details.acc + details.acc {
  margin-top: 8px;
}

details.acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 34px 11px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #e7dfff;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

details.acc > summary::-webkit-details-marker {
  display: none;
}

details.acc > summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.8;
}

details.acc[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: -1px;
}

details.acc[open] > summary {
  color: #ffe6b0;
  border-bottom: 1px solid rgba(155, 124, 255, 0.16);
}

.acc-body {
  padding: 10px 12px 12px;
  font-size: 12.8px;
  color: #cfc6e6;
  line-height: 1.8;
}

.acc-body p {
  margin: 0 0 8px;
}

.acc-body b {
  color: #ffe0b3;
  font-weight: 700;
}

.acc-body em {
  font-style: normal;
  color: #ffb6d2;
}

.acc-body ul,
.acc-body ol {
  margin: 0 0 8px;
  padding-left: 18px;
}

.acc-body li {
  margin-bottom: 4px;
}

.acc-body .tier {
  padding: 7px 10px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: rgba(139, 108, 255, 0.09);
  border: 1px solid rgba(139, 108, 255, 0.16);
}

/* ---------- 攻略 ---------- */
.guide-tip {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--dim);
}

.guide-list .acc > summary {
  font-size: 14px;
}

.guide-list .acc + .acc {
  margin-top: 9px;
}

/* 关键词自然段落 */
.seo-p {
  font-size: 12.8px;
  color: #b7acd2;
  line-height: 1.85;
}

.seo-p b {
  color: #e2d8f7;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq details.acc > summary {
  font-size: 13.5px;
  font-weight: 700;
}

/* ---------- 客服 ---------- */
.service {
  display: grid;
  gap: 9px;
}

.svc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.svc-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: rgba(139, 108, 255, 0.16);
  border: 1px solid rgba(139, 108, 255, 0.28);
}

.svc-row .t {
  min-width: 0;
}

.svc-row .t span {
  display: block;
  font-size: 10.5px;
  color: var(--dim);
}

.svc-row .t b {
  font-size: 14px;
  color: #f3ecff;
  font-weight: 800;
  letter-spacing: 0.4px;
  word-break: break-all;
}

.svc-act {
  margin-left: auto;
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #2a0f1f;
  background: linear-gradient(135deg, var(--gold), #ffb163);
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- 底部资质 ---------- */
.legal {
  margin-top: 26px;
  padding: 16px 14px 8px;
  border-top: 1px solid rgba(155, 124, 255, 0.14);
  font-size: 11.5px;
  color: #7e7299;
  line-height: 1.9;
}

.legal p {
  margin: 0 0 4px;
}

.legal b {
  color: #a598c2;
  font-weight: 600;
}

.legal .copy {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(155, 124, 255, 0.14);
  color: #6a5f84;
  font-size: 11px;
}

/* ---------- 底部固定下载条 ---------- */
.bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--maxw);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(9, 5, 20, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(155, 124, 255, 0.2);
}

.bar .bar-info {
  min-width: 0;
  line-height: 1.35;
}

.bar .bar-info b {
  display: block;
  font-size: 13px;
  color: #f3ecff;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar .bar-info span {
  font-size: 10.5px;
  color: var(--gold);
}

.bar .btn {
  margin-left: auto;
  flex: 0 0 auto;
  height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  justify-content: flex-end;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 12px calc(72px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.totop-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 212, 121, 0.42);
  background: rgba(14, 8, 30, 0.88);
  color: var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.totop-btn.on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 菜单展开时隐藏回到顶部，避免压在抽屉上 */
.menu-open .totop-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.totop-btn:active {
  transform: scale(0.92);
}

.totop-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ---------- 图片放大预览 ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(4, 2, 10, 0.95);
  -webkit-tap-highlight-color: transparent;
}

.lb.on {
  display: flex;
  animation: lbIn 0.18s ease-out;
}

@keyframes lbIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}

.lb-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  color: #b3a7d0;
  letter-spacing: 0.4px;
}

/* 滚动出现动画 */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lb.on { animation: none; }
}

/* 桌面端微调：保持手机版观感 */
@media (min-width: 560px) {
  body { padding: 0; }
  .wrap { min-height: 100vh; }
}
