/* ============================================================
   我的 App — 展示站
   三段全屏横幅 · 点击展开详情 · 下载直连服务器
   ============================================================ */

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

:root {
  --f: "SF Pro SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --max: 1240px;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #05060a;
  color: #eef3ff;
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lock { overflow: hidden; }

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- 全局噪点 ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 46px);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .68);
  transition: color .4s var(--ease);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand-dots { display: inline-flex; gap: 3px; }
.brand-dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
.brand-dots i:nth-child(2) { opacity: .8; }
.brand-dots i:nth-child(3) { opacity: 1; }

.topbar-note { opacity: .55; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 投喂支持（顶栏常驻） */
.support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  font-size: 12px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .82);
  transition: background .3s, border-color .3s, transform .3s var(--ease), color .3s;
}

.support svg { color: #ff7a63; flex: none; }

.support:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 122, 99, .45);
  color: #fff;
  transform: translateY(-1px);
}

body.light .support {
  border-color: rgba(58, 36, 20, .18);
  background: rgba(255, 255, 255, .7);
  color: rgba(38, 25, 15, .8);
}

body.light .support:hover {
  background: #fff;
  color: #26190f;
}

body.light .topbar { color: rgba(40, 28, 20, .62); }

/* ---------- 右侧导航点 ---------- */
.rail {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: grid;
  gap: 12px;
}

.rail button {
  width: 24px; height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
}

.rail button::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transition: background .3s, box-shadow .3s, transform .3s;
}

.rail button.on::before {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
  transform: scale(1.15);
}

.rail button span {
  position: absolute;
  right: 24px;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(12, 14, 20, .78);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.rail button:hover span { opacity: 1; transform: none; }

body.light .rail button::before { background: rgba(40, 28, 20, .3); }
body.light .rail button.on::before { background: #2a1a12; box-shadow: 0 0 0 4px rgba(42, 26, 18, .14); }

/* ============================================================
   全屏横幅
   ============================================================ */

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg);
  color: var(--fg);
  isolation: isolate;
}

/* 三段配色 */
.stage--whale {
  --bg: #04060d;
  --fg: #eaf1ff;
  --fg-dim: rgba(234, 241, 255, .66);
  --key: #4f8cff;
  --glow: #2f63c9;
  --line: rgba(255, 255, 255, .11);
  --glass: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .13);
}

.stage--tavern {
  --bg: #0a0704;
  --fg: #f8efe1;
  --fg-dim: rgba(248, 239, 225, .64);
  --key: #eaa94e;
  --glow: #cc7f1c;
  --line: rgba(255, 228, 186, .12);
  --glass: rgba(255, 232, 196, .07);
  --glass-line: rgba(255, 228, 186, .15);
}

.stage--diary {
  --bg: #f3ece1;
  --fg: #26190f;
  --fg-dim: rgba(38, 25, 15, .66);
  --key: #cd6a35;
  --glow: #e3a374;
  --line: rgba(58, 36, 20, .13);
  --glass: rgba(255, 255, 255, .82);
  --glass-line: rgba(58, 36, 20, .13);
}

/* 背景层 */
.stage-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.blob-a {
  width: 54vw; height: 54vw;
  top: -16vw; right: -8vw;
  background: radial-gradient(circle, var(--glow) 0%, transparent 66%);
  opacity: .48;
  animation: drift 26s ease-in-out infinite alternate;
}

.blob-b {
  width: 46vw; height: 46vw;
  bottom: -18vw; left: -12vw;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: .26;
  animation: drift 34s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4%, 5%, 0) scale(1.12); }
}

/* 同心圆（鲸鱼） */
.rings {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 74% 48%,
    transparent 0 62px,
    var(--line) 62px 63px);
  opacity: .55;
  -webkit-mask-image: radial-gradient(circle at 74% 48%, #000 4%, transparent 58%);
  mask-image: radial-gradient(circle at 74% 48%, #000 4%, transparent 58%);
}

/* 木格栅（酒馆） */
.lattice {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 54px);
  opacity: .5;
  -webkit-mask-image: linear-gradient(118deg, transparent 24%, #000 92%);
  mask-image: linear-gradient(118deg, transparent 24%, #000 92%);
}

/* 纸感（AI日记） */
.paper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 80% 12%, rgba(255, 255, 255, .85) 0%, transparent 52%),
    radial-gradient(90% 80% at 8% 92%, rgba(205, 106, 53, .14) 0%, transparent 60%);
}

/* ---------- 内容布局 ---------- */
.stage-inner {
  width: min(var(--max), 100% - clamp(40px, 8vw, 130px));
  margin: 0 auto;
  padding: 118px 0 104px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  position: relative;
  z-index: 2;
}

.copy { max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--fg-dim);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.eyebrow b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--fg);
  letter-spacing: .04em;
}

.copy h1 {
  font-size: clamp(52px, 8.4vw, 128px);
  line-height: .92;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: clamp(16px, 2vw, 26px);
}

.stage--diary .copy h1 { letter-spacing: -.03em; }

.lede {
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.85;
  color: var(--fg-dim);
  max-width: 46ch;
  margin-bottom: clamp(22px, 2.6vw, 34px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.tags li {
  font-size: 12px;
  letter-spacing: .03em;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--fg);
  opacity: .9;
  backdrop-filter: blur(10px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s, opacity .3s;
  white-space: nowrap;
}

.btn:active { transform: scale(.975); }

.btn-key {
  background: var(--key);
  color: #08090d;
  box-shadow: 0 12px 34px -14px var(--glow), 0 1px 0 rgba(255, 255, 255, .3) inset;
}

.stage--diary .btn-key { color: #fff; }

.btn-key:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -14px var(--glow), 0 1px 0 rgba(255, 255, 255, .35) inset;
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-line);
  color: var(--fg);
  backdrop-filter: blur(14px) saturate(120%);
}

.btn-ghost:hover {
  background: var(--glass-line);
  transform: translateY(-2px);
}

/* ---------- 右侧视觉 ---------- */
.visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 470px;
  justify-self: center;
  cursor: pointer;
  outline: none;
}

.halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  opacity: .38;
  filter: blur(50px);
  animation: pulse 9s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .34; }
  50%      { transform: scale(1.1); opacity: .5; }
}

.cube {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  border-radius: 28%;
  overflow: hidden;
  box-shadow:
    0 44px 90px -30px rgba(0, 0, 0, .75),
    0 0 0 1px rgba(255, 255, 255, .16) inset,
    0 14px 42px -18px var(--glow);
  transition: transform .6s var(--ease), box-shadow .6s;
  animation: float 8s ease-in-out infinite;
}

.stage--diary .cube {
  box-shadow:
    0 38px 70px -22px rgba(80, 42, 18, .38),
    0 0 0 1px rgba(255, 255, 255, .55) inset;
}

.cube img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-5deg); }
  50%      { transform: translate(-50%, calc(-50% - 14px)) rotate(-3deg); }
}

.visual:hover .cube { transform: translate(-50%, -50%) rotate(0deg) scale(1.03); animation-play-state: paused; }

.chip {
  position: absolute;
  display: grid;
  gap: 1px;
  padding: 11px 15px;
  border-radius: 15px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 18px 38px -22px rgba(0, 0, 0, .6);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--fg-dim);
  white-space: nowrap;
}

.chip b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--fg);
}

.chip-a { top: 11%; left: 2%; animation: float2 9s ease-in-out infinite; }
.chip-b { bottom: 14%; right: 0; animation: float2 11s ease-in-out .8s infinite; }
.chip-c {
  bottom: 45%; left: -2%;
  font-size: 11.5px;
  color: var(--fg);
  animation: float2 13s ease-in-out .4s infinite;
}

.stage--diary .chip {
  box-shadow: 0 14px 30px -16px rgba(80, 42, 18, .34), 0 1px 0 #fff inset;
}

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- 屏脚 ---------- */
.stage-foot {
  position: absolute;
  bottom: clamp(18px, 3vh, 34px);
  left: clamp(20px, 4vw, 46px);
  right: clamp(20px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--fg-dim);
  z-index: 2;
}

.scroll-cue {
  width: 20px; height: 32px;
  border: 1px solid var(--glass-line);
  border-radius: 99px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
}

.scroll-cue i {
  width: 3px; height: 7px;
  border-radius: 99px;
  background: var(--fg);
  opacity: .55;
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .2; }
  50%      { transform: translateY(9px); opacity: .8; }
}

.stage--diary .cube { }

/* ---------- 入场动画（脚本没跑就不藏内容） ---------- */
.copy > *, .visual {
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}

html.js .stage:not(.in) .copy > *,
html.js .stage:not(.in) .visual {
  opacity: 0;
  transform: translateY(22px);
}

html.js .stage.in .copy > *,
html.js .stage.in .visual {
  opacity: 1;
  transform: none;
}

.stage.in .copy > *:nth-child(2) { transition-delay: .06s; }
.stage.in .copy > *:nth-child(3) { transition-delay: .12s; }
.stage.in .copy > *:nth-child(4) { transition-delay: .18s; }
.stage.in .copy > *:nth-child(5) { transition-delay: .24s; }
.stage.in .visual { transition-delay: .1s; }

/* ============================================================
   收尾
   ============================================================ */
.end {
  min-height: 62svh;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  background: #05060a;
  color: #e8eefb;
  scroll-snap-align: start;
  position: relative;
}

.end-inner { text-align: center; max-width: 640px; }

.end-mark {
  display: inline-flex;
  gap: 5px;
  margin-bottom: 26px;
}

.end-mark i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4f8cff;
}
.end-mark i:nth-child(2) { background: #eaa94e; }
.end-mark i:nth-child(3) { background: #cd6a35; }

.end-line {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 34px;
}

.end-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}

.end-links button {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #cfd9ec;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  cursor: pointer;
  transition: .3s var(--ease);
}

.end-links button:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transform: translateY(-2px);
}

.end-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 99px;
  border: 1px solid rgba(255, 122, 99, .32);
  background: rgba(255, 122, 99, .1);
  color: #ffb3a3;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 34px;
  transition: background .3s, border-color .3s, transform .3s var(--ease), color .3s;
}

.end-support:hover {
  background: rgba(255, 122, 99, .2);
  border-color: rgba(255, 122, 99, .52);
  color: #ffe0d8;
  transform: translateY(-2px);
}

.end-copy {
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(232, 238, 251, .34);
}

/* ============================================================
   详情弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .34s var(--ease), visibility .34s;
}

.modal.on { opacity: 1; visibility: visible; }

.veil {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 9, .58);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.sheet {
  --s-bg: #0b0e17;
  --s-fg: #eaf1ff;
  --s-dim: rgba(234, 241, 255, .58);
  --s-key: #4f8cff;
  --s-key-fg: #07090e;
  --s-line: rgba(255, 255, 255, .1);

  position: relative;
  width: min(1040px, 100%);
  max-height: 90svh;
  overflow: auto;
  border-radius: 26px;
  background: var(--s-bg);
  color: var(--s-fg);
  border: 1px solid var(--s-line);
  box-shadow:
    0 50px 140px -40px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255, 255, 255, .03) inset;
  transform: translateY(18px) scale(.986);
  transition: transform .45s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.modal.on .sheet { transform: none; }

.sheet::-webkit-scrollbar { width: 8px; }
.sheet::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 99px; }

.sheet-x {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--s-line);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background .25s, transform .25s;
}

.sheet-x:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }

/* 弹窗头 */
.sh-hero {
  position: relative;
  padding: 34px 34px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

.sh-hero::before {
  content: "";
  position: absolute;
  top: -160px; left: -60px;
  width: 460px; height: 380px;
  background: radial-gradient(circle, var(--s-key) 0%, transparent 68%);
  opacity: .3;
  filter: blur(50px);
  pointer-events: none;
}

.sh-icon {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 20px;
  flex: none;
  box-shadow: 0 18px 38px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14) inset;
}

.sh-head { position: relative; min-width: 0; }

.sh-head h2 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.sh-tag {
  font-size: 13px;
  color: var(--s-dim);
  letter-spacing: .03em;
  margin-top: 2px;
}

/* 正文 */
.sh-body { padding: 22px 34px 0; }

.sh-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--s-dim);
  max-width: 62ch;
}

.sh-rule {
  height: 1px;
  margin: 26px 0;
  background: linear-gradient(90deg, var(--s-line), transparent);
}

.sh-sub {
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--s-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feat {
  padding: 15px 16px 16px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .065);
  transition: background .3s, border-color .3s, transform .3s;
}

.feat:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}

.feat h3 {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .01em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.feat h3::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--s-key);
  flex: none;
}

.feat p {
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--s-dim);
}

/* 更新说明 */
.sh-note {
  margin-top: 26px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .025);
  overflow: hidden;
}

.sh-note summary {
  padding: 13px 16px;
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--s-dim);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh-note summary::-webkit-details-marker { display: none; }

.sh-note summary::after {
  content: "＋";
  margin-left: auto;
  opacity: .5;
  transition: transform .3s;
}

.sh-note[open] summary::after { content: "－"; }

.sh-note pre {
  margin: 0;
  padding: 0 16px 16px;
  font-family: var(--f);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--s-dim);
  white-space: pre-wrap;
  word-break: break-word;
}

/* 底部下载条 */
.sh-foot {
  position: sticky;
  bottom: 0;
  margin-top: 30px;
  padding: 18px 34px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(to top, var(--s-bg) 42%, color-mix(in srgb, var(--s-bg) 82%, transparent));
  border-top: 1px solid var(--s-line);
  backdrop-filter: blur(10px);
}

.sh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--s-dim);
  font-variant-numeric: tabular-nums;
}

.sh-meta b {
  font-weight: 500;
  opacity: .55;
  margin-right: 5px;
}

.sh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-support {
  height: 46px;
  padding: 0 20px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid var(--s-line);
  background: rgba(255, 255, 255, .06);
  color: var(--s-fg);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}

.btn-support svg { color: #ff7a63; flex: none; }

.btn-support:hover {
  background: rgba(255, 122, 99, .14);
  border-color: rgba(255, 122, 99, .36);
  transform: translateY(-2px);
}

.sheet[data-app="diary"] .btn-support {
  background: rgba(38, 25, 15, .05);
  border-color: rgba(58, 36, 20, .14);
}

.sheet[data-app="diary"] .btn-support:hover {
  background: rgba(205, 106, 53, .12);
  border-color: rgba(205, 106, 53, .32);
}

.btn-dl {
  height: 46px;
  padding: 0 26px;
  border-radius: 99px;
  background: var(--s-key);
  color: var(--s-key-fg);
  font-size: 14px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 14px 34px -16px var(--s-key);
  transition: transform .25s var(--ease), box-shadow .3s;
}

.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px var(--s-key); }

.btn-dl svg { opacity: .85; }

.sh-hint {
  font-size: 11.5px;
  color: var(--s-dim);
  opacity: .7;
  width: 100%;
  order: 3;
}

/* 弹窗按 App 换色 */
.sheet[data-app="tavern"] {
  --s-bg: #100b06;
  --s-fg: #f8efe1;
  --s-dim: rgba(248, 239, 225, .58);
  --s-key: #eaa94e;
  --s-key-fg: #150e05;
  --s-line: rgba(255, 228, 186, .12);
}

.sheet[data-app="diary"] {
  --s-bg: #f7f1e8;
  --s-fg: #26190f;
  --s-dim: rgba(38, 25, 15, .62);
  --s-key: #cd6a35;
  --s-key-fg: #fff;
  --s-line: rgba(58, 36, 20, .12);
}

.sheet[data-app="diary"] .feat {
  background: rgba(255, 255, 255, .62);
  border-color: rgba(58, 36, 20, .08);
}

.sheet[data-app="diary"] .feat:hover {
  background: #fff;
  border-color: rgba(58, 36, 20, .14);
}

.sheet[data-app="diary"] .sh-note {
  background: rgba(255, 255, 255, .5);
  border-color: rgba(58, 36, 20, .09);
}

.sheet[data-app="diary"] .sheet-x {
  background: rgba(38, 25, 15, .06);
}

.sheet[data-app="diary"] .sheet-x:hover { background: rgba(38, 25, 15, .13); }

.sheet[data-app="diary"] .sh-foot {
  background: linear-gradient(to top, var(--s-bg) 46%, rgba(247, 241, 232, .72));
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .stage-inner {
    grid-template-columns: 1fr;
    padding: 104px 0 92px;
    gap: 18px;
  }

  .copy { max-width: none; }

  .visual {
    max-width: 340px;
    margin-top: 8px;
  }

  .chip-c { display: none; }

  .feats { grid-template-columns: repeat(2, 1fr); }

  .rail { display: none; }

  .end { min-height: auto; }
}

@media (max-width: 620px) {
  .stage-inner {
    width: calc(100% - 40px);
    padding: 92px 0 84px;
  }

  .stage-foot .hint { display: none; }

  .stage-foot { justify-content: flex-end; }

  .visual { max-width: 270px; }

  .chip { font-size: 10.5px; padding: 8px 11px; border-radius: 12px; }
  .chip b { font-size: 13.5px; }

  .btn { height: 46px; padding: 0 20px; font-size: 14px; }

  .sheet { border-radius: 22px; max-height: 92svh; }
  .sh-hero { padding: 24px 20px 0; gap: 14px; }
  .sh-icon { width: 56px; height: 56px; border-radius: 17px; }
  .sh-head h2 { font-size: 22px; }
  .sh-body { padding: 18px 20px 0; }
  .sh-foot { padding: 14px 20px 18px; }
  .sh-actions { width: 100%; flex-wrap: nowrap; }
  .btn-dl { flex: 1; justify-content: center; }
  .btn-support { flex: none; padding: 0 15px; }
  .sheet-x { top: 12px; right: 12px; width: 30px; height: 30px; }
  .feats { grid-template-columns: 1fr; }
  .topbar-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 分享直达（?view= / ?to=）时不做入场动画 */
html.no-anim *,
html.no-anim *::before,
html.no-anim *::after {
  animation: none !important;
  transition: none !important;
}

html.no-anim .copy > *,
html.no-anim .visual {
  opacity: 1 !important;
  transform: none !important;
}
