/* Shengmilo - Custom Styles (supplements Tailwind CDN) */

html { scroll-behavior: smooth; }

/* 页眉常驻顶部（整页滚动时始终固定在视口顶端）：
   内层 <header> 上的 sticky top-0 实际从未生效——sticky 的贴合空间取决于
   **包含块**（父级盒子）的高度，而 <header> 的父级是外层 #site-header，
   该层高度 = 页眉自身（96px），sticky 无处可贴，滚动时只能随页面一起跑掉。
   改为让包裹层 #site-header 本身 sticky：它的包含块是通栏 body（高度=整页），
   有完整的滚动空间，深色顶栏 + 主导航即可一起常驻顶部。
   内层 header 的 sticky top-0 保留作双保险（贴齐外层即止，叠加不冲突）。 */
#site-header { position: sticky; top: 0; z-index: 50; }

/* 顶部通栏（Top bar）文案 120% 尺寸：
   顶栏父级是 text-[11px] sm:text-xs（响应式两档），用 em 相对缩放，
   两个断点下都恰好是现有大小的 120%，且不写死 px、不破坏布局高度（h-8 不变）。
   只加在叶子元素（Worldwide shipping / Sign up / Sign in / 头像名 / Log out / 分隔符）上，
   不加在容器上，避免 em 逐层嵌套放大。 */
.topbar-text { font-size: 1.2em; }

/* 页眉「新消息提示」持续跳跃动画（2026-10-15）：
   有未读站内信时 #header-msg-hint 处于 msg-hint-bouncing 状态，
   图标做轻量上下跳（主流网站的 attention 动效），直到用户打开消息页
   （account.js 标记已读 → 未读清零 → 模块隐藏、动画随元素隐藏自然解除）。 */
@keyframes header-msg-hint-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
  45% { transform: translateY(0); }
  60% { transform: translateY(-2px); }
  75% { transform: translateY(0); }
}
#header-msg-hint.msg-hint-bouncing .msg-hint-icon {
  animation: header-msg-hint-bounce 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  #header-msg-hint.msg-hint-bouncing .msg-hint-icon { animation: none; }
}

/* 移动端横向溢出防护：
   用 overflow-x: clip（而非 hidden），既不产生滚动容器、
   也不会破坏 header 的 position: sticky。 */
html { overflow-x: clip; }

/* 长串内容（型号、URL、订单号）在窄屏自动换行，避免撑破布局 */
body { overflow-wrap: break-word; }
img, svg, video, table { max-width: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* Smooth image loading */
img { background-color: #f3f4f6; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Mobile bottom bar safe area */
@media (max-width: 640px) {
  .safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }
}

/* Print-friendly */
@media print {
  header, footer, .no-print { display: none !important; }
}

/* 表单字段失焦校验失败（checkout 页即时校验，2026-10-16）*/
.field-err { border-color: #dc2626 !important; }

/* ── 商品详情页：说明卡/标题位置重构（2026-10-23）─────────────────────────
   需求：① 全设备，说明卡（Overview/Compatibility/Materials）移到
            「Ask about this product」之后、运输/保修手风琴之前；
         ② 手机端，商品标题移到主图上方。
   DOM：pdp-titleblock（h1+From 行）是 pdp-layout 首子元素；
        pdp-spec-cards 在 pdp-buycol 内、政策手风琴之前（见
        .smoke/apply-pdp-restructure.py，25 静态页 + products.js 模板）。
   桌面 ≥1024px：容器是 grid 两列。显式把 titleblock 定位到右列顶部、
        图片列与购买列依次排右列之后，观感与旧版一致（标题在右列最上、
        说明卡在购买区下方）。
   窄屏 <1024px：容器改纵向流、图片列 display:contents 拆开参与排序：
        标题 → 主图 → 缩略图 → 购买列（含说明卡/政策手风琴）。
   选择器用「双类名」提高特异性，避免被 Tailwind Play CDN 运行时注入的
   同权重工具类（.grid / .mb-3）覆盖。                                    */

@media (min-width: 1024px) {
  .pdp-layout.pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "imgs title"
      "imgs buy";
  }
  .pdp-imgs.pdp-imgs { grid-area: imgs; }
  .pdp-titleblock.pdp-titleblock { grid-area: title; align-self: end; }
  .pdp-buycol.pdp-buycol { grid-area: buy; }
  .pdp-spec-cards { grid-area: auto; } /* 已在 buycol 内，随文档流 */
}

@media (max-width: 1023.98px) {
  .pdp-layout.pdp-layout { display: flex; flex-direction: column; }
  .pdp-imgs.pdp-imgs { display: contents; }

  .pdp-titleblock { order: 1; }
  .pdp-hero { order: 2; }
  .pdp-thumbs { order: 3; }
  .pdp-buycol { order: 4; }   /* 说明卡/政策手风琴在 buycol 内，自然跟随 */

  /* 触控目标 ≥44px（WCAG 2.5.5 / Apple HIG）：规格与数量按钮原本仅 34~40px */
  [data-option-group] button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  [data-qty-dec],
  [data-qty-inc] {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── 商品页信息卡：可折叠（Free Shipping / Warranty）2026-10-22 ────────────
   原生 <details>/<summary>：无 JS 依赖、键盘可达、跨浏览器一致，
   且不会出现"内容先展开再收起"的布局跳动。 */
.pdp-acc > summary {
  list-style: none;                 /* Firefox / 标准 */
}
.pdp-acc > summary::-webkit-details-marker {
  display: none;                    /* Safari / Chrome */
}
.pdp-acc > summary:focus-visible {
  outline: 2px solid #bfdbfe;
  outline-offset: -2px;
  border-radius: 8px;
}
.pdp-acc-chevron {
  transition: transform .18s ease;
}
.pdp-acc[open] > summary .pdp-acc-chevron {
  transform: rotate(180deg);
}
/* 展开时把标题区的下内边距收掉，避免和正文之间出现双倍留白 */
.pdp-acc[open] > summary {
  padding-bottom: .25rem;
}
@media (prefers-reduced-motion: reduce) {
  .pdp-acc-chevron { transition: none; }
}

/* ── 头部语言选择器（折叠式，2026-10-24）──────────────────────────────────
   默认只显示当前语言（DE ▾），点击展开下拉，选中即跳转并收起。
   桌面端在深色顶部条内（h-8），面板绝对定位向下展开，需压过页面内容；
   移动端在汉堡菜单内，面板为内联网格（grid-cols-2），不遮菜单项。      */
.lang-panel { z-index: 80; max-height: 70vh; overflow-y: auto; }
.lang-picker [data-lang-chevron] { transition: transform .18s ease; }
@media (prefers-reduced-motion: reduce) {
  .lang-picker [data-lang-chevron] { transition: none; }
}

/* ── 商品详情页：主图缩略图改为左侧竖排（2026-10-25）────────────────────────
   参考 gleecycle 商品页：缩略图在**主图左侧竖排**，主图占右侧大图区。
   DOM 不动（仍是 pdp-imgs > [pdp-hero, pdp-thumbs]），纯 CSS 换向：
     · 桌面 ≥1024px：pdp-imgs 变 flex 行，pdp-thumbs 用 order:-1 提到左侧，
       固定 84px 宽、纵向排列、超高可滚动；pdp-hero 自适应剩余宽度。
     · 窄屏 <1024px：保持原样（缩略图横向一排，在 pdp-imgs display:contents
       的既有排序里位于主图下方）—— 手机上竖排会挤压主图，不做改动。
   选择器用「双类名」压过 Tailwind Play CDN 注入的 .grid / .mb-3 等同权重工具类。 */
@media (min-width: 1024px) {
  .pdp-imgs.pdp-imgs {
    display: flex;
    flex-direction: row;
    /* 行方向保持 flex-start：**只让缩略图列自己拉伸**（见 .pdp-thumbs 的 align-self），
       否则 stretch 会让整行按最高的缩略图列撑开、把主图也拉高（实测主图被撑到 1524px）。 */
    align-items: flex-start;
    /* 缩略图列与主图之间的沟槽：参考站 36px / 主图 931px ≈ 3.9%，
       本站在 1728 视口下主图约 620px → 20px 视觉密度相当（2026-10-28）。 */
    gap: 20px;
  }
  .pdp-thumbs.pdp-thumbs {
    order: -1;                    /* 提到主图左侧 */
    display: flex;
    flex-direction: column;
    /* 参考站缩略图 135×102、间隙 20（≈ 图高的 20%）；本站列宽 84 →
       图高 63、间隙 12，比例一致（2026-10-28）。 */
    gap: 12px;
    flex: 0 0 84px;
    width: 84px;
    /* 高度不写死：由 JS（galFitHeight）精确设成**主图高度**，
       使缩略图列与主图上下边缘对齐；超出的首尾由渐隐遮罩软化。
       ⚠️ 不能用 align-self:stretch —— 它继承的是 grid 行高（右侧购买栏，实测 1524px），
       不是主图高度。 */
    max-height: none;
    align-self: flex-start;
    overflow-y: auto;
    overflow-x: hidden;           /* 关掉横向溢出（padding 会把 84px 撑破） */
    padding-right: 0;
    /* 2026-10-26：不显示任何滚动条（竖向/横向都不要），但保留滚轮与触摸滚动能力。
       Firefox / IE 用 scrollbar-width + -ms-overflow-style，WebKit 用伪元素。 */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .pdp-thumbs.pdp-thumbs::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  .pdp-thumbs.pdp-thumbs > div {
    position: relative;           /* 图改成绝对定位铺满，靠它做定位上下文 */
    width: 100%;                  /* 跟随容器实际宽度，避免 84+padding 造成横向溢出 */
    flex: 0 0 auto;
    /* 参考站缩略图是 4:3 横图（135×102），不是正方形；图片按 cover 裁切。
       桌面限定：窄屏仍是 grid-cols-4 的正方形一排，不动（2026-10-28）。 */
    aspect-ratio: 4 / 3;
    border-width: 1px;            /* 未选中不描边（参考站如此），保留位宽避免选中时跳动 */
    border-color: transparent;
  }
  .pdp-thumbs.pdp-thumbs > div > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;           /* 压过 Tailwind 的 .aspect-square */
    object-fit: cover;
    opacity: 1;                   /* 参考站缩略图不压暗（压过 opacity-80 / hover:opacity-100） */
  }
  .pdp-thumbs.pdp-thumbs > div:hover:not(.is-active) { border-color: #e5e7eb; }
  .pdp-thumbs.pdp-thumbs > div.is-active { border-color: #111; }
  .pdp-hero.pdp-hero {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;             /* 原 mb-3 在行布局下会主图矮一截 */
  }
}

/* ── 页头（2026-10-25 复刻 gleecycle 布局）──────────────────────────────────
   账户 / 国家 / 语言从原深色顶栏移入白色表头右侧，配套调整：
     · 国家面板补 z-index（原深色顶栏里靠层叠顺序就够，移到白底后需显式抬升）；
     · 搜索面板整幅贴在表头下沿，限高可滚，避免小屏被结果撑满全屏；
     · 右侧功能组内不再使用顶部栏 120% 字号（.topbar-text 仅深色版仍在用）。 */
.country-panel { z-index: 80; }
.hdr-actions .topbar-text { font-size: inherit; }
/* 账户图标恒定尺寸：登录前后/桌面移动端共用，防止 Tailwind 工具类覆盖。
   2026-10-28：整体缩到原来的 90%（1.75rem × 0.9 = 1.575rem = 25.2px），
   全站共用这一条规则，保证每个页面的图标大小一致。 */
.hdr-account-icon.hdr-account-icon { width: 1.575rem; height: 1.575rem; }
.hdr-account-box.hdr-account-box { min-height: 2.5rem; }
#hdr-search-panel > div { max-height: 72vh; overflow-y: auto; }
@media (prefers-reduced-motion: reduce) {
  #hdr-search-panel { transition: none; }
}
/* 搜索输入框：隐藏 type="search" 的原生清除按钮，
   否则会和面板自带的关闭按钮并排出现两个 ×（2026-10-25） */
#hdr-search-input::-webkit-search-cancel-button,
#hdr-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
#hdr-search-input::-ms-clear { display: none; }

/* ── 版面加宽：容器 1280 → 1536（2026-10-26）───────────────────────────────
   问题：全站页面容器用的是 Tailwind 的 .max-w-7xl（= 80rem / 1280px）。
        在 1728px 这类常见笔记本视口上，内容只占约 74%，两侧各留 224px 空白，
        对比参考站（内容约占 85%、边距仅约 7%）显得很局促。
   处理：把页面级容器上限提到 96rem / 1536px；水平内边距保持 px-4/6/8(32px) 不变。
        在 1728px 视口下内容左右边距约 128px（占 7.4%），与参考站 7.3% 基本一致。
   安全性：全站 406 处 max-w-7xl 全部落在 <main> / <div> / <section> 页面级容器上
        （已核查无 dialog / modal / card 使用），统一放宽不会破坏局部组件。
   特异性：用**双类名**压过 Tailwind Play CDN 运行时注入的同权重工具类
        （与 .pdp-thumbs.pdp-thumbs 同一手法，见文件其它段落）。 */
.max-w-7xl.max-w-7xl {
  max-width: 96rem;   /* 1536px */
}
/* 视口窄于容器上限（<1536）时，容器会撑满宽度、只剩内边距做留白。
   原 lg:px-8 只有 32px，在 1512px 这类常见笔记本上内容几乎贴边（约 2%），
   与参考站约 7% 的呼吸感差距明显 → 该区间提到 48px。
   ≥1536 时容器已居中（左右各留 (vw-1536)/2），32px 内边距刚好让总留白≈7.4%，
   与参考站一致，故不再加大，避免把内容压窄。
   全站 400 处容器的内边距类完全一致（px-4 sm:px-6 lg:px-8），可安全统一覆盖。 */
@media (min-width: 1024px) and (max-width: 1535.98px) {
  .max-w-7xl.max-w-7xl {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ── 商品主图切换动画（2026-10-26）───────────────────────────────────────────
   需求：缩略图列不显示滚动条；点缩略图（含最下面那张）时主图有个换图动画。
   轻量淡入 + 极小幅缩放，不抢注意力；尊重 reduced-motion。 */
@keyframes pdpImgSwap {
  from { opacity: .35; transform: scale(1.015); }
  to   { opacity: 1;   transform: scale(1); }
}
.pdp-hero.pdp-hero img.pdp-img-swap,
#main-image.pdp-img-swap {
  animation: pdpImgSwap .32s cubic-bezier(.22, .61, .36, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .pdp-img-swap { animation: none !important; }
}

/* ══ 商品主图交互（2026-10-31：箭头统一悬停显示）══════════════════════════
   默认隐藏且不可点；鼠标悬停主图区域时显示，移出立即隐藏（不加 :focus-within，
   点击后的焦点残留会让箭头在移出后仍然显示，违背「立即隐藏」要求；
   键盘用户走灯箱：点主图打开后 ←/→ 换图、Esc 关闭）。
   光标在主图非箭头区域 → 放大镜（zoom-in），点击打开大图灯箱。 */
.pdp-hero.pdp-hero { position: relative; }
.pdp-hero.pdp-hero img { cursor: zoom-in; }

.pdp-gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #374151;
  cursor: pointer;
  z-index: 3;
  /* 默认不可见也不可点：只有主图被悬停时才浮现 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, background-color .18s ease, color .18s ease;
}
.pdp-hero.pdp-hero:hover .pdp-gal-arrow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* 桌面只保留尺寸与外观；可见性仍由上面的悬停规则决定，不再常显。 */
@media (min-width: 1024px) {
  .pdp-gal-arrow {
    width: 48px;
    height: 52px;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .12);
  }
}
.pdp-gal-arrow[data-pdp-arrow="prev"] { left: 16px; }
.pdp-gal-arrow[data-pdp-arrow="next"] { right: 16px; }
/* 单独悬停某侧箭头 → 只有这一侧变色（青绿实心 + 白图标） */
.pdp-gal-arrow:hover,
.pdp-gal-arrow:focus-visible {
  background: #0d9488;
  color: #fff;
  outline: none;
}
.pdp-gal-arrow svg { width: 22px; height: 22px; }

/* ── 主图水平滑动换图（2026-10-28，复刻参考视频）──────────────────────────
   过渡期间旧图（.pdp-slide-ghost，JS 临时插入的绝对定位副本）与新主图
   并排平移一个整格：新图 +100% → 0，旧图 0 → -100%，任何时刻都刚好铺满。 */
.pdp-hero.pdp-hero .pdp-slide-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  cursor: default;
  z-index: 2;
}
.pdp-hero.pdp-hero.pdp-sliding #main-image { position: relative; z-index: 2; }

/* 上一张/下一张在两端的循环由 JS 处理，这里不置灰禁用 */

/* ── 左侧缩略图：选中态 + 上下自然淡出（复刻截图红圈处）──────────────────── */
.pdp-thumbs.pdp-thumbs > div.is-active {
  /* 参考站是 1px 近黑描边（不是 2px 浅灰）；1px 与未选中的占位边框等宽，切换不跳动 */
  border: 1px solid #111;
  box-shadow: none;
}
/* 仅当内容可滚动时才加渐隐遮罩，避免不滚动时把首尾图也淡化 */
.pdp-thumbs.pdp-thumbs--fade {
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

/* ── 产品描述 / Shopify 式编辑器共用的安全富文本样式 ───────────────────── */
/* 长单词/长链接（德语复合词、型号串）在小屏必须能断行，否则表格会顶出容器 */
.product-description {
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.product-description p + p,
.product-description p + ul,
.product-description ul + p,
.product-description h3 + p { margin-top: .75rem; }
.product-description ul { list-style: disc; padding-left: 1.35rem; }
.product-description ol { list-style: decimal; padding-left: 1.35rem; }
.product-description li { margin: .25rem 0; }
.product-description h2 { font-weight: 700; color: #111827; font-size: 1.125rem; line-height: 1.4; margin-top: 1.1rem; }
.product-description h3 { font-weight: 600; color: #111827; font-size: 1rem; margin-top: .85rem; }
.product-description a { color: #2563eb; text-decoration: underline; overflow-wrap: anywhere; }
/* 提示框：站内橙色调（与 Buy Now 按钮同色系），blockquote 即「注意事项」卡片 */
.product-description blockquote {
  margin: 1rem 0;
  padding: .95rem 1.1rem;
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: .5rem;
  color: #7c2d12;
}
.product-description blockquote > :first-child { margin-top: 0; }
.product-description blockquote > :last-child { margin-bottom: 0; }
.product-description blockquote p + p,
.product-description blockquote p + ul,
.product-description blockquote ul + p { margin-top: .55rem; }
.product-description blockquote ul { padding-left: 1.25rem; }
.product-description blockquote li { margin: .2rem 0; }
.product-description blockquote strong { color: #c2410c; }
.product-description[contenteditable="true"]:empty::before { content: 'Write a description…'; color: #9ca3af; }
.product-description img,
.product-description video { max-width: 100%; height: auto; border-radius: .5rem; display: block; }
.product-description iframe { width: 100%; max-width: 560px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: .5rem; }
/* 固定表格布局 + 首列 38%：窄屏不再被最长单词撑破，单元格内可断词 */
.product-description table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: .75rem 0; }
.product-description th,
.product-description td {
  border: 1px solid #e5e7eb;
  padding: .5rem .65rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-description th { width: 32%; background: #f9fafb; font-weight: 600; color: #374151; }
.product-description pre { background: #111827; color: #f9fafb; padding: .85rem 1rem; border-radius: .5rem; overflow-x: auto; font-size: .8rem; }
.product-description code { background: #f3f4f6; padding: .1rem .3rem; border-radius: .25rem; font-size: .85em; }
.product-description pre code { background: transparent; padding: 0; color: inherit; }
.product-description hr { border: 0; border-top: 1px solid #e5e7eb; margin: 1rem 0; }
.desc-editor { min-height: 520px; resize: vertical; overflow-y: auto; }
.pdp-description-section { width: 100%; }

/* 小屏（≤640px）：收紧内边距与表格字号，把宽度让给正文 */
@media (max-width: 640px) {
  section.pdp-description-section { padding: 1rem; }
  .product-description th { width: 38%; }
  .product-description th,
  .product-description td { padding: .4rem .5rem; font-size: .8125rem; }
  .product-description blockquote { padding: .8rem .9rem; }
  .product-description h2 { font-size: 1.05rem; }
  .product-description ul,
  .product-description ol { padding-left: 1.15rem; }
  .product-description blockquote ul { padding-left: 1rem; }
}

/* ── 主图灯箱（点击放大）────────────────────────────────────────────────── */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, .93);
  padding: 24px;
}
.pdp-lightbox[hidden] { display: none; }
.pdp-lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.pdp-lightbox-close,
.pdp-lightbox-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease;
}
.pdp-lightbox-close:hover,
.pdp-lightbox-arrow:hover { background: #0d9488; }
.pdp-lightbox-close { top: 18px; right: 18px; width: 44px; height: 44px; }
.pdp-lightbox-arrow { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 8px; }
.pdp-lightbox-arrow[data-lb="prev"] { left: 18px; }
.pdp-lightbox-arrow[data-lb="next"] { right: 18px; }
.pdp-lightbox-close svg { width: 22px; height: 22px; }
.pdp-lightbox-arrow svg { width: 24px; height: 24px; }
.pdp-lightbox-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  letter-spacing: .04em;
}
@media (prefers-reduced-motion: reduce) {
  .pdp-gal-arrow, .pdp-lightbox-close, .pdp-lightbox-arrow { transition: none; }
}


/* ── 后台左侧竖排导航（2026-10-27）───────────────────────────────────────
   原来是一横排选项卡（Orders/Messages/Products/...），横向排到 7 个以后在
   1024px 下开始换行、压到内容区；改成左侧竖列后固定 208px、sticky 跟随滚动。
   窄屏（<1024px）退回顶部一横排可横向滑动，不占竖向空间。 */
.admin-shell { display: grid; align-items: start; gap: 16px; }
.admin-side { min-width: 0; }
/* 视图再短也留出可视区高度：切换选项卡时整页高度不变，
   浏览器不会因为"内容变矮"去夹 scrollTop，侧栏和内容都不会跳。 */
.admin-main { min-height: calc(100vh - 190px); }

.admin-side-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  padding: 10px;
}
.admin-side-title {
  margin: 0;
  padding: 4px 8px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9ca3af;
}

.admin-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { height: 0; display: none; }

.admin-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #4b5563;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.admin-nav-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #9ca3af;
  transition: color .15s ease;
}
.admin-nav-item:hover { background: #f3f4f6; color: #111827; }
.admin-nav-item:hover svg { color: #6b7280; }
.admin-nav-item.is-active { background: #2563eb; color: #fff; }
.admin-nav-item.is-active svg { color: #fff; }

/* 数据分析沿用原来的紫色身份（现在也是内置视图，不再是跳转链接） */
.admin-nav-item.admin-nav-accent { color: #7c3aed; }
.admin-nav-item.admin-nav-accent svg { color: #7c3aed; }
.admin-nav-item.admin-nav-accent:hover { background: #f5f3ff; color: #6d28d9; }
.admin-nav-item.admin-nav-accent:hover svg { color: #6d28d9; }
.admin-nav-item.admin-nav-accent.is-active { background: #7c3aed; color: #fff; }
.admin-nav-item.admin-nav-accent.is-active svg { color: #fff; }

/* 未读红点：竖排时贴到行尾，横排时紧跟文字 */
#msg-unread-dot { flex: 0 0 auto; margin-left: auto; }

@media (min-width: 1024px) {
  /* 宽度与页头同源（2026-10-28）：<main> 用和页头完全一样的 max-w-7xl + padding，
     所以后台整块左右边缘天然对齐——左边贴网站 logo，右边贴购物车。
     侧栏与内容都在这条线里面：208px 侧栏 + 20px 间距从内容宽里让出。 */
  .admin-shell {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 20px;
  }
  /* 侧栏吸附（2026-10-30 反馈：上下滑动时「店铺管理」要停在原位）：
     页头 64px（sticky top-0）+ main 顶部留白 24px = 88px，正好是侧栏的初始位置，
     滚动后停在原处，不跟着内容上下跑；窗口很矮时导航自身滚动，不会被裁掉。 */
  .admin-side {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .admin-nav { flex-direction: column; overflow: visible; }
  .admin-nav-item { width: 100%; justify-content: flex-start; padding: 9px 10px; }
}

/* ── 回到顶部悬浮按钮（2026-10-28）──────────────────────────────────────
   买家页与卖家后台共用；由 app.js 的 mountBackToTop() 注入，
   样式写在静态 CSS 里，避免 Tailwind CDN 对运行时元素「没扫到就不生成」。 */
#gm-back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(17, 24, 39, .14);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s, border-color .18s, color .18s;
}
#gm-back-top.is-on { visibility: visible; opacity: 1; transform: none; }
#gm-back-top:hover { color: #111827; border-color: #d1d5db; }
#gm-back-top:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
@media (min-width: 768px) {
  #gm-back-top { right: 24px; bottom: 24px; }
}

/* ============================================================================
   站内信（消息中心）· 卖家三栏 / 买家单栏
   ----------------------------------------------------------------------------
   结构：.msg-shell > .msg-pane.is-list + .msg-pane.is-thread (+ .msg-pane.is-side)
   双端共用 src/js/msg-thread.js 的片段（头像 / 气泡 / 卡片 / 作曲器），
   本文件只负责排版。栅格：
     卖家  < 1024  单栏切换（列表 ⇄ 会话）
            ≥ 1024  列表 + 会话
            ≥ 1280  列表 + 会话 + 客户面板
     买家  唯一卖家 → 无会话列表，任何宽度下都是线程单栏全宽
   < 1280 客户的侧面板改为右侧抽屉（.msg-shell.side-open 打开）。
   ========================================================================== */

.msg-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: calc(100vh - 190px);
  min-height: 560px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}
.msg-shell.is-buyer {
  /* 唯一卖家 → 无会话列表，任何断点都保持单栏，避免 ≥1024 时被下面通用的两栏栅格拉开 */
  grid-template-columns: minmax(0, 1fr);
  height: min(760px, calc(100vh - 280px));
  min-height: 520px;
}

/* ── 三块窗格 ─────────────────────────────────────────────────────────────── */
.msg-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.msg-pane.is-list { background: #fff; border-right: 1px solid #e5e7eb; }
.msg-pane.is-thread { background: #f8fafc; }
.msg-pane.is-side { display: none; background: #fff; }

.msg-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.msg-list-scroll::-webkit-scrollbar { width: 8px; }
.msg-list-scroll::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 8px; }
.msg-list-scroll::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

.msg-thread-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 20px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.msg-thread-scroll::-webkit-scrollbar { width: 8px; }
.msg-thread-scroll::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 8px; }
.msg-thread-scroll::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

/* ── 列表头：标题 / 搜索 / 筛选页签 / 快捷 chips ───────────────────────────── */
.msg-list-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}
.msg-list-title { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.msg-list-title h2 { font-size: 14px; font-weight: 700; color: #111827; margin: 0; }
.msg-list-title .msg-list-count { font-size: 11px; color: #9ca3af; }
.msg-list-title .msg-list-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.msg-search { position: relative; display: block; }
.msg-search > svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.msg-search input {
  width: 100%;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  padding: 0 10px 0 30px;
  font-size: 12px;
  color: #111827;
}
.msg-search input::placeholder { color: #9ca3af; }
.msg-search input:focus {
  outline: none;
  background: #fff;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.msg-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.msg-tabs::-webkit-scrollbar { display: none; }
.msg-tab {
  border: 0;
  background: transparent;
  padding: 5px 6px 6px;
  border-bottom: 2px solid transparent;
  font-size: 11.5px;
  color: #6b7280;
  white-space: nowrap;
  cursor: pointer;
}
.msg-tab:hover { color: #111827; }
.msg-tab.is-on { color: #7c3aed; border-bottom-color: #7c3aed; font-weight: 600; }

/* 可点击复制的邮箱：中性灰胶囊，无下划线；复制图标在右侧 */
.msg-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 1px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11.5px;
  line-height: 1.6;
  cursor: pointer;
  text-decoration: none;
  word-break: break-all;
  text-align: left;
  transition: background .15s, color .15s, border-color .15s;
}
.msg-email-chip:hover { background: #e5e7eb; color: #374151; border-color: #d1d5db; }
.msg-email-chip svg { flex: none; opacity: .5; }

/* ── 会话行 ───────────────────────────────────────────────────────────────── */
.msg-conv {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.msg-conv:hover { background: #f9fafb; }
.msg-conv.is-active { background: #eef2ff; border-left-color: #6366f1; }
.msg-conv:focus-visible { outline: 2px solid #7c3aed; outline-offset: -2px; }
.msg-conv-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.msg-conv-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.msg-conv-name { font-size: 12.5px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-conv-time { margin-left: auto; flex: none; font-size: 10.5px; color: #9ca3af; }
.msg-conv-bot { display: flex; align-items: center; gap: 6px; min-width: 0; }
.msg-conv-preview { flex: 1 1 auto; min-width: 0; font-size: 11.5px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-unread { flex: none; width: 8px; height: 8px; border-radius: 9999px; background: #ef4444; }
.msg-list-empty { padding: 28px 14px; text-align: center; font-size: 12px; color: #9ca3af; }

/* ── 头像 ─────────────────────────────────────────────────────────────────── */
.msg-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 9999px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  user-select: none;
}
.msg-avatar.is-shop { background: transparent; border: 0; border-radius: 10px; }
.msg-avatar.is-shop img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── 会话头 ───────────────────────────────────────────────────────────────── */
.msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 9px 14px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.msg-head-main { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.msg-head-title { font-size: 13.5px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-head-sub { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6b7280; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-head-dot { flex: none; width: 6px; height: 6px; border-radius: 9999px; background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, .18); }
.msg-head-actions { display: flex; align-items: center; gap: 2px; flex: none; }

.msg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}
.msg-icon-btn:hover { background: #f3f4f6; color: #111827; }
.msg-icon-btn:focus-visible { outline: 2px solid #7c3aed; outline-offset: 1px; }
.msg-icon-btn.is-danger:hover { background: #fef2f2; color: #dc2626; }
.msg-icon-btn.msg-back { display: inline-flex; }

/* ── 日期分隔 / 气泡 / 元信息 ─────────────────────────────────────────────── */
.msg-day { display: flex; justify-content: center; }
.msg-day > span {
  background: #eef2f7;
  color: #7b8494;
  font-size: 10.5px;
  line-height: 1.6;
  padding: 1px 10px;
  border-radius: 9999px;
}

.msg-line { display: flex; align-items: flex-start; gap: 8px; }
.msg-line.is-mine { flex-direction: row-reverse; }
.msg-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: min(78%, 600px); }
.msg-line.is-mine .msg-col { align-items: flex-end; }
.msg-bubble {
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  transition: box-shadow .2s ease;
}
.msg-line .msg-bubble { border-top-left-radius: 4px; }
.msg-line.is-mine .msg-bubble {
  background: #7c3aed;
  border-color: #7c3aed;
  border-top-left-radius: 12px;
  border-top-right-radius: 4px;
  color: #fff;
}
.msg-line.is-flash .msg-bubble { box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.msg-meta { font-size: 10.5px; color: #9ca3af; }
.msg-atts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 消息内的商品 / 订单卡片 ───────────────────────────────────────────────── */
.msg-card {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 252px;
  max-width: 100%;
  padding: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
a.msg-card:hover { border-color: #c4b5fd; box-shadow: 0 3px 12px rgba(109, 40, 217, .10); }
.msg-card > img,
.msg-card-ph { width: 50px; height: 50px; border-radius: 8px; flex: none; }
.msg-card > img { object-fit: cover; background: #f3f4f6; display: block; }
.msg-card-ph { display: flex; align-items: center; justify-content: center; background: #f5f3ff; color: #7c3aed; }
.msg-card-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.msg-card-name { font-size: 12.5px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-card-sub { font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-card-price { font-size: 13px; font-weight: 700; color: #dc2626; }
.msg-card.is-order { width: 268px; }
.msg-card.is-order > svg { flex: none; width: 26px; height: 26px; color: #7c3aed; }
/* 订单卡件数（×N）：数字语言中性，用胶囊标签与订单号区分 */
.msg-card-qty { font-size: 10.5px; font-weight: 600; color: #7c3aed; background: #f5f3ff; border-radius: 999px; padding: 1px 6px; }

/* ── 作曲器 ───────────────────────────────────────────────────────────────── */
.msg-composer {
  flex: none;
  padding: 8px 12px 10px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.msg-textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 160px;
  padding: 4px 2px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 13.5px;
  line-height: 1.6;
  color: #111827;
}
.msg-textarea::placeholder { color: #9ca3af; }
.msg-textarea:focus { outline: none; }

.msg-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msg-tools { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; }
.msg-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  background: transparent;
}
.msg-tool:hover { background: #f5f3ff; color: #7c3aed; }
.msg-tool:focus-visible { outline: 2px solid #7c3aed; outline-offset: 1px; }
.msg-tool.is-drag { background: #f5f3ff; color: #7c3aed; box-shadow: inset 0 0 0 2px #c4b5fd; }
.msg-tool.is-locked { color: #d1d5db; cursor: not-allowed; }
.msg-tool.is-locked:hover { background: #fef3c7; color: #b45309; }
.msg-select.is-locked, .msg-select:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.msg-select {
  height: 28px;
  max-width: 148px;
  padding: 0 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 11.5px;
  cursor: pointer;
}
.msg-select:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.msg-send-area { display: flex; align-items: center; gap: 8px; flex: none; }
.msg-hint { font-size: 10.5px; color: #9ca3af; white-space: nowrap; }
.msg-send {
  height: 32px;
  padding: 0 18px;
  border: 0;
  border-radius: 9999px;
  background: #7c3aed;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease;
}
.msg-send:hover { background: #6d28d9; }
.msg-send:disabled { background: #c4b5fd; cursor: not-allowed; }
.msg-status { margin: 4px 2px 0; font-size: 11.5px; color: #7c3aed; }
.msg-status.is-error { color: #dc2626; }
.msg-attach-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.msg-attach-list:not(:empty) { margin-bottom: 6px; }
.msg-note {
  margin: 0 0 8px;
  padding: 6px 9px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11.5px;
  line-height: 1.6;
}
.msg-note.is-muted { border-color: #e5e7eb; background: #f9fafb; color: #6b7280; }

/* ── 快捷回复菜单 ─────────────────────────────────────────────────────────── */
.msg-tpl-wrap { position: relative; display: inline-flex; }
.msg-tpl-menu {
  position: absolute;
  left: 0;
  bottom: 38px;
  z-index: 40;
  width: 320px;
  max-width: 74vw;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, .14);
}
.msg-tpl-menu.hidden { display: none !important; }
.msg-tpl-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.msg-tpl-item:hover { background: #f5f3ff; }
.msg-tpl-label { font-size: 12px; font-weight: 600; color: #4c1d95; }
.msg-tpl-text {
  font-size: 11px;
  line-height: 1.5;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 空态 ─────────────────────────────────────────────────────────────────── */
.msg-empty {
  margin: auto;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.msg-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #a78bfa;
}
.msg-empty-title { margin: 0; font-size: 13px; font-weight: 600; color: #374151; }
.msg-empty-hint { margin: 0; max-width: 340px; font-size: 12px; line-height: 1.65; color: #9ca3af; }

/* ── 客户面板（卖家右栏） ─────────────────────────────────────────────────── */
.msg-pane.is-side { flex-direction: column; }
.msg-side-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}
.msg-side-name { font-size: 13.5px; font-weight: 700; color: #111827; word-break: break-word; }
.msg-side-sub { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #6b7280; flex-wrap: wrap; }
.msg-side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.msg-side-scroll::-webkit-scrollbar { width: 8px; }
.msg-side-scroll::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 8px; }
.msg-side-sec { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
.msg-side-sec-title {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #9ca3af;
}
.msg-side-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 2px 0; font-size: 12px; }
.msg-side-k { flex: none; color: #6b7280; }
.msg-side-v { min-width: 0; text-align: right; color: #111827; word-break: break-word; }
.msg-side-v a { color: #2563eb; text-decoration: none; }
.msg-side-v a:hover { text-decoration: underline; }
.msg-side-note {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  line-height: 1.6;
  color: #111827;
  resize: vertical;
}
.msg-side-note:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(124, 58, 237, .1); }
.msg-side-save {
  margin-top: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 11.5px;
  cursor: pointer;
}
.msg-side-save:hover { border-color: #c4b5fd; color: #6d28d9; }
.msg-side-actions { display: flex; gap: 6px; margin-top: 8px; }
.msg-side-btn {
  flex: 1 1 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}
.msg-side-btn:hover { border-color: #c4b5fd; color: #6d28d9; }
.msg-side-btn.is-danger:hover { border-color: #fca5a5; color: #dc2626; background: #fef2f2; }
.msg-side-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid #f1f5f9; }
.msg-side-tab {
  padding: 8px 8px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.msg-side-tab:hover { color: #111827; }
.msg-side-tab.is-on { color: #7c3aed; border-bottom-color: #7c3aed; font-weight: 600; }
.msg-side-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 16px; }
.msg-side-search { position: relative; }
.msg-side-search > svg { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.msg-side-search input {
  width: 100%;
  height: 28px;
  padding: 0 8px 0 28px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  font-size: 11.5px;
  color: #111827;
}
.msg-side-search input:focus { outline: none; background: #fff; border-color: #a78bfa; }
.msg-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #fff;
}
.msg-side-item:hover { border-color: #ede9fe; }
.msg-side-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f3ff;
  color: #7c3aed;
}
.msg-side-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-side-item-main { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.msg-side-item-name { font-size: 12px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-side-item-link { display: inline-block; max-width: 100%; color: #7c3aed; text-decoration: none; }
.msg-side-item-link:hover { color: #6d28d9; text-decoration: underline; }
.msg-side-item-sub { font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-side-item-btn {
  flex: none;
  height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 9999px;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}
.msg-side-item-btn:hover { background: #6d28d9; }
.msg-side-item-btn:disabled { background: #c4b5fd; cursor: not-allowed; }
.msg-side-empty { padding: 16px 0; text-align: center; font-size: 11.5px; color: #9ca3af; }
.msg-side-backdrop { display: none; }
.msg-side-close { display: inline-flex; }

/* ── 响应式：≥1024 双栏 · ≥1280 三栏 ─────────────────────────────────────── */
@media (min-width: 1024px) {
  .msg-shell { grid-template-columns: 288px minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .msg-shell.has-side { grid-template-columns: 288px minmax(0, 1fr) 300px; }
  .msg-pane.is-side { display: flex; }
  .msg-side-close { display: none; }
}

/* 客户面板在 <1280 为右侧抽屉 */
@media (max-width: 1279px) {
  .msg-pane.is-side {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(340px, 92vw);
    border-left: 1px solid #e5e7eb;
    box-shadow: -16px 0 40px rgba(17, 24, 39, .16);
    transform: translateX(103%);
    transition: transform .22s ease;
  }
  .msg-shell.side-open .msg-pane.is-side { transform: none; }
  .msg-side-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 75;
    background: rgba(17, 24, 39, .35);
  }
  .msg-shell.side-open .msg-side-backdrop { display: block; }
}

/* 手机端：头/尾强制满宽（2026-10-31）
   用户反馈「顶端与底部比中间窄」。实测（320/360/390/412 + 线上真实站）三区都是
   x=0、width=100%，未复现；但为了杜绝任何环境（浏览器缩放/长截图拼接/注入顺序）
   让头尾与主区宽度分裂，这里在窄屏把头/尾直接钉成 100vw 满宽：
   · 只在 ≤1023 生效（手机无覆盖式滚动条，100vw == 视口宽，不会多出横向滚动）；
   · body 加 overflow-x: clip 兜底，万一有 1px 溢出也不会出现横向滚动条；
   · 桌面端（≥1024）完全不动，仍是 max-w-7xl 居中。 */
@media (max-width: 1023px) {
  body { overflow-x: clip; }
  #site-header > header,
  #site-footer > footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* 单栏切换（<1024） */
@media (max-width: 1023px) {
  .msg-shell { height: auto; min-height: 0; }
  .msg-shell.is-buyer { height: auto; min-height: 0; }
  .msg-pane.is-list { border-right: 0; }
  .msg-list-scroll { max-height: min(70vh, 620px); }
  .msg-shell:not(.is-thread) .msg-pane.is-thread { display: none; }
  .msg-shell.is-thread .msg-pane.is-list { display: none; }

  /* 2026-10-31：手机端**取消会话区内部滚动**。
     原实现给线程区固定 min(76vh,660px) + .msg-thread-scroll 内部 overflow-y:auto
     + overscroll-behavior:contain，于是「手指上滑」先滚内部、滚到底后页面不跟，
     两层滚动互相打架。现在改为：线程区随内容长高，只有**页面**一层滚动；
     作曲器吸底，随时可输入。 */
  .msg-pane.is-thread { height: auto; max-height: none; }
  .msg-shell.is-buyer .msg-pane.is-thread { display: flex; height: auto; max-height: none; }

  .msg-thread-scroll,
  .msg-shell.is-buyer .msg-thread-scroll {
    overflow: visible;
    overscroll-behavior: auto;
    max-height: none;
    flex: none;
  }

  /* 作曲器吸底：页面滚到任何位置都能直接输入 */
  .msg-composer {
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: #fff;
    box-shadow: 0 -8px 20px rgba(16, 24, 40, .07);
  }
  /* 吸底后给最后一条消息留出一点呼吸位，避免被作曲器压住 */
  .msg-thread-scroll { padding-bottom: 8px; }

  .msg-back { display: inline-flex; }
}

/* ≥1024 维持原来的两栏 + 内部滚动（桌面端体验不变） */
@media (min-width: 1024px) {
  .msg-composer { position: static; box-shadow: none; }
}
@media (min-width: 1024px) {
  .msg-icon-btn.msg-back { display: none; }
}

/* ── 买家账户页左侧竖排导航（2026-10-29）────────────────────────────────────
   三个选项卡：账户信息 / 订单列表 / 站内消息。≥1024 竖排并吸顶，
   窄屏折成横向可滚动的胶囊行，避免占掉首屏高度。 */
.acct-nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #4b5563;
  text-align: left;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.acct-nav-item:hover { background: #f9fafb; color: #111827; }
.acct-nav-item.is-active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.acct-nav-item svg { width: 1.125rem; height: 1.125rem; flex: none; }
@media (min-width: 1024px) {
  .acct-nav-item { width: 100%; }
}

/* ── 商品图骨架（2026-11-01：静态源码不含任何商品图地址）───────────────────
   图片全部由后台数据在运行时注入；数据未到时显示中性骨架，绝不出现旧图。 */
.pdp-thumb-skeleton {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #f3f4f6;
  animation: pdpSkeletonPulse 1.4s ease-in-out infinite;
}
.pdp-hero[data-skeleton] img,
.pdp-hero img[src^="data:image/svg+xml"] {
  background: #f3f4f6;
}
@keyframes pdpSkeletonPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-thumb-skeleton { animation: none; }
}

/* ── 主图区在无图/占位时也必须撑满（2026-11-01）─────────────────────────────
   静态源码不再带商品图，占位 SVG 没有固有宽度；.pdp-imgs 是 flex 行，
   主图会塌成几十像素。这里让主图吃满剩余宽度（有图/无图表现一致）。 */
@media (min-width: 1024px) {
  .pdp-imgs.pdp-imgs > .pdp-hero {
    flex: 1 1 0;
    min-width: 0;
  }
}
.pdp-hero > img#main-image {
  width: 100%;
  display: block;
}

/* ══ 首页 S600 主视觉横幅（2026-11-07）═══════════════════════════════════════
   来源：参考稿 s600-banner（深夜黑底 + 柠檬绿点睛 + 角度切换）。
   接入原则：
     · 只作用于首页 <main> 顶部，类名统一 s6- 前缀，不碰商城其它样式；
     · 容器宽度/左右留白对齐商城 max-w-7xl（1536px + 32px），与页头自然对齐；
     · 高度改用视口比例，不再预留参考稿里 68px 的自有导航；
     · 动效仅一次入场 + 角度切换，prefers-reduced-motion 下全部关闭。
   ══════════════════════════════════════════════════════════════════════════ */
@font-face{
  font-family:'Barlow Condensed';
  src:url('../../public/fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;
}

.s6-hero{
  --s6-ink:#0E1216;
  --s6-paper:#F4F6F7;
  --s6-lime:#C8FF3D;
  --s6-white:#F5F7F8;
  --s6-muted:#B7C0C6;
  --s6-dim:#8C979E;
  --s6-line:rgba(245,247,248,.16);
  --s6-gutter:clamp(20px,4vw,32px);
  --s6-max:1536px;
  --s6-bx:62%;--s6-by:42%;
  position:relative;isolation:isolate;overflow:hidden;
  background:var(--s6-ink);color:var(--s6-white);
  min-height:78vh;
  min-height:clamp(560px,78svh,820px);
}
.s6-hero::before{
  content:"";position:absolute;inset:-12%;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 60% 62% at var(--s6-bx) var(--s6-by),rgba(196,220,232,.10),rgba(120,155,175,.04) 42%,transparent 74%),
    radial-gradient(ellipse 80% 50% at 46% 94%,rgba(150,180,195,.09),transparent 70%);
  transition:background .5s ease;
  animation:s6Breath 9s ease-in-out infinite;
}
@keyframes s6Breath{0%,100%{opacity:.86}50%{opacity:1}}
.s6-hero::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 26%,#000 72%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 26%,#000 72%,transparent 100%);
}
.s6-beam{
  position:absolute;left:-6%;top:2%;width:88%;height:84%;z-index:1;pointer-events:none;
  opacity:.6;filter:blur(30px);
  background:radial-gradient(ellipse 58% 52% at 60% 26%,rgba(226,239,245,.30),rgba(188,214,226,.11) 46%,transparent 78%);
}
/* 2026-11-08：原 top:-1% + object-position:center bottom，三张产品图顶部只有 4px 透明留白，
   车把直接顶在 hero 上沿、看起来像被切掉。改为顶部内缩 4%、高度 82%：
   底部接地线仍落在 86%（阴影与整体重心不变），只在车顶让出约 4% 的呼吸空间。 */
.s6-stage{position:absolute;left:12%;top:4%;width:82%;height:82%;z-index:2}
.s6-stage::after{
  content:"";position:absolute;left:8%;right:6%;bottom:0;height:15%;z-index:-1;
  background:radial-gradient(ellipse at center,rgba(204,226,236,.20),rgba(150,180,195,.08) 48%,transparent 76%);
  filter:blur(16px);
}
.s6-bike{
  position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;
  /* 全局 img{background:#f3f4f6} 会让 contain 的留白露出浅灰块，这里必须清掉 */
  background:transparent!important;
  opacity:0;visibility:hidden;
  filter:brightness(0.90) contrast(1.15) drop-shadow(0 0 3px rgba(200,224,235,.35)) drop-shadow(0 30px 40px rgba(0,0,0,.75));
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 92%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0%,#000 92%,transparent 100%);
  transition:opacity .5s ease,transform .5s ease;
}
.s6-bike.is-active{opacity:1;visibility:visible}
.s6-scrim{
  position:absolute;left:0;top:0;width:100%;height:100%;z-index:3;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(14,18,22,.95) 0%,rgba(14,18,22,.78) 36%,rgba(14,18,22,.22) 70%,transparent 100%),
    linear-gradient(0deg,rgba(14,18,22,.98) 0%,rgba(14,18,22,.90) 18%,rgba(14,18,22,.52) 36%,transparent 60%);
}
.s6-top{
  position:absolute;z-index:5;top:clamp(20px,4vh,40px);left:50%;transform:translateX(-50%);
  width:min(var(--s6-max),100%);padding-inline:var(--s6-gutter);text-align:right;pointer-events:none;
}
.s6-kicker{font-size:13px;font-weight:700;letter-spacing:.22em;color:var(--s6-white)}

.s6-copy{
  position:absolute;z-index:5;left:50%;transform:translateX(-50%);
  width:min(var(--s6-max),100%);padding-inline:var(--s6-gutter);
  bottom:clamp(70px,10vh,120px);
  display:grid;grid-template-columns:1.12fr .88fr;align-items:end;
  column-gap:clamp(24px,3vw,44px);row-gap:22px;
  grid-template-areas:"title sub" "actions angle";
}
.s6-h1{
  grid-area:title;margin:0;
  font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-weight:700;text-transform:uppercase;
  font-size:clamp(52px,6.6vw,104px);line-height:.86;letter-spacing:-.012em;
}
.s6-h1 span{display:block;overflow:hidden}
.s6-h1 span > span{display:block;white-space:nowrap}
.s6-h1 em{font-style:normal;color:var(--s6-lime)}
.s6-sub{grid-area:sub;max-width:360px;margin:0;font-size:16px;line-height:1.65;color:#D7DEE2;text-shadow:0 1px 14px rgba(14,18,22,.92)}
.s6-actions{grid-area:actions;display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.s6-btn{
  height:52px;display:inline-flex;align-items:center;justify-content:center;padding:0 26px;
  font-size:14px;font-weight:700;letter-spacing:.02em;text-decoration:none;
  transition:background-color .18s,color .18s,transform .14s;
}
.s6-btn:active{transform:translateY(2px)}
.s6-btn-primary{background:var(--s6-lime);color:var(--s6-ink)}
.s6-btn-primary:hover{background:#DAFF76;color:var(--s6-ink)}
.s6-btn-ghost{padding:0 6px;height:52px;color:var(--s6-white);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.s6-btn-ghost:hover{color:var(--s6-lime)}
.s6-angle{grid-area:angle;display:flex;align-items:center;justify-content:flex-end;gap:12px 18px;flex-wrap:wrap}
.s6-angle-read{font-size:13px;font-weight:600;color:var(--s6-white);min-width:206px}
.s6-angle-read b{font-weight:700}
.s6-dots{display:flex;gap:8px}
.s6-dots button{
  width:38px;height:32px;font:inherit;font-size:13px;font-weight:700;color:var(--s6-muted);
  background:none;border:0;border-bottom:2px solid rgba(245,247,248,.24);cursor:pointer;
  transition:color .18s,border-color .18s,transform .14s;
}
.s6-dots button:hover{color:var(--s6-white)}
.s6-dots button[aria-pressed="true"]{color:var(--s6-lime);border-color:var(--s6-lime)}
.s6-dots button:active{transform:translateY(2px)}
.s6-angle-note{flex-basis:100%;margin:0;font-size:13px;line-height:1.5;color:#A7B2B8;text-shadow:0 1px 12px rgba(14,18,22,.92)}
.s6-ruler{
  position:absolute;z-index:5;bottom:0;left:50%;transform:translateX(-50%);
  width:min(var(--s6-max),100%);padding-inline:var(--s6-gutter);
  height:52px;border-top:1px solid var(--s6-line);display:flex;align-items:center;
}
.s6-ruler span{font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--s6-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 浅色事实区：与商城 gray-50 衔接 */
.s6-facts{background:var(--s6-paper);color:#0E1216;padding:clamp(56px,7vw,96px) 0 clamp(56px,7.5vw,104px)}
.s6-facts-inner{width:min(var(--s6-max,1536px),100%);margin:0 auto;padding-inline:clamp(20px,4vw,32px)}
.s6-facts-head{max-width:720px;margin-bottom:clamp(32px,4vw,56px)}
.s6-facts-head h2{
  margin:0;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:700;text-transform:uppercase;
  font-size:clamp(34px,4.4vw,64px);line-height:1;letter-spacing:-.01em;
}
.s6-facts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;border-top:1px solid #CFD5D8}
.s6-fact{padding:26px 4px 0;border-right:1px solid #DDE2E4}
.s6-fact:last-child{border-right:0}
.s6-fact h3{margin:0;font-size:20px;font-weight:700;line-height:1.25}
.s6-fact p{margin:12px 0 0;font-size:15px;line-height:1.65;color:#4F595F;max-width:340px}

/* 入场：一次编排，不做循环 */
@media (prefers-reduced-motion: no-preference){
  .s6-bike.is-active{animation:s6BikeIn .9s cubic-bezier(.22,.61,.36,1) both}
  .s6-h1 span > span{animation:s6LineIn .85s cubic-bezier(.22,.61,.36,1) both}
  .s6-h1 span:nth-child(2) > span{animation-delay:.09s}
  .s6-sub,.s6-actions,.s6-angle{animation:s6FadeUp .6s cubic-bezier(.22,.61,.36,1) both}
  .s6-sub{animation-delay:.18s}
  .s6-actions{animation-delay:.26s}
  .s6-angle{animation-delay:.34s}
}
@keyframes s6BikeIn{from{opacity:0;transform:translateX(44px)}to{opacity:1;transform:none}}
@keyframes s6LineIn{from{transform:translateY(112%)}to{transform:none}}
@keyframes s6FadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}

/* ── 响应式 ───────────────────────────────────────────────────────────── */
@media (max-width:1100px){
  .s6-copy{grid-template-columns:1fr;grid-template-areas:"title" "sub" "actions" "angle";row-gap:18px}
  .s6-sub{max-width:520px}
  .s6-angle{justify-content:flex-start}
  .s6-angle-note{max-width:520px}
}
@media (max-width:900px){
  .s6-facts-grid{grid-template-columns:1fr 1fr}
  .s6-fact:nth-child(2){border-right:0}
  .s6-stage{left:8%;width:84%}
}
@media (max-width:720px){
  .s6-hero{min-height:760px;--s6-bx:50%;--s6-by:32%}
  .s6-hero::before{background:
    radial-gradient(ellipse 80% 42% at var(--s6-bx) var(--s6-by),rgba(196,220,232,.12),rgba(120,155,175,.05) 44%,transparent 76%),
    radial-gradient(ellipse 90% 30% at 50% 46%,rgba(150,180,195,.09),transparent 70%)}
  .s6-beam{left:-10%;top:2%;width:120%;height:60%;opacity:.62;filter:blur(26px)}
  .s6-stage{left:0;top:2%;width:100%;height:44%}
  .s6-scrim{background:linear-gradient(180deg,transparent 0%,rgba(14,18,22,.26) 26%,rgba(14,18,22,.93) 55%,var(--s6-ink) 100%)}
  .s6-top{top:14px}
  .s6-copy{bottom:64px;row-gap:14px}
  .s6-h1{font-size:clamp(46px,12.8vw,72px);line-height:.88}
  .s6-sub{font-size:15px;line-height:1.6;max-width:100%}
  .s6-actions{gap:10px}
  .s6-btn{height:48px;padding:0 18px;font-size:13px}
  .s6-btn-ghost{padding:0 2px}
  .s6-angle{gap:10px 14px;justify-content:flex-start}
  .s6-angle-read{min-width:100%;font-size:13px}
  .s6-ruler{height:auto;min-height:46px;padding-block:8px}
  .s6-ruler span{white-space:normal;line-height:1.4;letter-spacing:.04em;font-size:11px}
  .s6-facts-grid{grid-template-columns:1fr}
  .s6-fact{border-right:0;border-bottom:1px solid #DDE2E4;padding:20px 0 22px}
  .s6-fact:last-child{border-bottom:0}
}
@media (prefers-reduced-motion: reduce){
  .s6-hero::before{animation:none}
  .s6-bike,.s6-btn,.s6-dots button{transition:none}
}

/* S600 横幅：CJK / 西里尔字母的字号与行高适配（2026-11-07）
   Barlow Condensed 只覆盖拉丁字母；中日韩/俄文回落到系统粗体，需要另设字阶。 */
html[lang="ja"] .s6-h1,
html[lang="zh"] .s6-h1{
  font-family:'Inter','Noto Sans JP','Noto Sans TC',system-ui,-apple-system,sans-serif;
  font-size:clamp(38px,5.2vw,76px);line-height:1.16;letter-spacing:.01em;
}
html[lang="ru"] .s6-h1{font-size:clamp(42px,5.4vw,86px);line-height:1;letter-spacing:-.005em}
html[lang="ja"] .s6-facts-head h2,
html[lang="zh"] .s6-facts-head h2{
  font-family:'Inter','Noto Sans JP','Noto Sans TC',system-ui,sans-serif;
  font-size:clamp(28px,3.2vw,44px);line-height:1.32;letter-spacing:.01em;
}
html[lang="ru"] .s6-facts-head h2{font-size:clamp(28px,3.6vw,50px);line-height:1.12}
@media (max-width:720px){
  html[lang="ja"] .s6-h1,html[lang="zh"] .s6-h1{font-size:clamp(30px,8.6vw,46px);line-height:1.2}
  html[lang="ru"] .s6-h1{font-size:clamp(32px,9vw,48px)}
  html[lang="ja"] .s6-facts-head h2,html[lang="zh"] .s6-facts-head h2{font-size:clamp(24px,6.6vw,32px)}
}

/* ══ 首页 MX03 产品章节（2026-11-09）═════════════════════════════════════════
   三个模块按顺序：
     .mx-hero    深色主推横幅（文案左 / 车右）
     .mx-detail  浅色细节三联（满版照片 + 编号 + 微文案）
     .mx-pair    昼 / 夜双车对照（左右各半，整块可点）
   设计原则：完全沿用 S600 横幅的设计令牌 —— 同一套色板（#0E1216 / #F4F6F7 /
   #C8FF3D）、同一款 Barlow Condensed 700、同样的直角与 hairline、同样的
   1536 + clamp(20,4vw,32) 栅格 —— 让两个产品章节读起来是一套语言，而不是
   两个拼贴。作用域全部收在 mx- 前缀内，不影响商城其它页面。
   ══════════════════════════════════════════════════════════════════════════ */

.mx-hero{
  --mx-ink:#0E1216;
  --mx-paper:#F4F6F7;
  --mx-lime:#C8FF3D;
  --mx-white:#F5F7F8;
  --mx-muted:#B7C0C6;
  --mx-dim:#8C979E;
  position:relative;isolation:isolate;overflow:hidden;
  background:var(--mx-ink);color:var(--mx-white);
  padding:clamp(56px,7vw,100px) 0 clamp(40px,4.5vw,64px);
}
.mx-hero::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 52% 62% at 74% 46%,rgba(196,220,232,.13),rgba(120,155,175,.05) 44%,transparent 76%),
    radial-gradient(ellipse 68% 40% at 16% 92%,rgba(200,255,61,.055),transparent 70%);
}
.mx-hero::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 30%,#000 78%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 30%,#000 78%,transparent 100%);
}
.mx-inner{position:relative;z-index:2;width:min(1536px,100%);margin:0 auto;padding-inline:clamp(20px,4vw,32px)}
.mx-hero-grid{
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  align-items:center;column-gap:clamp(24px,4vw,64px);row-gap:clamp(24px,3vw,40px);
}
.mx-kicker{display:block;font-size:12px;font-weight:700;letter-spacing:.22em;color:var(--mx-muted)}
.mx-h2{
  margin:14px 0 0;font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;
  font-weight:700;text-transform:uppercase;
  font-size:clamp(40px,4.9vw,80px);line-height:.92;letter-spacing:-.008em;
}
.mx-h2 em{font-style:normal;color:var(--mx-lime)}
.mx-lede{margin:18px 0 0;font-size:16px;line-height:1.68;color:#C9D2D7;max-width:46ch}
.mx-stats{
  display:flex;flex-wrap:wrap;gap:clamp(18px,2.6vw,40px);
  margin:26px 0 0;padding:20px 0 0;list-style:none;
  border-top:1px solid rgba(245,247,248,.14);
}
.mx-stat b{
  display:block;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:700;
  font-size:clamp(26px,2.3vw,34px);line-height:1;color:#fff;letter-spacing:-.01em;
}
.mx-stat span{display:block;margin-top:7px;font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--mx-dim)}
.mx-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:clamp(24px,2.6vw,32px)}
.mx-btn{
  height:50px;display:inline-flex;align-items:center;justify-content:center;padding:0 24px;
  font-size:13.5px;font-weight:700;letter-spacing:.03em;text-decoration:none;
  transition:background-color .18s,color .18s,transform .14s;
}
.mx-btn:active{transform:translateY(2px)}
.mx-btn-lime{background:var(--mx-lime);color:var(--mx-ink)}
.mx-btn-lime:hover{background:#DAFF76;color:var(--mx-ink)}
.mx-btn-ghost{padding:0 4px;height:50px;color:var(--mx-white);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.mx-btn-ghost:hover{color:var(--mx-lime)}
.mx-stage{position:relative;min-width:0}
.mx-stage img{
  display:block;width:100%;height:auto;
  /* 全局 img{background:#f3f4f6} 会让透明 PNG 透出浅灰块，必须清掉 */
  background:transparent!important;
  filter:drop-shadow(0 0 2px rgba(200,224,235,.35)) drop-shadow(0 30px 44px rgba(0,0,0,.55));
}
.mx-ruler{
  margin:clamp(30px,3.6vw,52px) 0 0;padding:16px 0 0;
  border-top:1px solid rgba(245,247,248,.14);
  font-size:11.5px;font-weight:600;letter-spacing:.14em;color:var(--mx-dim);
}

/* 浅色细节三联 */
.mx-detail{background:#F4F6F7;color:#0E1216;padding:clamp(56px,7vw,96px) 0 clamp(56px,7.5vw,104px)}
.mx-detail-head{max-width:760px;margin-bottom:clamp(28px,3.6vw,48px)}
.mx-detail-head .mx-kicker{color:#7A868D}
.mx-detail-head h2{
  margin:12px 0 0;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:700;
  text-transform:uppercase;font-size:clamp(32px,4.2vw,60px);line-height:1;letter-spacing:-.01em;
}
.mx-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.8vw,24px)}
.mx-card{display:flex;flex-direction:column;background:#fff;border:1px solid #E1E6E8;overflow:hidden}
.mx-card-img{position:relative;aspect-ratio:4/5;overflow:hidden;background:#F4F6F7}
.mx-card-img img{
  display:block;width:100%;height:100%;object-fit:cover;background:transparent!important;
  transition:transform .7s cubic-bezier(.22,.61,.36,1);
}
.mx-card:hover .mx-card-img img{transform:scale(1.045)}
.mx-card-body{padding:clamp(18px,1.8vw,24px) clamp(18px,1.8vw,24px) clamp(22px,2.2vw,28px)}
.mx-num{display:block;font-size:11px;font-weight:700;letter-spacing:.16em;color:#8C979E}
.mx-card-body h3{margin:10px 0 0;font-size:clamp(17px,1.35vw,20px);line-height:1.3;font-weight:700}
.mx-card-body p{margin:10px 0 0;font-size:14.5px;line-height:1.62;color:#4F595F}

/* 昼 / 夜双车对照 */
.mx-pair{display:grid;grid-template-columns:1fr 1fr;background:#0E1216}
.mx-pair-half{
  position:relative;display:flex;flex-direction:column;justify-content:flex-end;
  min-height:clamp(320px,38vh,430px);padding:clamp(22px,2.6vw,36px);
  text-decoration:none;overflow:hidden;
}
.mx-pair-half.is-night{background:#0E1216;color:#F5F7F8}
.mx-pair-half.is-night::before{
  content:"";position:absolute;inset:6% 4% 24%;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse 62% 58% at 50% 44%,rgba(206,228,238,.16),rgba(150,180,195,.06) 46%,transparent 74%);
}
.mx-pair-half.is-day{background:#F4F6F7;color:#0E1216;border-left:1px solid rgba(14,18,22,.10)}
.mx-pair-img{position:relative;z-index:1;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding-bottom:12px}
.mx-pair-img img{
  max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  background:transparent!important;
  transition:transform .5s cubic-bezier(.22,.61,.36,1);
}
/* 深色半区：S600 本身是黑色车架，不加光晕与亮度会在 #0E1216 上糊成一片；
   底部再叠一道遮罩，避免阴影硬边在深色底上露出直角。 */
.mx-pair-half.is-night .mx-pair-img img{
  filter:brightness(1.16) contrast(1.05) drop-shadow(0 0 2px rgba(200,224,235,.40)) drop-shadow(0 18px 28px rgba(0,0,0,.55));
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 90%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0%,#000 90%,transparent 100%);
}
.mx-pair-half:hover .mx-pair-img img{transform:translateY(-4px) scale(1.02)}
.mx-pair-body{position:relative;z-index:2}
.mx-pair-body .mx-kicker{color:#8C979E}
.mx-pair-half.is-day .mx-pair-body .mx-kicker{color:#7A868D}
.mx-pair-body h3{
  margin:8px 0 0;font-family:'Barlow Condensed','Arial Narrow',sans-serif;
  font-size:clamp(34px,3.4vw,52px);line-height:.95;text-transform:uppercase;letter-spacing:-.01em;
}
.mx-pair-body p{margin:10px 0 0;font-size:14.5px;line-height:1.55;max-width:38ch;color:#A7B2B8}
.mx-pair-half.is-day .mx-pair-body p{color:#4F595F}
.mx-pair-go{display:inline-flex;align-items:center;gap:8px;margin-top:16px;font-size:12px;font-weight:700;letter-spacing:.12em;color:#C8FF3D}
.mx-pair-half.is-day .mx-pair-go{color:#0E1216}
.mx-pair-go::after{content:"→";transition:transform .2s}
.mx-pair-half:hover .mx-pair-go::after{transform:translateX(4px)}

/* ── 响应式 ───────────────────────────────────────────────────────────── */
@media (max-width:1023px){
  .mx-hero-grid{grid-template-columns:1fr}
  .mx-stage{order:-1}
  .mx-stage img{max-height:44svh;width:auto;max-width:100%;margin:0 auto}
  .mx-lede{max-width:62ch}
}
@media (max-width:900px){
  .mx-detail-grid{gap:12px}
  .mx-card-body{padding:16px 16px 20px}
  .mx-card-body p{font-size:13.5px}
}
/* 细节卡在窄屏改为横向滚动轨：保持 4:5 图幅，不产生孤行卡片 */
@media (max-width:860px){
  .mx-detail-grid{
    display:grid;grid-auto-flow:column;grid-auto-columns:72%;grid-template-columns:none;
    gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    padding-bottom:6px;scrollbar-width:none;
  }
  .mx-detail-grid::-webkit-scrollbar{display:none}
  .mx-card{scroll-snap-align:start}
  .mx-card-body{padding:18px 18px 22px}
  .mx-card-body p{font-size:14px}
}
@media (max-width:760px){
  .mx-h2{font-size:clamp(34px,9.6vw,56px)}
  .mx-lede{font-size:15px;line-height:1.6}
  .mx-btn{height:46px;padding:0 18px;font-size:13px}
  .mx-btn-ghost{padding:0 2px}
  .mx-detail-grid{grid-auto-columns:74%}
  .mx-pair{grid-template-columns:1fr}
  .mx-pair-half{min-height:296px;padding:24px}
  .mx-pair-half.is-day{border-left:0;border-top:1px solid rgba(14,18,22,.10)}
  .mx-ruler{white-space:normal;line-height:1.5;letter-spacing:.06em;font-size:11px}
}
@media (prefers-reduced-motion: reduce){
  .mx-card-img img,.mx-pair-img img,.mx-pair-go::after,.mx-btn{transition:none}
}
/* CJK / 西里尔字母：Barlow Condensed 不覆盖，另设字阶 */
html[lang="ja"] .mx-h2,
html[lang="zh"] .mx-h2{
  font-family:'Inter','Noto Sans JP','Noto Sans TC',system-ui,-apple-system,sans-serif;
  font-size:clamp(30px,4vw,56px);line-height:1.2;letter-spacing:.01em;
}
html[lang="ru"] .mx-h2{font-size:clamp(34px,4.2vw,66px);line-height:1.04}
html[lang="ja"] .mx-detail-head h2,
html[lang="zh"] .mx-detail-head h2{
  font-family:'Inter','Noto Sans JP','Noto Sans TC',system-ui,sans-serif;
  font-size:clamp(26px,3vw,42px);line-height:1.32;letter-spacing:.01em;
}
html[lang="ru"] .mx-detail-head h2{font-size:clamp(26px,3.2vw,46px);line-height:1.14}
/* 日语：按词组折行（Chrome 119+ 支持 auto-phrase），避免「バッテ/リー」这类
   片假名词被从中间劈开；不支持的浏览器自动退回默认行为，无副作用。 */
html[lang="ja"] .mx-lede,
html[lang="ja"] .mx-card-body p,
html[lang="ja"] .mx-pair-body p,
html[lang="ja"] .mx-ruler,
html[lang="ja"] .mx-stat span{word-break:auto-phrase;line-break:strict}
html[lang="ja"] .mx-pair-body h3,
html[lang="zh"] .mx-pair-body h3,
html[lang="ja"] .mx-stat b,
html[lang="zh"] .mx-stat b{font-family:'Inter','Noto Sans JP','Noto Sans TC',system-ui,sans-serif}
@media (max-width:720px){
  html[lang="ja"] .mx-h2,html[lang="zh"] .mx-h2{font-size:clamp(26px,7.8vw,40px);line-height:1.24}
  html[lang="ru"] .mx-h2{font-size:clamp(28px,8.4vw,44px)}
  html[lang="ja"] .mx-detail-head h2,html[lang="zh"] .mx-detail-head h2{font-size:clamp(22px,5.8vw,30px)}
}
