/* ============================================================================
   Upaya —— iOS 设计语言
   参照 Apple《Designing Fluid Interfaces》与 HIG：
   系统字体、尺寸相关的字距、半透明材质、临界阻尼弹簧、分组内嵌列表。
   颜色全部走 CSS 变量，浅色为基准，深色只重定义变量。
   ========================================================================= */

:root {
  color-scheme: light dark;

  /* --- iOS 系统色（浅色）--- */
  --bg:            #F2F2F7;   /* systemGroupedBackground */
  --bg-elevated:   #FFFFFF;
  --surface:       #FFFFFF;   /* secondarySystemGroupedBackground */
  --fill:          rgba(120,120,128,.12);   /* secondarySystemFill */
  --fill-strong:   rgba(120,120,128,.20);
  --separator:     rgba(60,60,67,.14);      /* opaqueSeparator 近似 */

  --label:         #000000;
  --label-2:       rgba(60,60,67,.62);      /* secondaryLabel */
  --label-3:       rgba(60,60,67,.32);      /* tertiaryLabel */

  --accent:        #FFCC00;   /* systemYellow —— Upaya 的闪电色，恰好是系统色 */
  --accent-ink:    #1C1C1E;   /* 黄底上的字：近黑，对比度足够 */
  --accent-strong: #8A6000;   /* 当强调色要当文字用：亮黄在白底上看不清，压暗到能读 */
  --green:         #34C759;
  --red:           #FF3B30;
  --orange:        #FF9500;

  /* --- 圆角：iOS 的连续圆角，越大的面越圆 --- */
  --r-s: 10px;  --r-m: 14px;  --r-l: 20px;  --r-xl: 28px;

  /* --- 运动：iOS 的标准曲线，临界阻尼、不过冲 --- */
  --spring:  cubic-bezier(.32,.72,0,1);      /* sheet / 大面积位移，iOS 抽屉曲线 */
  --out:     cubic-bezier(.23,1,.32,1);      /* 强 ease-out：进入/反馈都用它 */
  --ease:    cubic-bezier(.25,.1,.25,1);     /* 仅用于颜色这类无方向的变化 */
  --t-press: .12s;    /* 按下反馈 */
  --t-fast:  .18s;    /* 悬停、颜色 */
  --t-base:  .24s;    /* 分段控件、小位移 */
  --t-enter: .42s;    /* 滚动入场（装饰性，可以长一点）*/

  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-hero: 0 4px 12px rgba(0,0,0,.08), 0 40px 80px rgba(0,0,0,.16);
  --maxw: 1120px;
  --gutter: max(20px, env(safe-area-inset-left));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #000000;
    --bg-elevated: #1C1C1E;
    --surface:     #1C1C1E;
    --fill:        rgba(120,120,128,.24);
    --fill-strong: rgba(120,120,128,.36);
    --separator:   rgba(84,84,88,.60);
    --label:       #FFFFFF;
    --label-2:     rgba(235,235,245,.60);
    --label-3:     rgba(235,235,245,.30);
    --accent:      #FFD426;
    --accent-ink:  #000000;
    --accent-strong: #FFD426;   /* 黑底上不需要压暗，直接用亮黄 */
    --green:       #30D158;
    --red:         #FF453A;
    --orange:      #FF9F0A;
    --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.5);
    --shadow-hero: 0 4px 16px rgba(0,0,0,.5), 0 48px 96px rgba(0,0,0,.7);
  }
}

/* --- 对比度偏好：把半透明换成实心 + 明确描边 --- */
@media (prefers-contrast: more) {
  :root { --separator: rgba(60,60,67,.6); --label-2: rgba(60,60,67,.9); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* 系统字体自带光学尺寸和字距表，没有理由不用 */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;              /* iOS body */
  line-height: 1.47;
  color: var(--label);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ============================ 字体层级 ============================
   字距随字号变：大字要收紧（长大后字母显得太散），正文接近 0。
   固定一个 letter-spacing 用到底，一定有某个尺寸是错的。 */
.t-large-title { font-size: clamp(44px, 9.5vw, 104px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.t-title-1     { font-size: clamp(30px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.028em; font-weight: 700; }
.t-title-2     { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.018em; font-weight: 600; }
.t-headline    { font-size: 17px; line-height: 1.29; letter-spacing: -.004em; font-weight: 600; }
.t-body        { font-size: 17px; line-height: 1.47; letter-spacing: 0; }
.t-callout     { font-size: 16px; line-height: 1.31; letter-spacing: 0; }
.t-subhead     { font-size: 15px; line-height: 1.33; letter-spacing: .006em; }
.t-footnote    { font-size: 13px; line-height: 1.38; letter-spacing: .012em; }
.t-caption     { font-size: 12px; line-height: 1.33; letter-spacing: .02em; }
.dim  { color: var(--label-2); }
.dim2 { color: var(--label-3); }

/* ============================ 导航：半透明材质 ============================
   内容从它下面滚过去，而不是被一条不透明的带子切掉一块。 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
/* 悬浮 UI 压住内容的地方用渐隐，而不是一条 1px 的硬线 */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
  background: linear-gradient(color-mix(in srgb, var(--bg) 55%, transparent), transparent);
  pointer-events: none;
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; height: 52px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.brand .bolt {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
}
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--label-2); }
.nav-links a { transition: color var(--t-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--label); } }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ============================ 按钮 ============================
   反馈发生在按下的那一刻，不是松手之后。 */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; cursor: pointer; white-space: nowrap;
  border-radius: 980px;                      /* iOS 胶囊 */
  font-weight: 600; letter-spacing: -.01em;
  background: var(--fill); color: var(--label);
  padding: 10px 18px; font-size: 15px;
  transition: transform var(--t-press) var(--out), background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--fill-strong); } }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .38; cursor: default; transform: none; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--label)); }
}

.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-plain { background: transparent; color: var(--label-2); font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .btn-plain:hover { color: var(--label); } }

/* ============================ 版心 ============================ */
/* 所有区块共用同一个内容宽度：卡片、列表、价格、下载的左右边界落在同一条线上。
   之前卡片 1120、价格 680、列表满宽，三条不同的边线，扫一眼就是乱。 */
.wrap-page { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
/* 价格这类内容不该拉到 1120 那么宽——两张卡之间会被扯开 */
.wrap-narrow { max-width: 760px; margin: 0 auto; }
/* 相邻两个 section 的 padding 会叠成 300px+ 的空白，读起来像"页面断了"。
   苹果的做法是背景交替——留白还在，但因为有了色块边界，它读作节奏而不是空洞。 */
.section { padding: clamp(76px, 10vw, 132px) 0; }
.section.alt { background: var(--bg-elevated); }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin: 0; text-wrap: balance; }
.section-head p { margin: 16px auto 0; color: var(--label-2); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.4; max-width: 34ch; text-wrap: balance; }

/* ============================ 首屏 ============================ */
.hero { text-align: center; padding: clamp(48px, 9vw, 112px) var(--gutter) clamp(24px, 4vw, 48px); }
.hero h1 { margin: 26px 0 0; }
.hero .lead { margin: 20px auto 0; max-width: 30ch; text-wrap: balance; color: var(--label-2); font-size: clamp(18px, 2.1vw, 24px); line-height: 1.36; letter-spacing: -.01em; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 印章：品牌的锚点。缓慢呼吸——远低于会引起不适的频率，且尊重减少动态偏好。 */
.seal { width: clamp(96px, 14vw, 132px); margin: 0 auto; opacity: .96; }
.seal svg { width: 100%; height: auto; display: block; }

/* 平台条 */
.plat-row { margin-top: 26px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.plat {
  font-size: 13px; padding: 6px 13px; border-radius: 980px;
  color: var(--label-3); background: var(--fill);
}
.plat.on { color: var(--accent-ink); background: var(--accent); font-weight: 600; }

/* ============================ 分组内嵌列表（iOS 设置的那种）============ */
.list {
  background: var(--surface); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 22px; position: relative;
}
/* 分隔线从内容起始处开始，不顶到卡片边缘——iOS 的做法 */
.list-row + .list-row::before {
  content: ""; position: absolute; left: 22px; right: 0; top: 0;
  height: 1px; background: var(--separator);
}
.list-row .k { flex: 1; min-width: 0; }
.list-row .v { color: var(--label-2); text-align: right; }
.list-row .v.ok { color: var(--green); }

/* ============================ 功能卡 ============================ */
/* 等高。两列栅格里参差的底边比底部留白更显乱——真正的解法是把文案写成
   长度接近，而不是让格子去迁就长短不一的内容。 */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border-radius: 22px;
  padding: clamp(28px, 3.2vw, 40px);
  box-shadow: var(--shadow-card);
}
.card h3 { margin: 0 0 12px; }
.card p { margin: 0; color: var(--label-2); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.5; }
/* 图标从 40px 灰底小方块改成 56px 的品牌色描边——小图标是后台管理界面的语言 */
.card .glyph {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 24px;
  --icon: 28px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: color-mix(in srgb, var(--accent) 72%, var(--label));
}
.card.wide { grid-column: 1 / -1; }

/* ============================ 首屏轮播 ============================ */
/* 六张原创游戏氛围图（BytePlus 生成，不含任何游戏官方素材），进站即见、自动轮播 */
.hero-art { position: relative; margin: clamp(40px, 6vw, 72px) auto 0; max-width: 1040px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-hero); aspect-ratio: 16 / 9; background: #0b0b0d; }
.hero-slides { position: absolute; inset: 0; }
/* 交叉淡入：所有图都在，只切 .on 的透明度（hidden 会让过渡失效） */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero-slide.on { opacity: 1; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 左下角文案：下面垫渐暗，白字在任何画面上都看得清 */
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(60px, 9vw, 120px) clamp(22px, 4vw, 44px) clamp(22px, 3.4vw, 38px); text-align: left; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.28) 55%, transparent); pointer-events: none; }
.hero-cap-tag { display: inline-block; padding: 5px 11px; border-radius: 999px; background: rgba(255,204,0,.92); color: #1c1c1e; font-size: clamp(12px, 1.2vw, 14px); font-weight: 600; letter-spacing: .02em; }
.hero-cap-title { display: block; max-width: 72%; margin-top: clamp(10px, 1.4vw, 16px); font-size: clamp(24px, 3.8vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
/* 圆点放右下角，别压到左下角的文案 */
.hero-dots { position: absolute; right: clamp(18px, 3vw, 32px); bottom: clamp(20px, 3.2vw, 36px); display: flex; gap: 8px; z-index: 2; }
.hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: background var(--t-fast), width var(--t-fast); }
.hero-dot.on { width: 22px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ============================ 价格 ============================ */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }
.price {
  background: var(--surface); border-radius: 22px; padding: 32px 28px;
  box-shadow: var(--shadow-card);
  position: relative; text-align: center;
}
.price.best { outline: 2px solid var(--accent); outline-offset: -2px; }
.price .badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 980px;
}
.price .amt { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 2px; }
.price .amt span { font-size: 17px; font-weight: 500; color: var(--label-2); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.price li { display: flex; gap: 9px; padding: 5px 0; color: var(--label-2); font-size: 15px; }
.price li::before { content: "✓"; color: var(--green); font-weight: 700; flex: 0 0 auto; }

/* ============================ 下载 ============================ */
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 720px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
/* 四张卡统一三行结构：平台名 / 说明 / 动作。
   只有 macOS 那张有按钮，另外三张的动作行留空占位——
   否则文字行不在同一高度，四张并排就是歪的。 */
.dl {
  background: var(--surface); border-radius: 22px; padding: 26px 18px;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: grid; grid-template-rows: auto auto 1fr; gap: 5px;
  transition: transform var(--t-fast) var(--out);
}
.dl.on:active { transition-duration: var(--t-press); }
.dl .os { font-weight: 600; color: var(--label-2); }
.dl .meta { margin-top: 5px; color: var(--label-3); }
.dl.on .os { color: var(--label); }
@media (hover: hover) and (pointer: fine) {
  .dl.on:hover { transform: translateY(-3px); }
}
.dl.on:active { transform: scale(.975); }
.dl .go { align-self: end; margin-top: 15px; }

.note {
  margin-top: 20px; padding: 16px 18px; border-radius: var(--r-m);
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  color: var(--label-2);
}
.note b { color: var(--label); }

/* ============================ 表单 ============================ */
label { display: block; margin: 0 0 6px 2px; color: var(--label-2); font-size: 13px; }
input {
  width: 100%; padding: 13px 15px; border-radius: var(--r-m);
  border: 1px solid transparent; background: var(--fill);
  color: var(--label); font-size: 17px; outline: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
input::placeholder { color: var(--label-3); }
input:focus { border-color: var(--accent); background: var(--bg-elevated); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.field + .field { margin-top: 14px; }

/* ============================ 用户中心 ============================ */
.wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter) 72px; }
.sheet {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 24px; margin-bottom: 16px;
}
.sheet h2 { margin: 0 0 16px; }
.sheet > .btn { margin-top: 12px; }

.days { text-align: center; padding: 26px 0 22px; }
.days b {
  display: block; font-size: 64px; font-weight: 700; letter-spacing: -.04em;
  line-height: 1; color: var(--green); font-variant-numeric: tabular-nums;
}
.days b i { font-style: normal; font-size: 22px; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.days span { display: block; margin-top: 8px; color: var(--label-2); }
.idle { text-align: center; padding: 22px 0; }
.idle b { display: block; margin-bottom: 5px; }
.idle span { color: var(--label-2); }

.opt {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 15px 17px; border-radius: var(--r-m); background: var(--fill);
  cursor: pointer; margin-bottom: 9px;
  border: 2px solid transparent;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-press) var(--out);
}
.opt:active { transform: scale(.975); }
.opt.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.opt .meta { color: var(--label-2); margin-top: 2px; }
.opt .right { text-align: right; white-space: nowrap; }
.opt .right b { font-size: 19px; }

.way {
  display: block; width: 100%; text-align: left; cursor: pointer; border: none;
  padding: 16px 18px; border-radius: var(--r-m); margin-top: 10px;
  background: var(--accent); color: var(--accent-ink);
  transition: transform var(--t-press) var(--out), background var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.way:active { transform: scale(.975); }
.way:disabled { background: var(--fill); color: var(--label-3); cursor: default; transform: none; }
.way b { display: block; font-weight: 600; margin-bottom: 3px; }
.way span { display: block; font-size: 13px; opacity: .72; }
.way .tag {
  font-style: normal; font-size: 11px; font-weight: 700; margin-left: 7px;
  padding: 2px 7px; border-radius: 980px; background: rgba(0,0,0,.14); vertical-align: 1px;
}

code {
  display: block; padding: 14px 15px; border-radius: var(--r-m);
  background: var(--fill); color: var(--label);
  font: 500 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  word-break: break-all; user-select: all;
}
.addr-row { display: flex; gap: 10px; align-items: stretch; }
.addr-row code { flex: 1; }
.btn-copy { flex: 0 0 88px; border-radius: var(--r-m); }
.btn-copy.done { background: var(--green); color: #fff; }
@media (max-width: 480px) { .addr-row { flex-direction: column; } .btn-copy { flex: none; width: 100%; } }

/* 充值记录 */
/* ⚠️ .row 在表单里是"等分两列"，记录里需要的是"两端对齐"。
   同名不同意，所以这里必须把 flex 显式覆盖回去。 */
.dep-hist .row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 0; position: relative;
}
.dep-hist .row > * { flex: 0 1 auto; }
.dep-hist .row + .row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--separator);
}
.dep-hist b { color: var(--green); font-weight: 600; }
.dep-hist .zero { color: var(--orange); }

.msg { margin-top: 12px; min-height: 20px; color: var(--label-2); font-size: 15px; }
.msg.err { color: var(--red); } .msg.ok { color: var(--green); } .msg.warn { color: var(--orange); }
.steps {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--r-m);
  background: var(--fill); font-size: 14px; color: var(--label-2);
}
.steps div { padding: 3px 0; }
.steps .done { color: var(--green); } .steps .cur { color: var(--label); font-weight: 600; }
.hide { display: none !important; }

/* ============================ 页脚 ============================ */
.footer { padding: 44px var(--gutter) 56px; text-align: center; color: var(--label-3); }
.footer .links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer .links a { color: var(--label-2); font-size: 15px; }

/* ============================ 入场 ============================
   只做不位移的淡入 + 极小的上移，不做视差、不做大面积位移。 */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--t-enter) var(--out) var(--d, 0s),
              transform var(--t-enter) var(--out) var(--d, 0s);
}

/* ============================ 偏好设置 ============================ */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* 减少动态不等于没有反馈——保留透明度变化，去掉位移和弹性 */
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .12s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:active, .opt:active, .way:active, .dl.on:active { transform: none; }
}

/* ---------- 下载前的平台提示弹窗 ----------
   每个平台首次打开会被系统拦一下，原因各不相同。以前把三条都摊在下载区
   底下，结果是：想装 Windows 的人要先读完 mac 和安卓的说明。
   改成点哪个平台弹哪条，看完再开始下载。

   ⚠️ display:none 的元素 transition 根本不会启动，所以要 allow-discrete
   配 @starting-style —— 这个坑在这个项目上踩过一次。 */
.dlg-back {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(20px) saturate(180%);
  display: grid; place-items: center; padding: 20px;
  opacity: 1;
  transition: opacity var(--t-base) var(--out), display var(--t-base) allow-discrete;
}
.dlg-back[hidden] { display: none; }
@starting-style { .dlg-back { opacity: 0; } }

.dlg {
  background: var(--surface); border-radius: 22px;
  padding: 28px 26px 22px; width: min(440px, 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  text-align: left;
  transform: scale(1); opacity: 1;
  transition: transform var(--t-base) var(--spring), opacity var(--t-base) var(--out);
}
/* 从 .96 起，不是 0 —— 东西不会从无到有地冒出来 */
@starting-style { .dlg { transform: scale(.96); opacity: 0; } }

.dlg h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.dlg p  { margin: 0 0 8px; color: var(--label-2); font-size: 15px; line-height: 1.65; }
.dlg .step { display: flex; gap: 10px; margin: 10px 0; }
.dlg .step i {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-style: normal; font-size: 13px; font-weight: 600;
  display: grid; place-items: center; margin-top: 1px;
}
.dlg-act { display: flex; gap: 10px; margin-top: 20px; }
.dlg-act .btn { flex: 1; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .dlg-back, .dlg { transition-duration: .01ms; }
  .dlg { transform: none; }
  @starting-style { .dlg { transform: none; } }
}

/* ============================ 帮助与支持 ============================
   左边联系卡（邮箱是主角，品牌黄从右上角淡淡铺开），右边 iOS 设置式的分组列表：
   彩色小图标 + 问题 + 箭头，点开看分步骤的说明。窄屏上下排。 */
.help { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; max-width: 1000px; margin: 0 auto; }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; } }
.help-contact {
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    var(--surface);
}
.help-mail {
  display: block; margin: 4px 0 10px;
  font-size: clamp(22px, 2.5vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.help-contact p { margin: 0; text-wrap: balance; }
.help-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.help-contact .help-en { margin-top: 20px; }
.help-en a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--label-3); }
.help-label { margin: 0 0 10px 20px; }

.faq-item { position: relative; }
.faq-item + .faq-item::before {
  content: ""; position: absolute; left: 64px; right: 0; top: 0;
  height: 1px; background: var(--separator);
}
.faq-q {
  display: flex; align-items: center; gap: 14px; padding: 15px 20px;
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .k { flex: 1; min-width: 0; }
.faq-q:active { background: var(--fill); }
@media (hover: hover) and (pointer: fine) { .faq-q:hover { background: var(--fill); } }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-ico {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.faq-ico.tone-accent { background: var(--accent); color: var(--accent-ink); }
.faq-ico.tone-orange { background: var(--orange); }
.faq-ico.tone-green  { background: var(--green); }
.faq-ico.tone-red    { background: var(--red); }
.faq-chev { flex: none; color: var(--label-3); transition: transform var(--t-base) var(--out); }
.faq-item[open] .faq-chev { transform: rotate(90deg); }
.faq-a { padding: 2px 22px 22px 64px; color: var(--label-2); font-size: 16px; line-height: 1.5; }
.faq-item[open] .faq-a { animation: faq-in var(--t-base) var(--out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
.faq-a p { margin: 12px 0 0; }
.faq-a p:first-child { margin-top: 0; }
.faq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.faq-steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; color: var(--label); word-break: keep-all; overflow-wrap: anywhere; }
.faq-steps li::before {
  content: counter(step); flex: none; margin-top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--label-2);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) { .faq-a { padding-left: 20px; } .faq-item + .faq-item::before { left: 20px; } }

/* ============================ 中英文 ============================
   页面里的文字写两份：lang="zh" / lang="en"。<html data-lang> 由每页 <head> 里的小脚本定好（在渲染之前），
   这里只负责藏掉另一种语言，所以不会先闪一下中文再变英文。 */
html[data-lang="en"] [lang="zh"], html:not([data-lang="en"]) [lang="en"] { display: none !important; }
/* 分中英文用的 span 只是个容器，不能被「某某 span」这类规则改掉样子（比如 .way span 会把它变成单独一行的小字、.num span 会多出上边距），
   一律按外面的元素来。比 .way span 这类规则多一层（html），盖得住；藏另一种语言的规则带 !important，不受影响 */
html span[lang] { display: inline; margin: 0; padding: 0; font: inherit; color: inherit; opacity: 1; letter-spacing: inherit; }
/* 套餐、币种后面的「省 2 个月」「立减 29%」：和「怎么付」里的「推荐」同一种小标签（原来没有样式，和前面的字粘在一起） */
.opt .tag {
  font-style: normal; font-size: 11px; font-weight: 700; margin-left: 7px; vertical-align: 1px;
  padding: 2px 7px; border-radius: 980px;
  background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--accent-strong);
}

/* 第一次进站：选语言 */
.lang-pick {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(0,0,0,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: lang-fade var(--t-base) var(--out);
}
.lang-card {
  width: min(340px, 100%); display: grid; gap: 10px; text-align: center;
  background: var(--surface); border-radius: var(--r-xl); padding: 30px 22px 20px;
  box-shadow: var(--shadow-hero); animation: lang-rise var(--t-enter) var(--spring);
}
.lang-card .mark {
  width: 52px; height: 52px; margin: 0 auto 4px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
}
.lang-card h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.lang-card h2 span { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--label-2); }
.lang-card .btn { width: 100%; }
.lang-card p { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--label-3); }
@keyframes lang-fade { from { opacity: 0; } }
@keyframes lang-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* 分段控件（iOS 的 UISegmentedControl）：用户中心切换语言 */
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 9px; background: var(--fill); }
.seg button {
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  padding: 6px 14px; border-radius: 7px; font-size: 14px; color: var(--label);
  transition: background-color var(--t-fast) var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.lang-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
