/* ==========================================================================
   环球 eSIM —— 轻松旅行风
   浅天空底、海蓝主色、圆润胶囊按钮；首页一块「出发天空」渐变横幅是唯一的大色块。
   套餐仍是一行一个的紧凑列表（放在白色圆角托盘里），扫一眼就能比价。
   蓝 = 主操作与价格；绿 = 正向（带号码、成功）；橙 = 可续费 / 提醒；红 = 失败。
   数字（流量、价格、金额、倒计时）用 Barlow Semi Condensed，像机场航显。
   ========================================================================== */

@font-face { font-family: "Barlow SC"; font-weight: 500; font-display: swap; src: url(/fonts/barlow-sc-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow SC"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-sc-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow SC"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-sc-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #F3F7FC;          /* 页面底：极浅的天空色 */
  --surface: #FFFFFF;     /* 卡片 / 托盘 */
  --surface-2: #EEF3FA;   /* 卡片内的次级块 / 未选中胶囊 */
  --line: #E1E8F2;        /* 分隔线 */
  --fg: #0F1B2D;          /* 主文字 */
  --fg-2: #364559;        /* 次级文字 */
  --muted: #5E6B7D;       /* 说明文字（白底与浅底上对比度 ≥ 4.5） */
  --accent: #1F6FEB;      /* 海蓝：主按钮、价格、选中态 */
  --accent-hover: #1A5FCC;
  --accent-ink: #FFFFFF;
  --accent-soft: #E7F0FF;
  --up: #0F7443;          /* 正向 */
  --up-soft: #E2F6EC;
  --sun: #A04806;         /* 可续费 / 提醒（橙色文字，满足对比度） */
  --sun-soft: #FFF0E0;
  --down: #C9302C;
  --down-soft: #FDECEB;
  --info: #1F6FEB;
  --info-soft: #E7F0FF;

  /* 兼容后台 / 代理页沿用的变量名 */
  --ink: var(--fg);
  --ink-2: var(--fg-2);
  --brand: var(--accent);
  --brand-2: var(--accent-hover);
  --brand-soft: var(--accent-soft);
  --ok: var(--up);
  --ok-soft: var(--up-soft);
  --err: var(--down);
  --err-soft: var(--down-soft);
  --warn: var(--sun);
  --warn-soft: var(--sun-soft);
  --amber: var(--sun);
  --amber-soft: var(--sun-soft);
  --sky: var(--info);
  --sky-soft: var(--info-soft);
  --gold: var(--sun);
  --gold-ink: var(--sun);
  --gold-soft: var(--sun-soft);
  --card: var(--surface);
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 4px 16px rgba(15, 27, 45, .04);
  --radius: 16px;

  --num: "Barlow SC", "DIN Alternate", "Roboto Condensed", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: var(--fg); }
.brand-mark { width: 20px; height: 26px; flex: none; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2); font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--fg); background: var(--surface-2); }
.nav-link.solid { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav-link.solid:hover { background: var(--accent-hover); }

.mock-banner { background: var(--sun-soft); color: var(--sun); text-align: center; font-size: 13px; padding: 7px 16px; border-bottom: 1px solid #F6DCC0; }
main.wrap { min-height: 52vh; padding-top: 16px; padding-bottom: 40px; }
.loading { color: var(--muted); text-align: center; padding: 72px 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .btn { margin-top: 14px; }
.footer { color: var(--muted); font-size: 13px; padding: 24px 16px 40px; text-align: center; border-top: 1px solid var(--line); }
.footer span { display: block; }
.footer-links { margin-top: 6px; }
.footer-links a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 按钮 / 表单 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--sans); cursor: pointer;
  transition: background .15s; white-space: nowrap; /* 按钮文字永不折行 */
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface-2); color: var(--fg); }
.btn.ghost:hover { background: var(--line); }
.btn.block { display: flex; width: 100%; min-height: 50px; font-size: 16px; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
a.btn { text-align: center; }

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--fg-2); font-weight: 500; }
.field input, .field select {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 16px/1.3 var(--sans);
  background: var(--surface); color: var(--fg); outline: none; width: 100%;
}
.field input::placeholder { color: #8A96A6; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 111, 235, .14); }
.form-err { margin: 0; color: var(--down); font-size: 13px; }

/* 密码框右侧的小眼睛（pw.js 自动加上） */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; padding-right: 48px !important; }
.pw-wrap .pw-eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); margin: 0; width: 40px; height: 40px; min-height: 0; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; box-shadow: none;
}
.pw-wrap .pw-eye:hover { color: var(--fg); background: var(--surface-2); }
.pw-wrap .pw-eye[aria-pressed="true"] { color: var(--accent); }
.pw-wrap .pw-eye svg { width: 20px; height: 20px; }
.pw-caps { display: block; font-size: 12px; color: var(--sun); margin-top: 2px; }
.field-hint { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.field-hint.bad { color: var(--down); }
.field-hint.good { color: var(--up); }

/* ---------- 标签 / 状态 ---------- */
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.6; }
.tag.renew { background: var(--sun-soft); color: var(--sun); }
.tag.norenew { background: var(--surface-2); color: var(--fg-2); }
.tag.phone { background: var(--up-soft); color: var(--up); }
.tag.nophone { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.tag.reneworder { background: var(--accent-soft); color: var(--accent); }
.tag.sm { font-size: 11px; padding: 0 7px; }

.st { font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.st-pending_payment { background: var(--sun-soft); color: var(--sun); }
.st-paid, .st-fulfilling { background: var(--accent-soft); color: var(--accent); }
.st-success { background: var(--up-soft); color: var(--up); }
.st-partial_success { background: var(--sun-soft); color: var(--sun); }
.st-failed { background: var(--down-soft); color: var(--down); }
.st-expired { background: var(--surface-2); color: var(--muted); }

.note { border-radius: 14px; padding: 11px 13px; font-size: 13px; line-height: 1.65; background: var(--sun-soft); color: #6B3A0E; margin: 10px 0; }
.note.ok { background: var(--up-soft); color: #0D5A35; }
.note .tag { vertical-align: 1px; background: rgba(255, 255, 255, .7); }
.note b { color: inherit; font-weight: 700; }

/* ---------- 首页：出发天空横幅 ---------- */
.hero.sky {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px 20px; margin-bottom: 14px; color: #fff;
  background: #1F6FEB linear-gradient(140deg, #1877CC 0%, #1F6FEB 55%, #1A4FC4 100%);
}
.hero.sky h1 { font-size: 25px; font-weight: 800; position: relative; }
.hero.sky p { margin: 6px 0 0; font-size: 14px; max-width: 30em; color: rgba(255, 255, 255, .92); position: relative; }
.hero.sky .link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero .flight { position: absolute; right: -6px; top: 6px; width: 190px; height: 110px; opacity: .55; pointer-events: none; }
@media (max-width: 520px) { .hero .flight { width: 110px; height: 64px; top: 4px; right: -2px; opacity: .4; } .hero.sky h1 { padding-right: 40px; } }
.hero .chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; position: relative; }
.hero .pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px 10px 3px 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hero .pill.plain { padding-left: 10px; }
.hero .pill .net-ico { width: 18px; height: 18px; }

.entries { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .entries { grid-template-columns: 1fr 1fr; } }
.entry.cat-panel {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  background: var(--surface); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s;
}
.entry.cat-panel:hover { transform: translateY(-1px); }
.cp-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cp-sub { color: var(--fg-2); font-size: 13px; display: block; margin-top: 3px; }
.cp-count { color: var(--muted); font-size: 12px; display: block; margin-top: 12px; }
.cp-price { text-align: right; white-space: nowrap; color: var(--muted); font-size: 12px; flex: none; }
.cp-price b { display: block; font-family: var(--num); font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1.05; }
.entry.row-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.entry.row-link:hover { background: #FAFCFF; }
.row-ico { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex: none; color: var(--accent); }
.row-ico svg { width: 18px; height: 18px; }
.entry-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.entry-body b { font-size: 14px; }
.chev { width: 7px; height: 7px; border-top: 2px solid #9AA6B6; border-right: 2px solid #9AA6B6; transform: rotate(45deg); flex: none; margin-right: 4px; }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 26px 0 4px; }
.sec-title h2 { font-size: 17px; font-weight: 700; }

/* ---------- 返回链接 ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 8px; min-height: 30px; }
.back::before { content: ""; width: 6px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { color: var(--fg); }

/* ---------- 分类页：紧凑列表 ---------- */
.cat-head h1 { font-size: 22px; font-weight: 800; }
.cat-head .note { margin-bottom: 4px; }
/* 运营商 + 排序/筛选 + 表头一起吸顶，列表滚到哪里都能切换 */
.mkt-bar { position: sticky; top: 56px; z-index: 9; background: var(--bg); padding-top: 6px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); padding: 0 14px; font: 500 13px/1 var(--sans); cursor: pointer; border-radius: 999px; min-height: 36px; white-space: nowrap; }
.tab:hover { color: var(--fg); border-color: #C9D4E3; }
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.toolbar { position: relative; display: flex; align-items: center; gap: 2px; }
.sorts { display: flex; gap: 2px; }
.sort { border: 0; background: none; color: var(--muted); font: 500 13px/1 var(--sans); padding: 0 8px; border-radius: 999px; cursor: pointer; min-height: 36px; white-space: nowrap; }
.sort:hover { color: var(--fg); }
.sort.on { color: var(--fg); font-weight: 700; }
.toolbar .count { margin-left: auto; color: var(--muted); font-family: var(--num); font-size: 13px; white-space: nowrap; padding-right: 2px; }
.filter-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 12;
  background: var(--surface); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15, 27, 45, .14);
}
.filter-acts { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pill-toggle { align-self: flex-start; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); padding: 0 14px; border-radius: 999px; font: 500 14px/1 var(--sans); cursor: pointer; min-height: 36px; }
.pill-toggle.on { background: var(--up-soft); color: var(--up); border-color: transparent; font-weight: 600; }

/* 一行一个套餐，放在白色圆角托盘里。手机：左边「流量/天数 + 运营商」两行，右边价格和购买按钮；约 62px 高 */
.mkt-head, .plan { display: grid; align-items: center; column-gap: 12px; grid-template-columns: minmax(0, 1fr) auto 56px; }
.mkt-head { grid-template-areas: "amt price buy"; color: var(--muted); font-size: 12px; padding: 6px 14px; }
.mkt-head .h-amt { grid-area: amt; }
.mkt-head .h-price { grid-area: price; text-align: right; }
.mkt-head .h-carrier, .mkt-head .h-reach { display: none; }
.plan-list { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.plan-list > .empty { background: var(--surface); }
.plan {
  grid-template-areas: "amt price buy" "carrier price buy"; row-gap: 1px;
  padding: 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s;
}
.plan:last-child { border-bottom: 0; }
.plan:hover { background: #F7FAFF; }
.c-amt { grid-area: amt; min-width: 0; }
.c-carrier { grid-area: carrier; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.c-reach { display: none; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-price { grid-area: price; text-align: right; }
.c-buy { grid-area: buy; display: flex; justify-content: flex-end; }
.plan-amount { font-family: var(--num); font-size: 19px; font-weight: 700; line-height: 1.25; white-space: nowrap; color: var(--fg); }
.plan-amount .unit { font-size: 13px; font-weight: 600; color: var(--fg-2); margin-left: 1px; }
.plan-amount .div { color: #B5C0CF; font-weight: 500; margin: 0 5px; }
.plan .btn { min-height: 36px; width: 56px; padding: 0; font-size: 13px; }
.plan .price { font-size: 18px; color: var(--accent); }
.plan .price .u, .plan .price .cny { display: none; }

/* 桌面：五列表格，一行约 52px */
@media (min-width: 760px) {
  .mkt-head, .plan { grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.2fr) minmax(170px, 1.2fr) 150px 64px; grid-template-areas: none; }
  .mkt-head .h-amt, .mkt-head .h-price, .mkt-head .h-buy, .c-amt, .c-carrier, .c-price, .c-buy { grid-area: auto; }
  .mkt-head .h-carrier, .mkt-head .h-reach, .c-reach { display: block; }
  .mkt-head { padding: 8px 18px; }
  .plan { padding: 8px 18px; }
  .plan .btn { width: 64px; }
  .c-carrier { font-size: 13px; color: var(--fg-2); }
  .plan .price .cny { display: inline; font-size: 12px; margin-left: 6px; }
}

.price { font-family: var(--num); font-weight: 700; font-size: 18px; color: var(--fg); white-space: nowrap; line-height: 1.2; }
.price .u { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.price .cny { display: block; font: 500 11px/1.4 var(--sans); color: var(--muted); }

/* ---------- 套餐详情弹层 ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-mask { position: absolute; inset: 0; background: rgba(15, 27, 45, .45); }
.sheet-body {
  position: relative; background: var(--surface); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  border-radius: 24px 24px 0 0; padding: 22px 20px 18px; box-shadow: 0 -12px 40px rgba(15, 27, 45, .18);
  animation: slideup .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slideup { from { transform: translateY(32px); } to { transform: none; } }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-body { border-radius: 24px; } }
.sheet h2 { font-family: var(--num); font-size: 30px; font-weight: 700; }
.sheet .plan-amount { font-size: 30px; }
.sheet .plan-amount .unit { font-size: 18px; }
.sheet .sub { margin: 8px 0 12px; }
.kv { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv .k { color: var(--muted); width: 72px; flex: none; }
.kv .v { color: var(--fg); min-width: 0; }
.kv .v.price { font-size: 20px; color: var(--accent); }
.kv .v.price .cny { display: inline; margin-left: 8px; font-size: 12px; }
.kv.col { flex-direction: column; gap: 8px; }
.kv.col .k { width: auto; }
.countries { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--surface-2); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: var(--fg-2); }
.sheet-foot { position: sticky; bottom: -18px; background: var(--surface); padding: 12px 0 4px; margin-top: 8px; border-top: 1px solid var(--line); }
.x { position: sticky; top: 0; float: right; margin: -6px -4px 0 8px; z-index: 2; border: 0; background: var(--surface-2); width: 38px; height: 38px; border-radius: 999px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--fg-2); }
.x:hover { color: var(--fg); }

/* ---------- 面板（订单 / 登录 / 续费） ---------- */
.panel { background: var(--surface); border-radius: 22px; padding: 22px 20px; max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); }
.panel h2 { font-size: 19px; font-weight: 700; }
.panel .sub { margin-top: 4px; }
.status-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; }
.dot { width: 9px; height: 9px; border-radius: 999px; flex: none; }
.dot.wait { background: #F08A24; animation: pulse 1.4s infinite; }
.dot.work { background: var(--accent); animation: pulse 1s infinite; }
.dot.ok { background: var(--up); }
.dot.err { background: var(--down); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* 付款 */
.pay-amt { text-align: center; margin: 16px 0 2px; }
.pay-amt .n { font-family: var(--num); font-size: 54px; font-weight: 700; line-height: 1; color: var(--accent); }
.pay-amt .u { font-family: var(--num); font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.pay-hint { text-align: center; color: var(--fg-2); font-size: 13px; margin-bottom: 16px; }
.pay-hint b { color: var(--down); }
.net-label { font-size: 13px; color: var(--fg-2); margin: 4px 0 8px; font-weight: 500; }
.net-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.net-tab {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 10px; cursor: pointer; min-height: 60px; color: var(--fg);
}
.net-tab .net-ico { width: 28px; height: 28px; flex: none; }
.net-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.net-txt b { font-family: var(--num); font-size: 17px; font-weight: 700; }
.net-txt small { color: var(--fg-2); font-size: 12px; }
.net-tab.on[data-net="BEP20"] { border-color: #E3A90B; background: #FFF9E6; }
.net-tab.on[data-net="TRC20"] { border-color: #EF0027; background: #FFF2F4; }
.net-rec { position: absolute; top: -9px; right: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 999px; }
.net-warn { background: var(--sun-soft); color: #6B3A0E; border-radius: 14px; padding: 9px 12px; font-size: 13px; margin: 8px 0; line-height: 1.6; }
.net-warn b { color: var(--down); }
.net-note { background: var(--sun-soft); color: var(--sun); border-radius: 12px; padding: 6px 10px; font-size: 13px; text-align: center; margin: 8px 0; }

.copyrow { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 10px 10px 10px 14px; margin: 8px 0; }
.copyrow > div { flex: 1; min-width: 0; }
.copyrow .lbl { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.copyrow .lbl .net-ico { width: 14px; height: 14px; }
.copyrow .val { font-family: var(--mono); font-size: 14px; word-break: break-all; margin-top: 2px; color: var(--fg); }
.copyrow button { border: 0; background: var(--surface); color: var(--accent); border-radius: 999px; padding: 0 16px; min-height: 36px; font: 600 13px/1 var(--sans); cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(15, 27, 45, .08); }
.copyrow button:hover { background: var(--accent); color: #fff; }
.qr-details { margin: 8px 0; }
.qr-details summary { cursor: pointer; color: var(--fg-2); font-size: 14px; text-align: center; padding: 8px 0; }
.qrbox { display: flex; justify-content: center; margin: 6px 0 8px; }
.qrbox img { width: 200px; height: 200px; border-radius: 14px; background: #fff; padding: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.countdown { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.countdown b { font-family: var(--num); font-size: 20px; color: var(--fg); font-weight: 700; margin-left: 4px; }
.pay-tips { font-size: 13px; color: var(--muted); padding-left: 18px; margin: 14px 0 0; }
.pay-tips li { margin: 5px 0; }
.pay-tips b { color: var(--fg-2); }
.ref-copy { border: 0; background: none; padding: 8px 0; min-height: 36px; color: inherit; font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }

/* 出卡成功：二维码放在登机牌式的蓝框里 */
.big-ok { width: 52px; height: 52px; border-radius: 999px; background: var(--up-soft); color: var(--up); display: grid; place-items: center; margin: 4px auto 10px; font-size: 26px; font-weight: 700; }
.esim-qr { display: flex; justify-content: center; margin: 16px 0 12px; }
.qr-frame { background: linear-gradient(140deg, #3BB3F5, #1F6FEB); padding: 4px; border-radius: 22px; }
.qr-frame img { display: block; width: 240px; height: 240px; padding: 16px; background: #fff; border-radius: 18px; }
.steps { font-size: 13px; color: var(--fg-2); padding-left: 18px; margin: 12px 0; }
.steps li { margin: 5px 0; }
.usage-box { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-size: 14px; }
.usage-bar { height: 8px; background: #DCE5F1; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.usage-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 999px; animation: rot .8s linear infinite; margin: 18px auto; }
@keyframes rot { to { transform: rotate(360deg); } }

/* 用量框里的号码 */
.phone-box { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.phone-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.phone-num { font-family: var(--num); font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: .02em; white-space: nowrap; }
.phone-box .btn.ghost { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(15, 27, 45, .08); }
.phone-box p { margin: 6px 0 0; font-size: 12.5px; }
.phone-box p b { color: var(--fg); }

/* 查订单：本机最近查看 */
.recent { display: flex; flex-direction: column; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.recent a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); min-height: 44px; align-items: center; }
.recent a:last-child { border-bottom: 0; }
.recent a:hover { background: var(--accent-soft); }
.recent .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- 我的卡 ---------- */
.me-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.me-head h1 { font-size: 22px; font-weight: 800; }
.me-head p { margin: 4px 0 0; }
.me-stats { display: flex; gap: 16px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.me-stats b { color: var(--fg); font-family: var(--num); font-size: 16px; font-weight: 700; margin-right: 2px; }
.mc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .mc-list { grid-template-columns: 1fr; } }
.mc-item { background: var(--surface); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; box-shadow: var(--shadow); }
.mc-item h3 { font-size: 15px; font-weight: 700; }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; margin: 0; }
.mc-meta dt { color: var(--muted); }
.mc-meta dd { margin: 0; color: var(--fg-2); min-width: 0; word-break: break-all; }
.mc-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* 续费 */
.renew-pkg { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.renew-pkg .price { font-size: 20px; margin-top: 2px; color: var(--accent); }
.renew-pkg .price .cny { display: inline; margin-left: 6px; }

/* ---------- 提示 ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--fg); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 99; opacity: 0; transition: opacity .2s; max-width: 90vw; text-align: center; pointer-events: none; }
.toast.show { opacity: 1; }
