/* =========================================================
 * 极光娱乐 落地页样式  ·  紫蓝极光主题（与 LOGO 同色系）
 * 尺寸体系：1rem = 页面宽度的 10%（750 设计稿）
 * 换配色 → 改 js/config.js 里的 colors
 *
 * 2026-11-06：
 *   ① 品牌 星耀国际 → 极光娱乐，主题由黑金改为紫蓝极光
 *   ② 六宫格分类条、GC/GLI/MGA 认证条原本是 688×128 / 750×130 的低清截图，
 *      手机放大后发糊 → 全部改成内联 SVG 矢量 + 真文字，任意分辨率都锐利
 * ======================================================= */

:root{
  --primary:#7c3aed;        /* 主紫 */
  --primary-l:#a78bfa;      /* 亮紫（渐变高光） */
  --primary-d:#4c1d95;      /* 深紫（渐变收尾） */
  --indigo:#4f46e5;         /* 靛蓝 */
  --cyan:#22d3ee;           /* 极光青 */
  --fuchsia:#e879f9;        /* 极光品红 */
  --ink:#16102b;            /* 墨紫 */
  --danger:#e11d48;         /* 强调玫红（返水数字） */
  --page-bg:#efe9fb;        /* 页面底色 */
  --card:#ffffff;           /* 卡片底色 */
  --text:#1b1430;
  --text-sub:#6d6490;
  --line:#e7e0f7;
  --radius:.24rem;

  /* 兼容 app.js 里 colors 映射的旧变量名 */
  --gold:var(--primary);
  --gold-l:var(--primary-l);
  --gold-d:var(--primary-d);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}

html{font-size:10vw;-webkit-text-size-adjust:100%}
@media screen and (min-width:500px){html{font-size:50px}}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Hiragino Sans GB","Hiragino Kaku Gothic ProN","Apple SD Gothic Neo","Noto Sans JP","Noto Sans KR","Noto Sans Thai","Thonburi","Microsoft YaHei",sans-serif;
  font-size:.3467rem;
  line-height:1.4286;
  color:var(--text);
  background:var(--page-bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{display:block;border:0;vertical-align:middle;max-width:100%}
picture{display:block}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{-webkit-tap-highlight-color:transparent}
em,i{font-style:normal}
svg{display:block}

/* 键盘可见焦点（不影响触屏） */
:focus-visible{outline:.04rem solid var(--primary);outline-offset:.04rem}

/* 内容容器：超宽屏居中，最大 500px */
.app{
  position:relative;
  max-width:500px;
  margin:0 auto;
  background:var(--card);
  min-height:100vh;
  padding-bottom:calc(1.6rem + env(safe-area-inset-bottom, 0px));
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* ---------------- ① 品牌头部 ---------------- */
.brand{
  padding:.26rem .28rem .2rem;
  background:
    radial-gradient(120% 90% at 12% 0%,rgba(167,139,250,.20),transparent 60%),
    radial-gradient(100% 80% at 92% 8%,rgba(34,211,238,.16),transparent 62%),
    linear-gradient(180deg,#fbf9ff 0%,#f4efff 100%);
}
/* 右上角语言入口 */
.brand-top{display:flex;justify-content:flex-end;margin-bottom:.1rem}
.lang-btn{
  display:inline-flex;align-items:center;gap:.06rem;
  height:.44rem;padding:0 .16rem;
  border-radius:.22rem;
  font-size:.22rem;font-weight:700;color:#5b21b6;
  background:rgba(255,255,255,.92);
  border:.02rem solid #ddd0f8;
  box-shadow:0 .02rem .08rem rgba(88,54,180,.1);
}
.lang-btn svg{
  width:.3rem;height:.3rem;
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.lang-btn:active{background:#f4efff}
.brand-card{
  display:flex;
  align-items:center;
  gap:.16rem;
  padding:.16rem .2rem .16rem .14rem;
  background:#fff;
  border:.02rem solid #e4daf9;
  border-radius:.34rem;
  box-shadow:0 .08rem .26rem rgba(88,54,180,.13),inset 0 .02rem 0 #fff;
}
.brand-logo{
  flex:0 0 auto;
  width:.98rem;height:.98rem;
  object-fit:contain;
  border-radius:.2rem;
}
.brand-txt{min-width:0;flex:1}
.brand-line1{display:flex;align-items:baseline;gap:.1rem;line-height:1.05}
.brand-name{
  font-size:.64rem;font-weight:800;letter-spacing:.02rem;
  background:linear-gradient(180deg,#b79dff 0%,#8b5cf6 38%,#6d28d9 68%,#3b1579 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  -webkit-text-stroke:.003rem rgba(240,235,255,.6);
  filter:drop-shadow(0 .015rem .02rem rgba(60,30,120,.26));
}
.brand-line1 em{
  align-self:center;
  padding:.02rem .1rem;
  font-size:.24rem;font-weight:700;color:#6d4bb5;letter-spacing:.04rem;
  border:.015rem solid rgba(124,58,237,.42);
  border-radius:.08rem;
  background:rgba(247,244,255,.95);
}
.brand-tag{
  margin-top:.09rem;
  font-size:.26rem;font-weight:600;letter-spacing:.055rem;color:#7b7398;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* ---------------- ② 主视觉 ---------------- */
.hero{width:100%;height:auto}

/* ---------------- ③ 信息卡 ---------------- */
.info{
  position:relative;
  margin:.24rem .28rem 0;
  padding:.24rem .22rem .22rem;
  background:#fff;
  border:.02rem solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 .06rem .3rem rgba(88,54,180,.13);
}
.info-top{display:flex;align-items:center;gap:.2rem}
.info-logo{
  flex:0 0 auto;
  width:1.26rem;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.04rem;
}
.info-logo img{
  width:1.02rem;height:1.02rem;object-fit:contain;
  border-radius:.22rem;
}
.info-logo span{
  font-size:.2rem;font-weight:800;letter-spacing:.01rem;white-space:nowrap;
  background:linear-gradient(180deg,#9d7cf7,#5b21b6);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  line-height:1.2;
}
.info-body{flex:1;min-width:0}
.info-title{
  font-size:.48rem;font-weight:800;color:#171029;letter-spacing:.004rem;
  line-height:1.22;white-space:nowrap;
}
.rebate{
  margin-top:.1rem;font-size:.44rem;font-weight:800;line-height:1.2;
  color:#5b4f80;
  white-space:nowrap;
}
.rebate b{
  font-size:.56rem;font-weight:800;color:var(--danger);
  letter-spacing:-.01rem;margin-left:.04rem;
}
.pills{display:flex;align-items:center;gap:.1rem;margin-top:.14rem;flex-wrap:wrap}
.pill{
  display:inline-flex;align-items:center;gap:.07rem;
  height:.42rem;padding:0 .16rem;
  font-size:.24rem;font-weight:700;color:#4b4266;
  border-radius:.21rem;
  background:linear-gradient(180deg,#fdfbff,#f4f0ff);
  box-shadow:inset 0 0 0 .018rem #e6defa;
}
.pill.wallet .ico{
  width:.3rem;height:.3rem;border-radius:50%;
  display:grid;place-items:center;
  font-size:.19rem;font-weight:800;color:#fff;
  background:linear-gradient(180deg,#a78bfa,#7c3aed);
}
.pill.guarantee{
  color:#3f3760;
  background:linear-gradient(180deg,#ffffff,#f2eefc);
  box-shadow:inset 0 0 0 .018rem #ded5f6;
}

.strip{
  margin-top:.2rem;height:.8rem;
  display:flex;align-items:center;justify-content:center;gap:.16rem;
  border-radius:.4rem;
  background:linear-gradient(90deg,#1c1140 0%,#0b0620 50%,#1c1140 100%);
  box-shadow:inset 0 0 0 .02rem rgba(139,92,246,.9),0 .04rem .16rem rgba(24,12,60,.35);
  color:#dcd2ff;font-size:.34rem;font-weight:800;letter-spacing:.055rem;
  white-space:nowrap;
}
.strip i{color:var(--cyan);font-size:.26rem}

/* ---------------- ④ 分类（矢量图标 + 真文字，不再用位图） ---------------- */
.cats{
  margin:.22rem .28rem 0;
  padding:.22rem .12rem .18rem;
  border:.02rem solid #e6ddf9;
  border-radius:.2rem;
  background:linear-gradient(180deg,#ffffff,#faf7ff);
  box-shadow:0 .04rem .18rem rgba(88,54,180,.09);
}
.cats-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:.04rem;
}
.cat{
  display:flex;flex-direction:column;align-items:center;gap:.12rem;
  padding:.06rem 0;
}
.cat svg{
  width:.72rem;height:.72rem;
  color:var(--primary);
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.cat b{
  font-size:.28rem;font-weight:800;color:#2f2650;letter-spacing:.01rem;
  white-space:nowrap;
}

/* ---------------- ⑤ 认证（矢量徽标 + 真文字） ---------------- */
.certs{
  margin:.16rem .28rem 0;
  padding:.2rem .16rem;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.08rem;
  border-radius:.2rem;
  background:linear-gradient(180deg,#faf8ff,#f3eeff);
  border:.02rem solid #e9e1fa;
}
.cert{
  display:flex;align-items:center;gap:.09rem;min-width:0;
}
.cert-badge{
  flex:0 0 auto;
  width:.66rem;height:.66rem;border-radius:50%;
  display:grid;place-items:center;
  background:#fff;
  border:.02rem solid #d9cdf6;
  box-shadow:0 .02rem .08rem rgba(88,54,180,.12);
}
.cert-badge svg{width:.38rem;height:.38rem;color:var(--primary);fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cert-txt{min-width:0;display:flex;flex-direction:column;gap:.02rem}
.cert-txt b{
  font-size:.24rem;font-weight:800;line-height:1.2;color:#3b2f63;
  white-space:nowrap;
}
.cert-txt em{
  font-size:.19rem;line-height:1.2;color:#7b7196;
  white-space:nowrap;
}

/* ---------------- ⑥ 版权 / 合规 + 浮标 ---------------- */
.legal{
  flex:1 0 auto;
  display:flex;
  align-items:center;
  gap:.18rem;
  padding:.42rem .26rem .34rem;
  border-top:.02rem solid #eee8fc;
  background:linear-gradient(180deg,#f7f3ff 0%,#f2ecff 100%);
}
.legal-txt{flex:1;min-width:0}
.trust-line{
  margin-bottom:.14rem;
  font-size:.24rem;font-weight:800;letter-spacing:.05rem;color:#6d28d9;
}
.copyright{font-size:.22rem;color:#8d84a8;letter-spacing:.01rem}
.notice{
  margin-top:.07rem;
  font-size:.18rem;line-height:1.55;color:#a49cbb;
}
.backup-line{margin-top:.1rem}
.backup-line a{
  display:inline-block;
  padding:.04rem 0;
  font-size:.19rem;color:#6d28d9;
  border-bottom:.01rem dashed rgba(124,58,237,.5);
}

/* ---------------- 底部下载条 ---------------- */
.footer{
  position:fixed;left:50%;bottom:0;z-index:99;
  transform:translateX(-50%);
  width:100%;max-width:500px;height:1.6rem;
  display:flex;align-items:center;
  padding:0 .24rem;
  background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  cursor:pointer;
  -webkit-user-select:none;user-select:none;
  border-top:.02rem solid #f0eafa;
  box-shadow:0 -.04rem .22rem rgba(88,54,180,.12);
  padding-bottom:env(safe-area-inset-bottom);
}
.footer-icon{
  flex:0 0 auto;width:1.1rem;height:1.1rem;
  display:grid;place-items:center;
}
.footer-icon img{width:1.02rem;height:1.02rem;object-fit:contain;border-radius:.22rem}
.footer-text{
  flex:1;min-width:0;margin-left:.12rem;
  font-size:.33rem;font-weight:800;line-height:1.2;color:#171029;
}
.footer-text em{color:var(--danger)}

.dl-btn{
  position:relative;overflow:hidden;
  flex:0 0 auto;
  width:3.16rem;height:.94rem;margin-left:.14rem;
  border-radius:.2rem;
  background:linear-gradient(180deg,#b79dff 0%,#8b5cf6 40%,#7c3aed 70%,#5b21b6 100%);
  color:#fff;font-size:.35rem;font-weight:800;letter-spacing:.03rem;
  text-decoration:none;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 .06rem .18rem rgba(91,33,182,.42),inset 0 .02rem 0 rgba(255,255,255,.45),inset 0 -.02rem 0 rgba(51,17,110,.4);
}
.dl-btn::after{
  content:"";position:absolute;top:0;left:-40%;width:34%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.6),transparent);
  transform:skewX(-18deg);
  animation:shine 3.2s ease-in-out infinite;
}
@keyframes shine{
  0%,62%{left:-40%}
  86%,100%{left:120%}
}
.dl-btn:active{transform:translateY(.012rem) scale(.995);filter:brightness(.97)}

/* ---------------- 右侧浮标 ---------------- */
.tools{
  flex:0 0 auto;
  display:flex;flex-direction:row;gap:.12rem;
}
.tool{
  width:1rem;height:1rem;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
  border-radius:26%;
  color:var(--primary);
  background:rgba(252,250,255,.92);
  border:.035rem solid rgba(124,58,237,.45);
  font-size:.2rem;font-weight:700;line-height:1.1;
  box-shadow:0 .04rem .14rem rgba(88,54,180,.16);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:transform .12s ease,background .12s ease;
}
.tool svg{width:.46rem;height:.46rem;fill:currentColor}
.tool:active{transform:scale(.95);background:#fff}

/* ---------------- 教程弹窗 ---------------- */
.modal{
  position:fixed;inset:0;z-index:1000;
  display:none;
  background:rgba(14,8,32,.58);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
.modal.open{display:block}
.modal-card{
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:min(88vw,440px);max-height:76vh;
  display:flex;flex-direction:column;
  background:#fff;border-radius:.26rem;
  overflow:hidden;
  box-shadow:0 .2rem .6rem rgba(0,0,0,.35);
  animation:pop .22s ease;
}
@keyframes pop{
  from{opacity:0;transform:translate(-50%,-50%) scale(.96)}
  to{opacity:1;transform:translate(-50%,-50%) scale(1)}
}
.modal-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:.32rem .34rem .18rem;
  border-bottom:.02rem solid #f0eafa;
}
.modal-head h2{font-size:.4rem;font-weight:800;color:#171029}
.modal-close{
  width:.66rem;height:.66rem;line-height:1;
  font-size:.56rem;color:#a99cc4;
  display:grid;place-items:center;border-radius:50%;
}
.modal-close:active{background:#f4efff}
.modal-body{padding:.3rem .34rem .4rem;overflow:auto;font-size:.31rem;color:var(--text-sub);line-height:1.72}
.modal-body .step{margin-bottom:.26rem}
.modal-body .step:last-child{margin-bottom:0}
.modal-body .step h3{
  margin-bottom:.08rem;font-size:.33rem;font-weight:800;color:var(--text);
  display:flex;align-items:center;gap:.12rem;
}
.modal-body .step h3 i{
  width:.38rem;height:.38rem;border-radius:50%;
  display:grid;place-items:center;
  font-size:.23rem;font-weight:800;color:#fff;
  background:linear-gradient(180deg,#a78bfa,#7c3aed);
}

/* ---------------- 下载线路选择弹层 ---------------- */
.lines{
  position:fixed;inset:0;z-index:1200;
  display:none;
  background:rgba(14,8,32,.58);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
.lines.open{display:block}
.lines-card{
  position:absolute;left:50%;bottom:0;
  transform:translateX(-50%);
  width:100%;max-width:500px;
  padding:.34rem .3rem calc(.34rem + env(safe-area-inset-bottom,0px));
  background:#fff;border-radius:.3rem .3rem 0 0;
  box-shadow:0 -.12rem .5rem rgba(0,0,0,.28);
  animation:slideUp .24s ease;
}
@keyframes slideUp{
  from{transform:translate(-50%,100%)}
  to{transform:translate(-50%,0)}
}
.lines-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:.1rem;
}
.lines-head h2{font-size:.38rem;font-weight:800;color:#171029}
.lines-tip{
  margin-bottom:.26rem;
  font-size:.24rem;line-height:1.5;color:#8d84a8;
}
.lines-tip.warn{color:#e11d48;font-weight:700}

.line-item{
  width:100%;
  display:flex;align-items:center;gap:.18rem;
  margin-bottom:.2rem;padding:.26rem .24rem;
  border-radius:.18rem;
  background:#faf8ff;
  border:.03rem solid #e7e0f7;
  text-align:left;
  transition:transform .12s ease,background .12s ease,border-color .12s ease;
}
.line-item:active{transform:scale(.994);background:#f4efff}
.line-item.rec{border-color:var(--primary);background:linear-gradient(180deg,#fdfbff,#f3eeff)}
.line-item.bad{opacity:.55;border-color:#ded5f6}

.line-rank{
  flex:0 0 auto;width:.62rem;height:.62rem;border-radius:50%;
  display:grid;place-items:center;
  font-size:.3rem;font-weight:800;color:#fff;
  background:linear-gradient(180deg,#a78bfa,#7c3aed);
}
.line-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:.05rem}
.line-main b{
  font-size:.32rem;font-weight:800;color:#171029;
  display:flex;align-items:center;gap:.1rem;
}
.line-main em{font-size:.22rem;color:#8d84a8;font-style:normal}

/* 「推荐」角标：只显在被推荐的那条线路上 */
.line-badge{
  display:none;
  padding:.02rem .1rem;border-radius:.2rem;
  font-size:.19rem;font-weight:800;font-style:normal;letter-spacing:.01rem;
  color:#fff;background:linear-gradient(180deg,#a78bfa,#7c3aed);
  border:.01rem solid #8b5cf6;
}
.line-item.rec .line-badge{display:inline-block}

.line-state{
  flex:0 0 auto;
  font-size:.22rem;font-weight:700;
  padding:.05rem .14rem;border-radius:.3rem;
  color:#8d84a8;background:#f2ecff;
}
.line-state.ok{color:#15803d;background:#e8f8ee}
.line-state.bad{color:#e11d48;background:#fdeaf0}

.lines-foot{
  display:flex;align-items:center;justify-content:space-between;gap:.2rem;
  margin-top:.06rem;
  font-size:.22rem;color:#8d84a8;
}
.lines-foot b{color:#6d28d9}
.lines-retry{
  flex:0 0 auto;
  padding:.09rem .22rem;border-radius:.3rem;
  font-size:.23rem;font-weight:700;color:#5b21b6;
  background:#f4efff;border:.02rem solid #e0d4fb;
}
.lines-retry:active{background:#ece2ff}

/* ---------------- 语言选择弹层 ---------------- */
.lang-sheet{
  position:fixed;inset:0;z-index:1300;
  display:none;
  background:rgba(14,8,32,.58);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
.lang-sheet.open{display:block}
.lang-card{
  position:absolute;left:50%;bottom:0;
  transform:translateX(-50%);
  width:100%;max-width:500px;
  padding:.34rem .3rem calc(.34rem + env(safe-area-inset-bottom,0px));
  background:#fff;border-radius:.3rem .3rem 0 0;
  box-shadow:0 -.12rem .5rem rgba(0,0,0,.28);
  animation:slideUp .24s ease;
}
.lang-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:.22rem;
}
.lang-head h2{font-size:.38rem;font-weight:800;color:#171029}
.lang-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.16rem}
.lang-item{
  display:flex;flex-direction:column;align-items:flex-start;gap:.04rem;
  padding:.2rem .22rem;
  border-radius:.16rem;
  background:#faf8ff;
  border:.03rem solid #e7e0f7;
  text-align:left;
  transition:transform .12s ease,background .12s ease,border-color .12s ease;
}
.lang-item:active{transform:scale(.99);background:#f4efff}
.lang-item b{font-size:.3rem;font-weight:800;color:#171029;line-height:1.2}
.lang-item em{font-size:.2rem;color:#8d84a8;font-style:normal;line-height:1.2}
.lang-item.on{
  border-color:var(--primary);
  background:linear-gradient(180deg,#fdfbff,#f3eeff);
  box-shadow:inset 0 0 0 .02rem rgba(124,58,237,.25);
}
.lang-item.on b{color:#5b21b6}

/* ---------------- iOS 非 Safari 引导层 ---------------- */
html.ua-lock,html.ua-lock body{overflow:hidden}
.ua-guard{
  position:fixed;inset:0;z-index:1500;
  display:none;align-items:center;justify-content:center;
  padding:.5rem .4rem;
  background:rgba(12,8,28,.72);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
}
.ua-guard.open{display:flex}
.ua-card{
  width:100%;max-width:420px;
  padding:.44rem .38rem .34rem;
  background:#fff;border-radius:.28rem;
  text-align:center;
  box-shadow:0 .2rem .6rem rgba(0,0,0,.35);
  animation:pop .22s ease;
}
.ua-icon{
  width:1.1rem;height:1.1rem;margin:0 auto .2rem;
  border-radius:.26rem;
  display:grid;place-items:center;
  background:linear-gradient(180deg,#eaf4ff,#d7e9ff);
}
.ua-icon svg{
  width:.72rem;height:.72rem;
  fill:none;stroke:#0a84ff;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.ua-card h2{font-size:.42rem;font-weight:800;color:#171029;line-height:1.25}
.ua-desc{margin-top:.16rem;font-size:.28rem;line-height:1.6;color:#6d6490}
.ua-open{
  width:100%;height:.9rem;margin-top:.3rem;
  border-radius:.18rem;
  background:linear-gradient(180deg,#3ea0ff,#0a84ff);
  color:#fff;font-size:.34rem;font-weight:800;letter-spacing:.02rem;
  box-shadow:0 .06rem .18rem rgba(10,132,255,.35),inset 0 .02rem 0 rgba(255,255,255,.4);
}
.ua-open:active{filter:brightness(.96)}
.ua-skip{
  width:100%;height:.8rem;margin-top:.12rem;
  font-size:.28rem;color:#8d84a8;
}
.ua-url{
  margin-top:.16rem;
  font-size:.2rem;line-height:1.5;color:#a49cbb;
  word-break:break-all;
  -webkit-user-select:text;user-select:text;
}

/* ---------------- 轻提示 ---------------- */
.toast{
  position:fixed;left:50%;top:50%;z-index:2000;
  transform:translate(-50%,-50%) scale(.96);
  padding:.2rem .34rem;border-radius:.14rem;
  background:rgba(22,16,43,.92);color:#fff;
  font-size:.29rem;white-space:nowrap;
  opacity:0;pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}
.toast.show{opacity:1;transform:translate(-50%,-50%) scale(1)}

/* ---------------- 多语言版式（非中文文案更长，统一收字号/允许换行） ---------------- */
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .brand-name{font-size:.5rem;letter-spacing:0}
html[lang="ja"] .brand-name{font-size:.42rem}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .brand-tag{letter-spacing:.01rem}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .info-logo span{font-size:.18rem}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .info-title{font-size:.4rem;white-space:normal;line-height:1.22}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .rebate{font-size:.34rem;white-space:normal}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .rebate b{font-size:.46rem}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .pill{font-size:.22rem}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .strip{font-size:.26rem;letter-spacing:.02rem;gap:.1rem}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .cat b{font-size:.21rem;letter-spacing:0}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .cert-txt b,
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .cert-txt em{white-space:normal;font-size:.19rem}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .footer-text{font-size:.27rem;line-height:1.15}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .dl-btn{font-size:.29rem;letter-spacing:.01rem}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .line-main em{white-space:normal}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .lines-foot{font-size:.21rem}

/* ---------------- 动效降级 ---------------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ---------------- 桌面 / 平板微调 ---------------- */
@media screen and (min-width:500px){
  body{background:radial-gradient(circle at 50% 0%,#f8f5ff,#e7e0f7 70%)}
  .app{box-shadow:0 .2rem 1.2rem rgba(70,40,140,.18)}
}

/* ---------------- 超窄屏（<340px）分类文字缩小，避免挤 ---------------- */
@media screen and (max-width:339px){
  .cat b{font-size:.21rem}
  .cat svg{width:.54rem;height:.54rem}
  .cert-txt b{font-size:.18rem}
  .cert-txt em{font-size:.15rem}
}
