:root{
  --bg:#1c1f24; --panel:#22262c; --panel-2:#191c21;
  --teal:#387877; --teal-dark:#2f6a69; --teal-light:#4c9492;
  --yellow:#e7e74e; --ink:#f3f4f6; --muted:#aab1ba;
  --line:rgba(255,255,255,.11);
  --blue:#377cc7;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  line-height:1.6;
}
body.online{background:#040406}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
img{max-width:100%}

.stage{position:relative;width:100%}
.stage-inner{width:100%;max-width:430px;margin:0 auto;transform-origin:top center}

.topbar{max-width:560px;margin:0 auto;padding:16px 18px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}
.brand{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:800;letter-spacing:.2px}
.brand::before{content:"";width:10px;height:10px;border-radius:3px;background:linear-gradient(135deg,#53c7c3,#2f7f7c);box-shadow:0 0 12px rgba(83,199,195,.5)}
.badge{font-size:11px;font-weight:700;color:#9fb4c8;border:1px solid rgba(255,255,255,.16);padding:2px 8px;border-radius:999px;white-space:nowrap}
.badge.is-jsapi{color:#9fe9c8;border-color:rgba(80,225,165,.45);background:rgba(50,200,135,.12)}
.badge.is-native{color:#a9caff;border-color:rgba(95,165,255,.45);background:rgba(70,140,255,.13)}
.badge.is-warn{color:#ffcf8f;border-color:rgba(255,180,80,.45);background:rgba(255,170,60,.12)}
.view-switch{margin-left:auto;font-size:11.5px;font-weight:700;color:#8fd3d1;border:1px solid rgba(56,120,119,.45);background:rgba(56,120,119,.12);padding:2px 9px;border-radius:999px;white-space:nowrap}
.view-switch:hover{background:rgba(56,120,119,.24)}

.wrap{max-width:560px;margin:0 auto;padding:14px 18px calc(28px + env(safe-area-inset-bottom))}
.page-title{margin:6px 0 2px;font-size:19px;font-weight:800;letter-spacing:.2px}
.page-sub{margin:0 0 4px;color:var(--muted);font-size:12.5px}

/* A11 / A12 */
.hero{display:block;width:212px;height:auto;margin:10px auto 8px;user-select:none;-webkit-user-drag:none}
.hero-caption{text-align:center;color:#8e969f;font-size:12px;margin:0 0 14px}
.field{position:relative}
.select{
  width:100%;height:56px;appearance:none;-webkit-appearance:none;border:0;border-radius:10px;
  background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a9098' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 16px center/14px 14px;
  color:#16181d;font-size:16px;font-weight:600;padding:0 44px 0 16px;outline:none;
}
.select.is-empty{color:#6d737b}
.price{display:flex;align-items:baseline;gap:8px;margin:14px 2px 12px;font-size:22px;font-weight:800;color:#f1f2f4;min-height:34px}
.price .cny{font-size:20px;font-weight:700;color:#d9dde3}
.price .amount{font-size:26px;letter-spacing:.3px}
.price .amount.pending{color:#6b727b;font-size:20px}
.ecid{
  width:100%;height:58px;border:0;border-radius:10px;background:#d6d6d8;color:#15171b;
  font-size:16px;font-weight:600;padding:0 14px;letter-spacing:.4px;outline:none;
}
.ecid::placeholder{color:#6c7178;font-weight:500}
.ecid:focus{box-shadow:0 0 0 3px rgba(56,120,119,.35)}
.ecid.invalid{animation:shake .3s ease;box-shadow:0 0 0 2px #ff6b6b}
.actions{display:grid;grid-template-columns:minmax(0,1fr) 136px;gap:10px;align-items:start;margin-top:18px}
.btn-submit{
  height:60px;border:0;border-radius:10px;background:linear-gradient(180deg,#3f8a89,#33726f);
  color:#fff;font-size:20px;font-weight:800;letter-spacing:1px;cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-submit:active{transform:translateY(1px)}
.btn-submit:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}
.side{display:grid;gap:10px}
.btn-side{
  height:41px;border:0;border-radius:8px;background:linear-gradient(180deg,#3d8482,#33716f);
  color:#fff;font-size:13.5px;font-weight:700;cursor:pointer;padding:0 6px;
}
.btn-side:active{transform:translateY(1px)}
.hint{min-height:18px;margin:8px 2px 0;color:#ff8f8f;font-size:12.5px}
.steps{margin:20px 0 0;padding:0;list-style:none;color:var(--yellow);font-size:15px;line-height:1.75;font-weight:600}
.steps li{display:flex;gap:4px;margin-bottom:2px}
.steps .n{flex:none}
.foot{margin:22px 0 0;color:#8d959e;font-size:12.5px;text-align:center;line-height:1.8}
.foot b{color:#c9d0d8}

/* Online (PC / Tigger mobile) */
.online .wrap{padding-top:10px}
.ecid-blue{
  width:100%;height:66px;border:3px solid #a3aec0;border-radius:10px;
  background:linear-gradient(180deg,#377cc7,#2f6bab);color:#fff;text-align:center;
  font-size:17px;font-weight:600;letter-spacing:.5px;outline:none;
  box-shadow:0 0 0 3px rgba(120,170,255,.22),0 8px 22px rgba(0,0,0,.35);
}
.ecid-blue::placeholder{color:rgba(255,255,255,.86);font-weight:500}
.ecid-blue.invalid{animation:shake .3s ease;box-shadow:0 0 0 2px #ff6b6b}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0 18px}
.mode{
  border:0;border-radius:16px;padding:18px 6px 16px;cursor:pointer;
  background:linear-gradient(160deg,#818890,#4d5359);
  color:#15171b;display:flex;flex-direction:column;align-items:center;gap:2px;
  box-shadow:0 12px 26px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.28);
}
.mode:active{transform:translateY(1px)}
.mode .t{font-size:17px;font-weight:800;line-height:1.35;letter-spacing:.5px}
.mode .p{
  font-size:30px;font-weight:900;line-height:1.25;
  background:linear-gradient(180deg,#ffc06a,#ff5e1e);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.18));
}
.mode .p small{font-size:15px;font-weight:800}
.notice{margin:16px 0 0;color:#ffff00;font-size:14.5px;line-height:1.8;font-weight:700}
.support-block{margin-top:18px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.12)}
.support-block img{display:block;width:100%;height:auto;cursor:zoom-in}

/* ================= mobile one-screen =================
   设计画布固定 375 x 700（与原 JPG 同比例），JS 等比缩放到当前屏幕，
   保证任何手机打开都刚好一屏、不出现上下滑动。*/
html.is-mobile body:not([data-page="index"]){height:100%;overflow:hidden;background:var(--bg)}
html.is-mobile body.online{background:#040406}
html.is-mobile body:not([data-page="index"]) .stage{
  position:fixed;inset:0;overflow:hidden;background:var(--bg);
}
html.is-mobile body.online .stage{background:#040406}
html.is-mobile .stage-inner{
  position:absolute;left:50%;top:50%;width:375px;height:700px;
  margin:-350px 0 0 -187.5px;max-width:none;
  display:flex;flex-direction:column;transform-origin:center center;
}
html.is-mobile .topbar{padding:9px 16px 0;flex:none}
html.is-mobile .brand{font-size:12.8px;gap:6px;letter-spacing:.1px}
html.is-mobile .brand::before{width:8px;height:8px;border-radius:2px}
html.is-mobile .badge{font-size:9.5px;padding:2px 6px}
html.is-mobile .wrap{
  flex:1;min-height:0;max-width:none;margin:0;display:flex;flex-direction:column;
  justify-content:space-between;
  padding:4px 16px calc(9px + env(safe-area-inset-bottom));
}
html.is-mobile .wrap > *{flex:none}

/* A11 / A12 compact */
html.is-mobile .hero{width:112px;margin:1px auto 3px}
html.is-mobile .hero-caption{font-size:10.5px;margin:0 0 6px}
html.is-mobile .select{height:42px;font-size:15px;border-radius:8px;padding-left:13px;background-position:right 13px center}
html.is-mobile .price{margin:6px 2px 5px;min-height:25px;gap:6px;font-size:16px}
html.is-mobile .price .cny{font-size:15px}
html.is-mobile .price .amount{font-size:21px}
html.is-mobile .price .amount.pending{font-size:15px}
html.is-mobile .ecid{height:42px;font-size:15px;border-radius:8px;padding:0 12px}
html.is-mobile .hint{min-height:14px;margin:3px 2px 0;font-size:10.5px;line-height:1.3}
html.is-mobile .actions{margin-top:7px;grid-template-columns:minmax(0,1fr) 112px;gap:8px}
html.is-mobile .btn-submit{height:48px;font-size:17px;border-radius:8px;letter-spacing:.5px}
html.is-mobile .side{gap:4px}
html.is-mobile .btn-side{height:22px;font-size:11.5px;border-radius:6px;padding:0 3px}
html.is-mobile .steps{margin-top:8px;font-size:13.2px;line-height:1.6;font-weight:700}
html.is-mobile .steps li{margin-bottom:1px}
html.is-mobile .foot{margin:0;padding-top:7px;font-size:10.5px;line-height:1.5}

/* online compact */
html.is-mobile .online .wrap{padding-top:2px}
html.is-mobile .online .page-sub{font-size:11.5px;margin:0 0 4px;text-align:center}
html.is-mobile .ecid-blue{height:54px;font-size:15px;border-width:2px;border-radius:8px}
html.is-mobile .mode-grid{gap:10px;margin:11px 0 9px}
html.is-mobile .mode{padding:12px 4px 9px;border-radius:11px}
html.is-mobile .mode .t{font-size:15px;line-height:1.3}
html.is-mobile .mode .p{font-size:26px}
html.is-mobile .mode .p small{font-size:13px}
html.is-mobile .notice{margin-top:9px;font-size:11.6px;line-height:1.55;font-weight:700}
html.is-mobile .support-block{margin-top:9px;border-radius:10px}
html.is-mobile .support-block img{width:100%}
html.is-mobile .online .foot{margin:0;padding-top:6px;font-size:10px;line-height:1.45}

/* Online：按 iVX 原案例 375 画布还原（输入 220x62、按钮 115x87、支持图 370 宽） */
html.is-mobile body[data-page="online"] .topbar{display:none}
html.is-mobile body[data-page="online"] .wrap{
  position:relative;justify-content:flex-start;
  padding:18px 16px calc(8px + env(safe-area-inset-bottom));
}
html.is-mobile body[data-page="online"] .ecid-blue{
  width:220px;height:62px;margin:0 auto;padding:0 10px;
  border:5px solid #e6dcdc;border-radius:10px;background:rgba(0,157,255,.8);
  box-shadow:none;font-size:14px;font-weight:600;color:#fff;text-align:center;
}
html.is-mobile body[data-page="online"] .ecid-blue::placeholder{color:#f6f6f6;font-weight:500}
html.is-mobile body[data-page="online"] .ecid-blue.invalid{box-shadow:0 0 0 2px #ff6b6b}
html.is-mobile body[data-page="online"] .hint{
  position:absolute;left:16px;right:16px;top:82px;z-index:3;
  min-height:0;margin:0;font-size:10px;line-height:1.2;text-align:center;
}
html.is-mobile body[data-page="online"] .mode-grid{
  display:grid;grid-template-columns:115px 115px;justify-content:space-between;
  gap:0;margin:20px 0 5px;
}
html.is-mobile body[data-page="online"] .mode-img{width:115px;height:87px;padding:0;border-radius:10px}
html.is-mobile body[data-page="online"] .mode-img img{width:100%;height:100%}
html.is-mobile body[data-page="online"] .notice{margin:0 2px;font-size:12px;line-height:14px}
html.is-mobile body[data-page="online"] .support-block{margin:8px -12px 0;border:0;border-radius:0}
html.is-mobile body[data-page="online"] .support-block img{width:100%;height:auto;border-radius:0}
html.is-mobile body.online .stage{
  background:#040406 url("../assets/bg-online.jpg") center center / cover no-repeat;
}

.mode-img{
  padding:0;gap:0;line-height:0;border-radius:10px;overflow:hidden;
  background:none;box-shadow:none;
}
.mode-img img{display:block;width:100%;height:auto;aspect-ratio:115/87;object-fit:fill;border-radius:inherit}

/* A11 按原 iVX 版式微调：无顶部栏、控件收窄、提交按钮居中 */
html.is-mobile body[data-page="a11"] .wrap{justify-content:flex-start}
html.is-mobile body[data-page="a11"] .topbar{display:none}
html.is-mobile body[data-page="a11"] .hero{width:97px;margin:6px auto 6px}
html.is-mobile body[data-page="a11"] .select,
html.is-mobile body[data-page="a11"] .ecid{display:block;width:198px;max-width:198px;margin-left:auto;margin-right:auto}
html.is-mobile body[data-page="a11"] .select{
  height:38px;font-size:15px;border-radius:5px;border:1px solid #c9ced5;
  padding:0 32px;text-align:center;text-align-last:center;
  background-position:right 9px center;background-size:12px 12px;
}
html.is-mobile body[data-page="a11"] .ecid{height:35px;font-size:13.5px;border-radius:5px;padding:0 10px;background:#d2d2d4;text-align:center}
html.is-mobile body[data-page="a11"] .price{width:198px;margin:6px auto 6px;min-height:25px;gap:6px;font-size:19px;line-height:1}
html.is-mobile body[data-page="a11"] .price .cny{font-size:19px;color:#f1f2f4}
html.is-mobile body[data-page="a11"] .price .amount{font-size:28px;color:#ffff00}
html.is-mobile body[data-page="a11"] .price .amount.pending{font-size:18px;color:#6b727b}
html.is-mobile body[data-page="a11"] .hint{width:198px;margin:0 auto;text-align:left;font-size:10px;line-height:1.3;min-height:12px}
html.is-mobile body[data-page="a11"] .actions{position:relative;display:block;height:78px;margin-top:20px}
html.is-mobile body[data-page="a11"] .btn-submit{
  position:absolute;left:50%;top:0;transform:translateX(-50%);
  width:152px;height:42px;font-size:16px;border-radius:6px;letter-spacing:.5px;
}
html.is-mobile body[data-page="a11"] .side{position:absolute;right:-12px;top:0;width:98px;gap:6px}
html.is-mobile body[data-page="a11"] .btn-side{height:36px;font-size:12px;border-radius:6px;padding:0 4px}
html.is-mobile body[data-page="a11"] .steps-title{position:relative;top:8px;margin:-22px 0 2px;font-size:18px;font-weight:800;color:var(--yellow)}
html.is-mobile body[data-page="a11"] .steps{margin-top:12px;font-size:17px;line-height:calc(1.4em + 1px)}
html.is-desktop body[data-page="a11"] .hero{width:130px}

/* A12 与 A11 统一的手机版式：无顶部栏、控件收窄、提交按钮居中 */
html.is-mobile body[data-page="a12"] .wrap{position:relative;top:-5px;justify-content:flex-start;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
html.is-mobile body[data-page="a12"] .topbar{display:none}
html.is-mobile body[data-page="a12"] .hero{width:97px;margin:6px auto 6px}
html.is-mobile body[data-page="a12"] .hero-caption{display:none}
html.is-mobile body[data-page="a12"] .select,
html.is-mobile body[data-page="a12"] .ecid{display:block;width:198px;max-width:198px;margin-left:auto;margin-right:auto}
html.is-mobile body[data-page="a12"] .select{
  height:38px;font-size:15px;border-radius:5px;border:1px solid #c9ced5;
  padding:0 32px;text-align:center;text-align-last:center;
  background-position:right 9px center;background-size:12px 12px;
}
html.is-mobile body[data-page="a12"] .ecid{height:35px;font-size:13.5px;border-radius:5px;padding:0 10px;background:#d2d2d4;text-align:center}
html.is-mobile body[data-page="a12"] .price{width:198px;margin:6px auto 6px;min-height:25px;gap:6px;font-size:19px;line-height:1}
html.is-mobile body[data-page="a12"] .price .cny{font-size:19px;color:#f1f2f4}
html.is-mobile body[data-page="a12"] .price .amount{font-size:28px;color:#ffff00}
html.is-mobile body[data-page="a12"] .price .amount.pending{font-size:18px;color:#6b727b}
html.is-mobile body[data-page="a12"] .hint{width:198px;margin:0 auto;text-align:left;font-size:10px;line-height:1.3;min-height:12px}
html.is-mobile body[data-page="a12"] .actions{position:relative;display:block;height:78px;margin-top:20px}
html.is-mobile body[data-page="a12"] .btn-submit{
  position:absolute;left:50%;top:0;transform:translateX(-50%);
  width:152px;height:42px;font-size:16px;border-radius:6px;letter-spacing:.5px;
}
html.is-mobile body[data-page="a12"] .side{position:absolute;right:-12px;top:0;width:98px;gap:6px}
html.is-mobile body[data-page="a12"] .btn-side{height:36px;font-size:12px;border-radius:6px;padding:0 4px}
html.is-mobile body[data-page="a12"] .steps-title{position:relative;top:8px;margin:-22px 0 2px;font-size:18px;font-weight:800;color:var(--yellow)}
html.is-mobile body[data-page="a12"] .steps{margin-top:12px;font-size:16.5px;line-height:calc(1.4em + 1px)}
html.is-mobile body[data-page="a11"] .steps li,html.is-mobile body[data-page="a12"] .steps li{margin-bottom:0}
html.is-mobile body[data-page="a11"] .steps li{gap:0}
html.is-mobile body[data-page="a12"] .steps li{gap:0}
html.is-desktop body[data-page="a12"] .hero{width:130px}

/* ================= desktop ================= */
html.is-desktop .stage-inner{max-width:860px;padding:0 22px 46px}
html.is-desktop .stage .topbar{max-width:none;padding:20px 0 0}
html.is-desktop .stage .wrap{
  max-width:780px;margin:16px auto 0;padding:26px 30px;
  background:linear-gradient(165deg,#242930,#191c21);border:1px solid var(--line);
  border-radius:20px;box-shadow:0 18px 50px rgba(0,0,0,.28);
}
html.is-desktop .stage .select,
html.is-desktop .stage .ecid,
html.is-desktop .stage .ecid-blue{max-width:560px;margin-left:auto;margin-right:auto;display:block}
html.is-desktop .stage .price,
html.is-desktop .stage .actions{max-width:560px;margin-left:auto;margin-right:auto}
html.is-desktop .stage .ecid-blue{height:58px}
html.is-desktop .stage .hero{width:150px;margin:0 auto 6px}
html.is-desktop .stage .hero-caption{margin-bottom:12px}
html.is-desktop .stage .steps{columns:2;column-gap:30px;font-size:14px;line-height:1.72;margin-top:16px}
html.is-desktop .stage .steps li{break-inside:avoid}
html.is-desktop .stage .foot{margin-top:18px}
html.is-desktop .stage .mode-grid{max-width:560px}
html.is-desktop .stage .notice{max-width:720px}
html.is-desktop .stage .support-block{max-width:720px;margin:18px auto 0}
html.is-desktop .stage .support-block img{max-height:520px;width:auto;margin:0 auto}
html.is-desktop .stage .page-sub{font-size:13px;text-align:center}

/* Index */
.intro{margin:12px 0 4px;color:var(--muted);font-size:13px;line-height:1.75}
.menu{display:grid;gap:13px;margin-top:18px}
.card{
  display:block;padding:17px 16px;border-radius:16px;border:1px solid var(--line);
  background:linear-gradient(160deg,#252a31,#1a1d22);box-shadow:0 10px 26px rgba(0,0,0,.22);
}
.card h2{margin:0 0 3px;font-size:16.5px;font-weight:800}
.card p{margin:0;color:var(--muted);font-size:12.5px}
.card .pills{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.pill{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:999px;color:#8fd3d1;background:rgba(56,120,119,.16);border:1px solid rgba(56,120,119,.34)}
.pill.orange{color:#ffb77a;background:rgba(255,140,60,.12);border-color:rgba(255,140,60,.3)}
.recent{margin-top:22px}
.recent h3{margin:0 0 8px;font-size:14px;color:#cfd5dd}
.recent-list{display:grid;gap:8px}
.recent-row{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:#aab1ba;background:#1a1d22;border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.recent-row b{color:#e8eaee;font-weight:700}
.clear-btn{margin-top:10px;background:none;border:1px solid var(--line);color:#8d959e;border-radius:8px;padding:6px 10px;font-size:12px;cursor:pointer}
.note{margin-top:18px;padding:12px 14px;border-radius:12px;background:rgba(255,177,74,.08);border:1px solid rgba(255,177,74,.22);color:#ffca8a;font-size:12.5px;line-height:1.7}

/* ================= reveal overlay ================= */
.reveal{
  position:fixed;inset:0;z-index:66;background:rgba(2,3,5,.95);display:flex;
  flex-direction:column;align-items:center;justify-content:center;padding:14px;
  animation:reveal .2s ease;
}
.reveal[hidden]{display:none}
.reveal.pop{animation:popShake .32s cubic-bezier(.2,.9,.2,1.35)}
.reveal-head{
  position:absolute;top:calc(10px + env(safe-area-inset-top));left:16px;right:16px;
  display:flex;align-items:center;justify-content:space-between;color:#e3e7ec;
  font-size:14px;font-weight:700;
}
.panel-close{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:34px;height:34px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.1);color:#fff;font-size:0;line-height:1;cursor:pointer;
}
.panel-close::before,.panel-close::after{
  content:"";position:absolute;left:50%;top:50%;width:15px;height:1.6px;
  border-radius:2px;background:currentColor;
}
.panel-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.panel-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.reveal img{
  display:block;max-width:100%;max-height:calc(100% - 62px);width:auto;height:auto;
  object-fit:contain;border-radius:10px;box-shadow:0 18px 50px rgba(0,0,0,.55);cursor:zoom-in;
}

/* ================= payment sheet ================= */
.mask{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.62);display:flex;align-items:flex-end;justify-content:center;padding:10px;backdrop-filter:blur(3px)}
.mask[hidden]{display:none}
.sheet{
  width:100%;max-width:520px;background:#fff;color:#16181d;border-radius:18px;
  padding:20px 18px calc(16px + env(safe-area-inset-bottom));animation:up .24s ease;
}
.sheet h3{margin:0 0 2px;font-size:17px;text-align:center}
.sheet .sub{text-align:center;color:#7b828c;font-size:12.5px;margin:0 0 14px}
.sheet .amount{text-align:center;font-size:34px;font-weight:900;color:#14161a;margin:6px 0 2px}
.sheet .amount small{font-size:16px;font-weight:700}
.sheet .row{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;color:#68707a;padding:7px 2px;border-top:1px solid #f0f2f5}
.sheet .row b{color:#1a1d22;font-weight:700;text-align:right;word-break:break-all}
.sheet-btns{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:14px}
.sheet-btn{height:48px;border:0;border-radius:12px;font-size:15px;font-weight:800;cursor:pointer}
.sheet-btn.ghost{background:#f1f3f6;color:#5d646e}
.sheet-btn.pay{background:#18a058;color:#fff}
.sheet .preview-tip{margin:12px 0 0;text-align:center;font-size:11.5px;color:#b4772e;background:#fff7e8;border-radius:8px;padding:7px 8px}

/* env notice */
.notice-text{font-size:13px;line-height:1.7;color:#4d545e;margin:0 0 12px}
.copy-row{display:flex;gap:8px}
.copy-row input{flex:1;min-width:0;height:42px;border:1px solid #e2e6ec;border-radius:9px;padding:0 10px;font-size:12px;color:#4d545e;background:#f7f8fa}
.copy-row button{flex:none;height:42px;padding:0 14px;border:0;border-radius:9px;background:#eef1f5;color:#39404a;font-weight:700;cursor:pointer}

/* ================= qr pay ================= */
.qr-mask{align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.74)}
.qr-panel{
  width:100%;max-width:400px;background:#15181d;border:1px solid rgba(255,255,255,.13);
  border-radius:18px;padding:18px 18px 16px;color:var(--ink);box-shadow:0 30px 80px rgba(0,0,0,.55);
  animation:up .26s ease;
}
.qr-head{display:flex;align-items:center;justify-content:space-between}
.qr-head h3{margin:0;font-size:16px;font-weight:800}
.qr-close{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:30px;height:30px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);color:#cfd6de;font-size:0;line-height:1;cursor:pointer;
}
.qr-close::before,.qr-close::after{
  content:"";position:absolute;left:50%;top:50%;width:13px;height:1.5px;
  border-radius:2px;background:currentColor;
}
.qr-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.qr-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.qr-amount{text-align:center;font-size:36px;font-weight:900;margin:6px 0 0;letter-spacing:.5px}
.qr-amount small{font-size:14px;font-weight:700}
.qr-sub{text-align:center;color:#8b949f;font-size:11.5px;margin:0 0 12px}
.qr-box{width:210px;height:210px;margin:0 auto;background:#fff;border-radius:12px;padding:9px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.qr-box img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.qr-tip{text-align:center;color:#9fb0c2;font-size:12px;margin:9px 0 0}
.qr-meta{margin:13px 0 0;border-top:1px solid rgba(255,255,255,.09);padding-top:7px}
.qr-meta div{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;color:#8f98a3;padding:4px 0}
.qr-meta b{color:#e9edf2;font-weight:600;text-align:right;word-break:break-all}
.qr-btns{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:13px}
.qr-panel .preview-tip{margin:11px 0 0;text-align:center;font-size:10.8px;color:#c79a58;background:rgba(255,180,80,.09);border-radius:8px;padding:6px 8px}

/* ================= success ================= */
.success{position:fixed;inset:0;z-index:60;background:#f4f6f9;color:#14161a;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}
.success[hidden]{display:none}
.success-card{width:100%;max-width:460px;background:#fff;border-radius:18px;padding:26px 20px 20px;text-align:center;box-shadow:0 24px 60px rgba(20,22,26,.16)}
.check{width:66px;height:66px;border-radius:50%;background:#e7f8ee;color:#18a058;display:grid;place-items:center;margin:0 auto 12px;font-size:34px;font-weight:800}
.success h2{margin:0 0 6px;font-size:21px}
.success .msg{margin:0;color:#5f6670;font-size:13.5px;line-height:1.75}
.meta{margin-top:16px;border-top:1px solid #eef0f3;padding-top:12px;display:grid;gap:7px;font-size:13px;color:#6a717b}
.meta .row{display:flex;justify-content:space-between;gap:14px}
.meta b{color:#14161a;font-weight:700;text-align:right;word-break:break-all}
.success .ok-btn{width:100%;height:50px;margin-top:18px;border:0;border-radius:12px;background:#18a058;color:#fff;font-size:16px;font-weight:800;cursor:pointer}
.success .home-link{display:block;margin-top:10px;font-size:13px;color:#6a717b}

/* ================= lightbox ================= */
.lightbox{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.94);display:grid;place-items:center;padding:8px;overflow:auto}
.lightbox[hidden]{display:none}
.lightbox img{max-width:100%;height:auto}
.lightbox .close{
  position:fixed;top:12px;right:12px;display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;padding:0;border-radius:50%;border:0;
  background:rgba(255,255,255,.14);color:#fff;font-size:0;line-height:1;cursor:pointer;
}
.lightbox .close::before,.lightbox .close::after{
  content:"";position:absolute;left:50%;top:50%;width:17px;height:1.6px;
  border-radius:2px;background:currentColor;
}
.lightbox .close::before{transform:translate(-50%,-50%) rotate(45deg)}
.lightbox .close::after{transform:translate(-50%,-50%) rotate(-45deg)}

@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}
@keyframes reveal{from{opacity:0}to{opacity:1}}
@keyframes popShake{0%{opacity:0;transform:scale(.94)}55%{transform:scale(1.015)}75%{transform:scale(.995)}100%{opacity:1;transform:scale(1)}}
@keyframes up{from{opacity:.6;transform:translateY(24px)}to{opacity:1;transform:none}}

@media (max-width:360px){
  html.is-mobile .wrap{padding-left:12px;padding-right:12px}
  html.is-mobile .actions{grid-template-columns:minmax(0,1fr) 104px}
  html.is-mobile .btn-submit{font-size:16px}
}
