:root {
  --mc-red: #c82333;
  --mc-red-dark: #941a28;
  --mc-gold: #d4af37;
  --mc-ink: #222;
  --mc-muted: #737780;
  --mc-line: #ebe5d7;
  --mc-bg: #f7f8fa;
}

.mc-page *, .mc-overlay *, .mc-toast { box-sizing: border-box; }
body.mc-standalone {
  margin: 0;
  min-height: 100vh;
  color: var(--mc-ink);
  background: var(--mc-bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.mc-page button, .mc-page input, .mc-overlay button, .mc-overlay input { font: inherit; }
.mc-page button, .mc-overlay button { cursor: pointer; }
.mc-page { min-height: 100vh; padding-bottom: 42px; }
.mc-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(212,175,55,.22);
  backdrop-filter: blur(10px);
}
.mc-page .mc-nav-back {
  position: absolute;
  left: max(20px, calc((100% - 1240px) / 2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 0;
  line-height: 1;
}
.mc-page .mc-nav-back::before {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border: solid #374151;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(135deg);
  margin-left: 3px;
}
.mc-nav-title { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.mc-gold-divider { height: 2px; background: linear-gradient(90deg,transparent,#d4af37,#f5d76e,#d4af37,transparent); }
.mc-main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.mc-hero { padding: 16px 0 14px; text-align: center; }
.mc-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  padding: 7px 13px;
  border-radius: 999px;
  color: #7b5912;
  background: #fff7dd;
  border: 1px solid #ecd78b;
  font-size: 13px;
}
/* 未登录态：这一格从「状态陈述」变成「转化入口」—— 浅红底红字 + 可点。
   与已登录三态的淡黄底刻意区分：黄色=你现在是什么，红色=你可以去做什么。 */
.mc-current.is-cta {
  color: #e62e2e;
  background: #fef0f0;
  border-color: #f7c9c9;
  font-weight: 600;
  cursor: pointer;
}
.mc-current.is-cta:hover { background: #fde3e3; }
.mc-card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 18px 0 26px; }
.mc-card {
  position: relative;
  min-height: 212px;
  padding: 24px 12px 17px;
  border: 1.5px solid rgba(212,175,55,.32);
  border-radius: 15px;
  color: #555;
  background: linear-gradient(160deg,#fff9e6,#fff);
  text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.mc-card:hover { transform: translateY(-3px); border-color: rgba(200,35,51,.55); }
.mc-card.is-selected { border: 2px solid var(--mc-red); background: linear-gradient(160deg,#fff0f0,#ffe3e3); box-shadow: 0 10px 28px rgba(200,35,51,.18); transform: translateY(-5px); }
.mc-card.is-ineligible { opacity: .66; }
.mc-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 9px; color: #fff; background: linear-gradient(90deg,var(--mc-red),#e64553); font-size: 11px; font-weight: 700; white-space: nowrap; }
.mc-card-icon { width: 52px; height: 52px; object-fit: contain; }
.mc-card-name { margin-top: 7px; font-size: 16px; font-weight: 700; }
.mc-card-price { margin-top: 8px; color: #383838; font-size: 25px; font-weight: 800; }
.mc-card-price small { font-size: 11px; font-weight: 400; color: #888; }
.mc-card.is-selected .mc-card-name,.mc-card.is-selected .mc-card-price { color: var(--mc-red-dark); }
.mc-origin { min-height: 18px; margin-top: 3px; color: #999; font-size: 11px; text-decoration: line-through; }
.mc-slogan { margin-top: 8px; color: #7f7f7f; font-size: 12px; }
.mc-detail-link { display: inline-block; margin-top: 8px; color: var(--mc-red); font-size: 11px; text-decoration: underline; }
.mc-panel { margin: 0 0 22px; padding: 22px; border: 1px solid rgba(200,35,51,.26); border-radius: 16px; background: linear-gradient(150deg,#fff3f3,#fffafa); }
.mc-panel-head { display: flex; align-items: center; gap: 10px; }
.mc-panel-head h2 { margin: 0; color: var(--mc-red-dark); font-size: 19px; }
.mc-panel-head span { margin-left: auto; color: var(--mc-muted); font-size: 13px; }
.mc-highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 17px; }
.mc-highlight-item { min-height: 68px; padding: 12px; border-radius: 10px; border: 1px solid #f0d6d9; background: rgba(255,255,255,.82); }
.mc-highlight-item strong { display: block; margin-bottom: 5px; color: #4f3336; font-size: 13px; }
.mc-highlight-item span { color: var(--mc-red); font-size: 12px; }
.mc-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.mc-compare { min-width: 0; overflow: hidden; border-radius: 15px; background: #fff; border: 1px solid var(--mc-line); }
.mc-section-head { display: flex; align-items: center; padding: 17px 20px; border-bottom: 1px solid #eee; }
.mc-section-head h2 { margin: 0; font-size: 18px; }
.mc-section-head span { margin-left: auto; color: var(--mc-muted); font-size: 12px; }
.mc-compare-toggle { margin-left: auto; padding: 5px 13px; border: 1px solid var(--mc-red); border-radius: 999px; color: var(--mc-red); background: #fff; font-size: 12px; }
.mc-table-scroll { overflow-x: auto; }
.mc-table { width: 100%; min-width: 950px; border-collapse: collapse; table-layout: fixed; }
.mc-table th,.mc-table td { padding: 12px 8px; border-right: 1px solid #f0f1f3; border-bottom: 1px solid #f0f1f3; text-align: center; font-size: 12px; }
.mc-table th { position: sticky; top: 0; z-index: 2; background: #fffcf2; color: #544522; }
.mc-table th:first-child,.mc-table td:first-child { width: 158px; text-align: left; padding-left: 16px; }
/* 第6/7列=季/年会员：客服文案最长（8/10+字形），给绝对列宽保单行，表格可横向滚动、加宽无感 */
.mc-table th:nth-child(6),.mc-table td:nth-child(6) { width: 126px; }
.mc-table th:nth-child(7),.mc-table td:nth-child(7) { width: 160px; }
.mc-table .is-selected { background: #fff1f2; color: var(--mc-red-dark); font-weight: 600; }
.mc-table-category td { padding: 8px 16px!important; color: #8a6616!important; background: #fff9e7!important; text-align: left!important; font-weight: 700; }
.mc-th-plan { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mc-th-plan img { width: 30px; height: 30px; }
.mc-check { color: #189b55; font-weight: 800; }
.mc-cross { color: #b8bbc1; }
.mc-checkout { position: sticky; top: 80px; padding: 20px; border-radius: 15px; background: #fff; border: 1px solid var(--mc-line); box-shadow: 0 8px 28px rgba(55,42,20,.08); }
.mc-checkout h2 { margin: 0 0 15px; font-size: 18px; }
.mc-checkout-plan { color: #555; font-size: 14px; }
.mc-pay-price { margin: 9px 0 5px; color: var(--mc-red); font-size: 34px; font-weight: 800; }
.mc-pay-price small { font-size: 14px; }
.mc-discount-detail { min-height: 40px; color: #8a6a26; font-size: 12px; line-height: 1.65; }
/* P4 优惠券条：折扣以「券减免」形式展示（PDF 第 2-3 页）。整条可点，进选券弹窗 */
/* ⚠️ 同 .mc-coupon-mask：作者的 display:flex 会压过 [hidden] 的 UA 默认 display:none，
   必须显式补一条 [hidden] 规则，否则「无可用券」时这条券片照样显示。 */
.mc-coupon-bar[hidden] { display: none; }
.mc-coupon-bar { display: flex; align-items: center; gap: 8px; width: 100%; margin: 8px 0 4px;
  padding: 7px 10px; border: 1px solid #f3d9d9; border-radius: 8px; background: #fff6f6;
  color: #d33; font-size: 12px; font-family: inherit; text-align: left; cursor: pointer; }
.mc-coupon-tag { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-coupon-tag em { font-style: normal; opacity: .8; }
.mc-coupon-cut { flex: 0 0 auto; font-weight: 700; }
.mc-coupon-more { flex: 0 0 auto; opacity: .55; }
/* 选券弹窗：底部抽屉（窄屏）/ 居中卡片（宽屏），列表可滚 */
/* ⚠️ 必须 display:none 打底 + .is-open 才 flex（与 .mc-overlay 同一套约定）。
   曾用「display:flex + hidden 属性」控制显隐 —— **作者样式的 display 会压过 [hidden] 的
   UA 默认 display:none**，遮罩虽不可见却铺满全屏拦截所有点击，整个付款页点不动
   （连「确认开通」都点不了），2026-09-06 实测抓到。 */
.mc-coupon-mask { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-end;
  justify-content: center; background: rgba(0,0,0,.45); }
.mc-coupon-mask.is-open { display: flex; }
.mc-coupon-sheet { width: 100%; max-width: 420px; max-height: 76vh; display: flex;
  flex-direction: column; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border-radius: 14px 14px 0 0; background: #fff; }
.mc-coupon-sheet header { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 15px; }
.mc-coupon-sheet header button { border: 0; background: none; color: #999; font-size: 22px;
  line-height: 1; cursor: pointer; }
.mc-coupon-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.mc-coupon-item { display: grid; grid-template-columns: 68px 1fr 22px; align-items: center; gap: 10px;
  padding: 12px 10px; border: 1px solid #eee; border-radius: 9px; background: #fffaf7;
  font-family: inherit; text-align: left; cursor: pointer; }
.mc-coupon-item.on { border-color: #e5a; background: #fff3f3; }
.mc-ci-val { color: #d33; font-size: 19px; font-weight: 800; text-align: center; }
.mc-ci-mid { min-width: 0; }
.mc-ci-mid b { display: block; color: #333; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-ci-mid i { display: block; margin-top: 3px; color: #999; font-size: 12px; font-style: normal; }
.mc-ci-dot { color: #d33; font-size: 15px; text-align: center; }
.mc-coupon-confirm { margin-top: 12px; padding: 11px; border: 0; border-radius: 8px;
  background: #f0ad4e; color: #fff; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; }
.mc-coupon-none { margin-top: 8px; padding: 6px; border: 0; background: none; color: #888;
  font-size: 13px; font-family: inherit; cursor: pointer; }
.mc-coupon-none.on { color: #d33; font-weight: 700; }
@media (min-width: 721px) { .mc-coupon-mask { align-items: center; }
  .mc-coupon-sheet { border-radius: 14px; } }
.mc-agree { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 12px; color: #72757b; font-size: 12px; line-height: 1.55; }
.mc-agree input { margin-top: 2px; accent-color: var(--mc-red); }
.mc-link { padding: 0; border: 0; color: var(--mc-red); background: transparent; text-decoration: underline; }
.mc-pay-button { width: 100%; min-height: 46px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(90deg,var(--mc-red),#e34552); font-weight: 700; }
.mc-pay-button:disabled { cursor: not-allowed; opacity: .55; }
.mc-eligibility { min-height: 20px; margin-top: 9px; color: var(--mc-red); font-size: 12px; text-align: center; }
.mc-loading,.mc-error { padding: 80px 20px; color: #777; text-align: center; }
.mc-error button { margin-top: 15px; padding: 8px 18px; border: 1px solid var(--mc-red); border-radius: 6px; color: var(--mc-red); background: #fff; }
.mc-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(20,15,10,.58); }
.mc-overlay.is-open { display: flex; }
.mc-dialog { position: relative; width: min(440px,100%); max-height: 88vh; overflow: auto; padding: 25px; border-radius: 16px; background: #fff; text-align: center; }
.mc-dialog-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #777; background: #f3f3f3; font-size: 21px; }
.mc-qr-code { display: inline-flex; margin: 15px auto; padding: 12px; background: #fff; border: 1px solid #eee; }
.mc-qr-amount { margin-top: 6px; color: var(--mc-red); font-size: 22px; font-weight: 700; }
.mc-qr-countdown,.mc-qr-tip { color: #777; font-size: 13px; line-height: 1.6; }
.mc-qr-regenerate { padding: 9px 18px; border: 0; border-radius: 7px; color: #fff; background: var(--mc-red); }
.mc-success-mark { color: #159253; font-size: 54px; }
.mc-agreement-content { max-height: 56vh; overflow: auto; text-align: left; white-space: pre-wrap; color: #555; font-size: 13px; line-height: 1.75; }
.mc-toast { position: fixed; left: 50%; bottom: 34px; z-index: 200; transform: translateX(-50%) translateY(20px); padding: 10px 18px; border-radius: 999px; color: #fff; background: rgba(30,30,30,.9); opacity: 0; pointer-events: none; transition: .2s; }
.mc-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mc-newcomer { width: min(390px,100%); padding: 34px 26px 25px; background: linear-gradient(155deg,#fffaf0,#fff1f2); }
.mc-newcomer-icon { font-size: 48px; }
.mc-newcomer h2 { margin: 7px 0; color: var(--mc-red-dark); }
.mc-newcomer p { color: #735e43; line-height: 1.7; }
.mc-newcomer-actions { display: grid; gap: 9px; }
.mc-newcomer-actions button { min-height: 43px; border-radius: 8px; }
.mc-newcomer-buy { border: 0; color: #fff; background: var(--mc-red); font-weight: 700; }
.mc-newcomer-later { border: 1px solid #d9c89c; color: #806722; background: #fff; }

@media (max-width: 900px) {
  .mc-page { padding-bottom: 112px; }
  .mc-nav { height: 48px; }
  .mc-page .mc-nav-back { left: 13px; }
  .mc-nav-title { font-size: 17px; }
  .mc-main { width: 100%; }
  .mc-hero { padding: 12px 16px 5px; }
  .mc-card-scroll { overflow-x: auto; scrollbar-width: none; padding: 18px 0 12px; }
  .mc-card-scroll::-webkit-scrollbar { display: none; }
  .mc-card-grid { display: flex; min-width: max-content; gap: 12px; padding: 0 18px 12px; }
  .mc-card { width: 126px; min-height: 199px; padding: 22px 10px 14px; }
  .mc-card-icon { width: 45px; height: 45px; }
  .mc-panel { margin: 0 14px 16px; padding: 17px 14px; }
  .mc-panel-head h2 { font-size: 16px; }
  .mc-highlight-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mc-content-layout { display: block; }
  .mc-compare { margin: 0 14px; border-radius: 12px; }
  .mc-table { min-width: 860px; }
  .mc-checkout { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; display: grid; grid-template-columns: 1fr 142px; gap: 4px 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-radius: 0; border-width: 1px 0 0; }
  .mc-checkout h2,.mc-checkout-plan { display: none; }
  .mc-checkout-summary { grid-column: 1; grid-row: 1 / 3; align-self: center; min-width: 0; }
  .mc-pay-price { margin: 0; font-size: 27px; }
  .mc-discount-detail { min-height: 18px; max-height: 36px; overflow: hidden; line-height: 1.5; }
  /* P4：窄屏吸附框高度紧张，券条压紧一档；仍在 .mc-checkout-summary 内、不占新的 grid 格 */
  .mc-coupon-bar { margin: 4px 0 0; padding: 5px 8px; gap: 6px; font-size: 11px; }
  .mc-coupon-sheet { max-width: 100%; }
  .mc-agree { grid-column: 1 / -1; grid-row: 3; margin: 2px 0 0; font-size: 10px; }
  .mc-pay-button { grid-column: 2; grid-row: 1 / 3; min-height: 48px; align-self: center; }
  .mc-eligibility { display: none; }
  .mc-section-head { padding: 15px; }
}

/* H5 主站内嵌模式：只作用于 #page-membership，不改变 web 独立 PC 页面。 */
/* 底部预留 = 吸附结算条实高 54px + 2px 缓冲；改结算条内容/间距时要同步这里，否则出死缝或被盖住 */
.mc-embedded { min-height: 100%; padding-bottom: calc(56px + env(safe-area-inset-bottom)); background: var(--mc-bg); }
.mc-embedded .mc-nav { height: 44px; }
.mc-embedded .mc-main { width: 100%; }
.mc-embedded .mc-hero { padding: 5px 10px 1px; }
.mc-embedded .mc-current { margin-top: 0; padding: 4px 9px; font-size: 10px; }
.mc-embedded .mc-card-scroll { overflow-x: auto; padding: 6px 0 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.mc-embedded .mc-card-scroll::-webkit-scrollbar { display: none; }
.mc-embedded .mc-card-grid { display: flex; gap: 6px; min-width: max-content; padding: 0 8px 2px; }
/* 卡片改 grid areas：徽标居左跨两行，右侧「名称/原价删除线」同排；现价/标语/查看权益整宽居中。
   仅 H5 内嵌生效；web 端 DOM 相同但走上方基础规则，版式不变。 */
.mc-embedded .mc-card {
  flex: 0 0 calc((min(100vw, 480px) - 28px) / 3); width: auto; min-height: 0;
  padding: 11px 5px 6px; border-radius: 11px; scroll-snap-align: center;
  display: grid; grid-template-columns: auto auto; justify-content: center;
  align-content: start; column-gap: 3px;
  grid-template-areas: "icon name" "icon origin" "price price" "slogan slogan" "link link";
}
.mc-embedded .mc-card-icon { grid-area: icon; width: clamp(34px, 11vw, 41px); height: auto; align-self: center; }
.mc-embedded .mc-card-name { grid-area: name; margin: 0; align-self: end; text-align: left; font-size: 12px; white-space: nowrap; }
/* ≥5 字形的套餐名（如 3天体验会员）在 1/3 视口宽的卡内放不下 12px，按 §0.5 连续降字号，短名不动 */
.mc-embedded .mc-card-name.mc-name-long { font-size: clamp(8.5px, calc(6vw - 11px), 11px); }
.mc-embedded .mc-card-price { grid-area: price; margin-top: 3px; font-size: 18px; }
.mc-embedded .mc-origin { grid-area: origin; min-height: 11px; margin: 0; align-self: start; text-align: left; font-size: 9px; }
.mc-embedded .mc-slogan { grid-area: slogan; margin-top: 2px; font-size: 9px; }
.mc-embedded .mc-detail-link { grid-area: link; justify-self: center; margin-top: 2px; font-size: 9px; }
.mc-embedded .mc-badge { top: -8px; padding: 2px 7px; font-size: 9px; }
.mc-embedded .mc-panel { margin: 0 8px 3px; padding: 6px 8px; border-radius: 11px; }
.mc-embedded .mc-panel-head { gap: 6px; }
.mc-embedded .mc-panel-head h2 { font-size: 13px; }
.mc-embedded .mc-panel-head span { font-size: 10px; }
.mc-embedded .mc-highlight-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; margin-top: 5px; }
.mc-embedded .mc-highlight-item { min-height: 0; padding: 4px 5px; line-height: 1.25; }
.mc-embedded .mc-highlight-item strong { margin-bottom: 1px; font-size: 10px; line-height: 1.25; }
/* span 转块级：inline 行盒会吃到 body 继承的大 line-height，凭空多 ~8px 高 */
.mc-embedded .mc-highlight-item span { display: block; font-size: 10px; line-height: 1.25; }
.mc-embedded .mc-content-layout { display: block; }
.mc-embedded .mc-compare {
  --mc-label-width: clamp(100px, 30vw, 126px);
  --mc-plan-width: calc((min(100vw, 480px) - 16px - var(--mc-label-width)) / 3);
  margin: 0 8px; border-radius: 10px;
}
.mc-embedded .mc-section-head { padding: 3px 10px; }
.mc-embedded .mc-section-head h2 { font-size: 15px; }
/* 按钮压到贴着文字：上下 1px 按用户口径；左右 5px 是 999px 胶囊圆角的几何下限——
   再小圆弧会切到「隐」字（压字属禁止项）。想四边都 1px 需把 border-radius 改小。 */
.mc-embedded .mc-compare-toggle { padding: 1px 5px; font-size: 11px; }
.mc-embedded .mc-table-scroll { overflow-x: auto; scrollbar-width: thin; }
/* 总宽 = 标签列 + 3 个常规套餐列 + 月会员列（80px 下限）+ 季/年两列绝对宽（106+134），与下方 nth-child 列宽规则同口径 */
.mc-embedded .mc-table {
  width: calc(var(--mc-label-width) + (var(--mc-plan-width) * 3) + max(var(--mc-plan-width), 80px) + 240px);
  min-width: calc(var(--mc-label-width) + (var(--mc-plan-width) * 3) + max(var(--mc-plan-width), 80px) + 240px);
  table-layout: fixed;
}
.mc-embedded .mc-table th,.mc-embedded .mc-table td { padding: 4px 5px; font-size: 11px; line-height: 1.3; }
/* 分类行基础规则带 !important（8px 16px），此处必须同带 !important 才盖得住 */
.mc-embedded .mc-table-category td { padding: 3px 10px!important; }
.mc-embedded .mc-table th:first-child,.mc-embedded .mc-table td:first-child {
  position: sticky; left: 0; z-index: 3; width: var(--mc-label-width); min-width: var(--mc-label-width);
  max-width: var(--mc-label-width); padding-left: 10px; background: #fff;
}
.mc-embedded .mc-table th:not(:first-child),.mc-embedded .mc-table td:not(:first-child) {
  width: var(--mc-plan-width); min-width: var(--mc-plan-width); max-width: var(--mc-plan-width);
}
/* 月会员列（第5列）下限 80px：320px 视口下常规列宽 68px 装不下「黄金会员身份」6 字形 */
.mc-embedded .mc-table th:nth-child(5),.mc-embedded .mc-table td:nth-child(5) {
  width: max(var(--mc-plan-width), 80px); min-width: max(var(--mc-plan-width), 80px); max-width: max(var(--mc-plan-width), 80px);
}
/* 季/年会员列（第6/7列）绝对宽：11px 字号下客服长文案分别需 ~95/123px，与视口无关 */
.mc-embedded .mc-table th:nth-child(6),.mc-embedded .mc-table td:nth-child(6) {
  width: 106px; min-width: 106px; max-width: 106px;
}
.mc-embedded .mc-table th:nth-child(7),.mc-embedded .mc-table td:nth-child(7) {
  width: 134px; min-width: 134px; max-width: 134px;
}
.mc-embedded .mc-table thead th { top: 0; z-index: 4; }
.mc-embedded .mc-table thead th:first-child { z-index: 6; background: #fffcf2; }
.mc-embedded .mc-table-category td:first-child { z-index: 5; background: #fff9e7!important; }
.mc-embedded .mc-table-category td:last-child { background: #fff9e7!important; }
.mc-embedded .mc-th-plan { gap: 3px; }
.mc-embedded .mc-th-plan img { width: 26px; height: 26px; }
.mc-embedded .mc-checkout {
  position: fixed; left: 50%; right: auto; bottom: 0; top: auto; z-index: 40;
  width: min(100%,480px); transform: translateX(-50%); display: grid;
  grid-template-columns: minmax(0,1fr) 38px; grid-template-rows: auto auto;
  gap: 2px 5px; padding: 5px 6px calc(6px + env(safe-area-inset-bottom));
  padding-left: calc(10px + env(safe-area-inset-left));
  border-radius: 0; border-width: 1px 0 0;
}
.mc-embedded .mc-checkout h2 { display: none; }
.mc-embedded .mc-checkout-summary {
  grid-column: 1; grid-row: 1; min-width: 0; display: flex; align-items: baseline; gap: 4px; white-space: nowrap;
}
.mc-embedded .mc-checkout-plan { display: block; flex: 0 0 auto; font-size: 11px; }
.mc-embedded .mc-pay-price { flex: 0 0 auto; margin: 0; font-size: 19px; line-height: 1.1; }
.mc-embedded .mc-pay-price small { font-size: 9px; }
/* 券条：320px 是最紧的一档（实测券名不被省略的上限 9.25px），故下限取 9px 留余量，
   宽屏随 vw 回升到 11px。min-width:0 是兜底 —— 券名带倒计时时先省略券名，保住减免金额。 */
.mc-embedded .mc-coupon-bar { min-width: 0; margin: 0; padding: 4px 6px; gap: 4px;
  font-size: clamp(9px, calc(1.25vw + 5px), 11px); }
.mc-embedded .mc-discount-detail {
  min-width: 0; min-height: 0; margin-left: 2px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: #8a6a26; font-size: 9px; line-height: 1.2;
}
.mc-embedded .mc-agree { grid-column: 1; grid-row: 2; margin: 0; align-items: center; gap: 4px; white-space: nowrap; font-size: 9px; line-height: 1.25; }
.mc-embedded .mc-agree input { margin: 0; }
/* 按钮宽度压到「比两字略宽」（列宽 38px，文字到边缘约 6px）—— 这一行宽度方向内容多，
   省下的都留给券文案。4 字文案由 JS 在 2 字处插入换行符严格断成 2+2，
   这里用 pre-line 让该换行符生效（普通空白仍折叠）。 */
.mc-embedded .mc-pay-button { grid-column: 2; grid-row: 1 / 3; min-height: 42px; align-self: stretch;
  padding: 0 3px; font-size: 13px; white-space: pre-line; line-height: 1.18; }
.mc-embedded .mc-eligibility { display: none; }
