/* ==========================================================================
   社区 APP「桃林客栈」（app.php）— 所有类名使用 app- 前缀
   结构：APP 图标 / 商店徽章 / 手机外壳与示意界面 / 首屏 / 功能标签 / 账号流程 / 上架 / FAQ
   ========================================================================== */

/* 单列布局时左右滑入改为自下而上（base.css 的显现动画使用独立的 translate 属性） */
@media (max-width: 1100px) {
  .js .page-app [data-reveal="right"]:not(.is-revealed), .js .page-app [data-reveal="left"]:not(.is-revealed) { translate: 0 32px; }
}

/* ---------- APP 图标：用户提供的「桃林客栈」图标（满版插画，assets/img/brand/app-icon-*.webp），外加圆角、高光与投影 ---------- */
.app-icon {
  --s: 64px;
  position: relative;
  display: inline-grid;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: 22%;
  overflow: hidden;
  isolation: isolate;
  background: #120d0e;
  box-shadow:
    0 calc(var(--s) * 0.14) calc(var(--s) * 0.38) rgba(184, 73, 106, 0.4),
    0 0 0 1px rgba(241, 221, 174, 0.28);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 36%, transparent 50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.app-icon--sm { --s: 3.4em; }
.app-icon--md { --s: 64px; }
.app-icon--lg { --s: clamp(72px, 7vw, 104px); }
.app-icon--xl { --s: clamp(116px, 13vw, 172px); }

/* 官方 Logo（brand_logo()）在手机示意界面中的水印尺寸 */
.app-watermark .brand__logo { width: 7.2em; height: auto; filter: saturate(0.7); }

/* ---------- 商店徽章光晕框（徽章为 store_badges() 输出的官方图片，这里只装饰外框与背后的光） ---------- */
.app-dock {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  padding: 16px 18px 14px;
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(232, 135, 159, 0.13), transparent 55%),
    linear-gradient(180deg, rgba(36, 27, 28, 0.82), rgba(14, 10, 11, 0.78));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42), 0 0 46px rgba(232, 135, 159, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
}
/* 渐变金色细边 */
.app-dock::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(241, 221, 174, 0.6), rgba(232, 135, 159, 0.28) 34%, rgba(241, 221, 174, 0.07) 62%, rgba(241, 221, 174, 0.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* 两角金线（呼应 .frame） */
.app-dock::after {
  content: "";
  position: absolute; inset: -5px;
  z-index: 1;
  border-radius: 24px;
  background:
    linear-gradient(var(--c-gold-2), var(--c-gold-2)) top left / 18px 1px,
    linear-gradient(var(--c-gold-2), var(--c-gold-2)) top left / 1px 18px,
    linear-gradient(var(--c-gold-2), var(--c-gold-2)) bottom right / 18px 1px,
    linear-gradient(var(--c-gold-2), var(--c-gold-2)) bottom right / 1px 18px;
  background-repeat: no-repeat;
  opacity: 0.5;
  transition: opacity 0.6s;
  pointer-events: none;
}
.app-dock:hover::after { opacity: 1; }
/* 光效层：缓慢扫过的金光 + 跟随鼠标的柔光（都在徽章后面） */
.app-dock__fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.app-dock__fx::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 60%;
  background: linear-gradient(100deg, transparent 20%, rgba(241, 221, 174, 0.11) 50%, transparent 80%);
  transform: translateX(-110%);
  animation: app-sheen 7s var(--ease-in-out) infinite 1.5s;
}
.app-dock__spot {
  position: absolute; left: -130px; top: -130px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 135, 159, 0.24), rgba(232, 135, 159, 0.06) 60%, transparent);
  opacity: 0;
  transform: translate3d(50%, 50%, 0);
  transition: opacity 0.5s;
  will-change: transform;
}
.app-dock:hover .app-dock__spot { opacity: 1; }
.app-dock__badges { position: relative; z-index: 2; gap: 14px; }
/* 徽章背后的光晕（不覆盖徽章） */
.app-dock .store-badge::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  z-index: -1;
  width: 120%; aspect-ratio: 308 / 91;
  margin: -3% 0 0 -60%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 135, 159, 0.34), transparent);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.45s, transform 0.6s var(--ease-out);
  pointer-events: none;
}
.app-dock a.store-badge:hover::before, .app-dock a.store-badge:focus-visible::before { opacity: 1; transform: scale(1.12); }
.app-dock a.store-badge:focus-visible { outline-offset: 4px; border-radius: 10px; }
.app-dock .store-badge.is-soon::before { opacity: 0.35; background: radial-gradient(closest-side, rgba(241, 221, 174, 0.16), transparent); }
.app-dock .store-badge.is-soon:hover::before { opacity: 0.8; transform: scale(1.06); }
.app-dock .store-badge.is-nudge { animation: app-nudge 0.5s var(--ease-out); }
/* 状态行 */
.app-dock__foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.84rem; line-height: 1.5; color: var(--c-muted); }
.app-dock__foot .icon { flex: none; width: 15px; height: 15px; color: var(--c-gold); }
.app-dock__foot b { font-family: var(--f-serif); font-weight: 700; letter-spacing: 0.14em; color: var(--c-gold-2); }
html[lang="en"] .app-dock__foot b { font-family: var(--f-en); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }
.app-dock__foot b + span { padding-left: 10px; border-left: 1px solid var(--c-line-strong); }
.app-dock__foot.is-live .icon { color: #4fd1a5; }
.app-hero__dock { max-width: 100%; margin-top: 6px; }
.app-launch__dock { max-width: 100%; margin-top: 6px; }

/* ==========================================================================
   手机外壳
   ========================================================================== */
.app-phone {
  --pw: 280px;
  position: relative;
  width: var(--pw);
  aspect-ratio: 0.48;
  border-radius: calc(var(--pw) * 0.165);
  background: linear-gradient(150deg, #6b5848 0%, #2c2120 16%, #110c0d 48%, #231a19 80%, #7a6450 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(241, 221, 174, 0.42),
    inset 0 0 0 calc(var(--pw) * 0.014) #0a0708,
    0 calc(var(--pw) * 0.14) calc(var(--pw) * 0.26) calc(var(--pw) * -0.05) rgba(0, 0, 0, 0.78),
    0 0 calc(var(--pw) * 0.35) rgba(232, 135, 159, 0.14);
}
.app-phone::before, .app-phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a7258, #3a2d26);
}
.app-phone::before { left: -2px; top: 21%; height: 7%; box-shadow: 0 calc(var(--pw) * 0.2) 0 #4d3c30; }
.app-phone::after { right: -2px; top: 27%; height: 11%; }
.app-phone--rose {
  background: linear-gradient(150deg, #fbe4e9 0%, #dca5b2 18%, #a86a7a 50%, #c98d9c 78%, #fbe7eb 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55),
    inset 0 0 0 calc(var(--pw) * 0.014) #0a0708,
    0 calc(var(--pw) * 0.14) calc(var(--pw) * 0.26) calc(var(--pw) * -0.05) rgba(0, 0, 0, 0.78),
    0 0 calc(var(--pw) * 0.35) rgba(232, 135, 159, 0.22);
}
.app-phone--rose::before, .app-phone--rose::after { background: linear-gradient(90deg, #f3c7d0, #a86a7a); }
.app-phone__screen {
  position: absolute;
  inset: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.135);
  overflow: hidden;
  background: #110c0d;
  container-type: inline-size;
  isolation: isolate;
}
.app-phone__glare {
  position: absolute;
  inset: calc(var(--pw) * 0.034);
  z-index: 3;
  border-radius: calc(var(--pw) * 0.135);
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 26%, transparent 40%),
    radial-gradient(circle at var(--mx, 25%) var(--my, 8%), rgba(255, 255, 255, 0.1), transparent 45%);
}

/* ---------- 示意界面（字号随屏幕宽度缩放） ---------- */
.app-ui {
  --tab-i: 0;
  --dir: 1;
  --ui-bg: #120d0e;
  --ui-card: #1f1718;
  --ui-card-2: #2a2021;
  --ui-line: rgba(255, 236, 230, 0.08);
  --ui-text: #f6eeeb;
  --ui-muted: #9c8c89;
  position: absolute; inset: 0;
  font-family: var(--f-sans);
  font-size: 4.6cqw;
  line-height: 1.35;
  color: var(--ui-text);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(232, 135, 159, 0.16), transparent 55%),
    var(--ui-bg);
  user-select: none;
  -webkit-user-select: none;
}
.app-ui .icon { width: 1.35em; height: 1.35em; }
.app-ui b { font-weight: 650; }
.app-ui small { font-size: 0.78em; color: var(--ui-muted); }
.app-ui__status {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  height: 2.75em;
  padding: 0.35em 1.7em 0;
  font-size: 0.92em;
  font-weight: 650;
}
.app-ui__clock { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.app-ui__island { position: absolute; left: 50%; top: 0.6em; width: 31%; height: 1.75em; margin-left: -15.5%; border-radius: 1em; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04); }
.app-ui__sys { width: 3.9em; height: auto; fill: currentColor; color: var(--ui-text); }
.app-ui__views { position: absolute; top: 2.9em; bottom: 4.7em; left: 0; right: 0; overflow: hidden; }
.app-ui.is-bare .app-ui__views { bottom: 1.4em; }
.app-ui__tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 4.7em;
  padding-bottom: 1.15em;
  border-top: 1px solid var(--ui-line);
  background: rgba(18, 13, 14, 0.94);
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
.app-ui.is-bare .app-ui__tabbar { transform: translateY(100%); opacity: 0; }
.app-ui__tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15em; color: var(--ui-muted); transition: color 0.4s; }
.app-ui__tab span { font-size: 0.6em; letter-spacing: 0.02em; white-space: nowrap; }
.app-ui__tab .icon { width: 1.4em; height: 1.4em; transition: transform 0.5s var(--ease-out); }
/* 底部 5 个标签（与 APP 一致）：资讯 / 对话 / 社区 / 排行榜 / 我的 */
.app-ui[data-tab="news"] [data-tabbar="news"],
.app-ui[data-tab="chat"] [data-tabbar="chat"],
.app-ui[data-tab="community"] [data-tabbar="community"],
.app-ui[data-tab="rankings"] [data-tabbar="rankings"],
.app-ui[data-tab="me"] [data-tabbar="me"] { color: var(--c-peach-2); }
.app-ui[data-tab="news"] [data-tabbar="news"] .icon,
.app-ui[data-tab="chat"] [data-tabbar="chat"] .icon,
.app-ui[data-tab="community"] [data-tabbar="community"] .icon,
.app-ui[data-tab="rankings"] [data-tabbar="rankings"] .icon,
.app-ui[data-tab="me"] [data-tabbar="me"] .icon { transform: translateY(-0.12em) scale(1.08); }
.app-ui__tabind {
  position: absolute; top: -1px; left: 0;
  width: 20%; height: 2px;
  transform: translateX(calc(var(--tab-i) * 100%));
  transition: transform 0.55s var(--ease-out);
}
.app-ui__tabind::before { content: ""; position: absolute; left: 30%; right: 30%; top: 0; bottom: 0; border-radius: 2px; background: var(--grad-peach); box-shadow: 0 0 10px rgba(232, 135, 159, 0.8); }
.app-ui__home { position: absolute; left: 50%; bottom: 0.45em; z-index: 5; width: 34%; height: 0.28em; margin-left: -17%; border-radius: 1em; background: rgba(255, 255, 255, 0.55); }

/* 界面切换 */
.app-view {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 0.3em 1.1em 0.9em;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(var(--dir) * 16%));
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
.app-view.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.app-view.is-leaving { opacity: 0; visibility: visible; transform: translateX(calc(var(--dir) * -12%)) scale(0.98); transition-delay: 0s; }
/* 逐项出现 */
.app-view.is-seq [data-step] { opacity: 0; transform: translateY(0.8em) scale(0.97); }
.app-view [data-step] { transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), background-color 0.3s; }
.app-view.is-seq [data-step].is-in { opacity: 1; transform: none; }
.app-view.is-seq .app-msg--in[data-step]:not(.is-in) { transform: translateX(-0.8em) scale(0.92); }
.app-view.is-seq .app-msg--out[data-step]:not(.is-in) { transform: translateX(0.8em) scale(0.92); }

/* 通用条、头像 */
.app-bar { display: flex; align-items: center; gap: 0.6em; min-height: 2.7em; flex: none; }
.app-bar__title { font-size: 1.32em; letter-spacing: 0.02em; }
.app-bar__icon { position: relative; display: grid; place-items: center; width: 2.1em; height: 2.1em; margin-left: auto; border-radius: 50%; background: var(--ui-card); color: var(--ui-text); }
.app-bar__icon .icon { width: 1.15em; height: 1.15em; }
.app-bar__icon--dot::after { content: ""; position: absolute; top: 0.38em; right: 0.42em; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--c-cinnabar); box-shadow: 0 0 0 0.12em var(--ui-card); }
.app-bar__back { color: var(--c-peach-2); margin-left: -0.3em; }
.app-bar--chat { padding-bottom: 0.55em; border-bottom: 1px solid var(--ui-line); }
.app-bar__who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.app-bar__who b { font-size: 1em; }
.app-bar__who small { display: flex; align-items: center; gap: 0.35em; color: var(--c-jade); }
.app-av {
  --av: var(--c-peach);
  position: relative;
  display: grid; place-items: center;
  flex: none;
  width: 2.5em; height: 2.5em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--av) 45%, #2a1f20), #171112 75%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--av) 70%, transparent);
}
.app-av img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.app-av--me { --av: var(--c-gold); color: var(--c-gold-2); }
.app-av--me .icon { width: 1.25em; height: 1.25em; }
.app-dot { position: relative; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: #6f6260; }
.app-dot.is-on { background: #4fd1a5; box-shadow: 0 0 0.4em rgba(79, 209, 165, 0.8); }
.app-dot.is-on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4fd1a5; animation: app-ping 2.4s var(--ease-out) infinite; }

/* 聊天 */
.app-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.55em; flex: 1; min-height: 0; padding-top: 0.2em; }
.app-chat__intro { display: flex; flex-direction: column; align-items: center; gap: 0.15em; padding-bottom: 0.6em; text-align: center; line-height: 1.3; }
.app-chat__intro .app-av { width: 3.7em; height: 3.7em; margin-bottom: 0.35em; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--av) 70%, transparent), 0 0 0 0.35em rgba(232, 135, 159, 0.08), 0 0 1.6em rgba(232, 135, 159, 0.18); }
.app-chat__intro b { font-size: 1.05em; }
.app-chat__intro small { font-size: 0.72em; }
.app-chat__day { align-self: center; padding: 0.2em 0.8em; border-radius: 1em; background: var(--ui-card); font-size: 0.7em; color: var(--ui-muted); }
.app-msg {
  position: relative;
  max-width: 80%;
  padding: 0.55em 0.85em;
  border-radius: 1.1em;
  font-size: 0.92em;
  line-height: 1.4;
}
.app-msg--in { align-self: flex-start; background: var(--ui-card-2); border-bottom-left-radius: 0.3em; }
.app-msg--out { align-self: flex-end; background: linear-gradient(135deg, #f0a3b5, #c9577a); color: #fff; border-bottom-right-radius: 0.3em; box-shadow: 0 0.3em 1em rgba(201, 87, 122, 0.35); }
.app-msg__flower { display: inline-block; width: 1.05em !important; height: 1.05em !important; margin-left: 0.3em; vertical-align: -0.2em; }
.app-typing { align-self: flex-start; display: inline-flex; gap: 0.28em; padding: 0.7em 0.85em; border-radius: 1.1em; border-bottom-left-radius: 0.3em; background: var(--ui-card-2); }
.app-typing i { width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--ui-muted); animation: app-typing 1.2s ease-in-out infinite; }
.app-typing i:nth-child(2) { animation-delay: 0.15s; }
.app-typing i:nth-child(3) { animation-delay: 0.3s; }
.app-input { display: flex; align-items: center; gap: 0.5em; flex: none; padding: 0.35em 0.35em 0.35em 0.95em; border: 1px solid var(--ui-line); border-radius: 1.6em; background: var(--ui-card); color: var(--ui-muted); font-size: 0.86em; }
.app-input > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-input__send { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--grad-peach); color: #fff; }
.app-input__send .icon { width: 1.1em; height: 1.1em; }

/* 好友 */
.app-search { display: flex; align-items: center; gap: 0.5em; flex: none; padding: 0.55em 0.85em; border-radius: 0.8em; background: var(--ui-card); color: var(--ui-muted); font-size: 0.86em; }
.app-search .icon { width: 1.1em; height: 1.1em; }
.app-list { display: flex; flex-direction: column; gap: 0.15em; }
.app-list__label { margin: 0.35em 0 0.15em; font-size: 0.7em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ui-muted); }
.app-row { position: relative; display: flex; align-items: center; gap: 0.75em; padding: 0.55em 0.5em; margin-inline: -0.5em; border-radius: 0.8em; overflow: hidden; }
.app-row .app-av { width: 2.7em; height: 2.7em; }
.app-row--add { margin: 0.1em 0 0.2em; padding: 0.55em 0.7em; margin-inline: 0; background: var(--ui-card); border: 1px solid var(--ui-line); }
.app-row__plus { display: grid; place-items: center; flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--grad-peach); color: #fff; }
.app-row__plus .icon { width: 1.1em; height: 1.1em; }
.app-row__chev { width: 1em !important; height: 1em !important; color: var(--ui-muted); }
.app-row.is-off { opacity: 0.6; }
.app-view.is-seq .app-row.is-off.is-in { opacity: 0.6; }
.app-row__av { position: relative; flex: none; }
.app-row__av .app-dot { position: absolute; right: -0.05em; bottom: 0.05em; box-shadow: 0 0 0 0.16em var(--ui-bg); }
.app-row__body { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.app-row__body b { font-size: 0.95em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row:not(.is-off) .app-row__body small { color: var(--c-jade); }
.app-row__go { color: var(--ui-muted); }
.app-row__go .icon { width: 1.15em; height: 1.15em; }

/* 点击涟漪（演示） */
[data-tap] { position: relative; overflow: hidden; }
[data-tap]::after {
  content: "";
  position: absolute;
  left: var(--rx, 50%); top: var(--ry, 50%);
  width: 3em; height: 3em;
  margin: -1.5em 0 0 -1.5em;
  border-radius: 50%;
  background: rgba(245, 185, 199, 0.45);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}
[data-tap].is-tapped { background-color: rgba(232, 135, 159, 0.14); }
[data-tap].is-tapped::after { animation: app-ripple 0.7s var(--ease-out); }

/* 社区 */
.app-compose { display: flex; align-items: center; gap: 0.6em; flex: none; padding: 0.5em 0.7em; border-radius: 0.9em; background: var(--ui-card); color: var(--ui-muted); font-size: 0.86em; }
.app-compose > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-compose .app-av { width: 2.2em; height: 2.2em; }
.app-compose > .icon { color: var(--c-peach-2); }
.app-post { display: flex; flex-direction: column; gap: 0.5em; flex: none; padding: 0.8em; border-radius: 1em; background: var(--ui-card); border: 1px solid var(--ui-line); }
.app-post__head { display: flex; align-items: center; gap: 0.55em; line-height: 1.2; }
.app-post__head .app-av { width: 2.2em; height: 2.2em; }
.app-post__head > span { display: flex; flex-direction: column; }
.app-post__head b { font-size: 0.9em; }
.app-post__head small { font-size: 0.7em; }
.app-post__text { font-size: 0.86em; line-height: 1.45; }
.app-post__img { display: block; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 0.6em; background: var(--c-bark); }
.app-post__img img { width: 100%; height: 100%; object-fit: cover; }
.app-post__acts { display: flex; gap: 1.1em; color: var(--ui-muted); }
.app-post__acts .icon { width: 1.25em; height: 1.25em; }
.app-like { display: inline-flex; transition: color 0.3s; }
.app-like.is-liked { color: var(--c-peach); }
.app-like.is-liked .icon { fill: rgba(232, 135, 159, 0.35); animation: app-pop 0.7s var(--ease-out); }

/* 资讯 */
.app-chips { display: flex; gap: 0.4em; flex: none; }
.app-chips span { padding: 0.25em 0.8em; border-radius: 1em; border: 1px solid var(--ui-line); font-size: 0.74em; color: var(--ui-muted); white-space: nowrap; }
.app-chips span.is-on { border-color: transparent; background: var(--grad-peach); color: #fff; }
.app-feature { display: flex; flex-direction: column; flex: none; overflow: hidden; border-radius: 1em; background: var(--ui-card); border: 1px solid var(--ui-line); }
.app-feature__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.app-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.app-feature__img::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, var(--ui-card)); }
.app-feature__body { display: flex; flex-direction: column; gap: 0.25em; padding: 0 0.8em 0.75em; margin-top: -0.9em; position: relative; }
.app-feature__tag { align-self: flex-start; padding: 0.1em 0.55em; border-radius: 0.3em; background: var(--c-cinnabar); color: #fff; font-size: 0.66em; letter-spacing: 0.08em; }
.app-feature__body b { font-size: 0.92em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-feature__body small { font-size: 0.7em; }
.app-nrow { display: flex; align-items: center; gap: 0.7em; flex: none; padding: 0.6em 0.7em; border-radius: 0.9em; background: var(--ui-card); border: 1px solid var(--ui-line); }
.app-nrow > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.app-nrow b { font-size: 0.88em; }
.app-nrow small { font-size: 0.72em; }
.app-nrow__ico { display: grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; border-radius: 0.7em; background: rgba(99, 179, 163, 0.16); color: var(--c-jade); }
.app-nrow__ico--peach { background: rgba(232, 135, 159, 0.16); color: var(--c-peach-2); }
.app-nrow__ico--gold { background: rgba(217, 191, 134, 0.16); color: var(--c-gold-2); }
.app-nrow__ico .icon { width: 1.2em; height: 1.2em; }

/* 我的 */
.app-profile {
  display: flex; align-items: center; gap: 0.8em; flex: none;
  padding: 1em 0.9em;
  margin-top: 0.3em;
  border-radius: 1.1em;
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 135, 159, 0.35), transparent 60%),
    linear-gradient(135deg, #2b1f21, #1a1314);
  border: 1px solid rgba(241, 221, 174, 0.18);
}
.app-profile > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.app-profile b { font-size: 1.15em; }
.app-profile small { font-size: 0.72em; letter-spacing: 0.06em; }
.app-profile .app-av { width: 2.9em; height: 2.9em; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--av) 70%, transparent), 0 0 0 0.3em rgba(232, 135, 159, 0.1); }
.app-menu { display: flex; flex-direction: column; overflow: hidden; border-radius: 1em; background: var(--ui-card); border: 1px solid var(--ui-line); flex: none; }
.app-menu__row { display: flex; align-items: center; gap: 0.7em; padding: 0.8em 0.85em; font-size: 0.9em; }
.app-menu__row + .app-menu__row { border-top: 1px solid var(--ui-line); }
.app-menu__row > span { flex: 1; }
.app-menu__row > .icon:first-child { color: var(--c-gold); }
.app-menu__go { color: var(--ui-muted); width: 1em !important; height: 1em !important; }
.app-menu__row--danger, .app-menu__row--danger > .icon:first-child { color: #f08a80; }
.app-menu__row--muted, .app-menu__row--muted > .icon:first-child { color: var(--ui-muted); }
.app-watermark { display: flex; justify-content: center; margin-top: auto; padding-bottom: 0.4em; opacity: 0.6; }
.app-sheet { position: absolute; inset: -0.3em 0 -0.9em; z-index: 5; pointer-events: none; }
.app-sheet__scrim { position: absolute; inset: 0; background: rgba(5, 3, 4, 0.6); opacity: 0; transition: opacity 0.45s; }
.app-sheet__panel {
  position: absolute; left: 0.5em; right: 0.5em; bottom: 0.5em;
  display: flex; flex-direction: column; align-items: center; gap: 0.55em;
  padding: 0.6em 1.1em 1.1em;
  border-radius: 1.3em;
  background: #241b1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transform: translateY(115%);
  transition: transform 0.6s var(--ease-out);
}
.app-sheet__grab { width: 2.6em; height: 0.28em; border-radius: 1em; background: rgba(255, 255, 255, 0.2); }
.app-sheet__icon { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(194, 59, 50, 0.18); color: #f08a80; }
.app-sheet__panel b { font-size: 1.05em; }
.app-sheet__text { font-size: 0.78em; color: var(--ui-muted); line-height: 1.45; }
.app-sheet.is-open .app-sheet__scrim { opacity: 1; }
.app-sheet.is-open .app-sheet__panel { transform: none; }
.app-btn { display: grid; place-items: center; width: 100%; min-height: 2.6em; padding: 0.4em 0.8em; border-radius: 0.8em; background: var(--ui-card-2); font-size: 0.88em; font-weight: 650; }
.app-btn--danger { background: linear-gradient(135deg, #d9534a, #9e2a24); color: #fff; }
.app-btn--primary { background: var(--grad-peach); color: #fff; box-shadow: 0 0.4em 1.2em rgba(201, 87, 122, 0.4); }

/* 注册 */
.app-view--register { justify-content: center; }
.app-reg { display: flex; flex-direction: column; gap: 0.8em; padding-bottom: 2.2em; }
.app-reg__brand { display: flex; flex-direction: column; align-items: center; gap: 0.6em; padding: 0.4em 0 0.3em; text-align: center; }
.app-reg__brand b { font-size: 1.12em; letter-spacing: 0.04em; }
.app-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 0.25em; border-radius: 0.9em; background: var(--ui-card); font-size: 0.88em; }
.app-seg span { position: relative; z-index: 1; display: grid; place-items: center; min-height: 2.2em; color: var(--ui-muted); transition: color 0.4s; }
.app-seg span:last-of-type { color: #fff; }
.app-seg__ind { position: absolute; top: 0.25em; bottom: 0.25em; left: 0.25em; width: calc(50% - 0.25em); border-radius: 0.7em; background: var(--grad-peach); transform: translateX(100%); transition: transform 0.55s var(--ease-out); }
.app-view--register.is-signin .app-seg__ind { transform: none; }
.app-view--register.is-signin .app-seg span:first-of-type { color: #fff; }
.app-view--register.is-signin .app-seg span:last-of-type { color: var(--ui-muted); }
.app-field { display: flex; flex-direction: column; gap: 0.2em; padding: 0.5em 0.8em; border-radius: 0.8em; background: var(--ui-card); border: 1px solid var(--ui-line); }
.app-field small { font-size: 0.7em; }
.app-field__val { display: flex; align-items: center; min-height: 1.3em; font-size: 0.9em; }
.app-field__val--dots { letter-spacing: 0.18em; }
.app-field__val i { width: 1px; height: 1.1em; background: var(--c-peach-2); animation: app-caret 1s steps(1) infinite; }
.app-field:first-of-type { border-color: rgba(232, 135, 159, 0.45); }
.app-reg__foot { display: flex; align-items: center; justify-content: center; gap: 0.4em; font-size: 0.74em; color: var(--ui-muted); }
.app-reg__foot .icon { width: 1.15em; height: 1.15em; color: var(--c-jade); }
/* 登录（邮箱或账号名 + 密码）/ 注册（用户名、密码、邮箱 + 手机号选填）：登录时换第一栏标题与按钮文字，收起注册专用的两栏 */
.app-reg__in { display: none; }
.app-view--register.is-signin .app-reg__up { display: none; }
.app-view--register.is-signin .app-reg__in { display: inline; }
.app-view--register .app-field--up { max-height: 4em; overflow: hidden; transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out), margin 0.5s var(--ease-out), border-width 0.5s; }
.app-view--register.is-signin .app-field.app-field--up { max-height: 0; margin-top: -0.8em; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; }

/* 可直接点按的示意界面（功能区大手机、首屏前台手机的底部导航；没有对应界面的标签不可点） */
.app-feat__device [data-tap], .app-feat__device [data-like], .app-feat__device [data-seg],
.app-feat__device .app-ui__tab:not([data-tabbar="rankings"]), .app-feat__device [data-sheet-close], .app-feat__device [data-sheet-ok],
.app-stage:not(.is-swapped) .app-slot--front .app-ui__tab:not([data-tabbar="community"]):not([data-tabbar="rankings"]),
.app-stage.is-swapped .app-slot--back .app-ui__tab:not([data-tabbar="community"]):not([data-tabbar="rankings"]) { cursor: var(--cur-pointer); }
.app-feat__device .app-row:hover, .app-feat__device .app-menu__row:hover { background-color: rgba(255, 255, 255, 0.045); }
.app-feat__device .app-menu__row { transition: background-color 0.3s; }
.app-feat__device .app-ui__tab:not([data-tabbar="rankings"]):hover,
.app-stage:not(.is-swapped) .app-slot--front .app-ui__tab:not([data-tabbar="community"]):not([data-tabbar="rankings"]):hover,
.app-stage.is-swapped .app-slot--back .app-ui__tab:not([data-tabbar="community"]):not([data-tabbar="rankings"]):hover { color: var(--ui-text); }
.app-feat__device .app-like:hover { color: var(--c-peach-2); }
.app-feat__device [data-sheet-ok], .app-feat__device [data-sheet-close]:not(.app-sheet__scrim) { transition: transform 0.25s var(--ease-out), filter 0.25s; }
.app-feat__device [data-sheet-ok]:hover, .app-feat__device .app-btn[data-sheet-close]:hover { filter: brightness(1.12); }
.app-feat__device [data-sheet-ok]:active, .app-feat__device .app-btn[data-sheet-close]:active { transform: scale(0.97); }
.app-sheet.is-open { pointer-events: auto; }

/* 屏幕外暂停循环动画 */
.app-phone.is-offscreen *, .app-phone.is-offscreen *::after, .app-view:not(.is-active) * { animation-play-state: paused !important; }
.is-anim-off, .is-anim-off *, .is-anim-off *::before, .is-anim-off *::after { animation-play-state: paused !important; }

/* ==========================================================================
   首屏
   ========================================================================== */
.app-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(680px, min(100svh, 1000px));
  padding: calc(var(--header-h) + clamp(28px, 4vw, 56px)) 0 clamp(72px, 8vw, 110px);
  overflow: hidden;
  isolation: isolate;
}
.app-hero__bg { position: absolute; inset: -6% 0; z-index: -3; }
.app-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px) saturate(1.2) brightness(0.5); transform: scale(1.08); }
.app-hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 50% 60% at 74% 48%, rgba(232, 135, 159, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(99, 179, 163, 0.1), transparent 70%),
    linear-gradient(90deg, rgba(13, 10, 11, 0.94) 0%, rgba(13, 10, 11, 0.62) 46%, rgba(13, 10, 11, 0.3) 100%),
    var(--grad-fade-b);
}
/* 底部渐隐到页面底色，与下一区块无缝衔接（叠在光晕之上，避免底边出现硬接缝） */
.app-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: clamp(140px, 22vh, 260px);
  background: linear-gradient(180deg, rgba(13, 10, 11, 0) 0%, rgba(13, 10, 11, 0.72) 60%, var(--c-bg) 100%);
  pointer-events: none;
}
.app-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.app-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
/* 品牌：官方 Logo（brand_logo）+ 品牌图标（brand_icon）与「社区 APP」 */
.app-hero__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; font: inherit; }
.app-hero__logo { display: block; margin: -2% 0 0 -2.5%; }
.app-hero__logo .brand__logo {
  width: clamp(250px, 28vw, 400px);
  height: auto;
  filter: drop-shadow(0 10px 36px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(232, 135, 159, 0.16));
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.app-hero__logo:hover .brand__logo { transform: scale(1.025) rotate(-0.6deg); filter: drop-shadow(0 10px 36px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 46px rgba(232, 135, 159, 0.34)); }
.app-hero__label { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-serif); font-size: clamp(0.95rem, 1.3vw, 1.12rem); font-weight: 600; letter-spacing: 0.32em; color: var(--c-gold); }
html[lang="en"] .app-hero__label { font-family: var(--f-en); letter-spacing: 0.22em; text-transform: uppercase; }
.app-hero__label .app-icon { --s: 50px; }
.app-hero__label .app-icon:hover { transform: rotate(-6deg) scale(1.06); }
.app-hero__tagline {
  font-family: var(--f-brush);
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: 0.06em;
  background: linear-gradient(100deg, var(--c-blush) 0%, var(--c-peach-2) 45%, var(--c-peach) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[lang="en"] .app-hero__tagline { font-family: var(--f-en); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: 0.04em; }
.app-hero__desc { max-width: 560px; font-size: clamp(1rem, 1.3vw, 1.08rem); color: var(--c-text-2); }

/* 上架状态（即将上架 · App Store / Google Play） */
.app-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 16px 6px 12px;
  border: 1px solid rgba(241, 221, 174, 0.28);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232, 135, 159, 0.12), rgba(13, 10, 11, 0.55) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--c-text-2);
}
.app-hero__status b { font-family: var(--f-serif); font-weight: 700; letter-spacing: 0.14em; color: var(--c-gold-2); white-space: nowrap; }
html[lang="en"] .app-hero__status b { font-family: var(--f-en); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.app-hero__pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-peach); box-shadow: 0 0 10px var(--c-peach); }
.app-hero__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: app-ping 2.2s var(--ease-out) infinite; }
.app-hero__status.is-live .app-hero__pulse { background: #4fd1a5; box-shadow: 0 0 10px rgba(79, 209, 165, 0.8); }
.app-hero__stores { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding-left: 12px; border-left: 1px solid var(--c-line-strong); white-space: nowrap; }
.app-hero__stores .icon { width: 15px; height: 15px; color: var(--c-gold); }
.app-hero__stores i { flex: none; width: 3px; height: 3px; margin: 0 4px; border-radius: 50%; background: var(--c-muted); }
.app-hero__note { display: flex; align-items: flex-start; gap: 8px; max-width: 520px; font-size: 0.88rem; line-height: 1.6; color: var(--c-muted); }
.app-hero__note .icon { margin-top: 0.2em; color: var(--c-jade); }

/* 舞台 */
.app-hero__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.app-stage {
  /* 同时受视口高度限制，矮屏笔记本上首屏也能看到下方控制条 */
  --pw: clamp(210px, min(18.6vw, 30vh), 300px);
  --px: 0;
  --py: 0;
  --sp: 0;
  position: relative;
  width: 100%;
  height: calc(var(--pw) * 2.08 + 70px);
}
.app-stage__glow { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * 2.6); height: calc(var(--pw) * 2.6); margin: calc(var(--pw) * -1.3) 0 0 calc(var(--pw) * -1.3); border-radius: 50%; background: radial-gradient(circle, rgba(232, 135, 159, 0.28), rgba(232, 135, 159, 0.06) 45%, transparent 68%); pointer-events: none; animation: tl-glow-pulse 6s ease-in-out infinite; }
.app-stage__ring { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * 2.1); height: calc(var(--pw) * 2.1); margin: calc(var(--pw) * -1.05) 0 0 calc(var(--pw) * -1.05); border-radius: 50%; border: 1px solid rgba(241, 221, 174, 0.16); pointer-events: none; }
.app-stage__ring::before { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--c-gold-2); box-shadow: 0 0 12px var(--c-gold); }
.app-stage__ring { animation: tl-spin 40s linear infinite; }
.app-stage__ring--2 { width: calc(var(--pw) * 2.7); height: calc(var(--pw) * 2.7); margin: calc(var(--pw) * -1.35) 0 0 calc(var(--pw) * -1.35); border-style: dashed; border-color: rgba(232, 135, 159, 0.12); animation-duration: 70s; animation-direction: reverse; }
.app-stage__ring--2::before { background: var(--c-peach-2); box-shadow: 0 0 12px var(--c-peach); }
.app-stage__vertical { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--f-brush); font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: 0.2em; color: transparent; -webkit-text-stroke: 1px rgba(241, 221, 174, 0.16); pointer-events: none; user-select: none; }
.app-stage__phones { position: absolute; inset: 0; }
.app-slot {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--pw);
  margin-left: calc(var(--pw) / -2);
  margin-top: calc(var(--pw) * -1.04);
  transition: transform 1.1s var(--ease-out), filter 0.9s var(--ease-out), z-index 0s linear 0.45s;
}
.app-slot--front, .app-stage.is-swapped .app-slot--back { --d: 1.4; z-index: 2; transform: translate(26%, 3%) rotate(3.5deg); filter: none; }
.app-slot--back, .app-stage.is-swapped .app-slot--front { --d: 0.6; z-index: 1; transform: translate(-50%, -6%) rotate(-7deg) scale(0.86); filter: brightness(0.7) saturate(0.85); }
.app-slot--back { cursor: var(--cur-pointer); }
.app-stage.is-swapped .app-slot--back { cursor: var(--cur-default); }
.app-stage.is-swapped .app-slot--front { cursor: var(--cur-pointer); }
.app-slot__tilt {
  translate: calc(var(--px) * var(--d) * 14px) calc(var(--py) * var(--d) * 10px - var(--sp) * var(--d) * 40px);
  transform: perspective(1300px) rotateY(calc(-14deg + var(--px) * 12deg)) rotateX(calc(5deg + var(--py) * -9deg + var(--sp) * 12deg));
  transform-style: preserve-3d;
}
.app-slot__float { animation: app-bob 7s ease-in-out infinite; }
.app-slot--back .app-slot__float { animation-delay: -3.5s; animation-duration: 8s; }
.app-slot__float .app-phone { --pw: inherit; }

/* 漂浮卡片 */
.app-fcard {
  --d: 1;
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(241, 221, 174, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(40, 30, 31, 0.94), rgba(24, 18, 19, 0.94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  line-height: 1.35;
  translate: calc(var(--px) * var(--d) * 22px) calc(var(--py) * var(--d) * 16px);
  animation: app-bob 6s ease-in-out infinite;
  pointer-events: none;
}
.app-fcard > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.app-fcard b { font-size: 0.82rem; color: var(--c-text); }
.app-fcard small { color: var(--c-text-2); font-size: 0.78rem; }
.app-fcard .app-av { font-size: 14px; }
.app-fcard--msg { --d: 1.4; left: 0; top: 9%; animation-delay: -1.2s; }
.app-fcard--msg::after { content: ""; position: absolute; left: 22px; bottom: -6px; width: 12px; height: 12px; background: inherit; border-right: 1px solid rgba(241, 221, 174, 0.22); border-bottom: 1px solid rgba(241, 221, 174, 0.22); transform: rotate(45deg); backdrop-filter: none; }
.app-fcard--online { --d: 1.1; left: 4%; bottom: 13%; padding: 8px 14px 8px 8px; animation-delay: -3s; animation-duration: 7s; }
.app-fcard__stack { display: flex; }
.app-fcard__stack .app-av { font-size: 12px; box-shadow: 0 0 0 2px rgba(26, 20, 21, 0.9), inset 0 0 0 1.5px color-mix(in srgb, var(--av) 70%, transparent); }
.app-fcard__stack .app-av + .app-av { margin-left: -9px; }
.app-fcard__on { display: flex !important; flex-direction: row !important; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--c-text); }
.app-fcard__on .app-dot { font-size: 14px; }
.app-fcard--news { --d: 1.8; right: 0; top: 34%; animation-delay: -4.4s; animation-duration: 6.6s; }
.app-fcard__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(232, 135, 159, 0.18); color: var(--c-peach-2); flex: none; }

/* 舞台控制 */
.app-stage__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.app-seg-ctrl { display: inline-flex; padding: 4px; border: 1px solid var(--c-line-strong); border-radius: 999px; background: rgba(13, 10, 11, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.app-seg-ctrl__btn { position: relative; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; font-family: var(--f-serif); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; color: var(--c-muted); overflow: hidden; transition: color 0.35s, background-color 0.35s; }
html[lang="en"] .app-seg-ctrl__btn { font-family: var(--f-sans); letter-spacing: 0.02em; }
.app-seg-ctrl__btn:hover { color: var(--c-text); }
.app-seg-ctrl__btn[aria-pressed="true"] { color: #fff; background: rgba(232, 135, 159, 0.2); }
.app-seg-ctrl__prog { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--grad-peach); transform: scaleX(0); transform-origin: left; opacity: 0; }
.app-seg-ctrl__btn[aria-pressed="true"] .app-seg-ctrl__prog { opacity: 1; }
.app-stage__controls.is-playing .app-seg-ctrl__btn[aria-pressed="true"] .app-seg-ctrl__prog { animation: app-prog var(--cycle, 4800ms) linear forwards; }
.app-stage__controls.is-paused .app-seg-ctrl__btn[aria-pressed="true"] .app-seg-ctrl__prog { animation-play-state: paused; }
.app-ctrl { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line-strong); border-radius: 50%; background: rgba(13, 10, 11, 0.55); color: var(--c-text-2); transition: color 0.3s, border-color 0.3s, transform 0.5s var(--ease-out); }
.app-ctrl:hover { color: var(--c-peach-2); border-color: var(--c-peach); }
.app-ctrl .icon { width: 18px; height: 18px; }
.app-ctrl__play { display: none; }
.app-ctrl.is-paused .app-ctrl__play { display: block; }
.app-ctrl.is-paused .app-ctrl__pause { display: none; }
.app-ctrl.is-paused { color: var(--c-peach-2); border-color: rgba(232, 135, 159, 0.6); }
[data-app-swap]:active { transform: rotate(180deg); }
.app-stage__controls:not(.is-auto) [data-app-pause] { display: none; }

/* ==========================================================================
   功能标签
   ========================================================================== */
.app-feat-sec { overflow: hidden; }
.app-feat-sec__ink {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 50% at 50% 55%, rgba(232, 135, 159, 0.1), transparent 70%),
    radial-gradient(ellipse 30% 40% at 8% 20%, rgba(99, 179, 163, 0.06), transparent 70%);
}
.app-feat {
  --feat-dur: 7000ms;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "tabs device panels";
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}
.app-feat__tabs { grid-area: tabs; display: flex; flex-direction: column; gap: 10px; }
.app-feat__tab {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: rgba(26, 20, 21, 0.5);
  text-align: left;
  overflow: hidden;
  transition: border-color 0.4s, background-color 0.4s, transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.app-feat__tab:hover { border-color: rgba(232, 135, 159, 0.35); transform: translateX(4px); }
.app-feat__tab[aria-selected="true"] {
  border-color: rgba(232, 135, 159, 0.55);
  background: linear-gradient(100deg, rgba(232, 135, 159, 0.17), rgba(26, 20, 21, 0.65) 75%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 3px 0 0 var(--c-peach);
}
.app-feat__ico { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--c-line-strong); border-radius: 50%; color: var(--c-gold); transition: all 0.45s var(--ease-out); }
.app-feat__ico .icon { width: 20px; height: 20px; }
.app-feat__tab:hover .app-feat__ico { border-color: rgba(232, 135, 159, 0.5); color: var(--c-peach-2); }
.app-feat__tab[aria-selected="true"] .app-feat__ico { border-color: transparent; background: var(--grad-peach); color: #fff; box-shadow: var(--glow-peach); transform: rotate(-8deg); }
.app-feat__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-feat__txt b { font-family: var(--f-serif); font-size: 1.04rem; font-weight: 700; color: var(--c-text); letter-spacing: 0.04em; }
.app-feat__txt small { font-size: 0.84rem; line-height: 1.45; color: var(--c-muted); }
.app-feat__num { font-family: var(--f-en); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--c-muted); transition: color 0.4s; }
.app-feat__tab[aria-selected="true"] .app-feat__num { color: var(--c-gold); }
.app-feat__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.app-feat__prog i { display: block; height: 100%; background: var(--grad-peach); box-shadow: var(--glow-peach); transform: scaleX(0); transform-origin: left; }
.app-feat.is-playing .app-feat__tab[aria-selected="true"] .app-feat__prog i { animation: app-prog var(--feat-dur) linear forwards; }
.app-feat.is-paused .app-feat__tab[aria-selected="true"] .app-feat__prog i { animation-play-state: paused; }

.app-feat__device { grid-area: device; position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; --pw: clamp(240px, 21vw, 300px); }
.app-feat__halo { position: absolute; left: 50%; top: 46%; width: calc(var(--pw) * 2.2); height: calc(var(--pw) * 2.2); margin: calc(var(--pw) * -1.1) 0 0 calc(var(--pw) * -1.1); border-radius: 50%; background: radial-gradient(circle, rgba(232, 135, 159, 0.22), transparent 62%); pointer-events: none; }
.app-feat__halo::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(241, 221, 174, 0.14); }
.app-feat__glyphs { position: absolute; left: 50%; top: 46%; width: 0; height: 0; pointer-events: none; }
.app-feat__glyph {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--f-brush);
  font-size: calc(var(--pw) * 1.45);
  line-height: 1;
  color: rgba(232, 135, 159, 0.05);
  -webkit-text-stroke: 1px rgba(232, 135, 159, 0.22);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out), filter 0.8s var(--ease-out);
  user-select: none;
}
.app-feat__glyph.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: none; }
.app-feat__tilt { position: relative; z-index: 1; transition: transform 0.25s ease-out; touch-action: pan-y; }
.app-feat__tilt .app-phone { --pw: inherit; }
.app-feat__try { display: none; }
.js .app-feat__try {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 9px;
  margin: -4px 0 -8px;
  padding: 6px 14px;
  border: 1px solid rgba(232, 135, 159, 0.35);
  border-radius: 999px;
  background: rgba(232, 135, 159, 0.08);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--c-peach-2);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js .app-feat__try.is-used { opacity: 0; transform: translateY(-6px); }
.app-feat__try-dot { position: relative; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c-peach); }
.app-feat__try-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: app-ping 2s var(--ease-out) infinite; }
.app-feat__disclaimer { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 6px; max-width: 300px; font-size: 0.8rem; line-height: 1.5; color: var(--c-muted); text-align: left; }
.app-feat__disclaimer .icon { margin-top: 0.15em; width: 14px; height: 14px; flex: none; }

/* 所有面板叠放在同一格：容器高度取最高的面板，切换时下方内容不跳动，并可交叉淡出 */
.app-feat__panels { grid-area: panels; position: relative; display: grid; min-width: 0; }
.app-feat__panel { grid-area: 1 / 1; align-self: center; min-width: 0; outline: none; }
.js .app-feat__panels > .app-feat__panel[hidden] { display: block !important; visibility: hidden; opacity: 0; transform: translateX(-14px); pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0s linear 0.4s; }
.app-feat__panel:not([hidden]) { animation: app-panel-in 0.7s var(--ease-out) both; }
.app-feat__panel:focus-visible { outline: 2px solid var(--c-peach-2); outline-offset: 8px; border-radius: 2px; }
.app-feat__pnum { display: block; margin-bottom: 6px; font-family: var(--f-en); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(217, 191, 134, 0.5); }
.app-feat__ptitle { font-family: var(--f-brush); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: 0.04em; color: var(--c-text); }
html[lang="en"] .app-feat__ptitle { font-family: var(--f-en); font-weight: 600; font-size: clamp(1.45rem, 2.2vw, 1.85rem); letter-spacing: 0.03em; }
.app-feat__lead { margin: 14px 0 20px; color: var(--c-text-2); }
.app-feat__points { display: flex; flex-direction: column; }
.app-feat__points li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--c-line-strong); color: var(--c-text); line-height: 1.55; }
.app-feat__panel:not([hidden]) .app-feat__points li { animation: app-li-in 0.6s var(--ease-out) both; }
.app-feat__points li:nth-child(1) { animation-delay: 0.15s; }
.app-feat__points li:nth-child(2) { animation-delay: 0.25s; }
.app-feat__points li:nth-child(3) { animation-delay: 0.35s; }
.app-feat__points li:nth-child(4) { animation-delay: 0.45s; }
.app-feat__mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; background: rgba(99, 179, 163, 0.15); color: var(--c-jade); font-family: var(--f-en); font-size: 0.78rem; font-weight: 700; }
.app-feat__mark .icon { width: 14px; height: 14px; }
.app-feat__points--steps .app-feat__mark { background: rgba(232, 135, 159, 0.16); color: var(--c-peach-2); border: 1px solid rgba(232, 135, 159, 0.35); }
.app-feat__alt { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); font-size: 0.92rem; color: var(--c-text-2); overflow-wrap: break-word; }
.app-feat__alt .icon { flex: none; margin-top: 0.2em; color: var(--c-muted); }

/* ==========================================================================
   账号流程
   ========================================================================== */
.app-flow {
  --hl: rgba(232, 135, 159, 0.95);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(56px, 0.55fr) auto minmax(56px, 0.55fr) minmax(0, 1fr);
  align-items: stretch;
}
.app-flow__col { display: grid; grid-auto-rows: 1fr; gap: 16px; align-content: center; }
.app-flow__col--dst { grid-auto-rows: auto; gap: 28px; }
.app-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  box-shadow: var(--shadow-1);
  transition: border-color 0.4s, transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), opacity 0.4s;
}
.app-node:hover { border-color: rgba(232, 135, 159, 0.45); box-shadow: var(--shadow-2), 0 0 0 1px rgba(232, 135, 159, 0.12); }
.js .app-node.is-revealed:hover { transform: translateY(-3px); }
.app-node__ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid rgba(241, 221, 174, 0.35); border-radius: 50%; color: var(--c-gold-2); background: rgba(217, 191, 134, 0.06); }
.app-node__ico .icon { width: 21px; height: 21px; }
.app-node__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-node__body > b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--f-serif); font-size: 1.05rem; color: var(--c-text); }
.app-node__body > span { font-size: 0.9rem; line-height: 1.6; color: var(--c-text-2); text-wrap: pretty; }
.app-node--blocked { border-style: dashed; border-color: rgba(155, 165, 177, 0.3); background: rgba(26, 20, 21, 0.45); box-shadow: none; }
.app-node--blocked .app-node__ico { position: relative; color: var(--c-mist); border-color: rgba(155, 165, 177, 0.35); background: none; }
.app-node--blocked .app-node__ico::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: var(--c-cinnabar); transform: rotate(-45deg); box-shadow: 0 0 6px rgba(194, 59, 50, 0.6); }
.app-node__tag { font-size: 0.66rem; }
.app-node--warn .app-node__ico { color: #f08a80; border-color: rgba(194, 59, 50, 0.5); background: rgba(194, 59, 50, 0.08); }
.app-flow[data-hl] .app-node:not(.is-hl) { opacity: 0.55; }
.app-node.is-hl { border-color: rgba(232, 135, 159, 0.6); }

.app-flow__wire { position: relative; min-width: 0; }
.app-flow__wire svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.app-wire { fill: none; stroke: rgba(217, 191, 134, 0.5); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.4s var(--ease-out), stroke 0.35s, stroke-width 0.35s, opacity 0.35s; }
.app-wire--blocked { stroke: rgba(155, 165, 177, 0.45); }
.app-wire--warn { stroke: rgba(224, 108, 98, 0.55); }
.app-flow.is-drawn .app-wire { stroke-dashoffset: 0; }
.app-flow.is-drawn .app-wire--blocked { transition-delay: 0.3s; }
.app-wire__pulse { fill: none; stroke: var(--c-peach-2); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.07 0.93; stroke-dashoffset: 1; opacity: 0; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(232, 135, 159, 0.9)); }
.app-wire__pulse--warn { stroke: #f4a097; filter: drop-shadow(0 0 4px rgba(224, 108, 98, 0.9)); }
.app-flow.is-drawn .app-wire__pulse { opacity: 1; transition: opacity 0.6s 1.2s; animation: app-pulse 2.6s linear infinite 1.2s; }
.app-flow.is-drawn [data-wire="out"] .app-wire__pulse { animation-delay: 2.5s; transition-delay: 2.5s; }
.app-wire__x path { fill: none; stroke: var(--c-cinnabar); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.app-wire__x { opacity: 0; transition: opacity 0.5s 1.4s; }
.app-flow.is-drawn .app-wire__x { opacity: 1; }
.app-flow[data-hl] .app-wire { opacity: 0.35; }
.app-flow[data-hl] .app-wire.is-hl { opacity: 1; stroke: var(--hl); stroke-width: 2.5; }

.app-flow__hub {
  position: relative;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: clamp(168px, 15vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(232, 135, 159, 0.2), transparent 65%),
    linear-gradient(180deg, var(--c-surface-3), var(--c-surface));
  border: 1px solid rgba(241, 221, 174, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 50px rgba(232, 135, 159, 0.12);
  transition: box-shadow 0.5s, border-color 0.5s;
}
.app-flow[data-hl] .app-flow__hub { border-color: rgba(232, 135, 159, 0.7); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 70px rgba(232, 135, 159, 0.35); }
.app-flow__hub-ring { position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed rgba(241, 221, 174, 0.28); animation: tl-spin 30s linear infinite; pointer-events: none; }
.app-flow__hub b { font-family: var(--f-serif); font-size: 1.08rem; color: var(--c-text); }
.app-flow__hub small { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--c-gold); }
.app-flow__hub .app-icon { --s: 58px; }
.app-flow__more { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
.app-flow__more .link-arrow { min-height: 44px; }

/* ==========================================================================
   上架
   ========================================================================== */
.app-launch { position: relative; padding-block: clamp(84px, 10vw, 150px); overflow: hidden; isolation: isolate; }
.app-launch__bg { position: absolute; inset: 0; z-index: -2; }
.app-launch__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(0.62); }
.app-launch__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 10, 11, 0.55) 0%, rgba(13, 10, 11, 0.82) 48%, rgba(13, 10, 11, 0.92) 100%),
    linear-gradient(180deg, var(--c-bg) 0%, transparent 22%, transparent 78%, var(--c-bg) 100%);
}
.app-launch__inner { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 110px); max-width: calc(1080px + var(--gutter) * 2); }
.app-launch__art { position: relative; display: grid; place-items: center; width: clamp(200px, 24vw, 300px); aspect-ratio: 1; }
.app-launch__wave { position: absolute; inset: 18%; border-radius: 27%; border: 1px solid rgba(241, 221, 174, 0.45); opacity: 0; animation: app-wave 4.2s var(--ease-out) infinite; }
.app-launch__wave--2 { animation-delay: 1.4s; border-color: rgba(232, 135, 159, 0.5); }
.app-launch__wave--3 { animation-delay: 2.8s; }
.app-launch__art .app-icon { animation: app-bob 6s ease-in-out infinite; }
.app-launch__tilt { position: relative; z-index: 1; display: grid; border-radius: 23%; transition: transform 0.3s ease-out; }
.app-launch__tilt .app-icon { transition: box-shadow 0.5s var(--ease-out), filter 0.5s; }
.app-launch__tilt:hover .app-icon { filter: saturate(1.12) brightness(1.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 26px 60px rgba(184, 73, 106, 0.55), 0 0 0 1px rgba(241, 221, 174, 0.4), 0 0 80px rgba(232, 135, 159, 0.35); }
.app-launch__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
/* 「iOS · ANDROID」：保留 iOS 的大小写——不整体转大写，并改用带小写字母的衬线体（Cinzel 只有大写字形） */
.app-launch__copy .kicker { font-family: var(--f-serif); text-transform: none; }
.app-launch__title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
html[lang="en"] .app-launch__title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.app-launch__text { max-width: 560px; color: var(--c-text-2); }
.app-launch__copy .link-arrow { min-height: 44px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.app-faq { max-width: 900px; margin-inline: auto; }
.app-faq__list { border-top: 1px solid var(--c-line-strong); }
.app-faq__item { position: relative; border-bottom: 1px solid var(--c-line-strong); transition: background-color 0.5s; scroll-margin-top: calc(var(--header-h) + 24px); }
.app-faq__item::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--grad-peach); box-shadow: var(--glow-peach); transform: scaleY(0); transform-origin: top; transition: transform 0.55s var(--ease-out); }
.app-faq__item.is-open { background: linear-gradient(90deg, rgba(232, 135, 159, 0.07), transparent 70%); }
.app-faq__item.is-open::before { transform: none; }
.app-faq__item.is-flash { animation: app-flash 1.8s var(--ease-out); }
.app-faq__h { font: inherit; text-wrap: pretty; }
.app-faq__q {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 68px;
  padding: 18px 16px 18px 20px;
  font-family: var(--f-serif);
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--c-text);
  transition: color 0.3s;
}
.app-faq__q:hover, .app-faq__item.is-open .app-faq__q { color: var(--c-peach-2); }
.app-faq__num { font-family: var(--f-en); font-size: 0.82rem; letter-spacing: 0.1em; color: var(--c-gold); }
.app-faq__plus { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--c-line-strong); border-radius: 50%; transition: transform 0.5s var(--ease-out), border-color 0.3s, background-color 0.3s; }
.app-faq__plus::before, .app-faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.app-faq__plus::after { transform: rotate(90deg); }
.app-faq__q:hover .app-faq__plus { border-color: var(--c-peach); }
.app-faq__item.is-open .app-faq__plus { transform: rotate(180deg); border-color: var(--c-peach); background: rgba(232, 135, 159, 0.14); }
.app-faq__item.is-open .app-faq__plus::after { transform: rotate(0deg); }
.app-faq__a { display: grid; grid-template-rows: 1fr; }
.js .app-faq__a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.55s var(--ease-out), visibility 0s linear 0.55s; }
.js .app-faq__item.is-open .app-faq__a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.app-faq__inner { min-height: 0; overflow: hidden; }
.app-faq__inner p { padding: 0 60px 24px 62px; color: var(--c-text-2); line-height: 1.85; overflow-wrap: break-word; }
.js .app-faq__inner p { opacity: 0; transform: translateY(-6px); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.js .app-faq__item.is-open .app-faq__inner p { opacity: 1; transform: none; transition-delay: 0.12s; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 1600px) {
  .app-stage { --pw: clamp(260px, min(17vw, 30vh), 320px); }
}
@media (max-width: 1180px) {
  .app-feat { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs device" "panels device"; align-items: start; row-gap: 36px; }
  .app-feat__device { align-self: center; }
  .app-feat__panel { align-self: start; }
  .app-flow { grid-template-columns: minmax(0, 1fr) minmax(36px, 0.35fr) auto minmax(36px, 0.35fr) minmax(0, 1fr); }
  .app-node { padding: 16px; gap: 12px; }
  .app-node__ico { width: 40px; height: 40px; }
}
@media (max-width: 1023px) {
  .app-hero { min-height: 0; align-items: flex-start; }
  .app-hero__inner { grid-template-columns: 1fr; }
  .app-hero__copy { max-width: 680px; }
  .app-stage { --pw: clamp(160px, 31vw, 240px); }
}
@media (max-width: 900px) {
  .app-flow { grid-template-columns: 1fr; justify-items: stretch; max-width: 520px; margin-inline: auto; }
  .app-flow__col { grid-auto-rows: auto; }
  .app-flow__hub { justify-self: center; }
  .app-flow__wire { height: 64px; }
  .app-flow__wire svg { display: none; }
  .app-flow__wire::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1.5px; margin-left: -0.75px; background: linear-gradient(180deg, rgba(217, 191, 134, 0.1), rgba(217, 191, 134, 0.7)); }
  .app-flow__wire::after { content: ""; position: absolute; left: 50%; top: 8px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--c-peach-2); box-shadow: 0 0 10px var(--c-peach); animation: app-drop 2.2s var(--ease-in-out) infinite; }
  .app-flow[data-hl] .app-node:not(.is-hl) { opacity: 1; }
}
@media (max-width: 767px) {
  .app-feat { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "device" "panels"; row-gap: 28px; }
  .app-feat__tabs {
    --fl: 1;
    --fr: 0;
    flex-direction: row;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    /* 两端渐隐提示可横向滑动（--fl / --fr 由 app.js 按滚动位置设置） */
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, var(--fl)) 0, #000 36px, #000 calc(100% - 36px), rgba(0, 0, 0, var(--fr)) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, var(--fl)) 0, #000 36px, #000 calc(100% - 36px), rgba(0, 0, 0, var(--fr)) 100%);
  }
  .app-feat__tabs::-webkit-scrollbar { display: none; }
  .app-feat__tab { flex: none; grid-template-columns: auto auto; min-height: 52px; padding: 8px 16px 8px 8px; gap: 10px; border-radius: 999px; scroll-snap-align: start; }
  .app-feat__tab:hover { transform: none; }
  .app-feat__tab[aria-selected="true"] { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
  .app-feat__ico { width: 36px; height: 36px; }
  .app-feat__ico .icon { width: 17px; height: 17px; }
  .app-feat__txt small, .app-feat__num { display: none; }
  .app-feat__txt b { font-size: 0.95rem; white-space: nowrap; }
  .app-feat__prog { left: 18px; right: 18px; bottom: 4px; border-radius: 2px; }
  .app-feat__device { --pw: clamp(210px, 60vw, 260px); }
  /* 手机上面板在手机图下方：不再叠放，避免短面板下方留出大片空白 */
  .js .app-feat__panels > .app-feat__panel[hidden] { display: none !important; }
  .app-feat__pnum { font-size: 2.8rem; }
  .app-launch__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .app-launch__copy { align-items: center; }
  .app-launch__copy .kicker::before { display: inline-block; }
  .app-launch__art { width: clamp(180px, 52vw, 240px); }
  .app-faq__inner p { padding: 0 18px 22px 20px; }
  .app-faq__q { gap: 14px; padding: 16px 12px 16px 16px; }
}
@media (max-width: 640px) {
  .app-hero { padding-bottom: 72px; }
  .app-hero__copy { gap: 14px; }
  .app-hero__label .app-icon { --s: 44px; }
  /* 徽章框占满一行，两枚徽章等分宽度（官方图片等比缩放，不变形） */
  .app-hero__dock, .app-launch__dock { width: 100%; }
  .app-dock { display: flex; width: 100%; padding: 14px 12px 12px; border-radius: 16px; }
  .app-dock::after { border-radius: 20px; }
  .app-dock__badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; }
  .app-dock .store-badges--lg .store-badge img { width: 100%; max-width: 200px; }
  .app-launch__copy .app-dock { align-items: center; }
  .app-launch__copy .app-dock__badges { justify-items: center; }
  .app-stage { --pw: clamp(150px, 41vw, 200px); height: calc(var(--pw) * 2.08 + 40px); }
  .app-slot--front, .app-stage.is-swapped .app-slot--back { transform: translate(30%, 2%) rotate(3deg); }
  .app-slot--back, .app-stage.is-swapped .app-slot--front { transform: translate(-46%, -5%) rotate(-6deg) scale(0.86); }
  .app-fcard { font-size: 0.72rem; padding: 7px 10px 7px 7px; gap: 7px; max-width: 170px; border-radius: 12px; }
  .app-fcard b, .app-fcard small { font-size: 0.7rem; }
  .app-fcard .app-av { font-size: 11px; }
  .app-fcard--msg { top: 2%; left: -2%; }
  .app-fcard--online { bottom: 4%; left: -2%; }
  .app-fcard--news { top: 40%; right: -3%; }
  .app-fcard__ico { width: 28px; height: 28px; }
  .app-fcard__ico .icon { width: 15px; height: 15px; }
  .app-stage__vertical { display: none; }
  .app-seg-ctrl__btn { padding: 0 11px; font-size: 0.84rem; letter-spacing: 0.02em; }
  .app-feat__alt { font-size: 0.88rem; }
}
@media (max-width: 480px) {
  .app-stage__controls { gap: 8px; }
  .app-hero__status { gap: 8px; padding: 5px 12px 5px 10px; font-size: 0.78rem; }
  .app-hero__stores { gap: 4px; padding-left: 8px; }
  .app-hero__stores .icon { width: 13px; height: 13px; }
  .app-hero__stores i { margin: 0 2px; }
  .app-seg-ctrl__btn { padding: 0 8px; font-size: 0.8rem; }
  .app-seg-ctrl__prog { left: 8px; right: 8px; }
}
@media (max-width: 380px) {
  .app-fcard--news { display: none; }
  .app-seg-ctrl__btn { padding: 0 6px; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .app-stage__ring, .app-flow__hub-ring, .app-slot__float, .app-fcard, .app-launch__art .app-icon, .app-launch__wave,
  .app-hero__pulse::after, .app-feat__try-dot::after, .app-dock__fx::after { animation: none !important; }
  .app-dock__fx::after, .app-dock__spot { display: none; }
  .app-hero__pulse::after, .app-feat__try-dot::after { display: none; }
  .app-launch__wave { opacity: 0.35; transform: scale(1.15); }
  .app-launch__wave--2 { transform: scale(1.35); opacity: 0.2; }
  .app-launch__wave--3 { display: none; }
  .app-wire { stroke-dashoffset: 0; }
  .app-wire__pulse { display: none; }
  .app-wire__x { opacity: 1; }
}

/* ---------- 动画 ---------- */
@keyframes app-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes app-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes app-ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes app-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-0.3em); opacity: 1; } }
@keyframes app-ripple { 0% { opacity: 0.9; transform: scale(0); } 100% { opacity: 0; transform: scale(5); } }
@keyframes app-pop { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-12deg); } 70% { transform: scale(0.92); } 100% { transform: scale(1); } }
@keyframes app-caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes app-panel-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes app-li-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes app-pulse { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes app-wave { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes app-drop { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@keyframes app-flash { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 1px rgba(232, 135, 159, 0.7), 0 0 40px rgba(232, 135, 159, 0.25); } }
@keyframes app-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes app-sheen { 0% { transform: translateX(-110%); } 45%, 100% { transform: translateX(280%); } }

/* ---------- 打印 ---------- */
@media print {
  .app-hero__stage, .app-feat__device, .app-launch__art, .petals-layer { display: none !important; }
}
