/* Siqvex 产品页 与官网首页同一套颜色 字体 卡片和导航 只有亮色 */
:root {
  color-scheme: light;

  --bg: #f4f7fa;
  --surface: #fff;
  --art: #f4f7fa;
  --text: #101723;
  --logo: #111317;
  --muted: #4f5b6b;
  --faint: #647080;
  --line: #e1e6ec;
  --accent: #0f9488;

  --art-base: #dce2ea;
  --art-active: #3a4556;

  --gutter: 24px;
  --radius-outer: 20px;
  --radius-art: 12px;

  --ease-out: cubic-bezier(0, 0, .58, 1);
  --ease-strong: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.42, 0, .58, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);

  --t-press: 120ms;
  --t-shadow: 140ms;
  --t-color: 160ms;
  --t-size: 240ms;
  --t-enter: 420ms;
  --t-blur: 160ms;
  --t-blur-in: 360ms;
  --t-fade: 150ms;
  --boot: 1000ms;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--bg);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
/* 购买窗口打开时背景不滚动 */
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-autospace: normal;
  text-spacing-trim: trim-start;
}

h1, h2, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; }

::selection { background: #5fd3c8; color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  padding: 8px 12px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

/* 总加载动画 每个来源每次会话一次 纯CSS按时间退场 脚本失败也不会卡住 不拦截点击 */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  pointer-events: none;
  animation: loader-out 220ms var(--ease-in-out) var(--boot) forwards;
}
.site-loader svg { width: 96px; height: auto; overflow: visible; fill: var(--logo); }
.loader-s {
  fill: none;
  stroke: #fff;
  stroke-width: 31;
  stroke-linejoin: miter;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  animation: loader-draw 400ms var(--ease-in-out) 120ms backwards;
}
.loader-bar { animation-duration: 180ms; animation-delay: 520ms; }
.loader-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: loader-pop 200ms var(--ease-pop) 700ms backwards;
}
html.loader-skip { --boot: 0ms; }
html.loader-skip .site-loader { display: none; }
@keyframes loader-draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  1% { stroke-dashoffset: 1; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes loader-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes loader-out {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --boot: 0ms; }
  .site-loader { display: none; }
}

/* 导航 */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand svg { width: 28px; height: auto; fill: var(--logo); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition:
    color var(--t-color) var(--ease-out),
    background-color var(--t-color) var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
.nav-link[aria-current="page"] { color: var(--text); }
@media (hover: hover) {
  .nav-link:hover { color: var(--text); background: rgb(16 23 35 / .05); }
}

.account-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(180deg, #fff, #f6f8fa);
  box-shadow:
    0 0 0 1px #c3ccd6,
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgb(16 23 35 / .03),
    0 1px 2px rgb(40 55 80 / .06),
    0 2px 6px -3px rgb(40 55 80 / .1);
  transition:
    transform var(--t-press) var(--ease-strong),
    box-shadow var(--t-shadow) var(--ease-strong);
}
.account-link::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
@media (hover: hover) {
  .account-link:hover {
    box-shadow:
      0 0 0 1px #aab4c1,
      inset 0 1px 0 #fff,
      inset 0 -1px 0 rgb(16 23 35 / .03),
      0 2px 3px rgb(40 55 80 / .08),
      0 6px 12px -4px rgb(40 55 80 / .14);
  }
}
.account-link:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #eef1f5, #f6f8fa);
  box-shadow:
    0 0 0 1px #aab4c1,
    inset 0 1px 2px rgb(16 23 35 / .1),
    inset 0 0 0 rgb(16 23 35 / 0),
    0 0 0 rgb(40 55 80 / 0),
    0 0 0 rgb(40 55 80 / 0);
}

/* 账户入口 检查期间文字延后出现 已登录用户不会先看到登录 脚本失败时仍能点 */
.account-link[data-state="checking"] [data-home-login] { animation: fade var(--t-color) var(--ease-out) 700ms backwards; }
.account-link[data-state="anonymous"] [data-home-login],
.account-link[data-state="unavailable"] [data-home-login] { animation: fade var(--t-color) var(--ease-out) backwards; }
.account-link:has([data-home-identity]:not([hidden])) { padding: 0 12px 0 6px; }

.home-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.home-avatar {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e6ebf1;
  box-shadow: inset 0 0 0 1px rgb(16 23 35 / .06);
  animation: avatar-in 240ms var(--ease-pop) backwards;
}
.home-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}
.home-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.home-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 标题 */
.products {
  padding-top: 56px;
  padding-bottom: 96px;
}

h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.025em;
}

.lede {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}

/* 卡片 align-items:start 展开详情时只有这一张变高 */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 40px;
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius-outer);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 2px rgb(40 55 80 / .04),
    0 8px 24px -12px rgb(40 55 80 / .1);
}

/* 点阵直接画出名称里的倍数 暗点是亮起的数量 最后一颗用强调色 */
.art {
  background: var(--art);
  border-radius: var(--radius-art);
  transition:
    filter var(--t-blur) var(--ease-in-out),
    opacity var(--t-blur) var(--ease-in-out);
}
.art.blur { filter: blur(3px); opacity: .5; }
.art svg { width: 100%; height: auto; }
.art .logo-box { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.art .base { fill: var(--art-base); }
.art .lit { fill: var(--art-active); transform-box: fill-box; transform-origin: center; }
.art .last { fill: var(--accent); }
/* Apple两张卡 账户是一张资料卡 点卡是一张深色卡 */
.art .acct-card { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.art .gift-line { fill: rgb(255 255 255 / .55); }

/* 点卡价格 税费跟在面值后面 小一号 */
.price-tax {
  display: inline-block;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.art .lit-check { fill: none; stroke: var(--art-active); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .lit-check.last { stroke: var(--accent); }

/* 静止态就是最后一帧 脚本加armed后才回到起点 */
.art.armed .lit { opacity: 0; }

.tile-body { padding: 20px 16px 16px; }

.tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tile-head-with-notes {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.tile-head-with-notes .title-note {
  margin-inline-start: 0;
  line-height: 1.4;
}
h2 {
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.title-note {
  display: inline-block;
  max-width: 100%;
  margin-inline-start: 4px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--faint);
}

.price {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* 提交订单 与官网主按钮同一套五层 只打开确认 不收款 */
.btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #2c3648, #161e2c);
  box-shadow:
    0 0 0 1px #0b111b,
    inset 0 1px 0 rgb(255 255 255 / .16),
    inset 0 -1px 0 rgb(0 0 0 / .2),
    0 1px 2px rgb(16 23 35 / .24),
    0 4px 10px -3px rgb(16 23 35 / .32);
  cursor: pointer;
  transition:
    transform var(--t-press) var(--ease-strong),
    box-shadow var(--t-shadow) var(--ease-strong),
    opacity var(--t-color) var(--ease-out);
}
@media (hover: hover) {
  .btn-order:hover:not(:disabled) {
    background: linear-gradient(180deg, #364154, #1e2737);
    box-shadow:
      0 0 0 1px #0b111b,
      inset 0 1px 0 rgb(255 255 255 / .2),
      inset 0 -1px 0 rgb(0 0 0 / .2),
      0 2px 3px rgb(16 23 35 / .24),
      0 8px 16px -4px rgb(16 23 35 / .36);
  }
}
.btn-order:active:not(:disabled) {
  transform: translateY(1px);
  background: linear-gradient(180deg, #131a27, #232c3c);
  box-shadow:
    0 0 0 1px #0b111b,
    inset 0 1px 2px rgb(0 0 0 / .4),
    inset 0 0 0 rgb(0 0 0 / 0),
    0 0 0 rgb(16 23 35 / 0),
    0 0 0 rgb(16 23 35 / 0);
}
.btn-order:disabled { opacity: .45; cursor: not-allowed; }

/* 购买窗口 dialog铺满屏幕当遮罩 模糊和面板都由is-open驱动 打开和关闭走同一条过渡 随时可反向 */
.buy {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: rgb(16 23 35 / 0);
  color: var(--text);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    background-color var(--t-blur-in) var(--ease-in-out),
    -webkit-backdrop-filter var(--t-blur-in) var(--ease-in-out),
    backdrop-filter var(--t-blur-in) var(--ease-in-out);
}
.buy[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.buy::backdrop { background: transparent; }
.buy.is-open {
  background: rgb(16 23 35 / .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.buy-panel {
  width: min(400px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-outer);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgb(16 23 35 / .08),
    0 24px 64px -16px rgb(16 23 35 / .32);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition:
    opacity 200ms var(--ease-out),
    transform var(--t-blur-in) var(--ease-strong);
}
.buy.is-open .buy-panel {
  opacity: 1;
  transform: none;
}

.buy-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.buy-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.buy-logo img { display: block; width: 28px; height: 28px; }
.buy h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.buy-amount {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stepper {
  display: flex;
  align-items: center;
  flex: none;
  padding: 3px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    transform var(--t-press) var(--ease-strong),
    background-color var(--t-press) var(--ease-out),
    opacity var(--t-color) var(--ease-out);
}
.stepper svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .stepper button:hover:not(:disabled) { background: rgb(16 23 35 / .06); }
}
.stepper button:active:not(:disabled) { transform: scale(.92); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper input {
  width: 44px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 600 16px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text);
}
.buy-limit { margin-left: 8px; font-size: 13px; color: var(--faint); }
.stepper input[readonly] { cursor: default; }
.stepper input:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }

.buy .btn-order { margin-top: 8px; }

/* 提示展开时面板高度连续变化 不跳 */
.buy-error-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-size) var(--ease-in-out);
}
.buy-error-wrap:has(.buy-error:not(:empty)) { grid-template-rows: 1fr; }
.buy-error {
  min-height: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  color: #b42318;
}
.buy-error:not(:empty) { padding-top: 12px; }
.buy-error a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* 美国eSIM手机号 和上面同一套卡片 左边是运营商标志或SIM卡 右边是收到的短信弹窗 */
/* 整张卡片就是购买入口 一个透明按钮铺满卡片 键盘也能选中
   悬停时卡片浮起一点 按下时压回去 松手弹出购买窗口 */
.tile, .recharge {
  position: relative;
  transition:
    transform var(--t-size) var(--ease-strong),
    box-shadow var(--t-size) var(--ease-strong);
}
.tile-buy {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tile-buy:focus-visible { outline-offset: 3px; border-radius: var(--radius-outer); }
@media (hover: hover) {
  .tile:has(.tile-buy:hover), .recharge:has(.tile-buy:hover) {
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px var(--line),
      0 2px 4px rgb(40 55 80 / .05),
      0 16px 32px -14px rgb(40 55 80 / .18);
  }
}
.tile:has(.tile-buy:active), .recharge:has(.tile-buy:active) {
  transform: scale(.985);
  transition-duration: var(--t-press);
}

/* 分类标签 底下一条通栏细线 选中的文字变深 下划线从上一个标签滑过来 */
.cat-tabs {
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}
.cat-track {
  position: relative;
  display: flex;
  gap: 36px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--faint);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-color) var(--ease-out);
}
.cat-tab[aria-pressed="true"] { color: var(--text); }
@media (hover: hover) {
  .cat-tab:hover { color: var(--text); }
}
.cat-tab:focus-visible { outline-offset: -2px; }
.cat-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 2px;
  background: var(--text);
  transform-origin: 0 0;
  transition: transform var(--t-size) var(--ease-in-out);
}

/* 各区块之间72px 标签栏下面的第一个区块40px
   标签栏的负下外边距和下一个看得见的区块上外边距合并 筛选隐藏了哪些区块都成立 */
.esim, .products > .section-title { margin-top: 72px; }
.cat-tabs { margin-bottom: -32px; }
.section-title + .tiles { margin-top: 16px; }
.section-title {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.tiles.esim-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.esim h3 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.art .sim { fill: none; stroke: var(--art-active); stroke-width: 3; stroke-linejoin: round; }
.art .chip { fill: var(--art-base); }
/* 真实号是实心卡 虚拟号是虚线卡 */
.art .sim-solid { fill: var(--art-active); stroke: var(--art-active); stroke-width: 3; stroke-linejoin: round; }
.art .chip-solid { fill: var(--surface); }
.art .sim-dashed { stroke-dasharray: 4.2 3.2; stroke-linecap: round; }
.art .chip-dashed { fill: none; stroke: var(--art-active); stroke-width: 2; stroke-dasharray: 3 2.6; }

/* 短信弹窗 静止态就是最后一帧 脚本加armed后才回到起点
   先落下弹窗 叠在后面的两条随后露出 再写出文字 最后亮起未读点 */
.art .sms-card { filter: drop-shadow(0 4px 8px rgb(40 55 80 / .08)); }
.art .sms-surface { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.art .sms-back { fill: #fbfcfd; stroke: var(--line); stroke-width: 1; }
.art .sms-icon { fill: var(--art-active); }
.art .sms-icon.ring { fill: none; stroke: var(--art-active); stroke-width: 2; stroke-dasharray: 3 2.4; }
.art .sms-title { fill: var(--art-active); }
.art .sms-time, .art .sms-line { fill: var(--art-base); }
.art .sms-dot { fill: var(--accent); }
.art .sms-card, .art .sms-back { transform-box: fill-box; transform-origin: 50% 0; }
.art .sms-text { transform-box: fill-box; transform-origin: 0 50%; }
.art .sms-dot { transform-box: fill-box; transform-origin: center; }
.art.armed .sms-card, .art.armed .sms-back { opacity: 0; }
.art.armed .sms-text { transform: scaleX(0); }
.art.armed .sms-dot { transform: scale(0); }
.art.armed.play .sms-card { animation: sms-drop 420ms var(--ease-strong) both; }
.art.armed.play .sms-back { animation: sms-peek 240ms var(--ease-out) var(--d, 0ms) both; }
.art.armed.play .sms-text { animation: sms-write 260ms var(--ease-in-out) var(--d, 0ms) both; }
.art.armed.play .sms-dot { animation: pop 240ms var(--ease-pop) var(--d, 0ms) both; }
@keyframes sms-drop {
  0% { opacity: 0; transform: translateY(-14px) scale(.96); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes sms-peek {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes sms-write {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 充值只展示规则 没有按钮 */
.recharge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-outer);
  box-shadow: 0 0 0 1px var(--line);
}
.recharge { align-items: center; padding: 20px 24px; }
.recharge-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  min-width: 0;
}
.recharge-label { font-size: 15px; font-weight: 500; color: var(--muted); }
.recharge-rule {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* 入场 先显现再落位 */
.rise { animation: rise var(--t-enter) var(--ease-strong) var(--boot) backwards; }
.rise-2 { animation-delay: calc(var(--boot) + 60ms); }
.rise-3 { animation-delay: calc(var(--boot) + 120ms); }
.rise-4 { animation-delay: calc(var(--boot) + 180ms); }
.rise-5 { animation-delay: calc(var(--boot) + 240ms); }
@keyframes rise {
  0% { opacity: 0; transform: translateY(12px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes avatar-in {
  from { opacity: 0; transform: scale(.7); }
  to { opacity: 1; transform: scale(1); }
}

/* 页脚 */
footer { border-top: 1px solid var(--line); }
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  font-size: 14px;
  color: var(--faint);
}
.foot .brand { color: var(--text); }
.foot-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 20px;
}
.foot-qq {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  padding: 2px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  cursor: pointer;
  transition:
    color var(--t-color) var(--ease-out),
    background-color var(--t-color) var(--ease-out),
    transform var(--t-press) var(--ease-strong);
}
.foot-qq::after {
  content: "";
  position: absolute;
  inset: -10px 0;
}
@media (hover: hover) {
  .foot-qq:hover { background: rgb(16 23 35 / .05); }
}
.foot-qq:active { transform: scale(.97); }
.foot-qq.is-copied { color: var(--accent); }
/* 两个图标叠在同一格 交叉淡入 宽度不变 */
.copy-icon { position: relative; flex: none; width: 14px; height: 14px; }
.copy-icon svg {
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  transition:
    opacity var(--t-color) var(--ease-out),
    transform var(--t-color) var(--ease-out);
}
.copy-done { opacity: 0; transform: scale(.6); }
.is-copied .copy-idle { opacity: 0; transform: scale(.6); }
.is-copied .copy-done { opacity: 1; transform: none; }
.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.buy-contact { margin: 20px 0; font-size: 16px; }
.buy-contact > p + p { margin-top: 12px; }
.buy-contact-group { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.buy-contact .foot-qq { min-height: 44px; margin-left: 0; padding: 4px 8px; font-weight: 600; }
.buy-contact .foot-qq::after { inset: 0; }
.buy-contact .copy-status {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  white-space: normal;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .foot-qq, .copy-icon svg { transition: none; }
  .foot-qq:active { transform: none; }
}

/* 页脚始终一行 放不下时先缩字 再收起品牌文字 */
.foot-info { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 720px) {
  .foot { gap: 12px; font-size: 13px; }
  .foot-info { gap: 12px; }
}
@media (max-width: 368px) {
  .foot .brand span { display: none; }
}

@supports (corner-shape: superellipse(1.25)) {
  .btn-order, .tile, .art, .buy-panel, .buy-logo, .stepper, .recharge { corner-shape: superellipse(1.25); }
}

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tiles.esim-tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { flex-direction: row; align-items: flex-start; }
  .art { flex: 0 0 44%; }
  .tile-body { flex: 1; min-width: 0; padding: 12px 12px 16px 24px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .products { padding-top: 32px; padding-bottom: 72px; }
  .lede { font-size: 16px; }
  .esim, .products > .section-title { margin-top: 56px; }
  .cat-tabs { margin: 16px calc(var(--gutter) * -1) -24px; }
  .cat-track { gap: 28px; padding: 0 var(--gutter); }
  .section-title { font-size: 24px; }
  .recharge { padding: 16px 20px; }
  .recharge-text { flex: 1 1 100%; justify-content: space-between; }
  .recharge-rule { font-size: 20px; }
  .tiles { margin-top: 32px; }
  .tile { flex-direction: column; align-items: stretch; }
  .art { flex: none; }
  .tile-body { padding: 20px 12px 16px; }
  .home-name { max-width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .home-avatar { animation: fade var(--t-fade) var(--ease-out) backwards; }
  .buy, .buy-error-wrap { transition: none; }
  .buy-panel { transform: none; transition: opacity var(--t-fade) var(--ease-out); }
  .stepper button { transition: none; }
  .stepper button:active { transform: none !important; }
  .account-link, .nav-link, .btn-order { transition: none; }
  .cat-tab, .cat-indicator { transition: none; }
  .tile, .recharge { transition: none; }
  .tile:has(.tile-buy:active), .recharge:has(.tile-buy:active) { transform: none; }
  .account-link:active, .btn-order:active { transform: none !important; }
}
