/* ============================================================
   WTCBUY · Components (v2 · 白底潮流 · 面向 13-35 岁)
   ============================================================ */

/* ============ HEADER / 导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -.02em; }
/* 品牌标记：静态 SVG（components/brand-mark.js 唯一实现）
   flex:none 防止窄屏被压缩成 0 宽；img 自带宽高，CSS 未到时也不会塌 */
.brand-mark { flex: none; display: block; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink-900); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.brand-mark.is-inverse { background: #fff; }
.nav { display: flex; align-items: center; gap: var(--sp-1); flex: 0 1 auto; }
.nav-link { padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--fs-md); font-weight: 600; color: var(--text-muted); white-space: nowrap; transition: all var(--dur) var(--ease); }
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.router-link-active, .nav-link.is-active { color: var(--brand); background: var(--accent-wash); }
.header-search {
  display: flex; align-items: center; gap: 4px; flex: 0 1 300px; min-width: 170px; height: 38px;
  padding: 0 4px 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header-search:focus-within { border-color: var(--ink-900); background: #fff; box-shadow: 0 0 0 3px rgba(24,24,27,.05); }
.hs-ico { width: 16px; height: 16px; color: var(--ink-400); flex: none; }
.hs-input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; padding: 0 8px; font-size: 13px; color: var(--ink-900); }
.hs-input::placeholder { color: var(--text-faint); }
.hs-cam {
  flex: none; width: 30px; height: 30px; border-radius: 999px; border: 0; background: none;
  color: var(--ink-500); display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.hs-cam svg { width: 17px; height: 17px; }
.hs-cam:hover { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }
.hidden-upload { display: none; }
.hs-spin { width: 13px; height: 13px; border: 2px solid var(--ink-300); border-top-color: var(--ink-900); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.hide-desktop { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; flex: none; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--dur) var(--ease); position: relative; }
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.icon-btn .badge { position: absolute; top: -4px; right: -2px; box-shadow: 0 0 0 2px #fff; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r-pill); background: var(--bg-soft); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.lang-btn:hover { background: var(--bg-muted); }
.user-chip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 6px; border-radius: var(--r-pill); transition: background var(--dur) var(--ease); }
.user-chip:hover { background: var(--bg-soft); }
.user-avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--grad-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.user-name { font-size: var(--fs-sm); font-weight: 600; max-width: 120px; }
.cart-btn { position: relative; }
@media (max-width: 1200px) { .nav-link { padding: 8px 10px; font-size: 14px; } .header-search { flex-basis: 240px; } }
@media (max-width: 1080px) { .nav { display: none; } .header-search { flex: 1 1 auto; max-width: 360px; } }
@media (max-width: 820px) { .header-search { display: none; } .hide-desktop { display: inline-flex; } .header-inner { gap: var(--sp-3); } }
@media (max-width: 640px) { .brand { font-size: var(--fs-lg); } .lang-btn-txt { display: none; } .lang-btn { padding: 0 8px; } }

/* ---- 账号区：登录 / 注册 + 用户下拉（对齐原站 .user-area / .user-dropdown-menu） ---- */
.header-actions .signup-btn { padding: 0 14px; }
.user-menu { position: relative; flex: none; }
.user-trigger {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px;
  border: 1px solid transparent; border-radius: var(--r-pill); background: none;
  color: var(--text); font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.user-trigger:hover, .user-menu.is-open .user-trigger { background: var(--bg-soft); border-color: var(--line); }
.user-menu .user-avatar { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; flex: none; }
.user-avatar-txt { display: inline-flex; align-items: center; justify-content: center; background: var(--ink-900); color: #fff; font-size: 11px; font-weight: 700; }
.user-name { max-width: 116px; }
.user-caret { color: var(--ink-400); transition: transform var(--dur) var(--ease); }
.user-menu.is-open .user-caret { transform: rotate(180deg); }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: var(--z-sheet);
}
.user-menu.is-open .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.user-dropdown a:hover { background: var(--bg-soft); color: var(--text); }
.user-dropdown .logout-link { color: var(--brand); }
.menu-divider { height: 1px; margin: 6px 4px; background: var(--line); }
@media (max-width: 640px) {
  .header-actions .signup-btn { display: none; }
  .user-name { display: none; }
  .user-trigger { padding: 0 4px; }
}

/* ============ HERO ============ */
.hero { padding: 34px 0 26px; background: var(--bg); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -120px; right: -80px; width: 480px; height: 480px; background: var(--accent-wash); border-radius: 999px; filter: blur(40px); opacity: .6; }
.hero::after { content: ''; position: absolute; bottom: -100px; left: -60px; width: 360px; height: 360px; background: var(--teal-wash); border-radius: 999px; filter: blur(40px); opacity: .5; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-12); align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--sp-4); }
.hero-title { font-family: var(--font-display); font-size: var(--fs-5xl); line-height: 1.05; letter-spacing: -.03em; }
.hero-title .grad-text { background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: var(--fs-md); color: var(--text-muted); margin-top: 12px; max-width: 480px; }
.hero-search { margin-top: 20px; max-width: 540px; }
.hs-box {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 5px 0 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: 0 6px 20px rgba(24, 24, 27, .05);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hs-box:hover { border-color: var(--ink-300); }
.hs-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.hs-ico { flex: none; width: 18px; height: 18px; color: var(--ink-300); transition: color var(--dur) var(--ease); }
.hs-box:focus-within .hs-ico { color: var(--accent); }
.hs-input {
  flex: 1 1 auto; min-width: 0; width: auto; height: 100%;
  border: 0; background: none; outline: 0; font-size: 14px; color: var(--text);
}
.hs-input::placeholder { color: var(--ink-300); }
.hs-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px; border: 0; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 106, 0, .22);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hs-btn:hover { background: var(--accent-press); box-shadow: 0 6px 16px rgba(255, 106, 0, .28); }
.hs-btn svg { width: 12px; height: 12px; }
.hs-btn:disabled { opacity: .72; cursor: progress; }
.hs-btn .hs-spin { width: 12px; height: 12px; border-color: rgba(255,255,255,.42); border-top-color: #fff; }
/* 搜索入口识别失败（链接解析不到商品等）时的行内提示 */
.hs-error { margin: 8px 0 0; font-size: 12px; color: var(--brand); }
.hero-cta { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); flex-wrap: wrap; }
.hero-note { font-size: var(--fs-sm); color: var(--text-faint); margin-top: var(--sp-3); display: flex; align-items: center; gap: 6px; }
.hero-visual {
  position: relative; height: 336px;
  --dino-h: 206px;   /* 恐龙高度；三步走已改为撑满右列宽，这里只控制恐龙大小 */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: none; border: 0; box-shadow: none; overflow: visible;
}
/* 恐龙舞台：占满剩余高度，浮动卡相对舞台定位（注意：.hv-stage 已被教学视频组件占用，勿复用） */
.hero-stage {
  position: relative; flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.mascot-glow {
  position: absolute; width: 74%; height: 78%; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(20,184,166,.22), rgba(255,106,0,.16) 46%, transparent 70%);
  filter: blur(28px); z-index: 0;
}
.hero-visual .mascot-img {
  position: relative; z-index: 2; width: auto; height: var(--dino-h); max-height: 100%;
  animation: floaty 4.6s ease-in-out infinite;
  filter: drop-shadow(0 26px 34px rgba(24,24,27,.16));
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
/* 三步走 · 撑满右列宽度，数字圆在上、标题与说明居中在下、虚线只连数字 */
.hero-steps {
  flex: none; width: 100%; max-width: 100%; margin: 4px auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  position: relative; z-index: 3;
}
.hs-step {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 10px;
}
.hs-step:not(:last-child)::after {
  content: ''; position: absolute; top: 15px; left: calc(50% + 30px); width: calc(100% - 60px); height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--ink-200) 0 5px, transparent 5px 10px);
}
.hs-num {
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--ink-300); color: var(--ink-800);
  font-family: var(--font-display); font-size: 13px; font-weight: 700; line-height: 1;
  transition: all var(--dur) var(--ease);
}
.hs-step:hover .hs-num { border-color: var(--accent); background: var(--accent); color: #fff; }
.hs-label { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
.hs-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 5px auto 0; max-width: 220px; min-height: 2.7em;
  font-size: 11.5px; line-height: 1.55; color: var(--text-faint);
}

.hero-visual .float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); font-size: var(--fs-sm);
}
.fc-1 { top: 16px; left: -6px; animation: floaty 3.5s ease-in-out infinite; }
.fc-2 { bottom: 24px; right: -6px; animation: floaty 4.5s ease-in-out infinite .5s; }
.fc-3 { top: 50%; left: 10px; animation: floaty 4s ease-in-out infinite 1s; }
.float-card .dot { width: 8px; height: 8px; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); } .hero-title { font-size: var(--fs-4xl); } .hero-visual { height: 320px; --dino-h: 190px; } .hero-visual .fc-1, .hero-visual .fc-2, .hero-visual .fc-3 { display: none; } .hero-steps { width: min(100%, 560px); } }
@media (max-width: 640px) { .hero { padding: 24px 0 20px; } .hero-title { font-size: var(--fs-3xl); } .hero-visual { height: 232px; --dino-h: 158px; } .hero-visual .fc-1, .hero-visual .fc-2 { display: none; } .hero-search { max-width: none; }
  .hero-steps { width: min(100%, 340px); }
  .hs-step { padding: 0 4px; }
  .hs-step:not(:last-child)::after { top: 11px; left: calc(50% + 22px); width: calc(100% - 44px); }
  .hs-num { width: 22px; height: 22px; font-size: 11px; }
  .hs-label { margin-top: 7px; font-size: 11.5px; }
  .hs-desc { display: none; }
  .hs-box { height: 46px; padding: 0 4px 0 14px; gap: 8px; }
  .hs-input { font-size: 13px; }
  .hs-btn { height: 34px; padding: 0 13px; font-size: 12px; }
  .hs-btn svg { display: none; } }

/* ============ 跑马灯 marquee ============ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: var(--sp-3); }
.marquee-heading { font-family: var(--font-display); font-size: 20px; line-height: 1.25; display: flex; align-items: center; gap: 9px; }
.marquee-heading .flame { color: var(--brand); font-size: 18px; }
.marquee-sub { margin-top: 4px; font-size: 12.5px; line-height: 1.55; color: var(--text-faint); }
.marquee-head .pill-tag { height: 24px; padding: 0 11px; font-size: 10.5px; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }

/* ============ 商品卡 pcard ============ */
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); cursor: pointer; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ink-300); }
.pcard-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-badge { position: absolute; top: 10px; left: 10px; }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard-title { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; min-height: 2.7em; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; color: var(--brand); margin-top: auto; }
.pcard-price .xs { font-family: var(--font-sans); font-weight: 600; color: var(--text-faint); }
.pcard-meta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-faint); }
.pcard-landed { font-size: var(--fs-xs); color: var(--text-faint); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
/* 跑马灯用窄卡 */
.pcard-mini { flex: 0 0 168px; }
.pcard-mini .pcard-body { padding: 10px; }
.pcard-mini .pcard-title { font-size: 12px; line-height: 1.4; min-height: 2.2em; }
.pcard-mini .pcard-price { font-size: 14px; }
/* 原站卡片点开后 add('is-loading')，等待 AddproductId 转换期间禁止重复点击 */
.pcard.is-loading { pointer-events: none; opacity: .68; }
.pcard.is-loading::after { content: ''; position: absolute; inset: 0; }
.pcard { position: relative; }

/* ============ 推荐网格 ============ */
.reco { padding: 16px 0 40px; }
.reco-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: var(--sp-3); }
.reco-title { font-family: var(--font-display); font-size: 23px; line-height: 1.2; }
.reco-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0 4px; max-height: 68px; overflow: hidden; }
.reco-tabs.is-expanded { max-height: none; }
.reco-tab { height: 30px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--text-muted); transition: all var(--dur) var(--ease); display: inline-flex; align-items: center; gap: 5px; }
.reco-tab .count { font-size: 10px; opacity: .6; }
.reco-tab:hover { border-color: var(--ink-300); color: var(--text); }
.reco-tab.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.reco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
@media (max-width: 768px) { .reco-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } }
@media (max-width: 480px) { .reco-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .reco-tab .count { display: none; } }
.reco-more { display: flex; justify-content: center; margin-top: var(--sp-6); }

/* ============ 数据条 stats ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.stat { text-align: center; padding: var(--sp-5); }
.stat-num { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; line-height: 1; }
.stat:nth-child(1) .stat-num { color: var(--brand); }
.stat:nth-child(2) .stat-num { color: var(--teal); }
.stat:nth-child(3) .stat-num { color: var(--grape); }
.stat:nth-child(4) .stat-num { color: var(--ink-900); }
.stat-label { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-2); }
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: var(--sp-12) 0 var(--sp-6); margin-top: var(--sp-16); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--sp-6); }
.footer-grid-6 { grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand { color: #fff; }
.footer-title { color: #fff; font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: .06em; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: var(--fs-sm); color: var(--ink-400); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--ink-700); margin-top: var(--sp-8); padding-top: var(--sp-5); display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-500); flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 1024px) { .footer-grid-6 { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 768px) { .footer-grid, .footer-grid-6 { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* 页脚联系方式 / 支付方式 / 法务链接 */
.footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.footer-mail { font-size: 12.5px; font-weight: 700; color: #fff; }
.footer-mail:hover { text-decoration: underline; }
/* 社区入口用品牌图形，不再显示文字名 */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-soc {
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--ink-700); color: var(--ink-300);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.footer-soc svg { width: 17px; height: 17px; }
.footer-soc:hover { color: #fff; border-color: var(--ink-400); background: rgba(255,255,255,.06); }
.footer-soc.soc-discord:hover { color: #5865F2; border-color: #5865F2; }
.footer-soc.soc-telegram:hover { color: #229ED9; border-color: #229ED9; }
.footer-soc.soc-whatsapp:hover { color: #25D366; border-color: #25D366; }
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--ink-800); }
.footer-pay img { height: 24px; width: auto; padding: 4px 7px; background: #fff; border-radius: 5px; }
.footer-pay img:hover { background: #fff; box-shadow: 0 0 0 1px var(--ink-400); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: var(--ink-500); }
.footer-legal a:hover { color: #fff; }
/* 页脚账号入口：登录 / 注册 / 用户中心 / 退出 */
.footer-account { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-account a { color: var(--ink-500); font-weight: 600; }
.footer-account a:hover { color: #fff; }
@media (max-width: 640px) { .footer-pay img { height: 20px; } }

/* ============ 底部 tab bar（移动端） ============ */
.tab-bar { position: fixed; bottom: 0; left: 0; right: 0; height: var(--tabbar-h); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: none; z-index: var(--z-header); }
.tab-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--text-faint); position: relative; }
.tab-bar-item.is-active { color: var(--brand); }
.tab-bar-item .badge { position: absolute; top: 6px; right: 50%; transform: translateX(16px); }
@media (max-width: 640px) { .tab-bar { display: flex; } body { padding-bottom: var(--tabbar-offset); } }

/* ============ 运费卡 rate-card ============ */
.rate-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column; gap: 6px; transition: border-color var(--dur) var(--ease); }
.rate-card:hover { border-color: var(--brand); }
.rate-card.is-best { border-color: var(--brand); box-shadow: var(--shadow-brand); }
.rate-head { display: flex; align-items: center; justify-content: space-between; }
.rate-name { font-weight: 700; font-size: var(--fs-md); }
.rate-price { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--brand); }
.rate-meta { font-size: var(--fs-sm); color: var(--text-muted); display: flex; gap: var(--sp-3); }
.rate-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.rate-tag.best { background: var(--brand); color: #fff; }
.rate-tag.fast { background: var(--teal-wash); color: var(--teal-press); }

/* ============ 包裹卡 parcel-card ============ */
.parcel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.parcel-head { display: flex; align-items: center; justify-content: space-between; }
.parcel-no { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; }
.parcel-bar { height: 6px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.parcel-bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

/* ============ 条形码 barcode（装饰） ============ */
.barcode { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.barcode span { display: block; width: 2px; background: var(--ink-900); }

/* ============ 表格通用 ============ */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-xs); font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.tbl td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.tbl tr:hover td { background: var(--bg-soft); }
.cell-num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* 通用数据表（订单 / 钱包 / 仓库 / 返佣共用） */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
  padding: 11px 16px; text-align: left; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFCFD; }
.table .cell-num { text-align: right; }

/* ============ overlay ============ */
.overlay { position: fixed; inset: 0; background: rgba(24,24,27,.5); backdrop-filter: blur(4px); z-index: var(--z-sheet); overflow-y: auto; overscroll-behavior: contain; }

/* ============ check 列 ============ */
.check { width: 20px; height: 20px; border: 1.5px solid var(--ink-300); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; transition: all var(--dur) var(--ease); cursor: pointer; }
.check.is-on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--brand); }

/* ============ 通用列表 item ============ */
.item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--bg-soft); }
.label { font-size: var(--fs-sm); color: var(--text-muted); }

/* ============ 内容页 prose ============ */
.prose { max-width: 760px; font-size: var(--fs-md); line-height: 1.7; color: var(--ink-700); }
.prose h2 { font-family: var(--font-display); font-size: var(--fs-xl); margin: var(--sp-8) 0 var(--sp-3); }
.prose h3 { font-size: var(--fs-lg); margin: var(--sp-6) 0 var(--sp-2); }
.prose p { margin-bottom: var(--sp-4); }
.prose ul { padding-left: var(--sp-5); list-style: disc; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: 6px; }

/* ============================================================
   商品详情页
   ============================================================ */
.crumbs { display: flex; align-items: center; gap: 10px; padding: var(--sp-5) 0 var(--sp-4); font-size: var(--fs-sm); color: var(--text-faint); flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span:last-child { color: var(--text); max-width: 340px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: var(--sp-8); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* --- 图集 --- */
/* sticky 会创建层叠上下文：只给子元素 .dgal-zoom-preview 加 z-index 出不去，
   右侧购买面板（DOM 靠后的定位元素）会把它压住，表现为放大镜缺一块、透出规格区。
   这里把整个左列的层级抬到购买面板之上，又低于站头(100)/浮层(200)，
   放大镜才能真正显示在最上层；预览层本身 pointer-events:none，不挡按钮点击。 */
.dgal { position: sticky; top: calc(var(--header-h) + 16px); z-index: 40; }
@media (max-width: 900px) { .dgal { position: static; } }
.dgal-main { position: relative; max-width: 480px; aspect-ratio: 1 / 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in;
  display: flex; align-items: center; justify-content: center; }
/* contain 而不是 cover：商品图宽高比五花八门（正方形、横图、竖图都有），
   cover 会把横图上下切掉、竖图左右切掉，用户看不到全貌。
   这里保证图片完整可见、按短边贴齐、另一轴留白居中，留白露出上面的背景色。 */
.dgal-main img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
/* 主图左右翻页：SVG chevron（原来是 ‹ › 字符，笔画太细、在浅色图上发虚） */
.dgal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 999px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(16,20,28,.06); box-shadow: 0 2px 10px rgba(16,20,28,.18);
  color: var(--ink-900); padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
/* nav 是 .dgal-main 的兄弟节点，旧的 .dgal-main:hover .dgal-nav 后代选择器永远不命中，
   桌面端箭头一直处于 opacity:0；改用 stage:hover 才符合原意。 */
.dgal-stage:hover .dgal-nav { opacity: 1; }
.dgal-nav:hover { background: #fff; box-shadow: 0 4px 14px rgba(16,20,28,.24); }
.dgal-nav:active { background: #f1f2f4; }
.dgal-nav svg { width: 18px; height: 18px; display: block; }
.dgal-nav.prev { left: 12px; }
.dgal-nav.next { right: 12px; }
@media (max-width: 640px) { .dgal-nav { opacity: 1; } }
/* 桌面端不需要左右箭头：鼠标用户点下方缩略图更直接，箭头只是压在主图上挡画面。
   触屏（≤640px）必须保留——移动端主图下方没有缩略图条，只能靠它翻页。 */
@media (min-width: 641px) { .dgal-nav { display: none; } }
.dgal-count { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.dgal-thumbs { display: flex; gap: 8px; margin-top: var(--sp-3); flex-wrap: wrap; }
.dgal-thumb { width: 62px; height: 62px; border-radius: var(--r-sm); border: 2px solid var(--line); overflow: hidden; padding: 0; background: var(--bg-soft); transition: border-color var(--dur) var(--ease); }
.dgal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dgal-thumb:hover { border-color: var(--ink-300); }
.dgal-thumb.is-active { border-color: var(--brand); }

/* --- 店铺卡 --- */
.shop-card { display: flex; align-items: center; gap: 12px; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); }
.shop-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.shop-logo.ph { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-900); background: var(--accent-wash); border-color: transparent; }
.shop-info { flex: 1; min-width: 0; }
.shop-name { font-weight: 700; font-size: var(--fs-md); }
.shop-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--text-faint); }

/* --- 购买面板 --- */
/* 详情页促销条：30% 新客券 + Join Discord（图片区下方、标题上方，单行紧凑） */
.dpromo {
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  padding: 8px 12px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #FFF4E5 0%, #FFE9D6 55%, #FFE1EC 100%);
  border: 1px solid #FFD9B8;
}
.dpromo-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 9px; border-radius: 8px; white-space: nowrap;
  background: linear-gradient(135deg, #FF5A1F, #FF2E63); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; line-height: 1;
  box-shadow: 0 4px 10px rgba(255,60,90,.26);
}
.dpromo-copy { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1 1 auto; }
.dpromo-copy strong { flex: none; font-size: 12.5px; white-space: nowrap; }
.dpromo-copy span {
  font-size: 11px; color: var(--muted); min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dpromo-join {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 999px; text-decoration: none;
  background: #5865F2; color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(88,101,242,.3); transition: transform .15s ease, box-shadow .15s ease;
}
.dpromo-join:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(88,101,242,.4); }
.dpromo-join svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 640px) {
  .dpromo { padding: 7px 10px; gap: 8px; }
  .dpromo-badge { font-size: 11px; padding: 3px 7px; }
  /* 窄屏优先保证单行：隐藏副标题（标题本身已表达 30% 券），只留券标 + Join Discord */
  .dpromo-copy span { display: none; }
  .dpromo-copy strong { font-size: 12px; }
  .dpromo-join { padding: 5px 9px; font-size: 11px; gap: 4px; }
  .dpromo-join svg { width: 14px; height: 14px; }
}
.dbuy { gap: 18px; }
.d-title { font-size: var(--fs-2xl); line-height: 1.25; letter-spacing: -.01em; }
.d-price-block { background: var(--bg-soft); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.d-price { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; color: var(--brand); }
.d-price-cny { font-family: var(--font-mono); }

.spec-group { margin-top: 2px; }
.spec-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.spec-name em { font-style: normal; color: var(--ink-900); text-transform: none; letter-spacing: 0; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); transition: all var(--dur) var(--ease); cursor: pointer; }
.spec-chip img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.spec-chip:hover { border-color: var(--ink-300); color: var(--text); }
.spec-chip.is-active { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }
.spec-chip.is-disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.spec-chip.is-disabled:hover { border-color: var(--line); color: var(--text-muted); }
/* 点了加购/立即购买却没选完规格：把缺的那组标红并滚到眼前（桌面与手机共用） */
.spec-group.is-missing {
  padding: 8px; margin: 0 -8px; border-radius: 10px;
  background: #fff6f5; box-shadow: inset 0 0 0 1px #fbd5d2;
}
.spec-group.is-missing .spec-name { color: #e2382f; }

.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.qty-stepper button { width: 40px; height: 40px; font-size: 18px; color: var(--text); background: transparent; transition: background var(--dur) var(--ease); }
.qty-stepper button:hover { background: var(--bg-soft); }
.qty-stepper input { width: 56px; height: 40px; text-align: center; border: 0; font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-md); }
.qty-stepper input:focus { outline: none; }
.d-note { height: auto; resize: vertical; min-height: 64px; border-radius: var(--r-md); font-family: inherit; }

.d-cost .price-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: var(--fs-sm); }
.d-cost .price-row .label { color: var(--text-muted); }
.d-cost .price-row .value { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.d-cost .price-row .value.is-note { font-size: var(--fs-xs); font-weight: 500; color: var(--text-faint); max-width: 58%; }
.d-cost .price-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.d-cost .price-row.total .label { font-weight: 700; color: var(--text); }
.d-cost .price-row.total .value { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--brand); }
/* 8% 平台服务费：可勾选的估算选项 */
.d-fee-option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 4px 0;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; }
.d-fee-option.is-on { border-color: var(--accent); background: var(--accent-wash); }
.d-fee-option input { accent-color: var(--accent); flex: none; }
.d-fee-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.d-fee-copy strong { font-size: var(--fs-sm); font-weight: 700; }
.d-fee-copy em { font-style: normal; font-size: 10.5px; line-height: 1.4; color: var(--text-faint); }
.d-fee-option > b { font-size: var(--fs-sm); white-space: nowrap; }
.d-disclaimer { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--bg-soft); cursor: pointer; }
.d-disclaimer input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.d-disclaimer > span { display: flex; flex-direction: column; gap: 4px; }
.d-disclaimer strong { font-size: var(--fs-sm); }
.d-disclaimer em { font-style: normal; font-size: 11px; line-height: 1.55; color: var(--text-muted); }
.d-disclaimer b { font-size: 11px; font-weight: 700; color: var(--accent-press); }

.d-actions { display: flex; gap: 12px; align-items: stretch; }
.fav-btn { width: 52px; height: 52px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; transition: all var(--dur) var(--ease); }
.fav-btn:hover { border-color: var(--brand); color: var(--brand); }
.fav-btn.is-on { color: var(--brand); border-color: var(--brand); background: var(--accent-wash); }

/* --- 详情图 --- */
.desc-images { display: flex; flex-direction: column; gap: var(--sp-4); }
.desc-images img { width: 100%; border-radius: var(--r-lg); background: var(--bg-soft); cursor: zoom-in; }

/* --- 灯箱 --- */
.lightbox { position: fixed; inset: 0; background: rgba(15,17,20,.92); z-index: var(--z-sheet); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; border-radius: var(--r-lg); }
.lb-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; border: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background var(--dur) var(--ease); }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav svg { width: 24px; height: 24px; display: block; }
.lb-nav.prev { left: 24px; }
.lb-nav.next { right: 24px; }

/* --- 移动端吸底购买条 --- */
.mobile-buy-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px var(--sp-4); display: none; align-items: center; gap: 10px; z-index: var(--z-header); }
.mobile-buy-bar .btn { flex: 1; }
.mobile-buy-bar .btn-primary { flex: 1.4; }
.mbb-price { display: flex; flex-direction: column; min-width: 96px; }
.mbb-price strong { font-family: var(--font-display); color: var(--brand); font-size: var(--fs-lg); }
@media (max-width: 640px) {
  .mobile-buy-bar { display: flex; }
  .d-actions { display: none; }
  body { padding-bottom: calc(var(--tabbar-offset) + 92px); }
  .detail-page .container { padding-bottom: var(--sp-6); }
  .detail-page .tab-bar { display: none; }
  .spec-chip { height: 34px; padding: 0 14px; }
  .d-title { font-size: var(--fs-xl); }
}

/* --- 骨架占位 --- */
.skel-box { aspect-ratio: 1/1; border-radius: var(--r-xl); }
.skel-line { border-radius: var(--r-sm); }

/* --- 标签补充 --- */
.tag-danger { background: #FEE2E2; color: #B91C1C; }

/* ============================================================
   搜索页
   ============================================================ */
.search-head { padding: var(--sp-8) 0 var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.search-title { font-family: var(--font-display); font-size: var(--fs-2xl); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.search-count { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 500; color: var(--text-faint); }
.search-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.sort-group { display: flex; align-items: center; gap: 10px; padding-top: 2px; }
.sort-select { height: 34px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #fff; padding: 0 var(--sp-4); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); cursor: pointer; }
.sort-select:hover { border-color: var(--ink-300); }
.sort-select:focus { outline: none; border-color: var(--brand); }
@media (max-width: 640px) { .search-title { font-size: var(--fs-xl); } }

/* ============================================================
   首页 · 快捷入口 / 活动发布 / 优势卡片（对齐原站内容）
   ============================================================ */
.hero-title .comma { color: var(--ink-900); }

.quick-access { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; max-width: 540px; }
.quick-item {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 11px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.quick-item:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-press); box-shadow: 0 6px 16px rgba(255, 106, 0, .1); }
.quick-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quick-ico { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-wash); color: var(--accent-press); display: inline-flex; align-items: center; justify-content: center; }
.quick-ico svg { width: 14px; height: 14px; }
.quick-item:nth-child(2) .quick-ico { background: var(--teal-wash); color: var(--teal-press); }
.quick-item:nth-child(3) .quick-ico { background: var(--grape-wash); color: var(--grape-press); }

.section-lead { margin-bottom: var(--sp-5); }



.pill-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-press); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

.modal { position: relative; z-index: calc(var(--z-sheet) + 1); max-width: 520px; margin: 12vh auto 0; background: #fff; border-radius: var(--r-xl); padding: var(--sp-6); box-shadow: var(--shadow-lg); }
@media (max-width: 640px) { .modal { margin: 8vh 16px 0; } }

/* ============================================================
   内容页（正文由原站迁移，JSON 驱动）
   ============================================================ */
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 236px; gap: var(--sp-10); align-items: start; padding: var(--sp-8) 0 var(--sp-12); }
/* 宽表（原站 HTML 表格 min-width:520px）不能把 grid 列撑宽，否则手机端
   整篇正文都按 520px 排版、右侧被裁。表格自己由 .prose-table 横滑。 */
.content-article { min-width: 0; }
.content-title { font-family: var(--font-display); font-size: var(--fs-3xl); letter-spacing: -.02em; margin: 12px 0 var(--sp-6); }
.content-article .prose { max-width: 72ch; }
.content-article .prose h2 { margin-top: var(--sp-8); padding-top: var(--sp-2); }
.content-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); padding-left: var(--sp-5); }
.aside-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.aside-link { font-size: var(--fs-sm); color: var(--text-muted); padding: 6px 0; }
.aside-link:hover { color: var(--brand); }

/* 本页目录（帮助中心 / 条款这类长文档） */
.aside-toc { margin-bottom: var(--sp-5); }
.toc-scroll { display: flex; flex-direction: column; max-height: 60vh; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.toc-link {
  font-size: 12px; line-height: 1.45; color: var(--text-muted);
  padding: 4px 0 4px 10px; border-left: 1px solid var(--line);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc-link:hover { color: var(--accent-press); border-left-color: var(--accent); }
.toc-link.is-active { color: var(--accent-press); border-left: 2px solid var(--accent); background: var(--accent-wash); padding-left: 9px; }
.toc-link.is-h3.is-active { padding-left: 17px; }
.toc-link.is-h2 { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-900); }
.toc-link.is-h3 { padding-left: 18px; }
/* 原站无标题章节（如 k-3-2-0）把锚点挂在首段上，同样要避开固定站头 */
.prose h2, .prose h3, .prose p[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose blockquote { border-left: 3px solid var(--line); padding: 4px 0 4px var(--sp-4); color: var(--text-muted); margin: var(--sp-4) 0; }
.prose-figure { margin: var(--sp-4) 0 var(--sp-6); }
.prose-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: zoom-in; }
.img-zoom { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); background: rgba(9, 12, 18, .82); backdrop-filter: blur(3px); cursor: zoom-out; }
.img-zoom img { max-width: min(1100px, 100%); max-height: 100%; border-radius: var(--r-md); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.prose-table { overflow-x: auto; margin: var(--sp-4) 0 var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-lg); }
.prose-table .tbl tr:first-child td { background: var(--bg-soft); font-weight: 700; font-size: var(--fs-sm); }
.prose-table .tbl td { vertical-align: top; line-height: 1.65; overflow-wrap: anywhere; }
.prose-table .tbl tr:last-child td { border-bottom: 0; }
/* 原站 helpcenter.css 231-263：表格自带完整边框 + thead/th + overflow-wrap:anywhere，
   rowspan/colspan 才能生效、长文本才不会把表格撑破。这里沿用结构，配色换白底 tokens。
   外层边框去掉，交给单元格边框自己收口，避免双线。 */
.prose-table.is-html { border: 0; }
.prose-table-html table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; }
.prose-table-html th,
.prose-table-html td {
  /* 网格线比页面分隔线略深一档，原站表格的边框在白底下才看得清 */
  padding: 10px; border: 1px solid var(--ink-300); vertical-align: top;
  overflow-wrap: anywhere; line-height: 1.65; font-size: var(--fs-sm);
}
.prose-table-html th { background: var(--accent-wash); color: var(--ink-900); font-weight: 700; text-align: left; }
.prose-table-html td { color: var(--ink-700); background: #fff; }
.prose-table-html strong { color: var(--ink-900); }
.prose-table-html .ql-align-center { text-align: center; }
.prose-table-html .ql-align-right { text-align: right; }
.prose-table-html p { margin: 0 0 6px; }
.prose-table-html p:last-child { margin-bottom: 0; }
.prose-table-html ul, .prose-table-html ol { padding-left: 18px; margin: 0 0 6px; }
.prose-table-html img { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .prose-table-html table { min-width: 520px; }
}
@media (max-width: 900px) { .content-layout { grid-template-columns: minmax(0,1fr); gap: var(--sp-6); } .content-aside { position: static; border-left: 0; border-top: 1px solid var(--line); padding: var(--sp-5) 0 0; flex-direction: row; flex-wrap: wrap; gap: 12px; } .aside-title { width: 100%; } }

/* ============================================================
   运费估算（结构对齐原站 estimation.html）
   ============================================================ */
.estimate-page { padding-bottom: var(--sp-16); }
.estimate-head { padding: var(--sp-10) 0 var(--sp-6); }
.estimate-head h1 { font-family: var(--font-display); font-size: var(--fs-4xl); letter-spacing: -.03em; }
.estimate-head p { color: var(--text-muted); font-size: var(--fs-md); margin-top: var(--sp-2); }

.estimate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.estimate-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); padding-bottom: var(--sp-5); border-bottom: 1px dashed var(--line); }
.estimate-card-head strong { display: block; font-size: var(--fs-lg); }
.estimate-card-head span { display: block; font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; }
.faq-link { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--accent-press); white-space: nowrap; }
.faq-link span { width: 20px; height: 20px; border-radius: 999px; background: var(--accent-wash); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

.estimate-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.estimate-grid .size-field { grid-column: 1 / -1; }
.field > span:first-child { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.with-unit { position: relative; display: block; }
.with-unit .input { padding-right: 38px; }
.with-unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: var(--fs-xs); color: var(--text-faint); }
.size-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.estimate-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--sp-5); }

.tips-bar { margin-top: var(--sp-4); padding: 12px 16px; border-radius: var(--r-md); background: var(--teal-wash); color: var(--teal-press); font-size: var(--fs-sm); line-height: 1.6; }

.estimate-result { margin-top: var(--sp-8); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.result-head h2 { font-family: var(--font-display); font-size: var(--fs-2xl); }
.sort-select.is-active { border-color: var(--ink-900); color: var(--ink-900); background: var(--bg-soft); }
.route-list { display: flex; flex-direction: column; gap: 10px; }
.route-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; cursor: pointer; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.route-row:hover { border-color: var(--ink-300); box-shadow: var(--shadow-sm); }
.route-main strong { display: block; font-size: var(--fs-md); }
.route-meta { display: block; font-size: var(--fs-xs); color: var(--text-faint); margin-top: 4px; }
.route-price { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--brand); }
/* ---- 估算：国家 / 两级分类下拉（对齐原站 estimation.css 的交互形态） ---- */
.est-field { position: relative; }
.est-trigger { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); text-align: left; }
.est-trigger.is-placeholder { color: var(--text-faint); font-weight: 500; }
.est-trigger i { font-style: normal; color: var(--text-faint); }
.est-dropdown { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.12)); overflow: hidden; }
.est-country { width: min(420px, 100%); }
.est-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); }
.est-tabs button { border: 0; background: transparent; padding: 5px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: var(--text-muted); }
.est-tabs button.is-active { background: var(--ink-900); color: #fff; }
.est-options { max-height: 240px; overflow: auto; padding: 6px; }
.est-options > button, .est-col > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 0; background: transparent; padding: 8px 10px; border-radius: 7px; text-align: left;
  font-size: var(--fs-sm); color: var(--ink-900); }
.est-options > button small { color: var(--text-faint); font-size: 10px; }
.est-options > button:hover, .est-col > button:hover { background: var(--bg-soft); }
.est-options > button.is-active, .est-col > button.is-active { background: var(--accent-wash); color: var(--accent-press); font-weight: 700; }
.est-empty { padding: 16px; text-align: center; font-size: var(--fs-sm); color: var(--text-faint); }
.est-category { display: grid; grid-template-columns: 1fr 1.25fr; width: min(420px, 100%); }
.est-col { max-height: 260px; overflow: auto; padding: 6px; }
.est-col:first-child { border-right: 1px solid var(--line); background: var(--bg-soft); }
.est-col > button i { font-style: normal; color: var(--accent-press); }
.est-status { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 12px; }
.est-status.is-error { color: var(--danger, #d33); }

/* ---- 估算结果卡片（原站 route-card 的信息结构） ---- */
.est-route { grid-template-columns: minmax(0,1fr) 160px 140px auto; cursor: default; align-items: start; }
.est-route.is-unavailable { opacity: .62; }
.route-brand { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.route-brand > img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; flex: none; background: var(--bg-soft); }
.route-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.route-badges span, .discount-badge, .route-tag { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: var(--bg-soft); color: var(--text-muted); }
.route-badges .insurable { background: var(--teal-wash); color: var(--teal-press); }
.route-badges .tax-free { background: #eaf7ee; color: #1e7a3c; }
.route-badges .tax-free.duties-payable { background: #fff3e8; color: #b35b13; }
.route-price label, .route-time label { display: block; font-size: 10.5px; color: var(--text-faint); margin-bottom: 5px; }
.route-price > strong { display: inline-block; font-family: var(--font-display); font-size: var(--fs-xl); color: var(--brand); }
.route-price .discount-badge { display: inline-block; margin-left: 6px; background: #fff0e4; color: #c2570c; vertical-align: 3px; }
.route-price .route-list-price { display: block; color: var(--text-faint); font-size: 11px; margin-top: 3px; }
.route-time > strong { font-size: var(--fs-sm); }
.route-unavailable-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 11px; color: var(--danger, #d33); }

/* ---- 线路详情弹窗 ---- */
.est-detail { max-height: 86vh; overflow: auto; }
.est-detail h4 { font-size: var(--fs-md); margin-bottom: 10px; }
.est-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.est-detail-grid > div { background: var(--bg-soft); border-radius: var(--r-md); padding: 9px 11px; }
.est-detail-grid span { display: block; font-size: 10.5px; color: var(--text-faint); margin-bottom: 3px; }
.est-detail-grid strong { font-size: var(--fs-sm); font-weight: 700; }
.est-legend { display: flex; gap: 16px; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.est-legend i, .est-items i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.est-legend i.can, .est-items .can::before { background: #25a35a; }
.est-legend i.cannot, .est-items .cannot::before { background: #d9534f; }
.est-items { display: flex; flex-wrap: wrap; gap: 6px; }
.est-items > span { font-size: 11px; padding: 4px 8px; border-radius: 6px; background: var(--bg-soft); }
.est-items > span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }

@media (max-width: 900px) {
  .est-route { grid-template-columns: minmax(0,1fr) auto; }
  .est-route .route-time { grid-column: 1 / -1; }
  .est-route .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* 运费估算：空表单原本要滚两屏才看得完（5 个字段各占一整行 × 44px 高）。
     这里不缩字号——16px 是 iOS 聚焦不缩放的底线，缩了整页会放大；
     靠「重量 / 邮编 并排 + 三个尺寸同行 + 控件 38px」把高度压下来。 */
  .estimate-head { padding: 8px 0 10px; }
  .estimate-head h1 { font-size: 26px; }
  .estimate-head p { font-size: 12.5px; margin-top: 4px; }

  .estimate-page .estimate-card { padding: 14px; border-radius: 14px; }
  .estimate-card-head { padding-bottom: 10px; }
  .estimate-card-head strong { font-size: 15px; }
  .estimate-card-head span { margin-top: 2px; font-size: 11.5px; }
  .faq-link { gap: 6px; font-size: 12px; }
  .faq-link span { width: 17px; height: 17px; font-size: 11px; }

  .estimate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .estimate-grid .est-country-field,
  .estimate-grid .est-category-field,
  .estimate-grid .size-field { grid-column: 1 / -1; }
  .field > span:first-child { margin-bottom: 5px; font-size: 12px; }

  .estimate-page .input,
  .estimate-page .est-trigger { height: 38px; padding: 0 10px; border-radius: 9px; }
  /* 输入框是 16px（iOS 聚焦不缩放的下限），下拉触发器必须同字号，
     否则「搜索国家名称」和「请选择商品类型」两行字一大一小 */
  .estimate-page .est-trigger { font-size: 16px; }
  .size-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .estimate-page .with-unit .input { padding-right: 26px; }
  .estimate-page .with-unit em { right: 9px; font-size: 11px; }
  .field-hint { font-size: 11px; margin-top: 4px; }

  .estimate-actions { gap: 8px; margin-top: 12px; }
  .estimate-actions .btn { height: 38px; padding: 0 18px; font-size: 14px; }
  .tips-bar { margin-top: 10px; padding: 9px 12px; font-size: 12px; line-height: 1.55; }

  .route-row { grid-template-columns: 1fr auto; }
  .route-row .btn { grid-column: 1 / -1; }
  .est-category { grid-template-columns: 1fr 1fr; }
  .est-detail-grid { grid-template-columns: 1fr; }

  /* 「价格排序 / 时效排序」右端正好落在客服球下面（球固定右下 48px），
     按钮被压掉大半。右侧留出球位 + 按钮收窄，两者就能并排一行互不压 */
  .estimate-result .sort-group { gap: 8px; margin-right: 54px; }
  .estimate-result .sort-select { height: 32px; padding: 0 10px; font-size: 12px; }
}

.faq-section { margin-top: var(--sp-12); }
.faq-section > h2 { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: var(--sp-5); }
.faq-item { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: var(--sp-5); padding: var(--sp-5) 0; border-top: 1px solid var(--line); }
.faq-point { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.faq-point strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); color: var(--ink-900); margin-top: 4px; }
.faq-copy h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.faq-copy p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.75; }
@media (max-width: 640px) { .faq-item { grid-template-columns: 1fr; gap: var(--sp-3); } .faq-point { display: flex; align-items: baseline; gap: 8px; } .faq-point strong { display: inline; margin: 0; font-size: var(--fs-md); } }

/* ============================================================
   DIY 代购单（结构对齐原站 diyorder.html）
   ============================================================ */
.diy-page { padding: var(--sp-8) 0 var(--sp-16); }
.diy-title { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: var(--sp-5); }
.diy-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: var(--sp-6); align-items: start; }
.diy-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.diy-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.diy-kicker { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.diy-section-head h2 { font-family: var(--font-display); font-size: var(--fs-lg); margin-top: 4px; }
.diy-section-head p { max-width: 42ch; }

.diy-item { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-3); background: var(--bg-soft); }
.diy-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.diy-item-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; }
.diy-item-index { width: 22px; height: 22px; border-radius: 999px; background: var(--ink-900); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.diy-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-4); }
.diy-field { display: block; }
.diy-field.full { grid-column: 1 / -1; }
.diy-field > span { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.diy-field > span em { font-style: normal; color: var(--danger); }
.diy-field > span small { color: var(--text-faint); font-weight: 400; }
.diy-item .input, .diy-item .textarea { background: #fff; }

.diy-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.diy-upload { width: 64px; height: 64px; border: 1.5px dashed var(--ink-300); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-faint); font-size: 22px; background: #fff; }
.diy-upload:hover { border-color: var(--ink-900); color: var(--ink-900); }
.diy-upload input { display: none; }
.diy-thumb { position: relative; width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.diy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.diy-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 1; }

.diy-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-3); }
.diy-option { display: flex; gap: 10px; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; background: #fff; transition: border-color var(--dur) var(--ease); }
.diy-option:hover { border-color: var(--ink-300); }
.diy-option input { margin-top: 3px; accent-color: var(--accent); }
.diy-option strong { display: block; font-size: var(--fs-sm); margin-bottom: 2px; }
.diy-option span { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.55; }

.diy-summary { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-5); }
.diy-summary h2 { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.diy-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: var(--fs-sm); color: var(--text-muted); }
.diy-row strong { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.diy-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: var(--fs-md); color: var(--ink-900); font-weight: 700; }
.diy-row.total strong { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--accent-press); }
.diy-note { font-size: 11.5px; color: var(--text-faint); line-height: 1.65; margin: var(--sp-3) 0; }
.diy-agree { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-muted); line-height: 1.6; cursor: pointer; margin-top: var(--sp-3); }
.diy-agree input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.diy-agree-links { display: block; margin-top: 4px; }
.diy-agree-links a { color: var(--accent-press); text-decoration: underline; display: block; }
.diy-warn { color: var(--danger); font-size: 11.5px; margin-top: 8px; }
.diy-summary .btn { margin-top: var(--sp-4); }

.diy-notice { max-width: 620px; }
.diy-notice-head h2 { font-family: var(--font-display); font-size: var(--fs-2xl); margin-top: 4px; }
.diy-notice-list { list-style: none; margin: var(--sp-5) 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.diy-notice-list li { display: flex; gap: 12px; }
.diy-notice-list b { flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-press); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.diy-notice-list p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.75; }
.diy-notice-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--sp-5); }
/* 服务费口径：原站按件计 CNY 20，摘要里给出单价 × 件数 */
.diy-fee-hint { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 400; color: var(--text-faint); }
.diy-agree.is-invalid { color: var(--danger); }
.diy-agree.is-invalid input { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 3px; }

/* 移动端浮动摘要（原站 diy-mobile-summary）：右侧摘要滚出视口后从底部浮出 */
.diy-mobile-summary { display: none; }
@media (max-width: 720px) {
  .diy-mobile-summary {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    /* 641~720 没有标签栏，条贴着屏幕底，安全区补在内边距里 */
    padding: 10px 14px calc(10px + var(--safe-b));
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(9, 9, 11, .1);
    transform: translateY(115%); transition: transform .24s var(--ease);
  }
  .diy-mobile-summary.is-visible { transform: translateY(0); }
  .diy-mobile-rows { display: flex; gap: 10px; min-width: 0; flex: 1 1 auto; }
  .diy-mobile-rows > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .diy-mobile-rows span { font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
  .diy-mobile-rows strong { font-size: 11.5px; color: var(--ink-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .diy-mobile-rows strong.is-total { color: var(--accent-press); font-weight: 700; }
  .diy-mobile-summary .btn { flex: none; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
  .diy-page { padding-bottom: calc(var(--sp-16) + 64px); }
}
/* ≤640 有底部 tab 栏（60px），浮动条要让开它，否则会被压在下面 */
@media (max-width: 640px) {
  .diy-mobile-summary { bottom: var(--tabbar-offset); z-index: 95; padding: 10px 14px; }
  /* 价格名称 + 金额始终可见，不用滚到底才看得到 Buy Now */
  .diy-mobile-rows { gap: 8px; }
  .diy-mobile-rows span { font-size: 9.5px; letter-spacing: .02em; }
  .diy-mobile-rows strong { font-size: 12.5px; }
  .diy-mobile-rows strong.is-total { color: var(--m-orange); font-weight: 800; }
  .diy-mobile-summary .btn { min-height: 44px; border-radius: 999px; font-weight: 800; background: var(--m-orange); border-color: var(--m-orange); }
  body:has(.diy-mobile-summary) { padding-bottom: calc(var(--tabbar-offset) + 84px); }
  body:has(.diy-mobile-summary) .float-side { display: none; }
}
@media (max-width: 1024px) { .diy-layout { grid-template-columns: 1fr; } .diy-summary { position: static; } }
@media (max-width: 640px) { .diy-grid { grid-template-columns: 1fr; } .diy-options { grid-template-columns: 1fr; } }

/* ============================================================
   演练包裹定制（结构对齐原站 rehearsalcustom.html）
   Step 01 分箱 → 02 外包装精简 → 03 填充 → 04 实拍 → 05 备注
   ============================================================ */
.custom-page { padding: var(--sp-8) 0 var(--sp-16); }
.custom-title { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: 6px; }
.custom-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-5); max-width: 62ch; }
.custom-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-6); align-items: start; }
.custom-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.custom-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.custom-step { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-press); }
.custom-panel-head h2 { font-family: var(--font-display); font-size: var(--fs-lg); margin-top: 3px; }
.custom-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.custom-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; background: #fff; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.custom-option:hover { border-color: var(--ink-300); }
.custom-option.is-active { border-color: var(--accent); background: var(--accent-wash); }
.custom-option input { margin-top: 2px; accent-color: var(--accent); flex: none; }
.custom-option strong { display: block; font-size: var(--fs-sm); margin-bottom: 2px; }
.custom-option small { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.custom-inline { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: var(--sp-4); margin-top: var(--sp-4); }
.custom-field { display: block; }
.custom-field > span { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.custom-field .input:disabled { background: var(--bg-soft); color: var(--text-faint); cursor: not-allowed; }
.custom-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--sp-4); }
.custom-chip { font-size: 11.5px; font-weight: 600; color: var(--ink-900); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.custom-note-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; background: var(--bg-soft); }

.custom-summary { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-5); }
.custom-summary h2 { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.custom-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: var(--fs-sm); color: var(--text-muted); border-bottom: 1px dashed var(--line); }
.custom-row:last-of-type { border-bottom: 0; }
.custom-row strong { color: var(--ink-900); text-align: right; font-size: 12.5px; }
.custom-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-3) 0; }
.custom-tag { font-size: 10.5px; font-weight: 600; color: var(--accent-press); background: var(--accent-wash); border-radius: 999px; padding: 4px 10px; }
.custom-tag.is-empty { color: var(--text-faint); background: var(--bg-soft); }
.custom-agree { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-muted); line-height: 1.6; cursor: pointer; margin-top: var(--sp-3); }
.custom-agree input { margin-top: 2px; accent-color: var(--accent); flex: none; }
.custom-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--sp-4); }
.custom-actions .btn { width: 100%; min-width: 0; padding-left: 8px; padding-right: 8px; font-size: 13px; white-space: nowrap; }
@media (max-width: 1024px) { .custom-layout { grid-template-columns: 1fr; } .custom-summary { position: static; } }
@media (max-width: 640px) { .custom-options { grid-template-columns: 1fr; } .custom-inline { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .custom-actions { grid-template-columns: 1fr; } }


/* ============================================================
   转运 / 集运入库单（结构对齐原站 forward.html）
   ============================================================ */
.forward-page { padding: var(--sp-8) 0 var(--sp-16); }
.forward-inner { max-width: 900px; display: flex; flex-direction: column; gap: var(--sp-6); }
.forward-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.forward-top h1 { font-family: var(--font-display); font-size: var(--fs-2xl); }
.forward-select { max-width: 280px; }
.forward-subtitle { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-3); }

.address-card { position: relative; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-5); background: var(--bg-soft); }
.address-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.address-head h2 { font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.address-body { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.address-recipient { font-weight: 700; font-size: var(--fs-md); margin-bottom: 6px; }
.address-text { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.7; max-width: 58ch; }
.address-phone { font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 700; }
.address-copied { position: absolute; top: 12px; right: 56px; font-size: 11px; color: var(--teal-press); background: var(--teal-wash); padding: 3px 10px; border-radius: 999px; }

.reminder { display: flex; gap: 12px; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.reminder-ico { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-press); display: inline-flex; align-items: center; justify-content: center; }
.reminder p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.8; }

.tracking-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.tracking-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin-bottom: var(--sp-3); }
.tracking-table { min-width: 720px; }
.tracking-table th { background: var(--bg-soft); }
.tracking-table td { padding: 10px 12px; }
.tracking-table .input { min-height: 34px; font-size: var(--fs-sm); }
.cell-idx { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-faint); }
.declare-tip { font-size: var(--fs-xs); color: var(--text-faint); margin-bottom: var(--sp-3); }
.forward-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-5); margin-top: var(--sp-6); flex-wrap: wrap; }
.forward-agree { flex: 1; min-width: 260px; margin-top: 0; }
.forward-actions .btn { min-width: 160px; }

/* ============================================================
   用户中心（侧栏 12 个入口，对齐原站 ucenter 信息架构）
   ============================================================ */
.account-page { padding: var(--sp-6) 0 var(--sp-16); }
.account-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: var(--sp-8); align-items: start; }
.account-side { position: sticky; top: calc(var(--header-h) + 20px); }
.account-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; background: #fff; }
.account-avatar {
  position: relative; width: 42px; height: 42px; border-radius: 999px; flex: none;
  padding: 2px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  box-shadow: 0 4px 12px rgba(255, 106, 0, .22);
}
.account-avatar img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; background: var(--bg-muted); }
.account-avatar > span {
  width: 100%; height: 100%; border-radius: 999px; display: grid; place-items: center;
  background: var(--ink-900); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.account-id { min-width: 0; }
.account-id strong { display: block; font-size: var(--fs-sm); }
.account-quick { grid-column: 1 / -1; display: flex; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.account-quick-link { font-size: var(--fs-xs); color: var(--text-muted); background: none; border: 0; padding: 0; }
.account-quick-link:hover { color: var(--brand); }

.account-nav { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: 2px; }
.account-nav-item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.account-nav-item svg { width: 17px; height: 17px; flex: none; color: var(--text-faint); }
.account-nav-item:hover { background: var(--bg-soft); color: var(--ink-900); }
.account-nav-item:hover svg { color: var(--ink-900); }
.account-nav-item.router-link-active { background: var(--accent-wash); color: var(--accent-press); }
.account-nav-item.router-link-active svg { color: var(--accent-press); }
.account-nav-badge { margin-left: auto; font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.account-main { min-width: 0; }
/* 移动端全屏内容浮层的顶栏：只在 ≤640px 且浮层打开时显示，桌面端（含深链直访）不渲染 */
.m-acct-sheet-bar { display: none; }
.account-panel { display: flex; flex-direction: column; gap: var(--sp-5); }
.account-title { font-family: var(--font-display); font-size: var(--fs-2xl); }

.overview-tile { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); display: flex; flex-direction: column; gap: 6px; background: #fff; }
.overview-tile-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.overview-tile strong { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.1; }
.overview-tile .btn { align-self: flex-start; margin-top: 6px; }
a.overview-tile:hover { border-color: var(--ink-300); }

.account-block { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); background: #fff; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.block-head h2 { font-family: var(--font-display); font-size: var(--fs-lg); }
.block-sub { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin: var(--sp-4) 0; }

.order-tabs { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.order-tab { height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
.order-tab em { font-style: normal; margin-left: 6px; font-size: 10px; color: var(--text-faint); }
.order-tab.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.order-tab.is-active em { color: rgba(255,255,255,.7); }

.order-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: var(--sp-4); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.order-row:hover { border-color: var(--ink-300); background: var(--bg-soft); }
.order-row > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.empty-inline { display: flex; align-items: center; justify-content: center; gap: 12px; padding: var(--sp-6); color: var(--text-faint); font-size: var(--fs-sm); }

/* Rewards */
.reward-hero { display: grid; grid-template-columns: 1.1fr 1.2fr .8fr; gap: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); background: var(--bg-soft); align-items: center; }
.reward-id { display: flex; align-items: center; gap: 12px; }
.reward-level-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.reward-level-head strong { font-family: var(--font-display); font-size: var(--fs-lg); }
.reward-bar { height: 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.reward-bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.reward-level-foot { display: flex; justify-content: space-between; margin-top: 6px; gap: 8px; flex-wrap: wrap; }
.reward-points { text-align: right; display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.reward-points strong { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.1; }
.reward-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.reward-stat { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column; gap: 4px; background: #fff; }
.reward-stat strong { font-size: var(--fs-md); }
.reward-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.level-list { display: flex; flex-direction: column; gap: 8px; margin-top: var(--sp-4); }
.level-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.rule-list { padding-left: 18px; list-style: disc; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.9; }

/* Rehearsal */
.rehearsal-all, .rehearsal-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); cursor: pointer; }
.rehearsal-row .mono { flex: 1; }
.rehearsal-all { background: var(--bg-soft); font-weight: 600; }
.rehearsal-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-4); flex-wrap: wrap; }
.rehearsal-facts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--fs-xs); color: var(--text-muted); }
.rehearsal-facts strong { color: var(--ink-900); font-variant-numeric: tabular-nums; }

/* History */
.history-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); }

/* Share / Affiliate */
.share-hero { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); background: var(--bg-soft); flex-wrap: wrap; }

/* ============================================================
   推广联盟（share）：深色 hero + 邀请码 / 邀请链接 + 佣金 / 数据卡
   色板沿用 tokens（橙 CTA / 青辅 / 紫点缀），深底与邀请海报同源
   ============================================================ */
.share-hero-card {
  position: relative; overflow: hidden;
  padding: 22px 22px 18px; border-radius: var(--r-xl);
  background: radial-gradient(120% 130% at 6% 0%, #16363d 0%, #0b1b21 44%, #15100f 100%);
  color: #fff; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
}
.share-hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.share-hero-glow.is-a { width: 260px; height: 260px; right: -60px; top: -90px; background: rgba(255, 106, 0, .34); }
.share-hero-glow.is-b { width: 220px; height: 220px; left: -70px; bottom: -110px; background: rgba(20, 184, 166, .28); }

.share-hero-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.share-profile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.share-avatar {
  position: relative; flex: none; width: 64px; height: 64px; padding: 2px; border-radius: 999px;
  background: conic-gradient(from 140deg, #FF6A00, #EC4899, #14B8A6, #FF6A00);
  box-shadow: 0 6px 20px rgba(255, 106, 0, .3);
}
.share-avatar img, .share-avatar > span {
  width: 100%; height: 100%; border-radius: 999px; display: grid; place-items: center; object-fit: cover;
  background: #101d22; color: #fff; font-family: var(--font-display); font-size: 21px; font-weight: 800;
}
.share-avatar em {
  position: absolute; right: -5px; bottom: -5px; height: 21px; min-width: 21px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff; border: 2px solid #0b1b21;
  font-style: normal; font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.share-profile-copy { min-width: 0; }
.share-kicker { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.share-user-name { margin: 4px 0 2px; font-family: var(--font-display); font-size: var(--fs-xl); letter-spacing: -.01em; color: #fff; }
.share-user-email { margin: 0 0 8px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.share-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.share-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
}
.share-tag.is-level { background: rgba(255, 106, 0, .18); border-color: rgba(255, 106, 0, .42); color: #FFB077; }
.share-tag.is-rate { background: rgba(124, 58, 237, .22); border-color: rgba(124, 58, 237, .46); color: #C4B5FD; }
.share-tag.is-active { background: rgba(20, 184, 166, .18); border-color: rgba(20, 184, 166, .42); color: #5EEAD4; }

.share-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn-ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.share-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .32); color: #fff; }

.share-code-grid { position: relative; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px; }
.share-code-cell {
  position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 10px 12px 12px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .2);
}
.share-code-cell > span { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.share-code-cell > strong { display: block; font-family: var(--font-mono); font-size: 16px; letter-spacing: .02em; color: #fff; padding-right: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-code-cell.is-link > strong { font-size: 11.5px; font-weight: 600; color: #CFF7F2; padding-right: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-copy-btn {
  position: absolute; right: 8px; bottom: 9px; height: 22px; padding: 0 9px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .26); background: transparent; color: #fff;
  font-size: 10.5px; font-weight: 700; transition: background var(--dur) var(--ease);
}
.share-copy-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.share-copy-btn:disabled { opacity: .45; cursor: not-allowed; }

/* 邀请码没取到时的提示：深色 hero 内用暖橙色低饱和，不抢主体 */
.share-code-hint {
  position: relative; margin: 8px 0 0; font-size: 11px; line-height: 1.5;
  color: rgba(255, 190, 150, .92); display: flex; align-items: center; gap: 6px;
}
.share-code-hint::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #FF8A3D; box-shadow: 0 0 8px rgba(255, 106, 0, .8); flex: none;
}

.share-progress { position: relative; margin-top: 16px; }
.share-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11.5px; color: rgba(255, 255, 255, .66); }
.share-progress-head strong { font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.share-progress-track { position: relative; height: 8px; margin: 9px 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .13); overflow: hidden; }
.share-progress-track > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #14B8A6 0%, #FF6A00 68%, #EC4899 100%);
  box-shadow: 0 0 14px rgba(255, 106, 0, .5); transition: width .5s var(--ease);
}
.share-progress-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 10.5px; color: rgba(255, 255, 255, .5); }
.share-progress-foot > span { min-width: 0; }

/* 佣金总览 */
.share-wallet-hero {
  display: grid; grid-template-columns: 230px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden;
}
.share-wallet-main {
  padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: linear-gradient(160deg, var(--accent-wash) 0%, #fff 78%);
  border-right: 1px solid var(--line);
}
.share-wallet-label { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.share-wallet-value { font-family: var(--font-display); font-size: var(--fs-2xl); letter-spacing: -.02em; color: var(--accent-press); }
.share-wallet-main .btn { margin-top: 4px; }

/* 佣金提现弹窗（原站 shareWithdrawModal） */
.share-wd-balance {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft);
}
.share-wd-balance span { font-size: 12px; color: var(--text-muted); }
.share-wd-balance strong { font-family: var(--font-display); font-size: 18px; color: var(--accent-press); font-variant-numeric: tabular-nums; }
.share-wd-amount { display: flex; align-items: center; gap: 8px; }
.share-wd-currency { font-size: 12.5px; font-weight: 600; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.share-wd-amount .input { flex: 1; min-width: 0; }
.share-wallet-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.share-wallet-cells > div { padding: 18px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.share-wallet-cells > div:first-child { border-left: 0; }
.share-wallet-cells span { font-size: 11px; color: var(--text-muted); }
.share-wallet-cells strong { font-family: var(--font-display); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }

/* 推广数据 */
.share-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.share-stat-tile { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.share-stat-tile strong { font-family: var(--font-display); font-size: var(--fs-xl); letter-spacing: -.01em; }
.share-stat-icon { width: 28px; height: 28px; margin-bottom: 5px; border-radius: 9px; display: grid; place-items: center; }
.share-stat-icon.is-teal { background: var(--teal-wash); color: var(--teal-press); }
.share-stat-icon.is-grape { background: var(--grape-wash); color: var(--grape-press); }
.share-stat-icon.is-orange { background: var(--accent-wash); color: var(--accent-press); }
.share-stat-icon.is-pink { background: var(--pink-wash); color: #BE185D; }

.share-code-editor {
  margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r-md);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.share-code-editor strong { font-size: 12.5px; }
.share-code-editor p { margin: 3px 0 0; }

@media (max-width: 980px) {
  .share-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-wallet-hero { grid-template-columns: 1fr; }
  .share-wallet-main { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .share-hero-card { padding: 18px 16px 16px; }
  .share-code-grid { grid-template-columns: 1fr; }
  .share-hero-actions { width: 100%; }
  .share-hero-actions .btn { flex: 1 1 auto; }
  .share-wallet-cells { grid-template-columns: 1fr; }
  .share-wallet-cells > div { border-left: 0; border-top: 1px solid var(--line); }
  .share-wallet-cells > div:first-child { border-top: 0; }
  .share-progress-foot { flex-wrap: wrap; }
}
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.wallet-cell { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column; gap: 4px; }
.wallet-cell strong { font-family: var(--font-display); font-size: var(--fs-xl); }
.wallet-cell .btn { align-self: flex-start; margin-top: 6px; }
.share-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.share-stats > div { display: flex; flex-direction: column; gap: 2px; }
/* Referral Guide（原站 share-guide：三个步骤卡） */
.share-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.share-guide-step { position: relative; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.share-guide-step h4 { margin: 8px 0 4px; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; }
.share-guide-step p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-muted); }
.share-step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-press); font-family: var(--font-display); font-size: 12px; font-weight: 800; }
@media (max-width: 720px) { .share-guide-grid { grid-template-columns: 1fr; } }
.share-stats strong { font-family: var(--font-display); font-size: var(--fs-2xl); }

@media (max-width: 1024px) {
  .account-shell { grid-template-columns: minmax(0, 1fr); }
  .account-side { position: static; min-width: 0; }
  /* 账户导航：12 个入口铺成网格（原来是一条要横拖的滚动条，长文案语言拖不到头） */
  .account-nav {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
    gap: 4px; max-width: 100%; overflow: visible;
  }
  .account-nav-item { flex: none; height: auto; min-height: 40px; padding: 6px 10px; line-height: 1.25; }
  .account-nav-item span { white-space: normal; }
  .reward-hero { grid-template-columns: 1fr; }
  .reward-points { align-items: flex-start; text-align: left; }
  .wallet-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .reward-stats, .share-stats { grid-template-columns: 1fr 1fr; }
  .order-row { grid-template-columns: 1fr auto; }
  .wallet-grid { grid-template-columns: 1fr; }
}

/* 搜索页来源筛选 */
.src-tabs { display: flex; gap: 8px; margin: var(--sp-4) 0 var(--sp-3); flex-wrap: wrap; }
.src-tab { height: 34px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); }
.src-tab em { font-style: normal; font-size: 10px; color: var(--text-faint); margin-left: 6px; }
.src-tab:hover { border-color: var(--ink-300); }
.src-tab.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.src-tab.is-active em { color: rgba(255,255,255,.65); }
.modal-title { font-family: var(--font-display); font-size: var(--fs-xl); }

/* ============================================================
   登录 / 注册 / 找回密码（结构对齐原站 Login/SignUp/forget）
   目标是「内容一屏可见」：默认密度按 900px 高的窗口排，短屏两档收紧
   （≤840px 高 / ≤760px 高），见下面的 @media (max-height) 区间
   ============================================================ */
/* 减 1px：.site-header 的 68px 内容 + 1px 下边框，不减就会多出 1px 竖向滚动条 */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - var(--header-h) - 1px); min-height: calc(100dvh - var(--header-h) - 1px); padding: clamp(12px, 3vh, 44px) 16px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
/* 注册页字段多，卡片放宽，密码/确认密码才能并排 */
.auth-card-wide { max-width: 520px; }
.auth-brand { margin-bottom: 14px; }
.auth-title { font-family: var(--font-display); font-size: clamp(24px, 2vw, 30px); letter-spacing: -.02em; }
.auth-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; line-height: 1.45; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form .field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 0; }
/* 两列字段（注册页：密码 / 确认密码） */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

/* 认证页密度：注册流程字段多，按「整屏可见」压一档行距（字号不动，只收留白） */
.auth-wrap .field { gap: 4px; }
.auth-wrap .field-label { margin-bottom: 0; }
.auth-form .input { height: 42px; }
.auth-form .input-group .input,
.auth-form .input-group .btn { height: 44px; }
.auth-form .btn-lg { height: 48px; }

/* 短屏（1366×768 这类笔记本）：装饰性的 eyebrow / 副标题让位给表单本体，
   保证注册页整页可见、不出现纵向滚动 */
@media (max-height: 840px) {
  .auth-wrap { padding: 12px 16px; }
  .auth-brand { margin-bottom: 12px; }
  .auth-brand .eyebrow, .auth-sub { display: none; }
  .auth-title { font-size: 26px; }
  .auth-form { gap: 8px; }
  .auth-wrap .field { gap: 3px; }
  .auth-agree { font-size: 11.5px; line-height: 1.45; }
}

/* 更矮的窗口（1280×720、1920×1080 系统缩放 150%）：再收一档，把整页压进视口 */
@media (max-height: 760px) {
  .auth-wrap { padding: 10px 16px; }
  .auth-brand { margin-bottom: 8px; }
  .auth-title { font-size: 21px; }
  .auth-wrap .field { gap: 2px; }
  .auth-wrap .field-label { font-size: 11.5px; }
  .auth-form { gap: 6px; }
  .auth-form .input { height: 40px; }
  .auth-form .input-group .input,
  .auth-form .input-group .btn { height: 42px; }
  .auth-form .btn-lg { height: 44px; }
  .social-btn-block { height: 42px; }
  .pw-rules--grid { gap: 3px 12px; }
  .pw-rule { font-size: 11px; }
  .auth-agree { font-size: 11px; }
}
.with-eye { position: relative; display: block; }
.with-eye .input { padding-right: 62px; }
.eye-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 12px; font-weight: 700; color: var(--text-faint); padding: 4px 6px; }
.eye-btn:hover { color: var(--ink-900); }
.field-error { font-size: var(--fs-sm); color: var(--danger); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: var(--fs-xs); margin: 0; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 第三方登录：图标用内联品牌 SVG，不吃外链图片/图标字体 */
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  background: #fff; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-900);
  text-decoration: none; line-height: 1;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.social-btn:hover { border-color: var(--ink-900); transform: translateY(-1px); box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06)); }
.social-btn:active { transform: translateY(0); }
.social-ico { width: 18px; height: 18px; flex: none; }
/* 注册页只有 Google 一个第三方入口：整行通栏，不做两列 */
.social-btn-block { width: 100%; height: 46px; font-size: var(--fs-md, 15px); }
.auth-divider + .social-btn-block { margin-bottom: 2px; }
.social-google:hover { border-color: #4285F4; background: #F7FAFF; }
.social-discord { color: #5865F2; }
.social-discord:hover { border-color: #5865F2; background: #F4F5FF; }
.pw-rules { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
/* 注册页：四条规则两列铺开，省下约 60px 竖向空间 */
.pw-rules--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 0; }
.pw-rules--grid > .xs { grid-column: 1 / -1; margin-bottom: 0; }
/* 标题行左右分栏：右侧放「两次密码是否一致」的即时反馈，不额外占高度 */
.pw-rules-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pw-match { font-style: normal; font-weight: 700; color: var(--text-faint); }
.pw-match.ok { color: var(--success); }
.pw-match.bad { color: #ff4b00; }
@media (max-width: 560px) { .pw-rules--grid { grid-template-columns: 1fr; } }
.pw-rule { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); }
.pw-rule.is-ok { color: var(--success); }
.pw-rule i { width: 14px; height: 14px; border-radius: 999px; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-style: normal; }
.auth-agree { display: flex; gap: 8px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.auth-agree input { margin-top: 2px; accent-color: var(--accent); flex: none; }
.auth-agree a { color: var(--accent-press); text-decoration: underline; }
.auth-steps { display: flex; gap: 8px; margin-bottom: var(--sp-5); }
.auth-step { flex: 1; height: 4px; border-radius: 999px; background: var(--bg-muted); }
.auth-step.is-on { background: var(--brand); }

/* 找回密码两步进度（原站 /Index/ForGet 的 1 — 2 圆点 + 连接线） */
.fp-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 22px 0 6px; }
.fp-step { width: 28px; height: 28px; flex: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-muted); color: var(--text-faint); font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.fp-step.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fp-step-line { width: 72px; height: 1px; background: var(--line); }
.fp-step-line.is-on { background: var(--brand); }

/* 账户信息块：名称与会员 ID 分行 */
.reward-id > div strong, .reward-id > div span, .account-id strong, .account-id span { display: block; }
.reward-id > div { min-width: 0; }

/* ============================================================
   购物车（列结构对齐原站 /Index/ucenter/action/Cart）
   ============================================================ */
.cart-page { padding: var(--sp-8) 0 var(--sp-16); }
.cart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.cart-title { font-family: var(--font-display); font-size: var(--fs-3xl); letter-spacing: -.02em; }
.cart-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 6px; }

.cart-table { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.cart-grid {
  display: grid; align-items: center; gap: 14px 16px;
  grid-template-columns: 32px minmax(0,1fr) 92px 126px minmax(0,190px) 96px;
  padding: 16px 20px;
}
/* 显式列位：DOM 里数量与删除包在 .cart-controls 内（手机端合成一行），
   桌面端用 display:contents 还原成两列 */
.cart-grid > .cart-check { grid-column: 1; }
.cart-grid > .cart-prod { grid-column: 2; }
.cart-grid > .cart-price { grid-column: 3; }
.cart-controls > .qty-box { grid-column: 4; }
.cart-grid > .cart-note { grid-column: 5; }
.cart-controls > .cart-action { grid-column: 6; }
.cart-grid > .cart-check, .cart-grid > .cart-prod, .cart-grid > .cart-price,
.cart-grid > .cart-note, .cart-controls > .qty-box, .cart-controls > .cart-action { grid-row: 1; }
.cart-controls { display: contents; }
.cart-grid-head {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint);
  padding-top: 12px; padding-bottom: 12px;
}
.cart-grid-head .ta-r { text-align: right; }
.cart-check { display: inline-flex; align-items: center; justify-content: center; }
.cart-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.cart-group + .cart-group { border-top: 1px solid var(--line); }
.cart-shop { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: #fcfcfd; border-bottom: 1px solid var(--line); }
.cart-shop-avatar { width: 24px; height: 24px; border-radius: 999px; background: var(--ink-900); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cart-shop-name { font-size: var(--fs-sm); font-weight: 700; }
.cart-row { transition: background-color .16s ease; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-row:hover { background: #fcfcfd; }

.cart-prod { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.cart-thumb {
  width: 68px; height: 68px; flex: none; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-soft); overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-prod-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-name { font-size: 13.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-name:hover { color: var(--accent-press); }
/* 规格做成浅灰胶囊，和标题拉开层次 */
.cart-spec {
  align-self: flex-start; max-width: 100%; padding: 2px 9px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-muted); font-size: 11.5px; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-mobile-price { display: none; font-size: 14px; font-weight: 700; }

.cart-price { font-size: 13px; font-weight: 600; }

.qty-box { display: inline-flex; align-items: center; height: 34px; border: 1.5px solid var(--line); border-radius: var(--r-pill); overflow: hidden; background: #fff; width: fit-content; }
.qty-box .qty-btn { width: 30px; height: 100%; border: 0; background: none; font-size: 15px; line-height: 1; color: var(--ink-700); display: inline-flex; align-items: center; justify-content: center; }
.qty-box .qty-btn:hover { background: var(--bg-soft); color: var(--ink-900); }
.qty-box .qty-input { width: 42px; height: 100%; border: 0; text-align: center; font-size: 13px; font-family: var(--font-mono); background: none; }
.qty-box .qty-input:focus { outline: none; }
.qty-box .qty-input::-webkit-outer-spin-button,
.qty-box .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-note { width: 100%; height: 56px; min-height: 56px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; font-family: inherit; resize: none; color: var(--ink-800); background: #fff; line-height: 1.5; }
.cart-note:focus { outline: none; border-color: var(--brand); }
.cart-action { display: flex; justify-content: flex-end; }
/* 删除：常态是极轻的描边按钮，悬停才转红 —— 不再是一枚显眼的小胶囊 */
.cart-remove {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1; color: var(--text-muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cart-remove svg { width: 14px; height: 14px; flex: none; }
.cart-remove:hover { border-color: rgba(239,68,68,.45); color: var(--danger); background: #FEF2F2; }
.cart-remove:active { transform: translateY(.5px); }

.cart-dock {
  position: sticky; bottom: 0; z-index: 5;
  margin-top: var(--sp-5); padding: 14px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: var(--sp-5);
  box-shadow: 0 -6px 20px rgba(24,24,27,.05);
}
.cart-dock-all { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.cart-dock-all input { width: 16px; height: 16px; accent-color: var(--accent); }
.cart-dock-all b { display: block; font-weight: 700; }
.cart-dock-all small { color: var(--text-faint); font-size: 11px; }
.cart-dock-sum { display: flex; flex-direction: column; gap: 3px; justify-self: end; min-width: 240px; }
.cart-dock-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 12px; color: var(--text-muted); }
.cart-dock-sum strong { font-size: 13px; color: var(--ink-900); }
.cart-dock-sum .final { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
.cart-dock-sum .final span { font-weight: 700; color: var(--ink-900); }
.cart-dock-sum .final strong { font-size: var(--fs-lg); font-family: var(--font-display); color: var(--accent); }
.cart-submit { min-width: 180px; }

/* ============================================================
   收银台 Choose Payment Method（结构对齐原站 payMoney.html）
   ============================================================ */
.pay-page { padding: var(--sp-6) 0 var(--sp-16); }
.pay-skel, .order-skel { height: 320px; border-radius: var(--r-lg); background: var(--bg-soft); }
.pay-back { margin-bottom: var(--sp-3); }
.pay-back-btn { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
.pay-back-btn:hover { color: var(--ink-900); }
.pay-layout { max-width: 880px; margin: 0 auto; }
.pay-col { display: flex; flex-direction: column; gap: var(--sp-4); }

.pay-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.pay-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) var(--sp-4); }
.pay-panel-head h2 { font-family: var(--font-display); font-size: var(--fs-lg); }
.pay-panel-head p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; line-height: 1.6; }

.pay-breakdown { margin: 0 var(--sp-5) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); padding: 12px 14px; }
.pay-breakdown-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.pay-breakdown-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-muted); padding: 3px 0; }
.pay-breakdown-row strong { color: var(--ink-900); font-size: 12px; }

.pay-summary { padding: 0 var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: 8px; }
.pay-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: var(--fs-sm); color: var(--text-muted); }
.pay-row strong { font-size: var(--fs-sm); color: var(--ink-900); }
.pay-row.is-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.pay-row.is-total span { font-weight: 700; color: var(--ink-900); font-size: var(--fs-md); }
.pay-row.is-total strong { font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--accent); }

.bill-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--sp-5) var(--sp-5); }
.bill-card { display: flex; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; position: relative; }
.bill-card:hover { border-color: var(--ink-300); }
.bill-card.is-on { border-color: var(--accent); background: #FFFBF7; }
.bill-card input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.bill-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; }
.bill-body strong { font-size: var(--fs-sm); display: flex; align-items: center; gap: 8px; }
.bill-body strong em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent-press); background: var(--accent-wash); border-radius: 999px; padding: 2px 7px; }
.bill-line { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-empty { padding: 0 var(--sp-5) var(--sp-5); font-size: var(--fs-sm); color: var(--text-faint); }

.bill-form { padding: 0 var(--sp-5) var(--sp-5); }
.bill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bill-grid .field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.bill-grid .input, .bill-grid .select { height: 42px; font-size: var(--fs-sm); }
.bill-full { grid-column: 1 / -1; }
.bill-phone { display: flex; gap: 8px; }
.bill-phone .bill-dial { width: 92px; flex: none; }
.bill-form-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: 14px; flex-wrap: wrap; }
.bill-default { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.bill-default input { accent-color: var(--accent); }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--sp-5) var(--sp-5); }
.method-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; position: relative; }
.method-card:hover { border-color: var(--ink-300); }
.method-card.is-on { border-color: var(--accent); background: #FFFBF7; }
.method-card > input { position: absolute; opacity: 0; pointer-events: none; }
.method-logo { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--ink-700); flex: none; }
.method-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; }
.method-copy strong { font-size: var(--fs-sm); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.method-fee { font-size: 10px; font-weight: 600; color: var(--accent-press); background: var(--accent-wash); border-radius: 999px; padding: 2px 7px; }
.method-type { color: var(--text-muted); }
.method-note { color: var(--text-faint); line-height: 1.5; }
.method-wallet { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.method-recharge { border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; padding: 3px 10px; color: var(--ink-900); }
.method-recharge:hover { border-color: var(--ink-900); }
.method-chips { display: flex; gap: 6px; margin-top: 4px; }
.method-chips em { font-style: normal; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.chip-ok { background: var(--teal-wash); color: var(--teal-press); }
.chip-cur { background: var(--bg-muted); color: var(--text-muted); }
.method-check { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border-radius: 999px; border: 1.5px solid var(--line); }
.method-card.is-on .method-check { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }

.pay-actions {
  position: sticky; bottom: 0; z-index: 6;
  max-width: 880px; margin: var(--sp-4) auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 -6px 22px rgba(24,24,27,.07); flex-wrap: wrap;
}
.pay-actions-info { min-width: 0; }
.pay-selected { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.pay-selected strong { color: var(--ink-900); }
.pay-actions-grid { display: flex; gap: 22px; flex-wrap: wrap; }
.pay-actions-grid > div { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--text-faint); }
.pay-actions-grid strong { font-size: 13px; color: var(--ink-900); }
.pay-actions-grid .is-total strong { font-size: var(--fs-xl); color: var(--accent); font-family: var(--font-display); }
.pay-now { min-width: 200px; }

.pay-modal { position: fixed; inset: 0; z-index: 80; background: rgba(24,24,27,.42); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pay-dialog { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.pay-dialog-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-300); }
.pay-dialog-x:hover { color: var(--ink-900); }
.pay-dialog-kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pay-dialog h3 { font-family: var(--font-display); font-size: var(--fs-xl); margin: 8px 0 14px; }
.pay-dialog-rows { display: flex; flex-direction: column; gap: 8px; }
.pay-dialog-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--text-muted); }
.pay-dialog-rows strong { color: var(--ink-900); }
.pay-dialog-rows .is-total { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.pay-dialog-rows .is-total strong { font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--ink-900); }
.pay-dialog-note { font-size: 12px; color: var(--text-faint); line-height: 1.7; margin-top: 12px; }
.pay-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: var(--sp-5); }
.pay-topup-input { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pay-topup-input span { font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); }
.pay-topup-input .input { height: 44px; font-family: var(--font-mono); }

/* ---------- 订单汇总确认（点 Pay Now 后的最后一道确认） ---------- */
.pay-confirm { padding: 24px 24px 20px; }
.pay-confirm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pay-confirm-ico {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  background: var(--accent-wash); color: var(--accent-press);
  display: inline-flex; align-items: center; justify-content: center;
}
.pay-confirm-ico svg { width: 21px; height: 21px; }
.pay-confirm h3 { font-family: var(--font-display); font-size: var(--fs-xl); margin: 0; letter-spacing: -.01em; }
.pay-confirm-rows { display: flex; flex-direction: column; gap: 10px; }
.pay-confirm-rows > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  font-size: var(--fs-sm); color: var(--text-muted);
}
.pay-confirm-rows strong { color: var(--ink-900); font-weight: 700; }
.pay-confirm-rows .is-total {
  margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); align-items: center;
}
.pay-confirm-rows .is-total span { font-weight: 700; color: var(--ink-900); }
.pay-confirm-rows .is-total strong {
  font-family: var(--font-display); font-size: 30px; line-height: 1.05;
  color: var(--accent); letter-spacing: -.02em;
}
.pay-confirm-note { margin-top: 14px; font-size: 12px; line-height: 1.65; color: var(--text-faint); }
.pay-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.pay-confirm-actions .btn { height: 48px; border-radius: 999px; font-weight: 800; font-size: var(--fs-sm); }

.pay-done { max-width: 520px; margin: 48px auto; text-align: center; }
.pay-done-mark { width: 56px; height: 56px; border-radius: 999px; background: var(--teal-wash); color: var(--teal-press); font-size: 26px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pay-done h1 { font-family: var(--font-display); font-size: var(--fs-3xl); }
.pay-done-no { margin-top: 10px; font-size: var(--fs-md); color: var(--text-muted); }
.pay-empty { max-width: 560px; margin: 0 auto; }

/* ============================================================
   订单详情（结构对齐原站 Products.html）
   ============================================================ */
.order-page { padding: var(--sp-8) 0 var(--sp-16); }
.order-page .order-card { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.order-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-number { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 700; }
.order-number span { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--text-faint); margin-right: 6px; }
.order-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.order-status { font-weight: 700; color: var(--accent-press); background: var(--accent-wash); border-radius: 999px; padding: 3px 10px; }
.order-tracking { color: var(--ink-700); }

.order-shop + .order-shop { border-top: 1px solid var(--line); }
.order-shop-head { display: flex; align-items: center; gap: 10px; padding: 10px var(--sp-5); background: #fcfcfd; border-bottom: 1px solid var(--line); }
.order-shop-avatar { width: 24px; height: 24px; border-radius: 999px; background: var(--ink-900); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.order-shop-name { font-size: var(--fs-sm); font-weight: 700; }

.order-item { display: grid; grid-template-columns: 64px minmax(0,1fr) 96px 56px 96px; gap: var(--sp-3); align-items: center; padding: 14px var(--sp-5); }
.order-item + .order-item { border-top: 1px dashed var(--line); }
.order-item-media { width: 64px; height: 64px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.order-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-item-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.order-item-title { font-size: 13px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-item-sku { font-size: 11px; color: var(--text-faint); }
.order-item-note { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 8px; font-size: 11px; font-family: inherit; resize: none; color: var(--text-muted); background: var(--bg-soft); }
.order-item-price { font-size: 13px; text-align: right; }
.order-item-ship { font-size: 11px; color: var(--text-faint); }
.order-item-qty { font-size: 12px; color: var(--text-muted); text-align: center; }
.order-item-total { font-size: 13px; font-weight: 700; text-align: right; }

.order-totals { padding: var(--sp-5); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.order-total-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 20px; min-width: 320px; font-size: var(--fs-sm); color: var(--text-muted); }
.order-total-row strong { color: var(--ink-900); min-width: 92px; text-align: right; }
.order-total-row.is-grand { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; flex-wrap: wrap; }
.order-total-row.is-grand span { font-weight: 700; color: var(--ink-900); }
.order-total-row.is-grand strong { font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--accent); }
.order-total-row.is-grand em { font-style: normal; font-size: 11px; color: var(--text-faint); flex-basis: 100%; text-align: right; }

.order-pay { padding: var(--sp-5); border-top: 1px solid var(--line); background: #fcfcfd; }
.order-pay-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.order-pay-head span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.order-pay-head strong { font-family: var(--font-display); font-size: var(--fs-md); }
.order-terms { display: flex; gap: 9px; font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.order-terms input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.order-terms a { color: var(--accent-press); text-decoration: underline; }
.order-terms-error { color: var(--danger); font-size: 12px; margin-top: 6px; }

@media (max-width: 1024px) {
  .cart-grid { grid-template-columns: 30px minmax(0,1fr) 88px 120px 84px; }
  .cart-grid > .cart-note, .cart-grid-head > span:nth-child(5) { display: none; }
  .cart-controls > .cart-action { grid-column: 5; }
  .order-item { grid-template-columns: 56px minmax(0,1fr) auto; row-gap: 8px; }
  .order-item-qty { text-align: left; }
}
@media (max-width: 860px) {
  .bill-list, .method-grid, .bill-grid { grid-template-columns: 1fr; }
  .pay-actions { flex-direction: column; align-items: stretch; }
  .pay-now { width: 100%; }
}
@media (max-width: 720px) {
  /* 商品卡：勾选 | 图文 —— 第二行左数量右删除，第三行留言，一眼能扫完 */
  .cart-grid {
    grid-template-columns: 22px minmax(0,1fr);
    align-items: start; gap: 10px 12px; padding: 14px;
  }
  .cart-grid-head { display: none; }
  .cart-grid > .cart-check { grid-column: 1; grid-row: 1; margin-top: 24px; }
  .cart-grid > .cart-prod { grid-column: 2; grid-row: 1; gap: 12px; }
  .cart-grid > .cart-price { display: none; }
  .cart-mobile-price { display: block; }
  .cart-grid > .cart-controls {
    display: flex; grid-column: 2; grid-row: 2;
    align-items: center; justify-content: space-between; gap: 12px;
  }
  .cart-grid > .cart-note { display: block; grid-column: 2; grid-row: 3; height: 38px; min-height: 38px; }
  .cart-grid > .cart-action { grid-column: auto; }
  .cart-remove { height: 38px; padding: 0 12px; border-radius: 10px; }
  .cart-dock { grid-template-columns: 1fr; gap: 12px; }
  .cart-dock-sum { justify-self: stretch; }
  .cart-submit { width: 100%; }
  .order-header { flex-direction: column; align-items: flex-start; }
  .order-total-row { min-width: 0; width: 100%; }
  .order-item { grid-template-columns: 56px minmax(0,1fr); }
}

/* 订单商品图占位 */
.order-item-ph { width: 100%; height: 100%; padding: 18px; color: var(--ink-300); display: block; }

/* ============================================================
   首页 · 公告 / 三步走 / 轮播（同一区块，顺序：公告 → 三步 → 轮播）
   ============================================================ */
.home-top { display: flex; flex-direction: column; gap: 12px; }
/* 首页顶部区（公告 + 轮播） */
.sec-home-top { padding: 18px 0 12px; }
/* 「大家都在买」区：与上下两块留出呼吸感 */
.sec-marquee { padding: 18px 0 8px; }

/* 公告条：只有一条滚动公告，宽度与内容区一致 */
.notice-bar {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  min-height: 50px; padding: 7px 12px 8px 12px;
  border: 1px solid var(--line); border-radius: 11px;
  background: #fff;
  transition: border-color var(--dur) var(--ease);
}
.notice-bar:hover, .notice-bar.is-open { border-color: var(--ink-300); }

.notice-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-press); background: var(--accent-wash);
}
.notice-ico svg { width: 16px; height: 16px; }

.notice-roll { position: relative; flex: 1 1 auto; min-width: 0; }
.notice-line {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 2px 0 6px; border: 0; background: none; cursor: pointer; text-align: left;
}
.notice-text {
  font-size: 13px; font-weight: 650; color: var(--ink-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--dur) var(--ease);
}
.notice-line:hover .notice-text { color: var(--accent-press); }
.notice-new {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  height: 18px; padding: 0 6px; border-radius: 5px;
  background: var(--accent); color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em; line-height: 1;
}
.notice-line-arrow {
  flex: none; width: 14px; height: 14px; color: var(--ink-400);
  opacity: 0; transform: translateX(-4px);
  transition: all var(--dur) var(--ease);
}
.notice-line:hover .notice-line-arrow { opacity: 1; transform: none; }

.notice-progress { display: block; height: 2px; max-width: 200px; border-radius: 99px; background: var(--ink-100); overflow: hidden; }
.notice-progress i {
  display: block; height: 100%; width: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #FFA45C, #FF6A00);
  transform-origin: left; animation: noticeBar 5.2s linear forwards;
}
@keyframes noticeBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }


.notice-tools { flex: none; display: flex; align-items: center; gap: 8px; }
.notice-count {
  font-size: 11px; font-weight: 700; color: var(--ink-400);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.notice-count i { font-style: normal; margin: 0 1px; color: var(--ink-300); }
.notice-arrows { display: flex; gap: 3px; }
.notice-arrows button {
  width: 24px; height: 24px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-500);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.notice-arrows svg { width: 12px; height: 12px; }
.notice-arrows button:hover { border-color: var(--ink-900); color: var(--ink-900); }

.notice-more {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 11.5px; font-weight: 700; color: var(--ink-700);
  transition: all var(--dur) var(--ease);
}
.notice-more svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.notice-more:hover { border-color: var(--ink-900); color: var(--ink-900); }

.notice-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  padding: 6px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-lg);
  max-height: 300px; overflow: auto;
}
.notice-list-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  text-align: left; cursor: pointer;
}
.notice-list-item:hover { background: var(--bg-soft); }
.notice-list-item.is-on { background: var(--accent-wash); }
.notice-list-idx { flex: none; font-size: 11px; font-weight: 700; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.notice-list-title { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list-item svg { width: 12px; height: 12px; color: var(--ink-300); flex: none; }
.notice-list-enter-active, .notice-list-leave-active { transition: opacity .18s ease, transform .18s var(--ease); }
.notice-list-enter-from, .notice-list-leave-to { opacity: 0; transform: translateY(-6px); }

.notice-modal { max-width: 620px; }
.notice-modal-title { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.4; }
.notice-modal-body { font-size: var(--fs-sm); line-height: 1.8; color: var(--ink-700); max-height: 56vh; overflow: auto; }

/* ============================================================
   首页 · 轮播图（宽屏 5 图同屏全展示 / 移动 1 图，自动播放）
   ============================================================ */
.banner-carousel { position: relative; }
.banner-viewport { position: relative; overflow: hidden; border-radius: 10px; }
.banner-track { display: flex; gap: 12px; transition: transform .46s var(--ease); will-change: transform; }
.banner-slide {
  flex: 0 0 calc((100% - 48px) / 5);
  height: auto; aspect-ratio: 810 / 432; padding: 0; border: 0; border-radius: 10px;
  background: var(--bg-soft); overflow: hidden; cursor: pointer; position: relative;
  box-shadow: 0 6px 20px rgba(16, 24, 40, .08);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.banner-slide:hover { box-shadow: 0 12px 30px rgba(16, 24, 40, .16); transform: translateY(-2px); }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-nav {
  position: absolute; top: 50%; z-index: 3;
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(9,12,18,.62); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(9, 12, 18, .26);
  opacity: 0; transform: translateY(-50%) scale(.94);
  transition: all var(--dur) var(--ease);
}
.banner-nav svg { width: 15px; height: 15px; }
.banner-nav.prev { left: 10px; }
.banner-nav.next { right: 10px; }
.banner-carousel:hover .banner-nav,
.banner-carousel:focus-within .banner-nav { opacity: 1; transform: translateY(-50%) scale(1); }
.banner-nav:hover { background: var(--accent); border-color: var(--accent); }
.banner-dots {
  position: absolute; left: 50%; bottom: 9px; z-index: 3; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(9, 12, 18, .40);
  backdrop-filter: blur(8px);
}
.banner-dots button { width: 5px; height: 5px; border-radius: 99px; border: 0; background: rgba(255,255,255,.52); transition: all var(--dur) var(--ease); }
.banner-dots button:hover { background: rgba(255,255,255,.85); }
.banner-dots button.is-active { width: 16px; background: #fff; }
.banner-count {
  position: absolute; right: 9px; top: 9px; z-index: 3;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(9, 12, 18, .40); backdrop-filter: blur(8px);
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: #fff;
  font-variant-numeric: tabular-nums;
}
.banner-count i { font-style: normal; margin: 0 1px; color: rgba(255,255,255,.6); }

@media (max-width: 960px) {
  .banner-slide { flex-basis: calc((100% - 36px) / 4); }
}
@media (max-width: 900px) {
  .banner-slide { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 640px) {
  .banner-slide { flex-basis: 100%; }
  .banner-nav { display: none; }
  .banner-count { display: none; }
  .notice-bar { min-width: 0; }
  .home-top { gap: 10px; }
  .notice-bar { min-height: 46px; padding: 6px 10px 7px 10px; gap: 9px; }
  .notice-ico { width: 26px; height: 26px; border-radius: 8px; }
  .notice-ico svg { width: 14px; height: 14px; }
  .notice-arrows { display: none; }
  .notice-count { display: none; }
  .notice-text { font-size: 12px; }
  .sec-home-top { padding: 12px 0 6px; }
}

/* 推荐分类：折叠 + 展开按钮 */
.reco-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px dashed var(--line-strong); background: #fff;
  font-size: 12px; font-weight: 700; color: var(--ink-700);
}
.reco-toggle:hover { border-color: var(--accent); color: var(--accent-press); }
.reco-toggle svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }

/* ============================================================
   悬浮侧边栏（对齐原站 footer float-sidebar）
   ============================================================ */
.float-side { position: fixed; right: 18px; bottom: 96px; z-index: var(--z-header); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-btns { display: flex; flex-direction: column; gap: 8px; }
.float-btn {
  position: relative; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-700);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(24,24,27,.1);
  transition: all var(--dur) var(--ease);
}
.float-btn svg { width: 20px; height: 20px; }
.float-btn:hover { border-color: var(--ink-900); color: var(--ink-900); transform: translateY(-2px); }
.float-btn.is-on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.float-btn.is-hidden { display: none; }
.float-tip {
  position: absolute; right: 54px; white-space: nowrap;
  padding: 5px 9px; border-radius: 6px; background: var(--ink-900); color: #fff;
  font-size: 11px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateX(4px);
  transition: all var(--dur) var(--ease);
}
.float-btn:hover .float-tip { opacity: 1; transform: none; }

/* 社区渠道：品牌实心图标，hover 用各自品牌色 */
.float-ch svg { width: 21px; height: 21px; }
.float-ch-img { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; display: block; }
.float-ch.ch-discord:hover { color: #5865F2; border-color: #5865F2; }
.float-ch.ch-telegram:hover { color: #229ED9; border-color: #229ED9; }
.float-ch.ch-whatsapp:hover { color: #25D366; border-color: #25D366; }
.float-ch.ch-other:hover { color: var(--accent); border-color: var(--accent); }

.float-panel {
  width: 268px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-lg);
}
.float-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.float-panel-head strong { font-family: var(--font-display); font-size: var(--fs-md); }
.float-panel-note { font-size: 11.5px; color: var(--text-faint); line-height: 1.6; margin: 6px 0 10px; }
.float-line { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: var(--r-sm); color: var(--ink-800); }
.float-line:hover { background: var(--bg-soft); }
.float-line-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-soft); color: var(--ink-700); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.float-line-ico svg { width: 16px; height: 16px; }
.float-line b { display: block; font-size: 12.5px; font-weight: 700; }
.float-line small { display: block; font-size: 10.5px; color: var(--text-faint); }
.float-panel-more { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--accent-press); text-align: right; }

@media (max-width: 900px) {
  .float-side { right: 10px; bottom: calc(var(--tabbar-offset) + 16px); gap: 8px; }
  .float-btn { width: 38px; height: 38px; }
  .float-btn svg { width: 17px; height: 17px; }
  .float-tip { display: none; }
  .float-ch svg { width: 18px; height: 18px; }
  .float-ch-img { width: 19px; height: 19px; }
  .float-panel { width: min(268px, calc(100vw - 24px)); }
}

/* ============================================================
   语言 / 货币面板
   ============================================================ */
.sheet {
  position: relative; z-index: calc(var(--z-sheet) + 1);
  width: min(560px, calc(100vw - 32px));
  /* dvh = 移动浏览器「当前可视高度」，地址栏收放时不会把弹层顶出屏幕 */
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: 0; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden;
}
/* 语言 / 货币弹层：遮罩本身不滚，只有中间选项区滚，头尾始终可见 */
.lang-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow: hidden; overscroll-behavior: none;
}
.sheet-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-3); border-bottom: 1px solid var(--line); }
.sheet-title { font-family: var(--font-display); font-size: var(--fs-lg); }
.sheet-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.sheet-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-5);
  scrollbar-width: thin;
}
.sheet-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5) var(--sp-4); border-top: 1px solid var(--line); }
.lc-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.lang-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.lang-item {
  height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}
.lang-item:hover { border-color: var(--ink-300); color: var(--ink-900); }
.lang-item.is-active { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }
.cur-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.cur-item {
  height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.cur-item:hover { border-color: var(--ink-300); color: var(--ink-900); }
.cur-item.is-active { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-press); }
@media (max-width: 560px) { .lang-grid, .cur-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* ============================================================
   Toast
   ============================================================ */
.toast-wrap { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 10px 18px; border-radius: 999px; background: var(--ink-900); color: #fff;
  font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.18); max-width: 80vw;
}
.toast.is-error { background: var(--danger); }

/* 头部语言按钮 */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; color: var(--ink-700); }
.lang-btn:hover { border-color: var(--ink-900); color: var(--ink-900); }
@media (max-width: 1100px) { .lang-btn-txt { display: none; } }

/* tab bar 角标 */
.tab-bar-item .badge { position: absolute; top: 5px; left: 50%; margin-left: 4px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================
   悬浮侧栏补充：APP / 在线客服 / 收起
   ============================================================ */
.float-side { gap: 10px; }
.float-app { height: 48px; flex-direction: column; gap: 1px; padding-top: 5px; }
.float-app svg { width: 17px; height: 17px; }
.float-app-txt { font-size: 8px; font-weight: 800; letter-spacing: .05em; line-height: 1; }
.float-dot {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; border: 2px solid #fff; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.float-fold svg { width: 15px; height: 15px; }
.float-open {
  position: relative; width: 26px; height: 52px; padding: 0;
  border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px;
  background: #fff; color: var(--ink-500);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: -6px 0 18px rgba(24,24,27,.08);
}
.float-open svg { width: 13px; height: 13px; }
.float-open:hover { color: var(--ink-900); }
.float-side.is-collapsed { right: 0; }

/* ============================================================
   在线客服面板（原站 footer chat）
   ============================================================ */
.chat-panel {
  position: fixed; right: 80px; bottom: 96px; z-index: calc(var(--z-header) + 8);
  display: flex; flex-direction: column;
  width: 366px; height: min(520px, calc(100vh - 190px)); height: min(520px, calc(100dvh - 190px));
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, #fff 30%, var(--accent-wash) 100%);
}
.chat-ava {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink-900); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.chat-ava.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.chat-ava.is-me { background: var(--accent); }
.chat-head-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-head-copy strong { font-size: 13.5px; }
.chat-head-copy small { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-faint); }
.chat-head-copy small i { width: 6px; height: 6px; border-radius: 99px; background: var(--success); }
.chat-close {
  flex: none; width: 28px; height: 28px; border-radius: 8px; border: 0; background: none;
  color: var(--ink-400); display: inline-flex; align-items: center; justify-content: center;
}
.chat-close svg { width: 14px; height: 14px; }
.chat-close:hover { background: #fff; color: var(--ink-900); }
.chat-list {
  flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-soft);
}
.chat-row { display: flex; align-items: flex-start; gap: 8px; }
.chat-row.is-user { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%; padding: 9px 11px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; line-height: 1.65; color: var(--ink-800);
  word-break: break-word;
}
.chat-row.is-user .chat-bubble { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.chat-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; font-size: 10px; color: var(--text-faint); }
.chat-row.is-user .chat-meta { color: rgba(255,255,255,.62); }
.chat-meta em { font-style: normal; opacity: .9; }
.chat-bubble p { margin: 0; white-space: pre-wrap; }
.chat-bubble img { display: block; max-width: 100%; border-radius: 8px; margin-top: 6px; }
.chat-hours { display: block; margin-top: 4px; font-size: 10.5px; color: var(--text-faint); }
.chat-state { text-align: center; font-size: 11.5px; color: var(--text-faint); padding: 6px; }
.chat-state.is-error { color: var(--danger); }
.chat-foot { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-input {
  flex: 1; min-height: 38px; max-height: 88px; resize: none;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px;
  font-family: inherit; font-size: 12.5px; line-height: 1.5; outline: 0;
}
.chat-input:focus { border-color: var(--ink-900); }
.chat-send { height: 38px; padding: 0 14px; }
.chat-gate {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center; background: var(--bg-soft);
}
.chat-gate-ico {
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-700); display: grid; place-items: center;
}
.chat-gate-ico svg { width: 22px; height: 22px; }
.chat-gate strong { font-size: 13.5px; }
.chat-gate p { font-size: 12px; color: var(--text-muted); line-height: 1.6; max-width: 26ch; }
.chat-mail { font-size: 11.5px; color: var(--text-faint); text-decoration: underline; }
.chat-slide-enter-active, .chat-slide-leave-active { transition: opacity .2s ease, transform .24s var(--ease); }
.chat-slide-enter-from, .chat-slide-leave-to { opacity: 0; transform: translateY(12px) scale(.98); }

/* ============================================================
   APP 下载弹窗
   ============================================================ */
.ad-overlay { z-index: calc(var(--z-sheet) + 6); display: flex; align-items: flex-start; justify-content: center; overflow: auto; }
.ad-dialog {
  position: relative; width: min(560px, calc(100vw - 32px)); margin: 9vh auto 24px;
  padding: 26px 24px 20px; border: 1px solid var(--line); border-radius: 22px;
  background: #fff; box-shadow: var(--shadow-lift);
}
.ad-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-500);
  display: grid; place-items: center;
}
.ad-close svg { width: 14px; height: 14px; }
.ad-close:hover { color: var(--ink-900); border-color: var(--ink-300); }
.ad-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; background: var(--accent-wash); color: var(--accent-press);
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.ad-title { font-family: var(--font-display); font-size: var(--fs-xl); margin-top: 10px; }
.ad-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; margin-top: 4px; }
.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.ad-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft);
}
.ad-card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.ad-card-head svg { width: 20px; height: 20px; }
.ad-qr {
  width: 152px; height: 152px; padding: 6px; border-radius: 10px;
  background: #fff; display: grid; place-items: center;
  border: 1px solid var(--line);
}
.ad-qr img, .ad-qr canvas { display: block; }
.ad-state {
  font-size: 11px; font-weight: 800; color: var(--warn);
  padding: 3px 9px; border-radius: 999px; background: #FFFBEB; border: 1px solid #FDE68A;
}
/* 已上架一侧（Google Play）：状态徽章换成青色直达链接（对齐原站 #8ff7ea 直达样式） */
.ad-state-live {
  color: #0B9B8E; background: #ECFDFB; border-color: #99E9E0;
  text-decoration: none; cursor: pointer;
}
.ad-state-live:hover { background: #D9F9F4; }
.ad-hint { font-size: 11px; color: var(--text-faint); }
.ad-note { margin-top: 14px; font-size: 11.5px; color: var(--text-faint); text-align: center; }
.ad-fail { margin-top: 10px; font-size: 12px; color: var(--danger); text-align: center; }

/* ============================================================
   首页教学视频（原站 home-video.js 的站内版本）
   ============================================================ */
.hv {
  position: fixed; left: 18px; bottom: 20px; z-index: calc(var(--z-header) + 4);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.hv-launch {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-md); color: var(--ink-800);
  font-size: 12.5px; font-weight: 700;
  transition: all var(--dur) var(--ease);
}
.hv-launch svg { width: 20px; height: 20px; color: var(--accent); }
.hv-launch:hover { border-color: var(--ink-900); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hv-card {
  width: 326px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.hv-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.hv-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: var(--text-faint); }
.hv-kicker i { width: 5px; height: 5px; border-radius: 99px; background: var(--accent); }
.hv-head strong { flex: 1; font-size: 12.5px; font-weight: 700; }
.hv-close { width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--ink-400); display: grid; place-items: center; }
.hv-close svg { width: 13px; height: 13px; }
.hv-close:hover { background: var(--bg-soft); color: var(--ink-900); }
.hv-stage { position: relative; background: #0b0b0d; aspect-ratio: 16 / 9; cursor: pointer; }
.hv-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-bigplay {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink-900);
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.hv-bigplay svg { width: 22px; height: 22px; margin-left: 3px; }
.hv-tag {
  position: absolute; top: 8px; left: 8px; height: 20px; padding: 0 8px;
  border-radius: 6px; background: rgba(0,0,0,.5); color: #fff;
  font-size: 10px; font-weight: 700; display: inline-flex; align-items: center;
}
.hv-controls { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.hv-ctrl { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--ink-700); display: grid; place-items: center; }
.hv-ctrl svg { width: 14px; height: 14px; }
.hv-ctrl:hover { background: var(--bg-soft); }
.hv-track { position: relative; flex: 1; height: 4px; border-radius: 99px; background: var(--ink-100); cursor: pointer; }
.hv-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); }
.hv-knob {
  position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 99px;
  background: #fff; border: 2px solid var(--accent); transform: translate(-50%, -50%);
}
.hv-time { font-size: 10px; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 74px; text-align: right; }
.hv-vol { width: 52px; accent-color: var(--accent); }
.hv-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-top: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--ink-700);
}
.hv-link svg { width: 12px; height: 12px; }
.hv-link:hover { background: var(--bg-soft); color: var(--accent-press); }
.hv-pop-enter-active, .hv-pop-leave-active { transition: opacity .2s ease, transform .24s var(--ease-bounce); }
.hv-pop-enter-from, .hv-pop-leave-to { opacity: 0; transform: translateY(10px) scale(.97); }

@media (max-width: 860px) {
  .hv { left: 10px; bottom: calc(var(--tabbar-offset) + 12px); }
  .hv-card { width: min(326px, calc(100vw - 86px)); }
  .hv-launch { height: 42px; padding: 0 14px 0 12px; }
  .chat-panel { right: 10px; bottom: calc(var(--tabbar-offset) + 12px); width: calc(100vw - 20px); height: min(460px, 62vh); }
  .float-fold { display: none; }
  .ad-grid { grid-template-columns: 1fr; }
  .ad-qr { width: 140px; height: 140px; }
  .ad-dialog { padding: 22px 16px 16px; max-height: 88vh; overflow: auto; }
}

/* ============================================================
   搜索页（对齐原站 search.html）
   ============================================================ */
.search-page { padding: var(--sp-8) 0 var(--sp-16); }
.s-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.s-query { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.s-query-thumb {
  position: relative; width: 46px; height: 46px; border-radius: 10px; overflow: visible;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.s-query-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 9px; }
.s-query-ph { width: 100%; height: 100%; border-radius: 9px; display: grid; place-items: center; color: var(--ink-300); }
.s-query-ph svg { width: 20px; height: 20px; }
.s-query-x {
  position: absolute; right: -7px; bottom: -7px; width: 19px; height: 19px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-700);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.s-query-x svg { width: 9px; height: 9px; }
.s-query-x:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.s-query-line { font-size: var(--fs-md); color: var(--text-muted); line-height: 1.6; }
.s-query-line strong { color: var(--ink-900); font-weight: 800; }
.s-query-line span { color: var(--accent-press); font-weight: 700; }
.s-terms {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content;
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 11.5px; color: var(--text-faint); text-align: left;
}
.s-terms svg { width: 12px; height: 12px; }
.s-terms:hover { color: var(--accent-press); }
.s-side { display: flex; flex-direction: column; gap: 8px; width: min(560px, 100%); }
.s-bar { display: flex; align-items: center; width: 100%; }
.s-bar.is-drop .s-input-group { border-color: var(--accent); background: var(--accent-wash); }
.s-clear { flex: none; width: 24px; height: 24px; border: 0; border-radius: 999px; background: none; color: var(--ink-400); display: grid; place-items: center; }
.s-clear svg { width: 12px; height: 12px; }
.s-clear:hover { background: var(--bg-muted); color: var(--ink-700); }
.s-hint { margin-top: 0; padding-left: 15px; font-size: 11px; color: var(--text-faint); }
/* 一条胶囊里：相机图标 + 输入 + 清除 + 搜索按钮，避免多个控件拼接 */
.s-input-group {
  display: flex; align-items: center; gap: 6px; height: 48px; width: 100%;
  padding: 0 4px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: 0 4px 14px rgba(24, 24, 27, .05);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.s-input-group:hover { border-color: var(--ink-300); }
.s-input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.s-input { flex: 1 1 auto; min-width: 0; width: auto; height: 100%; border: 0; background: none; outline: 0; font-size: 13.5px; }
.s-img-ico {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-500); display: grid; place-items: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.s-img-ico svg { width: 16px; height: 16px; }
.s-img-ico:hover:not(:disabled) { background: var(--accent-wash); color: var(--accent-press); }
.s-img-ico:disabled { opacity: .45; cursor: not-allowed; }
.s-go {
  flex: none; height: 38px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 106, 0, .22); transition: background var(--dur) var(--ease);
}
.s-go:hover:not(:disabled) { background: var(--accent-press); }
.s-go:disabled { opacity: .5; cursor: not-allowed; }

.s-sources { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 20px; }
.s-source {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.s-source img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
.s-source em { font-style: normal; font-size: 10.5px; color: var(--text-faint); }
.s-source:hover { border-color: var(--ink-300); color: var(--ink-900); }
.s-source.is-active { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }
.s-source.is-active em { color: rgba(255,255,255,.66); }
.s-source-note { margin-left: auto; max-width: 46ch; font-size: 11px; color: var(--text-faint); line-height: 1.6; }

.s-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.s-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.s-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink-300); }
.s-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.s-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.s-card:hover .s-card-media img { transform: scale(1.04); }
.s-card-src {
  position: absolute; top: 8px; left: 8px; height: 20px; padding: 0 7px;
  border-radius: 6px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 800; color: var(--ink-800);
  display: inline-flex; align-items: center;
}
.s-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 11px 12px; }
.s-card-title { font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--ink-800); min-height: 38px; }
.s-card-meta { display: flex; gap: 5px; font-size: 10.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; }
.s-card-meta span { overflow: hidden; text-overflow: ellipsis; }
.s-card-price { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--accent-press); }
.s-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.s-card-moq { padding: 2px 6px; border-radius: 5px; background: var(--bg-soft); font-size: 10px; color: var(--text-faint); }
.s-card-view { font-size: 10.5px; font-weight: 800; color: var(--ink-900); opacity: 0; transform: translateX(-4px); transition: all var(--dur) var(--ease); }
.s-card:hover .s-card-view { opacity: 1; transform: none; }

.s-loading { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 0; color: var(--text-muted); text-align: center; }
.s-loading strong { font-size: 13.5px; color: var(--ink-800); }
.s-loading small { font-size: 12px; color: var(--text-faint); }
.s-spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--ink-200); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.s-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 0; text-align: center; }
.s-more { display: flex; justify-content: center; margin-top: 24px; }
.s-gate {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 22px; padding: 48px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 18px; background: var(--bg-soft);
}
.s-gate-ico { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-700); }
.s-gate-ico svg { width: 24px; height: 24px; }
.s-gate strong { font-size: 15px; }
.s-gate p { max-width: 44ch; font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
.s-terms-modal { max-width: 560px; }
.s-opening {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: rgba(9,9,11,.55); backdrop-filter: blur(3px);
}
.s-opening-box {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  width: min(360px, calc(100vw - 40px)); padding: 24px 26px;
  border-radius: 16px; background: #fff; box-shadow: var(--shadow-lift); text-align: center;
}
.s-opening-box strong { font-size: 13.5px; }
.s-opening-box small { font-size: 11.5px; color: var(--text-faint); line-height: 1.5; }

@media (max-width: 1200px) { .s-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) { .s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .s-source-note { display: none; } }
@media (max-width: 720px) {
  .search-page { padding: var(--sp-5) 0 var(--sp-12); }
  .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .s-input-group { height: 46px; padding-right: 3px; gap: 4px; }
  .s-img-ico { width: 32px; height: 32px; }
  .s-go { height: 36px; padding: 0 15px; font-size: 12.5px; }
  .s-input { font-size: 13px; }
  .s-card-title { min-height: 0; }
  .s-card-view { display: none; }
}

/* ============================================================
   用户中心 · 列表 / 订单 / 物流 / 钱包 / 优惠券 / 设置
   ============================================================ */

/* ---- 通用：分页 / 筛选 / 小块件 ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: var(--sp-6); }
.pager-btn {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pager-btn:hover:not(:disabled) { border-color: var(--ink-900); color: var(--ink-900); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-btn.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.pager-meta { margin-left: 8px; font-size: var(--fs-xs); color: var(--text-faint); font-variant-numeric: tabular-nums; }
/* 分页条放在 .card 里时（钱包/优惠券/物流…）：和表格之间加分隔线，四周留白，别贴着卡片边框 */
.card > .pager { margin-top: 0; padding: 14px 16px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); }
@media (max-width: 640px) { .card > .pager { padding: 12px 10px 14px; gap: 4px; } }

.filter-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.filter-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--dur) var(--ease);
}
.filter-pill:hover { border-color: var(--ink-300); color: var(--ink-900); }
.filter-pill.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.filter-pill em { font-style: normal; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.filter-pill.is-active em { background: rgba(255,255,255,.24); }
/* 待补款（wl_status 9）：红色胶囊 + 呼吸红点，任何 tab 下都能一眼看到 */
.filter-pill.is-urgent { border-color: rgba(239,68,68,.5); background: #FFF5F5; color: #B91C1C; }
.filter-pill.is-urgent:hover { border-color: var(--danger); color: #991B1B; }
.filter-pill.is-urgent em { background: var(--danger); }
.filter-pill.is-urgent.is-active { background: var(--danger); border-color: var(--danger); color: #fff; }
.filter-pill.is-urgent.is-active em { background: rgba(255,255,255,.26); }
.filter-pill.is-urgent.has-alert { position: relative; }
.filter-pill.is-urgent.has-alert::after {
  content: ''; position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid #fff;
  animation: balance-pulse 1.8s ease-out infinite;
}
@keyframes balance-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@media (prefers-reduced-motion: reduce) {
  .filter-pill.is-urgent.has-alert::after { animation: none; }
}

.sort-field { display: inline-flex; align-items: center; gap: 8px; }
.input-sm { height: 32px; padding: 0 10px; font-size: var(--fs-sm); border-radius: var(--r-md); }
.radio-inline { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-muted); cursor: pointer; }
.radio-inline input { accent-color: var(--accent); }
.count-chip { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--accent-press); background: var(--accent-wash); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.tag-outline { border: 1px solid var(--line); color: var(--text-muted); background: #fff; }
.tag-accent { background: var(--accent-wash); color: var(--accent-press); }
.tag-ink { background: var(--ink-900); color: #fff; }
.tag-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cell-num.is-plus { color: var(--success); }
.cell-num.is-minus { color: var(--danger, #EF4444); }

/* ---- 订单状态筛选：3 个 tab 一行排满，选中态用品牌橙而不是整块黑 ---- */
.order-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: var(--sp-4); }
.order-type-btn {
  position: relative; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all var(--dur) var(--ease);
}
.order-type-btn:hover { border-color: var(--ink-300); color: var(--ink-900); }
.order-type-btn.is-active {
  background: #fff1e7; border-color: #ffb87a; color: #e85d00; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(232, 93, 0, .08);
}
.order-type-btn em {
  position: static; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #ff6a00; color: #fff;
  font-style: normal; font-size: 10px; font-weight: 800; line-height: 17px;
  display: inline-flex; align-items: center; justify-content: center;
}
.order-type-btn.is-active em { background: #e85d00; }

.order-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.order-card-head-side { display: flex; align-items: center; gap: 10px; flex: none; }
.order-card-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-card-id .mono { font-size: 12.5px; font-weight: 600; }
.order-sku-total { font-family: var(--font-display); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.order-sku { display: grid; grid-template-columns: 64px minmax(0,1fr) 240px; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: start; }
/* 仓库（QC Packing）页：每个 SKU 行最左多一列勾选框（原站 order-qc-packing-check） */
.order-sku.is-pkg { grid-template-columns: 28px 64px minmax(0,1fr) 240px; }
.order-sku:first-of-type { border-top: 0; }
.order-sku-media { width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; background: var(--bg-muted); display: block; }
.order-sku-media img { width: 100%; height: 100%; object-fit: cover; }
.order-sku-logo { width: 100%; height: 100%; object-fit: contain; padding: 16px; background: #fff; }
.waybill-sku .order-sku-logo, .wh-cell .order-sku-logo { padding: 5px; }
.order-sku-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; }
.order-sku-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.order-sku-title { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; color: var(--ink-900); text-decoration: none; }
a.order-sku-title:hover { color: var(--accent-press); text-decoration: underline; text-underline-offset: 2px; }
.order-sku-title:hover { color: var(--accent-press); }
.order-sku-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--text-muted); }
.order-sku-meta .mono { font-size: 11px; }
.order-sku-track { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--text-faint); }
.order-sku-track b { font-weight: 600; color: var(--ink-700); }
.order-sku-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.order-sku-status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: var(--bg-muted); color: var(--ink-700); }
.order-sku-status.is-unpaid { background: var(--accent-wash); color: var(--accent-press); }
.order-sku-status.is-progress { background: #EFF6FF; color: #1D4ED8; }
.order-sku-status.is-warehouse { background: var(--teal-wash); color: var(--teal-press); }
.order-sku-status.is-return { background: #FEF2F2; color: #B91C1C; }
.order-sku-status.wl-1 { background: var(--bg-muted); color: var(--ink-600); }
.order-sku-status.wl-2 { background: var(--accent-wash); color: var(--accent-press); }
.order-sku-status.wl-3, .order-sku-status.wl-4 { background: #EFF6FF; color: #1D4ED8; }
.order-sku-status.wl-5 { background: var(--teal-wash); color: var(--teal-press); }
.order-sku-status.wl-6 { background: #FEF2F2; color: #B91C1C; }
.order-sku-status.wl-7, .order-sku-status.wl-8 { background: var(--grape-wash); color: var(--grape-press); }
/* 待补款：唯一用实心红底的状态徽章 */
.order-sku-status.wl-9 { background: var(--danger); color: #fff; }
.order-sku-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.btn-link { background: none; border: 0; padding: 0; font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.btn-link:hover:not(:disabled) { color: var(--accent-press); }
.btn-link:disabled { opacity: .45; cursor: not-allowed; }

/* ---- 物流 / 包裹 ---- */
.waybill { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.waybill-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.waybill-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.waybill-code { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.waybill-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.waybill-route { display: flex; align-items: center; gap: 12px; color: var(--text-faint); }
.route-line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--ink-300) 0 6px, transparent 6px 12px); position: relative; }
.route-line::after { content: ''; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.waybill-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.waybill-facts div { display: flex; flex-direction: column; gap: 2px; }
.waybill-facts strong { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.waybill-skus { display: flex; flex-wrap: wrap; gap: 8px; }
.waybill-sku { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 260px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 11.5px; color: var(--text-muted); }
.waybill-sku img, .waybill-sku .order-sku-ph { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex: none; }
.waybill-sku .order-sku-ph { font-size: 8px; }
.waybill-adr { color: var(--text-faint); line-height: 1.6; }
.waybill-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-soft); }

/* ---- 优惠券 ---- */
.coupon-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.coupon-ticket {
  position: relative; display: grid; grid-template-columns: 104px minmax(0,1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden;
}
.coupon-ticket::before {
  content: ''; position: absolute; left: 104px; top: 0; bottom: 0;
  border-left: 1px dashed var(--ink-200);
}
.coupon-value { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px; background: var(--accent-wash); color: var(--accent-press); }
.coupon-num { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.coupon-unit { font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.coupon-info { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px 11px 14px; min-width: 0; }
.coupon-info-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.coupon-info-head strong { font-size: 12px; line-height: 1.35; min-width: 0; }
.coupon-state {
  flex: none; padding: 1px 6px; border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: .04em;
  background: var(--teal-wash); color: var(--teal-press);
}
.coupon-ticket.is-used .coupon-state, .coupon-ticket.is-expired .coupon-state { background: var(--bg-muted); color: var(--ink-500); }
.coupon-min, .coupon-valid { font-size: 10.5px; line-height: 1.45; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coupon-code { font-size: 10.5px; color: var(--text-faint); letter-spacing: .04em; }
.coupon-use { align-self: flex-start; margin-top: 6px; height: 27px; padding: 0 13px; font-size: 11.5px; border-radius: 999px; }
.coupon-info strong { font-size: var(--fs-sm); }
.coupon-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.coupon-title-row strong { min-width: 0; }
.coupon-badge { position: absolute; top: 8px; right: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-press); background: var(--teal-wash); border-radius: 999px; padding: 2px 7px; }
.coupon-ticket.is-used, .coupon-ticket.is-expired { opacity: .62; }
.coupon-ticket.is-used .coupon-value, .coupon-ticket.is-expired .coupon-value { background: var(--bg-muted); color: var(--ink-400); }
.coupon-ticket.is-used .coupon-badge, .coupon-ticket.is-expired .coupon-badge { background: var(--bg-muted); color: var(--ink-500); }

/* ---- 两类优惠券：百分比（紫，主视觉）/ 满减（橙） ----
   字段口径见 js/coupon.js：coupon_type 1 满减 / 2 百分比 */
.coupon-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -2px 0 12px; font-size: 11px; color: var(--text-muted); }
.coupon-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.coupon-legend-item i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.coupon-legend-item.is-percent i { background: var(--grape); }
.coupon-legend-item.is-fixed i { background: var(--accent); }
.coupon-legend-item b { font-weight: 800; color: var(--ink-700); }
.coupon-type {
  display: inline-flex; align-items: center; height: 15px; padding: 0 6px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
/* 百分比券：整块紫色底 + 白色大字，比满减券更抢眼 */
.coupon-ticket.is-percent { border-color: #C4B5FD; box-shadow: 0 0 0 1px rgba(124,58,237,.10); }
.coupon-ticket.is-percent .coupon-value {
  background: linear-gradient(160deg, #7C3AED 0%, #5B21B6 100%); color: #fff;
}
.coupon-ticket.is-percent::before { border-left-color: #C4B5FD; }
.coupon-ticket.is-percent .coupon-type { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.2); }
.coupon-ticket.is-percent .coupon-num { font-size: 34px; font-weight: 800; }
.coupon-ticket.is-percent .coupon-num em { font-style: normal; font-size: 17px; font-weight: 800; margin-left: 1px; }
.coupon-ticket.is-percent .coupon-unit { letter-spacing: .1em; color: rgba(255,255,255,.86); }
.coupon-ticket.is-fixed .coupon-value { background: var(--accent-wash); color: var(--accent-press); }
.coupon-ticket.is-fixed .coupon-type { border-color: rgba(232,93,0,.38); background: #fff; }
/* 百分比券的封顶金额：单独一行高亮，别塞在票根里 */
.coupon-cap {
  align-self: flex-start; margin-top: 1px; padding: 1px 7px; border-radius: 999px;
  background: var(--grape-wash); color: var(--grape-press);
  font-size: 10px; font-weight: 800; letter-spacing: .01em;
}
.coupon-ticket.is-used .coupon-type, .coupon-ticket.is-expired .coupon-type { border-color: currentColor; }
.coupon-ticket.is-used .coupon-cap, .coupon-ticket.is-expired .coupon-cap { background: var(--bg-muted); color: var(--ink-500); }

/* ---- 提现弹窗（原站 walletWithdrawModal） ---- */
.wallet-withdraw-modal { width: min(440px, calc(100vw - 28px)); display: flex; flex-direction: column; gap: 10px; }
.wallet-withdraw-balance {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border-radius: var(--r-md, 10px);
  background: var(--bg-muted, #F4F4F5); font-size: 12px; color: var(--text-muted);
}
.wallet-withdraw-balance strong { font-family: var(--font-display); font-size: 20px; color: var(--ink-900); }
.wallet-withdraw-empty {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md, 10px);
  font-size: 11.5px; line-height: 1.5; color: var(--text-muted); background: var(--bg-soft);
}
.wallet-withdraw-field { display: flex; flex-direction: column; gap: 5px; }
.wallet-withdraw-label { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); }
.wallet-withdraw-preview {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--r-md, 10px); font-size: 11px; color: var(--text-muted);
}
.wallet-withdraw-preview strong { font-size: 12px; color: var(--ink-900); }
.wallet-withdraw-input-row { display: flex; align-items: center; gap: 8px; }
.wallet-withdraw-input-row em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-700); }
.wallet-withdraw-input-row .input { flex: 1 1 0; }
.wallet-withdraw-notes { margin: 2px 0 0; padding-left: 16px; font-size: 10.5px; line-height: 1.6; color: var(--text-faint); }
.wallet-withdraw-summary {
  display: grid; gap: 4px; padding: 10px 12px;
  border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-muted);
}
.wallet-withdraw-summary div { display: flex; align-items: baseline; justify-content: space-between; }
.wallet-withdraw-summary strong { color: var(--ink-900); font-variant-numeric: tabular-nums; }

/* ---- 收藏 / 历史（卡片网格，与原站 fav-card / history-card 同结构） ---- */
/* 原站 favorites-grid：auto-fill + minmax(180px,1fr)，图片区固定 180px 高，
   不做正方形大图（旧版 3 列方块卡在宽屏上单张 330px，一屏只能看两行） */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.fav-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity .18s var(--ease), transform .18s var(--ease);
}
.fav-card:hover { border-color: var(--ink-300); box-shadow: 0 6px 20px rgba(24,24,27,.07); }
.fav-card.is-removing { opacity: 0; transform: scale(.97); pointer-events: none; }
.fav-card-link { display: flex; flex-direction: column; height: 100%; }
.fav-card-img { position: relative; height: 172px; background: var(--bg-muted); overflow: hidden; }
.fav-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.fav-card:hover .fav-card-img img { transform: scale(1.03); }
.fav-card-img .order-sku-ph { font-size: 10px; }
.fav-card-title { padding: 9px 12px 0; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--ink-900); min-height: 41px; }
.fav-card-time { padding: 3px 12px 11px; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.fav-card-remove {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(24,24,27,.06);
  background: rgba(255,255,255,.94); color: var(--ink-600);
  box-shadow: 0 1px 6px rgba(24,24,27,.12); cursor: pointer;
  opacity: 0; transform: translateY(-3px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.fav-card:hover .fav-card-remove, .fav-card-remove:focus-visible { opacity: 1; transform: none; }
.fav-card-remove:hover:not(:disabled) { background: var(--danger); border-color: var(--danger); color: #fff; }
.fav-card-remove:disabled { opacity: .5; cursor: default; }
@media (hover: none) { .fav-card-remove { opacity: 1; transform: none; } }
@media (max-width: 900px) { .fav-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } .fav-card-img { height: 150px; } }
@media (max-width: 720px) { .fav-card-remove { opacity: 1; transform: none; } }
@media (max-width: 520px) { .fav-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; } .fav-card-img { height: 132px; } .fav-card-title { font-size: 12px; min-height: 36px; } }

/* ---- 钱包 ---- */
.wallet-top { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: var(--sp-4); }
.wallet-top .overview-tile { padding: var(--sp-4); }

/* 余额总览（原站 wallet-overview：余额卡 + 收入 / 支出 / 净收入） */
.wallet-hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1.85fr); gap: 12px; margin-bottom: 14px; }
.wallet-balance-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(140deg, #18181B 0%, #2F2F35 100%); color: #fff;
}
.wallet-balance-icon {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.13); font-family: var(--font-display); font-size: 16px; font-weight: 800;
}
.wallet-balance-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wallet-balance-label { font-size: 11.5px; letter-spacing: .02em; color: rgba(255,255,255,.72); }
.wallet-balance-value {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.wallet-balance-value em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.wallet-balance-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.wallet-balance-actions .btn-outline { border-color: rgba(255,255,255,.32); color: #fff; background: transparent; }
.wallet-balance-actions .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.wallet-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.wallet-stat {
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
}
.wallet-stat-label { font-size: 11px; color: var(--text-faint); }
.wallet-stat-value { font-family: var(--font-display); font-size: 19px; font-variant-numeric: tabular-nums; color: var(--ink-900); }
.wallet-stat-value.is-in { color: var(--success); }
.wallet-stat-value.is-out { color: var(--ink-700); }
.wallet-filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wallet-date-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wallet-table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.wallet-table-head h3 { margin: 0; font-size: 13px; font-weight: 700; }
.wallet-status { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--teal-wash); color: var(--teal-press); }
/* 流水类型徽章（原站 wallet-type-badge：按类型上色，不展示 remark） */
.wallet-type { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; background: var(--bg-muted); color: var(--ink-600); }
.wallet-type.is-in { background: var(--teal-wash); color: var(--teal-press); }
.wallet-type.is-grape { background: var(--grape-wash); color: var(--grape-press); }
.wallet-type.is-accent { background: var(--accent-wash); color: var(--accent-press); }
.wallet-type.is-neutral { background: var(--bg-muted); color: var(--ink-500); }
.wallet-status.is-pending { background: var(--accent-wash); color: var(--accent-press); }
.wallet-status.is-failed { background: #FEF2F2; color: #B91C1C; }
.wallet-status.is-cancelled { background: var(--bg-muted); color: var(--ink-500); }
.wallet-topup-modal { width: min(380px, calc(100vw - 28px)); }
.wallet-topup-presets { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.wallet-topup-field { display: flex; flex-direction: column; gap: 5px; }
.wallet-topup-note { margin: 10px 0 12px; font-size: 11px; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 900px) {
  .wallet-hero { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wallet-stats { grid-template-columns: 1fr 1fr; }
  .wallet-stats .wallet-stat:last-child { grid-column: 1 / -1; }
  .wallet-topup-presets { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---- 仓库 ---- */
.wh-cell { display: flex; align-items: center; gap: 10px; }
.wh-cell img, .wh-cell .order-sku-ph { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex: none; }

/* ---- 设置 ---- */
.settings-page .account-block { scroll-margin-top: calc(var(--header-h) + 20px); }
.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.addr-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.addr-name { font-size: var(--fs-sm); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.addr-form { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--line); }
.payout-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }

/* ---- 站内消息 ---- */
.msg-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.msg-toolbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.msg-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.msg-select-all { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.msg-select-all input { accent-color: var(--accent); width: 15px; height: 15px; }
.msg-select-all.is-disabled { opacity: .5; cursor: not-allowed; }
.msg-table { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.msg-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.msg-row:last-child { border-bottom: 0; }
.msg-row:hover { background: var(--bg-soft); }
.msg-row.is-unread { background: #FFFCF8; }
.msg-row.is-unread:hover { background: #FFF7EE; }
.msg-row input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.msg-row-main { flex: 1; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; font-size: var(--fs-sm); color: var(--ink-900); min-width: 0; }
.msg-row-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.msg-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.msg-title-row strong { font-weight: 600; }
.msg-row.is-unread .msg-title-row strong { font-weight: 700; }
.msg-excerpt { font-size: 11.5px; color: var(--text-muted); font-weight: 400; }
.msg-time { font-size: 11px; color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.msg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-200); flex: none; }
.msg-dot.on { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.msg-detail-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.msg-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.msg-detail-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.msg-detail-title { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; }
.msg-detail-content { padding: 20px 18px; white-space: pre-wrap; font-size: var(--fs-sm); line-height: 1.95; color: var(--ink-700); }
@media (max-width: 640px) {
  .msg-toolbar { align-items: center; }
  .msg-toolbar-left { gap: 10px; }
  .msg-time { font-size: 10px; }
}

/* ---- 订单留言弹窗 ---- */
.msg-modal { max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.msg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.msg-sub { font-size: var(--fs-sm); font-weight: 600; max-width: 380px; }
.msg-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; padding: 4px; }
.msg-welcome { font-size: 11.5px; color: var(--text-faint); background: var(--bg-soft); border-radius: var(--r-md); padding: 10px 12px; line-height: 1.6; }
.msg-bubble { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: var(--fs-sm); line-height: 1.6; }
.msg-bubble.agent { align-self: flex-start; background: var(--bg-muted); border-bottom-left-radius: 6px; }
.msg-bubble.me { align-self: flex-end; background: var(--ink-900); color: #fff; border-bottom-right-radius: 6px; }
.msg-time { font-size: 10px; color: var(--text-faint); margin-top: 3px; }
.msg-bubble.me .msg-time { color: rgba(255,255,255,.6); }
.msg-foot { display: flex; gap: 8px; }
.msg-foot .input { flex: 1; }

/* ---- 物流轨迹弹窗 ---- */
/* 原站弹窗 width:min(100%,680px) + __body overflow:auto。这里必须给 width 而不只是
   max-width：只给 max-width 时浏览器用内容宽度兜底，一张宽表格会把弹窗一起撑开。 */
.track-modal {
  width: min(560px, calc(100% - 32px)); max-width: none;
  box-sizing: border-box; min-width: 0;
}
.track-modal > * { min-width: 0; }
.track-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.track-no { font-size: 13px; font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
.track-state { margin: 10px 0 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--teal-press); overflow-wrap: anywhere; }
.track-timeline { display: flex; flex-direction: column; max-height: 52vh; overflow: auto; padding-left: 4px; min-width: 0; }
.track-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.track-item::before { content: ''; position: absolute; left: 4px; top: 12px; bottom: 0; width: 1px; background: var(--ink-200); }
.track-item:last-child { padding-bottom: 0; }
.track-item:last-child::before { display: none; }
.track-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); margin-top: 5px; flex: none; z-index: 1; }
.track-item.is-latest .track-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.track-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.track-text { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-700); overflow-wrap: anywhere; }
.track-item.is-latest .track-text { color: var(--ink-900); font-weight: 600; }
.track-time { font-size: 10.5px; color: var(--text-faint); }
/* 渠道直回的 HTML 表格：原站也是放进 .tracking-response-table-wrap 里横滑，
   这里再压一层自适应，长文本一律断行，不允许表格把弹窗顶宽 */
.track-html { max-height: 46vh; overflow: auto; font-size: var(--fs-sm); line-height: 1.7; overflow-wrap: anywhere; min-width: 0; }
.track-html table { width: 100%; max-width: 100%; table-layout: fixed; }
.track-html th, .track-html td { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
/* 调试：?trackdebug=1 时把接口原文摊在弹窗里 */
.track-raw { margin: 10px 0 0; padding: 10px 12px; max-height: 26vh; overflow: auto; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--r-sm); font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; color: var(--text-2); }
/* shipments 结构（原站 renderLogisticsTrackingShipments：运单分节 + 概览 + 三列表格） */
.track-shipments { display: flex; flex-direction: column; gap: 14px; max-height: 52vh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; min-width: 0; }
.track-shipment { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px 14px; background: var(--bg-soft); min-width: 0; }
.track-shipment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: var(--fs-sm); min-width: 0; }
.track-shipment-head strong { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.track-shipment-tag {
  flex: none; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal-press); background: rgba(20, 184, 166, .12); border: 1px solid rgba(20, 184, 166, .3);
}
.track-shipment-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 14px; margin-bottom: 10px; }
.track-shipment-overview > div { min-width: 0; }
.track-shipment-overview > div > span { display: block; font-size: 10.5px; color: var(--text-faint); }
/* 长单号 / 长状态别直接省略掉：两行内断行，既不撑宽也留得住信息 */
.track-shipment-overview > div > strong {
  font-size: 12.5px; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal;
}
/* 最新动态是整句，允许两行内换行，不要省略号截断（原站也是整句展示） */
.track-shipment-overview .is-latest { grid-column: 1 / -1; }
.track-shipment-overview .is-latest > strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.track-shipment-overview .is-latest > span { color: var(--text-faint); font-weight: 400; }
.track-shipment-overview .is-latest > strong { color: var(--teal-press); }
/* 轨迹表格防撑宽：外层横滑容器（原站 .tracking-response-table-wrap）+
   fixed 列宽 + 任意位置断行。以前日期/地点 nowrap、描述列没断行，
   渠道回一段长文本时整张表会撑到 2400px+，弹窗右侧内容被裁掉。 */
.track-table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; margin-top: 2px; }
.track-shipment-table { width: 100%; min-width: 0; table-layout: fixed; margin-top: 0; }
.track-shipment-table th { font-size: 11px; padding: 8px 10px; white-space: normal; }
.track-shipment-table td { padding: 9px 10px; vertical-align: top; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.track-shipment-table td:first-child, .track-shipment-table td:nth-child(2) { white-space: normal; }
.track-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.track-foot > span { min-width: 0; overflow-wrap: anywhere; }
/* 窄屏弹窗只有 280px 可用，三列固定宽会把日期、地点挤成逐字竖排。
   改成「一条轨迹一块」：时间 + 地点同一行，描述独占一行，仍然不横滑、不撑宽。 */
@media (max-width: 640px) {
  .track-table-wrap { overflow-x: visible; }
  .track-shipment-table, .track-shipment-table tbody, .track-shipment-table tr { display: block; width: 100%; }
  .track-shipment-table colgroup, .track-shipment-table thead { display: none; }
  .track-shipment-table tr { padding: 9px 0; border-bottom: 1px solid var(--line); }
  .track-shipment-table tr:last-child { border-bottom: 0; }
  .track-shipment-table td, .track-shipment-table td:first-child, .track-shipment-table td:nth-child(2) {
    display: inline; width: auto; padding: 0; border: 0; margin-right: 8px;
    font-size: 10.5px; color: var(--text-faint);
  }
  .track-shipment-table td:nth-child(3) {
    display: block; margin: 4px 0 0; padding: 0; border: 0;
    font-size: 12px; color: var(--ink-700);
  }
}

@media (max-width: 1080px) {
  .coupon-grid, .fav-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wallet-top { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .waybill-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .order-sku { grid-template-columns: 56px minmax(0,1fr); }
  .order-sku.is-pkg { grid-template-columns: 28px 56px minmax(0,1fr); }
  .order-sku-side { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; }
  .order-sku.is-pkg .order-sku-side { grid-column: 2 / -1; }
  /* 列缩到 56px 时商品图同步缩，避免 64px 图溢出压住标题（三页共用） */
  .order-sku .order-sku-media { width: 56px; height: 56px; }
  .order-sku-btns { flex-basis: 100%; max-width: none; justify-content: flex-start; }
  .filter-row { flex-direction: column; align-items: flex-start; }
  .addr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .coupon-grid, .fav-grid, .wallet-top { grid-template-columns: 1fr; }
  /* 3 个状态 tab 保持一行，不再 2+1 折行留半格空白 */
  .order-type-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .order-type-btn { height: 38px; border-radius: 10px; font-size: 12px; gap: 4px; padding: 0 4px; }
  .order-type-btn em { min-width: 15px; height: 15px; line-height: 15px; font-size: 9px; padding: 0 3px; }
  .order-sku { padding: 12px; gap: 10px; }
  .waybill-foot { gap: 8px; }
}

/* 区块标题里的筛选组：保持在右侧单行，日期框固定宽度 */
.block-head > .row { flex-wrap: nowrap; }
.block-head .input[type="date"] { width: 150px; }
@media (max-width: 640px) {
  .block-head > .row { flex-wrap: wrap; justify-content: flex-start; }
  .block-head .input[type="date"] { width: 132px; }
}

/* 积分任务列表 */
.reward-task-list { display: flex; flex-direction: column; gap: 8px; }
.reward-task-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.reward-task-list li div { display: flex; flex-direction: column; gap: 2px; }
.reward-task-list strong { font-size: var(--fs-sm); }
.reward-task-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-press); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }

/* ---- 订单确认页：可改数量 / 留言 / 定制拍照（对齐 Products.j1.js） ---- */
.order-item-note { resize: vertical; background: #fff; }
.order-note-status { font-size: 10.5px; color: var(--teal-press); }
.order-photo-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  margin-top: 2px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.order-photo-btn:hover { border-color: var(--accent); color: var(--accent-press); background: var(--accent-wash); }
.order-photo-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.order-photo-btn em { font-style: normal; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 10px; }
.order-qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.order-qty-box button { width: 22px; height: 26px; border: 0; background: var(--bg-soft); font-size: 14px; color: var(--ink-900); }
.order-qty-box button:hover:not(:disabled) { background: var(--ink-900); color: #fff; }
.order-qty-box button:disabled { opacity: .45; }
.order-qty-box input { width: 36px; height: 26px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font-size: 12px; -moz-appearance: textfield; }
.order-qty-box input::-webkit-outer-spin-button, .order-qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.photo-dialog { max-width: 620px; max-height: 84vh; overflow: auto; }
.photo-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.photo-dialog-head strong { font-size: var(--fs-sm); }
.photo-item-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.photo-item-card { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.photo-item-card textarea { resize: vertical; font-size: 12px; }
.photo-del { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 10px; color: var(--text-muted); }
.photo-del:disabled { opacity: .35; }
.photo-upload { position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 92px; border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--bg-soft); cursor: pointer; overflow: hidden; }
.photo-upload > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-upload > input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-upload-label { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--text-faint); }
.photo-upload-label svg { width: 22px; height: 22px; }
.photo-img-del { position: absolute; top: 4px; right: 4px; z-index: 2; width: 20px; height: 20px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 1; }
@media (max-width: 640px) {
  .photo-item-card { grid-template-columns: 1fr; }
  .photo-upload { min-height: 110px; }
  .order-item { grid-template-columns: 54px minmax(0,1fr) 82px; }
  .order-item-media { width: 54px; height: 54px; }
  .order-item-qty { grid-column: 2; }
  .order-item-total { grid-column: 3; }
}

/* ============================================================
   2026-11-06 · 带水带电规则 / 收银台 / 店铺 / 详情页 / 订单页大版式
   ============================================================ */

/* ---------- 运费估算：带水 / 带电 / 粉末 / 敏感货 ---------- */
.est-flag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.est-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-muted); background: var(--bg-soft); }
.est-flag i { font-style: normal; font-weight: 800; }
.est-flag.is-ok { color: #1b7f4b; background: #eefaf3; border-color: #c8ecd7; }
.est-flag.is-no { color: #a33; background: #fff4f2; border-color: #f5d3cd; }

.est-detail-wide { width: min(880px, 94vw); max-height: 88vh; display: flex; flex-direction: column; }
.est-detail-scroll { overflow: auto; padding-right: 4px; }
.est-detail-section { padding: 16px 0; border-top: 1px solid var(--line); }
.est-detail-section:first-child { border-top: 0; padding-top: 0; }
.est-detail-section h4 { margin-bottom: 10px; }
.est-items-block { margin-top: 8px; align-items: center; }
.est-items-label { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.est-raw-rule { margin-top: 10px; }
.est-raw-toggle { font-size: 11px; font-weight: 700; color: var(--accent-press); padding: 4px 0; }
.est-raw-rule pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono);
  font-size: 11px; line-height: 1.6; color: var(--text-muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; margin: 6px 0 0; max-height: 220px; overflow: auto; }
.est-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.est-rule { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--bg-soft); font-size: 11px; }
.est-rule i { font-style: normal; width: 17px; height: 17px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; }
.est-rule.is-ok i { background: #25a35a; }
.est-rule.is-no i { background: #d9534f; }
.est-rule span { font-weight: 700; }
.est-rule em { font-style: normal; color: var(--text-faint); margin-left: auto; white-space: nowrap; }
.est-category-matrix { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow: auto; }
.est-category-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: start; }
.est-category-row > strong { font-size: 11px; padding-top: 5px; }
.est-category-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.item-chip { font-size: 10px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); }
.item-chip.can { background: #eefaf3; border-color: #c8ecd7; color: #1b7f4b; }
.item-chip.cannot { background: #fff4f2; border-color: #f5d3cd; color: #a33; text-decoration: line-through; }
.est-charge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.est-charge-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg-soft); border-radius: var(--r-md); padding: 9px 11px; }
.est-charge-grid span { font-size: 11px; color: var(--text-muted); }
.est-charge-grid strong { font-size: 12px; }
/* .est-formula 计费公式整块已移除，样式同步删除 */
@media (max-width: 720px) { .est-rule-grid, .est-charge-grid { grid-template-columns: 1fr; } .est-category-row { grid-template-columns: 1fr; } }

/* ---------- 收银台 /wtcbuy/pay ---------- */
.pay-page { padding-top: var(--sp-10); }
.pay-container { max-width: 1240px; }
.pay-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: var(--sp-8); }
.pay-kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.pay-head h1 { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px); }
.pay-head p { max-width: 620px; margin-top: 8px; color: var(--text-muted); font-size: var(--fs-sm); }
.pay-total-card { min-width: 230px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); padding: 18px 22px; }
.pay-total-card span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.pay-total-card strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--brand); margin: 4px 0; }
.pay-total-card em { font-style: normal; font-size: 11px; color: var(--text-faint); }
.pay-loading { display: flex; flex-direction: column; gap: 16px; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pay-methods-panel, .pay-summary { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.pay-panel-head { padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px; flex-wrap: wrap; }
.pay-panel-head h2 { font-size: var(--fs-lg); }
.pay-panel-head p { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 3px; }
.pay-country { display: flex; align-items: center; gap: 8px; }
.pay-country span { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.pay-country .input { height: 34px; max-width: 190px; font-size: 12px; }
.pay-error { padding: 16px 24px; color: var(--danger); font-size: var(--fs-sm); }
.pay-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px 24px 24px; }
.pay-method { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: all var(--dur) var(--ease); }
.pay-method:hover { border-color: var(--ink-300); }
.pay-method.is-selected { border-color: var(--brand); background: var(--accent-wash); }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-logo { width: 54px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.pay-method-logo img { max-width: 46px; max-height: 30px; object-fit: contain; }
.pay-method-logo b { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ink-700); }
.pay-method-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-method-copy strong { font-size: 13px; font-weight: 700; }
.pay-method-copy em { font-style: normal; font-size: 10.5px; color: var(--text-faint); }
.pay-method-fee { font-size: 10.5px; font-weight: 600; color: var(--text-muted); margin-top: 3px; }
.pay-wallet-balance { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; }
.pay-wallet-balance b { color: var(--brand); }
.pay-wallet-balance a { color: var(--accent-press); text-decoration: underline; margin-left: 8px; }
.pay-method-check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); color: #fff; font-style: normal; font-size: 11px; display: none; align-items: center; justify-content: center; }
.pay-method.is-selected .pay-method-check { display: flex; }
.pay-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.pay-summary-head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pay-summary-head h2 { font-size: var(--fs-md); }
.pay-summary-body { padding: 18px 22px 22px; }
.pay-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px; color: var(--text-muted); }
.pay-summary-row strong { color: var(--ink-900); }
.pay-summary-row.is-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.pay-summary-row.is-total span { font-weight: 700; color: var(--ink-900); }
.pay-summary-row.is-total strong { font-family: var(--font-display); font-size: 26px; color: var(--brand); }
.pay-shortage { margin-top: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: #fff4f2; color: #a33; font-size: 11px; }
.pay-continue { width: 100%; margin-top: 18px; }
.pay-summary-body > p { margin-top: 10px; text-align: center; }
@media (max-width: 980px) { .pay-layout { grid-template-columns: 1fr; } .pay-summary { position: static; } }
@media (max-width: 640px) { .pay-method-grid { grid-template-columns: 1fr; } }

/* ---------- 逛店铺 /wtcbuy/shop ---------- */
.shop-hero { display: flex; align-items: center; gap: 18px; padding: 22px 26px; margin: var(--sp-5) 0 var(--sp-7);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.shop-hero-logo { width: 66px; height: 66px; flex: none; border-radius: var(--r-md); object-fit: cover; border: 1px solid var(--line); background: #fff; }
.shop-hero-logo.ph { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--ink-300); }
.shop-hero-copy { min-width: 0; flex: 1; }
.shop-hero-copy h1 { font-size: clamp(20px, 2.2vw, 28px); margin: 5px 0 2px; }
.shop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.shop-card-item { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; overflow: hidden; transition: all var(--dur) var(--ease); }
.shop-card-item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm, 0 6px 18px rgba(0,0,0,.06)); }
.shop-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; }
.shop-card-title { font-size: 12.5px; line-height: 1.45; min-height: 36px; }
.shop-card-body b.mono { color: var(--brand); font-size: 14px; }
.shop-more { display: flex; justify-content: center; padding: var(--sp-8) 0; }
.shop-end { text-align: center; padding: var(--sp-7); }
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .shop-hero { padding: 16px; } }

/* ---------- 详情页：大图集 / 放大镜 / QC / 款式 ---------- */
.detail-page .detail-container { max-width: 1360px; }
.detail-page .detail-grid { gap: 36px; }
.dgal-stage { position: relative; }
/* 预览层在 .dgal 的层叠上下文内也要压住 lens / 角标 / 翻页按钮 */
.dgal-zoom-preview { position: absolute; left: calc(100% + 16px); top: 0; z-index: 90;
  width: min(330px, 26vw); height: min(330px, 26vw); border: 1px solid var(--line); border-radius: var(--r-lg);
  background-color: #fff; background-repeat: no-repeat; box-shadow: var(--shadow-lg, 0 18px 48px rgba(0,0,0,.14)); pointer-events: none; }
.magnifier-lens { position: absolute; z-index: 3; background: rgba(255,255,255,.28);
  border: 1px solid rgba(0,0,0,.18); pointer-events: none; }
/* 触屏设备没有 hover：tap 的合成 mousemove 会把半透明白色 lens 卡在图上
   （移动端「白色盖住图片」），hover:none 一律不显示，与 JS 守卫双保险 */
@media (hover: none) { .magnifier-lens { display: none; } }
.dgal-zoom-hint { position: absolute; left: 12px; bottom: 12px; font-size: 10px; color: #fff;
  background: rgba(0,0,0,.5); padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.fav-corner { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.94); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.fav-corner svg { width: 19px; height: 19px; color: var(--ink-700); }
.fav-corner.is-on svg { color: #e0455f; }
.dgal-thumbs { flex-wrap: wrap; gap: 7px; }
.dgal-thumb { width: 56px; height: 56px; }
.dgal-count-text { margin-top: 8px; }
.d-qc-panel { margin-top: var(--sp-5); padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.d-qc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.d-qc-head strong { font-size: var(--fs-sm); }
.d-qc-rules { display: flex; flex-direction: column; gap: 7px; }
.d-qc-rules li { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; line-height: 1.55; color: var(--text-muted); }
.d-qc-rules i { flex: none; width: 15px; height: 15px; margin-top: 2px; border-radius: 50%; background: #25a35a; color: #fff;
  font-style: normal; font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.d-qc-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.d-qc-thumb { width: 58px; height: 58px; border: 2px solid var(--line); border-radius: var(--r-sm); overflow: hidden; padding: 0; }
.d-qc-thumb:hover { border-color: var(--brand); }
.d-qc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-fulfill { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 14px 16px; }
.d-fulfill-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.d-fulfill-head strong { font-size: var(--fs-sm); }
.d-fulfill-step { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.d-fulfill-step + .d-fulfill-step { border-top: 1px dashed var(--line); }
.d-fulfill-step > b { width: 22px; height: 22px; border-radius: 50%; background: var(--ink-900); color: #fff;
  font-size: 11px; display: flex; align-items: center; justify-content: center; }
.d-fulfill-step > span { display: flex; flex-direction: column; gap: 1px; }
.d-fulfill-step strong { font-size: 12px; }
.d-fulfill-step em { font-style: normal; font-size: 10.5px; color: var(--text-faint); }
.d-fulfill-step > i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); white-space: nowrap; }
/* 履约第 2 步：运费估算入口（详情页桌面 / 移动端共用，替代原「Later」纯文本）。
   只作用于 .d-fulfill-step 内的按钮；固定 max-width（不用百分比，grid 的 auto 列
   无法解析百分比 intrinsic 尺寸），防止多语言长文案把第三列撑爆 */
.d-fulfill-calc { display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  max-width: 132px; min-height: 28px; padding: 4px 10px; border: 1px solid #ffd9c2; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent-press); font-size: 11px; font-weight: 700;
  line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; }
.d-fulfill-calc > svg { width: 13px; height: 13px; flex: none; }
.d-fulfill-calc > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.d-fulfill-calc:hover { border-color: var(--brand); background: #fff3ea; color: var(--brand); }
.d-fulfill-calc:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.d-processing { margin-top: -6px; }
.d-share { background: none; border: 0; padding: 0; cursor: pointer; }
.spec-count { margin-left: 6px; }
/* 带图规格：格子按「原 74px 的约 1/3 视觉面积」收紧，图片仍在上、文字在下 */
.d-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.d-style { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 3px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; transition: all var(--dur) var(--ease); overflow: hidden; }
.d-style img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: var(--bg-soft); }
.d-style span { font-size: 9.5px; font-weight: 600; color: var(--text-muted); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-style:hover { border-color: var(--ink-300); }
.d-style.is-active { border-color: var(--brand); background: var(--accent-wash); }
.d-style.is-active span { color: var(--accent-press); font-weight: 700; }
.d-style.is-disabled { opacity: .35; cursor: not-allowed; }
.d-style.is-disabled span { text-decoration: line-through; }
.d-style-more { grid-column: 1 / -1; height: 28px; border: 1px dashed var(--line); border-radius: var(--r-sm);
  font-size: 10px; font-weight: 700; color: var(--accent-press); background: var(--bg-soft); }
.lightbox { flex-direction: column; }
.lightbox img.is-grab { cursor: grab; }
.lb-toolbar { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.lb-toolbar > span { font-size: 12px; padding: 0 6px; white-space: nowrap; flex: 0 0 auto; }
.lb-toolbar button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.lb-toolbar button:hover { background: rgba(255,255,255,.2); }
.lb-toolbar .lb-close { position: static; top: auto; right: auto; font-size: 20px; }
/* 重置原来用「Reset / 重置」文字，在 30px 圆按钮里中文会换行成竖排（截图红圈）；
   改成 SVG 四角还原图标，文字留在 title / aria-label 里，多语言都不再撑破按钮。 */
.lb-toolbar .lb-reset svg { width: 17px; height: 17px; display: block; }
@media (max-width: 640px) {
  .lb-toolbar { top: 12px; gap: 5px; padding: 5px 7px; }
  .lb-toolbar > span { padding: 0 3px; font-size: 11px; }
  .lb-toolbar button { width: 28px; height: 28px; font-size: 14px; }
  .lb-toolbar .lb-close { font-size: 18px; }
}
.lb-thumbs { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 6px; max-width: 92vw; overflow-x: auto; padding: 6px 8px; border-radius: var(--r-md); background: rgba(0,0,0,.4); }
.lb-thumbs button { width: 48px; height: 48px; flex: none; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; }
.lb-thumbs button.is-active { border-color: var(--brand); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1180px) { .dgal-zoom-preview { display: none; } }

/* ---------- 订单确认页：大版式 ---------- */
.order-page > .container { max-width: 1360px; }
.order-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 10px 0 var(--sp-7); margin-bottom: var(--sp-6); border-bottom: 1px solid var(--line); }
.order-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.order-kicker b { font-size: 12px; color: var(--ink-700); letter-spacing: 0; }
.order-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px); margin: 6px 0; }
.order-hero-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent-press); font-size: 13px; font-weight: 700; }
.order-hero-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.order-hero-status.is-paid { background: #eefaf3; color: #1b7f4b; }
.order-hero-status.is-paid .dot { background: #25a35a; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.order-products-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.order-products-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.order-products-head strong { font-size: var(--fs-md); }
.order-page .order-shop-head { padding: 12px 26px; gap: 12px; }
.order-page .order-shop-avatar { width: 30px; height: 30px; font-size: 12px; }
.order-page .order-shop-name { font-size: 14px; }
.order-page .order-item { grid-template-columns: 104px minmax(0, 1fr) 150px; gap: 20px; padding: 22px 26px; align-items: start; }
.order-page .order-item-media { width: 104px; height: 104px; border-radius: var(--r-md); }
.order-page .order-item-title { font-size: 15px; font-weight: 700; }
.order-page .order-item-sku { font-size: 11.5px; }
.order-page .order-item-note { font-size: 12px; padding: 8px 10px; max-width: 420px; }
.order-page .order-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-page .order-item-total { font-size: 18px; font-family: var(--font-display); }
.order-page .order-item-unit { font-size: 11px; }
.order-side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.order-page .order-totals { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  padding: 20px 24px; align-items: stretch; gap: 12px; }
.order-side-head { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.order-side-head strong { font-size: var(--fs-md); }
.order-page .order-total-row { min-width: 0; width: 100%; justify-content: space-between; gap: 12px; font-size: 14px; }
.order-page .order-total-row strong { min-width: 0; }
.order-page .order-total-row.is-grand { padding-top: 16px; margin-top: 6px; }
.order-page .order-total-row.is-grand strong { font-size: 34px; }
.order-page .order-total-row.is-grand em { text-align: right; }
.order-fee-count { font-style: normal; font-size: 10.5px; color: var(--text-faint); margin-left: 4px; }
.order-page .order-pay { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 20px 24px; }
.order-page .order-pay-head { margin-bottom: 14px; }
.order-page .order-pay-head strong { font-size: var(--fs-lg); }
.order-page .order-terms { font-size: 12px; }
.order-submit { width: 100%; margin-top: 16px; height: 52px; font-size: 15px; }
.order-page .order-pay > p { margin-top: 10px; text-align: center; }
@media (max-width: 1024px) { .order-layout { grid-template-columns: 1fr; } .order-side { position: static; } }
@media (max-width: 720px) {
  .order-page .order-item { grid-template-columns: 72px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .order-page .order-item-media { width: 72px; height: 72px; }
  .order-page .order-item-side { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .order-page .order-shop-head, .order-products-head { padding: 12px 16px; }
}

/* ============================================================
   第四批（2026-11-06）：详情页收紧 / 订单页视觉升级 / 收银台账单地址
   ============================================================ */

/* ---------- 详情页：收紧排版（用户反馈「内容太宽松、属性图片太大」） ---------- */
.detail-page .detail-container { max-width: 1200px; }
.detail-page .detail-grid { gap: 26px; }
.detail-page .dbuy { gap: 13px; }
.detail-page .d-price-block { padding: 12px 16px; gap: 10px; }
.detail-page .d-title { line-height: 1.2; }
.detail-page .spec-name { margin-bottom: 7px; }
/* 详情页与「立即下单」弹层共用同一档缩略图尺寸，两边看起来才一致 */
.detail-page .d-style-grid { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; }
.detail-page .d-style { padding: 2px; gap: 2px; border-width: 1px; border-radius: var(--r-sm); }
.detail-page .d-style img { border-radius: 3px; }
.detail-page .d-style span { font-size: 9px; }
.detail-page .d-style-more { height: 26px; font-size: 10px; }
.detail-page .d-qc-panel { padding: 13px 15px; margin-top: var(--sp-4); }
.detail-page .d-qc-head { margin-bottom: 9px; }
.detail-page .d-qc-rules { gap: 5px; }
.detail-page .d-qc-rules li { font-size: 11px; gap: 7px; line-height: 1.5; }
.detail-page .d-qc-rules i { width: 14px; height: 14px; font-size: 8.5px; margin-top: 1px; }
.detail-page .d-fulfill { padding: 11px 13px; }
.detail-page .d-fulfill-step { padding: 6px 0; gap: 9px; }
.detail-page .dgal-main { max-width: 430px; }
.detail-page .dgal-zoom-preview { left: calc(100% + 12px); }
.detail-page .shop-card { margin-top: var(--sp-4); padding: 10px 12px; gap: 10px; }
.detail-page .shop-logo { width: 38px; height: 38px; border-radius: 10px; }
.detail-page .d-processing { margin-top: -4px; }

/* ---------- 订单确认页：视觉升级（用户反馈「设计太简陋」） ---------- */
.order-page { padding: var(--sp-6) 0 var(--sp-16); }
.order-hero { position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-wash) 0%, #fff 58%);
  padding: 22px 26px; margin-bottom: var(--sp-5); }
.order-hero::after { content: ""; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(244,110,26,.10) 0%, transparent 70%); }
.order-hero-copy { position: relative; z-index: 1; }
.order-hero-status { position: relative; z-index: 1; box-shadow: 0 2px 8px rgba(244,110,26,.16); }
.order-hero h1 { margin: 4px 0; }
.order-products-card, .order-page .order-totals, .order-page .order-pay { box-shadow: var(--shadow-sm, 0 6px 18px rgba(0,0,0,.05)); }
.order-products-head, .order-page .order-shop-head { background: #fcfcfd; }
.order-page .order-shop-avatar { background: linear-gradient(135deg, #ff7a2f, #f44e1a); box-shadow: 0 2px 6px rgba(244,110,26,.28); }
.order-page .order-item { transition: background var(--dur) var(--ease); }
.order-page .order-item:hover { background: #fafafa; }
.order-side { gap: 16px; }
.order-side-head strong::before { content: ""; display: inline-block; width: 4px; height: 14px; border-radius: 2px;
  background: var(--brand); margin-right: 8px; vertical-align: -2px; }
.order-page .order-total-row { border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.order-page .order-total-row.is-grand { border-bottom: 0; }
.order-page .order-total-row.is-grand strong { font-size: 36px; letter-spacing: -.02em; }
.order-page .order-total-row.is-grand em { display: block; }
.order-submit { background: linear-gradient(135deg, #ff7a2f, #f44e1a); border: 0;
  box-shadow: 0 8px 22px rgba(244,110,26,.32); transition: all var(--dur) var(--ease); }
.order-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(244,110,26,.4); }
.order-page .order-terms { background: var(--bg-soft); border-radius: var(--r-md); padding: 10px 12px; }

/* ---------- 收银台：账单地址面板 / 钱包确认弹窗（对齐原站 payMoney） ---------- */
.pay-main-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pay-billing-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.pay-billing-panel .pay-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.pay-add-btn { border: 1px dashed var(--ink-300); border-radius: var(--r-pill); background: #fff;
  padding: 5px 14px; font-size: 11.5px; font-weight: 700; color: var(--ink-700); cursor: pointer; }
.pay-add-btn:hover { border-color: var(--brand); color: var(--accent-press); }
.pay-addr-list { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 20px; }
.pay-addr { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: #fff; cursor: pointer; transition: all var(--dur) var(--ease); }
.pay-addr:hover { border-color: var(--ink-300); }
.pay-addr.is-selected { border-color: var(--brand); background: var(--accent-wash); }
.pay-addr input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.pay-addr-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pay-addr-copy strong { font-size: 13px; }
.pay-addr-copy strong em { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-press); background: #fff; border-radius: var(--r-pill); padding: 2px 8px; margin-left: 8px; }
.pay-addr-copy > span { font-size: 12px; color: var(--text-muted); }
.pay-addr-copy .mono { font-size: 11px; color: var(--text-faint); }
.pay-addr-form { padding: 16px 22px 20px; }
.pay-addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.pay-addr-grid label { display: flex; flex-direction: column; gap: 4px; }
.pay-addr-grid label > span { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.pay-addr-grid .input { height: 38px; font-size: 13px; }
.pay-addr-default { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.pay-addr-default input { accent-color: var(--brand); }
.pay-addr-error { margin-top: 10px; font-size: 12px; color: #c02929; }
.pay-addr-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.pay-modal-dialog { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-lg);
  padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.pay-modal-kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pay-modal-dialog h2 { font-family: var(--font-display); font-size: var(--fs-xl); margin: 8px 0 14px; }
.pay-modal-summary { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pay-modal-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--text-muted); }
.pay-modal-row strong { color: var(--ink-900); }
.pay-modal-row.is-total { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.pay-modal-row.is-total strong { font-family: var(--font-display); font-size: var(--fs-2xl); }
.pay-modal-note { font-size: 12px; color: var(--text-faint); line-height: 1.7; margin-top: 12px; }
.pay-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@media (max-width: 560px) { .pay-addr-grid { grid-template-columns: 1fr; } .pay-modal { padding: 12px; } }

/* ============================================================
   第五批（2026-11-06）：详情页履约块收紧 / 收银台排版重做
   ============================================================ */

/* ---------- 详情页：价格行右侧操作图标（Refresh / Share / Source） ---------- */
.d-icon-btn { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted);
  cursor: pointer; text-decoration: none; transition: all var(--dur) var(--ease); }
.d-icon-btn svg { width: 14px; height: 14px; }
.d-icon-btn:hover { border-color: var(--brand); color: var(--accent-press); background: var(--accent-wash); }
.d-icon-btn:disabled { cursor: default; }
.d-icon-btn.is-busy { border-color: var(--brand); color: var(--accent-press); background: var(--accent-wash); }
.d-icon-btn.is-busy svg { animation: dspin .9s linear infinite; }
@keyframes dspin { to { transform: rotate(360deg); } }

/* ---------- 详情页：处理时效提示 + 履约块压缩（用户反馈「占位太大」） ---------- */
.detail-page .d-processing { display: flex; align-items: flex-start; gap: 6px; margin-top: -2px;
  font-size: 11.5px; line-height: 1.45; color: var(--text-muted); }
.detail-page .d-processing svg { width: 12px; height: 12px; flex: none; margin-top: 2px; color: var(--text-faint); }
.detail-page .d-fulfill { padding: 10px 13px; border-radius: var(--r-md); }
.detail-page .d-fulfill-head { margin-bottom: 4px; align-items: center; }
.detail-page .d-fulfill-head strong { font-size: 12px; letter-spacing: .01em; }
.detail-page .d-fulfill-head .tag { font-size: 9.5px; padding: 1px 8px; line-height: 1.7; }
.detail-page .d-fulfill-step { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; padding: 5px 0; }
.detail-page .d-fulfill-step > b { width: 18px; height: 18px; font-size: 9.5px; font-weight: 800;
  background: var(--accent-wash); color: var(--accent-press); border: 1px solid #ffd9c2; }
.detail-page .d-fulfill-step > span { min-width: 0; gap: 0; }
.detail-page .d-fulfill-step strong { font-size: 12px; line-height: 1.35; }
.detail-page .d-fulfill-step em { font-size: 10.5px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-page .d-fulfill-step > i { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-900); }
.detail-page .d-fulfill-step > i.is-later { padding-right: 0; background: transparent;
  color: var(--text-faint); font-weight: 600; }

/* ---------- 收银台：页头 ---------- */
.pay-page { padding: var(--sp-8) 0 var(--sp-16); }
.pay-container { max-width: 1200px; }
.pay-head { align-items: flex-end; gap: 20px; margin-bottom: var(--sp-5); padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line); }
.pay-head h1 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.01em; }
.pay-head p { max-width: 560px; margin-top: 6px; font-size: 12.5px; line-height: 1.6; }
.pay-total-card { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .05); }
.pay-total-card span { font-size: 10px; letter-spacing: .08em; }
.pay-total-card strong { font-size: 21px; margin: 0; color: var(--ink-900); letter-spacing: -.01em; }
.pay-total-card em { font-size: 10px; }

/* ---------- 收银台：两栏骨架 ---------- */
/* 旧版这里残留 max-width:880px + margin:auto，导致两栏被压窄、卡片文字挤成多行 */
.pay-layout { max-width: none; margin: 0; grid-template-columns: minmax(0, 1fr) 316px; gap: 20px; }
.pay-main-col { gap: 16px; }
.pay-billing-panel, .pay-methods-panel, .pay-summary { box-shadow: 0 1px 3px rgba(16, 24, 40, .045); }
.pay-panel-head { padding: 14px 20px; }
.pay-panel-head h2 { font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.pay-panel-head p { font-size: 11.5px; line-height: 1.5; }
.pay-billing-panel .pay-panel-head { padding: 14px 20px; }
.pay-addr-list { padding: 14px 20px 18px; gap: 8px; }
.pay-addr { padding: 11px 13px; border-radius: var(--r-md); gap: 10px; }
.pay-addr-copy strong { font-size: 12.5px; }
.pay-addr-copy > span { font-size: 11.5px; line-height: 1.45; }

/* ---------- 收银台：支付方式卡片（原来两列里文字被挤成三行） ---------- */
.pay-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 20px 20px; }
.pay-method { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: start;
  gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: #fff; }
.pay-method.is-wallet { grid-column: 1 / -1; background: #fffdfb; }
.pay-method.is-selected { background: var(--accent-wash); box-shadow: inset 0 0 0 1px rgba(244, 110, 26, .12); }
.pay-method-logo { width: 44px; height: 32px; border: 0; background: var(--bg-soft); align-self: center; }
.pay-method-logo:has(img) { border: 1px solid var(--line); background: #fff; }
.pay-method-logo img { max-width: 38px; max-height: 24px; }
.pay-method-logo b { font-size: 10px; }
.pay-method-copy { gap: 1px; min-width: 0; padding-right: 2px; overflow: hidden; }
.pay-method-copy strong { font-size: 12.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-method-copy em { font-size: 10px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-method-fee { margin-top: 1px; font-size: 10px; font-weight: 500; line-height: 1.4; color: var(--text-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-wallet-balance { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 10px;
  line-height: 1.4; font-weight: 500; color: var(--text-faint); white-space: nowrap; }
.pay-wallet-balance b { font-size: 10.5px; color: var(--accent-press); }
.pay-wallet-balance a { margin-left: 0; }
.pay-method-check { position: static; align-self: center; width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid var(--ink-300); background: #fff; color: transparent; font-size: 10px; line-height: 1;
  display: flex; align-items: center; justify-content: center; }
.pay-method.is-selected .pay-method-check { display: flex; background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 收银台：右侧汇总 ---------- */
.pay-summary { top: calc(var(--header-h) + 16px); }
.pay-summary-head { padding: 14px 20px; background: #fcfcfd; }
.pay-summary-head h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.pay-summary-head svg { width: 15px; height: 15px; color: var(--text-faint); }
.pay-summary-body { padding: 14px 20px 20px; }
.pay-summary-row { padding: 7px 0; font-size: 12.5px; }
.pay-summary-row strong { font-size: 12.5px; }
.pay-summary-row.is-total { margin-top: 6px; padding-top: 14px; }
.pay-summary-row.is-total strong { font-size: 28px; letter-spacing: -.02em; }
.pay-continue { height: 48px; margin-top: 16px; }
.pay-summary-body > p { margin-top: 9px; font-size: 10.5px; line-height: 1.5; }

@media (max-width: 760px) { .pay-method-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .pay-layout { grid-template-columns: 1fr; } .pay-summary { position: static; } }
@media (max-width: 640px) {
  .pay-head { padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
  .pay-addr-list, .pay-method-grid, .pay-summary-body { padding-left: 14px; padding-right: 14px; }
}

/* ============================================================
   第六批（2026-11-06）：详情页价格行操作图标 / 到手价可折叠
   ============================================================ */

/* ---------- 价格行：左金额 + 右操作图标（刷新 / 分享 / 原链接） ---------- */
.detail-page .d-price-block { padding: 10px 13px 10px 16px; gap: 10px; align-items: center;
  justify-content: space-between; flex-wrap: nowrap; }
.d-price-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.detail-page .d-price { line-height: 1.1; letter-spacing: -.02em; }
.detail-page .d-price-cny { white-space: nowrap; }
.d-price-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.detail-page .d-icon-btn { width: 30px; height: 30px; border-radius: 9px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.detail-page .d-icon-btn svg { width: 15px; height: 15px; }
.detail-page .d-icon-btn:hover { background: #fff; border-color: var(--brand); color: var(--accent-press);
  box-shadow: 0 2px 8px rgba(244, 110, 26, .16); }
.detail-page .d-icon-btn.is-busy { background: #fff; }

/* ---------- 到手价：默认只露合计，点击展开明细 ---------- */
.detail-page .d-cost { padding: 0; overflow: hidden; }
.d-cost-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 12px 15px; border: 0; background: transparent;
  font: inherit; text-align: left; cursor: pointer; transition: background var(--dur) var(--ease); }
.d-cost-head:hover { background: #fcfcfd; }
.d-cost-head .card-title { font-size: 13px; letter-spacing: .01em; }
.d-cost-head-right { display: flex; align-items: center; gap: 8px; flex: none; }
.d-cost-amount { display: inline-flex; align-items: baseline; gap: 7px; }
.d-cost-amount strong { font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.d-cost-amount em { font-style: normal; font-size: 10px; letter-spacing: .02em; color: var(--text-faint); white-space: nowrap; }
.d-cost-chevron { width: 15px; height: 15px; flex: none; color: var(--text-faint);
  transition: transform .24s var(--ease); }
.d-cost.is-open .d-cost-chevron { transform: rotate(180deg); color: var(--text-muted); }
.d-cost-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s var(--ease); }
.d-cost.is-open .d-cost-detail { grid-template-rows: 1fr; }
.d-cost-inner { overflow: hidden; padding: 0 15px; border-top: 1px solid transparent;
  transition: padding .24s var(--ease), border-color .24s var(--ease); }
.d-cost.is-open .d-cost-inner { padding: 4px 15px 11px; border-top-color: var(--line); }
.detail-page .d-cost .price-row { padding: 5px 0; font-size: 12px; }
.detail-page .d-cost .price-row .label { color: var(--text-muted); }
.detail-page .d-cost .price-row .value { font-size: 12px; }

@media (max-width: 520px) {
  .detail-page .d-price-block { padding: 9px 11px 9px 13px; }
  .detail-page .d-icon-btn { width: 28px; height: 28px; }
  .d-cost-amount strong { font-size: 18px; }
  .d-cost-amount em { display: none; }
}

/* ---------- 收银台：电话双框（区号 + 本地号码，对齐原站 billing-phone-row） ---------- */
.pay-phone-row { display: flex; gap: 8px; width: 100%; }
.pay-phone-row .input { min-width: 0; }
.pay-phone-dial { flex: none !important; width: 88px !important; }

/* ==================================================================
   支付结果页 /suc（第三方支付回跳落地页）
   项目设计语言：白底灰内容 + 彩色点缀；成功=清爽青 / 失败=红 / 校验中=琥珀
   ================================================================== */
.suc-page {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  background:
    radial-gradient(560px 300px at 12% -4%, var(--accent-wash), transparent 70%),
    radial-gradient(560px 300px at 88% -4%, var(--teal-wash), transparent 70%),
    var(--bg-soft);
}
.suc-shell {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: var(--sp-12) 0 var(--sp-16);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
}
.suc-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 48px 40px 40px;
  text-align: center;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
/* 卡片顶部 3px 状态条：成功青 / 失败红 / 校验中琥珀 */
.suc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-teal);
}
.suc-card.failed::before { background: var(--danger); }
.suc-card.pending::before { background: var(--warn); }
/* 状态图标：青圈对勾 / 红圈叉 / 琥珀转圈 */
.suc-mark {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-wash);
  box-shadow: 0 0 0 8px rgba(20, 184, 166, .08);
}
.suc-check { width: 44px; height: 44px; fill: none; stroke: var(--teal-press); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.suc-check path { stroke-dasharray: 42; stroke-dashoffset: 0; }
.suc-mark.failed { background: #FEE2E2; box-shadow: 0 0 0 8px rgba(239, 68, 68, .08); }
.suc-mark.failed .suc-check { display: none; }
.suc-mark.failed .suc-x { display: block; }
.suc-x { display: none; width: 34px; height: 34px; stroke: var(--danger); stroke-width: 4; stroke-linecap: round; }
.suc-mark.pending { background: #FEF3C7; box-shadow: 0 0 0 8px rgba(245, 158, 11, .10); }
.suc-mark.pending .suc-check { display: none; }
.suc-mark.pending::before {
  content: "";
  position: absolute;
  width: 40px; height: 40px;
  border: 3px solid rgba(245, 158, 11, .22);
  border-top-color: var(--warn);
  border-radius: 50%;
  animation: suc-spin .8s linear infinite;
}
@keyframes suc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .suc-mark:not(.pending) { animation: suc-pop .5s var(--ease-bounce) both; }
  .suc-mark:not(.pending) .suc-check path { animation: suc-draw .7s .15s var(--ease) both; }
}
@keyframes suc-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes suc-draw { from { stroke-dashoffset: 42; } to { stroke-dashoffset: 0; } }
/* 文案 */
.suc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: var(--r-pill);
  color: var(--teal-press);
  background: var(--teal-wash);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.suc-kicker.failed { color: var(--danger); background: #FEE2E2; }
.suc-kicker.pending { color: #B45309; background: #FEF3C7; }
.suc-title { margin: 0; color: var(--ink-900); font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.15; }
.suc-title.failed { color: var(--danger); }
.suc-sub { margin: 12px auto 0; max-width: 440px; color: var(--text-muted); font-size: var(--fs-base); line-height: 1.7; }
/* 按钮：主按钮回订单页（橙 CTA），失败态加 Back to Home（灰描边），移动端加 Return to App */
.suc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.suc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  min-height: 46px;
  padding: 0 22px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-700);
  background: var(--surface);
  text-decoration: none;
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.suc-link:hover { border-color: var(--ink-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.suc-link.primary { border: 0; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-brand); }
.suc-link.primary:hover { background: var(--grad-brand); box-shadow: 0 10px 28px rgba(255, 106, 0, .32); }
.suc-link.app { border-color: rgba(20, 184, 166, .35); color: var(--teal-press); background: var(--teal-wash); }
.suc-link.app.is-busy { opacity: .6; pointer-events: none; }
.suc-tip { display: flex; align-items: flex-start; gap: 8px; margin: 20px auto 0; max-width: 420px; padding: 10px 14px; border: 1px dashed rgba(20, 184, 166, .4); border-radius: var(--r-md); background: rgba(20, 184, 166, .05); color: var(--ink-600); font-size: var(--fs-sm); line-height: 1.65; text-align: left; }
.suc-tip .suc-tip-ico { flex: none; margin-top: 2px; color: var(--teal-press); }
/* 订单快捷入口下的一行灰字 */
.suc-order-note { margin: 16px 0 0; color: var(--text-faint); font-size: var(--fs-xs); }
/* 响应式 */
@media (max-width: 640px) {
  .suc-shell { width: min(100% - 24px, 560px); padding: var(--sp-8) 0 var(--sp-12); }
  .suc-card { padding: 36px 20px 30px; }
  .suc-mark { width: 72px; height: 72px; }
  .suc-check { width: 36px; height: 36px; }
  .suc-title { font-size: var(--fs-2xl); }
  .suc-actions { display: grid; grid-template-columns: 1fr; }
  .suc-link { width: 100%; }
}
/* 移动端（is-mobile 由 JS 判定）：Return to App 实心橙置顶、View Orders 描边 */
/* 移动端卡片贴顶（结果页信息少，居中会显得空） */
.suc-page.is-mobile .suc-shell { place-items: start center; padding-top: var(--sp-6); }
.suc-page.is-mobile .suc-card { padding: 36px 20px 30px; }
.suc-page.is-mobile .suc-actions { gap: 10px; margin-top: 24px; }
.suc-page.is-mobile .suc-link { min-height: 48px; font-size: var(--fs-md); border-radius: var(--r-md); }
.suc-page.is-mobile .suc-link.app { order: -1; border: 0; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-brand); }
.suc-page.is-mobile .suc-link.primary { border: var(--bw) solid var(--line); color: var(--ink-700); background: var(--surface); box-shadow: none; }
.suc-page.is-mobile .suc-link.primary:hover { box-shadow: none; }
/* 结果页不显示悬浮侧栏 */
body.route-suc .float-side { display: none !important; }

/* ---------- 用户中心对齐补样式（第十一批） ---------- */
/* 仓库待提交行 */
.wh-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.wh-qc { flex: none; width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-muted); }
.wh-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* 排练「已选 / 提交」条：跟列表一起走，不再 sticky 悬浮盖住商品卡 */
.wh-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; position: static; }
.wh-actions-facts { display: flex; gap: 24px; }
.wh-actions-facts > div { display: flex; flex-direction: column; gap: 2px; }
.wh-actions-btns { display: flex; gap: 10px; }
/* 券卡：状态徽章 + Use 按钮同列 */
.coupon-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; padding-right: 12px; }
/* 钱包流水状态色 */
.table .is-pending { color: var(--warn); }
.table .is-failed { color: var(--danger); }
.table .is-cancelled { color: var(--text-faint); }
@media (max-width: 640px) {
  .wh-actions { flex-direction: column; align-items: stretch; }
  .wh-actions-btns { display: grid; grid-template-columns: 1fr 1fr; }
}
.coupon-actions .coupon-badge { position: static; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wallet-date { width: 150px; flex: none; }
@media (max-width: 640px) { .wallet-date { width: calc(50% - 16px); } }
/* 券卡：状态徽章与「去使用」不抢位；排序标签不换行 */
.coupon-actions { align-self: center; position: relative; z-index: 1; }
.coupon-actions .btn { white-space: nowrap; }
.sort-field { white-space: nowrap; }
.sort-field > span { white-space: nowrap; }

/* ==================================================================
   我的账户 · 设置区（对齐原站 ucenter top-tabs）
   Profile / Shipping Address / Account Safety / Billing / Withdrawal
   ================================================================== */
.settings-page { gap: var(--sp-4); }
.settings-head { display: flex; flex-direction: column; gap: 4px; }
.settings-head-meta { color: var(--text-faint); }

.settings-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 6px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.settings-tab {
  flex: 0 1 auto; height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-md);
  background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 700;
  white-space: nowrap; cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.settings-tab:hover { color: var(--ink-900); background: var(--bg-soft); }
.settings-tab.is-active { background: var(--ink-900); color: #fff; }
/* 窄屏 / 长文案语言（德语 Rechnungsadresse der Kreditkarte 这类）不再横向拖动：
   两列网格，最后一条独占一行，任何语言都能一眼看全 */
@media (max-width: 900px) {
  .settings-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 6px; }
  .settings-tab {
    width: 100%; height: auto; min-height: 44px; padding: 8px 10px;
    display: inline-flex; align-items: center; justify-content: center;
    white-space: normal; text-align: center; line-height: 1.3; font-size: 12.5px;
  }
  .settings-tab:last-child:nth-child(odd) { grid-column: auto; }
}

.settings-block {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.settings-block .block-head { margin-bottom: 0; }

/* Profile */
.profile-avatar-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.settings-avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-press);
  font-size: 20px; font-weight: 800; letter-spacing: .02em;
}
.settings-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-copy { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.profile-avatar-copy .is-ok { color: var(--teal-press); }
.profile-avatar-copy .is-err { color: var(--danger); }
.btn.is-busy { opacity: .7; pointer-events: none; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field-full { grid-column: 1 / -1; }
.field-check { display: flex; align-items: flex-end; }
.field-hint { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 2px; }
.field-error { font-size: var(--fs-xs); color: var(--danger); margin-top: 2px; }
.input.is-invalid { border-color: var(--danger); }
.gender-row { display: flex; align-items: center; gap: 18px; height: 42px; }

/* iOS Safari 的 input[type=date] 带固有最小宽度，会把 grid 的 1fr 列撑到比
   主容器还宽（「我的账户」出生日期那一行爆宽）。以下规则只作用于本页：
   列宽锁成 minmax(0,1fr)、子项允许收缩、原生日期控件去掉固有外观后按 100% 排版。
   不碰 .input / .field 的全局定义，其它页面表单不受影响。 */
.settings-page .settings-grid { min-width: 0; }
.settings-page .settings-grid > .field { min-width: 0; max-width: 100%; }
.settings-page .input[type="date"] {
  display: block; width: 100%; min-width: 0; max-width: 100%;
  box-sizing: border-box; -webkit-appearance: none; appearance: none;
}
.settings-page .input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.settings-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* 地址表格 */
.table-wrap { overflow-x: auto; border: var(--bw) solid var(--line); border-radius: var(--r-md); }
.settings-table { min-width: 660px; }
.settings-table th { white-space: nowrap; }
.settings-table .cell-strong { font-weight: 700; color: var(--ink-900); }
.settings-table .cell-action { text-align: right; width: 96px; white-space: nowrap; }
.settings-table .is-empty { text-align: center; color: var(--text-faint); padding: 28px 0; }
.settings-table .tag { margin-left: 6px; }
.btn-link.danger { color: var(--danger); }

/* Account Safety */
.safety-body { display: flex; flex-direction: column; gap: 8px; }
.safety-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }

/* Withdrawal */
.withdraw-hero { display: flex; flex-direction: column; gap: 6px; padding-bottom: var(--sp-4); border-bottom: 1px dashed var(--line); }
.withdraw-kicker { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-press); }
.withdraw-hero h2 { font-family: var(--font-display); font-size: var(--fs-xl); }
.withdraw-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.withdraw-rules { margin: 4px 0 0; padding-left: 18px; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.8; }
.withdraw-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--sp-4); align-items: start; }
/* min-width:0 必须有：明细表带 min-width，不加会把 grid 撑到表格宽度，移动端直接撑破 */
.withdraw-card { min-width: 0; padding: var(--sp-4); background: var(--bg-soft); border: var(--bw) solid var(--line); border-radius: var(--r-md); }
.withdraw-card h3 { font-family: var(--font-display); font-size: var(--fs-base); }
.withdraw-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 0; }
.withdraw-account-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: var(--surface);
  border: var(--bw) solid var(--line); border-radius: var(--r-sm);
}
.withdraw-account-title { display: flex; align-items: center; gap: 8px; }
.withdraw-pill {
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--accent-wash); color: var(--accent-press);
}
.withdraw-account-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-muted); }
.withdraw-account-meta strong { color: var(--ink-900); font-weight: 600; }
.withdraw-account-item .btn-link { flex: none; white-space: nowrap; }
.withdraw-method-list { display: flex; flex-direction: column; gap: 10px; }
.withdraw-method-list article {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-sm);
}
.withdraw-method-list span { font-size: var(--fs-xs); color: var(--text-muted); }

/* 弹窗 */
.settings-modal { max-width: 620px; margin: 8vh auto 0; max-height: 84vh; overflow-y: auto; }
.settings-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.settings-modal-head strong { font-family: var(--font-display); font-size: var(--fs-lg); }
.settings-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--sp-5); }
.pwd-hints {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  font-size: var(--fs-xs); color: var(--text-faint);
}
.pwd-hints li::before { content: "·"; margin-right: 6px; }
.pwd-hints li.is-ok { color: var(--teal-press); }
.settings-guest { display: flex; flex-direction: column; align-items: flex-start; }

@media (max-width: 900px) {
  .withdraw-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .settings-block { padding: var(--sp-4); gap: var(--sp-3); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-tab { height: 34px; padding: 0 12px; font-size: var(--fs-xs); }
  .settings-modal { margin: 4vh auto 0; max-height: 90vh; }
  .pwd-hints { grid-template-columns: 1fr; }
}

/* ============================================================
   账户中心 · 第十三批（收藏 / 历史 / 消息 / 订单 / 排练）
   ============================================================ */

/* ---- 确认弹窗（替代原生 confirm） ---- */
.confirm-modal {
  max-width: 400px; display: grid; grid-template-columns: 38px minmax(0,1fr);
  gap: 4px 14px; align-items: start;
}
.confirm-icon {
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-press);
}
.confirm-icon svg { width: 19px; height: 19px; }
.confirm-icon.is-danger { background: #FEF2F2; color: var(--danger); }
.confirm-copy { padding-top: 2px; }
.confirm-title { display: block; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; }
.confirm-body { margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }
.confirm-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---- 危险操作按钮 ---- */
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; border-color: #DC2626; }
.btn-danger-soft { background: #fff; border-color: rgba(239,68,68,.32); color: var(--danger); }

/* ---- 转排练重要提醒（仓库订单页，二次确认后才提交） ---- */
.rh-modal { width: min(520px, calc(100vw - 28px)); max-width: 520px; }
.rh-alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid #FBD9A5; border-radius: var(--r-md); background: #FFF8EC;
}
.rh-alert-icon {
  flex: none; width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center; background: #FCEFD6; color: #B45309;
}
.rh-alert-icon svg { width: 18px; height: 18px; }
.rh-alert-copy { min-width: 0; }
.rh-title { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #8A4B0B; }
.rh-sub { margin: 3px 0 0; font-size: 12px; line-height: 1.5; color: #96601A; }
.rh-list {
  margin: 14px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; line-height: 1.65; color: var(--ink-800);
}
.rh-list li { display: flex; align-items: flex-start; gap: 9px; }
.rh-num {
  flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-press);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.rh-text { min-width: 0; }
.rh-fee {
  margin-top: 14px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 600;
}
.rh-fee strong { font-family: var(--font-display); font-size: 16px; font-variant-numeric: tabular-nums; }
.rh-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 560px) {
  .rh-modal { margin: 8vh auto 0; padding: var(--sp-5); }
  .rh-list { font-size: 12.5px; gap: 8px; }
  .rh-actions { flex-direction: column-reverse; }
  .rh-actions .btn { width: 100%; }
}
.btn-danger-soft:hover:not(:disabled) { background: #FEF2F2; border-color: var(--danger); color: var(--danger); }
.btn-danger-soft:disabled { opacity: .45; cursor: not-allowed; }
.btn-msg { background: #16A34A; border-color: #16A34A; color: #fff; padding: 0 12px; height: 26px; font-size: 11px; font-weight: 700; }
.btn-msg:hover { background: #15803D; border-color: #15803D; }
/* 留言未读角标（原站 .order-sku-message-unread-badge）：只在该 SKU 有未读客服消息时出现，
   点开留言弹窗后立即清零；>99 显示 99+ */
.btn-msg.has-badge { position: relative; overflow: visible; }
.msg-unread-badge {
  position: absolute; top: -9px; right: -9px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 19px; padding: 0 5px;
  border: 1px solid #fff; border-radius: 6px;
  background: linear-gradient(135deg, #FF7A12, #FF3D57);
  box-shadow: 0 4px 10px rgba(255, 61, 87, .28);
  color: #fff; font-size: 10px; font-weight: 800; line-height: 1;
  white-space: nowrap; pointer-events: none;
}

/* ---- 订单卡片（对齐原站 buildOrderCard 的结构） ---- */
.order-card-no { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--ink-800); letter-spacing: .01em; }
.order-sku-spec { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.order-weight-line { font-size: 11.5px; color: var(--text-faint); }
.order-weight-line strong { color: var(--ink-700); font-weight: 600; }
.order-sku-note { font-size: 11.5px; color: var(--text-muted); line-height: 1.55; }
.order-sku-note em { font-style: normal; color: var(--text-faint); margin-right: 4px; }
.order-sku-track em { font-style: normal; color: var(--text-faint); }
.order-sku-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.order-sku-label { font-size: 10.5px; color: var(--text-faint); letter-spacing: .02em; }
.order-sku-price { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; color: var(--accent-press); font-variant-numeric: tabular-nums; }
.order-sku-qty { font-size: 12.5px; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.order-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-soft);
}
.order-card-total { font-size: var(--fs-sm); color: var(--text-muted); }
.order-card-total strong { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--accent-press); margin-left: 4px; font-variant-numeric: tabular-nums; }
.order-card-actions { display: flex; align-items: center; gap: 8px; }
/* 质检图条（原站 #Order/#Warehouse .order-qc-strip + .order-qc-images overflow-x:auto）：
   图片单行横滑，Share 固定在右侧。商品订单 / 仓库订单 / 排练三页共用同一套，
   QC 图再多也不会换行把卡片越撑越高 */
.order-qc-strip {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
  gap: 8px; width: 100%; min-width: 0; margin-top: 2px; overflow: hidden;
}
.order-qc-scroll {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 7px;
  min-width: 0; width: 100%; overflow-x: auto; overflow-y: hidden;
  padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}
.order-qc-scroll::-webkit-scrollbar { height: 6px; }
.order-qc-scroll::-webkit-scrollbar-track { background: var(--bg-muted); border-radius: 999px; }
.order-qc-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.order-qc-scroll .order-qc-thumb { flex: 0 0 46px; width: 46px; height: 46px; }
.order-qc-strip > .order-qc-share-btn { flex: none; align-self: center; height: 46px; }
.order-qc-thumb { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-muted); display: block; }
.order-qc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.order-qc-thumb:hover img { transform: scale(1.06); }

/* 商品状态徽章：与原站 skuStatusColor 同色系（未付/已付/已购/到仓/质检/退单） */
.order-sku-status.is-st-1 { background: #FEF3C7; color: #B45309; }
.order-sku-status.is-st-2 { background: #DBEAFE; color: #1D4ED8; }
.order-sku-status.is-st-3 { background: #EDE9FE; color: #6D28D9; }
.order-sku-status.is-st-4 { background: var(--teal-wash); color: var(--teal-press); }
.order-sku-status.is-st-5 { background: var(--accent-wash); color: var(--accent-press); }
.order-sku-status.is-st-6 { background: #FEF2F2; color: #B91C1C; }
.order-sku-status.is-st-9 { background: var(--bg-muted); color: var(--ink-600); }

.order-card-head .order-sku-status { flex: none; }

/* ---- 排练（仓库） ---- */
.wh-fee {
  display: inline-flex; align-items: baseline; gap: 6px; align-self: flex-start;
  padding: 7px 14px; border-radius: 999px; background: var(--accent-wash);
  font-size: var(--fs-sm); color: var(--accent-press);
}
.wh-fee strong { font-family: var(--font-display); font-size: var(--fs-md); }
.wh-selectall { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); color: var(--text-muted); }
.wh-selectall input { accent-color: var(--accent); width: 15px; height: 15px; }
.wh-card-select { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; min-width: 0; }
.wh-card-select input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.wh-card-select .order-card-no { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
.wh-card-select.is-on .order-card-no { color: var(--accent-press); }
/* 重量 + 尺寸同一行（原站 #Order/#Warehouse .order-weight-lines）：
   三页共用，窄屏可横滑，不拆成两行把卡片撑高。尺寸行只有 QC 打包（仓库）页输出 */
.order-weight-lines {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 12px;
  min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden;
  padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.order-weight-lines::-webkit-scrollbar { height: 6px; }
.order-weight-lines::-webkit-scrollbar-track { background: var(--bg-muted); border-radius: 999px; }
.order-weight-lines::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.order-weight-lines .order-weight-line { flex: 0 0 auto; white-space: nowrap; font-size: 11.5px; color: var(--text-muted); }
.order-weight-lines .order-weight-line strong { color: var(--ink-700); }
.order-dimension-line { display: inline-flex; align-items: baseline; gap: 4px; }
.wh-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft);
}
.wh-actions-facts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-muted); }
.wh-actions-facts strong { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.wh-weight { color: var(--danger) !important; }
.wh-actions-btns { display: flex; align-items: center; gap: 10px; }

/* ---- 排练链路：四步说明条 + 服务费说明 ---- */
.rh-steps { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.rh-step {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 4px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 11.5px; color: var(--text-muted); line-height: 1.4;
}
.rh-step b {
  display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none;
  border-radius: 999px; background: var(--bg-muted); color: var(--ink-600);
  font-size: 10px; font-weight: 700; line-height: 1;
}
.rh-step.is-on { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-press); }
.rh-step.is-on b { background: var(--accent); color: #fff; }
.wh-fee { flex-wrap: wrap; max-width: 100%; row-gap: 2px; }
.wh-fee-note { font-size: 11px; font-weight: 400; color: var(--text-muted); }

/* ---- 排练包裹（待审核=组装中 / 审核完成=已回填重量尺寸） ---- */
.rhp .waybill-body { gap: 10px; }
.rhp-wait {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid #FED7AA; border-radius: var(--r-md); background: #FFF7ED;
}
.rhp-wait-icon { flex: none; margin-top: 1px; color: #EA580C; }
.rhp-wait-copy strong { display: block; margin-bottom: 3px; font-size: 12.5px; color: #9A3412; }
.rhp-wait-copy p { margin: 0; font-size: 11.5px; line-height: 1.55; color: #9A3412; }
.rhp-wait-note { margin-top: 4px !important; font-weight: 600; }
.rhp-facts strong { font-size: 12.5px; }
.rhp-foot { align-items: center; justify-content: space-between; }
.rhp-foot-note { flex: 1 1 240px; font-size: 11px; line-height: 1.5; color: var(--text-faint); }
.rhp-foot-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
@media (max-width: 720px) {
  .rhp-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rhp-foot-btns { width: 100%; margin-left: 0; }
  .rhp-foot-btns .btn { flex: 1 1 auto; }
}

/* ---- 物流 / 排练包裹卡（对齐原站 logistics-card 的数据块顺序） ---- */
.wlcard { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.wlcard-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.wlcard-head-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wlcard-order { font-size: 12.5px; color: var(--text-muted); }
.wlcard-order strong { color: var(--ink-900); font-weight: 700; }
.wlcard-sub { font-size: 11px; color: var(--text-faint); }
.wlcard-head-side { display: flex; align-items: center; gap: 10px; flex: none; }
.wlcard-head-note { font-size: 11px; color: var(--text-muted); text-align: right; }
.wlcard-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.wlcard-skus-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.wlcard-skus-head.is-collapsible { align-items: center; }
/* 商品超过 2 件时标题行是折叠开关；收起仍保留首件完整信息，这里只提示剩余件数 */
.wlcard-skus-toggle {
  display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; width: 100%;
  margin: 0; padding: 0; background: none; border: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer; border-radius: var(--r-sm);
}
.wlcard-skus-toggle:hover .wlcard-skus-title { color: var(--teal-press); }
.wlcard-skus-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wlcard-skus-hidden {
  flex: none; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; line-height: 1.5;
  color: var(--accent-press); background: var(--accent-wash);
}
/* 折叠条：首件下方一行，明确「还有 N 件 / 收起」，避免商品区看起来凭空少了内容 */
.wlcard-skus-more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin: -2px 0 0; padding: 7px 10px;
  border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--bg-soft);
  font-size: 11.5px; font-weight: 600; color: var(--teal-press); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.wlcard-skus-more:hover { border-color: var(--teal); background: #fff; }
.wlcard-skus-more:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wlcard-skus-chevron { flex: none; color: var(--ink-400); transition: transform .18s ease; }
.wlcard-skus-chevron.is-open { transform: rotate(180deg); }
.wlcard-skus-title { font-size: 12px; font-weight: 700; color: var(--ink-900); }
.wlcard-skus { display: flex; flex-direction: column; gap: 10px; }
.wlcard-sku {
  display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: start;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line);
}
.wlcard-sku:last-child { padding-bottom: 0; border-bottom: 0; }
.wlcard-sku-img { width: 56px; height: 56px; border-radius: var(--r-md); overflow: hidden; background: var(--bg-muted); display: block; }
.wlcard-sku-img img { width: 100%; height: 100%; object-fit: cover; }
.wlcard-sku-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wlcard-sku-title { font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--ink-900); text-decoration: none; }
.wlcard-sku-title:hover { color: var(--accent-press); }
.wlcard-sku-attr { font-size: 11px; color: var(--text-faint); }
.wlcard-sku-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.wlcard-sku-msg {
  margin: 0; padding: 4px 8px; border-left: 2px solid var(--ink-300); border-radius: 0 6px 6px 0;
  background: var(--bg-soft); font-size: 11px; line-height: 1.5; color: var(--text-muted);
}
.wlcard-sku-msg em { font-style: normal; font-weight: 700; color: var(--ink-700); }
.wlcard-qc { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 132px; }
.wlcard-qc-thumb {
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: var(--bg-muted); cursor: zoom-in;
}
.wlcard-qc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wlcard-address { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.55; color: var(--text-muted); }
.wlcard-address-label { flex: none; color: var(--text-faint); }
.wlcard-address-text { min-width: 0; word-break: break-word; }
.wlcard-metrics {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
/* 包裹照片常驻展开（不随商品折叠）：标题 + 缩略图直接可见 */
.wlcard-photos-block { display: flex; flex-direction: column; gap: 6px; }
.wlcard-photos-label { font-size: 11px; font-weight: 700; color: var(--ink-700); }
.wlcard-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.wlcard-tracking {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-soft); font-size: 11.5px; color: var(--text-muted);
}
.wlcard-tracking strong { color: var(--ink-900); font-weight: 700; }
.wlcard-tracking .btn { margin-left: auto; }
.wlcard-channel { color: var(--text-faint); }
.wlcard-addon {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-md);
}
.wlcard-addon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-muted); }
.wlcard-addon-name { font-weight: 700; color: var(--ink-900); }
.wlcard-addon-fee strong { color: var(--ink-900); }
.wlcard-addon-items { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--text-muted); }
.wlcard-addon-item strong { color: var(--ink-900); }
.wlcard-addon-item .x { color: var(--text-faint); }
.wlcard-note { font-size: 11.5px; line-height: 1.55; color: var(--text-muted); }
.wlcard-fees {
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft);
}
.wlcard-fee-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-muted); }
.wlcard-fee-row strong { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.wlcard-fee-row.is-total { margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-900); }
.wlcard-fee-row.is-total strong { color: var(--accent-press); font-size: 13px; }
.wlcard-fee-row.is-discount strong { color: var(--teal-press, #047857); }
/* 费用明细默认收起，点标题才展开（应付金额始终可见） */
.wlcard-fees-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 0; padding: 0; background: none; border: 0;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-700);
  text-align: left; cursor: pointer; border-radius: var(--r-sm);
}
.wlcard-fees-toggle:hover { color: var(--teal-press); }
.wlcard-fees-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* 收起态：应付行不画分隔线，紧跟标题行 */
.wlcard-fee-row.is-total.is-flat { margin-top: 0; padding-top: 0; border-top: 0; }

/* 待付款卡的优惠券模块（原站 logistics-pending-coupon） */
.lgn-coupon {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md, 10px); background: var(--bg-soft);
}
.lgn-coupon.is-applied { border-style: solid; border-color: var(--teal-press, #0D9488); background: var(--teal-wash, #CCFBF1); }
/* 百分比券仍用紫色，和「我的优惠券」的视觉语言保持一致 */
.lgn-coupon.is-applied.is-percent { border-color: #7C3AED; background: #F5F3FF; }
.lgn-coupon.is-applied.is-percent .lgn-coupon-copy > span { color: var(--grape-press, #6D28D9); }
.lgn-coupon.is-applied.is-percent .lgn-coupon-copy strong { color: var(--grape-press, #6D28D9); }
.lgn-coupon-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lgn-coupon-copy > span { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.lgn-coupon.is-applied .lgn-coupon-copy > span { color: var(--teal-press, #047857); }
.lgn-coupon-copy strong { font-size: 12px; color: var(--ink-900); line-height: 1.4; word-break: break-word; }
.lgn-coupon-copy small { font-size: 10.5px; color: var(--text-muted); line-height: 1.45; }
.lgn-coupon-actions { display: flex; gap: 8px; flex: none; }
.lgn-coupon-actions .btn { min-width: 112px; }
@media (max-width: 720px) {
  .lgn-coupon { flex-direction: column; }
  .lgn-coupon-actions { width: 100%; }
  .lgn-coupon-actions .btn { flex: 1 1 0; min-width: 0; }
}
.wlcard-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-top: 1px solid var(--line); background: var(--bg-soft);
}
.rhp-fee-note { font-size: 11px; font-weight: 700; color: var(--ink-700); }
@media (max-width: 720px) {
  .wlcard-sku { grid-template-columns: 48px minmax(0,1fr); }
  .wlcard-sku-img { width: 48px; height: 48px; }
  .wlcard-qc { grid-column: 2; justify-content: flex-start; max-width: none; }
  .wlcard-head { flex-wrap: wrap; row-gap: 6px; }
  .wlcard-head-side { width: 100%; justify-content: space-between; }
  .wlcard-head-note { text-align: left; }
  .wlcard-foot .btn { flex: 1 1 auto; }
  .rhp-foot-btns { width: 100%; margin-left: 0; }
}

@media (max-width: 720px) {
  .order-sku { grid-template-columns: 56px minmax(0,1fr); gap: 10px 12px; }
  .order-sku.is-pkg { grid-template-columns: 28px 56px minmax(0,1fr); }
  .order-sku-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .order-sku.is-pkg .order-sku-side { grid-column: 2 / -1; }
  /* 窄屏把「重量 / 尺寸」折成两行完整显示，避免尺寸数值被横滑容器裁掉；
     QC 图条不受影响，仍是单行横滑 */
  .order-weight-lines { flex-wrap: wrap; gap: 2px 12px; overflow: visible; padding-bottom: 0; }
  .order-sku-cell { align-items: flex-start; }
  .order-card-foot { align-items: flex-start; }
  .order-card-actions { width: 100%; justify-content: flex-end; }
  .wh-actions { flex-direction: column; align-items: stretch; }
  .wh-actions-btns { justify-content: flex-end; }
}

/* ---- 提现明细表（原站 withdraw-detail-section） ---- */
.withdraw-detail { grid-column: 1 / -1; }
.withdraw-detail-head { display: flex; flex-direction: column; gap: 2px; }
.withdraw-detail-head h3 { font-family: var(--font-display); font-size: var(--fs-base); }
.wd-table-wrap { margin-top: 12px; max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.wd-table { min-width: 620px; }
.wd-table th, .wd-table td { padding: 10px 12px; }
.wd-table th, .wd-table td { white-space: nowrap; }
.wd-table .is-empty { padding: 26px 16px; text-align: center; color: var(--text-faint); font-size: var(--fs-sm); }
.wd-table td.cell-strong { font-weight: 600; color: var(--ink-900); }
.wd-account { display: inline-block; max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.wd-amount { font-family: var(--font-display); font-weight: 700; color: var(--danger); font-variant-numeric: tabular-nums; }
.wd-status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.wd-status.is-pending { background: #FEF3C7; color: #B45309; }
.wd-status.is-ok { background: var(--teal-wash); color: var(--teal-press); }
.wd-status.is-no { background: #FEF2F2; color: #B91C1C; }

/* ============================================================
   订单 · 退货 / 退单状态 / QC 分享（原站 #returnModal、
   #orderReturnStatusModal、.order-qc-share-btn、openQcImage）
   ============================================================ */

/* ---- 商品行右侧动作 ---- */
.order-sku-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; max-width: 240px; }
.order-sku-btns .btn { height: 27px; padding: 0 9px; font-size: 11px; font-weight: 700; }
.btn-return { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-return:hover { background: var(--accent-press); border-color: var(--accent-press); }

/* ---- 质检图 + Share ---- */
.order-qc-thumb { padding: 0; cursor: zoom-in; }
.order-qc-share-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink-700); font-size: 11px; font-weight: 700; cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.order-qc-share-btn:hover { color: var(--accent-press); border-color: var(--brand); background: var(--accent-wash); }

/* ---- 退款运费（仅退单页） ---- */
.order-sku-return-info { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.order-sku-return-amount { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-800); font-variant-numeric: tabular-nums; }
.order-sku-return-amount.is-pending { color: #B45309; }
.order-sku-return-amount.is-refunded { color: var(--teal-press); }
.order-sku-return-amount.is-rejected { color: var(--danger); }
.order-sku-return-amount.is-returning { color: #1D4ED8; }

/* ---- 退货申请弹窗（#returnModal） ---- */
.return-modal { max-width: 560px; max-height: 88vh; overflow-y: auto; }
.return-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.return-head strong { font-family: var(--font-display); font-size: var(--fs-lg); }
.return-product { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }
.return-product > img, .return-product > .order-sku-ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: #fff; }
.return-product-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.return-product-title { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-800); line-height: 1.45; }
.return-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.return-textarea { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.55; resize: vertical; font-family: inherit; }
.return-check { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.5; cursor: pointer; }
.return-check input { margin-top: 2px; width: 16px; height: 16px; flex: none; }
.return-help { font-size: var(--fs-xs); color: var(--text-faint); margin: 0; line-height: 1.5; }
.return-notes { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.return-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); font-size: var(--fs-xs); line-height: 1.55; color: var(--ink-600); }
.return-note.is-warn { background: #FFF7ED; border-color: #FED7AA; color: #9A3412; }
.return-note-icon { display: grid; place-items: center; width: 16px; height: 16px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--ink-900); color: #fff; font-size: 10px; font-weight: 700; }
.return-note.is-warn .return-note-icon { background: #EA580C; }

/* 退款须知（有效期 5 天 + 物流费承担） */
.return-alert { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #FED7AA; border-radius: var(--r-md); background: #FFF7ED; }
.return-alert-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #9A3412; }
.return-alert-icon { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #EA580C; color: #fff; font-size: 10px; font-weight: 700; }
.return-alert-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; font-size: var(--fs-xs); line-height: 1.6; color: #9A3412; }
.return-alert-list li { position: relative; padding-left: 12px; }
.return-alert-list li::before { content: ''; position: absolute; left: 1px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #EA580C; }
.return-alert-meta { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed rgba(234, 88, 12, .35); font-size: 11.5px; line-height: 1.5; color: #9A3412; }
.return-alert-meta strong { color: #7C2D12; font-variant-numeric: tabular-nums; }
.return-alert-meta .order-qc-time-sep { margin: 0 3px; }

/* QC 时间行（卡片里，质检图下方） */
.order-qc-time { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.order-qc-time strong { color: var(--ink-700); font-weight: 600; }
.order-qc-time-sep { color: var(--text-faint); opacity: .65; }
.order-qc-time.is-expired, .order-qc-time.is-expired strong { color: var(--danger); }
.return-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---- 退单状态弹窗（#orderReturnStatusModal） ---- */
.return-status-modal { max-width: 520px; }
.return-status-body { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.return-status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.return-status-row:last-child { border-bottom: 0; }
.return-status-row > span { color: var(--text-faint); white-space: nowrap; }
.return-status-row > strong { font-weight: 600; color: var(--ink-800); text-align: right; line-height: 1.5; word-break: break-word; }
.return-status-row > strong.is-pending { color: #B45309; }
.return-status-row > strong.is-refunded { color: var(--teal-press); }
.return-status-row > strong.is-rejected { color: var(--danger); }
.return-status-row > strong.is-returning { color: #1D4ED8; }
.return-status-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-soft); }
.return-status-actions p { margin: 0; }

/* ---- QC 分享面板 ---- */
.qc-share-modal { max-width: 620px; max-height: 88vh; overflow-y: auto; }
.qc-share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qc-share-head strong { font-family: var(--font-display); font-size: var(--fs-lg); }
.qc-share-product { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }
.qc-share-thumb { display: block; width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; }
.qc-share-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qc-share-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qc-share-title { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-800); line-height: 1.45; }
.qc-share-section { margin-top: 16px; }
.qc-share-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.qc-share-label em { font-style: normal; color: var(--ink-600); letter-spacing: 0; text-transform: none; }
.qc-share-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.qc-share-photo { width: 96px; height: 96px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-muted); cursor: zoom-in; }
.qc-share-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.qc-share-photo:hover img { transform: scale(1.05); }
.qc-share-link { display: flex; gap: 8px; }
.qc-share-link .input { flex: 1; min-width: 0; }
.qc-share-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }

/* ---- QC 大图查看器（原站 openQcImage） ---- */
.qc-viewer { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 64px 24px 124px; background: #0A0C10; }
/* touch-action:none 必须挂在 stage 上：图片只覆盖自身时，手指落在空白处会
   被浏览器当成页面滚动/双指缩放，pointermove 收不到，捏合放大就失效。 */
.qc-viewer-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; touch-action: none; }
.qc-viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; touch-action: none; }
.qc-viewer-img.is-movable { cursor: grab; }
.qc-viewer-img.is-dragging { cursor: grabbing; }
.qc-viewer-bar { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qc-viewer-count { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; font-weight: 600; }
.qc-viewer-tools { display: flex; align-items: center; gap: 12px; }
.qc-viewer-link { color: #fff; font-size: 12px; opacity: .78; }
.qc-viewer-link:hover { opacity: 1; text-decoration: underline; }
.qc-viewer-close { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.qc-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.qc-viewer-nav:hover { background: rgba(255, 255, 255, .18); }
.qc-viewer-nav.is-prev { left: 24px; }
.qc-viewer-nav.is-next { right: 24px; }
.qc-viewer-bottom { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qc-viewer-thumbs { display: flex; gap: 8px; max-width: 100%; justify-content: center; overflow-x: auto; padding: 4px 0; }
.qc-viewer-thumb { width: 52px; height: 52px; flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #1A1D24; cursor: pointer; opacity: .6; }
.qc-viewer-thumb.is-active { border-color: var(--brand); opacity: 1; }
.qc-viewer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qc-viewer-toolbar { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.qc-viewer-tool { min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.qc-viewer-tool:hover { background: rgba(255, 255, 255, .14); }
.qc-viewer-tool.is-wide { padding: 0 10px; font-size: 12px; font-weight: 600; }
.qc-viewer-zoom { min-width: 46px; text-align: center; color: #fff; font-size: 12px; opacity: .85; }
.qc-viewer-sep { width: 1px; height: 16px; margin: 0 3px; background: rgba(255, 255, 255, .2); }

@media (max-width: 640px) {
  .order-sku-btns { max-width: none; justify-content: flex-start; }
  .return-modal, .return-status-modal, .qc-share-modal { margin: 4vh auto 0; max-height: 92vh; }
  .qc-share-link { flex-wrap: wrap; }
  .qc-share-link .btn { width: 100%; }
  .return-status-actions { flex-direction: column; align-items: flex-start; }
  .qc-viewer { padding: 56px 10px 132px; }
  .qc-viewer-bar { left: 12px; right: 12px; }
  .qc-viewer-bottom { left: 10px; right: 10px; bottom: 12px; gap: 8px; }
  .qc-viewer-thumb { width: 44px; height: 44px; }
  .qc-viewer-nav { width: 36px; height: 36px; font-size: 20px; }
  .qc-viewer-nav.is-prev { left: 6px; }
  .qc-viewer-nav.is-next { right: 6px; }
  .qc-viewer-thumbs { justify-content: flex-start; }
}


/* ============================================================
   QC 分享页（/qc?key=<分享码>，原站 qc.html → js/qc.j2.js）
   ============================================================ */
.qc-page-wrap { max-width: 1180px; padding-top: 44px; padding-bottom: 80px; }
.qc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.qc-head-copy .page-title { margin-top: 8px; }
.qc-head-actions { display: flex; align-items: center; gap: 10px; }
.qc-count { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-700); font-size: 12px; font-weight: 700; white-space: nowrap; }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.qc-tile { position: relative; padding: 0; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-muted); cursor: zoom-in; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.qc-tile:hover { border-color: var(--brand); box-shadow: 0 10px 28px rgba(15, 23, 42, .10); }
.qc-tile img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform var(--dur) var(--ease); }
.qc-tile:hover img { transform: scale(1.03); }
.qc-tile-index { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(9, 11, 15, .62); color: #fff; font-size: 11px; line-height: 1.6; }
.qc-tile.is-skeleton { cursor: default; background: linear-gradient(100deg, #F1F2F5 20%, #E7E9EE 40%, #F1F2F5 60%); background-size: 220% 100%; animation: qcShimmer 1.4s linear infinite; }
@keyframes qcShimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }
.qc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 72px 24px; border: 1px dashed var(--line); border-radius: 16px; background: #fff; color: var(--text-faint); text-align: center; }
.qc-empty svg { color: var(--ink-300); }
.qc-empty strong { color: var(--ink-800); font-size: 15px; }
.qc-empty span { font-size: var(--fs-sm); max-width: 380px; line-height: 1.6; }

@media (max-width: 640px) {
  .qc-page-wrap { padding-top: 26px; padding-bottom: 56px; }
  .qc-head { align-items: flex-start; gap: 12px; margin-bottom: 16px; }
  .qc-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
  .qc-tile { border-radius: 12px; }
  .qc-empty { padding: 52px 18px; }
}

/* ===== 仓库页批量打包（Orders → Warehouse）：工具栏 / 勾选 / 操作条 / 三步弹层 ===== */
.pkg-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft);
}
.pkg-checkall, .pkg-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-700); cursor: pointer; }
.pkg-checkall input, .pkg-pick input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.pkg-pick { font-weight: 500; color: var(--text-muted); margin-bottom: 2px; }
/* 卡片头：订单号吃掉剩余宽度，状态徽章顶到最右 */
.order-card-head .order-card-id { flex: 1 1 auto; }
/* 卡片头整单勾选的胶囊样式（.pkg-pick.is-head）已随排练页改版删除：
   订单仓库页按原站改成 SKU 行勾选，排练页按原站改成勾选 + 订单号同 label，两处都不再用它 */
/* SKU 行勾选：原站 .order-qc-packing-sku-select —— 每个 SKU 最左一颗 28×28 复选框，
   文案 sr-only；选中整行给浅橙渐变 + 左侧 3px 橙条，便于分辨哪些商品会进包裹 */
.pkg-pick.is-sku {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: 2px 0 0;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.pkg-pick.is-sku:hover { border-color: var(--accent); }
.pkg-pick.is-sku input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.order-sku.is-picked { background: linear-gradient(135deg, var(--accent-wash), transparent 65%); box-shadow: inset 3px 0 0 var(--accent); }
.order-sku.is-picked .pkg-pick.is-sku { border-color: var(--accent); background: var(--accent-wash); }
/* 窄屏：状态徽章另起一行靠右，订单号不被挤成竖排 */
@media (max-width: 640px) {
  .order-card-head { flex-wrap: wrap; row-gap: 8px; }
  .order-card-head-side { width: 100%; justify-content: flex-end; }
}
.pkg-count { font-size: 11.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.pkg-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 2px 10px rgba(24, 24, 27, .05);
}
.pkg-actions-facts { font-size: 12px; color: var(--text-muted); }
.pkg-actions-facts strong { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.pkg-actions-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.pkg-overlay { align-items: center; }
.pkg-modal {
  width: min(720px, calc(100vw - 32px)); max-height: min(88vh, 860px);
  display: flex; flex-direction: column; background: #fff;
}
.pkg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.pkg-title { margin: 2px 0 4px; font-family: var(--font-display); font-size: var(--fs-lg); }
.pkg-sub { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.pkg-body { padding: 16px 20px; overflow-y: auto; flex: 1 1 auto; }
.pkg-group { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
.pkg-group-head { padding: 9px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-800); }
.pkg-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: start; }
.pkg-item:first-of-type { border-top: 0; }
.pkg-item-img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-muted); }
.pkg-item-img.is-empty { display: grid; place-items: center; font-size: 10px; color: var(--text-faint); text-align: center; }
.pkg-item-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pkg-item-title { font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--ink-900); }
.pkg-item-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--text-muted); }
.pkg-item-remove { align-self: center; color: var(--danger, #DC2626); }
.pkg-empty { padding: 26px 12px; text-align: center; font-size: 12.5px; color: var(--text-faint); }
.pkg-addr-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-addr { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.pkg-addr.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); }
.pkg-addr input { margin-top: 3px; accent-color: var(--accent); }
.pkg-addr-name { font-size: 12.5px; font-weight: 700; color: var(--ink-900); }
.pkg-addr-line { font-size: 11.5px; color: var(--text-muted); line-height: 1.55; }
.pkg-add-addr { margin-top: 14px; }
.pkg-routes { display: flex; flex-direction: column; gap: 10px; }
.pkg-route { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.pkg-route.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); }
.pkg-route input { accent-color: var(--accent); }
.pkg-route-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pkg-route-main strong { font-size: 12.5px; color: var(--ink-900); }
.pkg-route-main small { font-size: 11.5px; color: var(--text-muted); }
.pkg-route-price { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; color: var(--accent-press); font-variant-numeric: tabular-nums; }
.pkg-done { padding: 12px 4px 4px; text-align: center; }
.pkg-done-mark { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-wash, #ECFDF5); color: var(--teal-press, #047857); font-size: 22px; font-weight: 700; }
.pkg-done h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: var(--fs-lg); }
.pkg-done p { margin: 4px 0; font-size: 12.5px; color: var(--text-muted); }
.pkg-done-no { font-family: var(--font-mono); color: var(--ink-800) !important; }
.pkg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.pkg-foot-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: var(--text-muted); }
.pkg-foot-facts strong { color: var(--ink-900); }
.pkg-foot-btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .pkg-modal { width: calc(100vw - 16px); max-height: 92vh; }
  .pkg-head { padding: 14px 14px 12px; }
  .pkg-body { padding: 12px 14px; }
  .pkg-foot { padding: 12px 14px; }
  .pkg-foot-btns { width: 100%; }
  .pkg-foot-btns .btn { flex: 1 1 auto; }
  .pkg-actions { flex-direction: column; align-items: stretch; }
  .pkg-actions-btns .btn { flex: 1 1 auto; }
}

/* ===== 提交包裹 ③：线路 / 增值服务 / 保险 / 费用明细 / 券 ===== */
.pkg-modal.is-wide { width: min(1000px, calc(100vw - 32px)); }
.pkg-modal-sm { width: min(600px, calc(100vw - 32px)); }
.pkg-overlay.is-stacked { z-index: calc(var(--z-sheet) + 20); }

.pkg-estimate { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.pkg-estimate-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pkg-estimate-side { position: sticky; top: 0; min-width: 0; }

.pkg-block { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: #fff; }
.pkg-block-head { margin-bottom: 7px; }
.pkg-block-title { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; color: var(--ink-900); }
.pkg-block-sub { margin: 0; font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.pkg-route-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pkg-route-body strong { font-size: 12.5px; color: var(--ink-900); }
.pkg-route-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pkg-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.pkg-route.is-active .pkg-chip { background: var(--accent-wash); border-color: transparent; color: var(--accent-press); }
/* 百分比券在提交弹层里也用紫色标出来（满减保持橙色体系） */
.pkg-chip.is-percent { background: var(--grape-wash); border-color: transparent; color: var(--grape-press); font-weight: 800; }
.pkg-coupon-kind {
  display: inline-flex; align-items: center; flex: none; min-height: 15px; padding: 2px 6px; margin-right: 4px;
  border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.1; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
  background: var(--bg-muted); color: var(--ink-600);
}
.pkg-coupon-kind.is-percent { background: var(--grape); color: #fff; }
.pkg-coupon-item.is-percent { border-color: #C4B5FD; }
.pkg-route-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.pkg-route-price strong { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; color: var(--accent-press); }
.pkg-route-price small { font-size: 10.5px; color: var(--text-faint); }

/* 增值服务：一行 2 个紧凑卡片（4 个服务从 4 行变 2 行，弹窗高度明显缩短）
   第一行：勾选框 + 名称；第二行：图片 + 单价 + 数量；小计见费用明细 / 提交栏 */
.pkg-prot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pkg-prot {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
  padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.pkg-prot.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-wash); background: #FFFDFB; }
.pkg-prot-check { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; cursor: pointer; }
.pkg-prot-check input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; flex: none; }
.pkg-prot-name {
  flex: 1 1 auto; min-width: 0; max-width: none; font-size: 11.5px; font-weight: 600;
  color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pkg-prot-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.pkg-prot-img { flex: none; width: 24px; height: 24px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-muted); }
.pkg-prot-img.is-empty { display: grid; place-items: center; font-size: 8px; color: var(--text-faint); text-align: center; }
.pkg-prot-price {
  flex: 1 1 auto; min-width: 0; margin-left: 0; font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.pkg-prot-price small { margin-left: 2px; font-size: 9.5px; color: var(--text-faint); }
.pkg-prot-sum { display: none; }

/* 数量控件：iOS Safari 对 font-size < 16px 的输入框聚焦时会整页放大，
   在 iPhone 上表现为「数字突然变得很大、看不清楚」。这里把字号固定到 16px
   并放宽到 30px 容纳两位数；模板已改用 type=text，这里仍顺手清掉 number 的原生
   spinner，兼容尚未刷新到新版的旧缓存。 */
.pkg-qty { flex: none; display: inline-flex; align-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pkg-qty button { width: 20px; height: 24px; border: 0; background: #fff; color: var(--ink-700); font-size: 13px; line-height: 1; cursor: pointer; }
.pkg-qty button:disabled { color: var(--ink-300); cursor: not-allowed; }
.pkg-qty input {
  width: 30px; height: 24px; border: 0; padding: 0; margin: 0; text-align: center;
  font-size: 16px; line-height: 1;
  appearance: none; -webkit-appearance: none; -moz-appearance: textfield;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-variant-numeric: tabular-nums; background: #fff; color: var(--ink-900);
}
.pkg-qty input::-webkit-outer-spin-button,
.pkg-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* iOS 会把 disabled input 的文字再压淡一层，未勾选时数量几乎看不见 */
.pkg-qty input:disabled { background: var(--bg-soft); color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); opacity: 1; }
.pkg-qty.is-off { opacity: .72; }

/* 桌面端：数量控件按可点击尺寸放大。
   默认那套 20px 按钮 + 30px 输入框是按手机屏幕定的，弹窗在宽屏拉到 1000px 后
   卡片变宽、控件还是原来那么小，减号/数字/加号挤成一条，几乎看不清。
   字号在两端都保持 16px：移动端避免 iOS 聚焦缩放，平板/桌面保持数字清晰。 */
@media (min-width: 769px) {
  .pkg-prot { padding: 9px 10px; gap: 6px; }
  .pkg-prot-name { font-size: 13px; }
  .pkg-prot-img { width: 30px; height: 30px; }
  .pkg-prot-price { font-size: 12.5px; }
  .pkg-prot-price small { margin-left: 3px; font-size: 10.5px; }
  .pkg-qty button { width: 26px; height: 28px; font-size: 14px; }
  .pkg-qty input { width: 36px; height: 28px; font-size: 16px; }
  /* 未勾选时不要浅到看不见 —— 客户得先知道这里能加数量 */
  .pkg-qty.is-off { opacity: .75; }
}

/* 保险 */
.pkg-ins-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 只剩重量赔付一个选项后按单列展示，不铺满整行 */
.pkg-ins-list.is-single { grid-template-columns: minmax(0, 420px); }
.pkg-ins {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; text-align: left; cursor: pointer;
}
.pkg-ins.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); }
.pkg-ins-mark { width: 14px; height: 14px; border: 1.5px solid var(--ink-300); border-radius: 50%; }
.pkg-ins.is-active .pkg-ins-mark { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, transparent 4px); }
.pkg-ins-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pkg-ins-title { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-900); }
.pkg-ins-sub { font-size: 10.5px; color: var(--text-muted); }
.pkg-ins-price { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--accent-press); font-variant-numeric: tabular-nums; }
.pkg-help {
  width: 15px; height: 15px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  display: inline-grid; place-items: center; font-size: 10px; color: var(--text-muted);
  cursor: help; background: #fff;
}

/* 费用明细卡 */
.pkg-fee-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  overflow: hidden; box-shadow: 0 2px 10px rgba(24, 24, 27, .05);
}
.pkg-fee-head {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px;
  background: linear-gradient(180deg, #FFF9F4, #fff); border-bottom: 1px solid var(--line);
}
.pkg-fee-head span { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.pkg-fee-head strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink-900); font-variant-numeric: tabular-nums; line-height: 1.2; }
.pkg-fee-head small { font-size: 11px; color: var(--text-faint); line-height: 1.45; }
.pkg-fee-rows { margin: 0; padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; }
.pkg-fee-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-muted); }
.pkg-fee-row dt { margin: 0; }
.pkg-fee-row dd { margin: 0; color: var(--ink-800); font-variant-numeric: tabular-nums; }
.pkg-fee-row.is-discount dd { color: var(--teal-press, #047857); font-weight: 600; }
.pkg-fee-row.is-total { margin-top: 4px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-900); }
.pkg-fee-row.is-total dd { font-family: var(--font-display); font-size: 15px; }

.pkg-coupon-box { padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--bg-soft); display: flex; flex-direction: column; gap: 9px; }
.pkg-coupon-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; font-size: 11.5px; }
.pkg-coupon-tag { flex: none; padding: 1px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text-muted); font-size: 10.5px; white-space: nowrap; }
.pkg-coupon-box .pkg-coupon-name { flex: 1 1 120px; min-width: 0; line-height: 1.45; word-break: break-word; }
.pkg-coupon-name.is-empty { color: var(--text-faint); }
.pkg-coupon-btns { display: flex; gap: 8px; }
.pkg-coupon-btns .btn { flex: 1 1 0; }

/* 券列表 */
.pkg-coupon-list { display: flex; flex-direction: column; gap: 9px; }
.pkg-coupon-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; text-align: left; cursor: pointer;
}
.pkg-coupon-item.is-static { cursor: default; }
.pkg-coupon-item:hover:not(.is-static):not(.is-disabled) { border-color: var(--accent); }
.pkg-coupon-item.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); }
.pkg-coupon-item.is-disabled { opacity: .55; }
.pkg-coupon-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pkg-coupon-item .pkg-coupon-name { font-size: 12.5px; font-weight: 700; color: var(--ink-900); }
.pkg-coupon-name code {
  margin-left: 6px; padding: 1px 6px; border-radius: 5px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
}
.pkg-coupon-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pkg-coupon-date { font-size: 10.5px; color: var(--text-faint); }
.pkg-coupon-save { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--teal-press, #047857); white-space: nowrap; }
.pkg-coupon-item.is-disabled .pkg-coupon-save { color: var(--text-faint); }

/* 兑换码 */
.pkg-redeem-form { display: flex; gap: 10px; }
.pkg-redeem-input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 13px; background: #fff; color: var(--ink-900);
}
.pkg-redeem-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); }
.pkg-redeem-hint { margin: 8px 0 14px; font-size: 11px; color: var(--text-faint); }
.pkg-redeem-error {
  margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-md);
  background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; font-size: 12px;
}
.pkg-redeem-ok {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: var(--r-md); background: var(--teal-wash, #CCFBF1);
}
.pkg-redeem-ok strong { font-size: 12.5px; color: var(--ink-900); }
.pkg-redeem-ok p { margin: 2px 0 0; font-size: 11.5px; color: var(--text-muted); }
.pkg-redeem-ok .btn { margin-left: auto; }
.pkg-redeem-mark { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; color: var(--teal-press, #047857); display: grid; place-items: center; font-weight: 800; }

@media (max-width: 900px) {
  .pkg-estimate { grid-template-columns: minmax(0, 1fr); }
  .pkg-estimate-side { position: static; }
  .pkg-ins-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pkg-redeem-form { flex-direction: column; }
  /* 两列卡片在窄屏下再收一点，保证单价 + 数量控件同一行不折 */
  .pkg-prot { padding: 6px 6px; }
  .pkg-prot-price small { display: none; }
}

/* .modal 的 max-width:520px + padding 会把包裹弹窗压窄（第 3 步要双栏），这里统一放开 */
.pkg-overlay { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.pkg-modal { max-width: none; margin: 0; padding: 0; }
.pkg-modal.is-wide { width: min(1000px, calc(100vw - 32px)); }
.pkg-modal-sm { width: min(600px, calc(100vw - 32px)); }
@media (max-width: 768px) {
  .pkg-overlay { padding: 10px 8px; }
  .pkg-modal, .pkg-modal.is-wide, .pkg-modal-sm { width: calc(100vw - 16px); max-height: 94vh; }
}

.pkg-redeem-ok .btn { background: #fff; }

/* 保险赔付条款确认弹层（选保险前） */
.pkg-modal-xs { width: min(460px, calc(100vw - 32px)); }
.pkg-ins-term { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-800); }
.pkg-ins-term-note {
  margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11.5px; line-height: 1.6; color: var(--text-muted);
}

/* ============================================================
   帮助中心：对齐原站 HelpCenter「左侧分组目录 + 一次只显示一章」
   结构来自 helpcenter.html / helpcenter.j4.js，配色走本项目 tokens（白底灰 + 橙点缀）
   ============================================================ */
.help-layout {
  display: grid; grid-template-columns: 268px minmax(0, 1fr);
  gap: var(--sp-10); align-items: start;
  padding: var(--sp-8) 0 var(--sp-16);
}
.help-nav-toggle { display: none; }
.help-sidebar {
  position: sticky; top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  max-height: calc(100dvh - var(--header-h) - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--line); padding-right: var(--sp-5);
  scrollbar-width: thin;
}
.help-sidebar-inner { padding-bottom: var(--sp-8); }
.help-sidebar-title { font-size: var(--fs-lg); font-weight: 800; color: var(--ink-900); margin-bottom: var(--sp-4); }
.help-search { position: relative; display: flex; align-items: center; margin-bottom: var(--sp-5); }
.help-search > svg {
  position: absolute; left: 10px; width: 16px; height: 16px;
  fill: none; stroke: var(--text-muted); stroke-width: 1.8; pointer-events: none;
}
.help-search input {
  width: 100%; height: 38px; padding: 0 30px 0 34px;
  border: 1px solid var(--ink-300); border-radius: var(--r-md);
  background: #fff; color: var(--ink-900); font-size: var(--fs-sm); outline: none;
}
.help-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.help-search-clear {
  position: absolute; right: 8px; width: 22px; height: 22px; border: 0;
  background: transparent; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.help-search-results { display: flex; flex-direction: column; gap: 2px; }
.help-no-result { font-size: var(--fs-sm); color: var(--text-muted); padding: 12px 4px; }
.help-group { margin-bottom: var(--sp-3); }
.help-group-title, .help-sub-title {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink-900);
}
.help-group-title { font-size: var(--fs-sm); font-weight: 800; padding: 8px 4px; }
.help-group-title:hover, .help-sub-title:hover { color: var(--accent-press); }
.help-chev { display: inline-block; font-size: 15px; color: var(--text-faint); transition: transform var(--dur) var(--ease); }
.help-chev.is-open { transform: rotate(180deg); }
.help-subs { margin-left: 8px; }
.help-sub-title { font-size: 12.5px; font-weight: 700; color: var(--ink-800); padding: 6px 4px; }
.help-links { display: flex; flex-direction: column; margin-left: 8px; border-left: 1px solid var(--line); }
.help-link {
  display: block; padding: 5px 6px 5px 11px; border-left: 2px solid transparent;
  font-size: 12px; line-height: 1.5; color: var(--text-muted); overflow-wrap: anywhere;
}
.help-link:hover { color: var(--accent-press); }
.help-link.is-active {
  color: var(--accent-press); border-left-color: var(--accent);
  background: var(--accent-wash); font-weight: 700; margin-left: -1px;
}
.help-article { min-width: 0; }
.help-breadcrumb {
  display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs);
  color: var(--text-faint); margin-bottom: var(--sp-5);
}
.help-breadcrumb a { color: var(--text-muted); }
.help-breadcrumb a:hover { color: var(--accent-press); }
.help-article-title { font-size: var(--fs-3xl); color: var(--ink-900); margin-bottom: var(--sp-5); }
.help-section-html { color: var(--ink-700); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.help-section-html h3, .help-section-html h4 {
  font-size: 24px; line-height: 1.3; letter-spacing: -.01em;
  color: var(--ink-900); font-weight: 800; margin: 0 0 var(--sp-5);
}
.help-section-html p { margin: 0 0 var(--sp-4); }
.help-section-html strong { color: var(--ink-900); font-weight: 700; }
.help-section-html a { color: var(--accent-press); text-decoration: underline; }
.help-section-html ul, .help-section-html ol { padding-left: 22px; margin: 0 0 var(--sp-4); }
.help-section-html li { margin-bottom: 6px; }
.help-section-html img {
  display: block; max-width: 100%; height: auto; margin: var(--sp-4) 0;
  border: 1px solid var(--line); border-radius: var(--r-md); cursor: zoom-in;
}
.help-table-wrap { overflow-x: auto; margin: var(--sp-4) 0 var(--sp-6); }
.help-section-html table {
  width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed;
}
.help-section-html th, .help-section-html td {
  padding: 10px; border: 1px solid var(--ink-300); vertical-align: top;
  overflow-wrap: anywhere; line-height: 1.65; font-size: var(--fs-sm);
}
.help-section-html th { background: var(--accent-wash); color: var(--ink-900); font-weight: 700; text-align: left; }
.help-section-html td { background: #fff; color: var(--ink-700); }
.help-section-html .ql-align-center { text-align: center; }
.help-section-html .ql-align-right { text-align: right; }
.help-section-html table p { margin: 0 0 6px; }
.help-section-html table p:last-child { margin-bottom: 0; }
.help-section-html table strong { color: var(--ink-900); }
.help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-10); }
.help-pager-btn {
  display: flex; flex-direction: column; gap: 5px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft);
  min-width: 0;
}
.help-pager-btn:hover { border-color: var(--accent); background: var(--accent-wash); }
.help-pager-btn.is-next { text-align: right; grid-column: 2; }
.help-pager-dir { font-size: var(--fs-xs); color: var(--text-faint); }
.help-pager-btn strong { font-size: var(--fs-sm); color: var(--ink-900); overflow-wrap: anywhere; }
.help-backdrop { display: none; }
@media (max-width: 900px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding-top: var(--sp-5); }
  .help-nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; justify-self: start;
    height: 36px; padding: 0 14px; border: 1px solid var(--ink-300); border-radius: var(--r-md);
    background: #fff; color: var(--ink-900); font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
  }
  .help-nav-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .help-sidebar {
    position: fixed; left: 0; top: 0; z-index: 130; width: min(330px, 88vw); height: 100vh; height: 100dvh;
    max-height: none; padding: var(--sp-5); border-right: 1px solid var(--line);
    background: #fff; box-shadow: 12px 0 40px rgba(9, 12, 18, .12);
    transform: translateX(-102%); transition: transform var(--dur) var(--ease);
  }
  .help-sidebar.is-open { transform: translateX(0); }
  .help-backdrop {
    display: block; position: fixed; inset: 0; z-index: 125;
    background: rgba(9, 12, 18, .38);
  }
  .help-section-html h3, .help-section-html h4 { font-size: 21px; }
  .help-section-html table { min-width: 520px; }
}

/* ============================================================
   活动落地页（/promotion 30% 优惠券、/partners 推广分成）
   ------------------------------------------------------------
   原站是两张深色独立页（apc.html / Affiliate.html）。新站沿用「白底灰 +
   橙色点缀」：浅橙渐变 Hero、白卡步骤、数据卡与表格，文案与原站逐句一致。
   ============================================================ */
.camp-page { max-width: 1040px; margin: 0 auto; padding: 26px 20px 68px; }

.camp-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 46px 34px 42px; border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 106, 0, .12), transparent 46%),
    radial-gradient(circle at 92% 8%, rgba(13, 148, 136, .10), transparent 44%),
    linear-gradient(180deg, #fffdfb, #fff);
  border: 1px solid #ffe7d6;
  box-shadow: 0 18px 44px rgba(16, 20, 28, .07);
}
.camp-kicker {
  margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #e85d00;
}
.camp-title {
  margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.24;
  letter-spacing: -.02em; color: #18181b;
}
.camp-title strong { color: #ff6a00; }
.camp-copy { max-width: 660px; margin: 0 auto 24px; font-size: 15px; line-height: 1.75; color: #5b606a; }
.camp-copy strong { color: #18181b; }
.camp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.camp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border-radius: 999px;
  font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.camp-btn-primary {
  color: #fff; background: linear-gradient(135deg, #ff8a1f, var(--orange, #ff6a00));
  box-shadow: 0 10px 24px rgba(255, 106, 0, .26);
}
.camp-btn-primary:hover { filter: brightness(1.04); }
.camp-btn-ghost { color: #e85d00; background: #fff; border: 1px solid #ffd9be; }
.camp-btn-lg { height: 50px; padding: 0 30px; font-size: 15px; }

.camp-section { margin-top: 46px; }
.camp-section-title {
  margin: 0 0 20px; text-align: center; font-size: 22px; letter-spacing: -.015em; color: #18181b;
}
.camp-section-intro { margin: -8px auto 20px; max-width: 620px; text-align: center; font-size: 14px; color: #6b7280; }
.camp-inline-link { margin: 18px 0 0; text-align: center; font-size: 13.5px; }
.camp-inline-link a { color: #e85d00; font-weight: 700; text-decoration: none; }

/* 平台 */
.camp-platforms { text-align: center; }
.camp-platforms-title { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9aa0aa; }
.camp-platform-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.camp-platform {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  border-radius: 999px; background: #f6f7f9; color: #4b5058; font-size: 12.5px; font-weight: 700;
}

/* 三步（推广链接） */
.camp-ministeps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.camp-ministep {
  position: relative; padding: 22px 20px 20px; border-radius: 16px; background: #fff;
  border: 1px solid #eef0f3; box-shadow: 0 8px 22px rgba(16, 20, 28, .05);
}
.camp-ministep-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-bottom: 10px; border-radius: 999px;
  background: #fff0e4; color: #e85d00; font-size: 13px; font-weight: 800;
}
.camp-ministep h3 { margin: 0 0 8px; font-size: 15px; color: #18181b; }
.camp-ministep p { margin: 0; font-size: 13px; line-height: 1.7; color: #5b606a; }

/* 步骤卡 */
.camp-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.camp-step {
  position: relative; padding: 24px 22px 22px 68px; border-radius: 16px; background: #fff;
  border: 1px solid #eef0f3; box-shadow: 0 8px 22px rgba(16, 20, 28, .05);
}
.camp-step-num {
  position: absolute; left: 20px; top: 22px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  background: linear-gradient(135deg, #ff8a1f, #ff6a00); color: #fff;
  font-size: 14px; font-weight: 800; box-shadow: 0 6px 14px rgba(255, 106, 0, .24);
}
.camp-step:nth-child(even) .camp-step-num { background: linear-gradient(135deg, #2dd4bf, #0d9488); box-shadow: 0 6px 14px rgba(13, 148, 136, .22); }
.camp-step h3 { margin: 0 0 8px; font-size: 16px; color: #18181b; }
.camp-step p { margin: 0; font-size: 13.5px; line-height: 1.72; color: #5b606a; }
.camp-step p strong, .camp-ministep p strong { color: #18181b; }

/* 数据卡 */
.camp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.camp-stat {
  display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
  min-height: 132px; padding: 20px; border-radius: 18px; text-align: center;
  background: #fff; border: 1px solid #eef0f3;
}
.camp-stat strong { font-size: 34px; line-height: 1; letter-spacing: -.02em; color: #18181b; font-variant-numeric: tabular-nums; }
.camp-stat span { font-size: 12.5px; color: #6b7280; }
.camp-stat.is-hot {
  background: linear-gradient(135deg, #ff8a1f, #ff6a00); border-color: transparent;
  box-shadow: 0 14px 30px rgba(255, 106, 0, .26);
}
.camp-stat.is-hot strong, .camp-stat.is-hot span { color: #fff; }

/* 方案表 */
.camp-plan-head {
  padding: 26px 26px 24px; border-radius: 18px;
  background: linear-gradient(135deg, #fff6ef, #fffdfb); border: 1px solid #ffe3ce;
}
.camp-plan-head.is-teal { background: linear-gradient(135deg, #effcf9, #fbfeff); border-color: #c9f1ea; }
.camp-plan-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; margin-bottom: 10px;
  border-radius: 999px; background: #fff; color: #e85d00; font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; border: 1px solid #ffd9be;
}
.camp-plan-head.is-teal .camp-plan-badge { color: #0d9488; border-color: #bdeee7; }
.camp-plan-head h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; color: #18181b; }
.camp-plan-sub { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #e85d00; }
.camp-plan-head.is-teal .camp-plan-sub { color: #0d9488; }
.camp-plan-copy { margin: 0 0 12px; font-size: 13.5px; line-height: 1.75; color: #5b606a; }
.camp-plan-copy strong { color: #18181b; }
.camp-cycle { margin: 0; font-size: 12.5px; color: #6b7280; }
.camp-cycle strong { color: #18181b; }

.camp-table-wrap { margin-top: 14px; overflow-x: auto; border-radius: 16px; border: 1px solid #eef0f3; }
.camp-table { width: 100%; border-collapse: collapse; background: #fff; }
.camp-table th, .camp-table td { padding: 12px 18px; text-align: left; font-size: 13px; border-bottom: 1px solid #f1f2f4; }
.camp-table th { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #8b909a; background: #fafbfc; white-space: nowrap; }
.camp-table td { color: #34383f; font-variant-numeric: tabular-nums; }
.camp-table td.is-reward { color: #e85d00; font-weight: 800; }
.camp-table tr:last-child td { border-bottom: 0; }
.camp-table tbody tr:hover td { background: #fffaf5; }
.camp-table-foot { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: #6b7280; }
.camp-table-foot strong { color: #18181b; }
.camp-slogan { margin: 10px 0 0; font-size: 13px; font-weight: 800; color: #e85d00; }
.camp-important { margin-top: 14px; padding: 14px 18px; border-radius: 12px; background: #fff8ef; border-left: 3px solid #ff8a1f; }
.camp-important h3 { margin: 0 0 6px; font-size: 13px; color: #18181b; }
.camp-important ul { margin: 0; padding-left: 18px; }
.camp-important li { font-size: 12.5px; line-height: 1.7; color: #5b606a; }

/* 选方案 */
.camp-choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.camp-choose-card { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid #eef0f3; }
.camp-choose-card h3 { margin: 0 0 10px; font-size: 15px; color: #18181b; }
.camp-choose-card.is-primary { border-color: #ffe0c8; background: #fffaf6; }
.camp-choose-card.is-teal { border-color: #cdeee8; background: #f8fefd; }
.camp-choose-card ul { margin: 0; padding-left: 18px; }
.camp-choose-card li { font-size: 13px; line-height: 1.7; color: #5b606a; }
.camp-choose-card li strong { color: #18181b; }

/* 注意事项 */
.camp-note-list { margin: 0; padding-left: 20px; }
.camp-note-list li { font-size: 13px; line-height: 1.85; color: #5b606a; }
.camp-note-list li strong { color: #18181b; }

/* 联系 */
.camp-contact { padding: 34px 28px; border-radius: 20px; text-align: center; background: #fff; border: 1px solid #eef0f3; }
.camp-contact-copy { margin: 0 auto 18px; max-width: 560px; font-size: 14px; line-height: 1.75; color: #5b606a; }
.camp-mission { margin: 16px 0 0; font-size: 12.5px; color: #8b909a; }
.camp-mission strong { color: #5b606a; }

/* ============================================================
   新手指引（/tutorial）
   ------------------------------------------------------------
   两套教程共用一套版式：左文右图（手机图套深色机身框），
   移动端单列、截图铺满宽度。所有截图都是本站实拍。
   ============================================================ */
.tut-page { max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; }

.tut-hero {
  position: relative; padding: 34px 36px 30px; border-radius: 20px;
  background:
    radial-gradient(circle at 6% 0%, rgba(255, 106, 0, .10), transparent 42%),
    linear-gradient(180deg, #fffdfb, #fff);
  border: 1px solid #f0e7df;
  box-shadow: 0 14px 34px rgba(16, 20, 28, .05);
}
.tut-crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12px; color: #9aa0aa; }
.tut-crumb a { color: #9aa0aa; text-decoration: none; }
.tut-crumb a:hover { color: #e85d00; }
.tut-kicker { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #e85d00; }
.tut-title { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.22; letter-spacing: -.02em; color: #18181b; }
.tut-lead { max-width: 720px; margin: 0 0 16px; font-size: 14.5px; line-height: 1.72; color: #5b606a; }
.tut-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: #8b909a; }
.tut-meta i { width: 3px; height: 3px; border-radius: 50%; background: #d5d9df; }

.tut-switch { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 999px; background: #f2f3f5; }
.tut-switch button {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px; background: none; color: #5b606a; font: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.tut-switch button svg { width: 15px; height: 15px; }
.tut-switch button.is-on { background: #fff; color: #18181b; box-shadow: 0 2px 8px rgba(16, 20, 28, .10); }

.tut-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.tut-chips button {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid #eef0f3; border-radius: 999px; background: #fff; color: #34383f;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tut-chips button strong { color: #ff6a00; font-size: 12px; font-weight: 800; }
.tut-chips button:hover { border-color: #ffd9be; }

.tut-chapter { margin-top: 44px; scroll-margin-top: 70px; }
.tut-chapter-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid #eef0f3; }
.tut-chapter-no {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: #fff2e6; color: #e85d00;
  font-size: 14px; font-weight: 800;
}
.tut-chapter-head h2 { margin: 2px 0 4px; font-size: 22px; letter-spacing: -.02em; color: #18181b; }
.tut-chapter-head p { margin: 0; font-size: 13.5px; color: #6b7280; }

.tut-step {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px; align-items: start; padding: 28px 0; border-bottom: 1px solid #f4f5f7;
}
/* 电脑版教程里放的是桌面截图（16:10），给更宽的列才看得清 */
.tut-page.is-d .tut-step { grid-template-columns: minmax(0, 1fr) 460px; }
.tut-step:last-child { border-bottom: 0; }
.tut-step-no { display: inline-block; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: #ff6a00; }
.tut-step-txt h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.01em; color: #18181b; }
.tut-step-txt p { margin: 0 0 12px; font-size: 14px; line-height: 1.78; color: #4b5058; }
.tut-tips { margin: 0 0 14px; padding: 0; list-style: none; }
.tut-tips li { position: relative; padding-left: 16px; margin-bottom: 6px; font-size: 13px; line-height: 1.7; color: #5b606a; }
.tut-tips li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px;
  border-radius: 50%; background: #ffb27a;
}
.tut-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #e85d00; text-decoration: none; }
.tut-open:hover { text-decoration: underline; }

.tut-step-media { margin: 0; }
.tut-frame {
  overflow: hidden; border: 1px solid #e9ecf0; border-radius: 14px; background: #fff;
  box-shadow: 0 10px 26px rgba(16, 20, 28, .07);
}
.tut-frame img { display: block; width: 100%; height: auto; }
.tut-step-media.is-phone .tut-frame {
  max-width: 300px; padding: 7px; border: 0; border-radius: 28px;
  background: #101216; box-shadow: 0 16px 34px rgba(16, 20, 28, .18);
}
.tut-step-media.is-phone .tut-frame img { border-radius: 22px; }
.tut-step-media figcaption { margin-top: 8px; font-size: 11.5px; color: #9aa0aa; }

.tut-help {
  margin-top: 46px; padding: 30px 28px; border-radius: 18px; text-align: center;
  background: #fff; border: 1px solid #eef0f3;
}
.tut-help h2 { margin: 0 0 8px; font-size: 19px; color: #18181b; }
.tut-help p { margin: 0 auto 18px; max-width: 560px; font-size: 13.5px; line-height: 1.7; color: #5b606a; }
.tut-help-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tut-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px;
  border-radius: 999px; font-size: 13.5px; font-weight: 800; text-decoration: none;
}
.tut-btn-primary { color: #fff; background: linear-gradient(135deg, #ff8a1f, #ff6a00); box-shadow: 0 8px 20px rgba(255, 106, 0, .24); }
.tut-btn-ghost { color: #e85d00; background: #fff; border: 1px solid #ffd9be; }

/* ============================================================
   移动端购买流程整理
   只写在 ≤900px / ≤640px 断点内；>900px 的桌面端规则、DOM 与交互零改动。
   目标：按「看商品 → 加购 → 结算 → 支付 → 转运/物流 → 用户中心」的顺序，
   把主操作固定在拇指可及处，收敛底部长文案，保留全部链接与功能入口。
   ============================================================ */
@media (max-width: 900px) {
  /* .content-layout / .help-layout 的 padding 简写会覆盖 .container 的左右留白，
     导致条款、教程、帮助中心正文贴着屏幕左右边缘（实测 x=0）。 */
  .content-layout.container, .help-layout.container { padding-left: 16px; padding-right: 16px; }
  .content-article, .help-article { min-width: 0; }
  .prose p, .help-section-html p { margin-bottom: 14px; }
  .prose h2 { margin-top: 24px; font-size: 21px; }
  .prose h3 { font-size: 18px; }
  .prose-figure img, .prose img, .prose-table-html img, .help-section-html img { max-width: 100%; height: auto; }
  .prose-table, .help-table-wrap { max-width: 100%; }

  /* 移动端输入不触发 iOS 聚焦缩放；点击区至少 40px */
  .input, .select, .textarea { font-size: 16px; }
  .tracking-table .input { font-size: 16px; }
  .btn-sm, .icon-btn, .eye-btn, .qty-btn, .cart-remove { min-height: 40px; }
  .icon-btn { min-width: 40px; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
  .help-nav-toggle, .help-search input { min-height: 44px; }

  /* 账户导航已改成网格（见 ≤1024 段），这里只统一热区高度 */
  .account-nav-item { min-height: 40px; }
}

@media (max-width: 640px) {
  /* ---- 1. 底部文案：去掉品牌/联系/支付/社交/版权长文，链接入口一个不丢 ---- */
  .site-footer { padding: 14px 0 10px; margin-top: 24px; }
  .site-footer .footer-grid.footer-grid-6 { display: flex; flex-wrap: wrap; gap: 6px 12px; }
  .site-footer .footer-grid-6 > div:not(.footer-brand),
  .site-footer .footer-links { display: contents; }
  .site-footer .footer-title, .site-footer .footer-brand, .site-footer .footer-pay,
  .site-footer .footer-account, .site-footer .footer-bottom > span { display: none; }
  .site-footer .footer-links a { font-size: 12px; color: var(--ink-400); }
  .site-footer .footer-bottom { margin-top: 10px; padding-top: 10px; border-top: 0; }
  .site-footer .footer-legal { gap: 12px; }
  .site-footer .footer-legal a { font-size: 11.5px; }

  /* ---- 2. 悬浮侧栏：小屏收成一个圆钮，展开后竖排一列 ----
     原来是把 7 个按钮 flex-wrap 横排贴在 tabbar 上：34px 半圆、opacity .86、
     只剩 6px 缝，按钮下半截压在底栏里 —— 既点不到，又在正文上糊成一条。 */
  .float-side { right: 12px; bottom: calc(var(--tabbar-offset) + 16px); z-index: 95; gap: 10px; align-items: flex-end; }
  .float-side.is-collapsed { right: 12px; }
  .float-btns { flex-direction: column; flex-wrap: nowrap; align-items: flex-end; justify-content: flex-end; gap: 10px; max-width: none; }
  .float-btn {
    width: 46px; height: 46px; border-radius: 999px;
    border: 1px solid rgba(16, 20, 28, .10); background: #fff; opacity: 1;
    box-shadow: 0 8px 20px rgba(16, 20, 28, .18), 0 1px 2px rgba(16, 20, 28, .08);
  }
  .float-btn svg { width: 20px; height: 20px; }
  .float-app { height: 46px; padding-top: 0; justify-content: center; gap: 0; }
  .float-app svg { width: 20px; height: 20px; }
  .float-app-txt { display: none; }
  .float-ch-img { width: 22px; height: 22px; }
  .float-fold { width: 46px; height: 46px; background: #f5f6f8; box-shadow: 0 6px 16px rgba(16, 20, 28, .12); }
  .float-fold svg { width: 15px; height: 15px; }
  .float-open {
    width: 48px; height: 48px; border: 0; border-radius: 999px;
    background: var(--m-orange); color: #fff;
    box-shadow: 0 10px 24px rgba(255, 106, 0, .34);
  }
  .float-open svg { width: 20px; height: 20px; }
  .float-panel { max-height: 72vh; overflow-y: auto; }

  /* ---- 3. 注册 / 登录 / 找回密码：不显示底部导航，提交按钮完整可见 ---- */
  body:has(.auth-wrap) { padding-bottom: 0; }
  body:has(.auth-wrap) .tab-bar, body:has(.auth-wrap) .float-side { display: none; }
  .auth-wrap { align-items: flex-start; min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); padding-top: 18px; padding-bottom: 24px; }
  .auth-brand { margin-bottom: 10px; }
  .auth-form { gap: 8px; }
  .auth-form .input { height: 42px; }
  .pw-rules--grid { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
  .pw-rules .pw-rule { font-size: 11px; }
  .auth-agree { font-size: 11.5px; line-height: 1.5; }

  /* ---- 4. 购买主操作：固定在底部导航之上，拇指可及 ---- */
  .cart-dock {
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-offset); z-index: 90;
    margin: 0; padding: 10px 14px;
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, .08);
  }
  .cart-dock-all { grid-column: 1; }
  .cart-dock-sum { grid-column: 2; justify-self: end; min-width: 0; }
  .cart-dock-sum > div:not(.final) { display: none; }
  .cart-dock-sum .final { border: 0; padding: 0; margin: 0; }
  .cart-submit { grid-column: 1 / -1; width: 100%; min-height: 46px; }
  body:has(.cart-dock) { padding-bottom: calc(var(--tabbar-offset) + 124px); }

  .pay-actions {
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-offset); z-index: 90;
    max-width: none; margin: 0; padding: 10px 14px;
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, .08);
  }
  .pay-actions-info { flex: 1; min-width: 0; display: flex; align-items: center; }
  .pay-actions .pay-selected, .pay-actions-grid > div:not(.is-total) { display: none; }
  .pay-actions-grid { gap: 0; }
  .pay-actions-grid > div.is-total { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 11px; color: #9aa0aa; }
  .pay-actions .is-total strong { font-size: 20px; font-weight: 800; color: var(--m-orange); line-height: 1.1; }
  .pay-now { flex: 0 0 46%; width: auto; min-height: 46px; border-radius: 999px; background: var(--m-orange); border-color: var(--m-orange); }
  body:has(.pay-actions) { padding-bottom: calc(var(--tabbar-offset) + 84px); }

  /* 支付页：摘要里的 Pay 在移动端收进底部结算条，避免悬浮按钮压住支付方式列表 */
  .pay-summary .pay-continue { display: none; }
  .pay-mobile-bar {
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-offset); z-index: 90;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: #fff; border-top: 1px solid var(--m-line);
    box-shadow: 0 -8px 22px rgba(16, 20, 28, .08);
  }
  .pmb-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .pmb-sum span { font-size: 11px; color: #9aa0aa; }
  .pmb-sum strong { font-size: 20px; font-weight: 800; color: var(--m-orange); line-height: 1.1; }
  .pay-mobile-bar .btn { flex: 0 0 46%; min-height: 46px; border-radius: 999px; font-weight: 800; background: var(--m-orange); border-color: var(--m-orange); }
  body:has(.pay-mobile-bar) { padding-bottom: calc(var(--tabbar-offset) + 84px); }
  body:has(.pay-mobile-bar) .float-side { display: none; }

  .forward-actions {
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-offset); z-index: 90;
    flex-direction: column; align-items: stretch; gap: 8px; margin: 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .97); border: 0; border-top: 1px solid var(--line);
    box-shadow: 0 -8px 22px rgba(0, 0, 0, .08);
  }
  .forward-actions .btn { min-width: 0; width: 100%; min-height: 46px; }
  .forward-agree { min-width: 0; font-size: 11.5px; line-height: 1.45; }
  body:has(.forward-actions) { padding-bottom: calc(var(--tabbar-offset) + 116px); }

  /* DIY 下单须知弹窗：长文案可滚，确认按钮始终可见 */
  .diy-notice { max-height: 78vh; overflow-y: auto; }
  .diy-notice-list { font-size: 12.5px; line-height: 1.55; }

  /* ---- 5. 首页 / 内容页 / 表单密度 ---- */
  .quick-access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: none; }
  .quick-item { width: 100%; min-height: 42px; }
  .hero-sub { font-size: 13px; }
  .forward-page .forward-subtitle { font-size: 17px; margin-bottom: 8px; }
  .forward-page .reminder { padding: 10px 12px; }
  .forward-page .reminder p { font-size: 11.5px; line-height: 1.55; }
  .forward-page .reminder-ico { width: 22px; height: 22px; }
  .tracking-scroll { margin-bottom: 8px; }
  .content-title { font-size: 26px; }
  .help-section-html p { margin-bottom: 12px; }
  .help-section-html h3, .help-section-html h4 { font-size: 20px; }

  /* ---- 6. 悬浮栏收起态：一个 48px 客服圆钮 ----
     原来是 22×36、opacity .62 的竖条把手，贴在最右边，很难摸准 */
  .float-side.is-collapsed { right: 12px; }
  .float-open { width: 48px; height: 48px; opacity: 1; }
  .float-open .float-dot { right: 2px; top: 2px; min-width: 17px; height: 17px; font-size: 10px; }
  /* 展开后要能收回去：860 段为省地方隐藏了折叠键，手机上放回来 */
  .float-fold { display: inline-flex; }
  /* 下单/支付页底部已有主操作条，悬浮栏不再叠在上面抢位置；入口在其它页仍在 */
  body:has(.cart-dock) .float-side,
  body:has(.pay-actions) .float-side,
  body:has(.pay-continue) .float-side,
  body:has(.forward-actions) .float-side,
  body:has(.mobile-buy-bar) .float-side { display: none; }
  /* 商品详情原规则 .detail-page .tab-bar 不成立（tab-bar 是 app 顶层、不是页面后代），
     购买条与底部导航会互相盖住；改为购买条贴在导航之上，两个入口都保留。 */
  body:has(.mobile-buy-bar) .mobile-buy-bar { bottom: var(--tabbar-offset); z-index: 92; }
  body:has(.mobile-buy-bar) { padding-bottom: calc(var(--tabbar-offset) + 76px); }

  /* ---- 7. 认证页再压一档：注册页连 Google 按钮也进首屏 ---- */
  .auth-wrap { padding-top: 10px; padding-bottom: 12px; }
  .auth-brand { margin-bottom: 4px; }
  .auth-sub { display: none; }
  .auth-form { gap: 6px; }
  .auth-form .input { height: 40px; }
  .auth-agree { margin-top: 0; }

  /* ---- 8. 结算条金额一行；状态筛选 / 目录项点击区 ≥40px ---- */
  .pay-actions .is-total { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 6px; }
  .pay-actions .is-total strong { font-size: 18px; }
  .filter-pill, .lang-btn, .account-quick-link, .fav-card-remove,
  .help-group-title, .help-sub-title, .help-link { min-height: 40px; }
  .wlcard-fees-toggle { min-height: 32px; }
  .help-link { padding-top: 8px; padding-bottom: 8px; }
}

/* ============================================================
   移动端 App 皮肤（对齐原站 m/ 首页形态 + 主流购物 App 购买动线）
   ------------------------------------------------------------
   原站移动端 H5 实测：固定顶栏（菜单 + 搜索 + 拍照）、Banner、
   4 宫格快捷入口、内容卡、横向商品流、分类 tab、2 列商品网格、
   底部 4 tab（选中项橙色胶囊）；无长页脚。
   新增节点在桌面端一律 display:none，下面全部规则只在 ≤640px 生效，
   >640px 的桌面端样式、DOM、交互、购买与物流逻辑零改动。
   ============================================================ */
.m-appbar, .m-drawer, .m-home, .m-acct-head, .m-acct-grid, .sku-sheet, .pay-mobile-bar, .order-paybar,
.m-back-float, .m-wallet-cards, .m-rec-cards, .m-addr-cards, .m-wd-cards, .m-fw-rows { display: none; }

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
    --tabbar-h: 64px;
    --m-bg: #f4f5f7;
    --m-card: #fff;
    --m-line: #eceef1;
    --m-r: 16px;
    --m-orange: #ff6a00;
  }
  /* 48 份 index.html 的内联启动屏样式 `html, body {background:#fff}` 排在
     components.css 之后、特异性相同，会盖掉 body 背景。用 html:root / html body
     提高特异性，让白卡浮在浅灰 App 底上；桌面端 >640px 完全不受影响。 */
  html:root, html body { background-color: #f4f5f7; }
  body { padding-bottom: var(--tabbar-offset); }

  /* ---- 0. 性能：手机端去掉常驻的 backdrop-filter 模糊 ----
     底部 tab、购买条、遮罩都是「一直挂在屏幕上的固定层」，带模糊时每一帧都要把下面的
     内容重新采样一遍，低端安卓机上就是持续掉帧；改成实色/纯半透明后视觉几乎无差。 */
  .tab-bar, .mobile-buy-bar, .pay-mobile-bar, .order-paybar, .overlay, .site-header {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .tab-bar, .mobile-buy-bar, .pay-mobile-bar, .order-paybar { background: #fff; }

  /* ---- 1. 顶栏：桌面版 header-inner 让位给 App 顶栏 ---- */
  /* 手机端顶栏不再吸顶：跟页面一起滚走（省掉一屏 56px，也去掉 backdrop-filter
     这层持续的合成开销——iOS/低端机上滚动的帧抖动主要来自它） */
  .site-header {
    position: static; background: #fff; border-bottom: 0;
    box-shadow: 0 2px 12px rgba(16, 20, 28, .06);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .header-inner { display: none; }
  .m-appbar {
    display: flex; align-items: center; gap: 8px;
    height: var(--header-h); padding: 0 12px;
  }
  /* 二级页多一颗返回键：按钮收窄到 36px，语言胶囊按内容宽度排，搜索框自动让位 */
  .m-appbar.has-back { gap: 6px; }
  .m-appbar.has-back .m-appbar-menu { width: 36px; height: 36px; }
  .m-appbar.has-back .m-appbar-lang { height: 36px; padding: 0 8px; border-radius: 11px; }
  .m-appbar.has-back .m-appbar-lang span { font-size: 10.5px; }
  .m-appbar.has-back .m-appbar-lang svg { width: 15px; height: 15px; }
  .m-appbar-back {
    flex: none; width: 36px; height: 36px; border: 0; border-radius: 11px;
    background: #f2f3f5; color: #2b2f36;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .m-appbar-back svg { width: 20px; height: 20px; }
  .m-appbar-back:active, .m-appbar-menu:active { background: #e8eaee; }
  /* 顶栏滚走后的浮动返回键：固定在左上角，不参与布局 */
  .m-back-float {
    position: fixed; left: 10px; top: 10px; z-index: 90;
    width: 34px; height: 34px; border: 1px solid rgba(16, 20, 28, .06); border-radius: 11px;
    background: rgba(255, 255, 255, .94); color: #2b2f36; display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(16, 20, 28, .12);
  }
  .m-back-float svg { width: 18px; height: 18px; }
  .m-back-float:active { background: #f2f3f5; }
  .m-appbar-menu {
    flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px;
    background: #f2f3f5; color: #2b2f36;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; text-decoration: none;
  }
  .m-appbar-menu svg { width: 21px; height: 21px; }
  /* 顶栏右侧：语言 / 货币切换（购物车入口在底部 tab，带角标） */
  .m-appbar-lang {
    flex: none; height: 40px; min-width: 40px; padding: 0 9px; border: 0; border-radius: 12px;
    background: #f2f3f5; color: #2b2f36;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
  }
  .m-appbar-lang svg { width: 17px; height: 17px; color: #6b7280; }
  .m-appbar-lang:active { background: #e8eaee; }
  .m-appbar-search {
    flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; gap: 6px;
    padding: 0 6px 0 12px; border-radius: 999px; background: #f2f3f5;
  }
  .m-appbar-ico { flex: none; width: 17px; height: 17px; color: #9aa0aa; }
  .m-appbar-input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
    font-size: 16px; color: #18181b;
  }
  .m-appbar-input::placeholder { color: #9aa0aa; font-size: 13px; }
  .m-appbar-cam {
    flex: none; width: 30px; height: 30px; border: 0; border-radius: 999px;
    background: #fff; color: #6b7280; display: inline-flex; align-items: center; justify-content: center;
  }
  .m-appbar-cam svg { width: 17px; height: 17px; }

  /* ---- 2. 侧滑抽屉：与桌面端同一套信息架构 ----
     ① 桌面顶栏 5 个主导航；② 桌面头像下拉的账户入口；③ 桌面页脚 5 个栏目；
     ④ 桌面页脚底部法务。
     尺寸按拇指重排：导航 58 / 账户 50 / 栏目 46，图标 22px；
     面板 88vw（上限 372）带右侧圆角，滑入 300ms —— 不再是硬弹出的一块直角白板。 */
  .m-drawer {
    display: block; position: fixed; inset: 0; z-index: 300;
    background: rgba(8, 11, 16, .52);
    overscroll-behavior: contain;
  }
  .m-drawer-panel {
    width: min(88vw, 372px); height: 100%; background: #fff;
    display: flex; flex-direction: column;
    border-radius: 0 22px 22px 0;
    box-shadow: 20px 0 60px rgba(6, 10, 16, .26);
    overflow: hidden;
    /* 全屏 PWA / 刘海屏时把头部让到状态栏之下；普通浏览器里求值为 0，不影响 */
    padding-top: env(safe-area-inset-top, 0px);
  }
  /* 弹出动效：遮罩淡入 + 面板自左侧推入，关闭时反向 */
  .mdrawer-enter-active, .mdrawer-leave-active { transition: opacity .22s ease; }
  .mdrawer-enter-active .m-drawer-panel,
  .mdrawer-leave-active .m-drawer-panel { transition: transform .3s cubic-bezier(.32, .72, 0, 1); }
  .mdrawer-enter-from, .mdrawer-leave-to { opacity: 0; }
  .mdrawer-enter-from .m-drawer-panel,
  .mdrawer-leave-to .m-drawer-panel { transform: translateX(-102%); }
  /* 抽屉开着时锁住背景滚动，避免手指拖遮罩带着页面走 */
  body.is-drawer-open { overflow: hidden; }

  .m-drawer-head {
    flex: none; height: 58px; display: flex; align-items: center; gap: 10px;
    padding: 0 12px 0 16px; border-bottom: 1px solid var(--m-line);
  }
  .m-drawer-head strong { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
  .m-drawer-close {
    margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 999px;
    background: #f4f5f7; color: #4b5563; display: grid; place-items: center;
    transition: background .16s ease;
  }
  .m-drawer-close svg { width: 19px; height: 19px; }
  .m-drawer-close:active { background: #e9ebef; }
  .m-drawer-scroll {
    flex: 1; overflow-y: auto; padding: 14px 14px calc(26px + var(--safe-b));
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }

  /* 用户区：未登录两枚主按钮，已登录一张用户卡（对齐桌面头像下拉入口） */
  .m-drawer-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .m-drawer-login, .m-drawer-signup {
    height: 46px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; font-size: 14.5px; font-weight: 700; text-decoration: none;
  }
  .m-drawer-login { background: #f2f3f5; color: #18181b; }
  .m-drawer-signup { background: var(--m-orange); color: #fff; }
  .m-drawer-user {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px;
    border-radius: 16px; background: linear-gradient(135deg, #fff3e8, #fff9f4);
    text-decoration: none; color: #18181b;
  }
  .m-drawer-avatar {
    width: 46px; height: 46px; border-radius: 999px; background: var(--m-orange); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  }
  .m-drawer-uinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .m-drawer-uinfo strong { font-size: 15.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-drawer-uinfo small { font-size: 12px; color: #a8774f; }
  .m-drawer-chev { flex: none; display: inline-flex; align-items: center; color: #c8cdd5; }
  .m-drawer-chev svg { width: 16px; height: 16px; }

  /* 语言 / 货币：仍在抽屉靠上位置，先于导航 */
  .m-drawer-locale {
    display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px; margin-top: 12px;
    padding: 9px 14px; border: 0; border-radius: 12px; background: #f5f6f8;
    color: #34383f; font: inherit; font-size: 13.5px; font-weight: 700; text-align: left;
  }
  .m-drawer-locale svg { flex: none; width: 18px; height: 18px; color: #8b909a; }
  .m-drawer-locale-label { flex: 1; min-width: 0; line-height: 1.32; }
  .m-drawer-locale-val { color: #9aa0aa; font-size: 12.5px; font-weight: 800; }

  /* ① 主导航：与桌面顶栏同一组入口 */
  .m-drawer-main { margin-top: 8px; }
  .m-drawer-item {
    display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px;
    border-radius: 14px; color: #23262b; font-size: 15.5px; font-weight: 700; text-decoration: none;
    transition: background .16s ease;
  }
  .m-drawer-item:active { background: #f5f6f8; }
  .m-drawer-item.router-link-exact-active { background: #fff6ef; color: #e85d00; }
  .m-drawer-item.router-link-exact-active .m-drawer-ico { background: var(--m-orange); color: #fff; }
  .m-drawer-ico {
    flex: none; width: 40px; height: 40px; border-radius: 13px; background: #fff2e6;
    color: var(--m-orange); display: inline-flex; align-items: center; justify-content: center;
  }
  .m-drawer-ico svg { width: 22px; height: 22px; }
  .m-drawer-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* ② 账户入口：与桌面头像下拉一致，次一级视觉 */
  .m-drawer-list { display: flex; flex-direction: column; }
  .m-drawer-sub {
    display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 8px;
    border-radius: 12px; color: #3a3f46; font-size: 14.5px; font-weight: 600; text-decoration: none;
    transition: background .16s ease;
  }
  .m-drawer-sub:active { background: #f5f6f8; }
  .m-drawer-sub .m-drawer-ico { width: 34px; height: 34px; border-radius: 11px; background: #f4f5f7; color: #5b606a; }
  .m-drawer-sub .m-drawer-ico svg { width: 19px; height: 19px; }
  .m-drawer-sub.is-quiet { color: #8b909a; }
  .m-drawer-sub.router-link-exact-active { color: #e85d00; }
  .m-drawer-sub.router-link-exact-active .m-drawer-ico { background: #fff0e4; color: var(--m-orange); }

  /* ③ 页脚栏目：固定两列，文字 13.5px —— 原来 auto-fit + 12px 会单双列混排、字挤在灰块里 */
  .m-drawer-group { margin-top: 2px; }
  .m-drawer-title {
    font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: #8d949f; padding: 20px 4px 10px;
  }
  .m-drawer-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .m-drawer-chip {
    display: flex; align-items: center; min-height: 46px; padding: 9px 12px; border-radius: 12px;
    background: #f5f6f8; color: #41464e; font-size: 13.5px; font-weight: 600; line-height: 1.32;
    text-decoration: none; word-break: break-word; transition: background .16s ease, color .16s ease;
  }
  .m-drawer-chip:active { background: #fff1e6; color: #e85d00; }
  /* 奇数项时最后一条通栏，避免右列留一个空洞 */
  .m-drawer-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* ④ 法务：页脚底部同一组链接，弱化为小字（补上下内边距，12px 也有 32px 热区） */
  .m-drawer-legal {
    display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 18px 2px 0; padding-top: 16px;
    border-top: 1px solid var(--m-line);
  }
  .m-drawer-legal a { font-size: 12px; padding: 6px 0; color: #9aa0aa; text-decoration: none; }
  .m-drawer-legal a:active { color: #e85d00; }

  /* ---- 3. 底部 tabbar：选中项橙色胶囊（原站同款），带安全区 ---- */
  .tab-bar {
    display: flex; align-items: stretch;
    height: var(--tabbar-offset);
    padding-bottom: var(--safe-b);
    background: #fff; border-top: 0; box-shadow: 0 -6px 22px rgba(16, 20, 28, .08);
  }
  .tab-bar-item {
    flex: 1; flex-direction: column; gap: 3px; margin: 6px 4px; border-radius: 14px;
    font-size: 11px; font-weight: 700; color: #8b909a; justify-content: center;
  }
  .tab-bar-item svg { width: 22px; height: 22px; }
  .tab-bar-item.is-active {
    color: #fff; background: linear-gradient(135deg, #ff8a1f, var(--m-orange));
    box-shadow: 0 6px 16px rgba(255, 106, 0, .28);
  }
  .tab-bar-item .badge { top: 2px; }

  /* ---- 4. 首页：桌面 hero / 轮播 / 跑马灯让位给 App 页面 ---- */
  body:has(.m-home) main > div { display: flex; flex-direction: column; }
  .hero, .sec-marquee, .reco, .sec-home-top .banner-carousel { display: none; }
  .sec-home-top { order: 1; }
  .m-home { display: block; order: 2; padding-bottom: 12px; }
  .sec-home-top .notice-bar {
    margin: 10px 12px 0; padding: 8px 10px; border-radius: 12px;
    background: #fff; border: 1px solid var(--m-line);
  }
  .sec-home-top .notice-tools .notice-arrows, .sec-home-top .notice-count { display: none; }

  .m-banner {
    position: relative; margin: 12px 12px 0; border-radius: var(--m-r); overflow: hidden;
    touch-action: pan-y; /* 竖向留给页面滚动，横向手势交给轮播 */
  }
  .m-banner-track {
    display: flex; width: 100%; will-change: transform;
    transition: transform .32s var(--ease);
  }
  .m-banner-slide {
    flex: 0 0 100%; display: block; width: 100%; padding: 0; border: 0; background: #e9ebef;
  }
  .m-banner-slide img { display: block; width: 100%; height: 176px; object-fit: cover; pointer-events: none; }
  .m-banner-dots {
    position: absolute; left: 0; right: 0; bottom: 9px; display: flex;
    justify-content: center; gap: 5px;
  }
  .m-banner-dots button {
    width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .55);
  }
  .m-banner-dots button.is-active { width: 16px; background: var(--m-orange); }

  .m-quick {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px;
    margin: 12px; padding: 14px 6px; border-radius: var(--m-r); background: #fff;
  }
  .m-quick-item {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    text-decoration: none; color: #34383f; min-width: 0;
  }
  .m-quick-ico {
    width: 48px; height: 48px; border-radius: 15px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .m-quick-ico svg { width: 24px; height: 24px; }
  .m-quick-ico.is-orange { background: #fff0e4; color: #f97316; }
  .m-quick-ico.is-teal   { background: #e4f7f4; color: #0d9488; }
  .m-quick-ico.is-blue   { background: #e8f1ff; color: #2563eb; }
  .m-quick-ico.is-purple { background: #f1ebff; color: #7c3aed; }
  .m-quick-ico.is-pink   { background: #ffeaf1; color: #db2777; }
  .m-quick-ico.is-green  { background: #e8f8e9; color: #16a34a; }
  .m-quick-ico.is-amber  { background: #fff6dc; color: #d97706; }
  .m-quick-ico.is-slate  { background: #eef1f5; color: #475569; }
  .m-quick-label {
    font-size: 11px; line-height: 1.3; font-weight: 600; text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }

  .m-entry-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 12px; }
  .m-entry-card {
    position: relative; min-height: 86px; padding: 13px 12px; border-radius: var(--m-r);
    overflow: hidden; text-decoration: none; display: flex; flex-direction: column; gap: 5px;
    background: linear-gradient(135deg, #fff1e6, #ffe2cc); color: #7c2d12;
  }
  .m-entry-card.is-share { background: linear-gradient(135deg, #e8f1ff, #dbeafe); color: #1e3a8a; }
  .m-entry-card strong { font-size: 14px; font-weight: 800; padding-right: 48px; }
  .m-entry-card span { font-size: 10.5px; line-height: 1.35; padding-right: 48px; opacity: .8; }
  .m-entry-card img {
    position: absolute; right: -6px; bottom: -10px; width: 62px; height: 62px;
    object-fit: contain; opacity: .95;
  }

  .m-trending, .m-reco { margin-top: 18px; }
  .m-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 10px; }
  .m-sec-head h2 { margin: 0; font-size: 16px; font-weight: 800; color: #18181b; letter-spacing: -.01em; }
  .m-flame { font-size: 15px; }
  .m-pill {
    flex: none; padding: 4px 9px; border-radius: 999px; background: #fff0e4;
    color: #e85d00; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  }
  .m-hscroll {
    display: flex; gap: 10px; overflow-x: auto; padding: 0 12px 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .m-hscroll::-webkit-scrollbar, .m-cats::-webkit-scrollbar { display: none; }
  .m-pcard {
    display: block; flex: none; min-width: 0; border-radius: 13px; overflow: hidden;
    background: #fff; text-decoration: none; color: #18181b;
  }
  .m-pcard.is-h { width: 132px; }
  .m-pcard-media { display: block; position: relative; aspect-ratio: 1 / 1; background: #eef0f3; overflow: hidden; }
  .m-pcard-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .m-pcard-body { display: block; padding: 8px 9px 10px; }
  .m-pcard-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 11.5px; line-height: 1.4; color: #34383f; min-height: 32px;
  }
  .m-pcard-price { display: block; margin-top: 5px; font-size: 15px; font-weight: 800; color: var(--m-orange); }
  .m-pcard-landed { display: block; font-size: 10px; color: #9aa0aa; }
  .m-pcard.is-skeleton .m-pcard-media, .m-pcard.is-skeleton .m-pcard-body {
    background: linear-gradient(90deg, #eef0f3, #f7f8fa, #eef0f3); background-size: 200% 100%;
    animation: m-skeleton 1.2s linear infinite;
  }
  @keyframes m-skeleton { to { background-position: -200% 0; } }

  .m-cats { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 12px; scrollbar-width: none; }
  .m-cat {
    flex: none; min-height: 34px; padding: 0 13px; border: 0; border-radius: 999px;
    background: #fff; color: #5b606a; font-size: 12px; font-weight: 700; white-space: nowrap;
  }
  .m-cat i { font-style: normal; font-size: 10px; opacity: .6; margin-left: 3px; }
  .m-cat.is-active { background: var(--m-orange); color: #fff; }
  .m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 12px; }
  .m-grid .m-pcard { width: 100%; }
  .m-more {
    display: block; width: calc(100% - 24px); margin: 14px 12px 0; min-height: 44px;
    border: 0; border-radius: 999px; background: #fff; color: #e85d00;
    font-size: 14px; font-weight: 700;
  }
  .m-empty { padding: 30px 12px; text-align: center; color: #9aa0aa; font-size: 13px; }

  /* ---- 5. 用户中心：App「我的」页头 + 4 列功能网格 ---- */
  .account-shell {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px;
  }
  .m-acct-head {
    display: block; order: 1; padding: 14px; border-radius: var(--m-r);
    background: linear-gradient(135deg, #ff8a1f, var(--m-orange)); color: #fff;
  }
  .m-acct-user { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
  .m-acct-avatar {
    flex: none; width: 52px; height: 52px; border-radius: 999px; overflow: hidden;
    background: rgba(255, 255, 255, .28); display: inline-flex; align-items: center;
    justify-content: center; font-size: 20px; font-weight: 800;
  }
  .m-acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .m-acct-meta { flex: 1; min-width: 0; }
  .m-acct-meta strong { display: block; font-size: 17px; font-weight: 800; }
  .m-acct-meta span { display: block; font-size: 11px; opacity: .85; margin-top: 3px; }
  .m-acct-arrow { font-size: 24px; opacity: .8; }
  /* 12 宫格：4 列 × 3 行，图标固定 24px 光学盒、标签两行等高，
     行与行之间基线完全对齐（旧的四宫格因为标签换行导致图标高低不齐） */
  /* 账户 12 宫格：3 列 × 4 行。原先 4 列时图标只有 24px、标签 10.5px，
     手指根本点不准；改成 3 列后单格宽 ≈110px、图标 28px、标签 12px。 */
  .m-acct-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px; order: 2; margin-top: 10px; padding: 10px 8px;
    border-radius: var(--m-r); background: #fff;
    box-shadow: 0 2px 12px rgba(16, 20, 28, .05);
  }
  .m-acct-cell {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 86px; padding: 10px 4px; border-radius: 14px;
    text-decoration: none; color: #5b606a;
  }
  .m-acct-cell:active { background: #f6f7f9; }
  .m-acct-cell-ico {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; color: var(--m-orange);
  }
  .m-acct-cell-ico svg { display: block; width: 28px; height: 28px; }
  .m-acct-cell-label {
    margin-top: 8px; height: 32px; font-size: 12px; line-height: 16px;
    text-align: center; color: #4b5058; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; word-break: break-word;
  }
  .m-acct-cell-ico em {
    position: absolute; top: -5px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: var(--m-orange); color: #fff;
    font-size: 10px; font-style: normal; font-weight: 800; line-height: 17px; text-align: center;
  }
  .m-acct-cell.router-link-active { background: #fff4ec; }
  .m-acct-cell.router-link-active .m-acct-cell-ico { color: #e85d00; }
  .m-acct-cell.router-link-active .m-acct-cell-label { color: #e85d00; font-weight: 800; }
  .account-main { order: 3; min-width: 0; }
  /* 桌面左侧竖排导航（含橙色用户卡）整体让位给上面的宫格，避免两套导航重复 */
  .account-side { display: none; }
  .account-card { display: none; }

  /* ---- 账户：点九宫格项 → 全屏浮层；订单 tab → 4 按钮同页切换 ---- */
  .m-acct-sheet-bar { display: none; }
  .account-main.is-m-sheet {
    position: fixed; inset: 0; z-index: calc(var(--z-sheet) + 20); order: 3; min-width: 0;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--m-bg, #f4f5f7);
    padding: 0 12px 24px;
    /* 只用 opacity 淡入：入场动画若带 transform，会成为内部 position:fixed
       二级弹窗的包含块，弹窗会被浮层的 overflow 裁掉（看起来像被遮住） */
    /* 140ms：子页 JS 已空闲预取，淡入是点开后唯一还能感知到的等待 */
    animation: m-acct-sheet-in .14s ease-out;
  }
  @keyframes m-acct-sheet-in {
    from { opacity: .55; }
    to { opacity: 1; }
  }
  .account-main.is-m-sheet .m-acct-sheet-bar {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: center; gap: 8px;
    height: 52px; margin: 0 -12px 12px; padding: 0 8px;
    background: #fff; border-bottom: 1px solid var(--m-line, #eceef1);
  }
  .m-acct-sheet-bar strong {
    flex: 1; min-width: 0; text-align: center;
    font-size: 15px; font-weight: 500; color: #2c3038;
  }
  .m-acct-sheet-back, .m-acct-sheet-close {
    flex: none; width: 36px; height: 36px; padding: 0;
    border: 0; background: transparent; color: #2c3038;
    font-size: 24px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
  }
  .m-acct-sheet-back svg { width: 20px; height: 20px; display: block; }
  body:has(.account-main.is-m-sheet) { overflow: hidden; }
  .m-orders-tabs {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
    padding: 8px; border-radius: var(--m-r); background: #fff;
    box-shadow: 0 2px 12px rgba(16, 20, 28, .05);
  }
  .m-orders-tab {
    min-height: 46px; padding: 8px 3px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    font-size: 12px; line-height: 1.35; color: #5b606a;
    text-decoration: none; background: #f6f7f9;
  }
  .m-orders-tab.router-link-active { background: #fff1e7; color: #e85d00; font-weight: 700; }
  .m-orders-panel { margin-top: 10px; }

  /* ---- 6. 底部长文案：移动端不展示，入口全部由抽屉承载 ---- */
  .site-footer { display: none; }

  /* ---- 7. 购买主操作：橙色胶囊、金额醒目、拇指可及 ---- */
  .btn-primary, .btn-accent { border-radius: 999px; }
  .input, .select, .textarea { border-radius: 12px; }
  .mobile-buy-bar { background: #fff; padding: 8px 12px; gap: 8px; box-shadow: 0 -8px 22px rgba(16, 20, 28, .1); }
  .mbb-price strong { display: block; font-size: 20px; font-weight: 800; color: var(--m-orange); line-height: 1.1; }
  /* 桌面隐藏规则在文件更后面，这里显式打开 */
  .pay-mobile-bar { display: flex; }

  /* ---- 7.1 商品规格弹层：先选款式/数量，再看价格结算 ---- */
  .sku-sheet {
    display: block; position: fixed; inset: 0; z-index: 340;
    background: rgba(9, 12, 18, .45);
  }
  .sku-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    /* 只占屏高 68%，留出上方商品图可见；内容超出在 body 内滚动 */
    max-height: 68vh; max-height: 68dvh;
    display: flex; flex-direction: column; background: #fff;
    border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(9, 12, 18, .2);
    padding-bottom: var(--safe-b);
  }
  .sku-sheet-close {
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
    border: 0; border-radius: 999px; background: #f2f3f5; color: #6b7280;
    font-size: 14px; line-height: 1;
  }
  .sku-sheet-head {
    flex: none; display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 46px 11px 16px; border-bottom: 1px solid var(--m-line);
  }
  .sku-sheet-img {
    flex: none; width: 66px; height: 66px; border-radius: 11px; object-fit: cover; background: #f2f3f5;
  }
  .sku-sheet-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
  /* 模式标：加购走橙色浅底、下单走橙色实底，一眼分清两条流程 */
  .sku-sheet-mode {
    align-self: flex-start; display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
    border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  }
  .sku-sheet-mode.is-cart { background: #fff1e6; color: #e85d00; }
  .sku-sheet-mode.is-buy { background: var(--m-orange); color: #fff; }
  .sku-sheet-price { font-size: 21px; font-weight: 800; color: var(--m-orange); line-height: 1.1; }
  .sku-sheet-spec { font-size: 12px; color: #6b7280; line-height: 1.4; }
  .sku-sheet-stock { font-size: 11.5px; color: #9aa0aa; }
  .sku-sheet-body { flex: 1; overflow-y: auto; padding: 8px 16px 20px; }
  .sku-sheet-body .spec-group { margin-top: 12px; }
  .sku-sheet-body .spec-name { font-size: 13px; font-weight: 700; color: #2b2f36; margin-bottom: 8px; display: block; }
  .sku-sheet-body .spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .sku-sheet-body .spec-chip {
    min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #e3e6ea;
    background: #f7f8fa; color: #3f4450; font-size: 12.5px; font-weight: 600;
  }
  .sku-sheet-body .spec-chip.is-active { border-color: var(--m-orange); background: #fff4ec; color: var(--m-orange); }
  .sku-sheet-body .spec-chip.is-disabled { opacity: .35; text-decoration: line-through; }
  .sku-sheet-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
  .sku-sheet-qty .spec-name { margin: 0; }
  /* 属性 → 留言 → 价格明细，与详情页顺序一致，但收在同一层里 */
  .sku-sheet-note { margin-top: 16px; }
  .sku-sheet-note .spec-name { margin-bottom: 8px; }
  .sku-sheet-textarea {
    display: block; width: 100%; min-height: 58px; padding: 10px 12px;
    border: 1px solid #e3e6ea; border-radius: 12px; background: #f7f8fa;
    font-size: 13px; line-height: 1.5; color: #2b2f36; resize: none;
  }
  .sku-sheet-note .xs { display: block; margin-top: 4px; text-align: right; }
  .sku-sheet-cost {
    margin-top: 16px; padding: 11px 12px 12px; border: 1px solid var(--m-line);
    border-radius: 12px; background: #fafbfc;
  }
  .sku-sheet-cost-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    margin-bottom: 8px;
  }
  .sku-sheet-cost-head strong { font-size: 13px; font-weight: 800; color: #2b2f36; }
  .sku-sheet-cost .price-row {
    display: flex; justify-content: space-between; gap: 10px; padding: 3px 0;
    font-size: 12px; color: #6b7280;
  }
  .sku-sheet-cost .price-row .value { color: #34383f; font-weight: 700; }
  .sku-sheet-cost .price-row .value.is-note { color: #9aa0aa; font-weight: 500; }
  .sku-sheet-cost-total {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-top: 7px; padding-top: 8px; border-top: 1px dashed #e3e6ea;
  }
  .sku-sheet-cost-total span { font-size: 12px; font-weight: 700; color: #5b606a; }
  .sku-sheet-cost-total strong { font-size: 17px; font-weight: 800; color: var(--m-orange); }
  /* 数量框去掉原生上下箭头，避免和 +/− 按钮叠在一起 */
  .sku-sheet .qty-stepper input::-webkit-outer-spin-button,
  .sku-sheet .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .sku-sheet .qty-stepper input { -moz-appearance: textfield; appearance: textfield; }
  .sku-sheet-foot {
    flex: none; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-top: 1px solid var(--m-line); background: #fff;
  }
  .sku-sheet-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .sku-sheet-sum span { font-size: 11px; color: #9aa0aa; }
  .sku-sheet-sum strong { font-size: 20px; font-weight: 800; color: var(--m-orange); line-height: 1.1; }
  .sku-sheet-foot .btn { flex: 0 0 46%; min-height: 46px; border-radius: 999px; font-weight: 800; }
  /* 加购模式用描边款，与「立即下单」的橙色实心明确区分 */
  .sku-sheet-foot .btn-cart { background: #fff; border: 1.5px solid var(--m-orange); color: var(--m-orange); }
  /* 失败原因写在底栏上方：toast 会被遮罩挡住，这里必须可见 */
  .sku-sheet-foot { flex-wrap: wrap; }
  .sku-sheet-error {
    flex: 0 0 100%; order: -1; margin: 0 0 8px;
    font-size: 11.5px; font-weight: 700; line-height: 1.4; color: #e2382f;
  }
  /* 缺规格的那一组：借用全局的淡红底规则，手机上再收紧一点间距 */
  .sku-sheet-body .spec-group.is-missing { margin: 8px -8px 0; padding: 8px; box-shadow: none; }
  .mobile-buy-bar .btn { min-height: 46px; border-radius: 999px; font-size: 13px; font-weight: 800; }
  .mobile-buy-bar .btn-ghost { border: 1.5px solid var(--m-orange); color: var(--m-orange); background: #fff; }
  .mobile-buy-bar .btn-primary { background: var(--m-orange); border-color: var(--m-orange); }
  .cart-dock, .pay-actions, .forward-actions { background: #fff; }
  .cart-dock-sum .final strong, .pay-actions .is-total strong { font-size: 19px; color: var(--m-orange); }
  .cart-submit, .pay-now, .pay-continue, .forward-actions .btn-primary { border-radius: 999px; }
  .cart-submit, .pay-now, .pay-continue { min-height: 46px; font-weight: 800; }
  .forward-actions .btn { border-radius: 999px; font-weight: 800; }

  /* ---- 8. 认证页 / 文案页：卡片化、大按钮、舒适留白 ---- */
  body:has(.auth-wrap) { background: #fff; }
  .auth-wrap { background: #fff; padding: 10px 18px 20px; }
  .auth-card { max-width: none; }
  .auth-brand { text-align: center; margin-bottom: 14px; }
  .auth-title { font-size: 27px; }
  .auth-form .input { height: 46px; background: #f6f7f9; }
  .auth-form .login-btn, .auth-form .btn-primary.btn-block { min-height: 50px; border-radius: 999px; font-size: 16px; }
  .auth-social .social-btn { border-radius: 999px; min-height: 46px; }
  .content-layout.container, .help-layout.container { padding: 12px; }
  .content-article, .help-article {
    background: #fff; border-radius: var(--m-r); padding: 16px; max-width: none;
  }
  .content-title { font-size: 24px; }
  .help-article-title { font-size: 22px; }
  .float-side { bottom: calc(var(--tabbar-offset) + 6px); }
  /* 首页教学视频：桌面端是左下角带文字的胶囊，移动端收成 40px 圆按钮，
     不再压住商品图；教程入口同时已在首页 8 宫格与抽屉里。 */
  .hv { left: 12px; right: auto; bottom: calc(var(--tabbar-offset) + 14px); width: 40px; height: 40px; }
  .hv-launch {
    width: 40px; height: 40px; padding: 0; border-radius: 999px;
    justify-content: center; box-shadow: 0 6px 18px rgba(16, 20, 28, .14);
  }
  .hv-launch span { display: none; }
  .hv-card { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-offset) + 64px); width: auto; max-width: none; }

  /* ---- 9. 通用页面留白：贴近顶栏，避免首屏出现一段无信息空白 ---- */
  .page { padding-top: 12px; padding-bottom: 16px; }

  /* ---- 10. 商品详情：图 → 标题/价格/规格 → QC 说明，和购物 App 一致 ----
     桌面端是左右两栏（左图 + QC，右购买面板）；移动端把左栏拆成 contents，
     用 order 把购买面板插到图片与 QC 之间，标题与价格才不会掉到首屏外。 */
  /* 基础 .detail-grid 是 grid 且带 align-items:start（那里管的是垂直对齐）。
     切成 flex column 后 align-items 变成管「水平宽度」，start 会让每个子项
     收缩到内容宽度。显式改回 stretch，主图 / 购买面板 / QC / 店铺卡才能左右对齐等宽。 */
  .detail-page .detail-grid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .detail-page .dgal { display: contents; }
  .detail-page .dgal-stage { order: 1; }
  /* 移动端隐藏主图下方的缩略图列表（红框区域）：主图自带 1/N 计数与左右箭头，
     点击主图仍可打开带缩略图的灯箱；桌面端 >640px 继续保留缩略图。 */
  .detail-page .dgal-thumbs { display: none; }
  .detail-page .dgal-count-text { order: 3; }
  .detail-page .dbuy { order: 4; gap: 10px; }
  .detail-page .d-qc-panel { order: 5; margin-top: 0; }
  /* 店铺卡去掉地址行后内容变短，在 align-items:start 下会被收缩成「内容宽度」，
     明显比上面的 QC 面板窄。align-self 双保险；刻意不用 width:100%——本文件没有
     全局 box-sizing:border-box，width:100% 会把 padding/border 顶出容器。 */
  .detail-page .shop-card { order: 6; margin-top: 0; align-self: stretch; }
  .detail-page .d-title { font-size: 17px; }
  .detail-page .d-price { font-size: 24px; }

  /* ---- 11. 转运：固定条里的同意行完整显示，不被 Submit 压住 ---- */
  .forward-actions { gap: 6px; padding-top: 8px; }
  .forward-agree { font-size: 11px; line-height: 1.45; min-height: 34px; align-items: flex-start; }
  .forward-agree span { min-width: 0; }
  body:has(.forward-actions) { padding-bottom: calc(var(--tabbar-offset) + 140px); }

  /* ---- 12. 登录 / 注册：顶栏收成「菜单 + 品牌 + 语言」，不带搜索和拍照 ---- */
  body:has(.auth-wrap) .m-appbar-search { background: transparent; }
  body:has(.auth-wrap) .m-appbar-input,
  body:has(.auth-wrap) .m-appbar-ico,
  body:has(.auth-wrap) .m-appbar-cam { display: none; }
  body:has(.auth-wrap) .m-appbar-search::after {
    content: 'WTCBUY'; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: #18181b;
  }
  /* 顶栏已承担品牌，页面内不再重复第三遍 WTCBUY */
  body:has(.auth-wrap) .auth-brand .eyebrow { display: none; }

  /* ---- 13. 订单确认页：常驻底部（合计 + Submit 一行，完整条款另起一行占满宽） ---- */
  .order-page { padding-bottom: 8px; }
  /* 桌面右侧 Payment 卡整体让位给底部条；移动端条款口径与卡片完全一致 */
  .order-pay { display: none; }
  .order-paybar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-offset); z-index: 92;
    padding: 8px 12px 9px; background: #fff;
    border-top: 1px solid var(--m-line);
    box-shadow: 0 -8px 22px rgba(16, 20, 28, .1);
  }
  .order-paybar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .order-paybar-total {
    display: flex; align-items: baseline; gap: 6px;
    font-size: 11px; color: #9aa0aa; font-weight: 700;
  }
  .order-paybar-total strong { font-size: 19px; line-height: 1.05; color: var(--m-orange); font-weight: 800; }
  /* 完整四条条款独占一整行：与桌面 .order-terms 同文案、同 agreed 校验 */
  .order-paybar-agree {
    flex: 0 0 100%; min-width: 0;
    display: flex; align-items: flex-start; gap: 6px;
    font-size: 11px; line-height: 1.5; color: #6b7280;
  }
  .order-paybar-agree input { flex: none; width: 14px; height: 14px; accent-color: var(--m-orange); margin: 1px 0 0; }
  .order-paybar-agree a { color: #e85d00; text-decoration: underline; }
  .order-paybar-agree.is-error span { color: #e2382f; }
  .order-paybar-btn {
    flex: none; min-width: 104px; min-height: 44px; padding: 0 18px;
    border-radius: 999px; font-size: 14px; font-weight: 800;
  }
  /* 底栏 + 结算条都要留出空间，条款换行后条形变高，留白同步加大 */
  body:has(.order-paybar) { padding-bottom: calc(var(--tabbar-offset) + 128px); }
  body:has(.order-paybar) .float-side { display: none; }

  /* ---- 14. 收藏 / 浏览记录：两列商品卡 ----
     640 段的 `.coupon-grid, .fav-grid, .wallet-top { grid-template-columns: 1fr }`
     会把收藏拉成通栏一条一条；这里按「卡片」重排：两列、方图、标题两行、时间一行 */
  .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fav-card { border: 0; border-radius: 14px; box-shadow: 0 2px 12px rgba(16, 20, 28, .05); }
  .fav-card-img { height: auto; aspect-ratio: 1 / 1; }
  .fav-card-title { padding: 8px 10px 0; min-height: 34px; font-size: 12px; line-height: 1.42; }
  .fav-card-time { padding: 4px 10px 10px; font-size: 10.5px; }
  /* 收藏卡右上角的删除键在触屏上常驻（hover 才出现的写法在手机上点不到） */
  .fav-card-remove { opacity: 1; transform: none; top: 6px; right: 6px; width: 24px; height: 24px; }

  /* ---- 15. 数据卡：手机上两列铺开（原来固定 148px 横滑，德语长文案要拖半天） ---- */
  .wallet-hero { gap: 10px; margin-bottom: 12px; }
  .wallet-stats,
  .share-wallet-cells,
  .share-stat-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; overflow: visible;
  }
  .wallet-stat {
    flex: none; padding: 12px 14px; border-radius: 14px;
  }
  .wallet-stats .wallet-stat:last-child { grid-column: 1 / -1; }
  .wallet-stat-value { font-size: 17px; }
  /* 分佣三格：独立圆角卡，第三格铺满一行 */
  .share-wallet-cells { padding: 12px; }
  .share-wallet-cells > div {
    flex: none; padding: 11px 12px;
    border: 1px solid var(--m-line); border-radius: 12px; background: #fff;
  }
  .share-wallet-cells > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .share-wallet-cells strong { font-size: var(--fs-md); }
  .share-stat-tile { flex: none; }

  /* 钱包筛日期：两个日期一行、Search / Reset 各占半行，避免 Reset 孤零零掉到第三行 */
  .wallet-date-range .wallet-date { width: calc(50% - 22px); }
  .wallet-date-range .btn { flex: 0 0 auto; }

  /* ---- 16. 钱包流水 / 返佣明细：手机端一条一张卡 ---- */
  .wallet-table, .share-rec-table { display: none; }
  .m-wallet-cards, .m-rec-cards { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
  .m-wallet-empty { margin: 0; padding: 8px 2px; font-size: 12px; color: #9aa0aa; }
  .m-wallet-card, .m-rec-card {
    padding: 11px 12px; border: 1px solid var(--m-line); border-radius: 12px;
    background: #fff; display: flex; flex-direction: column; gap: 6px;
  }
  .m-wallet-card-top, .m-rec-card-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .m-wallet-amt { font-family: var(--font-display); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .m-wallet-amt.is-plus { color: var(--success); }
  .m-wallet-amt.is-minus { color: var(--danger, #EF4444); }
  .m-wallet-card-mid, .m-rec-card-mid {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    font-size: 10.5px; color: #9aa0aa;
  }
  .m-wallet-card-foot, .m-rec-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 11px; color: #6b7280;
  }
  .m-wallet-bal { min-width: 0; font-variant-numeric: tabular-nums; }
  .m-wallet-bal em { font-style: normal; color: #c3c8d0; margin: 0 2px; }
  .m-rec-card-top strong { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-900); }
  .m-rec-card-foot b { margin-left: 3px; color: var(--ink-900); font-variant-numeric: tabular-nums; }
  .m-rec-commission b { color: var(--m-orange); }

  /* ---- 17. 收货地址 / 账单地址：手机端一条地址一张卡（桌面端仍是表格） ---- */
  .addr-table { display: none; }
  .m-addr-cards { display: flex; flex-direction: column; gap: 10px; }
  .m-addr-card {
    display: flex; flex-direction: column; gap: 7px;
    padding: 13px 14px; border: 1px solid var(--m-line); border-radius: 14px;
    background: #fff; box-shadow: 0 2px 10px rgba(16, 20, 28, .04);
  }
  .m-addr-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
  .m-addr-top svg { flex: none; width: 17px; height: 17px; color: var(--m-orange); }
  .m-addr-top strong {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13.5px; font-weight: 800; color: var(--ink-900);
  }
  .m-addr-tag {
    flex: none; height: 19px; padding: 0 8px; border-radius: 999px;
    background: #fff4ec; color: #e85d00; font-size: 10px; font-weight: 800; line-height: 19px;
  }
  .m-addr-line { margin: 0; font-size: 12px; line-height: 1.55; color: #5b606a; word-break: break-word; }
  .m-addr-region { font-size: 11px; color: #9aa0aa; word-break: break-word; }
  .m-addr-meta {
    display: flex; flex-wrap: wrap; gap: 4px 14px;
    padding-top: 8px; border-top: 1px solid #f2f3f5;
    font-size: 10.5px; color: #9aa0aa;
  }
  .m-addr-meta span { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
  .m-addr-meta b { font-weight: 700; color: #3a3f47; font-variant-numeric: tabular-nums; word-break: break-all; }
  .m-addr-del {
    flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: -5px 0;
    border: 0; border-radius: 9px; background: #f6f7f9; color: #a9aeb7;
    cursor: pointer; transition: color .18s, background .18s;
  }
  .m-addr-del svg { width: 15px; height: 15px; }
  .m-addr-del:active { background: #fdeceb; color: #e2382f; }
  .m-addr-empty { margin: 0; padding: 18px 0; text-align: center; font-size: 12px; color: #9aa0aa; }

  /* ---- 18. 提现明细：8 列表格在手机上换成一条一张卡 ---- */
  .wd-table-wrap { display: none; }
  .m-wd-cards { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
  .m-wd-card {
    display: flex; flex-direction: column; gap: 7px;
    padding: 12px 13px; border: 1px solid var(--m-line); border-radius: 13px; background: #fff;
  }
  .m-wd-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .m-wd-id { flex: none; font-size: 11px; color: #9aa0aa; }
  .m-wd-amt {
    margin-left: auto; font-family: var(--font-display); font-size: 15px; font-weight: 800;
    color: var(--danger, #e2382f); font-variant-numeric: tabular-nums;
  }
  .m-wd-mid { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #5b606a; }
  .m-wd-sep { color: #c9ced6; }
  .m-wd-acc {
    margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; color: #8b9099;
  }
  .m-wd-foot {
    display: flex; justify-content: space-between; gap: 10px;
    padding-top: 7px; border-top: 1px solid #f2f3f5; font-size: 10.5px; color: #9aa0aa;
  }

  /* ---- 19. 转运申报：一张包裹一张卡（原 6 列表格在手机上要横向拖动才能填完） ---- */
  .tracking-scroll { display: none; }
  .m-fw-rows { display: flex; flex-direction: column; gap: 10px; }
  .m-fw-row {
    display: flex; flex-direction: column; gap: 9px;
    padding: 12px 13px; border: 1px solid var(--m-line); border-radius: 13px; background: #fff;
  }
  .m-fw-top { display: flex; align-items: center; justify-content: space-between; }
  .m-fw-idx {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: #fff4ec; color: #e85d00; font-size: 11px; font-weight: 800;
  }
  .m-fw-del {
    width: 28px; height: 28px; border: 0; border-radius: 9px; background: #f6f7f9;
    color: #a9aeb7; font-size: 12px; line-height: 1;
  }
  .m-fw-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .m-fw-field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: #9aa0aa; }
  .m-fw-field .input { height: 38px; font-size: 13px; }
  .m-fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

  /* ---- 20. 弹窗：手机端「表单 / 长内容」类弹窗占满整屏；
         内容少的（公告、提示、短列表）用 .is-compact 走遮罩居中卡片 ---- */
  .overlay:has(> .modal:not(.confirm-modal):not(.pkg-modal):not(.is-compact)) {
    background: #fff;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .overlay > .modal:not(.confirm-modal):not(.pkg-modal):not(.is-compact) {
    width: 100%; max-width: none; max-height: none; min-height: 100%;
    margin: 0; border-radius: 0; box-shadow: none;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .overlay > .modal.is-compact {
    width: auto; min-width: 0; max-width: calc(100vw - 32px);
    max-height: min(76vh, 620px); min-height: 0;
    margin: 12vh auto 24px; padding: 18px;
    border-radius: 16px; box-shadow: 0 18px 50px rgba(9, 12, 18, .24);
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    overflow-wrap: anywhere; word-break: break-word;
  }
  .overlay > .modal.is-compact :is(img, table, pre, iframe) { max-width: 100%; }
  .overlay > .modal.is-compact :is(.modal-title, .notice-modal-title, p, li, strong) { overflow-wrap: anywhere; }
  .overlay > .modal.is-compact .notice-modal-body,
  .overlay > .modal.is-compact .rule-list,
  .overlay > .modal.is-compact .level-list,
  .overlay > .modal.is-compact .return-status-body { overflow-x: auto; }
  .overlay > .modal.is-compact.card-lg { width: calc(100vw - 32px); }
  /* 长表单：头/底固定，中间字段区自己滚，不用整屏滚到最底才看到保存 */
  .overlay > .settings-modal { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
  .overlay > .settings-modal .settings-grid {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start;
    padding-bottom: 10px; -webkit-overflow-scrolling: touch;
  }
  .overlay > .settings-modal .settings-modal-foot {
    position: static; margin-top: 0; padding-top: 12px;
    border-top: 1px solid var(--m-line);
  }
  /* 条款类弹窗：正文在上，同意/拒绝压到底部 */
  .overlay > .s-terms-modal { display: flex; flex-direction: column; }
  .overlay > .s-terms-modal .s-terms-actions { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--m-line); }
  .overlay > .return-modal .return-foot {
    position: sticky; bottom: 0; z-index: 2;
    padding-top: 10px; margin-bottom: -2px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 26%);
  }
  /* ---- 21. 活动落地页（/promotion、/partners）：单列 + 表格横滑 ---- */
  .camp-page { padding: 12px 12px 30px; }
  .camp-hero { padding: 26px 16px 24px; border-radius: 16px; box-shadow: 0 10px 26px rgba(16, 20, 28, .06); }
  .camp-kicker { font-size: 10.5px; letter-spacing: .12em; }
  .camp-title { font-size: 23px; line-height: 1.3; }
  .camp-copy { font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
  .camp-actions { flex-direction: column; }
  .camp-actions .camp-btn { width: 100%; }
  .camp-btn { height: 44px; padding: 0 18px; font-size: 13px; }
  .camp-section { margin-top: 26px; }
  .camp-section-title { font-size: 18px; margin-bottom: 12px; }
  .camp-section-intro { font-size: 12.5px; }
  .camp-steps, .camp-ministeps, .camp-choose { grid-template-columns: 1fr; gap: 10px; }
  .camp-step { padding: 18px 16px 16px 56px; border-radius: 14px; }
  .camp-step-num { left: 14px; top: 16px; width: 30px; height: 30px; font-size: 13px; }
  .camp-step h3, .camp-ministep h3 { font-size: 14.5px; }
  .camp-step p, .camp-ministep p { font-size: 12.5px; line-height: 1.68; }
  .camp-ministep { padding: 18px 16px; border-radius: 14px; }
  .camp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .camp-stat { min-height: 96px; padding: 14px 10px; border-radius: 14px; }
  .camp-stat strong { font-size: 24px; }
  .camp-stat span { font-size: 11.5px; line-height: 1.35; }
  .camp-stat.is-hot { grid-column: span 2; min-height: 84px; }
  .camp-platform { height: 32px; padding: 0 14px; font-size: 12px; }
  .camp-plan-head { padding: 18px 16px; border-radius: 14px; }
  .camp-plan-head h2 { font-size: 18px; }
  .camp-plan-copy { font-size: 12.5px; }
  .camp-table-wrap { -webkit-overflow-scrolling: touch; }
  .camp-table th, .camp-table td { padding: 10px 12px; font-size: 12.5px; }
  .camp-table th { font-size: 10.5px; letter-spacing: .03em; }
  .camp-important { padding: 12px 14px; }
  .camp-note-list li { font-size: 12.5px; line-height: 1.8; }
  .camp-contact { padding: 22px 16px; border-radius: 14px; }
  .camp-contact .camp-btn { width: 100%; }
  .camp-choose-card { padding: 18px 16px; }

  /* ---- 22. 新手指引（/tutorial）：单列，截图铺满宽度 ---- */
  .tut-page { padding: 12px 12px 30px; }
  .tut-hero { padding: 20px 16px; border-radius: 16px; box-shadow: 0 8px 22px rgba(16, 20, 28, .05); }
  .tut-crumb { margin-bottom: 10px; font-size: 11.5px; }
  .tut-kicker { font-size: 10.5px; }
  .tut-title { font-size: 23px; line-height: 1.3; }
  .tut-lead { font-size: 13px; line-height: 1.7; }
  .tut-meta { gap: 8px; font-size: 11.5px; }
  .tut-switch { display: flex; width: 100%; margin-top: 16px; }
  .tut-switch button { flex: 1; justify-content: center; height: 38px; padding: 0 10px; font-size: 12.5px; }
  .tut-chips { flex-wrap: wrap; gap: 6px; margin-top: 16px; }
  .tut-chips button { flex: none; height: 36px; padding: 0 14px; font-size: 12.5px; }
  .tut-chapter { margin-top: 30px; }
  .tut-chapter-head { gap: 10px; padding-bottom: 12px; }
  .tut-chapter-no { width: 34px; height: 34px; border-radius: 10px; font-size: 12.5px; }
  .tut-chapter-head h2 { font-size: 18px; }
  .tut-chapter-head p { font-size: 12.5px; line-height: 1.6; }
  .tut-step, .tut-page.is-d .tut-step { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .tut-step-txt h3 { font-size: 16.5px; margin-bottom: 8px; }
  .tut-step-txt p { font-size: 13px; line-height: 1.72; }
  .tut-tips li { font-size: 12.5px; line-height: 1.66; }
  .tut-step-media.is-phone .tut-frame {
    max-width: none; padding: 0; border: 1px solid #e9ecf0; border-radius: 14px;
    background: #fff; box-shadow: 0 8px 22px rgba(16, 20, 28, .08);
  }
  .tut-step-media.is-phone .tut-frame img { border-radius: 14px; }
  .tut-help { margin-top: 30px; padding: 22px 16px; border-radius: 14px; }
  .tut-help h2 { font-size: 17px; }
  .tut-help .tut-btn { width: 100%; }

}

/* ============================================================
   追加补丁 · 2026-11-08 p：图片搜索锁定 / 浮层滚动条 /
   收藏按钮并入价格区 / SKU 弹层带图规格 / 首页公告双端位置
   ============================================================ */

/* ---- 1. 图片搜索：上传 + 等结果期间的全屏锁定遮罩 ---- */
.img-search-mask {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(22, 26, 34, .62); backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: progress;
}
.img-search-mask .im-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  min-width: 210px; max-width: calc(100vw - 48px);
  padding: 26px 28px 24px; border-radius: 18px;
  background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.img-search-mask .im-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #ffe6d2; border-top-color: var(--m-orange, #ff6a00);
  animation: im-spin .8s linear infinite;
}
@keyframes im-spin { to { transform: rotate(360deg); } }
.img-search-mask .im-title { font-size: 15px; font-weight: 800; color: #23262d; }
.img-search-mask .im-desc { font-size: 12px; line-height: 1.6; color: #8a909a; text-align: center; }
.img-search-mask .im-thumb {
  width: 46px; height: 46px; border-radius: 10px; object-fit: cover;
  border: 1px solid #eef0f3; background: #f6f7f9;
}

/* ---- 2. 账户全屏浮层：保留滚动、去掉丑滚动条 ---- */
.account-main.is-m-sheet,
.account-main.is-m-sheet * {
  scrollbar-width: none; -ms-overflow-style: none;
}
.account-main.is-m-sheet::-webkit-scrollbar,
.account-main.is-m-sheet *::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---- 3. 收藏并入价格动作组：与刷新/分享/源站同尺寸 ---- */
.detail-page .d-icon-btn.is-fav.is-on {
  color: #e0455f; border-color: #f6c1cb; background: #fff5f6;
}
.detail-page .d-icon-btn.is-fav.is-on:hover { color: #d02d4c; border-color: #ef9fb0; background: #ffeef1; }

/* ---- 4. SKU 弹层：带图规格与详情页同款（图片优先，文字在下） ---- */
/* 下单弹层属性图：由 74px 格子收到 38px，整块高度约缩到原来的 1/3；
   仍是图片在上、规格文字在下，完整值保留在 title 里 */
.sku-sheet-body .d-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.sku-sheet-body .d-style {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 2px;
  border: 1px solid var(--m-line, #e8eaee); border-radius: 7px; background: #fff;
  overflow: hidden; cursor: pointer; transition: border-color .16s, background .16s;
}
.sku-sheet-body .d-style img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: #f4f5f7; }
.sku-sheet-body .d-style span {
  font-size: 9px; font-weight: 600; color: #6b7280; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sku-sheet-body .d-style-more { grid-column: 1 / -1; height: 26px; border: 1px dashed #e3e6ea;
  border-radius: 8px; font-size: 10px; font-weight: 700; color: #e85d00; background: #fff7f1; }
.sku-sheet-body .d-style.is-active { border-color: var(--m-orange, #ff6a00); background: #fff4ec; }
.sku-sheet-body .d-style.is-active span { color: #e85d00; font-weight: 700; }
.sku-sheet-body .d-style.is-disabled { opacity: .35; cursor: not-allowed; }
.sku-sheet-body .d-style.is-disabled span { text-decoration: line-through; }
.sku-sheet-body .d-style-more {
  grid-column: 1 / -1; height: 34px; border: 1px dashed var(--m-line, #e8eaee);
  border-radius: 10px; font-size: 11px; font-weight: 700; color: #e85d00; background: #f6f7f9;
}

/* ---- 5. 首页公告：桌面放在 hero 与轮播之间，上下留白不挨着 ---- */
.home-top { gap: 24px; }
.sec-home-top { padding: 30px 0 22px; }
.notice-bar { box-shadow: 0 2px 14px rgba(16, 24, 40, .045); }

/* 移动端公告条：单薄一行，别把 banner 与九宫格之间撑出一大块空白 */
.m-notice {
  display: flex; align-items: center; gap: 7px;
  /* button 默认由内容撑宽，必须显式撑满，否则只有半条 */
  width: calc(100% - 24px); box-sizing: border-box; min-height: 36px;
  margin: 8px 12px 10px; padding: 5px 9px;
  border: 1px solid var(--m-line, #eceef1); border-radius: 11px;
  background: #fff; box-shadow: 0 1px 6px rgba(16, 20, 28, .045);
  text-align: left; cursor: pointer;
}
.m-notice-ico {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #e85d00; background: #fff1e7;
}
.m-notice-ico svg { width: 13px; height: 13px; }
.m-notice-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.m-notice-label {
  flex: none; font-size: 9px; font-weight: 800; letter-spacing: .04em; color: #e85d00;
  padding: 2px 5px; border-radius: 5px; background: #fff1e7;
}
.m-notice-title {
  flex: 1; min-width: 0;
  font-size: 12px; font-weight: 650; color: #2b2f36;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-notice-arrow { flex: none; width: 12px; height: 12px; color: #b6bbc4; }
/* 公告详情弹窗：一个标题 + 一段内容；宽度不够就在弹窗内滚，不撑破视口 */
.notice-modal-title { flex: 1; min-width: 0; }
.notice-modal-body {
  scrollbar-width: none; -ms-overflow-style: none;
  overflow-wrap: anywhere; word-break: break-word;
}
.notice-modal-body::-webkit-scrollbar { display: none; width: 0; }

/* 图片搜索锁定期间禁止背景滚动（Esc / 刷新等按键由 App 根组件统一拦截） */
body.is-img-busy { overflow: hidden !important; }

/* 移动端：桌面公告块整体让位，改由 .m-home 内的公告条承载 */
@media (max-width: 640px) {
  /* 移动端首页改用 .m-home 内的公告条，桌面公告块整块让位 */
  .sec-home-top { display: none; }
  .sec-home-top .notice-bar { display: none; }
  .notice-bar { box-shadow: none; }
  /* 移动端公告条只留标题，不再显示「ANNOUNCEMENT」标签（桌面公告块不受影响） */
  .m-notice-label { display: none; }
  .img-search-mask .im-card { padding: 22px 24px 20px; }
  .notice-modal.is-compact { padding: 18px; }
  .notice-modal-title { font-size: 16px; }
  .notice-modal-body {
    font-size: 13px; line-height: 1.75; max-height: 50vh;
    overflow-x: auto; overflow-y: auto;
  }
}

/* ============================================================
   追加补丁 · 2026-11-08 q：可搜索国家选择器 / 订单状态 tab /
   紧凑型遮罩弹窗 / 移动端公告条瘦身
   ============================================================ */

/* ---- 国家 / 地区选择器：替换原生 select，桌面手机同一套交互 ---- */
.cpk { position: relative; display: block; width: 100%; min-width: 0; }
.cpk-trigger {
  appearance: none; -webkit-appearance: none;
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding-right: 12px;
  font: inherit; text-align: left; cursor: pointer;
}
.cpk-trigger.is-placeholder .cpk-value { color: #9aa1ab; }
.cpk-trigger.is-invalid { border-color: var(--danger, #ef4444); }
.cpk-trigger:focus, .cpk.is-open .cpk-trigger { outline: none; border-color: var(--brand, #ff6a00); }
.cpk-trigger:disabled { opacity: .6; cursor: not-allowed; }
.cpk-value { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cpk-chev { flex: none; width: 15px; height: 15px; color: #9aa1ab; transition: transform .18s ease; }
.cpk.is-open .cpk-chev { transform: rotate(180deg); }
/* teleport 到 body：不受 .overlay 的 backdrop-filter / overflow 影响，
   fixed 坐标由按钮 getBoundingClientRect 算出，按钮在哪菜单就在哪 */
.cpk-menu {
  position: fixed; z-index: 900;
  display: flex; flex-direction: column; min-height: 0;
  border: 1px solid #e6e8ec; border-radius: 14px; background: #fff;
  box-shadow: 0 18px 48px rgba(9, 12, 18, .2); overflow: hidden;
}
.cpk-search-row {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border-bottom: 1px solid #eef0f3;
}
.cpk-search-row svg { flex: none; width: 16px; height: 16px; color: #9aa1ab; }
.cpk-search {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 26px; padding: 0;
  border: 0; outline: none; background: transparent;
  font: inherit; font-size: 13px; color: #2c3038;
}
.cpk-search::placeholder { color: #a9aeb7; }
.cpk-hot {
  flex: none; display: flex; flex-wrap: wrap; gap: 5px;
  padding: 8px 10px; border-bottom: 1px solid #f1f2f5;
}
.cpk-hot-btn {
  min-width: 34px; height: 24px; padding: 0 7px;
  border: 1px solid #eceef1; border-radius: 7px; background: #f7f8fa;
  font: 700 11px/1 var(--font-mono, monospace); color: #5b606a;
}
.cpk-hot-btn:hover, .cpk-hot-btn:focus-visible { border-color: #ffb87a; background: #fff1e7; color: #e85d00; outline: none; }
.cpk-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 5px; scrollbar-width: thin;
}
.cpk-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 36px; padding: 6px 10px;
  border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 13px; color: #2c3038; text-align: left; cursor: pointer;
}
.cpk-option.is-active, .cpk-option:hover { background: #f4f5f7; }
.cpk-option.is-selected { background: #fff1e7; color: #e85d00; font-weight: 700; }
.cpk-option.is-manual { color: #e85d00; font-weight: 700; }
.cpk-name { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cpk-name i { margin-left: 6px; font-style: normal; font-size: 11px; color: #a2a8b2; }
.cpk-code { flex: none; font: 700 11px/1 var(--font-mono, monospace); color: #a2a8b2; }
.cpk-option.is-selected .cpk-code, .cpk-option.is-manual .cpk-code { color: #e85d00; }
.cpk-empty { padding: 18px 10px; text-align: center; font-size: 12px; color: #9aa1ab; }
.cpk-foot {
  flex: none; padding: 7px 11px; border-top: 1px solid #f1f2f5;
  font-size: 10.5px; color: #a2a8b2; background: #fafbfc;
}
@media (max-width: 640px) {
  .cpk-trigger { height: 40px; font-size: 13px; }
  .cpk-menu { border-radius: 12px; }
  .cpk-option { min-height: 42px; font-size: 13px; }
  .cpk-hot { gap: 6px; }
  .cpk-hot-btn { height: 28px; min-width: 38px; }
}

/* ============================================================
   2026-11-08 r：移动弹层 / 底栏收敛 / 账单地址弹窗
   ============================================================ */

/* ---- 1. 语言与货币弹层：整页锁滚动，只有选项区滚，地址栏不再跟着跳 ---- */
html.is-sheet-locked, body.is-sheet-locked { overflow: hidden !important; overscroll-behavior: none; }
body.is-sheet-locked { position: fixed; left: 0; right: 0; width: 100%; }
.lang-overlay .sheet { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
@media (max-width: 640px) {
  .lang-overlay { padding: 12px; }
  .lang-overlay .sheet {
    width: 100%; max-width: 420px;
    max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }
  .lang-overlay .sheet-head { padding: 14px 16px 10px; }
  .lang-overlay .sheet-sub { font-size: 11px; margin-top: 2px; }
  .lang-overlay .sheet-body { padding: 12px 16px 14px; gap: 14px; }
  .lang-overlay .sheet-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .lang-overlay .lc-label { margin-bottom: 7px; font-size: 10px; }
  .lang-overlay .lang-grid, .lang-overlay .cur-grid { gap: 6px; }
  .lang-overlay .lang-item, .lang-overlay .cur-item { height: 34px; font-size: 12px; }
  .lang-overlay .sheet-foot .btn { min-height: 38px; padding: 0 22px; border-radius: 999px; }
}

/* ---- 2. 商品详情 / 下单确认 / 收银台 / 支付页：去掉底部 4 tab ----
   把 --tabbar-offset 归零，原本「贴在 tab 之上」的购买条 / 结算条自动落到屏幕底。 */
@media (max-width: 640px) {
  body.no-tabbar { --tabbar-offset: 0px; }
  body.no-tabbar .tab-bar { display: none; }
  body.no-tabbar :is(.mobile-buy-bar, .pay-mobile-bar, .pay-actions, .order-paybar, .cart-dock, .forward-actions) {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* ---- 3. 账单地址：遮罩居中弹窗（桌面 / 移动同构），字段区内部滚动 ---- */
.pay-addr-overlay { display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.overlay > .modal.is-compact.pay-addr-modal {
  width: min(560px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  min-height: 0; margin: 0; padding: 0; border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 70px rgba(9, 12, 18, .28);
}
.pam-head {
  flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--line);
}
.pam-head strong { font-family: var(--font-display); font-size: 17px; }
.pam-head p { margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }
.pam-head > .icon-btn, .pam-head > .pam-back { flex: none; }
.pam-back { min-height: 32px; padding: 5px 12px; font-size: 12px; }
.pam-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.pam-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 16px 20px 18px; scrollbar-width: thin;
}
.pam-foot {
  flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #fff;
}
.pam-section + .pam-section { margin-top: 16px; }
.pam-section-title {
  margin-bottom: 9px; font-size: 10px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint);
}
.pam-grid.pay-addr-grid { gap: 10px 12px; }
.pam-grid.pay-addr-grid .is-wide { grid-column: 1 / -1; }
.pam-grid.pay-addr-grid label > span { font-size: 10.5px; }
.pam-grid.pay-addr-grid .input, .pam-grid.pay-addr-grid .cpk-trigger { height: 40px; }
.pam-grid.pay-addr-grid .pay-phone-dial { flex: 0 0 84px; width: 84px; }
.pam-foot .btn { min-width: 116px; }

/* 未填账单地址时的占位：只给一个「立即填写」入口，不展示空支付方式 */
.pay-addr-gate {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 46px 20px 52px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
}
.pay-addr-gate-ico {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  color: #e85d00; background: #fff1e7;
}
.pay-addr-gate-ico svg { width: 24px; height: 24px; }
.pay-addr-gate h2 { font-family: var(--font-display); font-size: 18px; }
.pay-addr-gate p { max-width: 380px; font-size: 12.5px; line-height: 1.7; color: var(--text-muted); }
.pay-addr-gate .btn { min-width: 180px; margin-top: 6px; }

@media (max-width: 640px) {
  .pay-addr-overlay { padding: 12px; }
  .overlay > .modal.is-compact.pay-addr-modal {
    width: calc(100vw - 24px); max-width: none;
    max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .pam-head { padding: 15px 16px 12px; }
  .pam-body { padding: 14px 16px 16px; }
  .pam-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .pam-grid.pay-addr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pam-grid.pay-addr-grid .is-wide { grid-column: 1 / -1; }
  .pam-foot .btn { flex: 1; min-width: 0; }
  .pay-addr-gate { padding: 36px 16px 42px; }
}

/* ============================================================
   账户九宫格 → 全屏浮层里的「弹窗套弹窗」
   ------------------------------------------------------------
   九宫格点任意项会打开 .account-main.is-m-sheet（z-index 220）。
   页面自己的 .overlay 是它的后代（还受 220 这个 stacking context 约束），
   而 confirmDialog() 独立挂到 body，是浮层的兄弟节点：
   旧 z-index 200 < 220 → 取消订单等确认框被整块浮层盖住，
   看不到也点不到「取消 / 确定」。这里统一把浮层存在时的所有遮罩抬到浮层之上。
   ============================================================ */
body:has(.account-main.is-m-sheet) .overlay { z-index: calc(var(--z-sheet) + 60); }
body:has(.account-main.is-m-sheet) .overlay.pkg-overlay.is-stacked { z-index: calc(var(--z-sheet) + 70); }
/* 二级弹窗打开时锁住浮层自身滚动，手指不会滑到弹窗背后的列表 */
body:has(.account-main.is-m-sheet):has(.overlay) .account-main.is-m-sheet {
  overflow: hidden; overscroll-behavior: contain;
}

/* 确认框在手机上居中成卡片并让按钮撑满，避免按钮落在视野外 */
@media (max-width: 640px) {
  .overlay:has(> .confirm-modal) {
    display: flex; align-items: center; justify-content: center;
    padding: 16px; overflow-y: auto;
  }
  .overlay > .confirm-modal {
    width: calc(100vw - 32px); max-width: 360px; min-width: 0;
    margin: auto; padding: 18px; border-radius: 16px;
    box-shadow: 0 18px 50px rgba(9, 12, 18, .24);
  }
  .confirm-actions { gap: 8px; }
  .confirm-actions .btn { flex: 1 1 0; min-width: 0; }
}

/* ============================================================
   账户中心 · 收货/账单地址弹窗：遮罩居中卡片 + 双列分区表单
   ------------------------------------------------------------
   旧版在手机上被全屏规则撑成 100% 高、单列、行距 14px，
   内容只有半屏却留一大片空白，底部按钮悬在中间。
   现在头/尾固定、字段区自己滚，两列紧凑排布，与 pay 页账单地址同构。
   ============================================================ */
.overlay.addr-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow: hidden;
}
.overlay.addr-overlay > .modal.addr-modal {
  width: min(560px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  min-height: 0; height: auto; margin: 0; padding: 0;
  border-radius: 18px; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 24px 70px rgba(9, 12, 18, .28);
}
.overlay.addr-overlay > .modal.addr-modal .settings-modal-head {
  flex: none; margin: 0; padding: 16px 20px 13px;
  border-bottom: 1px solid var(--line);
}
.overlay.addr-overlay > .modal.addr-modal .settings-modal-head strong { font-size: 17px; }
.overlay.addr-overlay > .modal.addr-modal .settings-grid.is-addr {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px; align-content: start;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 14px 20px 18px; scrollbar-width: thin;
}
.overlay.addr-overlay > .modal.addr-modal .settings-grid.is-addr .field-full { grid-column: 1 / -1; }
.addr-section {
  grid-column: 1 / -1; margin-top: 4px; padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: 10px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint);
}
.addr-section:first-child { margin-top: 0; }
.overlay.addr-overlay > .modal.addr-modal .field { gap: 4px; min-width: 0; }
.overlay.addr-overlay > .modal.addr-modal .field-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--text-muted);
}
.overlay.addr-overlay > .modal.addr-modal .input,
.overlay.addr-overlay > .modal.addr-modal .cpk-trigger { height: 40px; font-size: 13px; }
.overlay.addr-overlay > .modal.addr-modal .field-hint,
.overlay.addr-overlay > .modal.addr-modal .field-error { font-size: 10.5px; }
.overlay.addr-overlay > .modal.addr-modal .field-check { padding-top: 2px; }
.overlay.addr-overlay > .modal.addr-modal .settings-modal-foot {
  flex: none; position: static; margin: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #fff;
}

@media (max-width: 640px) {
  .overlay.addr-overlay { padding: 12px; }
  .overlay.addr-overlay > .modal.addr-modal {
    width: calc(100vw - 24px); max-width: none;
    max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .overlay.addr-overlay > .modal.addr-modal .settings-modal-head { padding: 14px 16px 11px; }
  .overlay.addr-overlay > .modal.addr-modal .settings-grid.is-addr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 10px; padding: 12px 16px 16px;
  }
  .overlay.addr-overlay > .modal.addr-modal .settings-modal-foot {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .overlay.addr-overlay > .modal.addr-modal .settings-modal-foot .btn { flex: 1 1 0; min-width: 0; }
}

/* ============================================================
   订单操作按钮：一套形状，只保留语义色
   原来四个按钮橙实心 / 灰描边 / 红浅底 / 绿实心各一种，排在一起很杂。
   ============================================================ */
.btn.order-act,
.order-sku-btns .btn.order-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 30px; padding: 0 11px; min-width: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-700);
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0;
  white-space: nowrap; box-shadow: none; transform: none;
  transition: border-color .16s, background .16s, color .16s;
}
.btn.order-act:hover:not(:disabled) {
  border-color: var(--ink-900); background: var(--bg-soft); color: var(--ink-900); transform: none;
}
.btn.order-act:active:not(:disabled) { transform: none; }
.btn.order-act:disabled { opacity: .5; }
.oa-ico { width: 12px; height: 12px; flex: none; }
.btn.order-act.is-primary,
.btn.order-act.is-solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.order-act.is-primary:hover:not(:disabled),
.btn.order-act.is-solid:hover:not(:disabled) { background: var(--accent-press); border-color: var(--accent-press); color: #fff; }
.btn.order-act.is-danger { color: var(--danger); border-color: rgba(239, 68, 68, .34); background: #fff; }
.btn.order-act.is-danger:hover:not(:disabled) { background: #FEF2F2; border-color: var(--danger); color: var(--danger); }
.btn.order-act.has-badge { position: relative; overflow: visible; }
.btn.order-act .msg-unread-badge {
  top: -7px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; font-size: 9.5px;
}
.order-sku-btns { gap: 6px; }

/* ============================================================
   退单状态 / 订单留言：统一卡片弹窗（头尾固定，中间滚动）
   ============================================================ */
.overlay > .modal.rs-modal,
.overlay > .modal.mb-modal {
  width: min(520px, calc(100vw - 32px)); max-width: none;
  max-height: min(82vh, 700px); min-height: 0;
  margin: 9vh auto 24px; padding: 0;
  border-radius: 18px; box-shadow: 0 24px 70px rgba(12, 16, 24, .24);
  display: flex; flex-direction: column;
  overflow: hidden; overflow-wrap: normal; word-break: normal;
}
.rs-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex: none; padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.rs-head-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rs-eyebrow { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; color: var(--accent-press); }
.rs-head-copy > strong { font-family: var(--font-display); font-size: 18px; line-height: 1.25; color: var(--ink-900); }
.rs-order { font-size: 11.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-order b { color: var(--ink-700); font-weight: 600; }
.rs-close {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--text-muted); cursor: pointer;
}
.rs-close:hover { background: #eef0f3; color: var(--ink-900); }
.rs-scroll, .mb-scroll {
  flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 16px 18px 18px; background: #fafbfc;
  display: flex; flex-direction: column; gap: 12px;
}
.rs-foot, .mb-foot {
  flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #fff;
}

/* 状态横幅 */
.rs-hero {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 13px 14px; border: 1px solid #ffdfc2; border-radius: 14px;
  background: linear-gradient(120deg, #fff3e9, #fffaf6);
}
.rs-hero.is-rejected { border-color: #fecaca; background: linear-gradient(120deg, #fff1f1, #fff8f8); }
.rs-hero.is-refunded { border-color: #b7ecd9; background: linear-gradient(120deg, #effbf6, #f7fefc); }
.rs-hero.is-returning { border-color: #c7d7fe; background: linear-gradient(120deg, #f1f5ff, #f9fbff); }
.rs-hero-ico {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  display: grid; place-items: center; background: var(--brand); color: #fff;
}
.rs-hero.is-rejected .rs-hero-ico { background: #DC2626; }
.rs-hero.is-refunded .rs-hero-ico { background: #0F9D76; }
.rs-hero.is-returning .rs-hero-ico { background: #2563EB; }
.rs-hero-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.rs-hero-copy > span { font-size: 10.5px; color: var(--text-faint); }
.rs-hero-copy > strong { font-size: 16px; color: var(--ink-900); overflow-wrap: anywhere; }
.rs-hero-tag {
  flex: none; max-width: 44%; padding: 5px 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 700; color: var(--ink-700); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 商品摘要 + 信息网格 */
.rs-product {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.rs-product > img, .rs-product-ph {
  width: 48px; height: 48px; flex: none; border-radius: 9px;
  object-fit: cover; background: var(--bg-soft);
  display: grid; place-items: center; color: var(--text-faint); font-size: 18px;
}
.rs-product-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rs-product-title { font-size: 12.5px; font-weight: 600; color: var(--ink-800); line-height: 1.4; }
.rs-product-meta { font-size: 11px; color: var(--text-faint); overflow-wrap: anywhere; }
.rs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rs-fact {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
}
.rs-fact > span { font-size: 10px; color: var(--text-faint); }
.rs-fact > strong { font-size: 12.5px; font-weight: 650; color: var(--ink-800); overflow-wrap: anywhere; }
.rs-fact > strong.rs-amount { color: var(--accent-press); }
/* 奇数个信息卡时最后一张撑满整行，不留半格空白 */
.rs-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 沟通记录 */
.rs-section { display: flex; flex-direction: column; gap: 9px; }
.rs-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 750; color: var(--ink-800); }
.rs-section-title em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--text-faint); }
.rs-msg { display: flex; align-items: flex-start; gap: 8px; }
.rs-msg.is-me { flex-direction: row-reverse; }
.rs-avatar {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; background: var(--ink-700);
}
.rs-msg.is-me .rs-avatar { background: var(--brand); }
.rs-bubble { max-width: 82%; min-width: 0; padding: 9px 11px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.rs-msg.is-me .rs-bubble { background: #fff4ec; border-color: #ffdfc4; }
.rs-bubble b { display: block; font-size: 10px; color: var(--text-faint); margin-bottom: 3px; }
.rs-bubble p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-700); overflow-wrap: anywhere; }
.rs-empty {
  display: flex; align-items: center; gap: 9px; padding: 14px;
  border: 1px dashed var(--line); border-radius: 12px; background: #fff;
  font-size: 11.5px; color: var(--text-faint); line-height: 1.55;
}
.rs-empty svg { flex: none; }
.rs-note {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px;
  border: 1px solid #FED7AA; border-radius: 11px; background: #FFF7ED;
  font-size: 11.5px; color: #9A3412; line-height: 1.55;
}
.rs-note > span {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; background: #EA580C; color: #fff; font-size: 10px; font-weight: 800;
}
.rs-note p { margin: 0; }

/* 留言板 */
.mb-welcome {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; border: 1px solid #ffdfc2; border-radius: 12px; background: #fff7f0;
}
.mb-welcome-ico {
  flex: none; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; background: var(--brand); color: #fff;
}
.mb-welcome strong { display: block; font-size: 12px; color: #9A3412; }
.mb-welcome p { margin: 3px 0 0; font-size: 11px; line-height: 1.55; color: #9A3412; }
.mb-list { display: flex; flex-direction: column; gap: 9px; }
.mb-bubble {
  max-width: 84%; min-width: 0; padding: 9px 12px; border-radius: 14px;
  font-size: 12px; line-height: 1.6; background: #fff; border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.mb-bubble.agent { align-self: flex-start; border-bottom-left-radius: 5px; }
.mb-bubble.me { align-self: flex-end; background: var(--brand); border-color: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.mb-time { font-size: 10px; color: var(--text-faint); margin-top: 4px; }
.mb-bubble.me .mb-time { color: rgba(255, 255, 255, .72); }
.mb-loading { padding: 18px; text-align: center; font-size: 12px; color: var(--text-faint); }
.mb-empty {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 26px 16px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; text-align: center;
}
.mb-empty-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--text-faint); margin-bottom: 4px;
}
.mb-empty strong { font-size: 12.5px; color: var(--ink-800); }
.mb-empty p { margin: 0; font-size: 11px; line-height: 1.55; color: var(--text-faint); }
.mb-input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; }
.mb-send {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 15px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 750; cursor: pointer;
}
.mb-send:hover:not(:disabled) { background: var(--accent-press); }
.mb-send:disabled { opacity: .5; cursor: not-allowed; }
.mb-send svg { flex: none; }

@media (max-width: 640px) {
  .overlay > .modal.is-compact.rs-modal,
  .overlay > .modal.is-compact.mb-modal {
    width: calc(100vw - 24px); max-width: none;
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    margin: 16px auto; padding: 0; border-radius: 16px;
    display: flex; flex-direction: column; overflow: hidden;
    overflow-wrap: normal; word-break: normal;
  }
  .rs-head { padding: 14px 15px 12px; }
  .rs-scroll, .mb-scroll { padding: 13px 15px 15px; }
  .rs-facts { gap: 7px; }
  .rs-foot, .mb-foot { padding: 10px 15px calc(10px + env(safe-area-inset-bottom)); }
  .rs-foot .btn.order-act { flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .mb-input, .mb-send { height: 36px; }
  .mb-send { padding: 0 12px; }
  /* 移动端 .btn-sm 有全局 min-height:40px，这里显式统一到 34px：
     既保住点击区域，又让四个操作按钮尽量排在同一行 */
  .order-sku-btns { gap: 5px; }
  .order-sku-btns .btn.order-act {
    height: 34px; min-height: 34px; padding: 0 8px; font-size: 10.5px;
  }
  /* 四个操作按钮时排 2×2 等宽，避免第二行只剩一个孤零零的胶囊；
     三个及以下仍保持 flex 一行（v-if 未渲染的节点不会参与 nth-child 计数） */
  .order-sku-btns:has(> .order-act:nth-child(4)) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  }
  .order-sku-btns:has(> .order-act:nth-child(4)) .btn.order-act {
    width: 100%; max-width: none; padding: 0 6px;
  }
}

/* ============================================================
   订单角标：底部「订单」tab 总数 + 订单中枢顶部 4 个分类数量
   （对齐参考站 updateOrderMenuBadge，0 不显示）
   ============================================================ */
.m-orders-tab-badge {
  flex: none; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--m-orange, #ff6a00); color: #fff;
  font-size: 9.5px; font-weight: 800; font-style: normal;
  line-height: 16px; text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 4px rgba(255, 106, 0, .25);
}
.m-orders-tab.router-link-active .m-orders-tab-badge {
  background: #e85d00; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(232, 93, 0, .3);
}
/* 选中项本身是橙色胶囊，角标反白才看得清 */
.tab-bar-item.is-active .badge {
  background: #fff; color: #e85d00;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .28);
}

/* ============================================================
   提交包裹 ③：优惠券入口贴提交栏 / 弹窗瘦身 / 小屏优化
   ============================================================ */

/* ---- 1. 优惠券条：独占一行贴在提交按钮上方，整条可点 ---- */
.pkg-coupon-bar {
  flex: 1 1 100%; order: -1; display: flex; align-items: center; gap: 8px;
  /* 券名再长也不能把「去兑换」挤出去：min-width:0 + 内部省略号 */
  min-width: 0; max-width: 100%; box-sizing: border-box;
  margin-bottom: 2px; padding: 6px 7px 6px 9px;
  border: 1px dashed #ffc38f; border-radius: 12px;
  background: linear-gradient(90deg, #fff5ec, #fffdfb);
}
.pkg-coupon-bar-main {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.pkg-coupon-bar-main:hover .pkg-coupon-bar-copy em { color: #d35400; }
.pkg-coupon-bar:hover { border-color: #ffb877; background: linear-gradient(90deg, #fff1e2, #fffaf5); }
.pkg-coupon-bar-ico {
  flex: none; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; background: #ffe8d6; color: #e85d00;
}
.pkg-coupon-bar-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pkg-coupon-bar-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pkg-coupon-bar-copy strong { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #e85d00; white-space: nowrap; }
.pkg-coupon-bar-copy em {
  display: block; min-width: 0;
  font-style: normal; font-size: 11.5px; font-weight: 650; color: #2b2f36;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pkg-coupon-bar-copy em.is-empty { color: #c25a12; font-weight: 600; }
.pkg-coupon-bar-save { flex: none; font-size: 11px; font-weight: 800; color: #e85d00; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pkg-coupon-bar-arrow { flex: none; color: #e08b53; }
.pkg-coupon-bar-redeem {
  flex: none; height: 30px; padding: 0 10px; border: 1px solid #ffcb9f; border-radius: 999px;
  background: #fff; color: #e85d00; font-size: 11px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.pkg-coupon-bar-redeem:hover { background: #fff1e7; border-color: #ffb877; }

/* ---- 2. 提交包裹弹窗：从「几乎整页」收成居中卡片 ---- */
@media (max-width: 768px) {
  .pkg-overlay { align-items: center; padding: 14px 8px; }
  .pkg-modal, .pkg-modal.is-wide, .pkg-modal-sm {
    max-height: min(86dvh, 720px);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 18px 50px rgba(9, 12, 18, .28);
  }
}
@media (max-width: 640px) {
  .pkg-overlay { padding: 12px 8px calc(12px + env(safe-area-inset-bottom)); }
  .pkg-modal, .pkg-modal.is-wide, .pkg-modal-sm { max-height: min(86dvh, 680px); }
  .pkg-head { padding: 10px 12px 8px; gap: 8px; }
  .pkg-title { margin: 1px 0 2px; font-size: 15px; }
  .pkg-sub { font-size: 10.5px; line-height: 1.35; max-height: 2.8em; overflow: hidden; }
  .pkg-body { padding: 9px 10px 11px; }
  .pkg-estimate { gap: 9px; }
  .pkg-estimate-main { gap: 7px; }
  .pkg-block { padding: 8px 9px; border-radius: 10px; }
  .pkg-block-head { margin-bottom: 5px; }
  .pkg-block-title { font-size: 12px; }
  .pkg-block-sub { font-size: 10px; line-height: 1.3; }
  .pkg-ins-list.is-single { grid-template-columns: minmax(0, 1fr); }
  .pkg-ins { padding: 6px 8px; gap: 8px; }
  .pkg-ins-price { font-size: 13px; }
  .pkg-prot-list { gap: 5px; }
  .pkg-route, .pkg-addr { padding: 9px 10px; }
  .pkg-fee-head { padding: 10px 12px 8px; }
  .pkg-fee-head strong { font-size: 19px; }
  .pkg-fee-rows { padding: 8px 12px; gap: 5px; }
  .pkg-empty { padding: 16px 8px; }
  .pkg-foot { padding: 8px 10px calc(9px + env(safe-area-inset-bottom)); gap: 6px; }
  .pkg-foot-facts { gap: 2px 10px; font-size: 10.5px; }
  .pkg-foot-btns { gap: 6px; }
  .pkg-foot-btns .btn { min-height: 36px; }
  /* 移动端券条：加深底色 + 橙色图标块 + 箭头胶囊，明确「整条可点」 */
  .pkg-coupon-bar {
    padding: 7px 7px 7px 8px; gap: 9px; border-radius: 13px;
    border: 1px solid #ffd3ae;
    background: linear-gradient(96deg, #fff0df 0%, #fff8f1 58%, #fff 100%);
    box-shadow: 0 2px 10px rgba(232, 93, 0, .1);
  }
  .pkg-coupon-bar-ico {
    width: 30px; height: 30px; border-radius: 10px;
    background: linear-gradient(135deg, #ff9648, #f26b00); color: #fff;
    box-shadow: 0 2px 6px rgba(242, 107, 0, .28);
  }
  .pkg-coupon-bar-copy { gap: 2px; }
  .pkg-coupon-bar-copy strong { font-size: 10.5px; }
  .pkg-coupon-bar-copy em { font-size: 12.5px; }
  .pkg-coupon-bar-copy em.is-empty { color: #e85d00; font-weight: 650; }
  .pkg-coupon-bar-save {
    padding: 0 6px; border-radius: 999px; background: #ffe6d2;
    font-size: 10.5px; line-height: 16px;
  }
  .pkg-coupon-bar-arrow {
    width: 13px; height: 13px; padding: 3px; box-sizing: content-box;
    border-radius: 999px; background: #fff; color: #e85d00;
    box-shadow: 0 1px 4px rgba(232, 93, 0, .16);
  }
  .pkg-coupon-bar-redeem {
    height: 30px; padding: 0 9px; font-size: 10.5px; font-weight: 800;
    border-color: #ffbd8c; background: #fff;
  }
}

/* ---- 3. 其它遮罩弹窗：原本 100dvh-24px / 94vh，统一收窄高度上限 ---- */
@media (max-width: 640px) {
  .lang-overlay .sheet { max-height: min(88dvh, 700px); }
  .overlay > .modal.is-compact.pay-addr-modal,
  .overlay.addr-overlay > .modal.addr-modal { max-height: min(86dvh, 680px); }
  .overlay > .modal.is-compact.rs-modal,
  .overlay > .modal.is-compact.mb-modal { max-height: min(84dvh, 660px); }
  .return-modal, .qc-share-modal, .settings-modal { max-height: min(86dvh, 680px); }
  .overlay > .modal.is-compact:not(.rs-modal):not(.mb-modal):not(.pay-addr-modal):not(.addr-modal) {
    max-height: min(76vh, 560px);
  }
}

/* ---- 4. 小屏手机（≤700px 高）：不浪费上下留白，压缩头尾让内容区更可用 ---- */
@media (max-width: 640px) and (max-height: 700px) {
  .pkg-modal, .pkg-modal.is-wide, .pkg-modal-sm,
  .lang-overlay .sheet,
  .overlay > .modal.is-compact.pay-addr-modal,
  .overlay.addr-overlay > .modal.addr-modal,
  .overlay > .modal.is-compact.rs-modal,
  .overlay > .modal.is-compact.mb-modal,
  .return-modal, .qc-share-modal, .settings-modal {
    max-height: calc(100dvh - 28px);
  }
  .pkg-head, .pam-head, .rs-head, .mb-head,
  .overlay.addr-overlay > .modal.addr-modal .settings-modal-head,
  .lang-overlay .sheet-head { padding-top: 10px; padding-bottom: 8px; }
  .pkg-sub { display: none; }
  .pkg-foot, .pam-foot, .rs-foot, .mb-foot,
  .lang-overlay .sheet-foot {
    padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .pkg-body, .pam-body, .rs-scroll, .mb-scroll,
  .lang-overlay .sheet-body { padding-top: 9px; padding-bottom: 9px; }
  .pkg-block { padding: 7px 8px; }
  .pkg-estimate-main { gap: 6px; }
}

/* ============================================================
   移动端紧凑化 · 第十四批（用户反馈「这块版面占位太大」）
   ------------------------------------------------------------
   ① 账户各面板：删掉与浮层顶栏（.m-acct-sheet-bar）重复的大标题行，
      右侧操作按钮（代购下单 / 运费估算）与下方筛选行并排成一条
   ② 排练：四步说明 → 单行细进度、状态筛选 → 三等分胶囊、服务费 → 单行小字
   ③ 钱包：余额卡两行（金额 + 按钮并排）、收支三宫格、筛选横滑单行
   ④ 我的账户：标题并成一行、5 个 tab 横滑胶囊
   ⑤ 订单详情：抬头卡收成两行（单号/日期 + 状态徽章）
   全部规则只在 ≤640px 生效，桌面端 DOM 间距、样式零改动
   （.panel-head 在桌面端是 display:contents，子节点照旧参与 .account-panel 的 gap 排版）。
   ============================================================ */
.panel-head { display: contents; }
.est-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.est-link-ico { display: none; width: 16px; height: 16px; }

@media (max-width: 640px) {
  /* ---- 1. 账户面板：标题行不再重复浮层顶栏 ---- */
  .account-panel { gap: 12px; }
  .block-head.is-sheet-dup {
    margin: 0; padding: 0; min-height: 0;
    justify-content: flex-end; align-items: center; gap: 6px;
  }
  .block-head.is-sheet-dup .account-title { display: none; }
  /* 只剩标题、没有操作按钮的面板头（商品订单）：整块隐藏，连 flex gap 都不留 */
  .panel-head > .block-head.is-title-only { display: none; }
  /* 移动端 .btn-sm 有全局 min-height:40px（见「热区」那段），要显式压回去 */
  .block-head.is-sheet-dup .btn {
    height: 30px; min-height: 30px; padding: 0 11px; border-radius: 999px;
    font-size: 12px; white-space: nowrap;
  }
  /* 操作按钮 + 筛选行并排成一条：省掉一整行标题的高度 */
  .panel-head { display: flex; align-items: center; gap: 8px; }
  .panel-head > .block-head { flex: 0 0 auto; }
  .panel-head > .order-type-grid,
  .panel-head > .filter-pills { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
  .panel-head > .order-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-head > .filter-pills {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .panel-head > .filter-pills::-webkit-scrollbar { display: none; }
  /* 「运费估算」移动端只显示图标，省下 100px 给同行的状态胶囊 */
  .block-head.is-sheet-dup .est-link { width: 30px; min-width: 30px; padding: 0; }
  .block-head.is-sheet-dup .est-link-ico { display: block; }
  .block-head.is-sheet-dup .est-link-text { display: none; }
  /* 与「代购下单 / 运费估算」胶囊同高，一条线上不参差 */
  .panel-head > .filter-pills .filter-pill {
    flex: 0 0 auto; height: 30px; min-height: 30px; padding: 0 8px; font-size: 12px;
  }
  /* 语言更长 / 屏更窄时允许横滑；不使用渐隐遮罩，
     否则 390px 下刚好放得下时最后一个胶囊的右边框会被淡掉 */
  .panel-head > .filter-pills { scroll-snap-type: x proximity; }

  /* 移动端订单中枢顶部 4 个入口：高度收一点，一屏多留一条卡片 */
  .m-orders-tabs { padding: 6px; gap: 5px; }
  .m-orders-tab { min-height: 38px; padding: 5px 3px; font-size: 11.5px; border-radius: 9px; }

  /* ---- 2. 排练：四步 / 状态 / 服务费 三行窄条 ---- */
  /* 一行到底；德语 / 英语文案更长时允许折成两行（折行比横滑隐藏步骤更安全） */
  .rh-steps {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 2px 0; margin: 0; padding: 0;
  }
  .rh-step {
    flex: 0 0 auto; gap: 4px; padding: 0; border: 0; border-radius: 0;
    background: transparent; font-size: 11px; line-height: 1.2;
    color: #9aa0aa; white-space: nowrap;
  }
  .rh-step b {
    width: 15px; height: 15px; font-size: 9px;
    background: #eef0f3; color: #6b7280;
  }
  .rh-step.is-on { border: 0; background: transparent; color: #e85d00; font-weight: 800; }
  .rh-step.is-on b { background: #ff6a00; color: #fff; }
  /* 分隔线挂在「前一项」尾部（::after）：折行时落在线尾，
     不会像 ::before 那样在第二行行首多出一截短横 */
  .rh-step:not(:last-child)::after {
    content: ""; flex: 0 0 auto; width: 6px; height: 1px;
    margin: 0 3px; background: #dfe3e8;
  }
  /* 待提交 / 待审核 / 审核完成：三等分，不再折行 */
  .account-panel > .filter-pills {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  }
  .account-panel > .filter-pills > .filter-pill {
    width: 100%; height: 34px; min-height: 34px; padding: 0 6px;
    justify-content: center; font-size: 12px; line-height: 1.15; gap: 4px;
    white-space: normal; text-align: center;
  }
  /* 服务费说明：整条橙色标压成一行小字 */
  .wh-fee {
    display: flex; align-items: baseline; gap: 4px; flex-wrap: nowrap;
    padding: 0; border-radius: 0; background: transparent;
    font-size: 11.5px; color: #8a909a; max-width: 100%; overflow: hidden;
  }
  /* 前缀与金额不参与压缩（否则英文 "Rehearsal service fee:" 会被挤成两行，
     整行从 18px 变 36px），只有后半句负责省略 */
  .wh-fee > span, .wh-fee > strong { flex: 0 0 auto; white-space: nowrap; }
  .wh-fee strong { font-family: inherit; font-size: 11.5px; font-weight: 800; color: #e85d00; }
  .wh-fee-note {
    flex: 1 1 auto; font-size: 11.5px; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .wh-selectall { font-size: 12px; }

  /* ---- 3. 钱包：余额卡两行、收支一条、筛选横滑 ---- */
  .wallet-hero { display: block; margin-bottom: 10px; }
  .wallet-balance-card {
    padding: 12px 14px; gap: 10px; align-items: center; border-radius: 14px;
  }
  .wallet-balance-icon { width: 26px; height: 26px; font-size: 13px; }
  /* 余额卡：金额独占一行、两个按钮等宽平分下一行。
     原规则是「金额列 | 按钮列」两列 grid，右侧 auto 列先吃掉宽度，
     24px 的金额连币种 USD 都被挤到换行，iOS 上尤其明显。 */
  .wallet-balance-main {
    display: flex; flex-direction: column; align-items: stretch;
    flex: 1 1 auto; min-width: 0; gap: 4px;
  }
  .wallet-balance-label { font-size: 10.5px; }
  .wallet-balance-value { font-size: 24px; gap: 4px; white-space: nowrap; }
  .wallet-balance-value em { font-size: 10px; }
  .wallet-balance-actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px; margin: 2px 0 0;
  }
  .wallet-balance-actions .btn {
    width: 100%; min-width: 0; height: 30px; min-height: 30px;
    padding: 0 8px; border-radius: 999px; font-size: 12px;
    justify-content: center;
  }
  .wallet-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  .wallet-stats .wallet-stat:last-child { grid-column: auto; }
  .wallet-stat { padding: 8px 10px; gap: 2px; border-radius: 12px; }
  .wallet-stat-label { font-size: 10px; }
  .wallet-stat-value { font-size: 14px; }
  .wallet-filter-bar { display: block; margin-bottom: 10px; }
  .wallet-filter-bar .filter-pills {
    flex-wrap: nowrap; overflow-x: auto; gap: 6px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .wallet-filter-bar .filter-pills::-webkit-scrollbar { display: none; }
  /* 流水类型有 8 个，一定溢出：右侧渐隐提示可横滑 */
  .wallet-filter-bar .filter-pills {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
  }
  .wallet-filter-bar .filter-pill {
    flex: 0 0 auto; height: 30px; min-height: 30px; padding: 0 11px; font-size: 12px;
  }
  /* 日期筛选：固定两行的 2 列网格。
     原来整条 flex-wrap:nowrap，iOS Safari 的原生 input[type=date] 有约 118px+
     的固有最小宽度（中文 / 长日期格式更宽，Chromium 只有约 96px），
     两个日期 + 破折号 + Search + Reset 合计会超出 390 / 375 / 320px 视口；
     html,body{overflow-x:hidden} 不会给滚动条，而是直接把末尾按钮裁掉，
     表现就是「破边 + 按钮没排版好」。改成网格后每行只有两个等宽元素，
     宽度恒定 = 容器宽，既不依赖原生控件宽度，也不依赖换行时机。 */
  .wallet-date-range {
    position: relative;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px; row-gap: 6px; margin-top: 8px;
  }
  /* 破折号在 DOM 里夹在两个 input 中间：悬到第一行两列之间，不占网格位 */
  .wallet-date-range > .xs {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 18px; height: 30px; pointer-events: none;
  }
  .wallet-date-range .wallet-date {
    grid-row: 1; grid-column: auto;
    width: 100%; min-width: 0; max-width: 100%;
    height: 30px; padding: 0 8px; font-size: 11.5px;
  }
  .wallet-date-range .btn {
    grid-row: 2; grid-column: auto;
    width: 100%; min-width: 0; height: 30px; min-height: 30px;
    padding: 0 10px; font-size: 12px; justify-content: center;
  }
  /* 提现弹窗底部 Cancel / Submit：flex:1 遇到 white-space:nowrap 的长文案时，
     flex item 的 min-width:auto 会守住 min-content，把另一个按钮挤窄（320px 下
     差 36px）。允许收缩后两个按钮真正等宽；文案放不下时换行而不是溢出弹窗。 */
  .wallet-withdraw-modal .row .btn {
    flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.25;
    text-align: center; justify-content: center;
  }

  /* ---- 4. 我的账户：标题并成一行，5 个 tab 横滑胶囊 ---- */
  .settings-page { gap: 10px; }
  /* .page 的桌面留白（padding-top 32）在浮层里纯属浪费，收掉 */
  .account-main.is-m-sheet .page { padding-top: 4px; padding-bottom: 8px; }
  .settings-head {
    display: flex; flex-direction: row; align-items: baseline;
    flex-wrap: wrap; gap: 6px; min-height: 0;
  }
  .settings-head .account-title { display: none; }
  .settings-head-meta { font-size: 11px; }
  /* 横滑方案被否：第 5 个「信用卡账单地址」被裁掉一半，客户不会想到往左拖。
     改成「自动宽度 + 换行」，5 个 tab 全部露出（长的多占一点，放不下就整体换行）。 */
  .settings-tabs {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0; padding: 0;
    background: transparent; border: 0; box-shadow: none;
    overflow: visible;
  }
  .settings-tab {
    flex: 0 1 auto; width: auto; min-height: 32px; height: auto;
    padding: 5px 12px; border: 1px solid #eceef1; border-radius: 999px;
    background: #fff; color: #5b606a;
    font-size: 12.5px; font-weight: 600; line-height: 1.25;
    white-space: normal; text-align: center;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .settings-tab.is-active { background: #18181b; border-color: #18181b; color: #fff; }
  .settings-block { padding: 14px 12px; gap: 12px; border-radius: 14px; }

  /* ---- 5. 订单详情：抬头卡收成两行 ---- */
  .order-page { padding: 10px 0 20px; }
  .order-hero {
    align-items: center; flex-wrap: nowrap; gap: 10px;
    padding: 12px 14px; margin-bottom: 12px; border-radius: 14px;
  }
  .order-hero-copy { flex: 1 1 auto; min-width: 0; }
  .order-kicker { font-size: 10px; letter-spacing: .03em; }
  .order-hero h1 { font-size: 17px; line-height: 1.25; margin: 2px 0 0; }
  .order-hero-copy p { margin: 2px 0 0; font-size: 11px; }
  .order-hero-status {
    flex: 0 0 auto; padding: 4px 10px; gap: 5px;
    font-size: 11.5px; box-shadow: none;
  }
  .order-hero-status .dot { width: 6px; height: 6px; }
  .order-hero::after { width: 150px; height: 150px; right: -46px; top: -58px; }
}

/* ---- 360px 及更窄：钱包日期行再收一档（原生 date 控件文字 + 日历图标
   在 98px 内会互相压住，字号降到 11px 后两行各留 96px 刚好放得下） ---- */
@media (max-width: 380px) {
  .wallet-date-range { gap: 5px; }
  .wallet-date-range .wallet-date { padding: 0 6px; font-size: 11px; }
  .wallet-date-range .btn { padding: 0 8px; font-size: 11.5px; }
}

/* ============================================================
   仓库订单 / 排练：批量操作条改成贴底浮动（≤640px）
   ------------------------------------------------------------
   这两条原来跟在列表末尾的文档流里，勾选商品后要一路滚到底才看得见，
   列表长的时候根本找不到按钮。改成固定在标签栏上方的横条：
   高度压到 51px（原 68~78px），一行不换行，按钮平分右侧空间，
   拇指随时够得到；页面底部补等量留白，最后一张卡片和分页器不被盖住。
   bottom 必须用 --tabbar-offset（标签栏真实高度含安全区），
   只写 --tabbar-h 会被标签栏压住下半截 —— 按钮点不动。
   三个类名对应：仓库订单 .pkg-actions / 排练 .wh-actions /
   历史遗留 .rehearsal-foot（rehearsal.js 目前没挂路由，一并兼容）。
   ============================================================ */
@media (max-width: 640px) {
  .pkg-actions,
  .wh-actions,
  .rehearsal-foot {
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-offset);
    z-index: calc(var(--z-header) - 1);
    margin: 0;
    padding: 8px 12px;
    flex-direction: row; flex-wrap: nowrap; align-items: center;
    gap: 10px;
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    background: #fff;
    box-shadow: 0 -6px 18px rgba(16, 20, 28, .10);
  }
  .pkg-actions-facts,
  .wh-actions-facts,
  .rehearsal-facts { flex: 0 0 auto; font-size: 11px; line-height: 1.35; color: var(--text-muted); }
  /* 排练的「已选商品 / 总重量」原本是 label 上、数值下，两行共 36px 撑高整条；
     改成同行排，条高由按钮的 34px 决定 */
  .wh-actions-facts { gap: 10px; flex-wrap: nowrap; }
  .wh-actions-facts > div { flex-direction: row; align-items: baseline; gap: 3px; }
  .rehearsal-facts { flex-direction: column; gap: 1px; }
  .pkg-actions-btns,
  .wh-actions-btns,
  .rehearsal-foot > .row {
    display: flex; flex: 1 1 auto; min-width: 0;
    justify-content: flex-end; flex-wrap: nowrap; gap: 8px;
  }
  .pkg-actions-btns .btn,
  .wh-actions-btns .btn,
  .rehearsal-foot .btn {
    flex: 1 1 0; min-width: 0;
    height: 34px; padding: 0 10px;
    font-size: 13px; border-radius: 999px;
    overflow: hidden; text-overflow: ellipsis;
  }
  /* 底部留白：浮条 51px + 容器自身 24px 内边距 + 余量，
     少算这一截，最后一张卡片和分页器会被浮条压住 20 多像素 */
  .account-panel:has(.pkg-actions),
  .account-panel:has(.wh-actions),
  .account-panel:has(.rehearsal-foot) { padding-bottom: 96px; }

  /* 这两个页面从「我的账户 / 订单」宫格进入时是 .account-main.is-m-sheet
     全屏浮层（z-index 220），浮层把底部 tab bar 整块盖住（tab bar 只有 100），
     但操作条仍按 --tabbar-offset 往上抬 —— 等于给一个看不见的标签栏让位。
     结果就是 iOS 上（多 34px 安全区）悬在页面中间约 98px，看着没贴底。
     浮层里没有标签栏可让，归一为 0：操作条贴屏幕底，白底铺满安全区，
     按钮靠 padding-bottom 避开 home indicator（和原生 App 底部条一致）。 */
  body:has(.account-main.is-m-sheet) {
    --tabbar-offset: 0px;
  }
  body:has(.account-main.is-m-sheet) :is(.pkg-actions, .wh-actions, .rehearsal-foot) {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  /* 浮条贴底后高了安全区这一截，底部留白同步加回来，
     否则滚到底最后一张卡片会被压住 */
  body:has(.account-main.is-m-sheet) .account-panel:has(.pkg-actions),
  body:has(.account-main.is-m-sheet) .account-panel:has(.wh-actions),
  body:has(.account-main.is-m-sheet) .account-panel:has(.rehearsal-foot) {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  /* 悬浮球同样按 0 算会掉到屏幕最底，补回安全区；
     有浮条时仍停在浮条上方 53px */
  body:has(.account-main.is-m-sheet) .float-side {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  }
  body:has(.account-main.is-m-sheet):has(.pkg-actions) .float-side,
  body:has(.account-main.is-m-sheet):has(.wh-actions) .float-side,
  body:has(.account-main.is-m-sheet):has(.rehearsal-foot) .float-side {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 104px);
  }

  /* 右侧客服悬浮球（bottom: tabbar+16，z-index 95）会正好压在浮条右端，
     把「提交包裹 / 提交」挡掉一半。浮条出现时把它整体往上抬：
     浮条 51px + 球 48px + 上方留白，让球完整落在浮条之上而不是贴着边缘。
     只上移不隐藏——这两页用户很可能要点客服。 */
  body:has(.pkg-actions) .float-side,
  body:has(.wh-actions) .float-side,
  body:has(.rehearsal-foot) .float-side { bottom: calc(var(--tabbar-offset) + 104px); }

  /* 账户内页是 .account-main.is-m-sheet 全屏浮层（z-index 220），
     而悬浮球挂在 body 下、z-index 只有 95 —— 整块浮层会把它盖死，
     翻到订单/仓库这些内页时右侧看不到客服入口，也点不到。
     把球抬到浮层之上（230），同时仍低于二级弹窗（z-sheet+60/+70），
     弹窗打开时球照样让位。 */
  body:has(.account-main.is-m-sheet) .float-side {
    z-index: calc(var(--z-sheet) + 30);
  }
  /* 页面自己的弹窗是浮层后代（叠放被 220 限制），球抬到 230 后会浮在遮罩上，
     既碍眼又能误点——弹窗一开就把球收起来 */
  body:has(.account-main.is-m-sheet):has(.overlay) .float-side { display: none; }
}

/* ============================================================
   iOS Safari 输入框聚焦自动缩放修复（移动端"点输入框版面乱飘"）
   ------------------------------------------------------------
   成因：iOS 有一条硬规则 —— input / textarea / select 获得焦点时，
   只要计算字号小于 16px，Safari 就把整个页面放大。它不派发 zoom
   事件，JS 完全感知不到，也无法拦截。放大后不会自动还原，此时
   fixed 的顶栏 / 底部 tab / 弹窗遮罩只有一半落在视口里，手指一拖
   整版横向漂移，看起来就是"版面乱飘"。
   这也解释了为什么问题只在苹果上出现：安卓 Chrome 不做聚焦缩放。

   全站输入控件用了 20 多个类名（.input-sm / .hs-input / .s-input /
   .qty-input / .mb-input / .cpk-search / .order-item-note /
   .pkg-redeem-input …），一个个改既会漏、以后新增页面还会复发，
   所以这里用属性选择器兜一层底：只要是能输入文字的控件，移动端
   一律 16px。排除勾选类控件——它们不触发缩放，放大反而撑乱表单。

   只作用于 ≤900px，桌面端点不动。!important 是必要的：.mb-input
   这类规则特异性更高，普通写法会被它们覆盖。
   ============================================================ */
@media (max-width: 900px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="hidden"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  /* 字号统一放大后，几个按小字号定死高度的容器要补高度，否则文字会顶到边框 */
  .input { height: 44px; }
  .input-sm { height: 38px; }
  .qty-box { height: 38px; }
  .qty-box .qty-input { width: 46px; }
  .cpk-search { height: 34px; }
  .m-appbar-input { height: 100%; }
  .pkg-redeem-input { height: 44px; }
  .order-item-note { min-height: 44px; }
  .chat-input { min-height: 44px; }
  .textarea, textarea.input { min-height: 96px; height: auto; }

  /* iOS 聚焦时还会按"可见区域"滚动，给弹窗内滚动容器留出键盘高度，
     避免输入框被键盘顶到视口外导致页面再弹一次 */
  .overlay, .sheet-body, .m-sheet-body, .pkg-body { scroll-padding-bottom: 40vh; }

  /* 移动端毛玻璃降级：tab-bar / 购买条是 fixed + blur(12px)，滚动时每帧
     都要对底层内容高斯重采样，低端安卓实测掉帧明显。改成不透明纯色，
     视觉几乎无差（背景本来就是 .92~.96 白），滚动开销直接归零。
     overlay 弹层保留 blur —— 它出现时不滚动，开销无所谓。 */
  .tab-bar, .mobile-buy-bar, .site-header {
    backdrop-filter: none;
    background: #fff;
  }
}

/* ============================================================
   必勾未勾：抖动 + 红色光圈（桌面端 / 移动端通用）
   ------------------------------------------------------------
   用于所有「必须勾选才能继续」的流程：下单四协议、转运协议、
   DIY 须知与确认、定制确认、注册协议、详情页免责声明、退款含运费。
   JS 侧见 js/shake.js —— 每次校验失败先摘类再强制 reflow 添加，
   所以连续点击「提交」都能重新播；动画结束自动摘类。
   ============================================================ */
@keyframes wtc-shake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  12%, 32%, 52%, 72%, 92% { transform: translate3d(-6px, 0, 0); }
  22%, 42%, 62%, 82% { transform: translate3d(6px, 0, 0); }
}
.is-shake {
  animation: wtc-shake .6s cubic-bezier(.36, .07, .19, .97) both;
  border-radius: 10px;
  /* 红圈不依赖元素自身的 border / background，任何同意行套上都能看见 */
  box-shadow: 0 0 0 3px rgba(226, 56, 47, .55), 0 0 0 9px rgba(226, 56, 47, .12);
}
/* 未勾的方框单独描红，扫一眼就知道该点哪儿 */
.is-shake input[type="checkbox"] {
  outline: 3px solid #e2382f;
  outline-offset: 2px;
  border-radius: 3px;
}
/* 文案一起变红，比只有方框更显眼；链接保持自己的颜色 */
.is-shake > span { color: #d32b21; }
/* 系统开启「减少动态效果」时不做位移，只保留静态红色高亮 */
@media (prefers-reduced-motion: reduce) {
  .is-shake { animation: none; }
}

/* ---- 待补款（wl_status 9）重点提示：页面横幅 + 卡片内警示块 ---- */
.balance-alert {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 12px 14px;
  border: 1px solid #FCA5A5; border-left: 4px solid var(--danger);
  border-radius: var(--r-md); background: #FEF2F2;
  box-shadow: 0 2px 10px rgba(239,68,68,.08);
}
.balance-alert-icon {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 15px; font-weight: 800;
}
.balance-alert-copy { flex: 1 1 220px; min-width: 0; }
.balance-alert-copy strong { display: block; font-size: 13.5px; font-weight: 800; color: #991B1B; }
.balance-alert-copy p { margin: 3px 0 0; font-size: 12px; line-height: 1.5; color: #B91C1C; }
.balance-alert .btn { flex: none; margin-left: auto; }

.wlcard.is-balance-due { border-color: #FCA5A5; box-shadow: 0 0 0 2px rgba(239,68,68,.08); }
.wlcard.is-balance-due .wlcard-head { background: #FFF7F7; border-bottom-color: #FECACA; }
.wlcard-alert {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid #FCA5A5; border-radius: var(--r-md);
  background: #FEF2F2;
}
.wlcard-alert-icon {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 800;
}
.wlcard-alert-copy { flex: 1 1 200px; min-width: 0; }
.wlcard-alert-copy strong { display: block; font-size: 12.5px; font-weight: 800; color: #991B1B; }
.wlcard-alert-copy p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: #B91C1C; }
.wlcard-alert-reason { margin-top: 3px; font-size: 11.5px; line-height: 1.55; color: #B91C1C; word-break: break-word; }
.wlcard-alert-amount {
  flex: none; font-size: 16px; font-weight: 800; color: #DC2626;
  font-variant-numeric: tabular-nums; text-align: right;
}
.wlcard-alert-amount small {
  display: block; font-size: 9.5px; font-weight: 700; color: #B91C1C;
  letter-spacing: .04em; text-transform: uppercase;
}
.wlcard-alert-reason em { font-style: normal; font-weight: 700; }

/* 待补款地址就地编辑：输入框 + 修改按钮，嵌在红色警示块内 */
.wlcard-addr-edit {
  margin-top: 6px; padding-top: 6px; border-top: 1px dashed #FCA5A5;
  display: flex; flex-direction: column; gap: 5px;
}
.wlcard-addr-label { font-size: 11.5px; font-weight: 700; color: #991B1B; }
.wlcard-addr-row { display: flex; gap: 6px; align-items: stretch; }
.wlcard-addr-input {
  flex: 1 1 auto; min-width: 0; padding: 6px 8px; font-size: 12px; line-height: 1.4;
  border: 1px solid #FCA5A5; border-radius: var(--r-md); background: #fff; color: #7F1D1D;
}
.wlcard-addr-input:focus { outline: none; border-color: var(--danger); box-shadow: 0 0 0 2px rgba(239,68,68,.15); }
.wlcard-addr-row .btn { flex: none; }
@media (max-width: 640px) {
  .wlcard-addr-row { flex-wrap: wrap; }
  .wlcard-addr-input { flex-basis: 100%; }
}

/* 运输中带 latime：补款已完成 —— 绿色 / 中性，与待补款(9) 的红色警示明确区分 */
.wlcard-alert.is-done { border-color: #86EFAC; background: #F0FDF4; }
.wlcard-alert.is-done .wlcard-alert-icon { background: #16A34A; }
.wlcard-alert.is-done .wlcard-alert-copy strong { color: #166534; }
.wlcard-alert.is-done .wlcard-alert-copy p { color: #15803D; }
.wlcard-alert.is-done .wlcard-alert-reason { color: #15803D; }
.wlcard-alert.is-done .wlcard-alert-amount { color: #16A34A; }
.wlcard-alert.is-done .wlcard-alert-amount small { color: #15803D; }

@media (max-width: 640px) {
  .balance-alert { gap: 8px; padding: 10px 12px; }
  .balance-alert .btn { width: 100%; margin-left: 0; }
  .wlcard-alert-amount { font-size: 15px; }
}

/* ---- 订单状态提示（后端 tishi，纯文本换行已转 <br>）---- */
.wlcard-tishi {
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px 12px; border: 1px solid #FCD34D; border-left: 4px solid var(--warn);
  border-radius: var(--r-md); background: #FFFBEB;
}
.wlcard-tishi-label {
  align-self: flex-start; padding: 1px 7px; border-radius: 999px;
  background: #FEF3C7; color: #92400E;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.wlcard-tishi-text {
  font-size: 12.5px; line-height: 1.65; color: #78350F; word-break: break-word;
}
@media (max-width: 640px) {
  .wlcard-tishi { padding: 9px 10px; }
  .wlcard-tishi-text { font-size: 12px; }
}

/* ============================================================
   统一客服会话组件（cc- 输入区 / cb- 气泡内容 / cl- 灯箱）
   ------------------------------------------------------------
   本段只新增独立的类名规则，不覆盖任何已有的 .chat-* / .mb-* / .rs-*。
   5 处会话区域（主面板 + 订单/仓库留言板 + 两处退货 Conversation）共用，
   保证换行、emoji、图片、拖拽粘贴拍照的行为完全一致。
   ============================================================ */

/* ---- cc- 输入区 ---- */
.cc-wrap {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.chat-foot > .cc-wrap, .mb-foot > .cc-wrap { flex: 1 1 auto; min-width: 0; }
.cc-wrap.is-dragging { outline: 2px dashed var(--accent, #FF5A1F); outline-offset: 3px; border-radius: 10px; }
.cc-drop {
  position: absolute; inset: -6px; z-index: 5; display: grid; place-items: center;
  border-radius: 12px; background: rgba(255, 90, 31, .08); color: #B91C1C;
  font-size: 12.5px; font-weight: 700; pointer-events: none;
}
.cc-row { display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.cc-input {
  flex: 1 1 auto; min-width: 0; min-height: 38px; max-height: 96px;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-900, #18181B);
  font-family: inherit; font-size: 12.5px; line-height: 1.5;
  outline: 0; resize: none; overflow-y: auto;
  -webkit-appearance: none; appearance: none;
}
.cc-input:focus { border-color: var(--ink-900, #18181B); }
.cc-input::placeholder { color: var(--text-faint, #A1A1AA); }
.cc-tools { flex: none; display: flex; align-items: center; gap: 3px; }
.cc-tool {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-muted, #71717A);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.cc-tool svg { width: 17px; height: 17px; }
.cc-tool:hover, .cc-tool.is-on { background: var(--bg-soft, #F4F4F5); color: var(--ink-900, #18181B); }
.cc-send {
  flex: none; height: 30px; padding: 0 11px; border: 0; border-radius: 8px;
  background: var(--ink-900, #18181B); color: #fff;
  font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.cc-send:disabled { opacity: .45; cursor: not-allowed; }

.cc-pending { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-thumb {
  position: relative; width: 54px; height: 54px; flex: none;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-soft, #F4F4F5);
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-thumb.is-error { border-color: var(--danger, #E24B4A); }
.cc-thumb-mask {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .78); font-size: 9px; font-weight: 700; color: #52525B;
}
.cc-thumb-mask.is-err { background: rgba(254, 226, 226, .9); color: #B91C1C; font-size: 18px; }
.cc-thumb-x {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; line-height: 1; cursor: pointer;
}

.cc-emoji {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 6px; box-shadow: 0 6px 20px rgba(12, 16, 24, .1);
}
.cc-emoji-tabs { display: flex; gap: 4px; margin-bottom: 6px; overflow-x: auto; }
.cc-emoji-tabs button {
  flex: none; border: 0; border-radius: 6px; padding: 3px 8px;
  background: transparent; color: var(--text-muted, #71717A); font-size: 10.5px; cursor: pointer;
}
.cc-emoji-tabs button.is-on { background: var(--bg-soft, #F4F4F5); color: var(--ink-900, #18181B); font-weight: 700; }
.cc-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 132px; overflow-y: auto; }
.cc-emoji-item {
  border: 0; border-radius: 6px; background: transparent; font-size: 17px;
  line-height: 1.5; height: 28px; cursor: pointer;
}
.cc-emoji-item:hover { background: var(--bg-soft, #F4F4F5); }
.cc-error { font-size: 10.5px; color: var(--danger, #E24B4A); }
.cc-hint { font-size: 9.5px; color: var(--text-faint, #A1A1AA); line-height: 1.3; }

/* ---- cb- 气泡内容：换行 / emoji / 缩略图 ---- */
.cb-body { min-width: 0; }
.cb-text {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: inherit; line-height: inherit; color: inherit;
}
.cb-imgs { display: grid; gap: 4px; margin-top: 6px; max-width: 100%; }
.cb-imgs:first-child { margin-top: 0; }
.cb-img {
  display: block; padding: 0; border: 0; border-radius: 7px; overflow: hidden;
  background: var(--bg-soft, #F4F4F5); cursor: zoom-in; width: 100%;
}
.cb-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cb-imgs.is-one { grid-template-columns: minmax(0, 180px); }
.cb-imgs.is-one .cb-img { height: 132px; }
.cb-imgs.is-one .cb-img img { object-fit: contain; background: rgba(0, 0, 0, .03); }
.cb-imgs.is-two { grid-template-columns: repeat(2, 68px); }
.cb-imgs.is-three, .cb-imgs.is-four, .cb-imgs.is-grid { grid-template-columns: repeat(3, 62px); }
.cb-imgs.is-two .cb-img { height: 68px; }
.cb-imgs.is-three .cb-img, .cb-imgs.is-four .cb-img, .cb-imgs.is-grid .cb-img { height: 62px; }

/* ---- cl- 图片灯箱 ---- */
.cl-box {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 14, 18, .88); padding: 40px 56px;
}
.cl-img {
  display: block; max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.cl-close, .cl-nav {
  position: absolute; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; border-radius: 50%;
}
.cl-close { top: 16px; right: 18px; width: 34px; height: 34px; }
.cl-nav { top: 50%; transform: translateY(-50%); width: 38px; height: 38px; }
.cl-nav.is-prev { left: 14px; }
.cl-nav.is-next { right: 14px; }
.cl-close svg, .cl-nav svg { width: 18px; height: 18px; }
.cl-close:hover, .cl-nav:hover { background: rgba(255, 255, 255, .28); }
.cl-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 12px; opacity: .8;
}

/* ---- 窄屏：收紧输入区与缩略图，保持与聊天软件一致的紧凑感 ---- */
@media (max-width: 640px) {
  .cc-tool { width: 30px; height: 30px; }
  .cc-emoji-grid { grid-template-columns: repeat(8, 1fr); max-height: 116px; }
  .cc-hint { display: none; }
  .cb-imgs.is-one .cb-img { height: 120px; }
  .cb-imgs.is-two { grid-template-columns: repeat(2, 62px); }
  .cb-imgs.is-two .cb-img { height: 62px; }
  .cb-imgs.is-three, .cb-imgs.is-four, .cb-imgs.is-grid { grid-template-columns: repeat(3, 56px); }
  .cb-imgs.is-three .cb-img, .cb-imgs.is-four .cb-img, .cb-imgs.is-grid .cb-img { height: 56px; }
  .cl-box { padding: 32px 44px; }
}
