/* /cx/login/ 专用覆盖：复用上级 styles.css 的设计 tokens */

/* 登录页整体放宽：页头/主体与页脚统一 1100px，两侧留白更少。
   只覆盖本页，官网共享 .container 仍是 940px 不动。 */
.container {
  max-width: 1100px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-link:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.nav-link--active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.22);
}

/* 「查订单」「登录网页」搬进页头后仍由 setTab() 控制 .is-active：
   当前正在看哪个面板，就让对应的页头按钮跟 .nav-link--active 一样亮起来。 */
.header-nav .nav-link.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.22);
}

/* 「我的账户」双标签（§44.6）：≤560px 显示短标签「账户」——四入口在 344px
   一行放下是 §11.4 红线，长标签比原「查订单」多一个字，窄屏必须让位 */
.nav-label-short { display: none; }

/* 登录态徽标：金额胶囊（>720px）/ 绿点（≤720px 或零余额）。未登录 hidden。 */
.nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.nav-badge--dot {
  padding: 0;
  width: 7px;
  height: 7px;
  background: #10b981;
}

@media (max-width: 720px) {
  /* 窄中屏金额胶囊会把四入口挤折行：一律降级为绿点（内容由 app.js 清空） */
  .nav-badge {
    padding: 0;
    width: 7px;
    height: 7px;
    background: #10b981;
    color: transparent;
    overflow: hidden;
  }
}

.nav-link--cta {
  color: #fff;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
  border-color: transparent;
  background: linear-gradient(135deg, #ff5000, #ff6a00);
  box-shadow: 0 8px 18px rgba(255, 80, 0, 0.32);
}

.nav-link--cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #e84700, #ff5000);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(255, 80, 0, 0.4);
}

/* 页头从 3 个入口增到 4 个（含「查订单」「登录网页」）后变宽，880px 以下提前换行，
   避免比下方 .tab-bar 自己的 720px 断点更早在按钮内部生硬断行。 */
@media (max-width: 880px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* 手机页头：四个入口挤在第二行时，按钮内的中文被压折成两行（「联系客\n服」）。
   文字禁止折行，让掉图标和多余留白——名字比图标重要。 */
@media (max-width: 560px) {
  .header-inner {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 6px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .header-nav {
    gap: 4px;
  }

  .header-nav .nav-link {
    font-size: 12px;
    padding: 6px 8px;
    gap: 3px;
    white-space: nowrap;
  }

  /* 图标在 390px 宽下是压垮骆驼的那几十像素；CTA 的小图标一并让位 */
  .header-nav .nav-link svg {
    display: none;
  }

  .header-nav .nav-link--cta {
    padding: 7px 10px;
  }

  /* 「我的账户」→「账户」：红线是 344px 四入口一行放下（§11.4） */
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
}

/* 流程引导 + Tab 合成一块：一眼读成「两步主线 + 辅助查单」 */
.tab-shell {
  margin: 2px 0 20px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(14, 165, 233, 0.07), transparent 50%),
    linear-gradient(180deg, #f4f8ff 0%, #eef3fb 100%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.07);
}

/* 催上号：缺货时买家喊商家补货（docs §38）。
   曾与侧边推广位 #sideAd 相邻，推广位 2026-08-11 下线（运维 §34.18）。 */
.urge-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  /* 已挪进商城面板（购买须知之后），负上边距的旧贴 Tab 壳布局勿回退 */
  margin: 10px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8f2 0%, #fffdfb 100%);
}

/* 下面的 display:flex 会盖掉 hidden 属性的 UA 默认样式，必须显式再关一次 */
.urge-bar.hidden,
.urge-bar[hidden] {
  display: none;
}

.urge-icon {
  display: inline-flex;
  color: #ea580c;
}

.urge-copy {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.urge-select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
}

.urge-btn {
  padding: 7px 16px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.urge-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.26);
}

.urge-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.urge-status {
  font-size: 12.5px;
  color: var(--muted);
}

.urge-status.is-ok {
  color: #0f766e;
  font-weight: 600;
}

.urge-status.is-bad {
  color: #b91c1c;
}

@media (max-width: 560px) {
  .urge-bar {
    gap: 8px;
  }

  .urge-copy {
    width: 100%;
  }
}

.flow-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 8px;
  flex-wrap: wrap;
}

.flow-guide-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.35;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.flow-guide-path {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.flow-guide-sep {
  display: inline-block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.25), var(--blue));
  position: relative;
}

.flow-guide-sep::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 2px solid var(--blue);
  border-top: 2px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
}

.flow-guide-hint {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}

/* 桌面三卡等宽：第一步 / 第二步 / 邮箱收验证码。
   .tab-bar 三列 1fr；.tab-main-flow 跨前两列再 1fr/1fr 均分，且内外 gap 同为 8px，
   这样每张卡宽度精确相等（见 §34.8）。箭头绝对定位叠在两步缝隙上，不占列宽。 */
.tab-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.tab-main-flow {
  grid-column: 1 / span 2;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 8px; /* 必须与 .tab-bar 的 gap 相同，否则两步卡会比第三张窄一截 */
  position: relative;
}

.tab-main-flow .tab-btn {
  min-width: 0;
  width: 100%;
}

/* 现在只装「邮箱收验证码」一张卡（原来两张辅助 tab 已搬进页头）；
   与两步卡等宽并排，不再用左边框/左 padding 人为缩窄。 */
.tab-aux-group {
  grid-column: 3;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.tab-aux-group .tab-btn {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.tab-btn {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 11px;
  padding: 10px 12px;
  min-height: 60px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

/* 底部细指示条：未选中时透明，选中时滑入 */
.tab-btn::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.tab-btn:hover {
  color: var(--ink);
  background: #fff;
  border-color: rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.1);
}

/* 当前步骤：白底 + 蓝边 + 底部指示条 + 微浮起 */
.tab-btn.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border-color: rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.08),
    0 8px 18px rgba(37, 99, 235, 0.14);
}

.tab-btn.is-active::after {
  transform: scaleX(1);
}

.tab-btn.is-active:hover {
  border-color: rgba(37, 99, 235, 0.5);
}

.tab-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.tab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.tab-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: inherit;
  letter-spacing: 0.01em;
}

.tab-sub {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
}

.tab-btn.is-active .tab-title {
  color: var(--blue-deep);
}

.tab-btn.is-active .tab-sub {
  color: var(--ink);
}

/* 1 → 2 之间的流程箭头：短线 + 箭头头，比纯文字更像「下一步」 */
/* 叠在两步卡缝隙正中，不进 grid 自动排布（position:absolute 的网格子项不占格子），
   这样 1fr/1fr 两列才真正等宽、也才跟第三张外链卡等宽。 */
.tab-flow-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: rgba(37, 99, 235, 0.55);
  user-select: none;
  pointer-events: none;
}

.tab-flow-line {
  display: none;
}

.tab-flow-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  animation: tabFlowNudge 1.8s ease-in-out infinite;
}

@keyframes tabFlowNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

/* 这里现在只剩「邮箱收验证码」一张卡（原「查订单/登录网页」已搬进页头），
   仍复用 .tab-btn--aux 的灰色辅助视觉，跟两步主线区分主次 */
.tab-btn--aux {
  min-width: 0;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  background: rgba(248, 250, 253, 0.9);
  border-color: rgba(93, 107, 130, 0.12);
}

/* 这张卡现在是 <a> 不是 <button>，浏览器默认下划线，文字都包在 span 里显式关掉即可 */
.tab-btn--link {
  text-decoration: none;
}

.tab-btn--aux::after {
  background: linear-gradient(90deg, var(--muted), var(--faint));
}

/* 分组容器已负责分隔，旧版每张辅助卡的伪元素竖线必须关闭。 */
.tab-btn--aux::before {
  display: none;
}

/* .tab-step--aux 要压过基础 .tab-step 的蓝色配色：多带一个 .tab-btn 抬高特异性，
   不依赖书写顺序。这张卡是普通链接、不会有 .is-active，只需要这一条默认灰色态。 */
.tab-btn.tab-btn--aux .tab-step--aux {
  background: rgba(93, 107, 130, 0.1);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(93, 107, 130, 0.16);
}

.tab-btn--aux:hover {
  border-color: rgba(93, 107, 130, 0.28);
  box-shadow: 0 6px 14px rgba(15, 30, 51, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .tab-btn:hover,
  .tab-btn.is-active {
    transform: none;
  }

  .tab-flow-chevron,
  .tab-btn.is-active .tab-step {
    animation: none;
  }
}

/* ---------- 我的订单（邮箱验证码登录） ---------- */
.account-privacy-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.account-send-btn {
  width: 100%;
}

.account-code-row {
  margin-top: 14px;
}

.account-code-row .field-input {
  letter-spacing: 0.4em;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.account-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  /* 左侧头像徽章（纯 CSS ::before，无需 JS）：登录后的区域要有「账户中心」的脸 */
  position: relative;
  padding-left: 48px;
  justify-content: center;
  min-height: 38px;
}

.account-who::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.2' r='3.6'/%3E%3Cpath d='M4.5 20.4c.8-3.6 4-5.4 7.5-5.4s6.7 1.8 7.5 5.4'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #2563eb, #0ea5e9);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px, cover;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.account-who-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.account-who-email {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.account-head-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.account-orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.account-orders-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-orders-search {
  flex: 1;
  min-width: 160px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
}

.account-orders-search:focus,
.account-orders-filter:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.account-orders-filter {
  flex: none;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
}

.account-orders-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-orders-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.account-order-day {
  margin-bottom: -4px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--faint);
  /* 分隔线拉通：日期像书签而不是一行孤字 */
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-order-day::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.account-order-payload {
  margin-top: 8px;
}

.account-order {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.account-order:hover {
  border-color: #c7d6f7;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.account-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.account-order-spec {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  min-width: 0;
}

.account-order-badge {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
}

.account-order-badge.is-ok {
  color: #fff;
  background: var(--ok);
}

.account-order-meta {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint);
  word-break: break-all;
  /* 内容全是订单号/金额/时间：等宽数字纵向可对齐、订单号更易逐字核对 */
  font-family: var(--mono);
}

.account-order-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--warn);
  /* 提醒块化（退款/人工发货/留存期清除都走这类）：一眼与普通说明区分 */
  display: inline-block;
  padding: 5px 10px;
  background: #fff7e6;
  border-radius: 8px;
}

/* ----- 有货提醒管理（查订单登录后） ----- */
/* ---------- 我的余额 + 直充（§44） ---------- */
.account-balance-box {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d7e3fb;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef4ff 0%, #f7fbff 55%, #fff 100%);
}

/* 钱包图标（纯 CSS）：让余额卡在一排卡片里有自己的脸 */
.account-balance-title::before {
  content: "";
  display: inline-block;
  vertical-align: -3px;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='13' rx='2.5'/%3E%3Cpath d='M16 12.5h3'/%3E%3Cpath d='M2.5 9.5h19'/%3E%3C/svg%3E") center/contain no-repeat;
}

.account-balance-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-balance-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #667085);
}

.account-balance-amount {
  font-size: 22px;
  font-weight: 800;
  color: #2f6bff;
  font-variant-numeric: tabular-nums;
  margin-right: auto;
}

.account-ledger {
  margin-top: 10px;
  border-top: 1px dashed #d3dbe8;
  padding-top: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.account-ledger-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--ink, #0f1e33);
}

.account-ledger-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-ledger-delta {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.account-ledger-delta.is-in { color: #059669; }
.account-ledger-delta.is-out { color: #dc2626; }

.account-ledger-when {
  color: var(--faint, #98a2b3);
  font-size: 11.5px;
  white-space: nowrap;
}

.account-topup {
  margin-top: 10px;
  border-top: 1px dashed #d3dbe8;
  padding-top: 10px;
}

.account-topup-amounts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-topup-pill {
  padding: 7px 14px;
  border: 1.5px solid var(--line, #e6ebf3);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted, #667085);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.account-topup-pill.is-active {
  border-color: #2f6bff;
  color: #2f6bff;
  background: rgba(47, 107, 255, 0.06);
}

/* 双类提特异性：.field-input 基类（18px 大输入框）定义在文件更靠后，
   同特异性会反过来把这里盖掉——金额输入必须跟旁边的 pill 一个高度 */
.account-topup-amounts .account-topup-custom {
  width: 150px;
  min-height: 0;
  padding: 7px 12px;
  font-size: 14px;
  border-radius: 999px;
}

.account-topup-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.account-topup .shop-qrcode {
  margin-top: 10px;
}

.account-watch-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7faff 0%, #fdfeff 100%);
}

.account-watch-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.account-watch-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.account-watch-title svg { color: var(--blue); }

.account-watch-sub {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.account-watch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-watch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e6ebf3);
  border-radius: 11px;
  background: #fff;
}

.account-watch-item.is-active {
  border-color: rgba(5, 150, 105, 0.35);
  background: #f6fdf9;
}

.account-watch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.account-watch-desc {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.account-watch-meta {
  font-size: 11.5px;
  color: var(--muted);
}

.account-watch-toggle {
  flex: none;
}

.account-watch-toggle.is-on {
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.4);
}

.account-order textarea {
  margin-top: 10px;
}

.account-order-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.shop-email-required {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 6px;
  line-height: 1.5;
}

/* ---------- 账号额度查询（低调、默认折叠） ---------- */
.usage-check {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.usage-summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  padding: 2px 0;
  transition: color 0.15s ease;
}

.usage-summary::-webkit-details-marker {
  display: none;
}

.usage-summary::before {
  content: "▸ ";
  color: var(--faint);
}

.usage-check[open] > .usage-summary::before {
  content: "▾ ";
}

.usage-summary:hover {
  color: var(--muted);
}

.usage-body {
  margin-top: 10px;
}

.ide-browser-fallback > .usage-summary {
  color: var(--blue);
}

.ide-browser-note {
  margin-bottom: 12px;
}

.ide-browser-steps {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.ide-browser-steps li + li {
  margin-top: 5px;
}

.ide-browser-steps a {
  color: var(--blue);
  font-weight: 700;
}

.ide-browser-steps code,
.ide-browser-steps kbd {
  font-family: var(--mono);
  font-size: 11.5px;
}

.ide-script-block {
  margin-bottom: 0;
}

.browser-fallback-link {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.usage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.usage-sub {
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint);
}

.usage-premium {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.usage-premium input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.usage-btn {
  width: 100%;
}

.usage-result {
  margin-top: 12px;
}

.usage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.usage-time {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.usage-record {
  font-size: 11.5px;
  color: var(--faint);
}

.usage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.usage-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.usage-card-k {
  font-size: 11.5px;
  color: var(--muted);
}

.usage-card-v {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  word-break: break-all;
}

.usage-account {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  word-break: break-all;
}

.usage-detail {
  margin-top: 12px;
}

.usage-detail > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.usage-detail > summary::-webkit-details-marker {
  display: none;
}

.usage-detail-count {
  font-weight: 600;
  color: var(--faint);
}

.usage-table-wrap {
  margin-top: 8px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.usage-table th,
.usage-table td {
  padding: 7px 8px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.usage-table th {
  position: sticky;
  top: 0;
  background: var(--surface);
  font-weight: 700;
  color: var(--muted);
  z-index: 1;
}

.usage-table td {
  color: var(--ink);
}

.usage-table tr:last-child td {
  border-bottom: none;
}

.usage-table .uk-included {
  color: #047857;
  font-weight: 700;
}

.usage-table .uk-overage {
  color: #b91c1c;
  font-weight: 700;
}

.usage-table .uk-error {
  color: var(--faint);
}

.tab-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tab-btn.is-active .tab-step {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.12),
    0 3px 10px rgba(37, 99, 235, 0.35);
  animation: tabStepPulse 2.2s ease-in-out infinite;
}

@keyframes tabStepPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(37, 99, 235, 0.12),
      0 3px 10px rgba(37, 99, 235, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(37, 99, 235, 0.08),
      0 3px 12px rgba(37, 99, 235, 0.4);
  }
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}

.login-card {
  text-align: left;
  margin-bottom: 36px;
  padding: 0;
  overflow: visible;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(14, 165, 233, 0.25), rgba(226, 232, 240, 0.9)) border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 1px 2px rgba(15, 30, 51, 0.04),
    0 18px 40px rgba(37, 99, 235, 0.07);
  /* fill-mode 必须是 backwards 而非 both/forwards：both 会在动画结束后永久保留
     to 帧的 transform: translateY(0)，而 transform 非 none 的祖先会劫持后代
     position:fixed 的定位基准（2026-08-11 实测踩坑：当时面板内的悬浮推广卡在
     ≥1540px 从「贴视口右缘」变成「压在商品列表上」；推广位现已下线，但这条规则
     保护将来任何进面板的 fixed 元素）。backwards 动画结束回到静态样式（无
     transform），视觉与 both 完全一样。 */
  animation: loginCardIn 0.45s ease backwards;
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.shop-buy-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-left: 3px solid #dc2626;
  border-radius: 10px;
  background: #fff7f7;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.shop-buy-notice strong {
  color: #dc2626;
  font-weight: 800;
}

/* 页头「联系客服」：button 复用 nav-link 视觉 + 扫码弹层 */
.nav-link--btn {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.support-modal.hidden {
  display: none;
}

.support-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 51, 0.55);
}

.support-modal-card {
  position: relative;
  width: min(340px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 22px 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 30, 51, 0.35);
  text-align: center;
}

.support-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.support-modal-close:hover {
  color: var(--ink);
  background: rgba(15, 30, 51, 0.06);
}

.support-modal-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.support-modal-qr {
  width: 230px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.support-modal-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.support-modal-account code {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.support-modal-hours {
  margin: 14px 0 0;
  padding: 12px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef6ff 0%, #f7fbff 100%);
  border: 1px solid rgba(37, 99, 235, 0.16);
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}

.support-modal-hours-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.support-modal-hours-time {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.support-modal-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- 购买确认弹窗（替换原生 confirm，§44.6） ---------- */
.shop-confirm-card {
  width: min(430px, 92vw);
  text-align: left;
  animation: shopConfirmIn 0.18s ease-out;
}

@keyframes shopConfirmIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.shop-confirm-spec {
  margin: 10px 0 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface, #f7faff);
  border: 1px solid var(--line, #e6ebf3);
  border-radius: 10px;
  word-break: break-all;
}

.shop-confirm-rows {
  display: flex;
  flex-direction: column;
}

.shop-confirm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line, #e6ebf3);
  font-size: 13px;
}

.shop-confirm-row:last-child { border-bottom: none; }

.shop-confirm-row .k {
  flex: none;
  color: var(--muted, #667085);
}

.shop-confirm-row .v {
  text-align: right;
  font-weight: 600;
  color: var(--ink, #0f1e33);
  word-break: break-all;
}

/* 首行是支付金额：整个弹窗里最该被看到的数字 */
.shop-confirm-row--price .v {
  font-size: 20px;
  font-weight: 800;
  color: #2f6bff;
  font-variant-numeric: tabular-nums;
}

.shop-confirm-note {
  margin: 10px 0 0;
  padding: 8px 11px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--warn, #b45309);
  background: #fff7e6;
  border-radius: 8px;
  white-space: pre-line; /* 共享号/场次多条提示按行分隔 */
}

.shop-confirm-terms {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint, #98a2b3);
}

.shop-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.shop-confirm-actions .btn-ghost {
  padding: 10px 18px;
  flex: none;
  white-space: nowrap; /* 375px 下不许把「取消」压成竖排两行 */
}

.shop-confirm-ok {
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 10px;
  justify-content: center;
  white-space: nowrap;
}

/* 「从剪贴板自动识别」：kicker 同行按钮 + 识别结果状态行 */
.panel-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}
.panel-kicker-row .panel-kicker {
  margin: 0;
}
.clip-fill-status {
  margin: -8px 0 12px;
}
.clip-fill-status:empty {
  display: none;
}

/* 视频教程入口：后台填了链接才显示（app.js 拉 /site-links 后解除 hidden） */
.video-tutorial-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 14px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-tutorial-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.36);
  color: #fff;
}
.video-tutorial-link.hidden,
.video-tutorial-link[hidden] {
  display: none;
}

.steps-panel {
  padding: 22px 24px 20px;
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

/* 商城 Tab：购买说明在「选择规格并支付」下方，分隔线改到顶边 */
#panelShop .steps-panel {
  border-bottom: none;
  border-top: 1px solid var(--line);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.steps-list > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  position: relative;
  padding: 0 0 18px;
  animation: stepIn 0.4s ease both;
}

.steps-list > li:nth-child(1) { animation-delay: 0.05s; }
.steps-list > li:nth-child(2) { animation-delay: 0.12s; }
.steps-list > li:nth-child(3) { animation-delay: 0.19s; }

.steps-list > li:last-child {
  padding-bottom: 0;
}

.steps-list > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.35), rgba(14, 165, 233, 0.08));
  border-radius: 2px;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.steps-list .step-no {
  width: 28px;
  height: 28px;
  margin-top: 0;
  position: relative;
  z-index: 1;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
  min-width: 0;
}

.step-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.step-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.step-desc--alert {
  display: block;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(180, 83, 9, 0.45);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
  animation: stepAlertFlash 1.1s ease-in-out infinite;
}

@keyframes stepAlertFlash {
  0%,
  100% {
    color: #b45309;
    background: #fef4e6;
    border-color: rgba(180, 83, 9, 0.45);
    box-shadow: 0 0 0 transparent;
    opacity: 1;
  }
  45% {
    color: #92400e;
    background: #ffedd5;
    border-color: rgba(146, 64, 14, 0.6);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
    opacity: 0.88;
  }
  55% {
    color: #d97706;
    background: #fef3c7;
    border-color: rgba(217, 119, 6, 0.75);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-desc--alert {
    animation: none;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.steps-list a {
  color: var(--blue);
  font-weight: 600;
  word-break: break-all;
}

.shop-support {
  margin: 18px 0 0 40px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.shop-support[open] {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.shop-support > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.shop-support > summary::-webkit-details-marker {
  display: none;
}

.shop-support > summary::after {
  content: "查看二维码";
  flex: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.shop-support[open] > summary::after {
  content: "收起";
}

.shop-support > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
  border-radius: 10px;
}

.shop-support-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.shop-support-qr-link {
  display: grid;
  flex: none;
  gap: 6px;
  width: 190px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.shop-support-qr {
  display: block;
  box-sizing: border-box;
  width: 190px;
  height: 216px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.shop-support-info {
  min-width: 0;
}

.shop-support-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.shop-support-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-support-account code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
}

.shop-copy-wechat {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.shop-copy-wechat:hover {
  border-color: var(--blue);
}

.shop-support-note {
  margin: 10px 0 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.form-panel {
  padding: 22px 24px 24px;
  background: #fff;
}

.field-block {
  margin-bottom: 18px;
}

.field-block .field-status {
  margin-bottom: 0;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.field-label-row .field-label {
  margin: 0;
}

.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
}

.help-tip-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.help-tip-btn:hover,
.help-tip-btn:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-soft);
  outline: none;
}

.help-tip-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: min(360px, calc(100vw - 48px));
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  z-index: 40;
}

.help-tip-pop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 1px 0 var(--line-strong));
}

.help-tip:hover .help-tip-pop,
.help-tip:focus-within .help-tip-pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.help-tip-heading {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.help-tip-block + .help-tip-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.help-tip-block strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  color: var(--ink);
}

.help-tip-block p,
.help-tip-block ol {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.help-tip-block ol {
  padding-left: 18px;
}

.field-input {
  display: block;
  width: 100%;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfdff, #ffffff);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 14px;
  resize: vertical;
  outline: none;
  min-height: 88px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field-input:hover {
  border-color: #b8c7e0;
}

.field-input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.field-input--mono {
  background: var(--surface);
  min-height: 110px;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

.field-status {
  min-height: 1.2em;
  margin: 6px 0 0;
  font-size: 12.5px;
}

.field-status.is-ok {
  color: var(--ok);
}

.field-status.is-bad {
  color: var(--danger);
}

.login-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  min-height: 52px;
  letter-spacing: 0.02em;
}

.login-submit svg {
  flex: none;
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  filter: none;
}

.form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  font-size: 13.5px;
  line-height: 1.5;
}

.login-success {
  margin-top: 18px;
  padding: 22px 16px;
  border-radius: 14px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  background: linear-gradient(180deg, #ecfdf5, #fff 70%);
  text-align: center;
}

.login-success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.login-success-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ok);
}

.login-success-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.notice-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.notice--warn {
  border-color: #f3d5a8;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.notice--info {
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
}

.notice-tag {
  flex: none;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  line-height: 1.3;
}

.notice--warn .notice-tag {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.notice--info .notice-tag {
  background: linear-gradient(135deg, var(--blue), var(--sky));
}

.notice-body strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.notice-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.script-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.script-head .field-label {
  margin: 0;
}

.script-head .btn-secondary.btn-small {
  padding: 8px 14px;
  font-size: 13px;
}

a.login-submit {
  text-decoration: none;
  box-sizing: border-box;
}

.web-open-hint {
  margin-top: 10px;
  text-align: center;
}

#panelWeb .copied-tip {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ok);
  font-weight: 700;
}

#panelIde.login-card,
#panelWeb.login-card {
  overflow: visible;
}

/* 页脚提示拉宽、单行不换行 */
.container--footer-wide {
  max-width: 1100px;
}

.footer-note--nowrap {
  max-width: none;
  white-space: nowrap;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.4;
  padding: 0 8px;
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tab-shell {
    padding: 10px 8px 8px;
    border-radius: 16px;
  }

  .flow-guide {
    margin: 0 2px 8px;
    gap: 8px;
  }

  .flow-guide-hint {
    margin-left: 0;
    flex-basis: 100%;
    font-size: 11.5px;
  }

  .tab-bar {
    gap: 5px;
    padding: 5px;
    grid-template-columns: 1fr;
  }

  .tab-main-flow {
    grid-column: auto; /* 桌面是跨两列；窄屏改单列后取消跨列 */
    gap: 5px;
  }

  .tab-aux-group {
    grid-column: auto;
    gap: 5px;
    padding: 6px 0 0;
    border-top: 1px solid rgba(93, 107, 130, 0.14);
  }

  .tab-btn {
    gap: 8px;
    font-size: 12.5px;
    padding: 10px 9px;
    min-height: 58px;
  }

  .tab-title {
    font-size: 13.5px;
  }

  .tab-sub {
    font-size: 11px;
  }

  .tab-step {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .tab-flow-arrow {
    width: 18px;
  }

  .tab-flow-chevron {
    width: 18px;
    height: 18px;
  }

  .tab-flow-chevron svg {
    width: 12px;
    height: 12px;
  }

  /* 辅助入口（邮箱收验证码）现在只有一张卡，撑满第二行；主流程保持完整的一行。 */
  .tab-btn--aux {
    flex-basis: auto;
    min-width: 0;
    margin-left: 0;
  }

  /* 换行本身已经把辅助入口和主线分开，竖线在这里只会飘在左上角，直接去掉 */
  .tab-btn--aux::before {
    display: none;
  }

  .steps-panel,
  .form-panel {
    padding: 18px 14px;
  }

  .help-tip-pop {
    left: 0;
    transform: translateX(0) translateY(4px);
    width: min(300px, calc(100vw - 64px));
  }

  .help-tip:hover .help-tip-pop,
  .help-tip:focus-within .help-tip-pop {
    transform: translateX(0) translateY(0);
  }

  .help-tip-pop::after {
    left: 10px;
    transform: none;
  }

  .footer-note--nowrap {
    white-space: normal;
    max-width: 100%;
  }
}

/* 页脚「今日 N 人 · M 次」：与备案徽标同一行、同一号字 */
.footer-visits {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
}

/* 上面的 display 会盖掉 hidden 属性的 UA 默认样式，取不到数时必须仍然不占位 */
.footer-visits[hidden] {
  display: none;
}

/* ----- 账号商城 ----- */
.shop-desc {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* 我的订单（本机记录）：入口并进标题行，面板限高内滚。
   老客户能攒到几十笔，早先是整叠展开的卡片，一点开就把分类栏和商品列表顶出屏幕。 */
.shop-myorders-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.shop-myorders-toggle:hover,
.shop-myorders-toggle:focus-visible,
.shop-myorders-toggle[aria-expanded="true"] {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
  outline: none;
}

.shop-myorders-badge {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.shop-myorders-caret {
  transition: transform 0.18s ease;
}

.shop-myorders-toggle[aria-expanded="true"] .shop-myorders-caret {
  transform: rotate(180deg);
}

.shop-myorders {
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.shop-myorders-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.shop-myorders-search {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12.5px;
  /* iOS 会给 type=search 强加圆角胶囊内嵌样式 */
  -webkit-appearance: none;
  appearance: none;
}

.shop-myorders-search:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.shop-myorders-count {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  white-space: nowrap;
}

.shop-myorders-tip {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.shop-myorders-empty {
  margin: 0;
  padding: 14px 12px;
  font-size: 13px;
  color: var(--muted);
}

.shop-myorders-list {
  max-height: min(46vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.shop-myorders-more {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.shop-myorders-more:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* 日期分隔条吸顶，滚到第 30 笔也知道自己在看哪天 */
.shop-myorder-day {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 5px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.shop-myorder {
  border-bottom: 1px solid var(--line);
}

.shop-myorder:last-child {
  border-bottom: none;
}

.shop-myorder.is-open {
  background: #fbfdff;
}

.shop-myorder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
}

.shop-myorder-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 9px 0 9px 12px;
  border: none;
  background: none;
  color: inherit;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}

.shop-myorder-main:hover .shop-myorder-spec {
  color: var(--blue);
}

/* 行尾小箭头：没有 hover 的手机上也能看出「这行点得开」 */
.shop-myorder-main::after {
  content: "";
  flex: none;
  align-self: center;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--faint);
  border-bottom: 1.6px solid var(--faint);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
}

.shop-myorder.is-open .shop-myorder-main::after {
  transform: rotate(225deg) translateY(-1px);
}

.shop-myorder-price {
  flex: none;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.shop-myorder-spec {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  color: var(--muted);
}

.shop-myorder-time {
  flex: none;
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.shop-myorder-copy {
  flex: none;
}

.shop-myorder-body {
  padding: 0 12px 12px;
}

.shop-myorder-no {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  word-break: break-all;
}

.shop-myorder-payload {
  min-height: 66px;
  margin: 0;
  font-size: 12.5px;
}

/* 发货成功两栏（2026-08-12）：卡密框是主角占满左侧，客服码退居右栏 */
.shop-delivered-grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 12px;
  text-align: left; /* .login-success 整体居中，栏内内容回左对齐 */
}

.shop-delivered-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-payload-box {
  flex: 1;
  min-height: 200px;
  resize: vertical;
}

.shop-delivered-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-pickup-qr {
  flex: none;
  width: 216px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.shop-pickup-tip {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.shop-pickup-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media (max-width: 720px) {
  /* 手机上下堆叠：内容框在前，客服码居中在后 */
  .shop-delivered-grid {
    flex-direction: column;
  }

  .shop-pickup-qr {
    width: min(240px, 100%);
    margin: 0 auto;
  }
}

.shop-email-row {
  margin: 14px 0 4px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent 42%),
    linear-gradient(180deg, #f8fbff, #ffffff);
}

.shop-email-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.shop-email-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.shop-email-copy {
  min-width: 0;
  flex: 1;
}

.shop-email-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.shop-email-optional {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shop-email-hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.shop-email-input {
  width: 100%;
  min-height: 0;
  height: 46px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px;
  resize: none;
}

.shop-email-input::placeholder {
  color: var(--faint);
}

/* ---------- 有货提醒订阅 ---------- */
.shop-watch-row {
  margin: 10px 0 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7faff 0%, #fdfeff 100%);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-watch-row[open] {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.08);
}

.shop-watch-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.shop-watch-summary::-webkit-details-marker { display: none; }

.shop-watch-summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--faint);
  font-size: 13px;
  transition: transform 0.15s ease;
}

.shop-watch-row[open] .shop-watch-summary::after { transform: rotate(180deg); }

.shop-watch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
}

.shop-watch-summary-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.shop-watch-summary-copy strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.shop-watch-summary-copy small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.shop-watch-body {
  padding: 2px 14px 14px;
}

.shop-watch-hint {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.05);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.shop-watch-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.shop-watch-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 140px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.shop-watch-field select,
.shop-watch-field input {
  height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong, #d3dbe8);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

.shop-watch-field select:focus,
.shop-watch-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.shop-watch-btn {
  width: 100%;
}

/* 每张卡/每场的买家可见备注（后台录号时填）：琥珀小徽标拼在规格名后。
   琥珀 = 提示性信息，与绿「自动发货」/红「人工发货」的发货语义区分开 */
.shop-sku-note {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 1px;
}

/* 「上次买的」一键回购横幅：回头客占大头，别让他每次都重新翻列表 */
.shop-rebuy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(14, 165, 233, 0.04));
}

.shop-rebuy-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  color: var(--muted);
}

.shop-rebuy-text strong {
  color: var(--ink);
  font-weight: 700;
}

.shop-rebuy-btn {
  flex: none;
  padding: 6px 13px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.shop-rebuy-btn:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.shop-category-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}

.shop-category {
  min-width: 0;
  padding: 11px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.shop-category:hover,
.shop-category:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}

.shop-category.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

/* 数量徽章：有货实心蓝底白字要一眼看到；0 刻意淡化，别引人点进空分类 */
.shop-category span {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
}

.shop-category span.is-zero {
  background: rgba(15, 30, 51, 0.07);
  color: var(--faint);
  font-weight: 700;
  box-shadow: none;
}

.shop-category.is-active span {
  background: #fff;
  color: var(--blue);
  box-shadow: none;
}

.shop-category.is-active span.is-zero {
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
}

.shop-sku-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
  /* 标题改写后单条更长，原 420px / 50vh 显得挤；桌面约 640、手机约 70vh */
  max-height: min(640px, 70vh);
  overflow-y: auto;
}

/* 列表超过 max-height 时，flex 会压缩子项。带 overflow 的子项（折叠组）自动最小
   高度按规范降为 0，会被压成一条细线，所以这里统一禁止收缩，只允许滚动。 */
.shop-sku-list > * {
  flex: none;
}

.shop-empty {
  margin: 18px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* 条款告知的演化：勾选复选框（买家看不见，2026-08-05 删）→ 按钮上方明示条
   .shop-terms-note（2026-08-13 也删）→ 现在只由点购买后的确认框承担（§11.3.8.1）。 */

.shop-sku {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 12px 14px 12px 16px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.shop-sku:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.45);
}

.shop-sku.is-selected {
  border-color: var(--blue);
  background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.12),
    0 6px 16px rgba(37, 99, 235, 0.08);
}

.shop-sku.is-selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}

.shop-sku.is-selected::after {
  content: "已选";
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.shop-sku.is-soldout,
.shop-sku:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.shop-sku-spec {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  padding-right: 52px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shop-sku-spec .sku-hl {
  color: #dc2626;
  font-weight: 800;
  font-style: normal;
}

.shop-sku.is-selected .shop-sku-spec {
  color: var(--ink);
  font-weight: 800;
}

.shop-sku.is-selected .shop-sku-spec .sku-hl {
  color: #dc2626;
}

.shop-sku-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}

.shop-sku-price {
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
}

.shop-sku-fulfill {
  display: inline-flex;
  align-items: center;
  flex: none;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}

.shop-sku-fulfill.is-auto {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.shop-sku-fulfill.is-manual {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.shop-sku-deadline,
.shop-sku-sold,
.shop-sku-save {
  display: inline-flex;
  align-items: center;
  flex: none;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}

.shop-sku-deadline {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  /* 等宽数字：逐秒跳动时数字宽度不一会让整张卡左右抽动 */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.shop-sku-sold {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-deep);
}

/* 原价划线：只在服务端确认降过价时出现，弱化处理，不跟现价抢注意力。
   负边距把它拉回现价旁边——meta 行的 12px gap 会让它看着像个无关的独立标签 */
.shop-sku-origin {
  flex: none;
  flex-shrink: 0;
  margin-left: -6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
  opacity: 0.75;
}

.shop-sku-save {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.shop-sku-deadline[hidden],
.shop-sku-sold[hidden],
.shop-sku-origin[hidden],
.shop-sku-save[hidden] {
  display: none;
}

.shop-sku-stock {
  margin-left: auto;
  font-weight: 700;
}

/* 「剩余 9 件 / 可用约 29 天 / 已拼 2/5 席」里的数字放大标蓝（2026-08-13 由红改蓝）：
   件数是买家最关心的稀缺信号，13px 灰字里扫不到（setSkuStockText 包的 <b>） */
.shop-sku-stock b {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
}

/* 折叠组头右侧整段本就是蓝色强调，数字继承同色只加大 */
.shop-sku-group-head .shop-sku-stock b {
  color: inherit;
}

.shop-sku.is-selected .shop-sku-price {
  color: var(--blue);
  font-size: 17px;
}

/* ---------- 同款多个号：折叠组 ---------- */
.shop-sku-group {
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.shop-sku-group .shop-sku {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.shop-sku-group-head {
  border-radius: 10px 10px 0 0;
}

.shop-sku-group-head .shop-sku-stock {
  margin-left: auto;
  font-weight: 700;
  color: var(--blue);
}

.shop-sku-toggle {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #eaf1ff;
  color: var(--blue);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.shop-sku-toggle:hover {
  background: #dbe7ff;
}

.shop-sku-toggle[aria-expanded="true"] {
  background: #dbe7ff;
}

.shop-sku-variants {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.shop-sku-variant {
  padding-left: 26px;
  background: rgba(15, 30, 51, 0.02);
}

.shop-sku-variant + .shop-sku-variant { border-top: 1px solid var(--line); }

.shop-sku-variant .shop-sku-spec {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- 川AI预售排期时刻表（§4.6）：天分节 → 小时行 → 场次胶囊 ----------
   容器沿用 .shop-sku-variants 的 flex column 与 .hidden 收起机制，
   这里刻意不写 display——写了就会压过全局 .hidden，时刻表永远收不起来 */
.shop-presale-sched {
  padding: 10px 14px 14px;
}

/* 场次时刻表（.shop-slot-sched 附加类）：展开区铺一层极浅蓝底，与折叠头/toggle 分层 */
.shop-slot-sched {
  background: linear-gradient(180deg, rgba(234, 241, 255, 0.5) 0%, rgba(234, 241, 255, 0) 85%);
}

.presale-day + .presale-day {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* 日期节标题：左侧蓝色小竖条当节标记，比一行灰字更能把「天」切开 */
.presale-day-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
}

.presale-day-head::before {
  content: "";
  flex: none;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--blue) 100%);
}

.presale-hour-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}

.presale-hour-label {
  flex: 0 0 44px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  line-height: 30px; /* 与胶囊单行高对齐 */
  font-variant-numeric: tabular-nums;
}

.presale-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

/* 场次时刻表的胶囊容器改等宽卡片栅格：整屏对齐好扫读、窄屏自动收列。
   只作用于场次（.shop-slot-sched）；川AI排期的小时行仍是流式小胶囊。
   最小列宽 190px 是让「HH:MM ~ HH:MM · ¥99.99」第一行不折行的实测下限 */
.shop-slot-sched .presale-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

/* 胶囊：把整行卡片样式重置成紧凑 pill。
   .shop-sku-group .shop-sku 清掉了边框，这里同特异性、文件更靠后压回 */
.shop-presale-sched .presale-chip {
  display: inline-flex;
  width: auto;
  align-items: center;
  padding: 5px 11px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums; /* 秒级时刻逐秒对齐不跳宽 */
  line-height: 1.3;
}

.shop-presale-sched .presale-chip:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.55);
}

.shop-presale-sched .presale-chip.is-selected {
  border-color: var(--blue-deep);
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.16),
    0 6px 14px rgba(29, 78, 216, 0.25);
}

/* 整行卡片的「已选」角标与左侧蓝条在小胶囊上放不下也没必要：蓝底白字已表达选中 */
.shop-presale-sched .presale-chip.is-selected::before,
.shop-presale-sched .presale-chip.is-selected::after {
  content: none;
}

/* 倒计时锚只当「到点下架」的机关用，不显示。必须 display:none——
   shopSyncCountdowns 每秒会把元素的 hidden 属性设回 false（app.js L2378） */
.presale-chip-dl {
  display: none;
}

/* 批量购买中已购成功的胶囊：就地禁用淡化（下一次目录重拉会随防撞车整体消失） */
.shop-presale-sched .presale-chip:disabled {
  opacity: 0.38;
  cursor: default;
  border-color: var(--line);
}

/* 预约场次时段胶囊（§41 时刻表化，2026-08-19 视觉升级为等宽小卡片）：
   内容竖排（时段+价 / 备注 / 生效状态）。第三行 .slot-chip-dl 与川AI的
   .presale-chip-dl 机关不同：场次开场后宽限内仍可拍，「距生效 / 生效中·剩 X
   可拍」是挑选依据，必须可见（§41.10 红线 1：不许 display:none） */
.shop-presale-sched .slot-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 12px 8px;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

/* 悬浮微抬 + 蓝描边：与整行 SKU 卡的 hover 语言一致（选中态不抬，避免抖动） */
.shop-presale-sched .slot-chip:hover:not(:disabled):not(.is-selected) {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.13);
}

/* 第一行「时段 · 价」是挑场的主信息，压深加粗 */
.slot-chip-main {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.shop-presale-sched .slot-chip.is-selected .slot-chip-main {
  color: #fff;
}

.slot-chip-note {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.slot-chip-dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--warn);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* 状态圆点：琥珀 = 距生效（currentColor 跟随文字色，选中反白时自动变白） */
.slot-chip-dl::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* 「生效中 · 剩 X 可拍」标绿 + 呼吸光圈（is-live 由 buildSlotChip 初始设置、
   shopSyncCountdowns 逐秒复位，见 app.js）：宽限内仍可拍是卖点，必须显眼 */
.slot-chip-dl.is-live {
  color: var(--ok);
}

.slot-chip-dl.is-live::before {
  animation: slotLivePulse 1.8s ease-out infinite;
}

@keyframes slotLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
  70% { box-shadow: 0 0 0 5px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.slot-chip-dl[hidden] {
  display: none;
}

/* 到点下架家族修正（2026-08-18 复核）：tick 到点用 hidden 属性藏
   胶囊/行 → 小时行 → 日期节 → 整组，但 .shop-sku 与 .presale-hour-row 有作者
   display 声明（flex / inline-flex）会压过 UA 的 [hidden]（L189 .urge-bar 同款坑）
   ——过点的胶囊/行藏不掉、还能点，要挂到 35s 兜底重拉才消失。四层全列上，
   将来谁给日期节/组加 display 声明也不会悄悄弄坏收口。
   注意本块必须位于 .shop-presale-sched .presale-chip（同特异性）之后 */
.shop-sku[hidden],
.presale-hour-row[hidden],
.presale-day[hidden],
.shop-sku-group[hidden] {
  display: none;
}

/* 蓝底选中态下第二三行跟着反白，别留橙字灰字杵在蓝底上 */
.shop-presale-sched .slot-chip.is-selected .slot-chip-note,
.shop-presale-sched .slot-chip.is-selected .slot-chip-dl {
  color: rgba(255, 255, 255, 0.88);
}

/* 场次是多选（可勾多场）：选中卡右上角补一枚 ✓ 圆标，「已入选」比单纯蓝底更明确。
   同特异性(0,3,0)、位置更靠后，压过上方 .presale-chip.is-selected::after 的
   content:none；padding 要显式清零（否则吃到 .shop-sku.is-selected::after
   「已选」胶囊的 2px 8px） */
.shop-presale-sched .slot-chip.is-selected::after {
  content: "✓";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(29, 78, 216, 0.35);
}

/* 蓝底上的呼吸光圈换白色系，绿圈杵在蓝底上会发脏 */
.shop-presale-sched .slot-chip.is-selected .slot-chip-dl.is-live::before {
  animation-name: slotLivePulseOnBlue;
}

@keyframes slotLivePulseOnBlue {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  /* §11.2.7 红线 3：新动画必须挂降级——关呼吸灯与 hover 位移 */
  .slot-chip-dl.is-live::before {
    animation: none;
  }

  .shop-presale-sched .slot-chip:hover:not(:disabled):not(.is-selected) {
    transform: none;
  }
}

@media (max-width: 560px) {
  /* 窄屏小时标签改行首块级：胶囊换行不受 44px 侧栏挤压（§11.4：344px 不横向溢出） */
  .presale-hour-row {
    flex-direction: column;
    gap: 4px;
  }

  .presale-hour-label {
    flex: none;
    text-align: left;
    line-height: 1.2;
  }
}

.shop-pay-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.shop-pay-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.shop-qrcode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 216px;
  min-height: 216px;
}

.shop-qrcode img,
.shop-qrcode canvas {
  display: block;
}

.shop-h5-pay {
  width: min(100%, 360px);
  min-height: 52px;
  justify-content: center;
  margin: 16px auto 8px;
}

.shop-h5-hint {
  max-width: 420px;
  margin: 8px auto;
  line-height: 1.6;
}

.shop-cancel-pay {
  margin-top: 12px;
  min-width: 140px;
}

#shopDelivered .field-input {
  margin: 12px 0;
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .shop-category-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* SKU：选中角标略小，让标题占更多宽度；元信息行紧凑换行 */
  .shop-sku {
    padding: 12px 12px 12px 14px;
  }

  .shop-sku-spec {
    padding-right: 44px;
  }

  .shop-sku-meta {
    gap: 6px 10px;
  }

  /* 额度查询：说明与"仅高级模型"竖排，明细表可横向滚动且更紧凑 */
  .usage-head {
    flex-direction: column;
    gap: 8px;
  }

  .usage-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .usage-table th,
  .usage-table td {
    padding: 6px 7px;
    font-size: 11.5px;
  }

  /* 我的订单：窄屏一行塞不下四段，让掉时刻（日期分隔条上还有日期），规格名多留点宽度 */
  .shop-myorder-time {
    display: none;
  }

  .shop-myorders-list {
    max-height: 50vh;
  }

  /* iOS：输入控件字号 <16px 时，聚焦会强制把整页放大且输完不还原，
     是手机端最恼人的跳动来源。窄屏统一提到 16px（Android 不受影响）。 */
  .field-input,
  .shop-myorders-search,
  .account-orders-search,
  .account-orders-filter,
  .shop-watch-field select,
  .shop-watch-field input,
  .urge-select {
    font-size: 16px;
  }

  /* 邮箱备份 / 购买须知：收紧内边距 */
  .shop-email-row {
    padding: 12px 12px 14px;
  }

  .shop-buy-notice {
    font-size: 12.5px;
  }

  .shop-support {
    margin-left: 0;
  }

  .shop-support-body {
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
  }

  .shop-support-qr-link,
  .shop-support-qr {
    width: 150px;
  }

  .shop-support-qr {
    height: 171px;
  }

  .shop-support-account {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .tab-shell {
    margin-bottom: 16px;
    padding: 8px 6px 6px;
  }

  .flow-guide {
    margin: 0 2px 8px;
  }

  .flow-guide-path {
    font-size: 13px;
  }

  .flow-guide-hint {
    display: none;
  }

  .tab-bar {
    gap: 6px;
  }

  .tab-main-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tab-flow-arrow {
    display: none;
  }

  /* 手机主流程竖排；辅助入口（邮箱收验证码）保持整行展示；旧分隔伪元素保持关闭。 */
  .tab-btn--aux::before {
    display: none;
  }

  .tab-btn {
    font-size: 12px;
    padding: 11px 10px;
    min-height: 56px;
  }

  .tab-btn::after {
    left: 12px;
    right: 12px;
  }

  .shop-category {
    font-size: 14px;
    padding: 10px 6px;
  }

  .shop-sku-price {
    font-size: 15px;
  }

  .shop-sku.is-selected .shop-sku-price {
    font-size: 16px;
  }

  .shop-support-body {
    align-items: center;
    flex-direction: column;
  }

  .shop-support-info {
    width: 100%;
    text-align: center;
  }

  .shop-support-account {
    align-items: center;
  }
}

/* ---------- 支付方式选择 + 支付宝内嵌二维码（§42） ---------- */
/* 目录未下发支付宝能力时整组 .hidden，与接入前零差异 */
.shop-pay-choice {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}

.shop-pay-pill {
  flex: 1;
  padding: 9px 10px;
  border: 1.5px solid var(--line, #e6ebf3);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted, #667085);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.shop-pay-pill.is-active {
  border-color: #2f6bff;
  color: #2f6bff;
  background: rgba(47, 107, 255, 0.06);
}

/* 余额抵扣行（§44）：登录且余额>0 时由 app.js 揭开 */
.shop-balance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1.5px dashed #c7d6f7;
  border-radius: 10px;
  background: rgba(47, 107, 255, 0.04);
}

.shop-balance-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #0f1e33);
  cursor: pointer;
}

.shop-balance-check input {
  width: 16px;
  height: 16px;
  accent-color: #2f6bff;
  cursor: pointer;
}

.shop-balance-split {
  font-size: 13px;
  color: #2f6bff;
  font-weight: 600;
}

/* 拼车席位选择器（§45）：选中拼车账号后出现在购买按钮上方 */
.shop-seat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1.5px dashed #f4c98a;
  border-radius: 10px;
  background: rgba(240, 150, 30, 0.05);
}

.shop-seat-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0f1e33);
}

.shop-seat-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d8c8a8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.shop-seat-stepper button {
  width: 34px;
  height: 32px;
  border: 0;
  background: #faf5ea;
  font-size: 17px;
  font-weight: 700;
  color: #7a5b1f;
  cursor: pointer;
  line-height: 1;
}

.shop-seat-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shop-seat-stepper input {
  width: 44px;
  height: 32px;
  border: 0;
  border-left: 1px solid #eadfc8;
  border-right: 1px solid #eadfc8;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #0f1e33);
  -moz-appearance: textfield;
  appearance: textfield;
}

.shop-seat-stepper input::-webkit-outer-spin-button,
.shop-seat-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shop-seat-max {
  border: 1px solid #e8a33d;
  border-radius: 8px;
  background: #fff7e8;
  color: #9a6511;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
}

.shop-seat-max:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.shop-seat-hint {
  font-size: 13px;
  color: #9a6511;
  font-weight: 600;
}

@media (max-width: 560px) {
  .shop-seat-row {
    gap: 8px;
  }

  .shop-seat-hint {
    flex-basis: 100%;
  }
}

/* qr_pay_mode=4 的支付宝收银台页只有一张二维码，尺寸与微信 QR（196px）对齐 */
.shop-alipay-frame {
  width: 200px;
  height: 200px;
  border: 0;
  display: block;
  margin: 0 auto;
  overflow: hidden;
}

.shop-alipay-fallback {
  text-align: center;
}
