/* ==========================================================================
   鹰眼中控 · 交易页（购买激活码 / 订单查询）二期改版样式
   --------------------------------------------------------------------------
   依赖：/css/index-new.css 的设计令牌与公共头部、页脚、快捷导航（本文件不重复定义）
   作用域：仅 body.page-pay / body.page-order 生效，不改旧版 /Style/Css/Style.css
   断点：1080（两栏转单栏 + 吸底条）、760（组件转单列、表格转卡片），基准验收宽度 390
   回滚：删掉本页面对本文件的引用即可回到旧样式
   ========================================================================== */

/* 本期新增的语义色与两个缺失令牌，只挂在交易页作用域内，不进全站 :root */
body.page-pay,
body.page-order {
  --radius-sm: 12px;
  --shadow-sm: 0 8px 24px rgba(16, 32, 74, .08);
  --warn: #D64545;
  --warn-soft: #FEF2F2;
  --amber: #B45309;
  --amber-soft: #FFFBEB;
  background: var(--soft);
  color: var(--ink);
}

/* ---------- 购买页主题色：随版本 TAB 切换 ----------
   越狱版 = 品牌蓝（默认），免越狱版 = 绿色（与免越狱落地页同系）。
   所有品牌色一律走 --brand / --brand-rgb / --brand-deep，
   JS 在 body 上切 data-version="jbf" 即整页换色。 */
body.page-pay {
  --brand: #3246fe;
  --brand-2: #4f5efc;
  --brand-deep: #08183F;
  --brand-rgb: 50, 70, 254;
}
body.page-pay[data-version="jbf"] {
  --brand: #07b999;
  --brand-2: #059a80;
  --brand-deep: #064e3b;
  --brand-rgb: 7, 185, 153;
}
/* 例外：页头（sticky，滚动时常驻视野）不随主题变绿——导航 CTA「购买激活码」、
   高亮下划线、汉堡线保持品牌蓝，避免切版本时顶部跟着变色。 */
body.page-pay .site-header {
  --brand: #3246fe;
  --brand-2: #4f5efc;
  --shadow-blue: 0 20px 44px rgba(32, 80, 237, .22);
}
/* logo 染色滤镜是硬编码蓝色矩阵，绿色主题下同样不动 */
body.page-pay[data-version="jbf"] .brand-logo {
  filter: brightness(0) saturate(100%) invert(25%) sepia(98%) saturate(3155%) hue-rotate(224deg) brightness(96%) contrast(95%);
}
/* 换色时给颜色类属性一个过渡，主题切换更顺滑。
   用叠加 transition-property（不写 shorthand）：组件原有的 background/transform
   等 transition 声明在后、优先级更高，会整体胜出，互不干扰。 */
@media (prefers-reduced-motion: no-preference) {
  body.page-pay .crumb a,
  body.page-pay .page-head h1,
  body.page-pay .vs-tabs,
  body.page-pay .version-btn,
  body.page-pay .v-title,
  body.page-pay .v-tag,
  body.page-pay .input,
  body.page-pay .plan,
  body.page-pay .plan-radio,
  body.page-pay .pay,
  body.page-pay .p-check,
  body.page-pay .summary-head .s-version,
  body.page-pay .s-total .t-value,
  body.page-pay .btn-primary,
  body.page-pay .btn-ghost,
  body.page-pay .mobile-bar .mb-total,
  body.page-pay .stepper-hint b {
    transition-property: color, background-color, border-color, box-shadow;
    transition-duration: .25s;
    transition-timing-function: ease;
  }
}

body.page-pay.modal-open,
body.page-order.modal-open { overflow: hidden; }

/* ---------- 页面框架 ---------- */
body.page-pay .page-main,
body.page-order .page-main { padding: 28px 0 72px; }

body.page-pay .crumb,
body.page-order .crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
body.page-pay .crumb a:hover,
body.page-order .crumb a:hover { color: var(--brand); }
body.page-pay .crumb i,
body.page-order .crumb i { font-style: normal; color: #B6C2DA; }

body.page-pay .page-head,
body.page-order .page-head { margin: 14px 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
/* 页头块与主题同宽（容器宽），h1 与副标题左对齐；副标题正文最多 1140px，更宽的部分留白 */
body.page-pay .page-head > div,
body.page-order .page-head > div { flex: 1 1 auto; min-width: 0; }
body.page-pay .page-head h1,
body.page-order .page-head h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.25; color: var(--brand-deep); letter-spacing: -.5px; }
body.page-pay .page-head p,
body.page-order .page-head p { margin: 0; max-width: 1140px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- 版本切换（仅购买页）：分段控件式 TAB，只保留 TAB 本体 ---------- */
.vs-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: rgba(var(--brand-rgb), .1); border: 1px solid rgba(var(--brand-rgb), .25); border-radius: 999px; padding: 5px;
  margin-bottom: 20px;
}
.version-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 8px 18px; width: 100%;
  border: 0; border-radius: 999px; background: transparent;
  cursor: pointer; text-align: center; transition: .18s ease;
}
/* 未选中态保持全彩可读：灰化会让人以为它是废选项 */
.version-btn:hover .v-title { color: var(--brand); }
.version-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.version-btn .v-icon { width: 28px; height: 28px; flex: 0 0 28px; display: flex; align-items: center; justify-content: center; }
.version-btn .v-icon img { width: 28px; height: 28px; display: block; }
.version-btn .v-title { font-size: 16px; font-weight: 900; color: var(--ink); line-height: 1.2; transition: .18s ease; }
/* 选中态：整段品牌色实心、白字，TAB 感最强 */
.version-btn.is-active {
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(var(--brand-rgb), .3);
}
.version-btn.is-active .v-title { color: #fff; }
.v-tag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.version-btn.is-active .v-tag { background: rgba(255, 255, 255, .22); color: #fff; }

/* 切换版本的即时反馈：选中段轻微弹一下（减少动态效果时不播） */
@keyframes versionPop { 0% { transform: scale(.96); } 100% { transform: scale(1); } }
.version-btn.just-changed { animation: versionPop .22s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .version-btn.just-changed { animation: none; }
}

/* ---------- 两栏布局：左表单自适应，右摘要固定 380 ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }

/* ---------- 通用卡片与表单字段 ---------- */
body.page-pay .card,
body.page-order .search-card,
body.page-order .result-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
body.page-pay .card { padding: 8px 28px; }

body.page-pay .field {
  padding: 20px 0; border-bottom: 1px solid rgba(var(--brand-rgb), .06);
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px;
}
body.page-pay .field:last-child { border-bottom: 0; }
/* 版本切换后目标版本没有优惠文案时整块隐藏：.field 的 display:grid 会盖掉 [hidden] 的浏览器默认样式 */
body.page-pay .field[hidden] { display: none; }
body.page-pay .field > .label { font-size: 14px; font-weight: 700; color: var(--ink); padding-top: 12px; line-height: 1.4; }
.field .req { color: var(--warn); margin-left: 2px; }
body.page-pay .control,
body.page-order .control { min-width: 0; }

body.page-pay .input,
body.page-order .input {
  width: 100%; height: 48px; padding: 0 14px; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
body.page-pay .input::placeholder,
body.page-order .input::placeholder { color: #A8B4CC; }
body.page-pay .input:hover,
body.page-order .input:hover { border-color: #BFCDF0; }
body.page-pay .input:focus,
body.page-order .input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
body.page-pay .input.is-error,
body.page-order .input.is-error { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }
body.page-pay .input[readonly],
body.page-order .input[readonly] { background: #F7F9FF; color: var(--muted); cursor: not-allowed; }

.hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.error-text { display: none; font-size: 12px; color: var(--warn); margin: 8px 0 0; }
.error-text.show { display: block; }

/* ---------- 价格卡（激活码类型） ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.plan {
  position: relative; display: block; width: 100%; text-align: left; padding: 18px;
  border: 2px solid var(--line); border-radius: var(--radius-md); background: #fff;
  cursor: pointer; transition: .18s ease;
}
.plan:hover { border-color: rgba(var(--brand-rgb), .45); transform: translateY(-1px); }
.plan:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan.is-active { border-color: var(--brand); background: rgba(var(--brand-rgb), .04); }
.plan .plan-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.plan .plan-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; }
.plan .plan-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0; }
.plan.is-active .plan-radio { background: var(--brand); border-color: var(--brand); }
.plan.is-active .plan-radio::after { opacity: 1; }
.plan .plan-price { display: flex; align-items: baseline; gap: 4px; color: var(--brand-deep); }
.plan .plan-price em { font-style: normal; font-size: 13px; }
.plan .plan-price strong { font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }

/* ---------- 优惠活动文案：后台下发内容整段渲染，前端不加工 ---------- */
.promo-note {
  background: #FAFBFF; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 16px; font-size: 13px; line-height: 1.95; color: #2B3A55;
}
.promo-note p { margin: 0 0 8px; }
.promo-note p:last-child { margin-bottom: 0; }

/* ---------- 数量步进器 ---------- */
.stepper-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.stepper button {
  width: 46px; height: 46px; border: 0; background: #fff; cursor: pointer; color: var(--ink);
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.stepper button:hover { background: var(--soft); }
.stepper button:disabled { color: #C9D2E3; cursor: not-allowed; background: #fff; }
.stepper input {
  width: 72px; height: 46px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font-size: 16px; font-weight: 700; color: var(--ink); outline: none; background: #fff;
}
.stepper-hint { font-size: 13px; color: var(--muted); }
.stepper-hint b { color: var(--brand); }

/* ---------- 支付方式 ---------- */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 16px; border: 2px solid var(--line); border-radius: var(--radius-md);
  background: #fff; cursor: pointer; transition: .18s ease;
}
.pay:hover { border-color: rgba(var(--brand-rgb), .45); }
.pay:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pay.is-active { border-color: var(--brand); background: rgba(var(--brand-rgb), .04); }
.pay .p-logo { width: 28px; height: 28px; flex: 0 0 28px; display: flex; align-items: center; justify-content: center; }
.pay .p-logo svg { display: block; width: 100%; height: 100%; }
.pay[data-pay="alipay"] .p-logo { color: #1677FF; }
.pay[data-pay="wechat"] .p-logo { color: #07C160; }
.pay .p-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay .p-name { font-size: 14px; font-weight: 700; }
.pay .p-desc { font-size: 11px; color: var(--muted); }
.pay .p-check { margin-left: auto; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.pay.is-active .p-check { border: 5px solid var(--brand); }

/* ---------- 订单摘要卡 ---------- */
.summary {
  position: sticky; top: 104px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.summary-head { padding: 20px 24px 14px; display: flex; align-items: center; justify-content: space-between; }
.summary-head h2 { margin: 0; font-size: 16px; color: var(--brand-deep); }
.summary-head .s-version { font-size: 12px; font-weight: 700; color: var(--brand); background: rgba(var(--brand-rgb), .08); padding: 4px 9px; border-radius: 999px; }
.summary-body { padding: 0 24px; }
.s-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; padding: 9px 0; color: var(--muted); }
.s-row b { color: var(--ink); font-weight: 600; }
.s-row .s-discount { color: var(--green); font-weight: 700; }
.s-row .s-none { color: var(--muted); font-weight: 500; }
.s-divider { height: 1px; background: #EDF2FF; margin: 8px 0; }
.s-total { padding: 14px 0 4px; }
.s-total .t-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.s-total .t-value { display: flex; align-items: baseline; gap: 4px; color: var(--brand-deep); }
.s-total .t-value em { font-style: normal; font-size: 16px; font-weight: 700; }
.s-total .t-value strong { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.s-total .t-save { font-size: 12px; color: var(--green); background: var(--green-soft); padding: 3px 8px; border-radius: 6px; display: inline-block; margin-top: 8px; }
.summary-foot { padding: 16px 24px 22px; }

/* ---------- 按钮 ---------- */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; border: 0; border-radius: 14px;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 24px rgba(var(--brand-rgb), .28); transition: .18s ease;
}
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.btn-primary:disabled { background: #C9D2E3; box-shadow: none; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 700; cursor: pointer; transition: .18s ease; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px;
  border: 0; border-radius: var(--radius-sm); background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: .18s ease; text-decoration: none;
}
.btn-solid:hover { background: var(--brand-2); }

/* ---------- 支付结果弹窗（四态） ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 24, 63, .55); backdrop-filter: blur(2px);
}
.modal-mask.show { display: flex; animation: payFadeIn .18s ease; }
@keyframes payFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 420px; max-width: 100%; background: #fff;
  border-radius: var(--radius-lg); padding: 32px 28px 24px; text-align: center;
  animation: payPopIn .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes payPopIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: var(--soft); color: var(--muted);
  cursor: pointer; font-size: 16px; line-height: 1;
}
.modal-close:hover { background: var(--soft-2); color: var(--ink); }
.m-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.m-icon svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-icon.info { background: rgba(var(--brand-rgb), .1); color: var(--brand); }
.m-icon.ok { background: var(--green-soft); color: var(--green); }
.m-icon.fail { background: var(--warn-soft); color: var(--warn); }
.m-icon.loading { background: var(--soft-2); color: var(--brand); }
.m-title { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--brand-deep); }
.m-desc { margin: 0 0 6px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.m-desc b { color: var(--ink); }
.m-extra { margin: 10px 0 0; font-size: 12px; color: #94A2BC; line-height: 1.7; }
.m-actions { display: flex; gap: 10px; margin-top: 24px; }
.m-actions .btn-ghost, .m-actions .btn-solid { flex: 1; padding: 0; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(var(--brand-rgb), .18); border-top-color: var(--brand);
  animation: paySpin .8s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }

/* ---------- 订单查询：搜索卡 ---------- */
body.page-order .search-card { padding: 24px 28px; margin-bottom: 18px; }
.search-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.search-field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.search-field .req { color: var(--warn); }
.btn-search {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; min-width: 132px; padding: 0 26px; border: 0; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 20px rgba(var(--brand-rgb), .22); transition: .18s ease;
}
.btn-search:hover { background: var(--brand-2); }
.btn-search:disabled { background: #C9D2E3; box-shadow: none; cursor: wait; }
.btn-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-tip { margin: 14px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.search-tip svg { width: 14px; height: 14px; flex: 0 0 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- 订单查询：结果 ---------- */
.result-head { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #EDF2FF; }
.result-head h2 { margin: 0; font-size: 15px; color: var(--brand-deep); }
.r-count { font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table.orders { width: 100%; border-collapse: collapse; font-size: 13px; }
table.orders thead th {
  background: var(--soft); color: var(--muted); font-weight: 600; font-size: 12px;
  text-align: left; padding: 12px 16px; white-space: nowrap; border-bottom: 1px solid #EDF2FF;
}
table.orders tbody td { padding: 16px; border-bottom: 1px solid #F2F6FF; vertical-align: middle; }
table.orders tbody tr:last-child td { border-bottom: 0; }
table.orders tbody tr:hover td { background: #FAFBFF; }
table.orders thead th:nth-child(2) { width: 96px; }
table.orders thead th:nth-child(3) { width: 140px; }
table.orders thead th:nth-child(4) { width: 84px; }
table.orders thead th:nth-child(5) { width: 148px; }
table.orders thead th:nth-child(6) { width: 148px; }
table.orders thead th:nth-child(7) { width: 96px; }
table.orders thead th:nth-child(8) { width: 148px; }
table.orders tbody td:nth-child(2),
table.orders tbody td:nth-child(3),
table.orders tbody td:nth-child(4),
table.orders tbody td:nth-child(6),
table.orders tbody td:nth-child(7) { white-space: nowrap; }

.order-id { font-family: Consolas, "SF Mono", monospace; font-size: 12px; color: var(--ink); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.tag-year { background: rgba(var(--brand-rgb), .08); color: var(--brand); }
.tag-month { background: var(--soft-2); color: #4B5C7E; }
.tag-ver { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.tag-ver.tag-jbf { border-color: #BFD9CC; color: #2F7A5C; }
.tag-active { background: var(--green-soft); color: var(--green); }
.tag-unused { background: var(--amber-soft); color: var(--amber); }
.amount { font-weight: 700; color: var(--brand-deep); }
.amount-sub { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.used { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.used .u-total { color: var(--muted); font-weight: 500; }
.used.is-done { color: var(--muted); font-weight: 500; }
.btn-download {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 1px solid rgba(var(--brand-rgb), .3); border-radius: 9px; background: #fff; color: var(--brand);
  font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: .18s ease; text-decoration: none;
}
.btn-download:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-download svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.btn-download:disabled, .btn-download.is-disabled {
  background: #F4F6FE; color: #A6B3CB; border-color: #E4EAF6; cursor: not-allowed; box-shadow: none;
}
.btn-download:disabled:hover, .btn-download.is-disabled:hover { background: #F4F6FE; color: #A6B3CB; border-color: #E4EAF6; }

/* 移动端订单卡片（桌面隐藏，≤760 显示） */
.order-cards { display: none; padding: 4px 16px 16px; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; margin-top: 12px; }
.oc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.oc-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.oc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); padding: 4px 0; }
.oc-row b { color: var(--ink); font-weight: 600; text-align: right; }
.oc-foot { display: flex; align-items: center; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #E3EAFB; }

/* 空态 / 加载 / 错误 */
.state { padding: 64px 24px; text-align: center; }
.state[hidden] { display: none; }
.state-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; background: var(--soft); display: flex; align-items: center; justify-content: center; color: #9AAAC8; }
.state-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.state-icon.is-error { background: var(--warn-soft); color: var(--warn); }
.state h3 { margin: 0 0 8px; font-size: 16px; color: var(--brand-deep); }
.state p { margin: 0 0 20px; font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ---------- 移动端吸底支付条 ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 32, 74, .08);
}
.mobile-bar .mb-info { flex: 1; min-width: 0; }
.mobile-bar .mb-total { font-size: 20px; font-weight: 800; color: var(--brand-deep); line-height: 1.2; }
.mobile-bar .mb-sub { font-size: 11px; color: var(--muted); }
.mobile-bar .btn-primary { width: auto; min-width: 132px; height: 46px; padding: 0 20px; font-size: 15px; }

/* ---------- 响应式：1080 以下单栏 + 吸底条 ---------- */
@media (max-width: 1080px) {
  body.page-pay .layout { grid-template-columns: 1fr; }
  body.page-pay .summary { position: static; }
  body.page-pay .summary-foot { display: none; }
  body.page-pay .mobile-bar { display: flex; }
  body.page-pay .page-main { padding-bottom: 96px; }
}

/* ---------- 响应式：760 以下组件转单列、表格转卡片 ---------- */
@media (max-width: 760px) {
  body.page-pay .container, body.page-order .container { width: calc(100% - 32px); }
  body.page-pay .nav-wrap, body.page-order .nav-wrap { height: 68px; }
  body.page-pay .page-head h1, body.page-order .page-head h1 { font-size: 26px; }
  body.page-pay .page-head, body.page-order .page-head { margin-bottom: 18px; }

  .vs-tabs { gap: 4px; padding: 4px; margin-bottom: 16px; }
  .version-btn { min-height: 46px; padding: 7px 10px; gap: 7px; }
  .version-btn .v-icon { width: 24px; height: 24px; flex: 0 0 24px; }
  .version-btn .v-icon img { width: 24px; height: 24px; }
  .version-btn .v-title { font-size: 14px; }
  .version-btn .v-tag { display: none; }

  body.page-pay .card { padding: 4px 18px; border-radius: 18px; }
  body.page-pay .field { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  body.page-pay .field > .label { padding-top: 0; }
  .plan-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 12px; }
  .pay-grid { grid-template-columns: 1fr; }

  body.page-order .search-card { padding: 18px; }
  .search-grid { grid-template-columns: 1fr; }
  .btn-search { width: 100%; }
  .table-wrap { display: none; }
  .order-cards { display: block; }

  .modal { padding: 26px 18px 20px; }
  .m-actions { flex-direction: column; }
  body.page-pay .site-footer, body.page-order .site-footer { padding: 32px 0; font-size: 12px; }
}

/* ---------- 工具类 ---------- */
body.page-pay .sr-only,
body.page-order .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 减少动态效果：取消位移与缩放，只保留透明度变化（UX 规范 293 / 验收 12） ---------- */
@media (prefers-reduced-motion: reduce) {
  /* 弹窗进出场：去掉 translateY / scale，仅留淡入淡出 */
  .modal { animation: payFadeOnly .18s ease; }
  @keyframes payFadeOnly { from { opacity: 0; } to { opacity: 1; } }
  .modal-mask.show { animation: payFadeOnly .18s ease; }

  /* 悬停位移与卡片浮起取消 */
  .btn-primary:hover, .plan:hover { transform: none; }

  /* 金额数字过渡改为直接替换（由 pay.js 读取该媒体查询后跳过补间） */
  .s-total .t-value strong { transition: none; }

  /* 加载指示器仍需可感知，降为分步旋转而非平滑动画 */
  .spinner { animation: paySpin 1.6s steps(8) infinite; }
}

@media print {
  body.page-pay .fixed-nav, body.page-order .fixed-nav,
  body.page-pay .mobile-bar, body.page-order .modal-mask { display: none; }
  body.page-pay, body.page-order { background: #fff; }
}