/* ==========================================================================
   N次方教育官方商城 · 淘宝/天猫级商品详情购买页 & 可视化管理后台样式 (shop.css)
   ========================================================================== */

:root {
  --tb-hot: #0284c7;
  --tb-hot-2: #14b8a6;
  --tb-gold-bg: #f0f9ff;
  --tb-gold-border: #bae6fd;
}

/* --------------------------------------------------------------------------
   1. 商城顶栏搜索、购物车悬浮球与选品大厅 (shop.html)
   -------------------------------------------------------------------------- */

.shop-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.2) 0%, transparent 46%),
    radial-gradient(circle at 18% 82%, rgba(45, 212, 191, 0.15) 0%, transparent 46%),
    linear-gradient(142deg, #e8f5ff 0%, #edfcf9 55%, #f6fbff 100%);
  padding: 40px 0 46px;
  color: var(--ink-1);
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
  position: relative;
  overflow: hidden;
}

.shop-hero-inner {
  width: min(var(--container-max), 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.shop-hero-title {
  margin: 6px 0 8px;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}

.shop-search-wrap {
  flex: 1;
  max-width: 620px;
  min-width: 300px;
}

.tb-search-bar {
  display: flex;
  background: #ffffff;
  border-radius: 999px;
  padding: 5px;
  border: 1.5px solid #7dd3fc;
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.09);
}

.tb-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 15px;
  color: var(--ink-1);
  outline: none;
}

.tb-search-bar button {
  padding: 10px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #14b8a6);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tb-search-bar button:hover {
  transform: scale(1.02);
}

.tb-hot-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-left: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.tb-hot-words button {
  border: 1px solid rgba(14, 165, 233, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-2);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tb-hot-words button:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.shop-notice-strip {
  background: #f0fdfa;
  border-bottom: 1px solid #ccfbf1;
  padding: 10px 0;
  font-size: 13.5px;
  color: #0f766e;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 24px;
  flex-wrap: wrap;
}

.shop-sort-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
}

.shop-sort-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}

.shop-sort-btn.is-active {
  background: #e0f2fe;
  color: var(--tb-hot);
}

/* Product Cards Grid */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* 商品还没取回来时先把位置占住：下面的“订单查询”、页脚不会先露出来、再被商品一下顶下去。
   商品画出来（或者显示加载失败的提示）以后容器不再是空的，这条自动失效 */
#shopProductsGrid:empty,
#tbProductBuyBox:empty {
  min-height: 100vh;
}

/* 分类按钮也是取回数据后才画的，先留出一行按钮的高度 */
#shopCatTabs {
  min-height: 54px;
}

.tb-prod-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(14, 165, 233, 0.08);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-spring), border-color 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.tb-prod-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow-md);
}

.tb-prod-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f4f9fc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-spring);
}

.tb-prod-card:hover .tb-prod-thumb img {
  transform: scale(1.05);
}

.tb-prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #0284c7, #14b8a6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.24);
}

.tb-prod-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tb-prod-body h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tb-prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.tb-prod-tags span {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.tb-prod-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tb-price {
  color: var(--tb-hot);
  font-weight: 800;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.tb-price small {
  font-size: 14px;
}

.tb-price b {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.tb-price em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 2px;
}

.tb-sales {
  font-size: 12px;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   2. 独立商品购买详情页 (product.html —— 淘宝/天猫双栏购买舱)
   -------------------------------------------------------------------------- */

.tb-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  font-size: 13.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

.tb-breadcrumb-links a:hover {
  color: var(--nplus-primary);
}

.tb-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tb-cart-pill:hover {
  background: var(--tb-hot);
  color: #ffffff;
  border-color: var(--tb-hot);
}

.tb-cart-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--tb-hot);
  color: #ffffff;
  font-size: 12px;
}

.tb-cart-pill:hover .tb-cart-count {
  background: #ffffff;
  color: var(--tb-hot);
}

/* 商品页面包屑一行的购物车入口：只在“顶栏购物车按钮已收起（不超过 1240）、底部购买条还没出现（超过 768）”的宽度显示，
   也就是平板、手机横屏和电脑上的小窗口；其余宽度已经有别的入口，不重复放 */
.tb-cart-pill.tb-cart-pill-mid {
  display: none;
}

@media (min-width: 769px) and (max-width: 1240px) {
  .tb-cart-pill.tb-cart-pill-mid {
    display: inline-flex;
  }
}

.tb-buy-box {
  background: #ffffff;
  border-radius: 26px;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 48px);
  align-items: start;
  margin-bottom: 32px;
}

/* Gallery Left */
.tb-gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.tb-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.35s var(--ease-spring);
}

.tb-gallery-main:hover img {
  transform: scale(1.04);
}

.tb-thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
}

.tb-thumb-btn {
  width: 74px;
  height: 62px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #f8fafc;
  padding: 3px;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.tb-thumb-btn.is-active {
  border-color: var(--tb-hot);
}

.tb-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Info & SKU Right */
.tb-store-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tb-flag-self {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #0284c7, #14b8a6);
  color: #ffffff;
}

.tb-store-flag span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
}

/* 上一条按标签名选中了里面所有 span，会把“自营”标签的白字也盖成灰色，这里改回来 */
.tb-store-flag .tb-flag-self {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.tb-detail-title {
  margin: 0 0 8px;
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-1);
}

.tb-detail-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: #0369a1;
  line-height: 1.6;
}

.tb-price-panel {
  background: linear-gradient(95deg, #eef8ff 0%, #edfcf9 58%, #f4fbff 100%);
  border: 1px solid #bae6fd;
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tb-price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tb-price-label {
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
}

.tb-price-now {
  color: var(--tb-hot);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tb-price-now small {
  font-size: 20px;
  margin-right: 2px;
}

.tb-price-old {
  font-size: 14px;
  color: var(--ink-4);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.tb-stat-pair {
  display: flex;
  gap: 20px;
  text-align: right;
}

.tb-stat-pair div strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #0369a1;
}

.tb-stat-pair div span {
  font-size: 12px;
  color: var(--ink-3);
}

/* SKU Spec Selector */
.tb-prop-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.tb-prop-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-3);
  padding-top: 9px;
}

.tb-sku-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tb-sku-chip {
  position: relative;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-mid);
  background: #ffffff;
  color: var(--ink-1);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.tb-sku-chip:hover {
  border-color: var(--tb-hot);
}

.tb-sku-chip.is-selected {
  border-color: var(--tb-hot);
  background: #f0f9ff;
  color: #0369a1;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}

.tb-sku-chip.is-selected::after {
  content: "✓";
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--tb-hot);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 10px;
}

.tb-sku-chip strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.tb-sku-chip small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.tb-sku-desc-box {
  background: var(--surface-page);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 18px;
  line-height: 1.65;
}

/* Quantity Stepper */
.tb-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.tb-qty-wrap button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-page);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.tb-qty-wrap input {
  width: 52px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.tb-guarantee-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 12px 0 22px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
}

.tb-guarantee-row span::before {
  content: "✓ ";
  color: #059669;
  font-weight: 800;
}

/* Taobao Dual Action Buttons */
.tb-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tb-btn-buynow {
  flex: 1;
  min-width: 190px;
  max-width: 260px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 54%, #14b8a6 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.26);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
}

.tb-btn-buynow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.34);
}

.tb-btn-addcart {
  flex: 1;
  min-width: 180px;
  max-width: 230px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1.5px solid #7dd3fc;
  background: linear-gradient(90deg, #f0f9ff, #e0f2fe);
  color: #0369a1;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s var(--ease-spring);
}

.tb-btn-addcart:hover {
  background: #bae6fd;
  transform: translateY(-2px);
}

/* Checkout Cashier Modal / Drawer */
.cashier-summary-list {
  background: var(--surface-page);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  max-height: 240px;
  overflow-y: auto;
}

.cashier-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.cashier-item-row:last-child {
  border-bottom: none;
}

.cashier-pay-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.pay-method-card {
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line-mid);
  background: #ffffff;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.pay-method-card.is-active {
  border-color: var(--nplus-primary);
  background: #f0f7ff;
  color: var(--nplus-primary);
}

/* --------------------------------------------------------------------------
   3. 可视化管理后台 (admin.html)
   -------------------------------------------------------------------------- */

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  background: #f4f9fc;
}

.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(14, 116, 144, 0.12);
  color: var(--ink-2);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 20px;
  border-bottom: 1px solid rgba(14, 116, 144, 0.1);
  margin-bottom: 10px;
}

.admin-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain; /* 标志是横向的，按比例放进方框，不压扁 */
  border-radius: 10px;
  background: #f0f9ff;
  padding: 4px;
}

/* “菜单”按钮：只在窄屏（见下面 max-width: 1120px 一段）显示，桌面端侧栏一直展开 */
.admin-menu-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 380px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line-mid);
  border-radius: 12px;
  background: #f8fbfd;
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-menu-current {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu-word {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--nplus-primary);
}

.admin-menu-word::after {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.admin-nav-btn {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.admin-nav-btn:hover {
  background: #f0f9ff;
  color: var(--nplus-primary);
}

.admin-nav-btn.is-active {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.22);
}

.admin-main {
  padding: 28px 34px 64px;
  max-width: 1620px;
  width: 100%;
}

.admin-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.admin-stat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.admin-stat-card small {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.admin-stat-card strong {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
}

.admin-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.admin-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* 表格里的状态标签都是几个字的短标签：列窄的时候不拆成一个字一行。（设置页里有整句话的长标签，仍然允许换行） */
.xes-price-table .admin-status-pill {
  white-space: nowrap;
}

.admin-status-pill.is-on {
  background: #dcfce7;
  color: #15803d;
}

.admin-status-pill.is-off {
  background: #f1f5f9;
  color: #64748b;
}

/* 后台的表格列比较多：按表格排的时候（屏幕够宽、没有排成卡片）格子左右的留白收一点，
   1280 宽的笔记本上各列才放得下；操作按钮一排放不下就换行，上下留出间距 */
.admin-main .xes-price-table:not(.is-stacked) th,
.admin-main .xes-price-table:not(.is-stacked) td {
  padding-left: 12px;
  padding-right: 12px;
}

.admin-main .xes-price-table:not(.is-stacked) td[data-cell="actions"] > .admin-btn-sm {
  margin-top: 3px;
  margin-bottom: 3px;
}

.admin-btn-sm {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-mid);
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  margin-right: 6px;
}

.admin-btn-sm:hover {
  border-color: var(--nplus-primary);
  color: var(--nplus-primary);
}

.admin-btn-sm.is-danger:hover {
  border-color: #dc2626;
  color: #dc2626;
}

/* 后台 · 导出账单 */
.bill-export {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.bill-export-head {
  display: flex;
  align-items: baseline;
  gap: 6px 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.bill-export-head strong {
  font-size: 15px;
  color: #0f172a;
}

.bill-export-head span,
.bill-export-tip {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.7;
}

.bill-export-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.bill-export-quick .admin-btn-sm {
  margin-right: 0;
}

.bill-export-quick .admin-btn-sm.is-active {
  border-color: var(--nplus-primary);
  background: #eff6ff;
  color: var(--nplus-primary);
}

.bill-export-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.bill-export-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

.bill-export-field input,
.bill-export-field select {
  max-width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-mid);
  background: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-1);
}

.bill-export-field input:focus,
.bill-export-field select:focus {
  outline: none;
  border-color: var(--nplus-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
}

.bill-export-field select:disabled {
  background: #f1f5f9;
  color: #64748b;
}

.bill-export-submit {
  min-height: 40px;
  padding: 10px 22px;
}

.bill-export-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.bill-export-summary {
  min-height: 23px;
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.7;
}

.bill-export-feedback {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #dc2626;
}

.bill-export-feedback.is-ok {
  color: #059669;
}

.bill-export-tip {
  margin: 8px 0 0;
}

@media (max-width: 640px) {
  .bill-export-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .bill-export-field input,
  .bill-export-field select {
    width: 100%;
  }

  .bill-export-submit {
    grid-column: 1 / -1;
  }
}

.sku-editor-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr 0.7fr 0.6fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.sku-editor-row input {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-mid);
  font-size: 13px;
  width: 100%;
}

/* 后台：会员等级列表、发信服务器参数、注册资料设置 */
.vip-level-head,
.vip-level-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 1.6fr) 78px;
  gap: 8px;
  align-items: center;
}

.vip-level-head {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.vip-level-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #cbd5e1;
}

.vip-level-row input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-mid);
  font-size: 13px;
}

.vip-level-row input:focus {
  outline: none;
  border-color: var(--nplus-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
}

.vip-level-row .admin-btn-sm {
  padding-left: 8px;
  padding-right: 8px;
  white-space: nowrap;
}

.vip-level-example {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.vip-level-empty {
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.mail-server-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 14px;
}

.reg-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.tb-mobile-buybar {
  display: none;
}

@media (max-width: 1120px) {
  .shop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tb-buy-box {
    grid-template-columns: minmax(0, 1fr);
  }
  .tb-buy-box > *,
  .admin-main,
  .admin-sidebar,
  .admin-card {
    min-width: 0;
  }
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 窄屏下的后台导航：顶部只留一行（标志 + 当前栏目 + “菜单”按钮），点开后各栏目排成格子，选完自动收起 */
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 800;
    height: auto;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 8px 12px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: none;
    border-bottom: 1px solid rgba(14, 116, 144, 0.12);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }
  .admin-brand {
    flex: 1 1 100%;
    min-width: 0;
    border-bottom: none;
    margin-bottom: 0;
    padding: 0;
  }
  .admin-brand > div {
    flex-shrink: 0;
  }
  .admin-brand small {
    display: none;
  }
  .admin-menu-toggle {
    display: flex;
  }
  .admin-nav-btn {
    display: none;
    width: auto;
    flex: 1 1 calc(25% - 6px);
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13.5px;
    gap: 6px;
  }
  .admin-nav-btn small {
    flex-shrink: 0;
    font-size: 12px;
  }
  .admin-sidebar.is-menu-open .admin-nav-btn {
    display: flex;
  }
  .admin-sidebar > div:last-child {
    display: none !important;
    flex: 1 1 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0 !important;
    padding-top: 8px !important;
  }
  .admin-sidebar.is-menu-open > div:last-child {
    display: grid !important;
  }
  .admin-stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile Taobao Sticky Buy Bar on product.html (<= 768px) */
@media (max-width: 768px) {
  body.is-product-page {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .tb-mobile-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 980;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
  }

  .tb-mbar-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .tb-mbar-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
    border: none;
    background: transparent;
    padding: 2px 4px;
    cursor: pointer;
    position: relative;
  }

  .tb-mbar-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--tb-hot);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    padding: 0 5px;
    border-radius: 999px;
  }

  .tb-mbar-btns {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.22);
  }

  .tb-mbar-cart {
    min-height: 44px;
    padding: 11px 8px;
    border: none;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
  }

  .tb-mbar-buy {
    min-height: 44px;
    padding: 11px 10px;
    border: none;
    background: linear-gradient(90deg, #0284c7, #14b8a6);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .shop-hero-banner {
    padding: 24px 0 28px;
  }

  /* 搜索框单独占一整行（flex-basis 100%）：否则它会和标题挤在同一行，只剩一点点宽 */
  .shop-search-wrap {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .tb-search-bar input {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 0;
  }

  .tb-search-bar button {
    padding: 8px 18px;
    font-size: 14px;
    flex-shrink: 0;
  }

  .tb-hot-words {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-left: 4px;
    scrollbar-width: none;
  }

  .tb-hot-words::-webkit-scrollbar {
    display: none;
  }

  .tb-hot-words span,
  .tb-hot-words button {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .shop-sort-bar {
    width: 100%;
    overflow-x: auto;
  }

  .shop-sort-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 13px;
    font-size: 13px;
  }

  /* 淘宝手机端经典双列商品流 */
  .shop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tb-prod-card {
    border-radius: 14px;
  }

  .tb-prod-body {
    padding: 10px 11px 12px;
  }

  .tb-prod-body h3 {
    font-size: 13.5px;
    margin-bottom: 6px;
  }

  .tb-prod-tags {
    margin-bottom: 8px;
  }

  .tb-prod-tags span {
    font-size: 12px;
    padding: 1px 5px;
  }

  .tb-price b {
    font-size: 19px;
  }

  .tb-sales {
    font-size: 12px;
  }

  /* Product Buy-Box Mobile Polish */
  .tb-buy-box {
    padding: 16px 14px;
    border-radius: 18px;
    gap: 18px;
  }

  .tb-price-panel {
    padding: 14px;
  }

  .tb-price-now {
    font-size: 30px;
  }

  .tb-prop-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .tb-prop-label {
    padding-top: 0;
  }

  .tb-sku-chip {
    width: 100%;
    padding: 10px 14px;
  }

  .tb-action-buttons {
    display: none; /* 手机端由底部吸顶淘宝购买栏接管，更顺手 */
  }

  .cashier-pay-methods {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Admin Console Mobile Polish */
  .admin-main {
    padding: 14px 12px 48px;
  }

  .admin-stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }

  .admin-stat-card {
    padding: 14px;
  }

  .admin-stat-card strong {
    font-size: 22px;
  }

  .admin-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .sku-editor-head {
    display: none !important;
  }

  .sku-editor-row {
    grid-template-columns: 1fr 1fr;
  }

  .vip-level-head {
    display: none;
  }

  .vip-level-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .vip-level-row input[data-vip-field="name"],
  .vip-level-row input[data-vip-field="note"] {
    grid-column: 1 / -1;
  }

  .vip-level-row .admin-btn-sm {
    justify-self: start;
  }

  .mail-server-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #orderLookupForm input {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    width: 100%;
  }

  #orderLookupForm button {
    width: 100%;
    justify-content: center;
  }

  .cashier-item-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  #productEditorForm > div[style*="grid-template-columns"],
  #adminSettingsForm div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 400px) {
  .tb-mobile-buybar {
    gap: 6px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
  }
  .tb-mbar-icons {
    gap: 6px;
  }
  .tb-mbar-icon {
    font-size: 12px;
    padding: 2px 2px;
  }
  .tb-mbar-btns {
    grid-template-columns: 0.92fr 1.28fr;
  }
  .tb-mbar-cart,
  .tb-mbar-buy {
    font-size: 12px;
    padding: 10px 6px;
  }
}

/* 后台页面没有官网顶栏：去掉 body 为顶栏预留的空白 */
body.is-admin-page {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   4. 买家账号：顶栏入口、登录 / 注册表单、结算时的账号提示、账号页面 (account.html)
   -------------------------------------------------------------------------- */

/* 顶栈账号入口（.nav-account-link）的样式在 styles.css 里，所有页面共用 */

/* 账号页里没选中的面板不显示 */
[data-acct-panel][hidden] {
  display: none !important;
}

/* 登录 / 注册表单（结算弹窗和账号页面共用） */
.acct-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--surface-page);
}

.acct-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.acct-tab:hover {
  color: var(--nplus-primary);
}

.acct-tab.is-active {
  background: #ffffff;
  color: var(--nplus-primary);
  box-shadow: var(--shadow-xs);
}

.acct-tab em {
  font-style: normal;
  font-size: 12px;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}

.acct-showpw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -2px 0 12px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
}

.acct-auth-foot {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

.acct-link-btn {
  border: none;
  background: none;
  padding: 0 2px;
  font: inherit;
  font-weight: 800;
  color: var(--nplus-primary);
  text-decoration: underline;
  cursor: pointer;
}

/* 结算弹窗里的账号提示条 */
.acct-checkout-strip {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #0369a1;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.acct-checkout-strip.is-guest {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

.acct-checkout-strip a {
  font-weight: 800;
  text-decoration: underline;
}

/* 商城页查单区上方的账号提示 */
.acct-lookup-hint {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.acct-lookup-hint.is-authed {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.acct-lookup-hint a {
  font-weight: 800;
  text-decoration: underline;
  color: var(--nplus-primary);
}

/* 账号页面 */
.acct-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.18) 0%, transparent 46%),
    linear-gradient(142deg, #e8f5ff 0%, #edfcf9 55%, #f6fbff 100%);
  padding: 30px 0 32px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
}

.acct-wrap {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.acct-hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}

.acct-hero p {
  margin: 0;
  font-size: 14.5px;
  color: #475569;
}

.acct-main {
  padding: 28px 0 64px;
  background: var(--surface-page);
  min-height: 52vh;
}

.acct-card {
  margin-bottom: 20px;
}

.acct-loading {
  text-align: center;
  color: var(--ink-3);
  padding: 56px 16px;
}

.acct-guest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: start;
}

.acct-benefits h3 {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-1);
}

.acct-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.acct-benefits li {
  position: relative;
  padding-left: 32px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

.acct-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acct-benefits li strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink-1);
}

.acct-benefits-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-mid);
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

.acct-notice {
  margin-bottom: 16px;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.acct-notice.is-warn {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.acct-notice.is-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.acct-hello {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.acct-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #14b8a6);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acct-hello-text {
  flex: 1;
  min-width: 200px;
}

.acct-hello-text h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink-1);
  overflow-wrap: anywhere;
}

.acct-hello-text p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.acct-hello-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.acct-btn {
  padding: 10px 22px;
  font-size: 14px;
  justify-content: center;
}

.acct-btn-ghost {
  padding: 10px 18px;
  font-size: 13.5px;
  border-radius: 999px;
  margin-right: 0;
}

.acct-main-tabs {
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.acct-main-tabs .acct-tab.is-active {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.22);
}

.acct-main-tabs .acct-tab.is-active em {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.acct-orders-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.acct-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acct-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}

.acct-chip:hover {
  border-color: var(--nplus-primary);
  color: var(--nplus-primary);
}

.acct-chip.is-active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

.acct-chip em {
  font-style: normal;
  font-size: 12px;
  margin-left: 2px;
  opacity: 0.8;
}

.acct-inline-msg {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
}

.acct-inline-msg:empty {
  display: none;
}

.acct-empty {
  text-align: center;
  padding: 40px 16px 28px;
  color: var(--ink-3);
  font-size: 14px;
}

.acct-empty p {
  margin: 0 0 18px;
}

.acct-footnote {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.acct-para {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

.acct-subhead {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-1);
}

.acct-local-list {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.acct-local-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-page);
  font-size: 13px;
  color: var(--ink-3);
}

.acct-local-row code {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
}

.acct-local-row span {
  flex: 1;
  min-width: 120px;
}

.acct-local-row .admin-btn-sm {
  margin-right: 0;
}

.acct-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.acct-form .form-feedback.is-error {
  color: #dc2626;
}

/* 邮箱验证码一栏（注册、找回密码、账号页共用） */
.acct-code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.acct-code-row input {
  flex: 1;
  min-width: 0;
}

.acct-code-btn {
  flex-shrink: 0;
  min-width: 108px;
  padding: 0 14px;
  border: 1px solid var(--nplus-primary);
  border-radius: 12px;
  background: #ffffff;
  color: var(--nplus-primary);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.acct-code-btn:hover:not(:disabled) {
  background: var(--nplus-primary);
  color: #ffffff;
}

.acct-code-btn:disabled {
  border-color: var(--line-mid);
  color: var(--ink-3);
  cursor: not-allowed;
}

.acct-field-hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

.acct-field-hint:empty {
  display: none;
}

/* 登录表单里“显示密码”和“忘记密码”那一行 */
.acct-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -2px 0 12px;
  font-size: 13px;
}

.acct-row-between .acct-showpw {
  margin: 0;
}

.acct-forgot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--surface-page);
  font-size: 14.5px;
  color: var(--ink-1);
}

.acct-forgot-head .acct-link-btn {
  font-size: 13px;
}

/* “忘记密码？”“返回登录”单独占一侧：把能点的范围放大到手指好点的尺寸，文字位置不变 */
.acct-row-between .acct-link-btn,
.acct-forgot-head .acct-link-btn {
  padding: 10px 8px;
  margin: -10px -8px;
}

/* 会员价：商城列表上方的说明、商品页价格区下方的一行、商品卡片、购物车和结算清单 */
.vip-strip,
.tb-vip-line {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  flex-wrap: wrap;
  border: 1px solid #fde68a;
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
  color: #92400e;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.vip-strip {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13.5px;
}

.vip-strip[hidden] {
  display: none;
}

.tb-vip-line {
  margin: -10px 0 22px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.tb-vip-line.is-hint {
  font-size: 13px;
}

.tb-vip-line strong {
  font-size: 20px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--tb-hot);
}

.vip-strip a,
.tb-vip-line a {
  font-weight: 800;
  color: #b45309;
  text-decoration: underline;
  white-space: nowrap;
}

.tb-vip-tag {
  flex-shrink: 0;
  padding: 1px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tb-vip-note {
  font-size: 12.5px;
  color: #b45309;
}

.tb-vip-mini {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #b45309;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-vip-mini.is-off {
  font-weight: 400;
  color: var(--ink-3);
}

.cashier-vip-line {
  margin: 0 4px 16px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
}

.price-strike {
  font-size: 12.5px;
  font-weight: 400;
  color: #94a3b8;
  text-decoration: line-through;
}

.vip-excluded-note {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  font-style: normal;
  font-size: 12px;
  line-height: 1.7;
  color: #64748b;
  white-space: nowrap;
}

/* 账号页：会员等级 */
.acct-vip-card {
  display: flex;
  align-items: center;
  gap: 14px 16px;
  flex-wrap: wrap;
  border-color: #fde68a;
  background: linear-gradient(95deg, #fffbeb 0%, #fff7ed 100%);
}

.acct-vip-main {
  flex: 1;
  min-width: 220px;
}

.acct-vip-main strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #92400e;
  overflow-wrap: anywhere;
}

.acct-vip-main p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #92400e;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.acct-vip-bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: #fde68a;
  overflow: hidden;
}

.acct-vip-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* 账号页：邮箱 */
.acct-email-box {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line-mid);
}

.acct-email-now {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.acct-tag {
  flex-shrink: 0;
  padding: 1px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.acct-tag.is-ok {
  background: #dcfce7;
  color: #15803d;
}

.acct-tag.is-warn {
  background: #fef3c7;
  color: #b45309;
}

.acct-email-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.acct-email-actions .admin-btn-sm {
  margin-right: 0;
}

@media (max-width: 860px) {
  .acct-guest-grid,
  .acct-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .acct-settings-grid {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .acct-hero {
    padding: 22px 0 24px;
  }

  .acct-main {
    padding: 18px 0 48px;
  }

  .acct-tab {
    padding: 9px 6px;
    font-size: 13.5px;
  }

  .acct-hello-actions {
    width: 100%;
  }

  .acct-hello-actions .acct-btn,
  .acct-hello-actions .acct-btn-ghost {
    flex: 1;
    text-align: center;
  }

  .acct-local-row span {
    min-width: 0;
  }

  .acct-code-btn {
    min-width: 96px;
    padding: 0 10px;
    font-size: 13px;
  }

  .tb-vip-line {
    padding: 8px 12px;
  }

  .tb-vip-line strong {
    font-size: 18px;
  }

  .cashier-vip-line {
    text-align: left;
  }

  /* 后台的表格不是报价表，手机上的滑动提示换一句 */
  .admin-panel .pricing-table-scroll::before {
    content: "⇄ 左右滑动表格可以看到全部列";
  }
}

/* --------------------------------------------------------------------------
   5. 手机与平板触屏适配（补充）：点击区不小于 40px（主要按钮 44px）。只在窄屏 / 触屏下生效，桌面端不变。
   通用部分（输入框、弹窗、表格排成卡片）在 styles.css 末尾的同名段落里。
   -------------------------------------------------------------------------- */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .tb-search-bar button {
    min-height: 44px;
  }

  .tb-hot-words {
    align-items: center;
  }

  .tb-hot-words button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .shop-sort-btn {
    min-height: 40px;
  }

  .tb-cart-pill {
    min-height: 44px;
  }

  .tb-top-actions > a:not([hidden]) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* 会员价说明后面的“登录 / 注册 →”：文字位置不变，把能点的范围放大 */
  .vip-strip a,
  .tb-vip-line a {
    padding: 10px 8px;
    margin: -10px -8px;
  }

  /* 商城工具条右边的“我的订单查询 →”：文字位置不变，把能点的范围放大 */
  .shop-toolbar > div > a {
    padding: 10px 8px;
    margin: -10px -8px;
  }

  /* 商品页面包屑里的“官网首页 / 官方商城”：文字位置不变，能点的范围上下各多出 12px */
  .tb-breadcrumb-links a {
    padding: 12px 6px;
    margin: 0 -6px;
  }

  .tb-qty-wrap button {
    width: 44px;
    height: 44px;
  }

  .tb-qty-wrap input {
    width: 56px;
    height: 44px;
  }

  .acct-tab {
    min-height: 44px;
  }

  .acct-chip {
    min-height: 40px;
  }

  .acct-showpw {
    min-height: 40px;
  }

  .acct-showpw input {
    width: 18px;
    height: 18px;
  }

  /* 查单区提示里的“登录后在「我的订单」里查看”：文字位置不变，能点的范围上下各多出 10px */
  .acct-lookup-hint a {
    padding: 10px 6px;
    margin: 0 -6px;
  }

  .admin-btn-sm {
    min-height: 40px;
  }

  a.admin-btn-sm:not([hidden]),
  label.admin-btn-sm:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 后台订单行里的文字按钮和“处理记录”折叠条：文字位置不变，把能点的范围放大 */
  .xes-price-table button[data-ord-act="view-owner"] {
    padding: 11px 6px !important;
    margin: -11px -6px;
  }

  .xes-price-table summary {
    padding: 11px 0;
  }
}

@media (max-width: 640px) {
  /* 后台顶部那一行：手机上只留标志，把宽度让给“当前栏目 + 菜单”按钮；点开后栏目排成两列 */
  .admin-brand > div {
    display: none;
  }

  .admin-menu-toggle {
    max-width: none;
  }

  .admin-nav-btn {
    flex-basis: calc(50% - 4px);
  }

  .admin-sidebar > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar > div:last-child > button {
    grid-column: 1 / -1;
  }

  /* 后台各栏目顶部的搜索框：手机上占满一行，提示文字能看全 */
  .admin-card input[type="search"] {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   兑换码兑换（买家）：入口、输入框、确认兑换那一屏
   -------------------------------------------------------------------------- */

/* 商城工具条上的“兑换码兑换”：和旁边的购物车按钮一样大，换成绿色区分开 */
.tb-cart-pill.tb-redeem-pill {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.tb-cart-pill.tb-redeem-pill:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

/* 商品页购买按钮下面、结算表单下面的“有兑换码？”一行 */
.tb-redeem-line,
.redeem-entry-line {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
}

.tb-redeem-line span {
  margin-left: 6px;
}

.redeem-entry-line {
  text-align: center;
}

/* 兑换码输入框：等宽字体、字号大一点，方便对着核对（写在 .contact-field input 后面，按更具体的选择器覆盖它） */
.contact-field input.redeem-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-field input.redeem-code-input::placeholder {
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.redeem-hint {
  margin: -6px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* 确认兑换：能换到的商品 */
.redeem-target {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--surface-page);
  border: 1px solid var(--line-soft);
}

.redeem-target img {
  width: 72px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.redeem-target-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.redeem-target-main strong {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-1);
  overflow-wrap: anywhere;
}

.redeem-target-main span {
  font-size: 13px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.redeem-target-main em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-3);
}

.redeem-target-price {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.redeem-target-price strong {
  font-size: 22px;
  line-height: 1.2;
  color: #047857;
}

.redeem-target-price span {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
}

.redeem-code-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.redeem-code-line code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-1);
  overflow-wrap: anywhere;
}

.redeem-deliver-hint {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 13px;
  color: #065f46;
  line-height: 1.7;
}

/* 没兑换成时，提示后面跟的链接和补充说明 */
.redeem-err-link {
  font-weight: 800;
  color: var(--nplus-primary);
  text-decoration: underline;
  white-space: nowrap;
}

.redeem-err-more {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: var(--ink-3);
}

/* 「我的订单」表头右边的两个按钮 */
.acct-orders-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  /* 小屏手机：24 个字符（20 位码 + 4 根横线）要在一行里放下 */
  .contact-field input.redeem-code-input {
    font-size: 16px;
    letter-spacing: 0.02em;
    padding-left: 10px;
    padding-right: 10px;
  }

  .redeem-target {
    gap: 10px;
    padding: 12px;
  }

  .redeem-target img {
    width: 56px;
    height: 46px;
  }
}

/* --------------------------------------------------------------------------
   后台 · 兑换码管理
   -------------------------------------------------------------------------- */

/* 生成表单里的商品、规格、备注：比数量、日期那几格宽 */
.redeem-field-wide {
  flex: 1 1 240px;
}

.redeem-field-wide select,
.redeem-field-wide input {
  width: 100%;
}

.redeem-lookup {
  margin-bottom: 4px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.redeem-lookup > label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.redeem-lookup > label strong {
  font-size: 15px;
  color: #0f172a;
}

.redeem-lookup > label span {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.7;
}

.redeem-lookup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.redeem-lookup-row input {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 360px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-mid);
  background: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.redeem-lookup-row input:focus {
  outline: none;
  border-color: var(--nplus-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
}

.redeem-lookup-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 后台里显示的兑换码：等宽、不折行，点一下整个选中 */
.redeem-code-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0f172a;
  white-space: nowrap;
  user-select: all;
}

/* 刚生成的一批：一行一个，放在只读的文本框里方便全选复制 */
.redeem-fresh-codes {
  display: block;
  width: 100%;
  min-height: 120px;
  max-height: 320px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px dashed #f59e0b;
  border-radius: 10px;
  background: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: #0f172a;
  resize: vertical;
}

.redeem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.redeem-actions .admin-btn-sm {
  margin-right: 0;
}

/* @redesign-2026-11:begin */
/* ==========================================================================
   6. 2026-11 视觉升级：商城（shop.html）
   页头、“本页内容”、区块标题、卡片光效这些各页共用的部分在 styles.css“内页共用”一节；这里只放商城自己的，
   并盖掉本文件第 1 节里的旧样式（所以写在最后）。字号和留白用 --pu 这个基准：窗口越宽越大
   （1366 宽是 14px，1920 宽约 17px，2560 宽是 20px）。
   动画都写在 prefers-reduced-motion: no-preference 里：系统设置了“减少动态效果”时页面是静止的。
   ========================================================================== */

/* ---- 页头：左边标题，右边搜索框、热门搜索、店铺公告 ---- */
.shop-head .page-head-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--pu) * 43));
}

.shop-head .acct-link-btn {
  text-decoration-color: rgba(2, 132, 199, 0.4);
  text-underline-offset: 0.22em;
}

.shop-head .shop-search-wrap {
  flex: none;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.tb-search-bar {
  align-items: center;
  padding: calc(var(--pu) * 0.36);
  border-color: rgba(125, 211, 252, 0.9);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 24px 44px -28px rgba(15, 60, 100, 0.6), 0 2px 6px rgba(15, 60, 100, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* 光标在搜索框里时，整条亮起来 */
.tb-search-bar:focus-within {
  border-color: var(--nplus-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.14), 0 24px 46px -26px rgba(2, 132, 199, 0.6);
}

.tb-search-icon {
  flex: none;
  width: calc(var(--pu) * 1.25);
  height: calc(var(--pu) * 1.25);
  margin-left: calc(var(--pu) * 0.9);
  fill: none;
  stroke: var(--ink-4);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 0.25s ease;
}

.tb-search-bar:focus-within .tb-search-icon {
  stroke: var(--nplus-primary);
}

.tb-search-bar input {
  min-width: 0;
  padding: calc(var(--pu) * 0.62) calc(var(--pu) * 0.7);
  font-size: max(15px, calc(var(--pu) * 0.98));
}

.tb-search-bar button {
  position: relative;
  flex: none;
  overflow: hidden;
  padding: calc(var(--pu) * 0.62) calc(var(--pu) * 1.7);
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 54%, #14b8a6 100%);
  box-shadow: 0 10px 20px -8px rgba(2, 132, 199, 0.6);
  font-size: max(15px, calc(var(--pu) * 0.98));
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.tb-search-bar button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -8px rgba(2, 132, 199, 0.7);
}

/* 搜索按钮上的一道高光：鼠标移上去时扫过去一次 */
.tb-search-bar button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-170%) skewX(-18deg);
  pointer-events: none;
}

.tb-hot-words {
  align-items: center;
  gap: calc(var(--pu) * 0.5);
  margin-top: calc(var(--pu) * 0.8);
  padding-left: calc(var(--pu) * 0.5);
  font-size: max(12.5px, calc(var(--pu) * 0.78));
}

.tb-hot-words button {
  padding: 0.28em 0.9em;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px -6px rgba(15, 60, 100, 0.3);
  font-size: max(12.5px, calc(var(--pu) * 0.78));
  font-weight: 600;
  transition: transform 0.25s var(--ease-spring), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tb-hot-words button:hover {
  transform: translateY(-2px);
  border-color: var(--nplus-primary);
  background: var(--nplus-primary);
  box-shadow: 0 8px 16px -8px rgba(2, 132, 199, 0.6);
}

/* 店铺公告：搜索框下面的一行（文字在后台改）；没写公告时这一行不显示。
   只占一行：写得长、放不下时文字慢慢左右滑动（shop-client.js 的 fitShopNotice 量好距离，写到 --shift / --dur 上），鼠标停在上面时停住；
   手机上、或者系统设置了“减少动态效果”时改成换行显示 */
.shop-notice {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: calc(var(--pu) * 0.8);
  padding: 0.5em 1em 0.5em 0.55em;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: calc(var(--pu) * 0.85);
  background: rgba(236, 253, 250, 0.74);
  font-size: max(13px, calc(var(--pu) * 0.8));
  line-height: 1.6;
  color: #0f766e;
}

.shop-notice strong {
  flex: none;
  padding: 0.04em 0.72em;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  font-size: 0.92em;
  font-weight: 800;
  color: #ffffff;
}

.shop-notice-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.shop-notice-text.is-sliding {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.2em), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 2.2em), transparent);
}

#shopNoticeText {
  display: inline-block;
  padding-right: 2.2em;
  vertical-align: top;
}

.shop-notice:has(#shopNoticeText:empty) {
  display: none;
}

/* ---- 收费标准：一类一张卡，颜色按方向分（和首页、服务项目页的四个颜色一致）；放不下时自己轮换 ---- */
.page-block.shop-prices {
  padding: calc(var(--pu) * 1.5) 0 calc(var(--pu) * 1.1);
}

.shop-prices .page-block-head {
  margin-bottom: calc(var(--pu) * 0.5);
}

/* 卡片抬起来和底下的阴影要地方：这一行上下留出空，再用负边距抵掉 */
.hscroll-track.price-cats {
  gap: calc(var(--pu) * 0.8);
  margin-bottom: -14px;
  padding: 8px 4px 26px;
  scroll-padding-inline: 4px;
}

.price-cat {
  --tone: #0284c7;
  --tone-2: #38bdf8;
  --tone-ink: #0369a1;
  --tone-rgb: 2, 132, 199;
  --glow-rgb: var(--tone-rgb);
  position: relative;
  width: max(212px, calc(var(--pu) * 13.6));
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: calc(var(--pu) * 0.3);
  overflow: hidden;
  padding: calc(var(--pu) * 1.05) calc(var(--pu) * 1.1) calc(var(--pu) * 0.95);
  border: 1px solid rgba(var(--tone-rgb), 0.16);
  border-radius: calc(var(--pu) * 1.15);
  background: linear-gradient(165deg, #ffffff 0%, #ffffff 46%, rgba(var(--tone-rgb), 0.075) 100%);
  box-shadow: 0 16px 26px -24px rgba(var(--tone-rgb), 0.8), 0 1px 2px rgba(15, 41, 66, 0.04);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.25s ease;
}

.price-cat.is-contest {
  --tone: #d97706;
  --tone-2: #fbbf24;
  --tone-ink: #b45309;
  --tone-rgb: 217, 119, 6;
}

.price-cat.is-paper {
  --tone: #6366f1;
  --tone-2: #a5b4fc;
  --tone-ink: #4338ca;
  --tone-rgb: 99, 102, 241;
}

.price-cat.is-baoyan {
  --tone: #0d9488;
  --tone-2: #5eead4;
  --tone-ink: #0f766e;
  --tone-rgb: 13, 148, 136;
}

.price-cat.is-ip {
  --tone: #64748b;
  --tone-2: #cbd5e1;
  --tone-ink: #475569;
  --tone-rgb: 100, 116, 139;
}

/* 卡片顶上的一道色条：平时只有一小段，鼠标移上去时铺满 */
.price-cat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tone), var(--tone-2));
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.5s var(--ease-spring);
}

.price-cat:hover,
.price-cat:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(var(--tone-rgb), 0.5);
  box-shadow: 0 28px 38px -26px rgba(var(--tone-rgb), 0.8), 0 2px 6px rgba(15, 41, 66, 0.05);
}

.price-cat:hover::after,
.price-cat:focus-visible::after {
  transform: scaleX(1);
}

.price-cat-tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.16em 0.8em 0.16em 0.65em;
  border-radius: 999px;
  background: rgba(var(--tone-rgb), 0.1);
  font-size: max(12px, calc(var(--pu) * 0.74));
  font-weight: 700;
  line-height: 1.5;
  color: var(--tone-ink);
}

.price-cat-tag::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--tone);
}

.price-cat-name {
  margin-top: calc(var(--pu) * 0.2);
  font-size: max(15.5px, calc(var(--pu) * 0.98));
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-1);
}

.price-cat-note {
  font-size: max(12.5px, calc(var(--pu) * 0.78));
  line-height: 1.55;
  color: var(--ink-3);
}

.price-cat-go {
  align-self: end;
  justify-self: start;
  margin-top: calc(var(--pu) * 0.4);
  font-size: max(12.5px, calc(var(--pu) * 0.78));
  font-weight: 700;
  color: var(--tone-ink);
  transition: transform 0.35s var(--ease-spring);
}

.price-cat:hover .price-cat-go,
.price-cat:focus-visible .price-cat-go {
  transform: translateX(5px);
}

/* ---- 全部商品：标题行（标题、共几款、兑换码 / 购物车 / 查订单），下面一条是分类和排序 ---- */
.page-block.shop-goods {
  padding-top: calc(var(--pu) * 1.9);
  padding-bottom: calc(var(--pu) * 2);
}

.shop-goods-head {
  align-items: center;
  margin-bottom: calc(var(--pu) * 0.9);
}

.shop-goods-head .page-block-sub {
  margin-right: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.shop-goods-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px calc(var(--pu) * 0.6);
}

.shop-goods-actions .tb-cart-pill {
  padding: 0.5em 1.1em;
  font-size: max(13px, calc(var(--pu) * 0.82));
  transition: transform 0.25s var(--ease-spring), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.shop-goods-actions .tb-cart-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -10px rgba(2, 132, 199, 0.6);
}

.shop-goods-actions .tb-redeem-pill:hover {
  box-shadow: 0 10px 18px -10px rgba(5, 150, 105, 0.6);
}

.shop-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px calc(var(--pu) * 1);
  margin-bottom: calc(var(--pu) * 1.3);
  padding: calc(var(--pu) * 0.42);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: calc(var(--pu) * 1.25);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 34px -28px rgba(15, 60, 100, 0.55), 0 1px 3px rgba(15, 60, 100, 0.04);
}

.shop-filter .pricing-cat-tabs {
  flex: 0 1 auto;
  min-width: 0;
  gap: calc(var(--pu) * 0.25);
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* 分类按钮是取回数据后才画的，先留出一行按钮的高度 */
#shopCatTabs {
  min-height: max(40px, calc(var(--pu) * 2.5));
}

.shop-filter .pricing-cat-btn {
  min-height: max(40px, calc(var(--pu) * 2.5));
  padding: 0 calc(var(--pu) * 1.05);
  border-radius: calc(var(--pu) * 0.9);
  font-size: max(14px, calc(var(--pu) * 0.84));
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.shop-filter .pricing-cat-btn:hover {
  background: rgba(2, 132, 199, 0.08);
  color: var(--nplus-primary);
}

.shop-filter .pricing-cat-btn.is-active,
.shop-filter .pricing-cat-btn.is-active:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 54%, #14b8a6 100%);
  box-shadow: 0 10px 20px -8px rgba(2, 132, 199, 0.6);
  color: #ffffff;
}

.shop-filter .shop-sort-bar {
  flex: none;
  gap: 2px;
  padding: 3px;
  border-radius: calc(var(--pu) * 0.85);
  background: var(--surface-soft);
  box-shadow: none;
}

.shop-sort-btn {
  min-height: max(34px, calc(var(--pu) * 2.1));
  padding: 0 calc(var(--pu) * 0.85);
  border-radius: calc(var(--pu) * 0.65);
  font-size: max(13px, calc(var(--pu) * 0.78));
  color: var(--ink-3);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.shop-sort-btn:hover {
  color: var(--nplus-primary);
}

.shop-sort-btn.is-active {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 60, 100, 0.14);
  color: var(--nplus-primary-dark);
}

.shop-goods .vip-strip {
  margin-bottom: calc(var(--pu) * 1.1);
  padding: 0.7em 1.2em;
  border-radius: calc(var(--pu) * 0.9);
  font-size: max(13.5px, calc(var(--pu) * 0.82));
}

/* ---- 商品卡片（商城列表和商品详情页的“其他商品”共用） ---- */
.shop-products-grid {
  gap: calc(var(--pu) * 1.4);
}

.tb-prod-card {
  position: relative;
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: calc(var(--pu) * 1.25);
  box-shadow: 0 18px 30px -28px rgba(15, 60, 100, 0.6), 0 1px 3px rgba(15, 60, 100, 0.04);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s ease, box-shadow 0.4s ease;
}

.tb-prod-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 36px 50px -32px rgba(2, 132, 199, 0.65), 0 4px 10px rgba(15, 60, 100, 0.05);
}

.tb-prod-thumb {
  background: linear-gradient(160deg, #eef7fd, #f2fbf8);
}

.tb-prod-thumb img {
  transition: transform 0.7s var(--ease-spring);
}

.tb-prod-card:hover .tb-prod-thumb img {
  transform: scale(1.07);
}

/* 封面图整张显示、不裁切（原来是裁切铺满：横图上的字会被切掉两边，竖图只剩中间一截）。
   四周空出来的地方用同一张图的虚化版垫底：图片框的背景就是这张图（地址由 shop-client.js 的 bindCardCovers 写进 --cover），
   上面的 <img> 用 backdrop-filter 把背后虚化、稍微压暗，再把完整的图画在最上面。
   不支持 backdrop-filter 的旧浏览器不进这一段，还是原来的裁切铺满 */
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .tb-prod-thumb {
    background-image: var(--cover, none), linear-gradient(160deg, #eef7fd, #f2fbf8);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .tb-prod-thumb img {
    object-fit: contain;
    -webkit-backdrop-filter: blur(16px) saturate(1.35) brightness(0.94);
    backdrop-filter: blur(16px) saturate(1.35) brightness(0.94);
  }
}

/* 鼠标移到卡片上：图片稍微压暗，中间浮出“查看详情” */
.tb-prod-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 41, 66, 0.04), rgba(15, 41, 66, 0.3));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tb-prod-thumb::after {
  content: "查看详情 →";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  padding: 0.5em 1.3em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 24px -8px rgba(15, 41, 66, 0.5);
  font-size: max(13px, calc(var(--pu) * 0.8));
  font-weight: 800;
  color: var(--nplus-primary-dark);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 14px));
  transition: opacity 0.3s ease, transform 0.45s var(--ease-spring);
  pointer-events: none;
}

@media (hover: hover) {
  .tb-prod-card:hover .tb-prod-thumb::before {
    opacity: 1;
  }

  .tb-prod-card:hover .tb-prod-thumb::after {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.tb-prod-badge,
.tb-prod-deliver {
  z-index: 3;
  font-size: max(12px, calc(var(--pu) * 0.72));
}

.tb-prod-badge {
  top: calc(var(--pu) * 0.75);
  left: calc(var(--pu) * 0.75);
  padding: 0.28em 0.8em;
  border-radius: 0.7em;
  box-shadow: 0 6px 14px -4px rgba(2, 132, 199, 0.55);
}

/* 图片右下角的发货方式（“付款后自动发货”这一类，文字在后台商品里填） */
.tb-prod-deliver {
  position: absolute;
  right: calc(var(--pu) * 0.7);
  bottom: calc(var(--pu) * 0.7);
  max-width: calc(100% - var(--pu) * 1.4);
  padding: 0.24em 0.8em;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 6px 14px -6px rgba(4, 120, 87, 0.7);
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-prod-body {
  padding: calc(var(--pu) * 1) calc(var(--pu) * 1.1) calc(var(--pu) * 1.05);
}

.tb-prod-body h3 {
  margin-bottom: calc(var(--pu) * 0.55);
  font-size: max(15px, calc(var(--pu) * 0.96));
  transition: color 0.25s ease;
}

.tb-prod-card:hover .tb-prod-body h3 {
  color: var(--nplus-primary-dark);
}

.tb-prod-tags {
  gap: calc(var(--pu) * 0.35);
  margin-bottom: calc(var(--pu) * 0.8);
}

.tb-prod-tags span {
  padding: 0.1em 0.6em;
  border-color: rgba(125, 211, 252, 0.7);
  border-radius: 0.5em;
  font-size: max(12px, calc(var(--pu) * 0.72));
}

.tb-price small {
  font-size: max(14px, calc(var(--pu) * 0.86));
}

.tb-price b {
  font-size: max(24px, calc(var(--pu) * 1.55));
}

.tb-price em,
.tb-sales {
  font-size: max(12px, calc(var(--pu) * 0.74));
}

.tb-vip-mini {
  font-size: max(12.5px, calc(var(--pu) * 0.76));
}

/* ---- 订单与发货查询 ---- */
.page-block.shop-orders {
  padding-top: 0;
}

.page-block.shop-orders::before {
  display: none;
}

.pricing-group-card.order-lookup-card {
  margin-bottom: 0;
  padding: calc(var(--pu) * 1.7) calc(var(--pu) * 1.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: calc(var(--pu) * 1.5);
  background:
    radial-gradient(46% 130% at 100% 0%, rgba(56, 189, 248, 0.13), rgba(56, 189, 248, 0) 70%),
    radial-gradient(40% 110% at 0% 100%, rgba(45, 212, 191, 0.09), rgba(45, 212, 191, 0) 70%),
    #ffffff;
  box-shadow: 0 30px 54px -42px rgba(15, 60, 100, 0.55), 0 2px 6px rgba(15, 60, 100, 0.04);
}

.order-lookup-card .pricing-group-head {
  margin-bottom: calc(var(--pu) * 1);
}

.order-lookup-card .pricing-group-head h3 {
  position: relative;
  padding-left: calc(var(--pu) * 1);
  font-size: clamp(19px, calc(var(--pu) * 1.3), 27px);
}

.order-lookup-card .pricing-group-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: calc(var(--pu) * 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 55%, #14b8a6 100%);
}

.order-lookup-card .pricing-group-head span {
  font-size: max(13.5px, calc(var(--pu) * 0.84));
}

.order-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--pu) * 0.7);
  max-width: calc(var(--pu) * 64);
}

.order-lookup-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: calc(var(--pu) * 0.72) calc(var(--pu) * 1.2);
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  background: #ffffff;
  font-size: max(14.5px, calc(var(--pu) * 0.9));
  color: var(--ink-1);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-lookup-form input:focus {
  border-color: var(--nplus-primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.13);
}

.order-lookup-form .btn-primary-glow {
  padding: calc(var(--pu) * 0.72) calc(var(--pu) * 1.9);
  font-size: max(14.5px, calc(var(--pu) * 0.92));
}

.order-lookup-note {
  margin: calc(var(--pu) * 0.7) 0 0;
  font-size: max(12.5px, calc(var(--pu) * 0.76));
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---- 动画 ---- */
@keyframes shopCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
}

/* 公告文字来回滑：两头各停一会儿 */
@keyframes shopNoticeSlide {
  0%,
  14% {
    transform: translateX(0);
  }
  86%,
  100% {
    transform: translateX(var(--shift, 0px));
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 641px) {
  .shop-notice-text.is-sliding #shopNoticeText {
    animation: shopNoticeSlide var(--dur, 10s) ease-in-out 1.8s infinite alternate;
  }

  .shop-notice:hover #shopNoticeText {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 640px) {
  .shop-notice {
    align-items: baseline;
  }

  .shop-notice-text,
  .shop-notice-text.is-sliding {
    overflow: visible;
    white-space: normal;
    -webkit-mask-image: none;
    mask-image: none;
  }

  #shopNoticeText {
    display: inline;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* 打开页面时，页头右边的搜索框、热门搜索、公告依次浮现 */
  .shop-head .shop-search-wrap > * {
    animation: homeRise 0.8s var(--ease-spring) 0.2s backwards;
  }

  .shop-head .shop-search-wrap > :nth-child(2) {
    animation-delay: 0.28s;
  }

  .shop-head .shop-search-wrap > :nth-child(3) {
    animation-delay: 0.36s;
  }

  /* 商品卡片一张一张错开浮现：刚画出来、换分类、换排序、搜索之后都会来一次。
     只在动画开始前占位（backwards），放完就放手，不影响鼠标移上去时的抬起 */
  .shop-products-grid > .tb-prod-card {
    animation: shopCardIn 0.6s var(--ease-spring) 0.36s backwards;
  }

  .shop-products-grid > .tb-prod-card:nth-child(1) {
    animation-delay: 0s;
  }

  .shop-products-grid > .tb-prod-card:nth-child(2) {
    animation-delay: 0.045s;
  }

  .shop-products-grid > .tb-prod-card:nth-child(3) {
    animation-delay: 0.09s;
  }

  .shop-products-grid > .tb-prod-card:nth-child(4) {
    animation-delay: 0.135s;
  }

  .shop-products-grid > .tb-prod-card:nth-child(5) {
    animation-delay: 0.18s;
  }

  .shop-products-grid > .tb-prod-card:nth-child(6) {
    animation-delay: 0.225s;
  }

  .shop-products-grid > .tb-prod-card:nth-child(7) {
    animation-delay: 0.27s;
  }

  .shop-products-grid > .tb-prod-card:nth-child(8) {
    animation-delay: 0.315s;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tb-search-bar button:hover::after {
    animation: innerShine 0.85s ease-out;
  }
}

/* ---- 窗口变窄 ---- */
@media (min-width: 769px) and (max-width: 1120px) {
  /* 平板和小窗口：商城列表排三列（两列的卡片太大，一屏看不到几件） */
  #shopProductsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .shop-head .page-head-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-head .shop-search-wrap {
    max-width: 720px;
  }
}

/* 触屏和窄屏：能点的地方不小于 40px（和本文件第 5 节是同一条规矩） */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .shop-sort-btn {
    min-height: 40px;
  }

  .shop-goods-actions .tb-cart-pill {
    padding-top: 0;
    padding-bottom: 0;
  }

  .shop-goods-actions .page-more {
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .shop-filter {
    padding: 5px;
    border-radius: 16px;
  }

  /* 分类和排序各占一行，都可以左右滑 */
  .shop-filter .pricing-cat-tabs,
  .shop-filter .shop-sort-bar {
    flex: 1 1 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .shop-filter .pricing-cat-tabs::-webkit-scrollbar,
  .shop-filter .shop-sort-bar::-webkit-scrollbar {
    display: none;
  }

  .shop-filter .pricing-cat-btn,
  .shop-sort-btn {
    flex: none;
  }

  .shop-filter .shop-sort-bar {
    display: flex;
  }

  .shop-sort-btn {
    flex: 1 0 auto;
  }

  .pricing-group-card.order-lookup-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .order-lookup-form input,
  .order-lookup-form .btn-primary-glow {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  /* 热门搜索在手机上是可以左右滑的一行：上下留一点空，按钮的阴影不被切掉 */
  .tb-hot-words {
    margin-bottom: -8px;
    padding: 2px 4px 8px;
  }

  .tb-search-icon {
    margin-left: 10px;
  }

  .price-cat {
    width: 196px;
  }

  .shop-goods-head .page-block-sub {
    margin-right: 0;
  }

  .shop-goods-actions {
    width: 100%;
  }

  .shop-products-grid {
    gap: 10px;
  }

  .tb-prod-card {
    border-radius: 14px;
  }

  .tb-prod-body {
    padding: 10px 11px 12px;
  }

  .tb-prod-body h3 {
    margin-bottom: 6px;
    font-size: 13.5px;
  }

  .tb-prod-tags {
    margin-bottom: 8px;
  }

  .tb-prod-tags span {
    padding: 1px 5px;
  }

  .tb-price b {
    font-size: 19px;
  }

  .tb-prod-badge {
    top: 8px;
    left: 8px;
  }

  .tb-prod-deliver {
    right: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    padding: 2px 7px;
  }
}

/* ==========================================================================
   7. 2026-11 视觉升级：商品详情（product.html）
   顶部是和内页页头同一套的流动背景（光晕、方格线、线条动画），面包屑和购买区浮在上面；
   下面依次是商品说明、实力证明、其他商品。这里盖掉本文件第 2 节里的旧样式（所以写在最后）。
   购买区里面的内容每次选规格、改数量、换图片都会整块重画（shop-client.js 的 renderBuyBox），
   所以进场动画只挂在外面那张卡片上：里面的东西挂了的话，每点一下都会重放一遍。
   动画都写在 prefers-reduced-motion: no-preference 里：系统设置了“减少动态效果”时页面是静止的。
   ========================================================================== */

/* ---- 顶部背景 ---- */
.prod-stage {
  position: relative;
  isolation: isolate;
  padding-bottom: calc(var(--pu) * 2);
  background:
    radial-gradient(90% 70% at 50% -30%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #e2f2ff 0%, #eafbf6 42%, #f1f8fd 100%);
}

/* 背景层越往下越淡，到购买区底下正好淡完，和下面一块的底色接上 */
.prod-stage .page-head-fx {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 36%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 36%, transparent 94%);
}

.prod-stage .ph-aurora.is-c {
  left: 30vw;
  top: -6vw;
  bottom: auto;
}

/* ---- 面包屑一行：左边是当前位置，右边是查订单和购物车 ---- */
.tb-breadcrumb-bar {
  flex-wrap: nowrap;
  gap: calc(var(--pu) * 0.8);
  padding: calc(var(--pu) * 1.2) 0 calc(var(--pu) * 1.05);
  font-size: max(13px, calc(var(--pu) * 0.84));
}

.tb-breadcrumb-links {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
  padding: 0.44em 1.15em;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(14, 116, 144, 0.08);
  line-height: 1.5;
  white-space: nowrap;
}

.tb-breadcrumb-links a {
  flex: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.tb-breadcrumb-links i {
  flex: none;
  font-style: normal;
  color: var(--ink-4);
}

/* 商品名太长时在这里截断，不把右边的按钮挤到下一行 */
.tb-breadcrumb-links strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: var(--nplus-primary-dark);
}

.tb-top-actions {
  flex: none;
  gap: calc(var(--pu) * 0.6);
}

.tb-top-actions .tb-cart-pill {
  padding: 0.5em 1.1em;
  font-size: max(13px, calc(var(--pu) * 0.82));
  transition: transform 0.25s var(--ease-spring), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.tb-top-actions .tb-cart-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -10px rgba(2, 132, 199, 0.6);
}

/* ---- 购买区：一张大卡片，左边图片，右边标题、价格、规格、数量、按钮 ---- */
.tb-buy-box {
  position: relative;
  grid-template-columns: minmax(0, calc(var(--pu) * 37)) minmax(0, 1fr);
  gap: calc(var(--pu) * 2.6);
  margin-bottom: 0;
  padding: calc(var(--pu) * 1.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: calc(var(--pu) * 1.9);
  background:
    radial-gradient(46% 60% at 100% 0%, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0) 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(45, 212, 191, 0.08), rgba(45, 212, 191, 0) 70%),
    #ffffff;
  box-shadow: 0 44px 70px -52px rgba(15, 60, 100, 0.6), 0 2px 8px rgba(15, 60, 100, 0.04);
}

.tb-buy-box > div {
  min-width: 0;
}

/* 商品数据还没取回来：先占住高度，一道浅色的光扫过去，页面不会先缩成一条再撑开 */
.tb-buy-box:empty {
  min-height: calc(var(--pu) * 33);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 32%, rgba(224, 242, 254, 0.9) 50%, rgba(255, 255, 255, 0) 68%) 130% 0 / 240% 100% no-repeat,
    #ffffff;
}

/* 左边：大图 + 小图 */
.tb-gallery-main {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: calc(var(--pu) * 1.35);
  background:
    radial-gradient(70% 70% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(150deg, #e8f4fd 0%, #edfbf7 55%, #f0f1ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 22px 36px -30px rgba(15, 60, 100, 0.6);
}

.tb-gallery-main img {
  padding: calc(var(--pu) * 0.7);
  transition: transform 0.7s var(--ease-spring);
}

.tb-gallery-main:hover img {
  transform: scale(1.05);
}

/* 大图右下角的提示：鼠标移上去时浮出来（触屏上一直显示） */
.tb-gallery-main::after {
  content: "点击放大";
  position: absolute;
  right: calc(var(--pu) * 0.8);
  bottom: calc(var(--pu) * 0.8);
  padding: 0.3em 0.95em;
  border-radius: 999px;
  background: rgba(15, 41, 66, 0.62);
  font-size: max(12px, calc(var(--pu) * 0.76));
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-spring);
  pointer-events: none;
}

.tb-gallery-main:hover::after {
  opacity: 1;
  transform: none;
}

.tb-thumb-strip {
  gap: calc(var(--pu) * 0.6);
  margin-top: calc(var(--pu) * 0.7);
  padding: 4px 2px 6px;
  scrollbar-width: none;
}

.tb-thumb-strip::-webkit-scrollbar {
  display: none;
}

.tb-thumb-btn {
  width: calc(var(--pu) * 5.4);
  height: calc(var(--pu) * 4.4);
  border-radius: calc(var(--pu) * 0.8);
  background: #f1f8fd;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.12);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease, box-shadow 0.25s ease;
}

.tb-thumb-btn img {
  border-radius: calc(var(--pu) * 0.5);
}

.tb-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 132, 199, 0.45);
}

.tb-thumb-btn.is-active {
  border-color: var(--nplus-primary);
  box-shadow: 0 10px 18px -10px rgba(2, 132, 199, 0.7);
}

/* 只有一张图时不用再放一张小图 */
.tb-thumb-btn:only-child {
  display: none;
}

/* 右边：从上到下是店铺标签、商品名、一句话介绍、价格、规格、数量、保障、按钮 */
.tb-store-flag {
  max-width: 100%;
  gap: 0.6em;
  margin-bottom: calc(var(--pu) * 0.7);
  padding: 0.28em 1em 0.28em 0.32em;
  border: 1px solid rgba(2, 132, 199, 0.14);
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.05);
}

.tb-store-flag span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: max(12.5px, calc(var(--pu) * 0.78));
  font-weight: 600;
  white-space: nowrap;
}

.tb-store-flag .tb-flag-self {
  flex: none;
  padding: 0.2em 0.85em;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #14b8a6);
  box-shadow: 0 6px 12px -6px rgba(2, 132, 199, 0.7);
  font-size: max(12px, calc(var(--pu) * 0.74));
}

.tb-detail-title {
  margin: 0 0 calc(var(--pu) * 0.45);
  font-family: var(--font-display);
  font-size: clamp(22px, calc(var(--pu) * 1.95), 40px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.tb-detail-sub {
  margin: 0 0 calc(var(--pu) * 1.1);
  font-size: max(14px, calc(var(--pu) * 0.96));
  line-height: 1.65;
  color: var(--ink-2);
}

/* 价格这一条：左边价格，右边已售和好评 */
.tb-price-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: calc(var(--pu) * 0.8) calc(var(--pu) * 1.4);
  margin-bottom: calc(var(--pu) * 1.3);
  padding: calc(var(--pu) * 1.1) calc(var(--pu) * 1.5);
  border: 1px solid rgba(125, 211, 252, 0.6);
  border-radius: calc(var(--pu) * 1.25);
  background: linear-gradient(100deg, #e9f6ff 0%, #ebfcf8 58%, #f2f3ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 30px -26px rgba(2, 132, 199, 0.7);
}

/* 右上角一团淡淡的光 */
.tb-price-panel::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -110%;
  z-index: -1;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.32), rgba(56, 189, 248, 0));
  pointer-events: none;
}

.tb-price-main {
  gap: 0.3em calc(var(--pu) * 0.7);
}

.tb-price-label {
  align-self: center;
  padding: 0.2em 0.85em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
  font-size: max(12.5px, calc(var(--pu) * 0.78));
  color: var(--nplus-primary-dark);
}

.tb-price-now {
  padding-bottom: 0.04em;
  font-size: clamp(36px, calc(var(--pu) * 3), 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tb-price-now small {
  margin-right: 0.08em;
  font-size: 0.5em;
}

/* 价格数字用深蓝到青绿的渐变色 */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .tb-price-now {
    background: linear-gradient(96deg, #0369a1 0%, #0284c7 46%, #0d9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.tb-price-old {
  font-size: max(13.5px, calc(var(--pu) * 0.86));
}

.tb-stat-pair {
  gap: 0;
  text-align: center;
}

.tb-stat-pair div {
  padding: 0 calc(var(--pu) * 1.2);
}

.tb-stat-pair div + div {
  border-left: 1px solid rgba(2, 132, 199, 0.18);
}

.tb-stat-pair div:last-child {
  padding-right: calc(var(--pu) * 0.2);
}

.tb-stat-pair div strong {
  font-family: var(--font-display);
  font-size: max(18px, calc(var(--pu) * 1.4));
  line-height: 1.25;
  color: var(--nplus-primary-dark);
  font-variant-numeric: tabular-nums;
}

.tb-stat-pair div span {
  font-size: max(12px, calc(var(--pu) * 0.74));
}

.tb-buy-box .tb-vip-line {
  margin: calc(var(--pu) * -0.6) 0 calc(var(--pu) * 1.3);
  padding: 0.6em 1.15em;
  border-radius: calc(var(--pu) * 0.9);
  font-size: max(13.5px, calc(var(--pu) * 0.86));
}

.tb-buy-box .tb-vip-line.is-hint {
  font-size: max(13px, calc(var(--pu) * 0.8));
}

/* 规格、数量：左边一小列是名称，右边是选项 */
.tb-prop-row {
  grid-template-columns: calc(var(--pu) * 5.2) minmax(0, 1fr);
  gap: calc(var(--pu) * 0.8);
  margin-bottom: calc(var(--pu) * 1.15);
}

.tb-prop-label {
  padding-top: calc(var(--pu) * 0.85);
  font-size: max(13.5px, calc(var(--pu) * 0.86));
}

/* 一个规格一张小卡片：名称、价格、一句说明；一行排几张看宽度，同一行的卡片一样高 */
.tb-sku-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--pu) * 12.6), 1fr));
  gap: calc(var(--pu) * 0.7);
}

.tb-sku-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: calc(var(--pu) * 0.8) calc(var(--pu) * 1) calc(var(--pu) * 0.9);
  border-radius: calc(var(--pu) * 1);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.25s ease;
}

.tb-sku-chip:hover {
  transform: translateY(-3px);
  border-color: var(--nplus-primary);
  box-shadow: 0 14px 22px -16px rgba(2, 132, 199, 0.7);
}

/* 选中的规格：蓝色边框外面再套一圈淡淡的光，右下角一个小勾 */
.tb-sku-chip.is-selected {
  border-color: var(--nplus-primary);
  background: linear-gradient(135deg, #eef8ff 0%, #ecfdf9 100%);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12), 0 14px 24px -16px rgba(2, 132, 199, 0.75);
  color: var(--nplus-primary-dark);
}

.tb-sku-chip.is-selected::after {
  padding: 0.1em 0.6em;
  border-top-left-radius: calc(var(--pu) * 0.6);
  border-bottom-right-radius: calc(var(--pu) * 0.88);
  background: linear-gradient(135deg, #0284c7, #14b8a6);
  font-size: max(10px, calc(var(--pu) * 0.66));
}

.tb-sku-chip strong {
  font-size: max(14px, calc(var(--pu) * 0.94));
  line-height: 1.4;
}

.tb-sku-price {
  margin-top: 0.15em;
  font-family: var(--font-display);
  font-size: max(19px, calc(var(--pu) * 1.4));
  font-weight: 800;
  line-height: 1.3;
  color: var(--nplus-primary);
  font-variant-numeric: tabular-nums;
}

.tb-sku-price i {
  margin-right: 0.06em;
  font-size: 0.68em;
  font-style: normal;
}

.tb-sku-chip small {
  margin-top: 0.25em;
  font-size: max(12px, calc(var(--pu) * 0.76));
  line-height: 1.5;
}

/* 当前规格的说明：和上面的规格按钮左边对齐 */
.tb-sku-desc-box {
  margin: calc(var(--pu) * -0.35) 0 calc(var(--pu) * 1.15) calc(var(--pu) * 6);
  padding: 0.75em 1.1em;
  border: 1px dashed rgba(2, 132, 199, 0.28);
  border-radius: calc(var(--pu) * 0.85);
  background: rgba(240, 249, 255, 0.7);
  font-size: max(13.5px, calc(var(--pu) * 0.84));
}

.tb-sku-desc-box strong {
  color: var(--nplus-primary-dark);
}

.tb-qty-wrap {
  border-radius: 999px;
}

.tb-qty-wrap button {
  width: max(40px, calc(var(--pu) * 2.6));
  height: max(40px, calc(var(--pu) * 2.6));
  background: transparent;
  color: var(--ink-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tb-qty-wrap button:hover {
  background: rgba(2, 132, 199, 0.1);
  color: var(--nplus-primary);
}

.tb-qty-wrap input {
  width: max(52px, calc(var(--pu) * 3.4));
  height: max(40px, calc(var(--pu) * 2.6));
  background: transparent;
  font-size: max(15px, calc(var(--pu) * 0.98));
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* 数量框两边已经有加减按钮，浏览器自带的小箭头不要 */
.tb-qty-wrap input::-webkit-outer-spin-button,
.tb-qty-wrap input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* 保障：一条一个小标签 */
.tb-guarantee-row {
  gap: calc(var(--pu) * 0.5);
  margin-bottom: calc(var(--pu) * 1.3);
  padding: calc(var(--pu) * 0.2) 0 calc(var(--pu) * 1.25);
  font-size: max(12.5px, calc(var(--pu) * 0.8));
}

.tb-guarantee-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.26em 0.95em 0.26em 0.75em;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.08);
  font-weight: 600;
  line-height: 1.5;
  color: #047857;
}

.tb-guarantee-row span::before {
  content: "✓";
}

/* 按钮：立即购买是主按钮（渐变色，上面有一道光每隔几秒扫过去一次），加入购物车是描边的 */
.tb-action-buttons {
  align-items: center;
  gap: calc(var(--pu) * 0.8);
}

/* 注意：.tb-btn-buynow 这个类名在购物车、结算、兑换、登录弹窗里也用，弹窗画在 main 外面、没有 --pu。
   所以这一条只写颜色和高光（哪里都适用），按 --pu 算的尺寸只写在下一条——商品页的按钮区里 */
.tb-btn-buynow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 54%, #14b8a6 100%);
  box-shadow: 0 20px 30px -16px rgba(2, 132, 199, 0.8);
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.tb-action-buttons .tb-btn-buynow {
  flex: 1 1 calc(var(--pu) * 15);
  min-width: 0;
  max-width: calc(var(--pu) * 21);
  padding: calc(var(--pu) * 0.95) calc(var(--pu) * 1.6);
  font-size: max(16px, calc(var(--pu) * 1.12));
  white-space: nowrap;
}

.tb-btn-buynow:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 36px -16px rgba(2, 132, 199, 0.85);
}

.tb-btn-buynow::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-170%) skewX(-18deg);
  pointer-events: none;
}

.tb-btn-addcart {
  flex: 0 1 calc(var(--pu) * 12);
  min-width: 0;
  max-width: none;
  padding: calc(var(--pu) * 0.95) calc(var(--pu) * 1.4);
  border-color: rgba(2, 132, 199, 0.4);
  background: #ffffff;
  font-size: max(15px, calc(var(--pu) * 1.02));
  color: var(--nplus-primary-dark);
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.tb-btn-addcart:hover {
  transform: translateY(-3px);
  border-color: var(--nplus-primary);
  background: #f0f9ff;
  box-shadow: 0 16px 24px -16px rgba(2, 132, 199, 0.7);
}

/* 售罄：两个按钮都变灰，不抬起、不扫光 */
.tb-btn-buynow:disabled,
.tb-btn-addcart:disabled {
  border-color: transparent;
  background: #e2e8f0;
  box-shadow: none;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.tb-btn-buynow:disabled::after {
  display: none;
}

.tb-action-buttons .link-arrow-pill {
  background: transparent;
  font-size: max(14px, calc(var(--pu) * 0.9));
  font-weight: 600;
  color: var(--ink-3);
}

.tb-action-buttons .link-arrow-pill:hover {
  background: var(--surface-soft);
  color: var(--nplus-primary);
  transform: none;
}

.tb-buy-box .tb-redeem-line {
  margin-top: calc(var(--pu) * 0.9);
  font-size: max(13px, calc(var(--pu) * 0.8));
}

/* 加入购物车以后的提示：一条浅蓝色的小横幅，后面带“查看购物车并结算” */
.tb-buy-box .form-feedback {
  min-height: 0;
  margin-top: 0;
}

.tb-buy-box .form-feedback:not(:empty) {
  margin-top: calc(var(--pu) * 0.8);
  padding: 0.7em 1.1em;
  border: 1px solid #bae6fd;
  border-radius: calc(var(--pu) * 0.85);
  background: #f0f9ff;
  font-size: max(13.5px, calc(var(--pu) * 0.84));
  line-height: 1.7;
  color: var(--nplus-primary-dark);
}

/* ---- 商品说明、实力证明：两张卡片上下排 ---- */
.page-block.prod-info {
  padding: calc(var(--pu) * 0.2) 0 calc(var(--pu) * 2.4);
}

.prod-info > .xes-container {
  display: grid;
  gap: calc(var(--pu) * 1.6);
}

.prod-info > .xes-container > * {
  min-width: 0;
}

.tb-proof {
  margin-bottom: 0;
}

.prod-info .pricing-group-card {
  margin-bottom: 0;
  padding: calc(var(--pu) * 1.7) calc(var(--pu) * 1.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: calc(var(--pu) * 1.6);
  background:
    radial-gradient(40% 90% at 100% 0%, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0) 70%),
    #ffffff;
  box-shadow: 0 30px 54px -42px rgba(15, 60, 100, 0.55), 0 2px 6px rgba(15, 60, 100, 0.04);
}

.prod-info .pricing-group-head {
  align-items: center;
  margin-bottom: calc(var(--pu) * 1.1);
}

.prod-info .pricing-group-head h3 {
  position: relative;
  padding-left: calc(var(--pu) * 1.05);
  font-family: var(--font-display);
  font-size: clamp(20px, calc(var(--pu) * 1.45), 30px);
  letter-spacing: -0.01em;
}

.prod-info .pricing-group-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: calc(var(--pu) * 0.36);
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 55%, #14b8a6 100%);
}

.prod-info .pricing-group-head span {
  font-size: max(13.5px, calc(var(--pu) * 0.84));
}

/* “你会拿到”：标题下面的一条浅色横幅 */
.prod-gets {
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  margin: 0 0 calc(var(--pu) * 1.1);
  padding: 0.8em 1.2em;
  border-radius: calc(var(--pu) * 0.95);
  background: linear-gradient(100deg, rgba(2, 132, 199, 0.08), rgba(20, 184, 166, 0.07));
  font-size: max(14.5px, calc(var(--pu) * 0.94));
  line-height: 1.65;
  color: var(--ink-1);
}

.prod-gets b {
  flex: none;
  padding: 0.08em 0.85em;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #14b8a6);
  font-size: 0.88em;
  font-weight: 800;
  color: #ffffff;
}

/* 要点清单：两列，每条前面一个渐变色的圆勾 */
.prod-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--pu) * 0.7) calc(var(--pu) * 1.1);
  margin: 0 0 calc(var(--pu) * 1.7);
  padding: 0;
}

.prod-points li {
  position: relative;
  padding: 0.78em 1.1em 0.78em 2.9em;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--pu) * 0.95);
  background: linear-gradient(180deg, #ffffff, #f8fcff);
  font-size: max(14.5px, calc(var(--pu) * 0.92));
  line-height: 1.65;
  color: var(--ink-2);
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease, box-shadow 0.35s ease;
}

.prod-points li::before {
  content: "";
  position: absolute;
  left: 1em;
  top: 1em;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  box-shadow: 0 6px 10px -4px rgba(2, 132, 199, 0.6);
}

.prod-points li::after {
  content: "";
  position: absolute;
  left: 1.44em;
  top: 1.27em;
  width: 0.32em;
  height: 0.56em;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.prod-points li:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 16px 24px -20px rgba(2, 132, 199, 0.7);
}

.prod-sub-title {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin: 0 0 calc(var(--pu) * 0.8);
  font-size: max(16px, calc(var(--pu) * 1.1));
  font-weight: 800;
  color: var(--ink-1);
}

.prod-sub-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.42), rgba(14, 165, 233, 0));
}

.prod-detail-card .xes-price-table {
  font-size: max(14.5px, calc(var(--pu) * 0.9));
}

.prod-detail-card .xes-price-table th {
  padding: 0.85em 1.1em;
  background: linear-gradient(90deg, #eef7fd, #f1fbf8);
  font-size: max(13px, calc(var(--pu) * 0.8));
}

.prod-detail-card .xes-price-table td {
  padding: 1em 1.1em;
  line-height: 1.6;
}

.prod-detail-card .xes-price-table td:first-child,
.prod-detail-card .xes-price-table td:nth-child(2) {
  white-space: nowrap;
}

.prod-detail-card .xes-price-table tbody tr:hover {
  background: rgba(2, 132, 199, 0.045);
}

.prod-detail-card .price-tag {
  font-size: max(16.5px, calc(var(--pu) * 1.08));
}

/* 实力证明这一行：上下多留一点地方，图片抬起时上边不被切掉，底下的阴影也露得出来 */
.hscroll-track.proof-row {
  gap: calc(var(--pu) * 1);
  margin-bottom: -14px;
  padding: 8px 4px 22px;
  scroll-padding-inline: 4px;
}

.proof-item {
  width: max(220px, calc(var(--pu) * 14.6));
}

.proof-item img {
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--pu) * 0.9);
  background: linear-gradient(160deg, #eef7fd, #f2fbf8);
  transition: transform 0.4s var(--ease-spring), border-color 0.25s ease, box-shadow 0.4s ease;
}

.proof-item:hover img,
.proof-item:focus-visible img {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 24px 30px -22px rgba(2, 132, 199, 0.7);
  transform: translateY(-6px);
}

.proof-item span {
  margin-top: calc(var(--pu) * 0.6);
  font-size: max(13.5px, calc(var(--pu) * 0.84));
  transition: color 0.25s ease;
}

.proof-item:hover span,
.proof-item:focus-visible span {
  color: var(--nplus-primary-dark);
}

.proof-row.is-pages .proof-item {
  width: max(170px, calc(var(--pu) * 11.4));
}

.proof-row.is-pages .proof-item img {
  height: auto;
  aspect-ratio: 170 / 236;
}

/* ---- 其他商品 ---- */
.page-block.prod-related {
  padding-top: calc(var(--pu) * 2.1);
  padding-bottom: calc(var(--pu) * 2.6);
}

/* 要点只有一条时占满一整行，不留半边空白 */
.prod-points li:only-child {
  grid-column: 1 / -1;
}

/* 没有可推荐的商品（或者数据还没取回来）时，这一块整块不显示；商品说明那一块也一样（数据还没回来、或者商品不存在） */
.prod-related:has(#tbRelatedProducts:empty),
.prod-info:has(#tbProductDetails:empty) {
  display: none;
}

/* ---- 底部购买栏（shop-client.js 画在 body 最后面，不在 main 里，所以字号基准 --pu 在这里再写一遍） ----
   手机上一直贴在底部（底子在本文件前面的“Mobile Taobao Sticky Buy Bar”，下面“窗口变窄”里换了新样子）；
   电脑上是浮在页面底部中间的一条：页面里的购买按钮不在视野里时滑上来（标记 is-floating 由脚本加），看得到时收下去 */
.tb-mobile-buybar {
  --pu: clamp(14px, calc(0.62vw + 5.2px), 20px);
}

.tb-mobile-buybar:empty {
  display: none;
}

.tb-mbar-info {
  display: none;
}

.tb-mbar-icon svg {
  flex: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tb-mbar-buy {
  position: relative;
  overflow: hidden;
}

.tb-mbar-buy::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-170%) skewX(-18deg);
  pointer-events: none;
}

.tb-mbar-buy:disabled::after {
  display: none;
}

/* 从这一条加购物车后，在它上方冒出来的一句提示（is-show 由脚本加，两秒多后拿掉） */
.tb-mbar-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 41, 66, 0.92);
  box-shadow: 0 14px 26px -14px rgba(15, 41, 66, 0.7);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tb-mbar-tip.is-show {
  opacity: 1;
}

.tb-mbar-tip.is-warn {
  background: rgba(146, 64, 14, 0.94);
}

@media (min-width: 769px) {
  .tb-mobile-buybar {
    position: fixed;
    left: 50%;
    bottom: calc(var(--pu) * 1.3);
    z-index: 870;
    display: flex;
    align-items: center;
    gap: calc(var(--pu) * 0.9);
    width: min(calc(var(--pu) * 60), calc(100vw - 140px));
    padding: calc(var(--pu) * 0.55) calc(var(--pu) * 0.65) calc(var(--pu) * 0.55) calc(var(--pu) * 0.7);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 26px 50px -18px rgba(15, 41, 66, 0.45), 0 2px 8px rgba(15, 41, 66, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(100% + 32px));
    transition: transform 0.55s var(--ease-spring), opacity 0.3s ease, visibility 0s linear 0.55s;
  }

  .tb-mobile-buybar.is-floating {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: transform 0.55s var(--ease-spring), opacity 0.3s ease, visibility 0s;
  }

  /* 左边：商品小图、名称、当前选的规格 */
  .tb-mbar-info {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: calc(var(--pu) * 0.8);
    min-width: 0;
  }

  .tb-mbar-info img {
    flex: none;
    width: calc(var(--pu) * 3.1);
    height: calc(var(--pu) * 3.1);
    border-radius: 50%;
    background: #eef7fd;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.22);
    object-fit: cover;
  }

  .tb-mbar-info div {
    min-width: 0;
  }

  .tb-mbar-info strong,
  .tb-mbar-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tb-mbar-info strong {
    font-size: max(14px, calc(var(--pu) * 0.95));
    font-weight: 800;
    line-height: 1.4;
    color: var(--ink-1);
  }

  .tb-mbar-info span {
    font-size: max(12.5px, calc(var(--pu) * 0.78));
    line-height: 1.5;
    color: var(--ink-3);
  }

  /* 电脑上顶栏里就有首页和商城，这里只留购物车 */
  .tb-mbar-icons {
    flex: none;
    display: flex;
  }

  .tb-mbar-icons a.tb-mbar-icon {
    display: none;
  }

  .tb-mbar-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    min-height: max(42px, calc(var(--pu) * 2.9));
    padding: 0 calc(var(--pu) * 0.95);
    border: 1.5px solid #bae6fd;
    border-radius: 999px;
    background: #f0f9ff;
    font-size: max(13.5px, calc(var(--pu) * 0.88));
    font-weight: 800;
    color: #0369a1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease-spring), background-color 0.2s ease, border-color 0.2s ease;
  }

  .tb-mbar-icon:hover {
    transform: translateY(-2px);
    border-color: var(--nplus-primary);
    background: #e0f2fe;
  }

  .tb-mbar-icon svg {
    width: 1.35em;
    height: 1.35em;
  }

  .tb-mbar-badge {
    padding: 0 0.5em;
    border-radius: 999px;
    background: var(--tb-hot);
    font-size: 0.86em;
    line-height: 1.5;
    color: #ffffff;
  }

  .tb-mbar-btns {
    flex: none;
    display: flex;
    align-items: center;
    gap: calc(var(--pu) * 0.6);
  }

  .tb-mbar-cart,
  .tb-mbar-buy {
    min-height: max(42px, calc(var(--pu) * 2.9));
    padding: 0 calc(var(--pu) * 1.5);
    border-radius: 999px;
    font-size: max(14.5px, calc(var(--pu) * 0.98));
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
  }

  .tb-mbar-cart {
    border: 1.5px solid rgba(2, 132, 199, 0.4);
    background: #ffffff;
    color: var(--nplus-primary-dark);
  }

  .tb-mbar-cart:hover {
    transform: translateY(-2px);
    border-color: var(--nplus-primary);
    background: #f0f9ff;
  }

  .tb-mbar-buy {
    border: 0;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 54%, #14b8a6 100%);
    box-shadow: 0 14px 24px -12px rgba(2, 132, 199, 0.8);
    color: #ffffff;
    font-variant-numeric: tabular-nums;
  }

  .tb-mbar-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px -12px rgba(2, 132, 199, 0.85);
  }

  .tb-mbar-cart:disabled,
  .tb-mbar-buy:disabled {
    border-color: transparent;
    background: #e2e8f0;
    box-shadow: none;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-mobile-buybar,
  .tb-mobile-buybar.is-floating {
    transition: opacity 0.2s ease;
  }
}

/* ---- 动画 ---- */
@keyframes prodTipIn {
  from {
    transform: translate(-50%, 10px) scale(0.9);
  }
  to {
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes prodBump {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.5);
  }
}

@keyframes prodLoading {
  from {
    background-position: 130% 0, 0 0;
  }
  to {
    background-position: -30% 0, 0 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tb-breadcrumb-bar {
    animation: homeRise 0.7s var(--ease-spring) 0.04s backwards;
  }

  .tb-buy-box:empty {
    animation: prodLoading 1.5s linear infinite;
  }

  /* 商品数据取回来、购买区画出来的那一下，整张卡片浮现一次（之后选规格、改数量重画里面的内容时不会再来） */
  .tb-buy-box:not(:empty) {
    animation: homeRise 0.85s var(--ease-spring) backwards;
  }

  #tbProductDetails > .pricing-group-card {
    animation: homeRise 0.85s var(--ease-spring) 0.14s backwards;
  }

  .tb-proof > .pricing-group-card {
    animation: homeRise 0.85s var(--ease-spring) 0.22s backwards;
  }

  .tb-btn-buynow::after {
    animation: homeShine 4.8s ease-in-out 1.4s infinite;
  }

  .tb-mbar-buy::after {
    animation: homeShine 4.8s ease-in-out 2.2s infinite;
  }

  .tb-mbar-tip.is-show {
    animation: prodTipIn 0.4s var(--ease-spring) both;
  }

  .tb-mbar-badge.is-bump {
    animation: prodBump 0.55s var(--ease-spring);
  }

  .tb-buy-box .form-feedback:not(:empty) {
    animation: shopCardIn 0.45s var(--ease-spring) backwards;
  }
}

@media (hover: none) {
  .tb-gallery-main::after {
    opacity: 0.92;
    transform: none;
  }
}

/* ---- 窗口变窄 ---- */
@media (min-width: 901px) {
  /* 右边的内容比图片长时，往下滑图片跟着停在视野里 */
  .tb-buy-box > div:first-child {
    position: sticky;
    top: calc(var(--header-h) + var(--pu) * 1.2);
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .tb-buy-box {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: calc(var(--pu) * 1.8);
  }
}

@media (max-width: 900px) {
  /* 图片在上、内容在下 */
  .tb-buy-box {
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--pu) * 1.4);
  }

  .tb-buy-box > div:first-child {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .prod-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 触屏和窄屏：能点的地方不小于 40px（和本文件第 5 节是同一条规矩） */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .tb-breadcrumb-links {
    padding-top: 0;
    padding-bottom: 0;
  }

  .tb-breadcrumb-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .tb-top-actions .tb-cart-pill {
    padding-top: 0;
    padding-bottom: 0;
  }

  .tb-qty-wrap button {
    width: 44px;
    height: 44px;
  }

  .tb-qty-wrap input {
    width: 56px;
    height: 44px;
  }

  .tb-sku-chip {
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  /* 手机上购买按钮在底部那一条里，这里的不再重复 */
  .tb-action-buttons {
    display: none;
  }

  .tb-buy-box .tb-redeem-line {
    margin-top: 0;
  }

  .tb-guarantee-row {
    margin-bottom: 12px;
    padding-bottom: 14px;
  }

  /* 底部购买条：左边首页、店铺、购物车，右边加入购物车和立即购买 */
  .tb-mobile-buybar {
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -14px 34px -10px rgba(15, 60, 100, 0.22);
  }

  .tb-mbar-icon {
    gap: 1px;
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .tb-mbar-icon:active {
    background: rgba(2, 132, 199, 0.1);
    color: var(--nplus-primary);
  }

  .tb-mbar-badge {
    min-width: 18px;
    background: linear-gradient(135deg, #0284c7, #14b8a6);
    box-shadow: 0 0 0 2px #ffffff;
    text-align: center;
  }

  .tb-mbar-btns {
    box-shadow: 0 12px 22px -12px rgba(2, 132, 199, 0.75);
  }

  .tb-mbar-buy {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 54%, #14b8a6 100%);
    font-variant-numeric: tabular-nums;
  }

  .tb-mbar-cart:disabled,
  .tb-mbar-buy:disabled {
    background: #e2e8f0;
    color: #94a3b8;
  }

  .prod-info .pricing-group-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .prod-gets {
    display: block;
    padding: 12px 14px;
  }

  .prod-gets b {
    display: inline-block;
    margin: 0 8px 4px 0;
  }
}

@media (max-width: 640px) {
  .tb-breadcrumb-bar {
    padding: 12px 0 10px;
  }

  .tb-breadcrumb-links {
    padding-left: 14px;
    padding-right: 14px;
  }

  .prod-stage {
    padding-bottom: 22px;
  }

  .tb-buy-box {
    gap: 16px;
    padding: 14px 14px 18px;
    border-radius: 18px;
  }

  .tb-buy-box:empty {
    min-height: 520px;
  }

  .tb-gallery-main {
    border-radius: 14px;
  }

  .tb-thumb-btn {
    width: 68px;
    height: 56px;
  }

  .tb-price-panel {
    padding: 12px 14px;
  }

  .tb-price-now {
    font-size: 34px;
  }

  .tb-stat-pair div {
    padding: 0 12px;
  }

  .tb-stat-pair div:first-child {
    padding-left: 0;
  }

  /* 手机上“选择规格 / 购买数量”这几个字放到选项上面；规格一行一个，名称在左、价格在右 */
  .tb-prop-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .tb-prop-label {
    padding-top: 0;
  }

  .tb-sku-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .tb-sku-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 9px 30px 9px 14px;
  }

  .tb-sku-chip strong,
  .tb-sku-chip small {
    grid-column: 1;
  }

  .tb-sku-chip small {
    margin-top: 0;
  }

  .tb-sku-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  .tb-sku-desc-box {
    margin-left: 0;
  }

  .page-block.prod-info {
    padding-bottom: 26px;
  }

  .prod-info > .xes-container {
    gap: 16px;
  }

  .prod-points li {
    padding: 10px 12px 10px 38px;
  }

  .prod-points li::before {
    left: 12px;
    top: 13px;
  }

  .prod-points li::after {
    left: calc(12px + 0.44em);
    top: calc(13px + 0.27em);
  }

  .prod-detail-card .xes-price-table {
    font-size: 13.5px;
  }

  .prod-detail-card .xes-price-table th,
  .prod-detail-card .xes-price-table td {
    padding: 10px 12px;
  }

  .proof-item {
    width: 180px;
  }

  .proof-row.is-pages .proof-item {
    width: 150px;
  }
}

/* ==========================================================================
   8. 官方商城（shop.html）· 新的一套样子
   页面从上到下：页头（标题、搜索、热门搜索、示意画面、店铺公告）→ 本页内容条 → 收费标准 → 全部商品 → 查订单。
   公共的版式（pg-hero、pg-tabs、pg-sec、pg-head、pg-btn…）在 styles.css 的“25. 内页共用的版式”，这里只写商城自己的：
   - sp- 开头的是这一页自己的类名；
   - 分类按钮、商品卡片、会员价提示、查单结果是 shop-client.js 画的，类名还是老的（pricing-cat-btn、tb-prod-*、vip-strip…），
     这里统一加 .pg-shop 前缀重写，盖过上面“6. 视觉升级：商城”一节里的老样子。
   ========================================================================== */

/* ---- 顶栏右边的“购物车”（商城、商品页才有；窗口不超过 1240 时顶栏右边整个收起，用页面里的那一个） ---- */
.ui-calm .nav-right .nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: var(--c-ink);
  cursor: pointer;
  transition: color var(--t-fast) ease-in;
}

.ui-calm .nav-right .nav-cart:hover {
  color: var(--c-brand);
}

.nav-cart svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* 购物车里的件数（顶栏和页面里的购物车按钮共用） */
.nav-cart-count,
.sp-count {
  flex: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--c-brand-tint);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  color: var(--c-link);
}

/* ---- 页头 ---- */
.sp-hero {
  padding-bottom: 112px;
}

.sp-hero .pg-hero-text {
  flex-basis: 456px;
}

/* 说明里的两句话：一行放不下时整句换到下一行，不拆出一两个字 */
.sp-keep {
  display: inline-block;
}

/* 写在句子里的文字按钮（“在这里兑换”） */
.sp-textbtn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--c-link);
  cursor: pointer;
}

.sp-textbtn:hover {
  color: var(--c-brand);
  text-decoration: underline;
}

/* 搜索框：白底胶囊，右边一颗蓝色的“搜索” */
.sp-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  margin-top: 32px;
  padding: 0 5px 0 44px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}

.sp-search:hover {
  border-color: var(--c-brand-2);
}

.sp-search:focus-within {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(51, 112, 255, 0.12);
}

.sp-search > svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: var(--c-ink-4);
  pointer-events: none;
}

.sp-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 12px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  text-overflow: ellipsis;
  color: var(--c-ink);
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}

.sp-search input::placeholder {
  color: var(--c-ink-4);
}

.sp-search button {
  flex: none;
  height: 36px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--g-brand);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--c-on-dark);
  cursor: pointer;
}

.sp-search button:hover {
  background: var(--g-brand-hover);
}

/* 热门搜索：点一个词直接搜 */
.sp-hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-3);
}

.sp-hot button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: color var(--t-fast) ease-in;
}

.sp-hot button:hover {
  color: var(--c-link);
}

/* 店铺公告：页头最下面居中的一行。文字在后台改；没写公告时整行不显示。
   只占一行，放不下时文字慢慢左右滑动，鼠标停在上面时停住（滑动的规则沿用上面“6. 视觉升级：商城”里写给 .shop-notice-text 的那几条）；
   手机上、或者系统设置了“减少动态效果”时改成换行显示 */
.sp-notice-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.sp-notice-row:has(#shopNoticeText:empty) {
  display: none;
}

.sp-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  padding: 0 20px 0 8px;
  border: 1px solid var(--c-hair);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 16px rgba(31, 35, 41, 0.06);
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-2);
}

.sp-notice strong {
  flex: none;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--c-brand-tint);
  font-size: 12px;
  font-weight: 500;
  line-height: 24px;
  color: var(--c-link);
}

@media (prefers-reduced-motion: no-preference) and (min-width: 641px) {
  .sp-notice:hover #shopNoticeText {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 640px) {
  .sp-notice {
    align-items: flex-start;
    padding: 8px 16px 8px 8px;
    border-radius: var(--r-md);
  }

  .sp-notice strong {
    margin-top: -1px;
  }
}

/* 页头右边的示意画面：部件是首页轮播那一套 hv-*（styles.css 的“17. 首页”），这里只补商城这一块自己的：
   左边几件在售的东西，右边下单以后的三步和发货内容 */
.hv-shelf {
  flex: 1.3 1 0;
}

.hv-order {
  flex: 1 1 0;
}

.hv-shelf .hv-chips {
  margin-top: 0.7em;
}

.hv-shelf .hv-chips i {
  padding-inline: 0.6em;
  font-size: 0.65em;
}

.hv-shelf .hv-row {
  margin-top: 0.6em;
}

.hv-shelf .hv-chips + .hv-row {
  margin-top: 0.8em;
}

/* 竖着的图（论文的一页）：露出最上面带标题的那一段 */
.hv-row.is-top img {
  object-position: 50% 0;
}

.hv-order .hv-btn {
  margin-top: auto;
}

.hv-deliv {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.5em;
  padding: 0.5em 0.7em;
  border-radius: 0.6em;
  background: var(--c-fill);
}

.hv-deliv small {
  flex: 0 0 auto;
  min-width: 4.4em;
  font-size: 0.625em;
  color: var(--c-ink-3);
}

.hv-deliv i {
  flex: 1 1 auto;
  height: 0.4em;
  border-radius: 1em;
  background: var(--c-line);
}

.hv-deliv u {
  flex: 0 0 auto;
  padding: 0.1em 0.7em;
  border: var(--b) solid var(--c-line-2);
  border-radius: 10em;
  background: var(--c-surface);
  font-size: 0.6em;
  text-decoration: none;
  color: var(--c-ink-3);
}

.hv-s .hv-float {
  top: -1em;
  right: 1.6em;
  bottom: auto;
}

/* ---- 收费标准：一类一张卡，排成一行，一屏放 4 张，其余的左右翻（翻动和自动轮换是 main.js 的 initHScroll） ---- */
.sp-cats::before,
.sp-cats::after {
  display: none;
}

.sp-cats .hscroll-track {
  gap: 16px;
  margin: -4px 0;
  padding: 4px 0;
}

.sp-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 272px;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: var(--c-fill);
  font: inherit;
  text-align: left;
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color var(--t-mid), background-color var(--t-mid);
}

.sp-cat:hover {
  border-color: var(--c-brand);
}

.sp-cat:focus-visible {
  outline-offset: -2px;
}

/* 类别标签：淡底深字，颜色按方向分 */
.sp-cat-tag {
  height: 24px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: rgba(51, 112, 255, 0.14);
  font-size: 12px;
  line-height: 24px;
  color: #245bdb;
}

.sp-cat.is-contest .sp-cat-tag {
  background: rgba(255, 136, 0, 0.16);
  color: var(--c-warn);
}

.sp-cat.is-paper .sp-cat-tag {
  background: rgba(52, 199, 36, 0.16);
  color: #1d6b16;
}

.sp-cat.is-baoyan .sp-cat-tag {
  background: rgba(127, 59, 245, 0.14);
  color: #6425d0;
}

.sp-cat.is-ip .sp-cat-tag {
  background: rgba(255, 198, 10, 0.24);
  color: #7a5900;
}

.sp-cat-name {
  min-height: 52px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.sp-cat-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-3);
}

.sp-cat-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-link);
}

.sp-cat-go svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-mid) var(--ease-out);
}

.sp-cat:hover .sp-cat-go svg {
  transform: translateX(3px);
}

/* 左右翻的圆钮：白底带一点影子，里面一个箭头（按钮里原有的 ‹ › 两个字不显示）。
   商品页“实力证明”那一排（.tb-proof）也用这一组，它的位置在“10. 商品详情”里另写 */
.pg-shop :is(.sp-cats, .tb-proof) .hscroll-btn {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 1px solid var(--c-hair);
  background: var(--c-surface);
  box-shadow: 0 4px 12px rgba(31, 35, 41, 0.1);
  font-size: 0;
  color: var(--c-ink-2);
  transition: color var(--t-fast) ease-in, box-shadow var(--t-fast) ease-in;
}

.pg-shop :is(.sp-cats, .tb-proof) .hscroll-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.pg-shop :is(.sp-cats, .tb-proof) .hscroll-btn.is-prev {
  left: -20px;
}

.pg-shop :is(.sp-cats, .tb-proof) .hscroll-btn.is-prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.pg-shop :is(.sp-cats, .tb-proof) .hscroll-btn.is-next {
  right: -20px;
}

.pg-shop :is(.sp-cats, .tb-proof) .hscroll-btn.is-next::before {
  transform: translateX(-2px) rotate(45deg);
}

.pg-shop :is(.sp-cats, .tb-proof) .hscroll-btn:hover {
  border-color: var(--c-hair);
  box-shadow: 0 6px 16px rgba(31, 35, 41, 0.14);
  color: var(--c-brand);
}

/* 触屏和手机上没有圆钮，用手指滑：这一行一直滑到屏幕边，不在版心边上被切掉。
   --sp-gut 是版心到屏幕边的距离（和 hp-wrap 的宽度对应：平板 24px、手机 16.5px；窗口比版心宽得多时不用滑到边） */
.pg-shop {
  --sp-gut: 0px;
}

@media (max-width: 1183px) {
  .pg-shop {
    --sp-gut: 24px;
  }
}

@media (max-width: 767px) {
  .pg-shop {
    --sp-gut: 16.5px;
  }
}

@media (hover: none), (max-width: 768px) {
  .pg-shop .sp-cats {
    margin: 0 calc(var(--sp-gut) * -1);
  }

  .pg-shop .sp-cats .hscroll-track {
    padding-right: var(--sp-gut);
    padding-left: var(--sp-gut);
    scroll-padding-left: var(--sp-gut);
  }
}

/* ---- 全部商品：标题行右边的几个入口 ---- */
/* “共找到 N 款在售商品”是取回数据后才写上的，先把这一行的高度占住 */
.sp-goods .pg-sub {
  min-height: 24px;
}

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.sp-actions .pg-link {
  font-size: 14px;
}

/* ---- 分类和排序：各占一行，前面一个灰色的小标签 ---- */
.sp-filter {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.sp-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.sp-filter-label {
  flex: none;
  font-size: 14px;
  line-height: 32px;
  color: var(--c-ink-3);
}

.sp-chips,
.sp-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

/* 分类按钮是取回数据后才画的，先留出一行按钮的高度 */
.pg-shop #shopCatTabs {
  min-height: 32px;
}

/* 分类：灰色胶囊，选中的变成淡蓝底蓝字 */
.pg-shop .sp-chips .pricing-cat-btn {
  flex: none;
  height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-fill-3);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--c-ink-2);
  cursor: pointer;
  transform: none;
  transition: background-color var(--t-fast) ease-in, color var(--t-fast) ease-in;
}

.pg-shop .sp-chips .pricing-cat-btn:hover {
  background: var(--c-fill-hover);
  color: var(--c-ink);
}

.pg-shop .sp-chips .pricing-cat-btn.is-active {
  background: var(--c-brand-tint);
  color: var(--c-link);
}

/* 排序：只有文字，选中的变蓝 */
.sp-sort-btn {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: var(--c-ink-3);
  cursor: pointer;
  transition: background-color var(--t-fast) ease-in, color var(--t-fast) ease-in;
}

.sp-sort-btn:hover {
  color: var(--c-ink);
}

.sp-sort-btn.is-active {
  background: var(--c-brand-tint);
  color: var(--c-link);
}

/* ---- 会员价提示（商品列表上面的一行，没有会员价时不显示） ---- */
.pg-shop .vip-strip {
  gap: 4px 10px;
  margin: 0 0 16px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-warn-tint);
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-2);
}

.pg-shop .vip-strip[hidden] {
  display: none;
}

.pg-shop .tb-vip-tag {
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: rgba(255, 136, 0, 0.2);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: var(--c-warn);
}

.pg-shop .vip-strip a {
  font-weight: 400;
  text-decoration: none;
  color: var(--c-link);
}

.pg-shop .vip-strip a:hover {
  text-decoration: underline;
}

/* ---- 商品卡片：一行 4 张（平板 3 张、手机 2 张），样子和课程中心的课程卡片一致 ---- */
.pg-shop #shopProductsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pg-shop .tb-prod-card {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--sh-card);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  animation: none;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}

.pg-shop .tb-prod-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(31, 35, 41, 0.12);
  transform: translateY(-4px);
}

/* 封面：框是 16:10。证书、论文页这类图整张放进去不裁切，两边空出来的地方用同一张图放大虚化后垫在底下
   （封面地址由 shop-client.js 的 bindCardCovers 写到 --cover 上；浏览器不支持虚化时退回成铺满裁切） */
.pg-shop .tb-prod-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background-color: var(--c-fill);
}

.pg-shop .tb-prod-thumb::before,
.pg-shop .tb-prod-thumb::after {
  content: none;
}

.pg-shop .tb-prod-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.pg-shop .tb-prod-card:hover .tb-prod-thumb img {
  transform: scale(1.04);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .pg-shop .tb-prod-thumb {
    background-image: var(--cover, none);
    background-position: 50% 50%;
    background-size: cover;
  }

  .pg-shop .tb-prod-thumb img {
    background-color: rgba(255, 255, 255, 0.32);
    object-fit: contain;
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
  }
}

/* 封面左上角的小标签“官方主推” */
.pg-shop .tb-prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r-xs);
  background: var(--c-brand);
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  color: var(--c-on-dark);
}

.pg-shop .tb-prod-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 16px 14px;
}

.pg-shop .tb-prod-body h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 48px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--c-ink);
  overflow: hidden;
  transition: color var(--t-fast) ease-in;
}

.pg-shop .tb-prod-card:hover .tb-prod-body h3 {
  color: var(--c-link);
}

/* 标签只显示一行，放不下的不显示（商品页里能看到全部） */
.pg-shop .tb-prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  height: 20px;
  margin: 8px 0 0;
  overflow: hidden;
}

.pg-shop .tb-prod-tags span {
  height: 20px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--r-xs);
  background: var(--c-fill-3);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  color: var(--c-ink-3);
}

/* “怎么发货”的小标签（自动发送资料链接、自动发激活码…）排在标签行最前面：绿色，和后面灰色的标签区分开 */
.pg-shop .tb-prod-tags .tb-prod-deliver {
  position: static;
  display: block;
  max-width: 100%;
  background: var(--c-ok-tint);
  box-shadow: none;
  text-overflow: ellipsis;
  letter-spacing: 0;
  color: var(--c-ok);
  overflow: hidden;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.pg-shop .tb-prod-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.pg-shop .tb-price {
  font-family: inherit;
  font-weight: 600;
  white-space: nowrap;
  color: var(--c-ink);
}

.pg-shop .tb-price small {
  margin-right: 1px;
  font-size: 14px;
}

.pg-shop .tb-price b {
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.pg-shop .tb-price em {
  margin-left: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-ink-3);
}

.pg-shop .tb-sales {
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  color: var(--c-ink-4);
}

.pg-shop .tb-vip-mini {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: var(--c-warn);
}

.pg-shop .tb-vip-mini.is-off {
  font-weight: 400;
  color: var(--c-ink-4);
}

/* 没搜到商品、或者商品没取回来时的那一句话 */
.pg-shop #shopProductsGrid > .pricing-group-card {
  margin: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-fill-2);
  box-shadow: none;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-3);
}

/* ---- 查订单：淡蓝底的一栏里放一张白卡片 ---- */
.sp-lookup .pg-head {
  margin-bottom: 24px;
}

.sp-lookup-card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.sp-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sp-lookup-form input {
  flex: 1 1 280px;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  text-overflow: ellipsis;
  color: var(--c-ink);
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t-fast) ease-in, box-shadow var(--t-fast) ease-in;
}

.sp-lookup-form input::placeholder {
  color: var(--c-ink-4);
}

.sp-lookup-form input:hover {
  border-color: var(--c-brand-2);
}

.sp-lookup-form input:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(51, 112, 255, 0.12);
}

.sp-lookup-form .pg-btn {
  flex: none;
}

.sp-lookup-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--c-ink-3);
}

/* 查单框上面的账号提示（登录以后改成绿色的一句） */
.pg-shop .acct-lookup-hint {
  margin: 0 0 16px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-fill-2);
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-3);
}

.pg-shop .acct-lookup-hint.is-authed {
  background: var(--c-ok-tint);
  color: var(--c-ok);
}

.pg-shop .acct-lookup-hint a {
  font-weight: 400;
  text-decoration: none;
  color: var(--c-link);
}

.pg-shop .acct-lookup-hint a:hover {
  text-decoration: underline;
}

/* ---- 平板 ---- */
@media (max-width: 1023px) {
  .sp-hero {
    padding-bottom: 92px;
  }

  .sp-hero .pg-hero-text {
    flex-basis: auto;
  }

  .sp-search {
    max-width: 560px;
  }

  .pg-shop #shopProductsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- 手机 ---- */
@media (max-width: 767px) {
  .sp-hero {
    padding-bottom: 60px;
  }

  .sp-search {
    height: 44px;
    margin-top: 24px;
    padding-left: 40px;
  }

  .sp-search > svg {
    left: 16px;
  }

  /* 输入框的字小于 16px 时，苹果手机点进去会把整页放大 */
  .sp-search input,
  .sp-lookup-form input {
    font-size: 16px;
  }

  .sp-search button {
    height: 34px;
    padding: 0 18px;
  }

  /* 手机上每个词留高一点，好点 */
  .sp-hot {
    gap: 0 14px;
    margin-top: 10px;
    line-height: 32px;
  }

  .sp-notice-row {
    margin-top: 28px;
  }

  .sp-cat {
    width: min(272px, 76vw);
    padding: 20px;
  }

  .sp-cat-name {
    min-height: 48px;
    margin-top: 12px;
    font-size: 17px;
    line-height: 24px;
  }

  .sp-cat-go {
    padding-top: 16px;
  }

  .sp-goods .pg-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  /* 分类、排序各一行，放不下就左右滑，一直滑到屏幕右边 */
  .sp-filter-row {
    gap: 12px;
  }

  .sp-chips,
  .sp-sort {
    flex-wrap: nowrap;
    margin-right: calc(var(--sp-gut) * -1);
    padding-right: var(--sp-gut);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .sp-chips::-webkit-scrollbar,
  .sp-sort::-webkit-scrollbar {
    display: none;
  }

  .pg-shop #shopProductsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pg-shop .tb-prod-badge {
    top: 8px;
    left: 8px;
  }

  .pg-shop .tb-prod-body {
    padding: 12px;
  }

  .pg-shop .tb-prod-body h3 {
    min-height: 44px;
    font-size: 14px;
    line-height: 22px;
  }

  .pg-shop .tb-prod-foot {
    flex-wrap: wrap;
    gap: 0 8px;
    padding-top: 10px;
  }

  .pg-shop .tb-price b {
    font-size: 18px;
    line-height: 24px;
  }

  .sp-lookup-card {
    padding: 20px 16px;
  }

  .sp-lookup-form input {
    flex-basis: 100%;
    height: 44px;
  }

  .sp-lookup-form .pg-btn {
    width: 100%;
  }
}

/* ==========================================================================
   9. 收银台弹窗、登录注册、订单卡片 · 新的一套样子
   购物车、确认订单、付款结果、兑换码这几屏都画在同一个弹窗里（#tbCashierModal），商城页、商品页、
   「我的订单」页共用；查单结果里的订单卡片是同一套写法。只在换成新样子的页面上生效（body 带 ui-calm）。
   ========================================================================== */

/* ---- 弹窗里的小标签和标题 ---- */
.ui-calm .tb-flag-self {
  display: inline-block;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--c-brand-tint);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  color: var(--c-link);
}

/* 标题折行：只在逗号、括号、空格这些地方断开（手机上“订单已生成，请前往支付宝完成付款”会折成两行，从逗号后面断，
   不把“前往”拆开，也不让第二行只剩一个字）；某一段实在太长放不下时才在字中间断。两行尽量一样长；不认这几句的浏览器照常折行 */
.ui-calm #tbCashierModal h3 {
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
  color: var(--c-ink);
  text-wrap: balance;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) strong {
  font-weight: 600;
}

/* ---- 主按钮：蓝色渐变的胶囊，不发光、不扫光、不抬起 ---- */
.ui-calm .tb-btn-buynow {
  border-radius: var(--r-pill);
  background: var(--g-brand);
  box-shadow: none;
  font-weight: 500;
  color: var(--c-on-dark);
  transition: background var(--t-fast) ease-in;
}

.ui-calm .tb-btn-buynow::after {
  content: none;
}

.ui-calm .tb-btn-buynow:hover {
  background: var(--g-brand-hover);
  box-shadow: none;
  transform: none;
}

.ui-calm .tb-btn-buynow:disabled {
  background: var(--c-line-3);
  color: var(--c-surface);
}

.ui-calm #tbCashierModal .tb-btn-buynow {
  min-height: 48px;
  padding: 10px 28px;
  font-size: 16px;
}

/* ---- 小按钮：移除、清空购物车、复制发货内容、本机订单号…… ---- */
.ui-calm .admin-btn-sm {
  padding: 4px 12px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--c-ink-2);
  transition: border-color var(--t-fast) ease-in, color var(--t-fast) ease-in;
}

.ui-calm .admin-btn-sm:hover {
  border-color: var(--c-brand);
  color: var(--c-link);
}

.ui-calm .admin-btn-sm.is-danger:hover {
  border-color: var(--c-danger);
  color: var(--c-danger);
}

/* ---- 购物车和订单里的商品清单 ---- */
.ui-calm .cashier-summary-list {
  margin-bottom: 16px;
  padding: 4px 16px;
  border-radius: var(--r-md);
  background: var(--c-fill-2);
}

.ui-calm .cashier-item-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-hair);
}

.ui-calm .cashier-item-row:last-child {
  border-bottom: 0;
}

.ui-calm #tbCashierModal .cashier-item-row strong {
  font-weight: 500;
}

/* ---- 结算方式 ---- */
.ui-calm .pay-method-card {
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 400;
  color: var(--c-ink-2);
}

.ui-calm .pay-method-card.is-active {
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
  font-weight: 500;
  color: var(--c-ink);
}

/* ---- 提示条：当前账号、游客下单 ---- */
.ui-calm .acct-checkout-strip {
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-brand-tint);
  line-height: 22px;
  color: var(--c-ink-2);
}

.ui-calm .acct-checkout-strip.is-guest {
  background: var(--c-fill-2);
  color: var(--c-ink-3);
}

.ui-calm .acct-checkout-strip strong {
  font-weight: 500;
  color: var(--c-ink);
}

.ui-calm .acct-checkout-strip a {
  font-weight: 500;
  color: var(--c-link);
  text-decoration: none;
}

.ui-calm .acct-checkout-strip a:hover {
  text-decoration: underline;
}

/* ---- 登录 / 注册：两个页签做成灰槽里的分段切换 ---- */
.ui-calm .acct-tabs {
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-sm);
  background: var(--c-fill-3);
}

.ui-calm .acct-tab {
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--c-ink-3);
}

.ui-calm .acct-tab:hover {
  color: var(--c-ink);
}

.ui-calm .acct-tab.is-active {
  background: var(--c-surface);
  box-shadow: 0 1px 2px rgba(31, 35, 41, 0.1);
  font-weight: 500;
  color: var(--c-ink);
}

.ui-calm .acct-tab em {
  background: var(--c-brand-tint);
  color: var(--c-link);
}

.ui-calm .acct-link-btn {
  font-weight: 400;
  color: var(--c-link);
  text-decoration: none;
}

.ui-calm .acct-link-btn:hover {
  text-decoration: underline;
}

.ui-calm .acct-showpw input {
  accent-color: var(--c-brand);
}

/* ---- 表单下面的提示、划线价、会员相关的小字 ---- */
.ui-calm #tbCashierModal .form-feedback {
  font-size: 13px;
  font-weight: 400;
}

.ui-calm .form-feedback.is-error {
  color: var(--c-danger);
}

.ui-calm .price-strike {
  color: var(--c-ink-4);
}

.ui-calm .vip-excluded-note {
  border-radius: var(--r-xs);
  background: var(--c-fill-3);
  color: var(--c-ink-3);
}

.ui-calm .cashier-vip-line {
  font-weight: 400;
  color: var(--c-warn);
}

/* ---- 订单卡片、状态标签（查单结果、弹窗和账号页里） ---- */
.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) .pricing-footnote {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--c-fill-2);
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-2);
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) .price-badge-soft {
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--c-fill-3);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  color: var(--c-ink-3);
}

/* ---- 脚本直接写在标签上的颜色 ----
   这几块里不少颜色是 shop-client.js 用 style="…" 直接写在标签上的，样式表只有加 !important 才盖得过去。
   下面按“原来的写法 → 新颜色”逐条对应；脚本里的写法改了，这里要跟着改，不然那一处会变回老颜色。
   不用改的三种：[style*="background:#ffffff"]、[style*="color:#ffffff"]、[style*="background:#1677ff"]（支付宝的蓝色小标）。 */

/* 文字：价格和正文用深色，说明用灰色，链接用蓝色；成功、提醒、出错各用一种颜色 */
.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) :is([style*="color:#ff5000"], [style*="color:#0f172a"], [style*="color:#1e293b"]) {
  color: var(--c-ink) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) strong[style*="color:#ff5000"] {
  font-weight: 600;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) :is([style*="color:#334155"], [style*="color:#0369a1"], [style*="color:#92400e"]) {
  color: var(--c-ink-2) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) :is([style*="color:#475569"], [style*="color:#64748b"], [style*="color:#c2410c"]) {
  color: var(--c-ink-3) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="color:#94a3b8"] {
  color: var(--c-ink-4) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) :is([style*="color:#0066ff"], [style*="color:#0284c7"], [style*="color:#1677ff"]) {
  color: var(--c-link) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) :is([style*="color:#047857"], [style*="color:#15803d"], [style*="color:#166534"]) {
  color: var(--c-ok) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="color:#b45309"] {
  color: var(--c-warn) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) :is([style*="color:#b91c1c"], [style*="color:#dc2626"]) {
  color: var(--c-danger) !important;
}

/* 底色：灰、浅蓝、浅绿、浅橙、浅红各一种 */
.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="background:#f8fafc"] {
  background: var(--c-fill-2) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="background:#f1f5f9"] {
  background: var(--c-fill-3) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="background:#f0f9ff"] {
  background: var(--c-brand-tint) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) :is([style*="background:#ecfdf5"], [style*="background:#f0fdf4"], [style*="background:#dcfce7"]) {
  background: var(--c-ok-tint) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) :is([style*="background:#fffbeb"], [style*="background:#fef3c7"]) {
  background: var(--c-warn-tint) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="background:#fee2e2"] {
  background: var(--c-danger-tint) !important;
}

/* 付款那一屏顶上的“支付宝收银台”小标签，和“去支付宝付款”的按钮 */
.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="background:linear-gradient(135deg,#1677ff,#0050b3)"] {
  background: var(--c-brand-tint) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="background:linear-gradient(135deg,#1677ff,#0958d9)"] {
  background: var(--g-brand) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="background:linear-gradient(135deg,#1677ff,#0958d9)"]:hover {
  background: var(--g-brand-hover) !important;
}

/* 边框：带底色的提示框不再描边；白底的卡片用浅灰细线 */
.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) :is([style*="border:1px solid #fcd34d"], [style*="border:1px solid #bae6fd"], [style*="border:1px solid #bbf7d0"], [style*="border:1px dashed #cbd5e1"], [style*="border:1.5px solid #34d399"]) {
  border-color: transparent !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="border:1px solid #e2e8f0"] {
  border-color: var(--c-line) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="border-color:#059669"] {
  border-color: var(--c-ok) !important;
}

.ui-calm :is(#tbCashierModal, .sp-lookup-card, #accountRoot) [style*="border-color:#0284c7"] {
  border-color: var(--c-link) !important;
}

/* ==========================================================================
   10. 商品详情（product.html）· 新的一套样子
   --------------------------------------------------------------------------
   - 页面骨架（当前位置那一行、购买区、商品说明、其他商品）写在 product.html 里，类名以 pd- 开头；
     购买区、商品说明、实力证明、底部购买条里面的内容是 shop-client.js 画的，类名还是老的（tb-*、prod-*、proof-*…）。
     这一节把它们换成新样子，每一条前面都带 .pg-prod（写在这一页的 body 上），只对这一页生效。
   - 前面“6.”“7.”两节老样式还留着（别的页面在用）。那里的尺寸按 --pu 算，这一页上 --pu 仍然有值，
     所以凡是老样式写过的尺寸，这里都重新写成固定的数，不然老的会漏出来。
   - “其他商品”的卡片、会员标签、左右翻的圆钮沿用“8. 官方商城”里的写法（这一页的 body 上也有 .pg-shop）。
   - 颜色、圆角、阴影用 styles.css “24. 新的一套样子”里定的变量。
   - 窗口宽度的分界：1023px 以下是平板，767px 以下是手机；
     底部购买条和页面里的购买按钮在 768px 换样子（和脚本、老样式一致）。
   ========================================================================== */

/* ---- 整页 ---- */
/* --pd-gap：购买区、商品说明、实力证明这几块之间的留白 */
.pg-prod .pd-main {
  --pd-gap: 72px;
}

/* 没有“其他商品”可放时（没有可推荐的，或者这件商品没找到），那一栏不出现，最后一块和页脚之间补上留白 */
.pg-prod .pd-main:has(.pd-grid:empty) {
  padding-bottom: var(--pg-pad);
}

.pg-prod .pd-related:has(.pd-grid:empty) {
  display: none;
}

/* ---- 最上面一行：当前位置，右边是查订单和购物车 ---- */
.pd-top {
  padding-top: 20px;
}

.pd-crumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  margin-bottom: 20px;
}

.pd-crumb-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-3);
}

.pd-crumb-links a {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 32px;
  color: var(--c-ink-3);
  transition: color var(--t-fast) ease-in;
}

.pd-crumb-links a:hover {
  text-decoration: none;
  color: var(--c-link);
}

.pd-crumb-links i {
  flex: none;
  color: var(--c-line-3);
}

/* 商品名太长时在这里截断，不把右边的入口挤到下一行 */
.pd-crumb-links strong {
  min-width: 0;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--c-ink);
  overflow: hidden;
}

.pd-crumb-side {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
}

.pd-crumb .pg-link {
  font-size: 14px;
  line-height: 22px;
}

/* 购物车入口：只在顶栏右边的购物车收起来、底部又没有购买条的宽度上出现（769–1240px） */
.pg-btn.pd-cartbtn {
  display: none;
}

@media (min-width: 769px) and (max-width: 1240px) {
  .pg-btn.pd-cartbtn {
    display: inline-flex;
  }
}

/* ---- 购买区：左边图片，右边名称、价格、规格、数量、按钮；外面不再套一张大卡片 ---- */
.pg-prod .tb-buy-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  animation: none;
}

.pg-prod .tb-buy-box > div {
  min-width: 0;
}

/* 商品数据还没取回来时这里是空的：高度由前面的老样式占住（一整屏，页脚不会先露出来），不放底色、不扫光 */
.pg-prod .tb-buy-box:empty {
  background: none;
}

.pg-prod .tb-buy-box > div:first-child {
  width: auto;
  max-width: none;
  margin: 0;
}

/* 右边内容比图片长时，图片跟着停在顶栏下面（商品没找到时购买区里只有一句提示，那一块带 style，不算） */
@media (min-width: 768px) {
  .pg-prod .tb-buy-box > div:first-child:not([style]) {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* 大图：4:3 的浅色底框，图片整张放进去不裁切；点了放大看 */
.pg-prod .tb-gallery-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--c-hair);
  border-radius: var(--r-lg);
  background: var(--c-fill);
  box-shadow: none;
  cursor: zoom-in;
  overflow: hidden;
}

.pg-prod .tb-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
}

.pg-prod .tb-gallery-main:hover img {
  transform: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pg-prod .tb-gallery-main:hover img {
    transform: scale(1.03);
  }
}

/* 右下角的“点击放大”：鼠标移上去才出现，触屏上一直显示 */
.pg-prod .tb-gallery-main::after {
  right: 12px;
  bottom: 12px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: rgba(31, 35, 41, 0.6);
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  color: var(--c-on-dark);
  opacity: 0;
  transform: none;
  transition: opacity var(--t-mid) ease;
}

.pg-prod .tb-gallery-main:hover::after {
  opacity: 1;
}

@media (hover: none) {
  .pg-prod .tb-gallery-main::after {
    opacity: 1;
  }
}

/* 小图一排：选中的那张是蓝框（只有一张图时这一排不出现，老样式里写的） */
.pg-prod .tb-thumb-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pg-prod .tb-thumb-btn {
  flex: none;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--c-hair);
  border-radius: var(--r-sm);
  background: var(--c-fill);
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--t-fast) ease-in;
}

.pg-prod .tb-thumb-btn:hover {
  border-color: var(--c-brand-2);
  box-shadow: none;
  transform: none;
}

.pg-prod .tb-thumb-btn.is-active {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 1px var(--c-brand);
}

.pg-prod .tb-thumb-btn:focus-visible {
  outline-offset: -2px;
}

.pg-prod .tb-thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

/* ---- 右边：自营标记、名称、一句话介绍 ---- */
.pg-prod .tb-store-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.pg-prod .tb-store-flag span {
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--c-ink-3);
  overflow: hidden;
}

.pg-prod .tb-store-flag .tb-flag-self {
  flex: none;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--c-brand-tint);
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-link);
}

.pg-prod .tb-detail-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 28px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0;
  color: var(--c-ink);
}

.pg-prod .tb-detail-sub {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 26px;
  color: var(--c-ink-3);
}

/* ---- 价格：浅灰底的一条，左边价格，右边已售和好评 ---- */
.pg-prod .tb-price-panel {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 24px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-fill-2);
  box-shadow: none;
  isolation: auto;
  overflow: visible;
}

.pg-prod .tb-price-panel::before {
  content: none;
}

.pg-prod .tb-price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.pg-prod .tb-price-label {
  align-self: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--c-ink-3);
}

/* 老样式把价格做成渐变色的字（背景裁成文字的形状），这里改回实色 */
.pg-prod .tb-price-now {
  padding: 0;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  font-family: inherit;
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: 0;
  color: var(--c-ink);
  -webkit-text-fill-color: currentColor;
}

.pg-prod .tb-price-now small {
  margin-right: 2px;
  font-size: 20px;
  font-weight: 600;
}

.pg-prod .tb-price-old {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: line-through;
  color: var(--c-ink-4);
}

.pg-prod .tb-stat-pair {
  display: flex;
  gap: 0;
  text-align: center;
}

.pg-prod .tb-stat-pair div {
  padding: 0 20px;
}

.pg-prod .tb-stat-pair div + div {
  border-left: 1px solid var(--c-line);
}

.pg-prod .tb-stat-pair div:first-child {
  padding-left: 0;
}

.pg-prod .tb-stat-pair div:last-child {
  padding-right: 0;
}

.pg-prod .tb-stat-pair div strong {
  display: block;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--c-ink);
}

.pg-prod .tb-stat-pair div span {
  font-size: 12px;
  line-height: 20px;
  color: var(--c-ink-3);
}

/* ---- 会员价：浅橙底的一条；只是一句说明（没有会员价）时不要底色，当一行小字 ---- */
.pg-prod .tb-buy-box .tb-vip-line {
  gap: 4px 10px;
  margin: -12px 0 24px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-warn-tint);
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-2);
}

.pg-prod .tb-buy-box .tb-vip-line.is-hint {
  padding: 0;
  background: none;
  font-size: 14px;
  color: var(--c-ink-3);
}

.pg-prod .tb-vip-line strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
}

.pg-prod .tb-vip-note {
  font-size: 13px;
  color: var(--c-ink-3);
}

.pg-prod .tb-vip-line a {
  font-weight: 400;
  text-decoration: none;
  color: var(--c-link);
}

.pg-prod .tb-vip-line a:hover {
  text-decoration: underline;
}

/* ---- 选规格、选数量：左边一列灰色的小标题，右边是选项 ---- */
.pg-prod .tb-prop-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 20px;
}

.pg-prod .tb-prop-label {
  padding-top: 11px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--c-ink-3);
}

/* 规格一行一个：左边名称（下面一行小字是它的特点），右边价格 */
.pg-prod .tb-sku-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

/* 右边多留一点，价格不会压到选中时右下角的那个勾 */
.pg-prod .tb-sku-chip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  padding: 10px 36px 10px 15px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  box-shadow: none;
  font-family: inherit;
  text-align: left;
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color var(--t-fast) ease-in, background-color var(--t-fast) ease-in;
}

.pg-prod .tb-sku-chip:hover {
  border-color: var(--c-brand-2);
  box-shadow: none;
  transform: none;
}

/* 选中的规格：蓝框、淡蓝底，右下角一个蓝底白勾 */
.pg-prod .tb-sku-chip.is-selected {
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
  box-shadow: inset 0 0 0 1px var(--c-brand);
  color: var(--c-ink);
}

.pg-prod .tb-sku-chip.is-selected::after {
  content: "";
  right: 0;
  bottom: 0;
  width: 20px;
  height: 16px;
  padding: 0;
  border-radius: var(--r-sm) 0 7px 0;
  background: var(--c-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.2 7.4 8.2 2.8' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 6px 4px / 10px 10px no-repeat;
}

/* 名称折行时，不让最后一行只剩一两个字 */
.pg-prod .tb-sku-chip strong,
.pg-prod .tb-sku-chip small {
  grid-column: 1;
  text-wrap: pretty;
}

.pg-prod .tb-sku-chip strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.pg-prod .tb-sku-price {
  grid-row: 1 / span 2;
  grid-column: 2;
  margin-top: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--c-ink);
}

.pg-prod .tb-sku-price i {
  margin-right: 1px;
  font-size: 12px;
  font-style: normal;
}

.pg-prod .tb-sku-chip small {
  display: block;
  margin-top: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--c-ink-3);
}

/* 选中规格的说明：接在规格下面，左边和选项对齐 */
.pg-prod .tb-sku-desc-box {
  margin: -8px 0 20px 84px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-fill-2);
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-3);
}

.pg-prod .tb-sku-desc-box strong {
  font-weight: 500;
  color: var(--c-ink-2);
}

/* 数量：减号、数字、加号连成一个细边框的框 */
.pg-prod .tb-qty-wrap {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  overflow: hidden;
  transition: border-color var(--t-fast) ease-in;
}

.pg-prod .tb-qty-wrap:focus-within {
  border-color: var(--c-brand);
}

.pg-prod .tb-qty-wrap button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: background-color var(--t-fast) ease-in;
}

.pg-prod .tb-qty-wrap button:hover {
  background: var(--c-fill-hover);
  color: var(--c-ink);
}

.pg-prod .tb-qty-wrap input {
  width: 52px;
  height: 36px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: var(--c-ink);
}

/* 框把超出的部分裁掉了，键盘走到这里时的蓝圈画在里面 */
.pg-prod .tb-qty-wrap :focus-visible {
  outline-offset: -2px;
}

/* 用手指点的屏幕、平板以下的窗口：加减号做到 44px 见方（和老样式的条件一样） */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .pg-prod .tb-qty-wrap button {
    width: 44px;
    height: 44px;
  }

  .pg-prod .tb-qty-wrap input {
    width: 56px;
    height: 44px;
  }

  .pd-crumb-links a {
    min-height: 40px;
  }
}

/* 数量旁边的库存说明：颜色是脚本直接写在标签上的，这里换成新的灰色和红色；一行放不下时整句换到下一行 */
.pg-prod .tb-buy-box [style*="color:#64748b"] {
  color: var(--c-ink-3) !important;
}

.pg-prod .tb-buy-box [style*="color:#dc2626"] {
  color: var(--c-danger) !important;
}

.pg-prod .tb-prop-row > div[style*="display:flex"] {
  flex-wrap: wrap;
  row-gap: 6px !important;
}

/* ---- 几句保障说明：一行小字，每句前面一个绿勾，不再做成一颗颗胶囊 ---- */
.pg-prod .tb-guarantee-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--c-ink-3);
}

.pg-prod .tb-guarantee-row span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-weight: 400;
  line-height: 22px;
  color: var(--c-ink-3);
}

.pg-prod .tb-guarantee-row span::before {
  content: "";
  flex: none;
  width: 5px;
  height: 9px;
  margin: -3px 8px 0 3px;
  border: solid var(--c-ok);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* ---- 购买按钮：立即购买是蓝色实心胶囊，加入购物车是蓝色细边框的胶囊，继续逛商城是一行文字 ----
   （立即购买的底色、圆角在“9. 收银台弹窗”那一节，和弹窗里的主按钮写在一起） */
.pg-prod .tb-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pg-prod .tb-action-buttons .tb-btn-buynow {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: none;
  min-height: 48px;
  padding: 0 28px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
}

.pg-prod .tb-btn-addcart {
  flex: 0 0 auto;
  min-width: 148px;
  max-width: none;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--c-link);
  border-radius: var(--r-pill);
  background: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  color: var(--c-link);
  cursor: pointer;
  transition: background-color var(--t-fast) ease-in;
}

.pg-prod .tb-btn-addcart:hover {
  border-color: var(--c-link);
  background: rgba(20, 86, 240, 0.08);
  box-shadow: none;
  transform: none;
}

.pg-prod .tb-btn-addcart:disabled {
  border-color: var(--c-line-2);
  background: none;
  color: var(--c-line-3);
  cursor: not-allowed;
}

/* 脚本在这个链接的标签上直接写了 padding，要压过它只能加 !important */
.pg-prod .tb-action-buttons .link-arrow-pill {
  padding: 0 8px !important;
  border-radius: 0;
  background: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--c-ink-3);
  transition: color var(--t-fast) ease-in;
}

.pg-prod .tb-action-buttons .link-arrow-pill:hover {
  background: none;
  color: var(--c-link);
  transform: none;
}

.pg-prod .tb-buy-box .tb-redeem-line {
  margin-top: 16px;
  font-size: 13px;
  line-height: 22px;
  color: var(--c-ink-3);
}

.pg-prod .tb-redeem-line span {
  margin-left: 8px;
}

/* 加入购物车以后冒出来的那句话：淡蓝底的一条，下面一行是“查看购物车并结算”的小按钮
   （按钮单独一行、和那句话左边对齐；脚本在按钮的标签上写了左边距，要压过只能加 !important） */
.pg-prod .tb-buy-box .form-feedback {
  min-height: 0;
  margin-top: 0;
}

.pg-prod .tb-buy-box .form-feedback:not(:empty) {
  margin-top: 12px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-brand-tint);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--c-ink-2);
  animation: none;
}

.pg-prod .tb-buy-box .form-feedback .admin-btn-sm {
  display: flex;
  width: fit-content;
  margin: 6px 0 2px !important;
  background: var(--c-surface);
}

/* ---- 商品没找到、或者没有可买的规格：购买区里只有一句话和一个回商城的入口 ---- */
.pg-prod .tb-buy-box > div[style*="grid-column"] {
  border-radius: var(--r-lg);
  background: var(--c-fill-2);
  font-size: 16px;
  line-height: 24px;
  color: var(--c-ink-3);
}

.pg-prod .tb-buy-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 32px;
  color: var(--c-ink);
}

.pg-prod .tb-buy-box .btn-primary-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 24px;
  font-size: 16px;
  line-height: 24px;
}

.pg-prod .tb-buy-box > div[style*="grid-column"] > a:not([class]) {
  color: var(--c-link);
}

/* ---- 商品说明、实力证明：不套卡片，大标题直接写在页面上 ---- */
.pg-prod .pd-info .pricing-group-card {
  margin: 0;
  padding: var(--pd-gap) 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.pg-prod #tbProductDetails > .pricing-group-card,
.pg-prod .tb-proof > .pricing-group-card {
  animation: none;
}

.pg-prod .pd-info .pricing-group-head {
  display: block;
  margin: 0 0 24px;
}

.pg-prod .pd-info .pricing-group-head h3 {
  margin: 0;
  font-family: inherit;
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0;
  color: var(--c-ink);
}

.pg-prod .pd-info .pricing-group-head span {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--c-ink-3);
}

/* “你会拿到”：浅灰底的一行，前面一个淡蓝的小标签 */
.pg-prod .prod-gets {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-fill-2);
  font-size: 16px;
  line-height: 26px;
  color: var(--c-ink);
}

.pg-prod .prod-gets b {
  flex: none;
  margin: 0;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--c-brand-tint);
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  color: var(--c-link);
}

/* 几条要点：两列，每条前面一个蓝勾，不再一条一个框 */
.pg-prod .prod-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-prod .prod-points li {
  position: relative;
  padding: 0 0 0 26px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 16px;
  line-height: 26px;
  color: var(--c-ink-2);
  transition: none;
}

.pg-prod .prod-points li:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.pg-prod .prod-points li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  width: 6px;
  height: 10px;
  margin: 0;
  border: solid var(--c-brand);
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: rotate(45deg);
}

.pg-prod .prod-points li::after {
  content: none;
}

.pg-prod .prod-points li:only-child {
  grid-column: 1 / -1;
}

.pg-prod .prod-sub-title {
  display: block;
  margin: 40px 0 16px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--c-ink);
}

.pg-prod .prod-sub-title::after {
  content: none;
}

/* 全部规格和价格：细边框、圆角的一张表，表头浅灰底。
   边框和圆角画在表格自己身上（外面那层要留着左右滑动，表格放不下时上面还有一句提示）。
   手机上脚本会给表格加 is-stacked，一行变成一张卡片，所以下面分成“没排成卡片”和“排成卡片”两组来写 */
.pg-prod .pricing-table-scroll::before {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-ink-3);
  opacity: 1;
}

.pg-prod .xes-price-table:not(.is-stacked) {
  width: 100%;
  min-width: 600px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--c-surface);
  font-size: 14px;
}

.pg-prod .xes-price-table:not(.is-stacked) th {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  background: var(--c-fill-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
  color: var(--c-ink-3);
}

.pg-prod .xes-price-table:not(.is-stacked) th:first-child {
  border-radius: 11px 0 0 0;
}

.pg-prod .xes-price-table:not(.is-stacked) th:last-child {
  border-radius: 0 11px 0 0;
}

.pg-prod .xes-price-table:not(.is-stacked) td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 22px;
  vertical-align: middle;
  color: var(--c-ink-2);
}

/* 规格名、特点这两列允许换行（老样式不许换，窗口一窄就把“包含什么”挤成窄窄的一条）；
   前三列各占一个比例，剩下的都给字最多的“包含什么” */
.pg-prod .xes-price-table:not(.is-stacked) td:first-child,
.pg-prod .xes-price-table:not(.is-stacked) td:nth-child(2) {
  white-space: normal;
}

.pg-prod .xes-price-table:not(.is-stacked) th:first-child {
  width: 24%;
}

.pg-prod .xes-price-table:not(.is-stacked) th:nth-child(2) {
  width: 26%;
}

.pg-prod .xes-price-table:not(.is-stacked) th:nth-child(3) {
  width: 12%;
}

.pg-prod .xes-price-table:not(.is-stacked) tbody tr:last-child td {
  border-bottom: 0;
}

.pg-prod .xes-price-table:not(.is-stacked) tbody tr:last-child td:first-child {
  border-radius: 0 0 0 11px;
}

.pg-prod .xes-price-table:not(.is-stacked) tbody tr:last-child td:last-child {
  border-radius: 0 0 11px 0;
}

/* 鼠标移到某一行：底色画在格子上（画在整行上会从表格的圆角里露出来） */
.pg-prod .xes-price-table:not(.is-stacked) tbody tr:hover {
  background: none;
}

.pg-prod .xes-price-table:not(.is-stacked) tbody tr:hover td {
  background: var(--c-fill-2);
}

.pg-prod .xes-price-table td strong {
  font-weight: 500;
  color: var(--c-ink);
}

.pg-prod .xes-price-table .price-tag {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--c-ink);
}

/* 排成卡片时：每个规格一张细边框的卡片，第一行是规格名（不带“规格：”这个小标题） */
.pg-prod .xes-price-table.is-stacked {
  min-width: 0;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}

.pg-prod .xes-price-table.is-stacked tbody tr {
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.pg-prod .xes-price-table.is-stacked td {
  padding: 3px 0;
  border: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-2);
}

.pg-prod .xes-price-table.is-stacked td[data-label]::before {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-ink-3);
}

.pg-prod .xes-price-table.is-stacked td:first-child {
  padding: 0 0 6px;
  font-size: 16px;
  line-height: 24px;
}

.pg-prod .xes-price-table.is-stacked td:first-child::before {
  content: none;
}

/* ---- 实力证明：一排图片，左右滑着看，点了放大 ---- */
.pg-prod .tb-proof {
  margin: 0;
}

/* 这一排比版心左右各宽出 4px：键盘走到第一张、最后一张图时，外面那圈蓝线不会被裁掉 */
.pg-prod .tb-proof .hscroll {
  margin: 0 -4px;
}

.pg-prod .tb-proof .hscroll::before,
.pg-prod .tb-proof .hscroll::after {
  display: none;
}

.pg-prod .hscroll-track.proof-row {
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 0;
  padding: 4px;
  scroll-padding-inline: 4px;
}

.pg-prod .proof-item {
  width: 240px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--c-ink-2);
  cursor: zoom-in;
}

.pg-prod .proof-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--c-hair);
  border-radius: var(--r-sm);
  background: var(--c-fill);
  box-shadow: none;
  object-fit: contain;
  transition: border-color var(--t-fast) ease-in;
}

.pg-prod .proof-item:hover img,
.pg-prod .proof-item:focus-visible img {
  border-color: var(--c-brand-2);
  box-shadow: none;
  transform: none;
}

.pg-prod .proof-item span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--c-ink-2);
  transition: color var(--t-fast) ease-in;
}

.pg-prod .proof-item:hover span {
  color: var(--c-link);
}

/* 成稿节选是竖着的一页页纸：窄一些，按纸的比例放，只露出上半页 */
.pg-prod .proof-row.is-pages .proof-item {
  width: 176px;
}

.pg-prod .proof-row.is-pages .proof-item img {
  height: auto;
  aspect-ratio: 170 / 236;
  object-fit: cover;
  object-position: top;
}

/* 左右翻的圆钮：样子写在“8. 官方商城”里（和收费标准那一行写在一起），这里只定位置——
   对着图片的中间，不算下面那行字；左右各往里收 4px，抵掉上面宽出去的那 4px */
.pg-prod .tb-proof .hscroll-btn {
  top: 94px;
}

.pg-prod .tb-proof .hscroll:has(.is-pages) .hscroll-btn {
  top: 126px;
}

.pg-prod .tb-proof .hscroll-btn.is-prev {
  left: -16px;
}

.pg-prod .tb-proof .hscroll-btn.is-next {
  right: -16px;
}

/* 触屏和手机上没有圆钮，用手指滑：这一排一直滑到屏幕边（--sp-gut 是版心到屏幕边的距离，见“8. 官方商城”） */
@media (hover: none), (max-width: 768px) {
  .pg-prod .tb-proof .hscroll {
    margin: 0 calc(max(var(--sp-gut), 4px) * -1);
  }

  .pg-prod .tb-proof .hscroll-track {
    padding-right: max(var(--sp-gut), 4px);
    padding-left: max(var(--sp-gut), 4px);
    scroll-padding-left: max(var(--sp-gut), 4px);
  }
}

/* ---- 其他商品：卡片和官方商城里的一样，一行 4 张（服务端最多给 4 件）；手机上一行 2 张 ---- */
.pg-prod .pd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ---- 底部购买条（shop-client.js 画在 body 最后面）----
   手机上一直贴在底部：左边首页、店铺、购物车三个小图标，右边加入购物车和立即购买；
   电脑上是浮在页面底部中间的一条白色圆角条，页面里的购买按钮看不到时才出现（is-floating 由脚本加）。
   两种样子在 768px 分界，和老样式一致。先写两边共用的：两个按钮的颜色、加购以后冒出来的提示 */
.pg-prod .tb-mbar-cart,
.pg-prod .tb-mbar-buy {
  border-radius: var(--r-pill);
  box-shadow: none;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) ease-in;
}

.pg-prod .tb-mbar-cart {
  border: 1px solid var(--c-link);
  background: none;
  font-weight: 400;
  color: var(--c-link);
}

.pg-prod .tb-mbar-cart:hover {
  border-color: var(--c-link);
  background: rgba(20, 86, 240, 0.08);
  transform: none;
}

.pg-prod .tb-mbar-buy {
  position: static;
  border: 0;
  background: var(--g-brand);
  font-weight: 500;
  color: var(--c-on-dark);
  overflow: visible;
}

.pg-prod .tb-mbar-buy::after {
  content: none;
}

.pg-prod .tb-mbar-buy:hover {
  background: var(--g-brand-hover);
  box-shadow: none;
  transform: none;
}

.pg-prod .tb-mbar-cart:disabled {
  border-color: var(--c-line-2);
  background: none;
  color: var(--c-line-3);
  cursor: not-allowed;
}

.pg-prod .tb-mbar-buy:disabled {
  background: var(--c-line-3);
  color: var(--c-surface);
  cursor: not-allowed;
}

.pg-prod .tb-mbar-icon svg {
  stroke-width: 1.6;
}

.pg-prod .tb-mbar-tip {
  bottom: calc(100% + 8px);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--c-dark);
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--c-on-dark);
  transition: opacity var(--t-mid) ease;
}

.pg-prod .tb-mbar-tip.is-show {
  animation: none;
}

.pg-prod .tb-mbar-tip.is-warn {
  background: var(--c-warn);
}

/* 电脑、平板：浮在底部中间。宽度留出右下角两个圆钮的位置（左右各空 100px 以上） */
@media (min-width: 769px) {
  .pg-prod .tb-mobile-buybar {
    bottom: 24px;
    gap: 16px;
    width: min(880px, calc(100vw - 200px));
    padding: 11px 16px 11px 12px;
    border: 1px solid var(--c-hair);
    border-radius: var(--r-lg);
    background: var(--c-surface);
    box-shadow: var(--sh-pop);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translate(-50%, 12px);
    transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out), visibility 0s linear var(--t-mid);
  }

  .pg-prod .tb-mobile-buybar.is-floating {
    transform: translate(-50%, 0);
    transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out), visibility 0s;
  }

  /* 左边：商品小图、名称、当前选的规格 */
  .pg-prod .tb-mbar-info {
    gap: 12px;
  }

  .pg-prod .tb-mbar-info img {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--c-fill);
    box-shadow: 0 0 0 1px var(--c-hair);
  }

  .pg-prod .tb-mbar-info strong {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: var(--c-ink);
  }

  .pg-prod .tb-mbar-info span {
    font-size: 12px;
    line-height: 20px;
    color: var(--c-ink-3);
  }

  /* 购物车：图标、字、数量排成一行，没有边框，鼠标移上去出一块浅灰底 */
  .pg-prod .tb-mbar-icon {
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--r-pill);
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--c-ink-2);
    transition: background-color var(--t-fast) ease-in, color var(--t-fast) ease-in;
  }

  .pg-prod .tb-mbar-icon:hover {
    border-color: transparent;
    background: var(--c-fill-hover);
    color: var(--c-ink);
    transform: none;
  }

  .pg-prod .tb-mbar-icon svg {
    width: 20px;
    height: 20px;
  }

  .pg-prod .tb-mbar-badge {
    min-width: 18px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    background: var(--c-brand-tint);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    color: var(--c-link);
  }

  .pg-prod .tb-mbar-btns {
    gap: 8px;
  }

  .pg-prod .tb-mbar-cart,
  .pg-prod .tb-mbar-buy {
    min-height: 40px;
    padding: 0 20px;
    font-size: 14px;
    line-height: 20px;
  }
}

/* 系统设置了“减少动态效果”：这一条只淡入淡出，不上下移动 */
@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
  .pg-prod .tb-mobile-buybar {
    transform: translate(-50%, 0);
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  .pg-prod .tb-mobile-buybar.is-floating {
    transition: opacity 0.2s ease, visibility 0s;
  }
}

/* 手机（768px 以下）：贴在底部的一条白底，上面一根细线 */
@media (max-width: 768px) {
  /* 页面最下面给这一条让出位置：8 + 44 + 8，再加上面 1px 的线 */
  body.pg-prod.is-product-page {
    padding-bottom: calc(61px + env(safe-area-inset-bottom, 0px));
  }

  /* 正好 768px 宽时右下角的两个圆钮还在：往上挪，不压在这一条上 */
  .pg-prod .hp-float {
    bottom: calc(77px + env(safe-area-inset-bottom, 0px));
  }

  .pg-prod .tb-mobile-buybar {
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--c-hair);
    border-radius: 0;
    background: var(--c-surface);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .pg-prod .tb-mbar-icons {
    gap: 0;
  }

  .pg-prod .tb-mbar-icon {
    gap: 2px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-decoration: none;
    color: var(--c-ink-2);
    transition: background-color var(--t-fast) ease-in;
  }

  .pg-prod .tb-mbar-icon:active {
    background: var(--c-fill-hover);
    color: var(--c-ink-2);
  }

  .pg-prod .tb-mbar-icon svg {
    width: 22px;
    height: 22px;
  }

  .pg-prod .tb-mbar-badge {
    top: 0;
    right: 0;
    min-width: 16px;
    padding: 0 4px;
    border-radius: var(--r-pill);
    background: var(--c-brand);
    box-shadow: 0 0 0 1.5px var(--c-surface);
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    color: var(--c-on-dark);
  }

  /* 两个按钮分开放：加入购物车按字的宽度，立即购买（后面带着价格）占掉剩下的 */
  .pg-prod .tb-mbar-btns {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .pg-prod .tb-mbar-cart,
  .pg-prod .tb-mbar-buy {
    min-height: 44px;
    font-size: 14px;
    line-height: 20px;
  }

  .pg-prod .tb-mbar-cart {
    padding: 0 12px;
  }

  .pg-prod .tb-mbar-buy {
    padding: 0 6px;
  }
}

/* 窄一些的手机：三个图标收窄、字小一号，把宽度让给“立即购买 ¥…” */
@media (max-width: 400px) {
  .pg-prod .tb-mobile-buybar {
    gap: 8px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .pg-prod .tb-mbar-icons {
    gap: 0;
  }

  .pg-prod .tb-mbar-icon {
    min-width: 38px;
    padding: 0;
    font-size: 12px;
  }

  .pg-prod .tb-mbar-btns {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
  }

  .pg-prod .tb-mbar-cart,
  .pg-prod .tb-mbar-buy {
    font-size: 13px;
  }

  .pg-prod .tb-mbar-cart {
    padding: 0 8px;
  }

  .pg-prod .tb-mbar-buy {
    padding: 0 4px;
  }
}

/* ---- 动起来的地方（系统设置了“减少动态效果”时都没有） ---- */
@media (prefers-reduced-motion: no-preference) {
  /* 购买区第一次画出来时轻轻浮上来一下（之后选规格、改数量重画里面的内容时不会再来） */
  .pg-prod .tb-buy-box:not(:empty) {
    animation: pdIn 0.4s var(--ease-out) backwards;
  }

  /* 加进购物车以后，底部购买条里的数量跳一下 */
  .pg-prod .tb-mbar-badge.is-bump {
    animation: pdBump 0.3s var(--ease-out);
  }
}

@keyframes pdIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pdBump {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

/* 往下滚时商品说明、实力证明浮上来的那一下（标记是 main.js 加的）：换成和首页一样的缓动 */
html.js-ready .pg-prod [data-rv].is-in {
  transition: opacity 0.6s var(--ease-out) var(--rv-d, 0ms), transform 0.6s var(--ease-out) var(--rv-d, 0ms);
}

/* ---- 窗口比版心窄（右边那一栏跟着变窄）---- */
@media (max-width: 1183px) {
  /* 价格一行，已售和好评放到下面一行（中间一根细线） */
  .pg-prod .tb-stat-pair {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--c-line);
    text-align: left;
  }

  .pg-prod .tb-stat-pair div {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 16px;
  }

  .pg-prod .tb-stat-pair div strong {
    font-size: 16px;
    line-height: 24px;
  }

  /* “继续逛商城”在这个宽度下可能换到按钮下面一行：去掉左右的留白，换行以后和按钮的左边对齐 */
  .pg-prod .tb-action-buttons .link-arrow-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 !important;
  }
}

/* ---- 平板 ---- */
@media (max-width: 1023px) {
  .pg-prod .pd-main {
    --pd-gap: 56px;
  }

  .pg-prod .tb-buy-box {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 32px;
  }

  .pg-prod .tb-detail-title {
    font-size: 24px;
    line-height: 34px;
  }

  /* 其他商品还是一行 4 张，卡片窄了：里面的字和留白用手机上那一套小一号的 */
  .pg-prod .pd-grid {
    gap: 12px;
  }

  .pg-prod .pd-grid .tb-prod-body {
    padding: 12px;
  }

  .pg-prod .pd-grid .tb-prod-body h3 {
    min-height: 44px;
    font-size: 14px;
    line-height: 22px;
  }

  .pg-prod .pd-grid .tb-prod-foot {
    flex-wrap: wrap;
    gap: 0 8px;
    padding-top: 10px;
  }

  .pg-prod .pd-grid .tb-price b {
    font-size: 18px;
    line-height: 24px;
  }
}

/* ---- 手机 ---- */
@media (max-width: 767px) {
  .pg-prod .pd-main {
    --pd-gap: 40px;
  }

  .pd-top {
    padding-top: 8px;
  }

  .pd-crumb {
    margin-bottom: 8px;
  }

  /* 图片在上，名称、价格、规格在下 */
  .pg-prod .tb-buy-box {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .pg-prod .tb-gallery-main {
    border-radius: var(--r-md);
  }

  .pg-prod .tb-detail-title {
    font-size: 22px;
    line-height: 32px;
  }

  .pg-prod .tb-detail-sub {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 24px;
  }

  .pg-prod .tb-price-panel {
    gap: 10px 16px;
    margin-bottom: 20px;
    padding: 14px 16px;
  }

  .pg-prod .tb-price-now {
    font-size: 30px;
    line-height: 38px;
  }

  .pg-prod .tb-price-now small {
    font-size: 18px;
  }

  .pg-prod .tb-stat-pair {
    padding-top: 10px;
  }

  .pg-prod .tb-buy-box .tb-vip-line {
    margin: -8px 0 20px;
  }

  /* 选规格：小标题在上，规格在下。选数量那一行（脚本在标签上写了 align-items）还是小标题在左、加减号在右；
     库存说明在手机上常常要换到加减号下面一行，所以小标题不跟着居中，对着加减号那一行
     （这一行的对齐方式、小标题的上边距都是脚本直接写在标签上的，要压过只能加 !important） */
  .pg-prod .tb-prop-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .pg-prod .tb-prop-row[style*="align-items"] {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: start !important;
  }

  .pg-prod .tb-prop-label {
    padding-top: 0;
  }

  .pg-prod .tb-prop-row[style*="align-items"] .tb-prop-label {
    padding-top: 12px !important;
  }

  .pg-prod .tb-sku-chip {
    column-gap: 12px;
    padding-right: 32px;
  }

  .pg-prod .tb-sku-desc-box {
    margin-left: 0;
  }

  .pg-prod .tb-guarantee-row {
    gap: 4px 16px;
    margin-bottom: 16px;
  }

  .pg-prod .pd-info .pricing-group-head {
    margin-bottom: 16px;
  }

  .pg-prod .pd-info .pricing-group-head h3 {
    font-size: 22px;
    line-height: 32px;
  }

  .pg-prod .pd-info .pricing-group-head span {
    margin-top: 4px;
    font-size: 14px;
    line-height: 22px;
  }

  .pg-prod .prod-gets {
    display: block;
    margin-bottom: 20px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 24px;
  }

  .pg-prod .prod-gets b {
    display: inline-block;
    margin: 0 8px 0 0;
    vertical-align: 1px;
  }

  .pg-prod .prod-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .pg-prod .prod-points li {
    font-size: 15px;
    line-height: 24px;
  }

  .pg-prod .prod-points li::before {
    top: 6px;
  }

  .pg-prod .prod-sub-title {
    margin: 28px 0 12px;
    font-size: 17px;
    line-height: 26px;
  }

  .pg-prod .hscroll-track.proof-row {
    gap: 12px;
  }

  .pg-prod .proof-item {
    width: 180px;
  }

  .pg-prod .proof-row.is-pages .proof-item {
    width: 150px;
  }

  .pg-prod .proof-item span {
    margin-top: 8px;
    font-size: 13px;
    line-height: 20px;
  }

  .pg-prod .pd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 手机上的购买按钮在底部那一条里，页面里的那一排不出现（老样式在 768px 以下收起来，这里接着它写间距） */
@media (max-width: 768px) {
  .pg-prod .tb-action-buttons {
    display: none;
  }

  .pg-prod .tb-buy-box .tb-redeem-line {
    margin-top: 0;
  }
}

/* ==========================================================================
   11. 我的账号与订单（account.html）· 新的一套样子
   页头紧凑，内容区统一用飞书浅灰底 + 细线白卡；保留 account-client.js 的全部类名。
   ========================================================================== */
.pg-account .ac-hero {
  padding: 48px 0 88px;
}

.pg-account .ac-hero-in {
  position: relative;
  z-index: 1;
}

.pg-account .ac-hero .pg-h1 {
  margin-top: 14px;
  font-size: 34px;
  line-height: 46px;
}

.pg-account .ac-hero .pg-desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
}

.pg-account .ac-main {
  padding: 8px 0 88px;
  background: var(--c-surface);
}

.pg-account .acct-wrap {
  width: auto;
  max-width: 1120px;
}

.pg-account .acct-card {
  padding: 28px 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: none;
}

.pg-account .pricing-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-hair);
}

.pg-account .pricing-group-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--c-ink);
}

.pg-account .pricing-group-head span {
  font-size: 13px;
  color: var(--c-ink-3);
}

.pg-account .acct-guest-grid {
  gap: 24px;
}

.pg-account .acct-benefits {
  background: var(--c-fill-2);
  border-color: var(--c-hair);
}

.pg-account .acct-benefits h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
}

.pg-account .acct-benefits li {
  font-size: 14px;
  line-height: 22px;
  color: var(--c-ink-3);
}

.pg-account .acct-benefits li::before {
  background: var(--c-brand-tint);
  color: var(--c-link);
}

.pg-account .acct-benefits li strong {
  font-weight: 600;
  color: var(--c-ink);
}

.pg-account .acct-benefits-foot {
  border-top-style: solid;
  border-top-color: var(--c-hair);
  color: var(--c-ink-3);
}

.pg-account .acct-avatar {
  background: var(--g-brand);
  font-weight: 600;
}

.pg-account .acct-hello-text h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-ink);
}

.pg-account .acct-hello-text p {
  font-size: 14px;
  color: var(--c-ink-3);
}

.pg-account .acct-btn {
  min-height: 40px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
}

.pg-account .acct-btn-ghost {
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.pg-account .acct-main-tabs {
  padding: 4px;
  border: 1px solid var(--c-hair);
  border-radius: var(--r-md);
  background: var(--c-fill-3);
  box-shadow: none;
}

.pg-account .acct-main-tabs .acct-tab {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-3);
}

.pg-account .acct-main-tabs .acct-tab.is-active {
  background: var(--c-surface);
  color: var(--c-link);
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.08);
}

.pg-account .acct-main-tabs .acct-tab.is-active em {
  background: var(--c-brand-tint);
  color: var(--c-link);
}

.pg-account .acct-chip {
  padding: 6px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-2);
}

.pg-account .acct-chip:hover {
  border-color: var(--c-brand-2);
  color: var(--c-link);
}

.pg-account .acct-chip.is-active {
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
  color: var(--c-link);
}

.pg-account .acct-notice {
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-brand-tint);
  color: var(--c-ink-2);
}

.pg-account .acct-notice.is-warn {
  background: var(--c-warn-tint);
  color: var(--c-warn);
}

.pg-account .acct-notice.is-ok {
  background: var(--c-ok-tint);
  color: var(--c-ok);
}

.pg-account .acct-vip-card {
  border: 1px solid #f7d99c;
  background: linear-gradient(95deg, #fffaf0 0%, #fff6e5 100%);
}

.pg-account .acct-vip-main strong {
  font-weight: 600;
  color: var(--c-warn);
}

.pg-account .acct-vip-main p {
  color: var(--c-warn);
}

.pg-account .acct-code-btn {
  border-color: var(--c-brand-2);
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--c-link);
}

.pg-account .acct-code-btn:hover:not(:disabled) {
  background: var(--c-brand-tint);
  color: var(--c-link);
}

.pg-account .acct-email-box {
  border-bottom-style: solid;
  border-bottom-color: var(--c-hair);
}

.pg-account .acct-tag.is-ok {
  background: var(--c-ok-tint);
  color: var(--c-ok);
  font-weight: 500;
}

.pg-account .acct-tag.is-warn {
  background: var(--c-warn-tint);
  color: var(--c-warn);
  font-weight: 500;
}

.pg-account .acct-subhead {
  font-weight: 600;
  color: var(--c-ink);
}

@media (max-width: 767px) {
  .pg-account .ac-hero {
    padding: 28px 0 56px;
  }

  .pg-account .ac-hero .pg-h1 {
    margin-top: 10px;
    font-size: 26px;
    line-height: 36px;
  }

  .pg-account .ac-hero .pg-desc {
    font-size: 14px;
    line-height: 22px;
  }

  .pg-account .ac-main {
    padding: 4px 0 56px;
  }

  .pg-account .acct-card {
    padding: 20px 16px;
    border-radius: var(--r-md);
  }

  .pg-account .pricing-group-head h3 {
    font-size: 17px;
    line-height: 24px;
  }
}

/* ==========================================================================
   12. 商家管理后台（admin.html）· 新的一套样子
   保持全部功能 DOM、ID、表格与弹窗结构不变，整体换成飞书浅灰工作台风格。
   ========================================================================== */
body.pg-admin {
  background: #f5f6f7;
  color: var(--c-ink);
}

/* 后台登录门禁：清淡蓝紫底 + 飞书白卡 */
.pg-admin #adminAuthGate {
  background:
    radial-gradient(56% 84% at 80% 0%, rgba(228, 216, 255, 0.55) 0%, rgba(228, 216, 255, 0) 100%),
    linear-gradient(180deg, #e7ecff 0%, #eff1ff 56%, #f8f9fc 100%) !important;
}

.pg-admin #adminAuthGate .xes-modal-card {
  border: 1px solid rgba(51, 112, 255, 0.14) !important;
  border-radius: var(--r-xl) !important;
  background: var(--c-surface) !important;
  box-shadow: var(--sh-pop) !important;
}

.pg-admin #adminAuthGate span[style*="background:#e0f2fe"] {
  background: var(--c-brand-tint) !important;
  color: var(--c-link) !important;
  font-weight: 500 !important;
}

.pg-admin #adminAuthGate h2 {
  font-weight: 600 !important;
  color: var(--c-ink) !important;
}

.pg-admin #adminAuthGate p {
  color: var(--c-ink-3) !important;
}

.pg-admin #adminAuthGate a,
.pg-admin #btnToggleLoginPwd {
  color: var(--c-link) !important;
  font-weight: 500 !important;
}

/* 后台主工作台与侧边栏 */
.pg-admin .admin-layout {
  background: #f5f6f7;
}

.pg-admin .admin-sidebar {
  background: var(--c-surface);
  border-right: 1px solid var(--c-line);
  padding: 20px 14px;
  gap: 4px;
}

.pg-admin .admin-brand {
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--c-hair);
  margin-bottom: 8px;
}

.pg-admin .admin-brand img {
  border-radius: var(--r-sm);
  background: var(--c-brand-tint);
}

.pg-admin .admin-brand strong {
  font-weight: 600 !important;
  color: var(--c-ink) !important;
}

.pg-admin .admin-brand small {
  color: var(--c-ink-3) !important;
}

.pg-admin .admin-nav-btn {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-2);
  transition: background-color var(--t-fast), color var(--t-fast);
}

.pg-admin .admin-nav-btn:hover {
  background: var(--c-fill-hover);
  color: var(--c-ink);
  text-decoration: none;
}

.pg-admin .admin-nav-btn.is-active {
  background: var(--c-brand-tint);
  color: var(--c-link);
  box-shadow: none;
  font-weight: 600;
}

.pg-admin .admin-nav-btn small {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-ink-3);
}

.pg-admin .admin-nav-btn.is-active small {
  color: var(--c-link);
}

.pg-admin #btnAdminLogout {
  color: var(--c-danger) !important;
  background: var(--c-danger-tint) !important;
}

.pg-admin .admin-menu-toggle {
  border-color: var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-fill-2);
  font-weight: 600;
  color: var(--c-ink);
}

.pg-admin .admin-menu-word {
  color: var(--c-link);
}

/* 统计卡与白卡片 */
.pg-admin .admin-stat-cards {
  gap: 16px;
  margin-bottom: 20px;
}

.pg-admin .admin-stat-card {
  padding: 20px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: none;
}

.pg-admin .admin-stat-card small {
  font-size: 13px;
  color: var(--c-ink-3);
}

.pg-admin .admin-stat-card strong {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
}

.pg-admin .admin-card {
  padding: 24px 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: none;
}

.pg-admin .admin-card h2 {
  font-size: 20px !important;
  font-weight: 600;
  color: var(--c-ink);
}

.pg-admin .admin-card h3 {
  font-size: 16px !important;
  font-weight: 600;
  color: var(--c-ink);
}

.pg-admin .admin-card .xes-price-table:not(.is-stacked) {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.pg-admin .admin-card .xes-price-table:not(.is-stacked) thead th {
  background: #f5f6f7;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-3);
}

.pg-admin .admin-card .xes-price-table:not(.is-stacked) td {
  border-bottom: 1px solid var(--c-hair);
  color: var(--c-ink-2);
}

.pg-admin .admin-card .xes-price-table:not(.is-stacked) tbody tr:hover td {
  background: var(--c-fill-2);
}

.pg-admin .admin-status-pill {
  border-radius: var(--r-xs);
  font-weight: 500;
}

.pg-admin .admin-status-pill.is-on {
  background: var(--c-ok-tint);
  color: var(--c-ok);
}

.pg-admin .admin-status-pill.is-off {
  background: var(--c-fill-3);
  color: var(--c-ink-3);
}

.pg-admin .bill-export {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-fill-2);
}

.pg-admin .bill-export-head strong {
  font-weight: 600;
  color: var(--c-ink);
}

.pg-admin .bill-export-quick .admin-btn-sm.is-active {
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
  color: var(--c-link);
}

.pg-admin .btn-primary-glow {
  border-radius: var(--r-pill);
  background: var(--g-brand);
  box-shadow: none;
  font-weight: 500;
}

.pg-admin .btn-primary-glow:hover {
  background: var(--g-brand-hover);
  box-shadow: none;
  transform: none;
}

.pg-admin .admin-main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.pg-admin .admin-main select,
.pg-admin .admin-main textarea {
  border-color: var(--c-line-2);
  border-radius: var(--r-sm);
  color: var(--c-ink);
}

.pg-admin .admin-main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.pg-admin .admin-main select:focus,
.pg-admin .admin-main textarea:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 2px rgba(51, 112, 255, 0.16);
  outline: none;
}

.pg-admin #adminProdSearch {
  border-radius: var(--r-pill) !important;
}

.pg-admin #productEditorModal .xes-modal-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-pop);
}

@media (max-width: 767px) {
  .pg-admin .admin-card {
    padding: 18px 16px;
    border-radius: var(--r-md);
  }

  .pg-admin .admin-stat-card {
    padding: 14px 16px;
    border-radius: var(--r-md);
  }

  .pg-admin .admin-stat-card strong {
    font-size: 22px;
    line-height: 30px;
  }
}
/* @redesign-2026-11:end */
