/* =========================================================
   小北数字商店 · 网页版设计稿
   颜色、圆角、卡片、按钮照 app/static/mini/styles.css（小程序）来；
   这里只多了网页版的外框：电脑侧栏、平板窄栏、手机底部标签栏。
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #111318;
  --surface: #1b1f27;
  --surface-2: #242934;
  --surface-3: #2c3240;
  --fill: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.06);
  --fill-3: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(27, 31, 39, 0.88);
  --bar-bg: rgba(17, 19, 24, 0.82);
  --toast-bg: rgba(36, 41, 52, 0.96);
  --float-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --card-shadow: none;
  --side-bg: #15181f;
  --ink: #f5f7fa;
  --ink-2: #d5dbe6;
  --muted: #8e97a8;
  --subtle: #636b7a;
  --brand: #3b9eff;
  --brand-2: #2584f4;
  --brand-glow: rgba(59, 158, 255, 0.35);
  --brand-soft: rgba(59, 158, 255, 0.14);
  --gold: #fbbf24;
  --green: #22c55e;
  --green-ink: #4ade80;
  --green-soft: rgba(34, 197, 94, 0.14);
  --purple: #b78aff;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-ink: #fbbf24;
  --rose: #f43f5e;
  --rose-soft: rgba(244, 63, 94, 0.14);
  --rose-ink: #fb7185;
  --tron: #ef0027;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --side-w: 0px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --surface-3: #e5e5ea;
  --fill: rgba(118, 118, 128, 0.08);
  --fill-2: rgba(118, 118, 128, 0.12);
  --fill-3: rgba(118, 118, 128, 0.18);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --bar-bg: rgba(242, 242, 247, 0.85);
  --toast-bg: rgba(255, 255, 255, 0.98);
  --float-shadow: 0 8px 30px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.06);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --side-bg: #f7f7fa;
  --ink: #000000;
  --ink-2: #3c3c43;
  --muted: #8a8a8e;
  --subtle: #9c9ca1;
  --brand: #007aff;
  --brand-2: #0062cc;
  --brand-glow: rgba(0, 122, 255, 0.25);
  --brand-soft: rgba(0, 122, 255, 0.1);
  --gold: #c97a00;
  --green: #34c759;
  --green-ink: #1f9d45;
  --green-soft: rgba(52, 199, 89, 0.14);
  --purple: #af52de;
  --amber: #e08600;
  --amber-soft: rgba(255, 149, 0, 0.14);
  --amber-ink: #b45309;
  --rose: #ff3b30;
  --rose-soft: rgba(255, 59, 48, 0.1);
  --rose-ink: #d32f2f;
  --line: rgba(60, 60, 67, 0.1);
  --line-2: rgba(60, 60, 67, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", Inter, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-wrap: pretty; /* 折行时别让最后一行只剩一个字 */
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; border: none; background: none; outline: none; }
button { cursor: pointer; }
i, svg { width: 20px; height: 20px; stroke-width: 2; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
@media (max-width: 699px) { .hide-sm { display: none !important; } }

/* =========================================================
   网站外框：顶部导航（带下拉菜单）· 页头 · 页脚 · 手机抽屉菜单
   ========================================================= */

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-main { min-height: 60vh; }
.page-body { padding-top: 20px; padding-bottom: 56px; animation: fade 0.35s var(--ease-out); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
:root { --site-bg: #ffffff; --band: #f6f7f9; --head-h: 64px; }
:root[data-theme="dark"] { --site-bg: #111318; --band: #15181f; }
body { background: var(--band); }

.brand-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #4ba0ec 0%, #6366f1 100%);
}
.brand-mark svg { width: 19px; height: 19px; color: #fff; stroke-width: 2.5; }
.icon-btn {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--ink-2); transition: background 0.15s var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--fill-2); }
.avatar {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; font-weight: 800; font-size: 14px;
}
.search {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  height: 40px; padding: 0 14px; border-radius: 10px;
  background: var(--fill); border: 1px solid var(--line);
  color: var(--muted);
}
.search:focus-within { border-color: var(--brand); background: var(--site-bg); }
.search input:focus-visible { outline: none; }
.search svg { width: 16px; height: 16px; }
.search input { flex: 1; min-width: 0; height: 100%; color: var(--ink); font-size: 14.5px; }
.search input::placeholder { color: var(--muted); }
.search kbd { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--subtle); font: 600 11px/1.6 var(--mono); }

/* ---- 顶部：细条（电脑）+ 主导航；手机 / 平板只有顶栏，导航都在右上角的菜单里 ---- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--site-bg); border-bottom: 1px solid var(--line); }
.util-bar { display: none; background: var(--band); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.util-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.util-bar__l { display: flex; align-items: center; gap: 18px; }
.util-bar__l span, .util-bar__r a, .util-bar__r button { display: inline-flex; align-items: center; gap: 5px; }
.util-bar svg { width: 14px; height: 14px; }
.util-bar__l svg { color: var(--green-ink); }
.util-bar__r { display: flex; align-items: center; gap: 16px; }
.util-bar__r a:hover, .util-bar__r button:hover { color: var(--ink); }
.util-bar__r i.sep { width: 1px; height: 12px; background: var(--line-2); }

.main-bar .wrap { display: flex; align-items: center; gap: 14px; height: var(--head-h); }
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo__t { display: grid; line-height: 1.15; }
.logo__t strong { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.logo__t small { color: var(--muted); font-size: 11px; font-weight: 500; }

.nav { display: none; align-items: center; gap: 2px; height: 100%; margin-left: 14px; }
.nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); font-size: 15px; font-weight: 650; white-space: nowrap;
}
.nav__link svg { width: 15px; height: 15px; color: var(--muted); transition: transform 0.2s var(--ease); }
.nav__item:hover .nav__link { background: var(--fill); color: var(--ink); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.nav__item.active .nav__link { color: var(--brand); }
.nav__item.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav__hot { margin-left: 3px; padding: 0 5px; border-radius: 5px; background: var(--rose); color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; }
.mega {
  position: absolute; top: calc(100% - 4px); left: -8px; z-index: 50;
  display: grid; gap: 2px; min-width: 300px; padding: 8px;
  border-radius: 14px; background: var(--site-bg); border: 1px solid var(--line-2); box-shadow: var(--float-shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.18s var(--ease);
}
.mega--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 720px; padding: 12px; }
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; }
.mega a:hover { background: var(--fill); }
.mega .ic { width: 34px; height: 34px; border-radius: 9px; }
.mega .ic svg { width: 17px; height: 17px; }
.mega__t { display: grid; line-height: 1.35; min-width: 0; }
.mega__t b { font-size: 14px; font-weight: 700; }
.mega__t small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega__t em { font-style: normal; color: var(--rose); font-size: 12px; font-weight: 750; }

.head-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-search { display: none; width: 240px; }
.bal {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px 0 12px;
  border-radius: 10px; background: var(--fill); border: 1px solid var(--line);
  font-size: 14px; font-weight: 750; white-space: nowrap;
}
.bal > svg { width: 16px; height: 16px; color: var(--green); }
.bal small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.bal__add { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }
.bal__add svg { width: 14px; height: 14px; color: #fff; stroke-width: 2.6; }
.bal__add span { display: none; }
@media (max-width: 699px) { .bal small { display: none; } .bal { gap: 6px; } .logo__t small { font-size: 10.5px; white-space: nowrap; } }
.head-user { display: none; }
.head-menu { display: grid; }
.head-login { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; background: #229ed9; color: #fff; font-size: 14px; font-weight: 700; }
.head-login svg { width: 16px; height: 16px; }

/* 平板 / 手机：主导航下面一条可以横滑的分类 */

/* 抽屉菜单 */
.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: 0.25s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); overflow-y: auto;
  padding: 16px; background: var(--site-bg); box-shadow: var(--float-shadow);
  transform: translateX(100%); transition: transform 0.3s var(--ease-out);
}
.drawer-open .drawer { pointer-events: auto; }
.drawer-open .drawer__scrim { opacity: 1; }
.drawer-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--band); margin-bottom: 8px; }
.drawer__user b { display: block; font-size: 14.5px; }
.drawer__user small { color: var(--muted); font-size: 12.5px; }
.drawer__g { margin: 14px 4px 6px; color: var(--subtle); font-size: 12px; font-weight: 700; }
.drawer .d-link { width: 100%; text-align: left; display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 10px; font-size: 14.5px; font-weight: 650; }
.drawer .d-link:hover { background: var(--fill); }
.drawer .d-link .ic { width: 30px; height: 30px; border-radius: 8px; }
.drawer .d-link .ic svg { width: 15px; height: 15px; }
.drawer a.d-link em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---- 内页页头：面包屑 + 大标题 + 标签页 ---- */
.page-hero { background: var(--site-bg); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 18px; }
/* 一行放完：放不下时只把最后一项（就是下面的大标题）截成「…」，不让箭头挂在行尾 */
.crumbs { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; min-width: 0; }
.crumbs > * { flex: 0 0 auto; white-space: nowrap; }
.crumbs > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 13px; height: 13px; color: var(--subtle); }
.page-hero__row { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-bottom: 16px; }
.page-hero__row .ic { width: 46px; height: 46px; border-radius: 13px; }
.page-hero__row .ic svg { width: 23px; height: 23px; }
.page-hero__t { min-width: 0; flex: 1; }
.page-hero h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.page-hero p { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.page-hero__aside { display: none; }
.rate-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rate-chip svg { width: 15px; height: 15px; }
.rate-chip b { color: var(--ink); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap;
}
.tabs a svg { width: 16px; height: 16px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--brand); }
.tabs a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--brand); }
.tabs a .seg__n { margin-left: 2px; }
/* 标签一排放不下（能量业务有 9 个）：排成几行方块，全部看得见（app.js fitRows 加 tabs--wrap） */
.tabs.tabs--wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; margin: 0; padding: 2px 0 12px; overflow: visible; }
.tabs--wrap a {
  justify-content: center; gap: 5px; height: auto; min-height: 38px; padding: 6px 8px; border-radius: 10px;
  background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.25; white-space: normal; text-align: center;
}
.tabs--wrap a svg { flex: 0 0 auto; width: 15px; height: 15px; }
.tabs--wrap a.active { background: var(--brand-soft); color: var(--brand); }
.tabs--wrap a.active::after { display: none; }
@media (max-width: 359px) {
  .tabs.tabs--wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs--wrap a svg { display: none; }
}
/* 分段切换放不下：先去掉图标，还不行就两行 */
.seg.seg--tight { overflow: visible; }
.seg--tight svg { display: none; }
.seg--tight button, .seg--tight a { padding-left: 6px; padding-right: 6px; }
.seg.seg--wrap { flex-wrap: wrap; }
.seg.seg--wrap button, .seg.seg--wrap a { flex: 1 1 40%; } /* 要压过 .seg--scope a 这类单独设的宽度 */

/* ---- 页脚 ---- */
.site-foot { background: var(--site-bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.site-foot .wrap { padding-top: 32px; padding-bottom: 24px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 10px; max-width: 320px; line-height: 1.6; }
.foot-col h4 { margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 750; }
.foot-col a { display: block; padding: 4px 0; }
.foot-col a:hover { color: var(--brand); }
.foot-pay { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.foot-pay span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--band); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.foot-pay span i { width: 8px; height: 8px; border-radius: 50%; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
.has-checkout .site-foot { padding-bottom: 76px; }

/* =========================================================
   首页（落地页）
   ========================================================= */

.home-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(700px 380px at 10% 90%, rgba(59, 158, 255, 0.14), transparent 60%),
    var(--site-bg);
  border-bottom: 1px solid var(--line);
}
.home-hero__in { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; }
.eyebrow-pill svg { width: 14px; height: 14px; }
.home-hero h1 { margin-top: 14px; font-size: 32px; line-height: 1.15; font-weight: 850; letter-spacing: -0.03em; }
.home-hero h1 .grad { background: linear-gradient(90deg, #3b82f6, #8b5cf6 60%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero__p { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 520px; }
.home-hero__cta { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-lg { min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15.5px; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--site-bg); color: var(--ink); font-size: 15.5px; font-weight: 700; }
.btn-outline svg { width: 17px; height: 17px; }
.home-hero__acct { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.home-hero__acct .avatar { width: 28px; height: 28px; font-size: 12px; }
.home-hero__acct b { color: var(--ink); }
.home-hero__art { display: none; position: relative; height: 340px; }
.float-card {
  position: absolute; width: 270px; padding: 14px; border-radius: 16px;
  background: var(--site-bg); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}
:root[data-theme="dark"] .float-card { background: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.float-card__top { display: flex; align-items: center; gap: 10px; }
.float-card__top .ic { width: 38px; height: 38px; }
.float-card__t { display: grid; line-height: 1.35; flex: 1; min-width: 0; }
.float-card__t b { font-size: 14px; }
.float-card__t small { color: var(--muted); font-size: 12px; }
.float-card__row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.float-card__row b { color: var(--ink); font-size: 15px; }
.float-card .qr { width: 74px; height: 74px; padding: 5px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.fc-1 { top: 10px; left: 10px; transform: rotate(-3deg); }
.fc-2 { top: 120px; right: 0; transform: rotate(2.5deg); }
.fc-3 { bottom: 0; left: 50px; transform: rotate(-1deg); }

.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 20px; }
.trust__item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--site-bg); border: 1px solid var(--line); }
.trust__item .ic { width: 36px; height: 36px; border-radius: 10px; }
.trust__item .ic svg { width: 18px; height: 18px; }
.trust__item b { display: block; font-size: 14px; }
.trust__item small { color: var(--muted); font-size: 12px; }

.h-sec { padding-top: 34px; }
.h-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h-sec__head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.h-sec__head p { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.h-sec__head .sec-more { flex: 0 0 auto; }

.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prod-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: var(--site-bg); border: 1px solid var(--line);
  transition: 0.2s var(--ease);
}
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12); border-color: var(--line-2); }
.prod-card__media { position: relative; display: grid; place-items: center; height: 92px; color: #fff; overflow: hidden; }
.prod-card__media > svg { width: 40px; height: 40px; color: #fff; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25)); position: relative; z-index: 1; }
.prod-card__media::before { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; top: -70px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.prod-card__media::after { content: ""; position: absolute; width: 120px; height: 120px; left: -40px; bottom: -60px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.prod-card__tag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.22); color: #fff; font-size: 11px; font-weight: 800; }
.pm--tron { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.pm--tg { background: linear-gradient(135deg, #7e22ce 0%, #be185d 100%); }
.pm--stars { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); }
.pm--esim { background: linear-gradient(135deg, #10b981 0%, #0f766e 100%); }
.pm--plane { background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 100%); }
.pm--xh { background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%); }
.prod-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px; }
.prod-card__body h3 { font-size: 15px; font-weight: 800; }
.prod-card__body p { display: none; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.prod-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 0; }
.prod-price { display: grid; line-height: 1.2; }
.prod-price b { color: var(--rose); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.prod-price b small { font-size: 12px; font-weight: 700; margin-left: 2px; }
.prod-price span { color: var(--muted); font-size: 12px; font-weight: 600; }
.prod-buy { display: none; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 13.5px; font-weight: 750; }
.prod-buy svg { width: 14px; height: 14px; }
.prod-card:hover .prod-buy { background: var(--brand); color: #fff; }
.prod-card:hover .prod-buy svg { color: #fff; }

.quick {
  display: grid; gap: 12px; padding: 18px; border-radius: 18px;
  background: var(--site-bg); border: 1px solid var(--line);
}
.quick__head { display: flex; align-items: center; gap: 10px; }
.quick__head .ic { width: 38px; height: 38px; }
.quick__head b { display: block; font-size: 16px; font-weight: 800; }
.quick__head small { color: var(--muted); font-size: 12.5px; }
.quick__form { display: grid; gap: 10px; }
.quick__f { display: grid; gap: 5px; min-width: 0; }
.quick__f > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.select {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 44px; padding: 0 12px; border-radius: 12px; background: var(--fill); border: 1.5px solid var(--line);
  font-size: 14.5px; font-weight: 650; white-space: nowrap;
}
.select svg { width: 16px; height: 16px; color: var(--muted); }
.quick__price { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick__price .price-big b { color: var(--ink); font-size: 24px; }

.dest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dest {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--site-bg); border: 1px solid var(--line); transition: 0.2s var(--ease);
}
.dest:hover { border-color: var(--brand); }
.dest .flag { width: 38px; height: 38px; }
.dest__t { display: grid; line-height: 1.35; min-width: 0; }
.dest__t b { font-size: 14.5px; }
.dest__t small { color: var(--muted); font-size: 12px; }
.dest__t em { font-style: normal; color: var(--rose); font-size: 13px; font-weight: 800; }

.steps { display: grid; gap: 10px; }
.step-card { position: relative; display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--site-bg); border: 1px solid var(--line); }
.step-card__n { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.step-card b { display: block; font-size: 15px; }
.step-card p { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-end { padding-bottom: 48px; }

.ord-col { display: none; }
.has-checkout .page-body { padding-bottom: 40px; }

/* =========================================================
   通用：标题、分区、卡片、按钮、输入框
   ========================================================= */

.page-title { display: none; }
.page-sub { color: var(--muted); font-size: 13px; margin: -4px 0 14px; }

.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 2px 10px;
}
.sec-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.sec-head h3 small { margin-left: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sec-more {
  display: inline-flex; align-items: center; gap: 1px;
  color: var(--brand); font-size: 13px; font-weight: 650;
}
.sec-more svg { width: 15px; height: 15px; }

.panel {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; }
.panel-head h3 .step {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 800;
}
.panel-tag {
  padding: 4px 10px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.panel-tag--green { background: var(--green-soft); color: var(--green-ink); }
.panel-tag--amber { background: var(--amber-soft); color: var(--amber-ink); }

/* 业务图标：每项业务一个颜色（照小程序 product-card__icon--*） */
.ic {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 11px; color: #fff;
}
.ic svg { width: 20px; height: 20px; color: #fff; }
.ic--sm { width: 34px; height: 34px; border-radius: 10px; }
.ic--sm svg { width: 17px; height: 17px; }
.ic--lg { width: 48px; height: 48px; border-radius: 14px; }
.ic--lg svg { width: 24px; height: 24px; }
.ic--tron { background: linear-gradient(135deg, #ff5c5c 0%, #ef0027 100%); }
.ic--tg { background: linear-gradient(135deg, #8b2d7c 0%, #6b2160 100%); }
.ic--esim { background: linear-gradient(135deg, #34d399 0%, #059669 100%); }
.ic--stars { background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%); }
.ic--plane { background: linear-gradient(135deg, #41b4e6 0%, #1c93d6 100%); }
.ic--xh { background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%); }
.ic--gas { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }
.ic--default { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); }
.ic--cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.ic--purple { background: linear-gradient(135deg, #a855f7, #6d28d9); }
.ic--amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ic--green { background: linear-gradient(135deg, #22c55e, #15803d); }
.ic--soft { background: var(--brand-soft); color: var(--brand); }
.ic--soft svg { color: var(--brand); }

/* 业务卡片：图标 + 名字 + 一句说明 + 价格（照小程序 product-card） */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc-card {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  min-width: 0; padding: 12px;
  border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: 0.2s var(--ease);
}
.svc-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.svc-card__body { display: grid; gap: 1px; min-width: 0; flex: 1; }
.svc-card__title { font-size: 14.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-card__sub { color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-card__price { color: var(--brand); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.svc-card__arrow { color: var(--subtle); width: 18px; height: 18px; }
.svc-card--row { padding: 12px 14px; }
.svc-card__hot {
  position: absolute; top: 8px; right: 10px;
  padding: 1px 7px; border-radius: 7px;
  background: var(--rose-soft); color: var(--rose-ink); font-size: 10.5px; font-weight: 800;
}

/* 按钮 */
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 22px; border-radius: 23px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 20px var(--brand-glow);
  white-space: nowrap;
  transition: 0.2s var(--ease);
}
.cta-btn svg { width: 16px; height: 16px; color: #fff; }
.cta-btn:active { transform: scale(0.97); }
.cta-wide { width: 100%; margin-top: 14px; }
.cta-sm { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 12px; box-shadow: none; }
.cta-tg { background: linear-gradient(135deg, #37aee2 0%, #1e96c8 100%); box-shadow: 0 6px 20px rgba(30, 150, 200, 0.35); }
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 19px;
  background: var(--fill); border: 1px solid var(--line);
  color: var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.ghost-btn svg { width: 15px; height: 15px; }
.ghost-btn--brand { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.link-btn { color: var(--brand); font-size: 13px; font-weight: 700; }

/* 套餐 / 选项按钮（照小程序 plan-button） */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-button {
  position: relative;
  min-height: 62px; padding: 10px 11px;
  border-radius: 12px;
  background: var(--fill); border: 1.5px solid var(--line);
  color: var(--ink-2); text-align: left;
  transition: 0.2s var(--ease);
}
.plan-button strong { display: block; font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.plan-button span { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.plan-button em { font-style: normal; }
.plan-button .p-price { color: var(--rose); font-size: 13px; font-weight: 800; }
.plan-button .p-u { color: var(--muted); font-size: 11.5px; font-weight: 650; }
.plan-button.active {
  background: linear-gradient(135deg, rgba(75, 160, 236, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.plan-button.active strong { color: var(--brand); }
.plan-button__badge {
  position: absolute; top: -9px; right: 8px;
  padding: 1px 8px; border-radius: 8px;
  background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff;
  font-size: 10.5px; font-weight: 800;
}
.plan-button--center { text-align: center; }
.plan-button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* 分段切换（照小程序 xh-tabs） */
.seg {
  display: flex; gap: 2px; padding: 3px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.seg button, .seg a {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px; border-radius: 9px;
  color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.seg .active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.seg svg { width: 16px; height: 16px; }
.seg-row { display: grid; gap: 8px; margin-bottom: 12px; }
.seg-row .seg { margin-bottom: 0 !important; }
.seg__n {
  min-width: 18px; padding: 1px 6px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 800; line-height: 16px;
}

/* 小标签 / 筛选胶囊 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* 长筛选：换行显示，只留一行 + 「更多 N 个」（app.js fitRows 按真实宽度收起） */
.chips--fold { flex-wrap: wrap; }
.chips--fold .is-folded { display: none !important; }
.chip--more { color: var(--brand); border-style: dashed; }
.chip--more svg { width: 15px; height: 15px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  height: 34px; padding: 0 13px; border-radius: 17px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; font-weight: 650; white-space: nowrap;
}
.chip.active { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.chip .flag { width: 18px; height: 18px; }
.chip small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.chip.active small { color: var(--brand); }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 7px;
  background: var(--fill-2); color: var(--ink-2);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.tag svg { width: 12px; height: 12px; }
.tag--green { background: var(--green-soft); color: var(--green-ink); }
.tag--amber { background: var(--amber-soft); color: var(--amber-ink); }
.tag--rose { background: var(--rose-soft); color: var(--rose-ink); }
.tag--brand { background: var(--brand-soft); color: var(--brand); }
.dot-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.dot-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.flag { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }

/* 输入框 */
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 12px; }
.field-label { display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.field-label small { color: var(--muted); font-weight: 600; }
.input, .textarea {
  width: 100%;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--fill); border: 1.5px solid var(--line);
  color: var(--ink); font-size: 16px;
  transition: 0.2s var(--ease);
}
.input { height: 44px; }
.textarea { padding: 10px 13px; min-height: 96px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: var(--subtle); }
.input--addr, .textarea--addr { font-family: var(--mono); font-size: 14.5px; letter-spacing: -0.01em; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 84px; }
.input-wrap__btn {
  position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 11px;
  border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 750;
}
.hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.hint svg { width: 14px; height: 14px; margin-top: 2px; }
.hint--warn { color: var(--amber-ink); }
.hint--warn svg { color: var(--amber-ink); }

/* 数量加减 */
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--fill); border: 1px solid var(--line); color: var(--ink);
}
.stepper button svg { width: 16px; height: 16px; }
.stepper b { min-width: 38px; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 键值行 / 小结 */
.kv { display: grid; gap: 0; }
.kv__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.kv__row span { color: var(--muted); white-space: nowrap; }
.kv__row b { font-weight: 700; color: var(--ink); text-align: right; }
.kv__row--total { margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line); }
.kv__row--total span { color: var(--ink); font-weight: 700; }

.price-big { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-big b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-big small { font-size: 13px; font-weight: 700; color: var(--muted); }
.price-big .approx { font-size: 15px; font-weight: 750; color: var(--ink-2); }
.price-big .approx b { font-size: 15px; }

/* 下单小结（电脑上贴在右栏，手机上贴在底部） */
.sum-card { position: relative; }
.sum-card .cta-btn { margin-top: 14px; width: 100%; }
.sum-card__note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkout-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.checkout-bar__info { display: grid; line-height: 1.25; min-width: 0; }
.checkout-bar__info span { color: var(--muted); font-size: 12px; font-weight: 600; }
.checkout-bar__info strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-bar__info em { font-style: normal; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.has-checkout .tabbar { display: none; }
.has-checkout .page { padding-bottom: 96px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: 12px;
  background: var(--brand-soft); color: var(--ink-2);
  font-size: 12.5px; line-height: 1.55;
}
.notice svg { width: 16px; height: 16px; margin-top: 1px; color: var(--brand); }
.notice--amber { background: var(--amber-soft); }
.notice--amber svg { color: var(--amber-ink); }
.notice b { color: var(--ink); }
.list-dots { display: grid; gap: 6px; padding-left: 18px; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
.list-dots li::marker { color: var(--subtle); }

/* 开关 */
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; border-radius: 13px; background: var(--fill-3); transition: 0.2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: 0.2s var(--ease); }
.switch.on { background: var(--green); }
.switch.on::after { left: 21px; }

.grid-2 { display: grid; gap: 12px; }
.grid-2 > * { min-width: 0; margin-bottom: 0; }
.en-split.is-sub { display: block; }
.svc-grid--home .svc-card__sub { display: none; }
@media (max-width: 699px) {
  .svc-grid .svc-card { padding: 11px 10px; gap: 9px; }
  .svc-grid .svc-card .ic { width: 36px; height: 36px; border-radius: 10px; }
  .svc-grid .svc-card .ic svg { width: 19px; height: 19px; }
  .svc-grid .svc-card__title { font-size: 14px; }
}
.en-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.en-who .plan-button:nth-child(3) { grid-column: 1 / -1; min-height: 0; }

/* 两栏：左边填写，右边小结（电脑上才分两栏） */
.layout-2 { display: grid; gap: 0; }
.layout-2 > * { min-width: 0; }
.layout-2__aside .sum-card { display: none; }

/* 页内页头（手机上带返回键） */
.p-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.p-head__text { min-width: 0; flex: 1; }
.p-head__text h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.p-head__text p { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.back-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); flex: 0 0 auto; }
.back-btn svg { width: 18px; height: 18px; }

/* =========================================================
   TRX 能量业务：手机上是入口列表；平板 / 电脑上左边小导航 + 右边内容
   ========================================================= */

.en-hub { display: grid; gap: 10px; }
.en-hub .svc-card { padding: 12px 14px; }
.en-hub__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--r-xl);
  color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(250, 204, 21, 0.22) 0%, transparent 55%), linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #ef0027 100%);
}
.en-hub__head .ic { background: rgba(255, 255, 255, 0.18); }
.en-hub__head h2 { font-size: 18px; font-weight: 800; }
.en-hub__head p { color: rgba(255, 255, 255, 0.78); font-size: 12.5px; }
.en-hub__rate { margin-left: auto; text-align: right; font-size: 11.5px; color: rgba(255,255,255,.8); line-height: 1.35; }
.en-hub__rate b { display: block; font-size: 15px; color: #fff; }

.en-split { display: none; }
.en-nav { display: none; gap: 2px; align-content: start; }
.en-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 650;
}
.en-nav a:hover { background: var(--fill); }
.en-nav a.active { background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--card-shadow); color: var(--ink); }
.en-nav a .ic { width: 30px; height: 30px; border-radius: 9px; }
.en-nav a .ic svg { width: 15px; height: 15px; }
.en-nav__t { display: grid; line-height: 1.3; min-width: 0; }
.en-nav__t small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.en-nav__label { margin: 4px 10px 6px; color: var(--subtle); font-size: 11.5px; font-weight: 700; }
.en-strip { display: none; }

.en-rate {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px; padding: 9px 12px; border-radius: 12px;
  background: var(--fill); color: var(--muted); font-size: 12.5px; font-weight: 600;
}
.en-rate b { color: var(--ink); }
.en-rate svg { width: 15px; height: 15px; color: var(--green); }
.en-who .plan-button { min-height: 86px; padding: 12px; }
.en-who .plan-button strong { font-size: 15px; }
.en-who .en-amt { display: block; margin-top: 3px; color: var(--ink-2); font-size: 12.5px; font-weight: 750; font-family: var(--mono); }
.en-who .en-p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin-top: 6px; }
.en-who .en-p b, .en-who .en-p em { white-space: nowrap; }
.en-who .en-p b { color: var(--rose); font-size: 15px; font-weight: 800; }
.en-who .en-p em { color: var(--muted); font-size: 12px; font-weight: 700; }
.en-who .en-p.en-p--stack { flex-direction: column; align-items: flex-start; gap: 1px; }
.addr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.addr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px 0 4px; border-radius: 15px;
  background: var(--fill); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.addr-chip b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 800; }
.addr-chip code { font: 600 12px var(--mono); color: var(--muted); }
.addr-chip--tool { padding: 0 10px; color: var(--brand); }
.addr-chip--tool svg { width: 14px; height: 14px; }
/* 手机：两列排齐，不让「批量下单」一个人掉到下一行 */
@media (max-width: 560px) {
  .addr-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addr-chip { min-width: 0; white-space: nowrap; overflow: hidden; }
  .addr-chip--tool { justify-content: center; }
}
@media (max-width: 419px) { .addr-chip code { display: none; } }

.copy-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--fill); border: 1px dashed var(--line-2);
}
.copy-box code { flex: 1; min-width: 0; font: 600 13.5px/1.45 var(--mono); word-break: break-all; color: var(--ink); }
.copy-box code b { color: var(--brand); }
.qr-wrap { display: grid; place-items: center; }
.qr {
  display: grid; place-items: center;
  width: 188px; height: 188px; padding: 10px; border-radius: 16px; background: #fff;
}
.qr svg, .qr img { width: 100% !important; height: 100% !important; }
.pay-split { display: grid; gap: 14px; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat {
  padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.stat b { display: block; margin-top: 2px; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat b small { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 2px; }

.sub-card { padding: 13px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.sub-card + .sub-card { margin-top: 10px; }
.sub-card__top { display: flex; align-items: center; gap: 10px; }
.sub-card__addr { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
.sub-card__addr code { font: 700 13.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-card__addr small { color: var(--muted); font-size: 12px; font-weight: 600; }
.meter { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--fill-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #6366f1); }
.meter--green i { background: linear-gradient(90deg, #22c55e, #16a34a); }
.sub-card__nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.sub-card__nums div { display: grid; line-height: 1.3; }
.sub-card__nums span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.sub-card__nums b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 三个按钮一样宽排一行（英文也不让「Bills」一个掉下去） */
.sub-card__acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 11px; }
.sub-card__acts .ghost-btn { min-height: 34px; padding: 0 6px; font-size: 12.5px; white-space: nowrap; }
.toggles { display: flex; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 600; flex-wrap: wrap; }
.toggles label { display: inline-flex; align-items: center; gap: 7px; }
.toggles .switch { transform: scale(0.78); transform-origin: left center; margin-right: -8px; }

.lookup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lookup-cell { padding: 11px 12px; border-radius: 12px; background: var(--fill); }
.lookup-cell span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.lookup-cell b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lookup-cell small { font-size: 11.5px; font-weight: 700; }
.ok { color: var(--green-ink); }
.warn { color: var(--amber-ink); }
.bad { color: var(--rose-ink); }

.book-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.book-row:first-child { border-top: 0; padding-top: 0; }
.book-slot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; flex: 0 0 auto; }
.book-row__t { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
.book-row__t b { font-size: 14px; }
.book-row__t code { font: 600 12.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-row__acts { display: flex; gap: 6px; }
.book-row__acts .ghost-btn { min-height: 32px; padding: 0 11px; font-size: 12.5px; }

.chain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chain-btn { display: flex; align-items: center; gap: 8px; padding: 9px 10px; }
.chain-btn .coin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 800; flex: 0 0 auto; }
.chain-btn strong { font-size: 13.5px !important; }
.chain-btn span { margin-top: 0 !important; font-size: 11px !important; }

/* =========================================================
   会员 / 星星
   ========================================================= */

.channel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.channel .plan-button { min-height: 84px; padding: 13px 13px 12px; }
.channel .plan-button strong { display: flex; align-items: center; gap: 6px; font-size: 15.5px; }
.channel .plan-button strong svg { width: 17px; height: 17px; }
.channel .plan-button .ch-desc { margin-top: 4px; font-size: 12px; line-height: 1.45; }
.channel .plan-button .ch-from { margin-top: 6px; color: var(--rose); font-size: 13px; font-weight: 800; }
.channel .is-flag.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.14) 0%, rgba(168, 85, 247, 0.12) 100%);
  border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft);
}
.channel .is-flag.active strong { color: var(--rose-ink); }
.channel .is-flag.active span { color: var(--ink-2); }
.months .plan-button { min-height: 92px; padding: 12px; }
.months .plan-button strong { font-size: 17px; }
.months .m-price { display: block; margin-top: 8px; color: var(--rose); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.months .m-price small { font-size: 11.5px; font-weight: 700; }
.months .m-per { display: block; margin-top: 0; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.months .m-old { color: var(--subtle); text-decoration: line-through; font-size: 11.5px; font-weight: 600; margin-left: 4px; }
.acct-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acct-token {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 9px 0 4px; border-radius: 14px;
  background: var(--green-soft); color: var(--green-ink); font-size: 12.5px; font-weight: 700;
}
.acct-token i.av { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-style: normal; font-size: 10.5px; }
.acct-token--bad { background: var(--rose-soft); color: var(--rose-ink); }
.acct-token--bad i.av { background: var(--rose); }

.star-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.star-chip {
  display: grid; justify-items: center; gap: 1px;
  padding: 10px 4px; border-radius: 12px;
  background: var(--fill); border: 1.5px solid var(--line);
}
.star-chip b { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.star-chip b svg { width: 14px; height: 14px; color: var(--gold); fill: var(--gold); }
.star-chip span { color: var(--muted); font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.star-chip.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.12) 100%);
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}
.star-chip.active b { color: var(--gold); }
.qty-input {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 13px; margin-top: 10px;
  border-radius: 12px; background: var(--fill); border: 1.5px solid var(--line);
}
.qty-input input { flex: 1; min-width: 0; height: 100%; font-size: 16px; font-weight: 750; }
.qty-input span { color: var(--muted); font-size: 12px; font-weight: 600; }

/* =========================================================
   eSIM
   ========================================================= */

.esim-hero {
  position: relative; overflow: hidden;
  padding: 18px; border-radius: var(--r-xl); margin-bottom: 12px;
  color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(52, 211, 153, 0.35) 0%, transparent 50%), linear-gradient(135deg, #064e3b 0%, #065f46 45%, #0f766e 100%);
}
.esim-hero h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.esim-hero p { margin-top: 4px; color: rgba(255,255,255,.78); font-size: 12.5px; }
.esim-hero .search { margin-top: 12px; background: rgba(255,255,255,.96); border-color: transparent; color: #64748b; }
.esim-hero .search input { color: #0f172a; }
.esim-hero .search input::placeholder { color: #94a3b8; }
.esim-hero__links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.esim-hero__links a { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; background: rgba(255,255,255,.16); font-size: 12.5px; font-weight: 700; }
.esim-hero__links svg { width: 14px; height: 14px; color: #fff; }

.esim-layout { display: grid; gap: 0; }
.esim-filter { display: grid; gap: 10px; margin-bottom: 12px; }
.esim-filter__block { display: grid; gap: 8px; }
.esim-filter__t { color: var(--muted); font-size: 12px; font-weight: 700; }
.esim-filter__side { display: none; }
.esim-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 10px; }
.esim-bar b { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.esim-bar { flex-wrap: wrap; }
.esim-bar .search { flex: 1 1 100%; height: 42px; background: var(--surface); }
.sort-btn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 750; white-space: nowrap; flex-shrink: 0; }
.sort-btn svg { width: 14px; height: 14px; }

.esim-list { display: grid; gap: 10px; }
.esim-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow);
  text-align: left;
}
.esim-card:hover { border-color: var(--line-2); }
.ef-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto; }
.ef-av svg { width: 22px; height: 22px; }
.ef-av--amber { background: var(--amber-soft); color: var(--amber-ink); }
.ef-av--blue { background: var(--brand-soft); color: var(--brand); }
.ef-av--rose { background: var(--rose-soft); color: var(--rose-ink); }
.ef-av--flag { position: relative; background: var(--surface-2); }
.ef-av--flag .flag { width: 30px; height: 30px; }
.ef-av__badge { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.ef-av .ef-av__badge svg { width: 11px; height: 11px; stroke-width: 2.4; }
.ef-av--green { background: var(--green-soft); color: var(--green-ink); }
.ef-av--purple { background: rgba(168, 85, 247, 0.14); color: var(--purple); }
.ef-av .panda { width: 32px; height: 32px; }
.esim-card__body { display: grid; gap: 4px; min-width: 0; }
.esim-card__name { font-size: 14.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esim-card__tags { display: flex; gap: 5px; flex-wrap: wrap; }
/* 手机上中间这栏窄：标签收紧，三个能排一行，不让「5G」一个掉下去 */
@media (max-width: 479px) {
  .esim-card__tags { gap: 4px; }
  .esim-card__tags .tag { padding: 2px 5px; border-radius: 6px; }
}
@media (max-width: 359px) { .esim-card__tags .tag { font-size: 11px; padding: 1px 4px; } }
.esim-card__meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.esim-card__meta .flag { width: 16px; height: 16px; }
.esim-card__meta > svg { width: 14px; height: 14px; flex: 0 0 auto; }
.esim-card__price { text-align: right; display: grid; line-height: 1.2; }
.esim-card__price b { color: var(--rose); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.esim-card__price b small { font-size: 11.5px; margin-left: 2px; }
.esim-card__price span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.esim-card__rank { position: absolute; }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.spec-btn { min-height: 70px; }
.spec-btn strong { font-size: 15px !important; }
.spec-btn .p-price { display: block; margin-top: 4px; font-size: 15px !important; }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feat { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.feat__ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; }
.feat__ic svg { width: 12px; height: 12px; stroke-width: 3; }
.feat.is-yes .feat__ic { background: var(--green-soft); color: var(--green-ink); }
.feat.is-no .feat__ic { background: var(--fill-2); color: var(--muted); }
.feat.is-warn .feat__ic { background: var(--amber-soft); color: var(--amber-ink); }
.feat__t { display: grid; line-height: 1.3; min-width: 0; }
.feat__t b { font-size: 13px; }
.feat__t small { color: var(--muted); font-size: 11.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feat.is-yes .feat__t small { color: var(--green-ink); }
.feat.is-warn .feat__t small { color: var(--amber-ink); }
.terms { display: grid; gap: 8px; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.terms li::marker { color: var(--amber-ink); }
.terms strong { color: var(--rose-ink); }
.agree { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px 12px; border-radius: 12px; background: var(--fill); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); flex: 0 0 auto; }
.agree.on { background: var(--brand-soft); color: var(--ink); }

.mycard { padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.mycard + .mycard { margin-top: 10px; }
.mycard__top { display: flex; align-items: center; gap: 11px; }
.mycard__t { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
.mycard__t b { font-size: 14.5px; }
.mycard__t small { color: var(--muted); font-size: 12px; font-weight: 600; }
.usage-nums { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.usage-nums b { color: var(--ink); font-size: 15px; font-weight: 800; }
.mycard__acts { display: flex; gap: 8px; margin-top: 12px; }
.mycard__acts > * { flex: 1; }

/* =========================================================
   第二数字身份：精品飞机号 / 长期接码（照小程序 xh-*）
   ========================================================= */

.id-intro { display: grid; gap: 10px; margin-bottom: 14px; }
.id-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
}
.id-card h3 { font-size: 16px; font-weight: 800; }
.id-card p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.id-card__price { margin-top: 8px; color: var(--rose); font-size: 14px; font-weight: 800; }

.daxi-list { display: grid; gap: 0; }
.daxi-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 11px 4px; border-top: 1px solid var(--line);
}
.daxi-row:first-child { border-top: 0; }
.daxi-row .flag { width: 30px; height: 30px; }
.daxi-row__t { display: grid; line-height: 1.3; min-width: 0; }
.daxi-row__t b { font-size: 14.5px; }
.daxi-row__t small { color: var(--muted); font-size: 12px; font-weight: 600; }
.daxi-row__p { color: var(--rose); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.daxi-row.active { background: var(--brand-soft); border-radius: 12px; border-color: transparent; padding-left: 10px; padding-right: 10px; }
.daxi-row.active + .daxi-row { border-color: transparent; }
.stock { display: inline-flex; align-items: center; gap: 4px; color: var(--green-ink); font-weight: 700; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }

.xh-countries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.xh-country {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 11px 12px; border-radius: 12px;
  background: var(--fill); border: 1.5px solid var(--line); text-align: left;
}
.xh-country.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.xh-country .flag { width: 30px; height: 30px; }
.xh-country__t { display: grid; gap: 1px; min-width: 0; }
.xh-country__t b { font-size: 15px; font-weight: 800; }
.xh-country__t b em { margin-left: 5px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; }
.xh-country.active .xh-country__t b { color: var(--brand); }
.xh-country__t small { color: var(--muted); font-size: 11.5px; font-weight: 600; }

.xh-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.xh-list > .mycard, .xh-list > .xh-card { display: flex; flex-direction: column; margin-top: 0; }
.xh-list .mycard__acts { margin-top: auto; padding-top: 12px; }
.xh-list .xh-sms { margin-bottom: 11px; }
.xh-list .xh-push { margin-top: auto; }
.xh-card { padding: 13px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.xh-card__top { display: flex; align-items: center; gap: 10px; }
.xh-card__top .flag { width: 32px; height: 32px; }
.xh-card__id { display: grid; gap: 2px; flex: 1; min-width: 0; }
.xh-num { display: inline-flex; align-items: center; gap: 6px; }
.xh-num b { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.xh-num svg { width: 14px; height: 14px; color: var(--muted); }
.xh-card__id small { color: var(--muted); font-size: 12px; font-weight: 600; }
.xh-note {
  display: inline-flex; align-items: center; gap: 4px; justify-self: start;
  padding: 2px 8px 2px 6px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700;
}
.xh-note svg { width: 13px; height: 13px; }
.xh-note.is-empty { padding-left: 0; background: transparent; color: var(--muted); font-weight: 600; }
.xh-sms { margin-top: 11px; padding: 10px 12px; border-radius: 12px; background: var(--fill); }
.xh-sms__head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.xh-sms__text { margin-top: 5px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.xh-code {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 7px; padding: 7px 10px; border-radius: 10px;
  background: var(--surface); border: 1px dashed var(--line-2);
}
.xh-code b { font-size: 24px; font-weight: 800; letter-spacing: 0.12em; color: var(--brand); font-variant-numeric: tabular-nums; }
.xh-code span { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 12.5px; font-weight: 700; }
.xh-code span svg { width: 14px; height: 14px; }
.xh-push { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.xh-push span { display: inline-flex; align-items: center; gap: 6px; }
.xh-push span svg { width: 16px; height: 16px; color: var(--muted); }
.xh-push .switch { transform: scale(0.85); transform-origin: right center; }
.xh-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.xh-wait { display: flex; align-items: center; gap: 6px; margin-top: 11px; padding: 10px 12px; border-radius: 10px; background: var(--fill); color: var(--muted); font-size: 12.5px; }
.xh-wait svg { width: 16px; height: 16px; }
.xh-hist { display: none; }

/* =========================================================
   充值 / 订单 / 我的 / 登录
   ========================================================= */

.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.provider {
  position: relative; display: grid; justify-items: center; gap: 6px;
  padding: 13px 6px 11px; border-radius: 14px;
  background: var(--fill); border: 1.5px solid var(--line); text-align: center;
}
.provider .coin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 12px; }
.provider .coin svg { width: 19px; height: 19px; color: #fff; }
.provider b { font-size: 13.5px; font-weight: 800; }
.provider small { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.3; }
.provider.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--brand-soft); }
.provider.active b { color: var(--brand); }
.coin--usdt { background: linear-gradient(135deg, #26a17b, #1a7a5c); }
.coin--gram { background: linear-gradient(135deg, #3b82f6, #0ea5e9); }
.coin--okpay { background: linear-gradient(135deg, #111827, #374151); }
.coin--trx { background: linear-gradient(135deg, #ff5c5c, #ef0027); }
.coin--sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.coin--eth { background: linear-gradient(135deg, #8a92b2, #454a75); }
.coin--bnb { background: linear-gradient(135deg, #f3ba2f, #d99a0b); }
.coin--pol { background: linear-gradient(135deg, #8247e5, #6028c4); }
.amount-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amount-btn { display: grid; justify-items: center; padding: 10px 4px; border-radius: 12px; background: var(--fill); border: 1.5px solid var(--line); }
.amount-btn strong { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.amount-btn span { color: var(--muted); font-size: 11px; font-weight: 700; }
.amount-btn.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.amount-btn.active strong { color: var(--brand); }

.pay-card { display: grid; gap: 12px; }
.pay-amount { text-align: center; }
.pay-amount span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pay-amount b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pay-amount b em { font-style: normal; color: var(--rose); }
.pay-amount small { color: var(--amber-ink); font-size: 12px; font-weight: 700; }
.countdown { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12px; font-weight: 800; }
.countdown svg { width: 13px; height: 13px; }

.rec-row, .ord-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.rec-row:first-child, .ord-row:first-child { border-top: 0; }
.ord-row__t { display: grid; line-height: 1.35; min-width: 0; gap: 2px; }
.ord-row__t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-row__t small { color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-row__r { display: grid; justify-items: end; gap: 3px; }
.ord-row__r b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord-note {
  display: inline-flex; align-items: center; gap: 4px; justify-self: start; max-width: 100%;
  padding: 1px 8px 1px 6px; border-radius: 7px;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700;
}
.ord-note span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ord-note svg { width: 12px; height: 12px; }
.ord-note.is-empty { background: transparent; padding-left: 0; color: var(--subtle); font-weight: 600; }
.ord-table-head { display: none; }
.orders-tools { display: flex; gap: 8px; margin: 12px 0; }
.orders-tools .search { flex: 1; }
.pos { color: var(--green-ink); }

.me-card {
  display: flex; align-items: center; gap: 13px;
  padding: 16px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px;
}
.me-card .avatar { width: 52px; height: 52px; font-size: 19px; }
.me-card__t { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
.me-card__t b { font-size: 17px; font-weight: 800; }
.me-card__t small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.me-card__bal { text-align: right; display: grid; line-height: 1.3; }
.me-card__bal span { color: var(--muted); font-size: 12px; font-weight: 600; }
.me-card__bal b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.me-group { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: 12px; }
.me-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; text-align: left; }
.me-row:first-child { border-top: 0; }
.me-row .ic { width: 30px; height: 30px; border-radius: 9px; }
.me-row .ic svg { width: 16px; height: 16px; }
.me-row__label { flex: 1; }
.me-row__arrow { color: var(--subtle); width: 17px; height: 17px; }
.pills { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill-2); }
.pills button { padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pills .active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.login {
  min-height: calc(100vh - var(--head-h) - 64px); display: grid; place-items: center; padding: 32px 16px 40px;
  background:
    radial-gradient(circle at 15% 10%, rgba(59, 158, 255, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(99, 102, 241, 0.16) 0%, transparent 45%),
    var(--bg);
}
.login__card { width: 100%; max-width: 400px; padding: 28px 22px 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--float-shadow); text-align: center; }
.login__card .brand-mark { width: 64px; height: 64px; border-radius: 19px; margin: 0 auto 14px; }
.login__card .brand-mark svg { width: 32px; height: 32px; }
.login__card h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.login__card > p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.login__btn { width: 100%; margin-top: 22px; min-height: 50px; border-radius: 25px; font-size: 16px; }
.login__btn svg { width: 20px; height: 20px; }
.login__list { display: grid; gap: 9px; margin-top: 20px; text-align: left; }
.login__list div { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.login__list svg { width: 16px; height: 16px; margin-top: 2px; color: var(--green-ink); }
.login__foot { margin-top: 18px; color: var(--subtle); font-size: 11.5px; line-height: 1.5; }
.login__back { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.login__back svg { width: 15px; height: 15px; }
.login__wrap { display: grid; width: 100%; max-width: 400px; }
.login__promo { display: none; }
.login__foot { margin-top: 20px !important; }
.is-login .site-foot { padding-top: 0; border-top: 0; background: transparent; }
.is-login .foot-bottom { margin-top: 0; }
.head-back { min-height: 38px; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; }
.head-back svg { width: 16px; height: 16px; }
.is-login .page-body { padding: 0; animation: none; }

/* =========================================================
   弹窗 · 提示
   ========================================================= */

.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0;
  transform: translateY(20px); transition: transform 0.3s var(--ease-out);
}
.modal.open .sheet { transform: none; }
.sheet__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; background: var(--surface); }
.sheet__head strong { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; }
.sheet__body { padding: 0 16px 20px; }
.sheet .ic-tile { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.sheet .ic-tile svg { width: 16px; height: 16px; }
.lpa-tip { color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.lpa-45 { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.lpa-45 svg { width: 15px; height: 15px; margin-top: 2px; }
.lpa-pkg { margin: 12px 0 0; text-align: center; font-size: 14px; font-weight: 800; }
.lpa-qr { display: grid; place-items: center; margin: 12px 0; }
.lpa-box { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 10px 9px 12px; border-radius: 12px; background: var(--fill); }
.lpa-box code { flex: 1; min-width: 0; font: 600 12.5px/1.45 var(--mono); word-break: break-all; }
.lpa-box span { color: var(--muted); font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.lpa-help { display: block; margin: 12px auto 0; color: var(--brand); font-size: 13px; font-weight: 700; }
.lpa-foot { margin-top: 8px; text-align: center; color: var(--muted); font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 100;
  transform: translate(-50%, 10px); opacity: 0;
  padding: 11px 18px; border-radius: 14px;
  background: var(--toast-bg); border: 1px solid var(--line-2); box-shadow: var(--float-shadow);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: 0.3s var(--ease-out); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   平板（700–1099）：顶部汉堡菜单 + 分类条；内容两列；下单页底部固定合计条
   ========================================================= */
@media (min-width: 700px) {
  .only-sm { display: none !important; }
  .wrap { padding: 0 24px; }
  .page-body { padding-top: 24px; }
  .tabs { margin: 0 -24px; padding: 0 24px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero__aside { display: flex; gap: 8px; align-items: center; }
  .bal__add span { display: inline; }
  .head-user { display: grid; }

  .home-hero__in { padding-top: 40px; padding-bottom: 36px; }
  .home-hero h1 { font-size: 40px; }
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .prod-card__media { height: 108px; }
  .prod-card__body { padding: 14px 16px 16px; }
  .prod-card__body p { display: block; }
  .prod-buy { display: inline-flex; }
  .quick__form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .dest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-card { flex-direction: column; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }

  .checkout-bar { padding-left: 24px; padding-right: 24px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .en-who { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .en-who .plan-button:nth-child(3) { grid-column: auto; min-height: 86px; }
  .esim-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .esim-bar { flex-wrap: nowrap; margin-bottom: 14px; }
  .esim-bar .search { flex: 0 1 360px; }
  .esim-bar b { margin-left: auto; }
  .esim-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av body" "price price"; position: relative; }
  .esim-card .ef-av { grid-area: av; }
  .esim-card__body { grid-area: body; }
  .esim-card__price { grid-area: price; display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
  .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xh-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .chain-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .chain-btn { flex-direction: column; text-align: center; gap: 4px; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg { max-width: 440px; }
  .modal { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; border-bottom: 1px solid var(--line-2); max-width: 440px; }
  .toast { bottom: 40px; }
  .login__card { padding: 36px 32px 26px; }
}

/* =========================================================
   电脑（≥1100）：完整顶部导航 + 下拉菜单；内容多列；下单页右边一栏小结跟着滚动
   ========================================================= */
@media (min-width: 1100px) {
  :root { --head-h: 68px; }
  .util-bar { display: block; }
  .nav { display: flex; }
  .head-menu { display: none; }
  /* 搜索框只在 1300 以上放进顶栏，窄一点的电脑放不下 */
  .page-hero .wrap { padding-top: 22px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero__row { padding-bottom: 18px; }
  .page-body { padding-top: 28px; padding-bottom: 72px; }

  .home-hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
  .home-hero h1 { font-size: 50px; }
  .home-hero__p { font-size: 16.5px; }
  .home-hero__art { display: block; }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .h-sec { padding-top: 48px; }
  .h-sec__head h2 { font-size: 26px; }
  .prod-grid { gap: 18px; }
  .prod-card__media { height: 128px; }
  .prod-card__media > svg { width: 48px; height: 48px; }
  .quick { grid-template-columns: 260px minmax(0, 1fr); align-items: center; padding: 22px 24px; }
  .quick__form { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: end; }
  .quick__price { grid-column: auto; }
  .dest-grid { gap: 14px; }

  .checkout-bar { display: none; }
  .layout-2__aside .sum-card { display: block; }
  .has-checkout .site-foot { padding-bottom: 0; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .layout-2 { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .layout-2__aside { position: sticky; top: 124px; }

  .esim-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
  .esim-filter { display: none; }
  .esim-filter__side { display: grid; gap: 16px; position: sticky; top: 124px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
  .esim-filter__side .chips { gap: 6px; }
  .esim-filter__side .chip { height: 30px; padding: 0 10px; font-size: 12.5px; background: var(--fill); }
  .esim-filter__side .chip.active { background: var(--brand-soft); }
  .esim-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .xh-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .pay-split { grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 20px; }
  .stat-row { gap: 12px; }
  .below-lg { display: none !important; }
  .ord-table-head { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) 1fr 0.8fr 0.9fr; gap: 12px; padding: 0 16px 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
  .ord-table .ord-row { grid-template-columns: 44px minmax(0, 1.6fr) 1fr 0.8fr 0.9fr; padding: 12px 16px; }
  .ord-table .ord-row .ord-row__r { justify-items: start; }
  .ord-col { display: block !important; color: var(--ink-2); font-size: 13px; }
  .me-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
  .login__wrap { max-width: 1040px; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: center; }
  .login__promo { display: block; }
  .login__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; }
  .login__eyebrow svg { width: 15px; height: 15px; }
  .login__promo h2 { margin-top: 18px; font-size: 46px; line-height: 1.12; font-weight: 850; letter-spacing: -0.03em; }
  .login__promo > p { margin-top: 14px; color: var(--muted); font-size: 16px; }
  .login__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
  .login__tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
  .login__tile b { display: block; font-size: 15px; }
  .login__tile small { color: var(--rose); font-size: 13px; font-weight: 750; }
}
@media (min-width: 1300px) { .head-search { display: flex; width: 230px; } }

/* =========================================================
   ESIM.YOU：主卖 eSIM 的部分（店标、目的地下拉、首页搜索、多国套餐、手机支持、常见问题、安装教程）
   ========================================================= */
.logo__t strong em { font-style: normal; color: var(--brand); }
.brand-mark svg { stroke-width: 2.1; }

.mega--dest { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; min-width: 780px; padding: 14px; }
.mega__h { padding: 2px 8px 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mega-flags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.mega .mega-flags a { gap: 9px; padding: 8px; }
.mega-flags .flag { width: 26px; height: 26px; }
.mega-flags span { display: grid; line-height: 1.3; }
.mega-flags b { font-size: 13.5px; font-weight: 700; }
.mega-flags em { font-style: normal; color: var(--rose); font-size: 12px; font-weight: 750; }
.mega .mega__all { justify-content: center; gap: 6px; margin-top: 8px; background: var(--brand-soft); color: var(--brand); font-size: 13.5px; font-weight: 700; }
.mega__all svg { width: 15px; height: 15px; }
.mega__side { display: grid; align-content: start; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); }
.mega--right { left: auto; right: -8px; }
.hero-flag .flag { display: block; width: 46px; height: 46px; }

.dest-search { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 6px 6px 6px 16px; max-width: 560px; border-radius: 16px; background: var(--site-bg); border: 1.5px solid var(--line-2); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }
.dest-search > svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--brand); }
.dest-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.dest-search .cta-btn { min-height: 44px; padding: 0 16px; border-radius: 12px; }
.dest-search .cta-btn span { display: none; }
.hot-dests { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.hot-dests a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px; border-radius: 16px; background: var(--site-bg); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.hot-dests a:hover { border-color: var(--brand); color: var(--brand); }
.hot-dests .flag { width: 20px; height: 20px; }
.hot-dests a.hot-dests__all { padding: 0 8px 0 12px; color: var(--brand); border-style: dashed; }
.hot-dests__all svg { width: 15px; height: 15px; }
/* 手机：5 个热门 + 「全部目的地」排成整齐的 3×2，不会剩一个掉到第二行 */
@media (max-width: 699px) {
  .hot-dests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hot-dests > span { display: none; }
  .hot-dests a { justify-content: center; min-width: 0; padding: 0 8px 0 5px; white-space: nowrap; }
  .hot-dests a.hot-dests__all { padding: 0 6px 0 10px; }
}
@media (max-width: 359px) { .hot-dests a { gap: 4px; font-size: 12.5px; } }
.fc-flag .flag { display: block; width: 38px; height: 38px; }
.float-card__row b.fc-code { color: var(--brand); font-size: 19px; letter-spacing: 0.18em; }

.flag-stack { position: relative; z-index: 1; display: flex; }
.flag-stack .flag { width: 40px; height: 40px; box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.9), 0 6px 14px rgba(0, 0, 0, 0.2); }
.flag-stack .flag + .flag { margin-left: -10px; }
.dest__arrow { display: none; margin-left: auto; width: 17px; height: 17px; color: var(--subtle); }

.compat { display: grid; gap: 14px; padding: 20px; border-radius: 18px; background: linear-gradient(120deg, var(--brand-soft), transparent 75%), var(--site-bg); border: 1px solid var(--line); }
.compat__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); }
.compat__ic svg { width: 24px; height: 24px; color: #fff; }
.compat h3 { font-size: 18px; font-weight: 800; }
.compat p { margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.compat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.compat__chips span { padding: 4px 10px; border-radius: 8px; background: var(--fill); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.compat .btn-outline { justify-self: start; min-height: 42px; font-size: 14px; }

.faq { display: grid; gap: 8px; }
.faq details { border-radius: 14px; background: var(--site-bg); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 16px 14px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.panel .faq details { background: var(--fill); border-color: transparent; }

.more-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.more-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--site-bg); border: 1px solid var(--line); }
.more-card:hover { border-color: var(--brand); }
.more-card .ic { width: 36px; height: 36px; border-radius: 10px; }
.more-card .ic svg { width: 18px; height: 18px; }
.more-card b { display: block; font-size: 14px; }
.more-card small { color: var(--rose); font-size: 12px; font-weight: 750; }

.seg--scope { margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.seg--scope::-webkit-scrollbar { display: none; }
.seg--scope a { flex: 1 0 auto; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px dashed var(--line-2); text-align: center; }
.empty > svg { width: 30px; height: 30px; color: var(--subtle); }
.empty b { font-size: 15px; }
.empty p { color: var(--muted); font-size: 13px; }
.empty .ghost-btn { margin-top: 8px; }

.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.check-list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--green-ink); }
.check-list .is-warn { color: var(--ink); font-weight: 600; }
.check-list .is-warn svg { color: #d97706; }
.g-steps { display: grid; counter-reset: g; list-style: none; padding: 0; margin: 0; }
.g-steps li { position: relative; padding: 0 0 18px 46px; counter-increment: g; }
.g-steps li::before { content: counter(g); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; }
.g-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1.5px; background: var(--line-2); }
.g-steps b { display: block; font-size: 15px; line-height: 30px; }
.g-steps p { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.login__tile .flag { width: 38px; height: 38px; }

@media (min-width: 700px) {
  .dest-search .cta-btn span { display: inline; }
  .dest-search .cta-btn { padding: 0 20px; }
  .prod-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compat { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 24px; }
  .compat .btn-outline { justify-self: end; }
  .seg.seg--scope { max-width: none; }
  .foot-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-grid--5 .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .home-hero--esim .home-hero__in { padding-top: 64px; padding-bottom: 60px; }
  .prod-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dest-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dest__arrow { display: block; }
  .more-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .seg.seg--scope { max-width: 560px; }
  .foot-grid--5 { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .foot-grid--5 .foot-brand { grid-column: auto; }
}

/* 截图用（?shot=1）：不要动画 */
.shot *, .shot *::before, .shot *::after { animation: none !important; transition: none !important; }

/* ===== 邮箱登录 ===== */
.login__seg { margin-top: 20px; }
.login__seg button { padding: 8px 6px; font-size: 13.5px; }
.login__form { display: grid; gap: 12px; margin-top: 16px; text-align: left; }
.login__form .field + .field { margin-top: 0; }
.login__form .field-label a { color: var(--brand); font-size: 12.5px; font-weight: 700; }
.login__form .login__btn { margin-top: 4px; }
.input-wrap--code .input { padding-right: 104px; letter-spacing: 0.08em; }
.input-wrap--code .input::placeholder { letter-spacing: 0; }
.login__list { margin-top: 18px; }
.me-row__val { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.me-row__val + .me-row__arrow { margin-left: 4px; }
.me-card__t small { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card__t small svg { flex: none; width: 14px; height: 14px; }
.me-card__t small span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ===== 我的账户（网站式账户页） ===== */
.avatar--hero { width: 46px; height: 46px; font-size: 18px; }
.acct { display: grid; gap: 0; }
.acct .panel-head .sec-more { margin: 0; }
.acct-bal { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.acct-bal__t span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.acct-bal__t b { font-size: 26px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.acct-bal__t b small { margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.acct-bal__acts { display: flex; gap: 8px; }
.acct-bal__acts .cta-btn, .acct-bal__acts .btn-outline { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.acct-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.acct-row:first-of-type { border-top: 0; padding-top: 2px; }
.acct-row .ef-av { width: 38px; height: 38px; border-radius: 11px; }
.acct-row .ef-av svg { width: 19px; height: 19px; }
.acct-row .ef-av .panda { width: 28px; height: 28px; }
.acct-row .ic--sm { width: 38px; height: 38px; border-radius: 11px; }
.acct-row__amt { font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.set-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--line); }
.panel-head + .set-row, .set-row:first-child { border-top: 0; }
.set-row__l { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; }
.set-row__l small { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 12.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.set-row--link .set-row__l { display: flex; align-items: baseline; gap: 8px; }
.set-row--link .set-row__l small { display: inline; margin: 0; }
.set-row__ic { width: 18px; height: 18px; color: var(--muted); }
.set-row__arrow { width: 16px; height: 16px; color: var(--subtle); }
.acct-logout { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 650; }
.acct-logout svg { width: 16px; height: 16px; }
@media (min-width: 1100px) {
  .acct { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "main bal" "main side"; column-gap: 24px; align-items: start; }
  .acct-bal { grid-area: bal; }
  .acct-main { grid-area: main; }
  .acct-side { grid-area: side; }
}
.acct-row .ic--sm { background: var(--fill-2); box-shadow: none; }
.acct-row .ic--sm svg { color: var(--ink-2); }

/* ===== 店标：方块里一个 U ===== */
.brand-mark--u { color: #fff; font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; font-family: -apple-system, "SF Pro Rounded", "SF Pro Display", "Helvetica Neue", Arial, sans-serif; text-shadow: 0 1px 2px rgba(30, 40, 120, 0.25); }
.login__card .brand-mark--u { font-size: 38px; }
/* 顶栏放不下时先让搜索框变窄，别把头像挤出去 */
@media (min-width: 1300px) {
  .head-right { min-width: 0; }
  .head-search { flex: 0 1 230px; width: auto; min-width: 120px; }
  .head-search input { min-width: 0; width: 100%; }
}
@media (min-width: 1100px) and (max-width: 1499px) { .bal small { display: none; } }
@media (min-width: 1300px) { .head-search { min-width: 150px; } }
@media (min-width: 1300px) and (max-width: 1499px) { .head-search kbd { display: none; } .nav__link { padding: 0 10px; } }

/* ===== 英文版：英文比中文长，手机上 eSIM 卡片的价格放到下一行 ===== */
@media (max-width: 699px) {
  html[lang="en"] .esim-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av body" "price price"; }
  html[lang="en"] .esim-card .ef-av { grid-area: av; }
  html[lang="en"] .esim-card__body { grid-area: body; }
  html[lang="en"] .esim-card__price { grid-area: price; display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
}
/* eSIM 列表：可横滑的筛选条别把整列撑宽（手机上卡片右边会被切掉） */
@media (max-width: 1099px) { .esim-layout { grid-template-columns: minmax(0, 1fr); } }
.esim-layout > * { min-width: 0; }

/* ===== 真数据（live.js）用到的几样 ===== */
.notice--soon { margin-bottom: 16px; }
.notice--soon a { color: var(--brand); font-weight: 700; white-space: nowrap; }
.form-err { min-height: 18px; margin: 4px 0 2px; color: var(--rose); font-size: 12.5px; font-weight: 650; }
.form-err:empty { min-height: 0; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin, svg.spin { animation: spin 1s linear infinite; }
.empty > svg.spin { color: var(--brand); }
.spec-btn__r { display: block; margin: 0 0 3px !important; color: var(--brand) !important; font-size: 11px !important; font-weight: 750 !important; }
.acct-empty { display: grid; justify-items: start; gap: 10px; padding: 8px 0 4px; }
.pay-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-acts .ghost-btn { flex: 1 1 auto; justify-content: center; }
.head-login { white-space: nowrap; }
.input-wrap__btn:disabled { opacity: 0.55; cursor: default; }

/* ===== 登录页收短：一屏放得下（用户 2026-12-03 说登录卡太长） ===== */
.login { padding: 24px 16px; }
.login__card { padding: 24px 20px 18px; }
.login__card h1 { font-size: 21px; }
.login__seg { margin-top: 16px; }
.login__form { gap: 10px; margin-top: 14px; }
.login__form .hint { margin-top: 6px; }
.login__btn { min-height: 46px; border-radius: 23px; }
.login__foot { margin-top: 14px !important; }
.login__promo .login__list { gap: 7px; margin-top: 18px; }
.login__promo .login__list div { font-size: 14px; }
@media (min-width: 700px) {
  .login__card { padding: 30px 30px 22px; }
}
@media (min-width: 1100px) {
  .login__promo h2 { font-size: 42px; }
  .login__tiles { margin-top: 22px; }
}
/* 矮屏（笔记本小窗口）：介绍再收一点 */
@media (min-width: 1100px) and (max-height: 760px) {
  .login__promo h2 { font-size: 36px; margin-top: 14px; }
  .login__promo > p { margin-top: 10px; font-size: 15px; }
  .login__tile { padding: 10px 12px; }
  .login__tile .flag { width: 32px; height: 32px; }
}
.login__foot { word-break: keep-all; }

/* ===== 登录页正好一屏：顶栏 + 登录 + 一行页脚，底色连成一片（用户 2026-12-03 说页脚被切、底下一条灰） ===== */
body.is-login {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 10%, rgba(59, 158, 255, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(99, 102, 241, 0.16) 0%, transparent 45%),
    var(--bg);
}
.is-login .site-main { flex: 1; display: grid; min-height: 0; }
.is-login .login { min-height: 0; background: none; }
.is-login .site-foot { flex: none; background: none; border: 0; }
.is-login .site-foot .wrap { padding-top: 0; padding-bottom: 14px; }
.is-login .foot-bottom { margin: 0; padding-top: 0; border-top: 0; font-size: 12px; color: var(--subtle); }

/* ---------- 支付宝充值 ---------- */
.coin--alipay { background: linear-gradient(135deg, #1677ff, #0b5ed7); font-size: 15px !important; }
.ic--alipay { background: linear-gradient(135deg, #1677ff, #0b5ed7); }
.provider-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.rc-quote { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.rc-quote svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--brand); }
.rc-quote b { font-variant-numeric: tabular-nums; }
.rc-quote small { display: block; color: var(--muted); font-size: 12px; }
.pay-amount b em.plain { color: inherit; }
.pay-amount small.muted-small { color: var(--muted); font-weight: 600; }
.qr-cap { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.ali-btn { margin: 4px 0 2px; }
/* 长一点的提示在手机上换行，不要伸出屏幕 */
.toast { white-space: normal; width: max-content; max-width: min(520px, calc(100vw - 32px)); text-align: center; line-height: 1.45; }
.coin--okpay { font-size: 12px; }
.ic--okpay { background: linear-gradient(135deg, #111827, #374151); }
.provider-grid--1 { grid-template-columns: minmax(0, 220px); }
.provider-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ok-btn { margin: 4px 0 2px; }

/* ============================ 帮助中心（help.js） ============================ */
.hc-search { height: 52px; max-width: 720px; padding: 0 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--card-shadow); }
.hc-search svg { width: 19px; height: 19px; }
.hc-search input { font-size: 15.5px; }
.hc-quicks { display: grid; gap: 10px; margin-top: 16px; }
.hc-quick { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); color: var(--ink); }
.hc-quick:hover { border-color: var(--brand); }
.hc-quick b { display: block; font-size: 15px; }
.hc-quick small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.hc-sec { padding-top: 30px; }
.hc-sec[hidden], .hc-faq-g[hidden], .hc-card[hidden], .hc-faq-g details[hidden], .hc-empty[hidden] { display: none; }
.hc-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hc-sec__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.hc-cards { display: grid; gap: 10px; }
.hc-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); color: var(--ink); }
.hc-card:hover { border-color: var(--brand); }
.hc-card__t { flex: 1; min-width: 0; }
.hc-card__t b { display: block; font-size: 15.5px; }
.hc-card__t small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.hc-card__go { flex: 0 0 auto; width: 18px; height: 18px; color: var(--subtle); }
.hc-faq-g + .hc-faq-g { margin-top: 18px; }
.hc-faq-g h3 { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.hc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; color: var(--muted); text-align: center; }
.hc-empty svg { width: 28px; height: 28px; }
.hc-help { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.hc-help__t { flex: 1; min-width: 220px; }
.hc-help__t b { font-size: 15.5px; }
.hc-help__t p { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.hc-link { color: var(--brand); font-weight: 650; }
.hc-link:hover { text-decoration: underline; }

.hc-updated { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 12.5px; }
.hc-updated svg { width: 14px; height: 14px; }
.hc-art { padding: 20px; scroll-margin-top: 140px; }
.hc-art h2 { margin-bottom: 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.hc-art p { color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.hc-art p + p, .hc-art p + .hc-list, .hc-art .hc-table + p, .hc-art p + .hc-table, .hc-art p + .hc-path { margin-top: 10px; }
.hc-art code { padding: 1px 5px; border-radius: 6px; background: var(--fill); font: 600 13px var(--mono); }
.hc-code { padding: 10px 12px; border-radius: 10px; background: var(--fill); font: 600 13.5px/1.6 var(--mono); word-break: break-all; }
.hc-code b { color: var(--brand); }
/* 教程配图（help.js HC_FIG 画的 SVG）：颜色全走主题变量，深色模式自动跟着变 */
.hc-fig { margin: 14px 0; padding: 16px 12px 12px; border-radius: 14px; background: var(--surface-2); }
.hc-fig svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; font-family: inherit; overflow: visible; }
.hc-fig figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.hc-fig .b { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.hc-fig .f { fill: var(--fill); }
.hc-fig .s { fill: var(--brand-soft); }
.hc-fig .a { fill: var(--brand); }
.hc-fig .g { fill: var(--green-soft); }
.hc-fig .y { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 1.2; }
.hc-fig .kc { fill: none; stroke: var(--amber); stroke-width: 1; opacity: 0.6; }
.hc-fig .k { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hc-fig .kf { fill: var(--muted); }
.hc-fig .kl { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.hc-fig .d { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.hc-fig .dot { fill: var(--line-2); }
.hc-fig .sw { fill: var(--line-2); }
.hc-fig .w2 { fill: #fff; }
.hc-fig text { font-family: inherit; }
.hc-fig .t { fill: var(--ink); font-weight: 750; }
.hc-fig .m { fill: var(--muted); font-weight: 600; }
.hc-fig .w { fill: #fff; font-weight: 800; }
.hc-fig .tb { fill: var(--brand); font-weight: 750; }
.hc-fig .tg { fill: var(--green-ink); font-weight: 750; }
.hc-art .hc-fig + p, .hc-art .hc-fig + .hc-steps, .hc-art .hc-list + .hc-fig, .hc-art p + .hc-steps { margin-top: 12px; }
.hc-path { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; padding: 6px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13px; }
.hc-path b { font-weight: 700; }
.hc-path svg { width: 13px; height: 13px; opacity: 0.7; }
.hc-path__s { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
@media (max-width: 359px) {
  .hc-path, .hc-path__s { gap: 2px; }
  .hc-path { padding: 5px 8px; font-size: 12px; }
  .hc-path svg { width: 11px; height: 11px; }
}
.hc-steps { display: grid; gap: 12px; counter-reset: hc; list-style: none; padding: 0; margin: 0; }
.hc-steps li { position: relative; padding-left: 38px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; counter-increment: hc; }
.hc-steps li::before { content: counter(hc); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 800; }
.hc-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.hc-list li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.hc-list li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hc-note { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-2); font-size: 13.5px; line-height: 1.65; }
.hc-note svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; color: var(--brand); }
.hc-note--warn { background: var(--amber-soft); }
.hc-note--warn svg { color: var(--amber-ink); }
.hc-note--tip { background: var(--green-soft); }
.hc-note--tip svg { color: var(--green-ink); }
.hc-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.hc-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hc-table th { padding: 10px 12px; background: var(--fill); color: var(--muted); font-weight: 700; text-align: left; white-space: nowrap; }
.hc-table td { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.6; vertical-align: top; }
.hc-table td:first-child { color: var(--ink); font-weight: 650; }
.hc-toc { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.hc-toc button { padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 13.5px; text-align: left; cursor: pointer; }
.hc-toc button:hover { border-left-color: var(--brand); color: var(--brand); }
/* 手机上文章开头的目录默认收起成一行，点开才展开（整块列出来要占半屏） */
.hc-toc-top { padding: 0; }
.hc-toc-top summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; list-style: none; }
.hc-toc-top summary::-webkit-details-marker { display: none; }
.hc-toc-top summary b { font-size: 15px; }
.hc-toc-top summary span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.hc-toc-top summary svg { width: 18px; height: 18px; margin-left: auto; color: var(--muted); transition: transform 0.2s; }
.hc-toc-top[open] summary svg { transform: rotate(180deg); }
.hc-toc-top .hc-toc { margin: 0 16px 14px; }
.hc-art .faq details { background: var(--fill); border-color: transparent; }
.lpa-box--sub { padding-top: 6px; padding-bottom: 6px; }
.lpa-box--sub .ghost-btn { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
@media (min-width: 700px) {
  .hc-quicks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .only-sm-md { display: none !important; }
  .hc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-2 .hc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) { .hc-aside { display: none; } }

/* ---------- eSIM 续费弹窗 ---------- */
.rn-kv { margin-top: 4px; padding: 4px 12px; border-radius: 12px; background: var(--fill); }
.rn-label { margin: 14px 0 8px; font-size: 13px; font-weight: 800; color: var(--ink); }
.rn-pkgs { display: grid; gap: 8px; }
.rn-pkg { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.rn-pkg strong { flex: 1; min-width: 0; }
.rn-pkg .p-price { margin-top: 0; flex: 0 0 auto; }
.sheet .rn-kv + .cta-btn, .sheet .rn-kv + a.cta-btn { margin-top: 14px; }
.rn-foot { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }
.sheet__body > svg.rn-ok { width: 34px; height: 34px; color: var(--green); }
.cta-btn[disabled] { opacity: 0.6; pointer-events: none; }
/* 能续费的卡有 4 个按钮：排成两行两列，手机上不把卡片撑宽 */
.mycard__acts:has(> :nth-child(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 小地方：短 ICCID 不拆成两行；订单号用等宽小字 */
.nowrap { white-space: nowrap; }
.ord-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; }

/* 买卡确认窗 */
.buy-ok__item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.buy-ok__item > span:last-child { display: grid; min-width: 0; line-height: 1.35; }
.buy-ok__item b { font-size: 15px; }
.buy-ok__item small { color: var(--muted); font-size: 13px; }
.sheet .agree { margin-top: 12px; font-weight: 500; }
.sheet .agree b { color: var(--rose-ink); }
.sheet .agree + .cta-btn { margin-top: 14px; }

/* 手机上顶部别太占地方（用户：大图标 + 大标题「很浪费空间」）：
 * 顶栏矮一点；标题块不要大图标、不要副标题，只留一行小路径 + 一行标题；
 * 带标签的页面（我的账户、eSIM、能量…）连标题行也不要，亮着的标签就说明在哪 */
@media (max-width: 699px) {
  :root { --head-h: 56px; }
  .page-hero .wrap { padding-top: 10px; }
  .page-hero__row { margin-top: 3px; padding-bottom: 10px; }
  .page-hero__row > :not(.page-hero__t) { display: none; }
  .page-hero h1 { font-size: 18px; line-height: 1.3; }
  .page-hero__t p { display: none; }
  /* 路径最后一项就是下面的标题，不重复；只有「首页 › 本页」两项时整行不要 */
  .page-hero .crumbs > :last-child, .page-hero .crumbs > svg:nth-last-child(2) { display: none; }
  .page-hero .crumbs:not(:has(> :nth-child(4))) { display: none; }
  .page-hero--tabs .crumbs { display: none; }
  .page-hero--tabs .page-hero__row { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* 读屏还能读到 */
  .page-hero--tabs .wrap, .page-hero--group .wrap { padding-top: 4px; }
  .tabs a { height: 42px; }
  .page-body { padding-top: 14px; }
  .seg button, .seg a { padding: 7px 10px; }
  .orders-tools { margin: 10px 0; }
}

/* 同一组标签的页面（eSIM、我的账户、Telegram…）：标题就是亮着的标签，面包屑最后一项也写着在哪，所以不再放大标题行（电脑、手机都一样） */
.page-hero--group .page-hero__row { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* 标题读屏还能读到 */
.page-hero--group .crumbs { margin-bottom: 6px; }

/* eSIM 列表（电脑）：范围切换和搜索框放一行、一样高，数量那行在下面 */
@media (min-width: 1100px) {
  .esim-main { display: grid; grid-template-columns: minmax(0, 560px) minmax(200px, 1fr); column-gap: 12px; align-items: center; }
  .esim-main > * { grid-column: 1 / -1; }
  .esim-main > .seg--scope { grid-column: 1; margin-bottom: 0; }
  .esim-main > .esim-bar { display: contents; }
  .esim-main > .esim-bar .search { grid-column: 2; grid-row: 1; height: 45px; }
  .esim-main > .esim-bar b { grid-column: 1 / -1; margin: 14px 2px 12px; }
}

/* 订单记录：订单 / 充值 / 流水 切换和搜索框（平板、电脑放一行、一样高） */
.hist-top .seg { max-width: 420px; }
@media (min-width: 700px) {
  .hist-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .hist-top .seg { flex: 0 0 420px; }
  .hist-top .orders-tools { flex: 1; margin: 0; }
  .hist-top .orders-tools .search { height: 45px; }
}

/* 卡密兑换 */
.input--code { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; height: 50px; }
.input--code::placeholder { text-transform: none; letter-spacing: 0.04em; }
.rd-err { display: flex; align-items: flex-start; gap: 6px; margin: -2px 0 12px; color: var(--rose-ink); font-size: 13px; font-weight: 600; line-height: 1.45; }
.rd-err svg { width: 15px; height: 15px; margin-top: 2px; flex: 0 0 auto; }
.rd-notes { margin: 14px 0 0; padding: 12px 14px 12px 30px; border-radius: 12px; background: var(--fill); color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.rd-notes b { color: var(--ink-2); }
.rd-ok { display: grid; justify-items: center; gap: 4px; padding: 8px 0 18px; text-align: center; }
.rd-ok__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--green-soft, #e7f7ee); color: var(--green-ink, #15803d); margin-bottom: 6px; }
.rd-ok__ic svg { width: 28px; height: 28px; }
.rd-ok > b { font-size: 16px; }
.rd-ok strong { font-size: 30px; font-weight: 800; color: var(--green-ink, #15803d); letter-spacing: -0.02em; }
.rd-ok strong small { font-size: 14px; font-weight: 700; }
.rd-ok .muted { font-size: 13px; }
.rd-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-acts .cta-btn, .rd-acts .ghost-btn { justify-content: center; min-height: 46px; }
.acct-bal__acts { flex-wrap: wrap; }
.acct-bal__acts .btn-outline svg { width: 16px; height: 16px; }
/* 手机：几个按钮一样宽排一行，不让「余额流水」一个掉到下一行 */
@media (max-width: 479px) {
  .acct-bal__acts { flex: 1 1 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .acct-bal__acts .cta-btn, .acct-bal__acts .btn-outline { justify-content: center; gap: 5px; padding: 0 6px; white-space: nowrap; }
}
.acts--tight svg { display: none; } /* app.js fitRows：按钮里字放不下时加上 */
