/** Shopify CDN: Minification failed

Line 1077:0 Unexpected "@media"
Line 2267:0 Unexpected "@media"

**/
/*
 * theme-motion.css —— 对标站动效/版式节奏的等价重写（全局）
 *
 * 定位：这是**全局**样式，只做两件事——
 *   1) 把「动效令牌」写成 CSS 变量，数值取自对标站实测（不复制其代码）；
 *   2) 补 Horizon 缺的那一层：滚动进场动效、卡片悬停的时长/缓动对齐。
 *
 * 明确不做的事：
 *   - 不引任何第三方库（无 jQuery / animate.css / WOW.js / Swiper）；
 *   - 不覆盖 Horizon 的组件结构与配色（配色仍在 config/settings_data.json 里设）；
 *   - 不写 !important 去压 Horizon 的既有规则，靠「加载顺序 + 同名变量」生效。
 *
 * 关键：本文件必须**在 Horizon 的 base.css 之后**加载，否则变量会被覆盖回默认值。
 *       接线见 snippets/theme-motion-runtime.liquid（在 stylesheets 之后 render）。
 *
 * 数值来源（全部实测，不是估的）：
 *   对标站 assets/demo/theme/css/theme.css：
 *     transition: all 400ms ease-in-out        —— 出现 187 次，是它的动效主参数
 *     transition: transform 0.5s cubic-bezier(0.75, 0.03, 0.52, 1)  —— 抽屉/滑入
 *     .product-wrapper:hover .fade_img img.image_thumb      { opacity: 0 }   ← 主图淡出
 *     .product-thumb .fade_img img.image_thumb_swap         { opacity: 0; transition: all 400ms ease-in-out 0s }
 *     .product-wrapper:hover ...image_thumb_swap            { opacity: 1 }   ← 副图淡入（交叉淡入）
 *     .style2 .product-wrapper:hover ...image_thumb_swap    { opacity: 0.6 } ← style2 卡片只到 0.6
 *     .product-wrapper:hover .product-thumb .zoom_img .image_thumb_swap { opacity: 1; transform: scale(1) }
 *   对标站 assets/demo/theme/css/animate.css：
 *     .hb-animate-element.hb-in-viewport.bottom-to-top { animation: 1s ease 0s normal none 1 fadeInUp }
 *     元素初始 opacity: 0，进场后 opacity: 1；区块上挂 data-wow-offset="100"、data-wow-delay="0.3s"
 *   对标站 data/demo/rendered/home.html 内联 :root：
 *     --font-size-base: 14px; --font-line-height: 24px; --font-letterspace: 1px;
 *     --gutter: 30px; --sectionSpacing: 55px; --sectionSpacingSmall: 35px;
 */

:root {
  /* ---- 动效令牌（对标站实测值的等价命名） ---- */
  --tm-duration-base: 400ms;                 /* 对标站主参数 all 400ms */
  --tm-ease-base: ease-in-out;               /* 对标站 202/213 条 transition 用它 */
  --tm-ease-slide: cubic-bezier(0.75, 0.03, 0.52, 1);  /* 对标站抽屉/滑入 */
  --tm-duration-slide: 500ms;

  /* 卡片悬停：把 Horizon 的 250ms/ease-out 对齐到对标站的 400ms/ease-in-out。
     变量名是 Horizon 自己的（base.css:16-17），所以这里只改值、不改结构。 */
  --hover-transition-duration: var(--tm-duration-base);
  --hover-transition-timing: var(--tm-ease-base);

  /* ---- 版式/节奏令牌（对标站实测值） ---- */
  --tm-font-size-base: 14px;
  --tm-line-height-base: 24px;
  --tm-letter-spacing-base: 1px;
  --tm-gutter: 30px;
  --tm-section-spacing: 55px;
  --tm-section-spacing-small: 35px;

  /*
   * 滚动进场的位移量。对标站 animate.css 实测：
   *   @keyframes fadeInUp    { 0% { opacity:0; transform: translateY(100px)  } }
   *   @keyframes fadeInLeft  { 0% { opacity:0; transform: translateX(-100px) } }
   *   @keyframes fadeInRight { 0% { opacity:0; transform: translateX(100px)  } }
   * 位移是 **100px**（不是小位移）。这里对齐到 100px。
   * 手机端 100px 横向位移会显得夸张，所以横向在窄屏降到 40px（见文件末尾的媒体查询）。
   */
  --tm-reveal-shift: 100px;
  --tm-reveal-shift-inline: 100px;   /* 横向（left/right）单独一个变量，便于窄屏收窄 */
  --tm-reveal-duration: 1s;
  --tm-reveal-delay: 0ms;
}

/*
 * 对标站的正文节奏：14px / 24px 行高 / 1px 字距。
 * Horizon 把字距做成了 tight|normal|loose 三档（没有像素级设置），
 * 所以这里用最窄的合理手段把字距变量对齐到实测值。
 */
:root {
  --font-h1--spacing: var(--tm-letter-spacing-base);
  --font-h2--spacing: var(--tm-letter-spacing-base);
  --font-h3--spacing: var(--tm-letter-spacing-base);
  --font-h4--spacing: var(--tm-letter-spacing-base);
  --font-h5--spacing: var(--tm-letter-spacing-base);
  --font-h6--spacing: var(--tm-letter-spacing-base);
  --font-paragraph--spacing: 0.5em;
}

/* =========================================================================
 * 1. 商品卡：悬停交叉淡入 + 轻微放大
 *
 * Horizon 的「悬停换第二张图」是 JS 驱动的轮播切页（card-gallery 上的
 * on:pointerenter="/previewImage"），切页本身没有过渡——所以观感是「啪」地
 * 换图，不像对标站那样两张图交叉淡入。这里给幻灯片容器补上不透明度过渡，
 * 让切页变成交叉淡入；时长/缓动取对标站的 400ms ease-in-out。
 *
 * 只在「指针精确 + 用户没有要求减少动态」时生效，触摸设备不受影响。
 * ========================================================================= */

@media (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card-gallery slideshow-slide {
    transition:
      opacity var(--tm-duration-base) var(--tm-ease-base),
      visibility var(--tm-duration-base) var(--tm-ease-base);
  }

  /* 图片本体的过渡：Horizon 的 subtle-zoom 只给 .card-gallery / .product-card__image
     挂了 transform 过渡，图本身没有。补上，让放大是「渐入」而不是跳变。 */
  .card-gallery img {
    transition: transform var(--tm-duration-base) var(--tm-ease-base),
      opacity var(--tm-duration-base) var(--tm-ease-base);
  }

  /* 对标站的卡片悬停还有一层：整卡轻微抬升 + 描边提亮，形成「光影」层次。
     它的阴影实测里 24/52 条是 none，靠的是 #444 描边压在 #111 底上的对比，
     所以这里也是「描边提亮 + 轻微放大」，不加大阴影。 */
  .product-card {
    transition:
      transform var(--tm-duration-base) var(--tm-ease-base),
      border-color var(--tm-duration-base) var(--tm-ease-base);
  }

  .product-card:hover {
    transform: translateY(-2px);
  }
}

/* =========================================================================
 * 2. 滚动进场动效（Horizon 完全没有，对标站每屏都挂 WOW.js）
 *
 * 对标站每个区块是：初始 opacity:0 / visibility:hidden，进视口后播
 * 1s ease fadeInUp|fadeInLeft|fadeInRight，并支持 data-wow-delay 错开。
 * 这里用原生 IntersectionObserver（见 assets/theme-motion.js）做同一件事。
 *
 * ⚠️ 2026-10-13 生产事故（这段规则改过一次，原因写在这里）
 *
 * 第一版有一条 `html.tm-motion [data-tm-reveal] { opacity:0; visibility:hidden }`
 * —— 即「JS 在加载时给所有元素打标记，CSS 立刻全部隐藏」。
 * **它导致了线上事故**：用户看到「内容闪一下 -> 黑屏 -> 页面滑不动」。
 * 只要观察器因为任何原因没触发，元素就永久停在 opacity:0 + visibility:hidden，
 * 深色背景上整页就是黑的；内容还不可交互，表现就是「卡死」。
 *
 * 现在改成**内容默认可见**：JS 只在元素**即将进入视口前**才给它加 data-tm-reveal
 * 并立刻播动画，隐藏窗口只有几十毫秒。这一节里**不存在**
 * 「[data-tm-reveal] 一律隐藏」这种规则 —— 这是刻意的，别再改回去。
 * ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  /*
   * 隐藏只发生在「JS 已决定给这个元素做动画」的那一瞬间。
   * 下面这条同时承担两件事：隐藏起始态 + 播动画 —— 因为它是 600ms 的动画
   * 且 fill-mode: both，所以从 JS 加标记到动画结束的这段时间里，
   * 元素的状态完全由这条规则决定，不存在「隐藏了但没动画」的空窗。
   */
  [data-tm-reveal='up'] {
    animation: tm-fade-in-up var(--tm-reveal-duration) ease var(--tm-reveal-delay) both;
  }
  [data-tm-reveal='left'] {
    animation: tm-fade-in-left var(--tm-reveal-duration) ease var(--tm-reveal-delay) both;
  }
  [data-tm-reveal='right'] {
    animation: tm-fade-in-right var(--tm-reveal-duration) ease var(--tm-reveal-delay) both;
  }
  [data-tm-reveal='fade'] {
    animation: tm-fade-in var(--tm-reveal-duration) ease var(--tm-reveal-delay) both;
  }

  /* 动画播完撤掉 will-change，避免整页一直挂在合成层上 */
  [data-tm-reveal].tm-done {
    will-change: auto;
  }
}

/* =========================================================================
 * 2b. 卡片渐入（对齐对标站 `.product-wrapper { animation: zoomIn 400ms ease }`）
 *
 * 对标站实测：商品卡是 **zoomIn 400ms ease，渲染时就播**（不是滚动触发）；
 * 滚动触发的只有区块级 fadeInUp/fadeInLeft。
 * 这里保留 zoomIn 的观感，但改成「进入视口时按序落位」，并且**只缩放不位移** ——
 * 卡片是网格项，位移在窄屏换行时容易看起来错位。
 *
 * 安全性沿用第 2 节的原则：**卡片默认可见**。JS 只在即将进入视口前加 data-tm-card，
 * 动画自带 from{opacity:0} 且 fill-mode: both，所以「隐藏」与「播动画」仍是同一个动作，
 * 不存在「隐藏了却没动画」的空窗。任何失败路径都是「不播动画、卡片照常显示」。
 * ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  [data-tm-card].tm-card-in {
    animation: tm-card-zoom-in 400ms ease var(--tm-card-delay, 0ms) both;
  }

  /* 键盘焦点下的卡片不做缩放残留，避免和 :focus-visible 描边打架 */
  [data-tm-card].tm-card-in:focus-within {
    animation-name: none;
  }
}

@keyframes tm-card-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================================
 * 2c. 置顶导航的进场（T23）
 *
 * 用户反馈「滑动到最下面的时候，顶部的导航栏和其他各种卡片是渐入弹出的效果」。
 * Horizon 的 header 是吸顶元素，滚动到页面底部时它仍在视口里，此时如果做了
 * 滚动进场就会「到页面底部导航突然淡入」—— 那不是对标站的行为。
 *
 * 对标站的实际做法是**加载时一次性淡入**（页面打开就有了，滚动时不再变）。
 * 所以这里做成「加载即播一次」，并且**刻意不做隐藏态**：
 * 只从上方 12px + 透明开始播 500ms，播完就稳定。
 * 为什么不留隐藏态：header 是首屏最显眼的元素，任何「先无后有」的窗口
 * 都会造成一眼可见的闪烁（本项目已经因为「先隐藏再显示」出过一次事故）。
 * 从 12px 位移开始播，观感上就是「滑入」，但不存在「什么都没有」的一帧。
 * ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  header.tm-header-in {
    animation: tm-header-enter 500ms ease both;
  }
}

@keyframes tm-header-enter {
  from {
    opacity: 0.001;
    transform: translate3d(0, -12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* =========================================================================
 * 2f. 导航栏 1:1 对齐对标站（T26）—— 全部数值来自对标站**计算样式实测**（SOURCE）
 *
 * 用 CDP 连到用户已开的 Edge，两个站同视口（1440x900）实测：
 *
 *   ┌ 对标站（sun-lighting-store）实测 ─────────────────────────────────────┐
 *   │ 导航栏        .sticky_header      1425x120  @ (0,44)                  │
 *   │ 顶栏（公告）                       高度 44px                          │
 *   │ 内层容器      .main-header        1340x120  @ (43,44)  ← 左边距 43px  │
 *   │               display:flex; justify-content:space-between; align:center│
 *   │ 菜单容器      .menu_wrapper        560x120  @ (463,44)  ← 居中        │
 *   │ 一级项 li     #tb-megamenu … > li  79x120   padding:41px 5px; margin:0 2px│
 *   │ 一级项 a                          69x38     padding:8px 8px 8px 14px  │
 *   │               字号 16px / 行高 22px / letter-spacing 1px / capitalize  │
 *   │ logo          .header-logo img    201x78   @ (43,65)                  │
 *   │ 购物车         .site-header_cart_link 40x40 @ (1341,84)               │
 *   └──────────────────────────────────────────────────────────────────────┘
 *
 * 我们改前：导航栏 64px、logo 165x64、导航字号 14px/字距 normal。
 * 差距的根源是**导航栏太矮**（对标站 120px，靠 41px 上下内边距撑起来）。
 * ========================================================================= */

@media screen and (min-width: 990px) {
  /* 导航栏高度：对标站 120px。Horizon 的 --header-height 由 section_height 决定，
     这里直接把高度变量顶到对标站的量级 —— 比给子元素堆 padding 稳，
     因为吸顶/滚动逻辑都读这个变量。 */
  .header,
  #header-component {
    --header-height: 120px;
  }

  .header__columns {
    min-height: 120px;
  }

  /* 一级导航项：字号与字距对齐（对标站 16px/22px、letter-spacing 1px） */
  .menu-list__link,
  .menu-list__list-item > a,
  .overflow-menu::part(overflow) {
    --menu-top-level-font-size: 16px;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 1px;
    text-transform: capitalize;
    font-weight: 400;
  }

  /* 一级项之间的间距：对标站是 li 的 margin:0 2px + a 的 padding 8px 8px 8px 14px，
     合计每项左右各约 16px 视觉间距。Horizon 用 gap，这里换算成等值 gap。 */
  .menu-list,
  .overflow-menu::part(overflow-list) {
    gap: 4px;
  }
}

/* 按钮：对标站 .btn-secondary 是**药丸形**（border-radius: 50px），
   尺寸 15px/17px weight500 uppercase padding 14px 30px。
   排除 .button-unstyled：Horizon 的轮播缩略图和图标按钮也会带 .button，
   不能继承这组面向文字按钮的内边距。

   顺带说明：按钮字号 Horizon 也走变量（`--font-…`），
   但按钮不是 text-block，实测全局 `font-size` 直接生效，所以这里用普通属性即可。 */
.button:not(.button-unstyled),
.button-secondary:not(.button-unstyled),
.button-custom:not(.button-unstyled) {
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 17px;
  font-weight: 500;
  padding: 14px 30px;
}

/* =========================================================================
 * 首屏：锚点用 `.slide__content`，**不要用 `.slideshow`**（T26 重大发现）
 *
 * 我在这一节里曾经写满 `.slideshow h1 { … }`、`.slideshow .button { … }` 之类的规则，
 * 然后反复"验证"它们 —— 全都没生效，因为它们**全是死代码**：
 * **DOM 里根本不存在 `.slideshow` 这个类。**
 *
 * 实测（用 CDP 在真页面里数类名）我们首屏的真实结构是：
 *     div#shopify-section-template--…__screen_04_slideshow
 *       └ div.slideshow-section.section.section--full-width
 *           └ slideshow-component.slideshow--content-on-media      ← 自定义元素，无 .slideshow 类
 *               └ slideshow-container
 *                   └ slideshow-slides
 *                       └ slideshow-slide
 *                           └ div.slide__content                 ← 稳定锚点
 *                               └ div.group-block-content
 *                                   └ div.text-block.--…__slide_01_heading.h1
 *
 * 稳定性排序：`.slide__content` / `.group-block-content` 是 Horizon 的语义类（稳定），
 * `text-block--<长哈希>` 是每个区块生成的（会变），`slideshow-*` 是自定义元素名（不是类）。
 *
 * 另一条同样重要的发现：Horizon 用 `var()` 输出字号，且把类名写两遍来加倍特异性：
 *     h1, .h1.h1, .text-block.h1 > * { font-size: var(--font-h1--size); … }
 * 所以 `font-size` 抢不过它，**要改的是它引用的变量**（变量就地赋值即可生效）。
 *
 * 对标站在 1440 宽下实测：标题 42px/62px + letter-spacing 0.3px；
 * 副标题 17px/30px + letter-spacing 1px；按钮 15px/17px weight500 radius 50px。
 * ========================================================================= */
.slide__content {
  --font-h1--size: 42px;
  --font-h1--line-height: 62px;
  --font-h1--letter-spacing: 0.3px;
  --font-h1--case: uppercase;
  --font-paragraph--size: 17px;
  --font-paragraph--line-height: 30px;
}

/*
 * 文字块宽度 + 水平位置：对标站 `.slider-description` = 491.75px @ x≈195
 * （= 容器 1405 × 35%，且 `.slider-description.left { left: 13% }`）。
 *
 * 这里有两条**必须记住的机制**，我为此多花了两轮排查：
 *
 * ① 宽度与居中不是 `align-items` 决定的。
 *    Horizon 在 `snippets/text-block-styles.liquid:25` 给 text-block 写了 `margin-inline: auto`，
 *    而 **flex 布局里 auto 外边距会压过 `align-items`**（CSS 既定行为）。
 *    所以 `.group-block-content` 上虽然明明写着 `align-items: flex-start`，
 *    元素依然被 auto 外边距居中 —— 实测 x 偏到容器中央。
 *    → 要改位置，就得改**外边距**，不是对齐属性。
 *
 * ② 别拿 `.slide__content` 当"首屏文字块"来量。
 *    轮播有多张 slide，`document.querySelector('.slide__content')` 命中的可能是
 *    **当前不在视口里的那一张**（实测拿到 x=-1033，属于第 2 张滑图），
 *    据此下结论会得到完全错误的坐标。要量就用
 *    `slideshow-slide[aria-hidden="false"] .slide__content` 精确锁定可见那张。
 *
 * 做法：宽度用 max-inline-size（对标站 492px），位置用
 * `margin-inline: 0 auto` 把元素压到左侧，再给父级 13% 的左内边距还原对标站 x≈195。
 */
@media screen and (min-width: 990px) {
  /*
   * ⚠️ 这里必须用 `!important`，原因已查清（不是偷懒）：
   * Horizon 在 `styles.css` 里有一条 `.slide__content > * { margin: auto }`，
   * 用来把内容块居中。它的特异性是 (0,1,0)，我这条是 (0,2,0) 本应更强，
   * **但它加载在我的样式表之后**，同名属性后者胜 —— 实测 margin 仍是 397px。
   * 覆盖它的最小代价手段就是 !important；改成更高特异性（如写到三四个类名）
   * 反而更脆（依赖 Horizon 内部的类组合，升级主题就可能失效）。
   */
  .slide__content .group-block-content {
    max-inline-size: 492px;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
  }

  /*
   * 左内边距：对标站 `.slider-description.left { left: 13% }` —— 1405px 容器里约 183px。
   * 这里也要 !important：slide 的 padding 是**内联**的 `--padding-inline-start`（96px），
   * 内联样式无法用普通样式表规则覆盖。
   */
  .slideshow-section .slide__content {
    padding-inline-start: 13% !important;
  }
}

@media screen and (min-width: 1500px) {
  .slide__content {
    --font-h1--size: 50px;
    --font-h1--line-height: 70px;
  }
}

@media screen and (max-width: 989px) {
  .slide__content {
    --font-h1--size: 36px;
    --font-h1--line-height: 48px;
    --font-paragraph--size: 15px;
    --font-paragraph--line-height: 26px;
  }

  .slide__content .group-block-content {
    max-inline-size: none;
  }
}

/*
 * 首屏文字块宽度：对标站实测 `.slider-description` = 491.75px
 * （= 1405px 容器 × 35%，见对标站 theme.css `.slider-description { width: 35% }`）。
 *
 * 这条是「标题换行」的关键：对标站的标题在两行处断开
 * （"BRIGHT LIGHTING INDUSTRY," / "BEST IS MORE PROFESSIONAL."），
 * 因为容器只有 492px。我们的容器更宽所以挤成一行 —— 实测差异明显。
 *
 * ⚠️ 这里原来写的是 `.slideshow slideshow-slide .text-block`，也是死代码（无 `.slideshow` 类）。
 *    宽度约束已经在上面 `.slide__content .group-block-content { max-inline-size: 492px }` 里做了，
 *    所以这段整体删除，不再重复。
 */

/*
 * 购物车数量角标：对标站实测 16x16、bg #ffc000、border-radius 50%、字号 10px。
 * Horizon 图标默认继承前景色，这里对齐成亮黄。
 * ⚠️ 类名以 `.cart-bubble` 为准（实测 DOM 里存在 1 个）；
 *    `.cart-count-bubble` 实测**不存在**（已从选择器里删掉，避免死代码）。
 */
.cart-bubble,
[class*='cart-bubble'] {
  background-color: #ffc000;
  color: #111111;
  border-radius: 50%;
  font-size: 10px;
  line-height: 16px;
  min-width: 16px;
  height: 16px;
  font-weight: 400;
}

/*
 * 首屏标题断点：上面已用 `--font-h1--*` 变量统一处理（见本节开头的说明），
 * 这里不再重复写 font-size —— 两处同时写会互相干扰。
 * 保留这个注释是为了说明：**旧版这里有一条按断点写 font-size 的规则，已删除**，
 * 因为它在 `.h1.h1` 面前根本不生效，只在调试时制造「我改过了」的假象。
 */

/* =========================================================================
 * 2e. 导航居中兜底（T25/T26）
 *
 * 最终结论（已用 CDP 实测确认，见第 2f 节的完整真值表）：
 *   菜单居中由 **`header-group.json` 里的 `menu_position: "center"`** 决定。
 *   实测修复前 `grid-template-columns: 606.031px 723.969px`（只有两列、菜单靠左），
 *   改成 center 后 `444.484px 421.031px 444.484px`（三列对称），
 *   菜单中心 714.5 vs 视口中心 720（差 5.5px 即滚动条宽度）。
 *
 * ⚠️ 排查过程中我下过一个**错误结论**，留在这里防止后人重犯：
 *   我曾断言「`menu_position` 在代码里从未被读取，是个无效设置」，并据此把它回退 —— **那是错的**。
 *   真相在 `vendor/horizon/snippets/header-row.liquid:28-31`：
 *       assign column_key = item | append: '_position'
 *       assign item_column = settings[column_key] | default: 'left'
 *   它是**动态构造的键**，所以 `grep menu_position` 命中不到。
 *   教训：**「grep 不到」不等于「代码没用它」**；下这类结论前必须去看调用点如何构造键名。
 *
 * 下面这条规则只是兜底：万一将来菜单被挪到别的列，也强制中心列居中。
 * ───────────────────────────────────────────────────────────────────────── */

.header__columns .header__column--center:has(header-menu) {
  justify-content: center;
}

.header__columns .header__column--center > header-menu {
  margin-inline: auto;
}

/*
 * ⚠️ 2026-10-14 重要回退记录（这里原来有一条 `.mega-menu__grid { max-width: 1140px }`）
 *
 * 我当初加它的理由是「网格 width:100% 撑满整页，5 列摊在 1900px 上视觉偏散」。
 * **那条规则把下拉菜单搞坏了**：实测下拉塌陷成
 *     li.menu-list__list-item   w = 62.92px      ← 窄
 *     .menu-list__submenu 继承 li 宽度  w = 62.92px
 *     .mega-menu__grid         w = 0、六列全 0px
 * 结果下拉里的文字**一字一行**、竖着排成一条 500px 高的窄条（用户截图证实）。
 *
 * 为什么：Horizon 把桌面菜单放进自定义元素 **`<overflow-list>`**（响应式收纳），
 * 其内部 `::part(overflow)` 用的是 `grid-template-columns: var(--full-page-grid-with-margins)`，
 * **宽度语义跟普通 div 不同**。对它下面的 `.mega-menu__grid` 再限制 max-width，
 * 会让内部网格失去可计算的宽度而塌陷。
 *
 * 结论：**不要在 `<overflow-list>` 内部给 `.mega-menu__grid` 设宽度约束**。
 * 需要控制下拉观感时改别的（列数、间距、内边距），不要改宽度。
 * 下面保留一条只做居中的兜底，且不加任何宽度限制。
 */

/* 页面压暗层：只在支持 ::backdrop 的元素上生效 */
@supports selector(::backdrop) {
  .mega-menu__grid::backdrop,
  .menu-list__submenu-inner::backdrop {
    background-color: rgb(17 17 17 / 0.6);
    animation: tm-backdrop-in 320ms ease both;
  }
}

/* 下拉展开的过渡，对齐对标站的 400ms ease-in-out */
@media (prefers-reduced-motion: no-preference) {
  .menu-list__submenu-inner,
  .mega-menu__grid {
    transition: opacity 400ms ease-in-out, transform 400ms ease-in-out, visibility 400ms ease-in-out;
  }
}

/* 公告栏文字：对标站实测 14px/24px（我们原来是 17px/28.9px）。
   ⚠️ 排查记录：字号怎么也改不动，最后用 CDP 的 CSS.getMatchedStylesForNode 查到**赢家是我自己的规则**：
       [样式表] .rte p, .text-block p { font-size: 17px }
   那是我给「正文加大字号」写的规则，公告栏文字也在 `.text-block` 里，被一并改了。
   所以这里要**把公告栏从正文规则里排除掉**：用更高特异性直接给 p 定值。 */
.announcement-bar .text-block p,
.announcement-bar__text {
  font-size: 14px;
  line-height: 24px;
}

.announcement-bar,
.announcement-bar__slides,
.announcement-bar__slide {
  --font-paragraph--size: 14px;
  --font-paragraph--line-height: 24px;
}

/* =========================================================================
 * 一级导航项的悬停反馈：**黄色渐变填充成胶囊**（T39）
 *
 * 用户要求：「鼠标悬停上方导航栏项目的时候会有一个渐变填充的黄色效果的」。
 * 截图里 Home 是**黄色胶囊 + 白色文字**（当前页命中态），对标站 hover 也是这个观感。
 *
 * 改前：只有一条 2px 的黄色下划线 + 文字变黄（background-image 下划线做法）。
 *
 * ⚠️ 两条自己踩过的坑，别重犯：
 *   ① **不要给 `.menu-list__list-item` 加 `position: relative`** ——
 *      下拉是 `position:absolute; left:0; right:0`，它的定位祖先一旦变成只有 63px 宽的 li，
 *      **整个下拉会塌成一条 63px 的竖条**（我为此查了三轮，见上文 T25 的记录）。
 *      所以这里把 `position: relative` 加在 **`> a` 自己**身上，li 保持不动。
 *   ② 伪元素要落在**文字之下**，所以 `z-index: -1` + 父级 `isolation: isolate` 建独立层叠上下文，
 *      否则 -1 会跑到整个 header 背景后面去、看不见。
 * ========================================================================= */
.menu-list__link,
.menu-list__list-item > a {
  position: relative;
  isolation: isolate;
  transition: color var(--tm-duration-base) var(--tm-ease-base),
              background-size var(--tm-duration-base) var(--tm-ease-base);
  /* 保留下划线做法给"无 JS/窄屏"降级，但主效果改为下面的 ::before 填充 */
  background-image: none;
}

/* =========================================================================
 * T53：**删除**黄色胶囊 hover，改为对标站真源码的「文字变黄」
 *
 * 真源码（assets/demo/theme/css/theme.css）：
 *   19543-19549  一级项 hover/active/focus  →  `color: #ffc000`
 *   19551-19553  最后一项的 `> a::before`   →  `border: none`
 *   19555-19575  下拉箭头 `> a::after`      →  常驻 `display: inline-block`，
 *                20×20、`font-size: 16px`、`transition: all 400ms ease-in-out`
 *   19585-19591  hover 时 `transform: rotate(-180deg)`
 *
 * 我们原来这一段是**自己发明的**：`::before` 铺一个 50px 圆角、亮黄 `#ffc000` 的胶囊，
 * hover 时 `scaleX(0) → scaleX(1)` 铺开、文字转白。用户截图里的那个"黄色圆/药丸"
 * 就是它 —— 样板站**没有这个效果**（用户原话：「more 没有做成和样本一致」，
 * 那也是它造成的观感偏差）。整段删除，不留"注释掉"的残留。
 * ========================================================================= */

/* 一级项 hover：与对标站一致 —— 只变文字色，不加背景、不加填充 */
.menu-list__list-item:hover > .menu-list__link,
.menu-list__list-item:hover > a,
.menu-list__list-item[data-active] > .menu-list__link,
.menu-list__list-item[data-active] > a {
  color: var(--tm-card-accent, #ffc000);
}

/* 下拉箭头在有背景的项上也要保持可读：跟着一起变黄 */
.menu-list__list-item:hover .tm-caret {
  border-color: var(--tm-card-accent, #ffc000);
}

/*
 * ⚠️ 字号变量实测（我猜错两轮，最后靠"在页面上做实验"定下来）：
 *   Horizon 输出一级项字号用的是 **`--menu-top-level-font-size-desktop`**，不是 `--menu-top-level-font-size`。
 *   实测（逐个变量设成 22px 看 a 的字号变不变）：
 *     --menu-top-level-font-size           -> 14px 不变（无效）
 *     --menu-top-level-font-size-desktop   -> 14px 变 22px（有效）
 *   **所以必须把这个变量设在 overflow-list 宿主上**（`<overflow-list class="overflow-menu">`，
 *   实测 `a` 不在 shadow DOM 里，是普通后代）。
 *   教训：当"改了没反应"时，做**对照实验**比继续猜变量名快得多。
 */
.overflow-menu,
.overflow-menu::part(overflow),
.overflow-menu::part(overflow-list),
nav.menu-list,
header-menu {
  --menu-top-level-font-size: 16px;
  --menu-top-level-font-size-desktop: 16px;
}

/*
 * ⚠️⚠️ 这里原来有一条 `.menu-list__list-item { position: relative; }`，**已删除**。
 *
 * 它是我为了「给下拉箭头做定位参照」加的，代价却是**整个下拉菜单塌成一条 63px 宽的竖条**
 * （用户截图：文字一字一行、竖排 500px 高）。
 *
 * 实测证据（用 CDP 逐条做"临时覆盖抵消"实验）：
 *     基线                      .mega-menu__grid 宽 0    下拉宽 63
 *     加 `.menu-list__list-item{position:static}`   网格 1350   下拉 1430   ← 恢复
 *     整张 theme-motion.css 禁用                     网格 1350   下拉 1430   ← 同上
 *
 * 机制：`.menu-list__submenu` 是 `position:absolute; left:0; right:0`，
 * 它的宽度取**最近的定位祖先**。Horizon 原本让它以更外层的 `overflow-list`
 * （503px）为参照从而横向铺开；我在 `li` 上加了 `position:relative` 后，
 * 参照变成了只有 62.9px 宽的一级项 —— 六列网格里还有 3 列是 `span-4`，
 * 于是每列只剩十几个像素，一行放不下一个字。
 *
 * 教训：**在一个已经"能用"的组件上加 `position: relative` 之前，
 * 先确认它内部有没有绝对定位的后代** —— 这会静默改变它们的定位基准。
 * 箭头现在改为在 `a` 内部用普通文档流布局（见 `.tm-caret`），不再需要这个参照。
 */

/*
 * 下拉箭头（对标站 `Light ⌄ / Lamp ⌄ / More ⌄`）
 *
 * 由 JS 插入真实元素（见 theme-motion.js 的 watchCarets）。
 * 为什么不用伪元素：实测给 `a::after` 写 content/border/宽高**连 !important 都不生效**
 * （计算值仍是 width:auto、border 0px）—— Horizon 把菜单放进 `<overflow-list>`，
 * 外部样式表对内部伪元素的控制不保证。
 *
 * ⚠️ 对齐踩了四次，把实测数据留在这里，省得下次再试一遍：
 *   ① 不写 vertical-align        → 掉到文字下方
 *   ② `vertical-align: middle`   → 低 14px。`.menu-list__link` 是 **flex**，vertical-align 对 flex item 无效
 *   ③ `align-self: center`       → 低 16px。被我误以为链接高 78px 就该居中了
 *   ④ 绝对定位 `top: 60px`       → 低 21px。因为我误以为 li 高 120px，且
 *      **给 li 加 position:relative 会把整个下拉菜单压塌**（见上面那段警告）
 *   实测（一次量全）：**li / a / title 三者同高 78px，中心都在 39px 处**。
 *
 * 现在用**普通文档流**里的 inline-block，不再依赖任何绝对定位参照：
 * `.menu-list__link` 是 flex，所以用 `align-self: center` 做垂直居中（这是 flex 里唯一有效的）。
 */
/* ⚠️ T53 修：下面这条 rotate 角度原来是错的。
 *   `border-right + border-bottom` 的盒子**旋转 45°** 得到的其实是 **⌃（朝上）**，
 *   不是下拉菜单该有的 ⌄。历史注释只记录了「对齐踩了四次」的垂直位置，
 *   没人检查过方向 —— 而这个箭头是给「有下拉的一级项」用的，指向反了。
 *   现在：收起态 135°（→ ⌄），悬停态再转 180° = -45°（→ ⌃），与对标站一致。
 */
.tm-caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-start: 7px;
  border-right: 1.5px solid currentcolor;
  border-bottom: 1.5px solid currentcolor;
  /* T57：现在角标插在标题 span 内部（行内流），用 vertical-align 对齐文字中线；
     旧的 align-self:center 只对 flex 生效，已不适用。 */
  vertical-align: middle;
  /* T57 修正方向：border-right+bottom 的拐角初始指向右下 45°，
     rotate(45deg) 后才指向正下 = ⌄。（旧值 135deg 实测渲染成 ‹，方向反了） */
  transform: translateY(-2px) rotate(45deg);
  transition: transform 400ms ease-in-out;
  pointer-events: none;
}

/* 悬停/展开时翻转 180°（对标站 `> a::after { rotate(-180deg) }`）。
   判据同时覆盖 More：它命中 `[slot='more']:has([aria-expanded='true'])`。 */
.menu-list__list-item:is(:hover, :focus-within):has(.menu-list__submenu) .tm-caret,
.menu-list__list-item[slot='more']:hover .tm-caret,
.menu-list__list-item[slot='more']:has([aria-expanded='true']) .tm-caret {
  transform: translateY(-2px) rotate(-135deg);
}

/* =========================================================================
 * 2d. 博客 / 文章卡片（对齐对标站的「深色卡片 + 内边距 + 底部分隔线」）
 *
 * 对标站实测（用户截图对比）：卡片是**独立的深色块**（比页面底稍亮），
 * 内容有内边距、不从卡片边缘开始；日期是**亮黄** #ffc000；标题下方有细分隔线，
 * 「Read more >」在分隔线下面。
 * Horizon 的 .featured-blog-posts-card__content 默认是**无内边距的**，
 * 所以文字直接贴到卡片边缘 —— 这是「图片和页面边接触」观感的主要来源之一。
 * ========================================================================= */

.featured-blog-posts-card__inner {
  --tm-card-pad: 24px;
  --tm-card-border: #2d2d2d;
  --tm-card-surface: #161616;   /* 比页面底 #111 稍亮，形成「一块卡片」的边界 */
  --tm-card-accent: #ffc000;
}

/* 卡片本体：深色块 + 1px 描边 + 圆角
   ⚠️ 原写法带 `.blog-post-card`，实测 DOM 里**不存在这个类**（死代码，已删）。
   Horizon 的博客卡片实际类是 `.featured-blog-posts-card`（实测 3 个）。 */
.featured-blog-posts-card {
  background-color: var(--tm-card-surface);
  border: 1px solid var(--tm-card-border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--tm-duration-base) var(--tm-ease-base),
              transform var(--tm-duration-base) var(--tm-ease-base);
}

.featured-blog-posts-card:hover {
  border-color: #444444;
  transform: translateY(-2px);
}

/* 内容区加内边距：文字不再从卡片边缘开始。
   用户反馈「我们的框可以小一点，字体大一点」—— 所以卡片内容留白加大、
   同时下面把卡片标题字号也提上去，让「框显得小、字显得大」。 */
.featured-blog-posts-card__content {
  padding: 24px var(--tm-card-pad) 28px;
}

/* 日期：亮黄（对标站 .post-date 是 #ffc000） */
.blog-post-details,
.blog-post-details * {
  color: var(--tm-card-accent);
}

.blog-post-details {
  font-size: 15px;
  line-height: 22px;
  text-transform: capitalize;
}

/* 标题：大写 + 字距，与对标站一致；字号比 Horizon 默认大一档 */
.featured-blog-posts-card__content h3,
.featured-blog-posts-card__content h4 {
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 25px;
  line-height: 34px;
  margin-block: 12px 14px;
}

/* 摘要：正文色，行高放开 */
.blog-post-card__content-text,
.featured-blog-posts-card__content p {
  color: #c9c9c9;
  font-size: 16px;
  line-height: 27px;
}

/* 「Read more」区域：上方一条细分隔线（对标站实测的那条线） */
.blog-post-card__cta,
.featured-blog-posts-card__content .blog-post-card__button-wrapper {
  margin-block-start: 16px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--tm-card-border);
}

.blog-post-card__cta a,
.featured-blog-posts-card__content a.button {
  color: #ffffff;
  font-weight: 600;
}

.blog-post-card__cta a:hover {
  color: var(--tm-card-accent);
}

/* 图片：卡片内不留白，但裁成统一比例，避免长短不齐 */
.featured-blog-posts-card__image,
.resource-image.featured-blog-posts-card__image {
  border-start-start-radius: 2px;
  border-start-end-radius: 2px;
}

@media screen and (max-width: 749px) {
  .featured-blog-posts-card__inner {
    --tm-card-pad: 16px;
  }

  .featured-blog-posts-card__content h3,
  .featured-blog-posts-card__content h4 {
    font-size: 18px;
    line-height: 26px;
  }
}

@keyframes tm-fade-in-up {
  from { opacity: 0; transform: translate3d(0, var(--tm-reveal-shift), 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tm-fade-in-left {
  from { opacity: 0; transform: translate3d(calc(-1 * var(--tm-reveal-shift-inline)), 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tm-fade-in-right {
  from { opacity: 0; transform: translate3d(var(--tm-reveal-shift-inline), 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 窄屏把横向位移收窄：对标站的 100px 横移在 390px 宽的手机上接近屏宽 1/4，会显得晃 */
@media screen and (max-width: 749px) {
  :root {
    --tm-reveal-shift-inline: 40px;
  }
}

/* =========================================================================
 * 5. 导航大菜单的第三级（T18）
 *
 * 结构由 snippets/mega-menu-list.liquid 输出：二级项是「栏目头」，三级项缩进列在其下。
 * 对标站（assets/demo/theme/css/theme.css 的 .tb_sub_menu / .sub_menu_linklist）的做法是
 * 二级当栏目标题、三级用小字号缩进列表，所以这里：
 *   - 二级项（栏目头）加粗、带一点下边距，和它的三级项形成视觉分组；
 *   - 三级项缩进一级、字号小一档、颜色用次级文字色，hover 时提亮到正文色。
 * 只用 Horizon 已有的设计令牌（--font-*、--color-*），不引新颜色，保持主题一致。
 * ========================================================================= */

/*
 * ⚠️⚠️ 这里原来有**旧版的第三级样式**（静态缩进列表）：
 *     .mega-menu__grandchild-list { margin-inline-start: .75rem;
 *                                   padding-inline-start: .75rem;
 *                                   border-inline-start: 1px solid ... }
 *     .mega-menu__link--grandchild { font-size: .8125rem; opacity: .72 }
 * `__grandchild-item` / `__link--has-grandchildren` 的少量规则也同样属于旧版。
 *
 * **已全部删除**，因为 T41 在文件末尾 2m 段重新定义了同一批选择器，
 * 改成了对标站的**级联抽屉**（`position:absolute; left:100%; scaleY(0)->scaleY(1)`）。
 * 两套并存会互相打架：旧版的 `margin-inline-start` 会把绝对定位的抽屉推歪，
 * `opacity: .72` 会让抽屉里的文字发灰。
 *
 * 这正是我 T40 犯过的错（同一个选择器两处定义、结果取决于出现顺序），
 * 所以这次一开始就删干净，**同一选择器只留一处**。
 * 三级样式**只在文件末尾 2m 段**定义。
 */

/* =========================================================================
 * 3. 版式节奏：解决「页面非常大」
 *
 * 容器宽度不在这里改——Horizon 的容器宽度由 body 上的
 * .page-width-narrow|normal|wide 决定（90rem/120rem/150rem），
 * 所以要用主题设置 page_width=narrow（1440px，对标站容器 1370px）来对齐，见
 * config/settings_data.json。这里只补 gutter 与段落节奏。
 * ========================================================================= */

/* Horizon 的页边距默认 max(40px, ...)；对标站 gutter 是 30px。
   只在大屏收紧到对标站的量级，移动端保持 Horizon 的 40px 不动（移动端更需要留白）。
   注意：@media 不能嵌在 :root{} 里面（CSS Nesting 在旧浏览器上会被整条丢掉），
   所以写成独立的 @media 块。 */
@media screen and (min-width: 62.5em) {
  :root {
    --page-margin: max(var(--tm-gutter), var(--safe-area-inset-left, 0px), var(--safe-area-inset-right, 0px));
  }
}

/* 段落行高对齐对标站的 24px/14px ≈ 1.71（Horizon body-normal 是 1.4，偏紧） */
.tm-lead {
  font-size: var(--tm-font-size-base);
  line-height: 1.71;
  letter-spacing: var(--tm-letter-spacing-base);
}

/* =========================================================================
 * 4. 入场动画的兜底：老浏览器（无 IntersectionObserver）不隐藏内容
 * ========================================================================= */

html.tm-no-io [data-tm-reveal] {
  opacity: 1;
  visibility: visible;
  animation: none;
}




/* =========================================================================
 * 7. 首页首屏（slideshow）对齐对标站（T19）
 *
 * 差距来自用户截图对比，参数全部实测自 assets/demo/theme/css/theme.css：
 *   #tb-home-slideshow .slider-description .tb-slider-title
 *       font: 400 50px/70px Oswald; letter-spacing:.3px; uppercase; margin:0 0 10px
 *   #tb-home-slideshow .slider-description .tb-slider-desc
 *       font: 400 17px/30px Roboto; margin: 0 0 22px
 *   #tb-home-slideshow .slider-description .tb-slider-slider-button a
 *       font-size:14px; line-height:16px; padding:12px 24px
 *   .slider-description { text-align:left; .left { left:13%; width:35% } }
 *
 * Horizon 侧的字号不能用 type_preset 精确命中（预设档位是离散的），
 * 也不能靠 `font-size` 抢 —— 要走变量（见第 2g 节的说明）。
 * ========================================================================= */

/*
 * ⚠️ 这一段（共 14 条规则）**曾被写成 `.slideshow h1 { font-size: 50px }` 之类**，
 * 全部是死代码，已删除。原因与正确做法见第 2g 节：
 *   · DOM 里没有 `.slideshow` 类          -> 选择器永不命中
 *   · 标题元素是 `<div class="… h1">` 而非 `<h1>` -> 写 h1 也选不到
 *   · Horizon 用 `var(--font-h1--size)` 输出字号，且 `.h1.h1` 加倍特异性 -> font-size 抢不过
 * 现在改为在 `.slide__content` 上就地赋 `--font-h1--*` / `--font-paragraph--*`，
 * 断点也在那里统一处理。此处留空以保持小节编号与排查记录。
 */

/* =========================================================================
 * 8. 版面聚拢与留白（T20）—— 解决「排版不够大气、内容贴边」
 *
 * 用户反馈原文：「人家整体排版和卡片包括字体比较大气一点，并且不和页面边接触」。
 * 实测对照：
 *   对标站是 Bootstrap 系，`.container` 在 ≥1200px 时 max-width **1170px**、两侧 gutter 15px×2
 *   我们 page_width: narrow -> --page-content-width = 90rem = **1440px**
 *   → 我们比对标站**宽 270px**。行宽更长，同一段文字摊得更开，观感就「散、不聚拢」。
 *
 * 做法：把「内容列」收窄到对标站的量级（1170–1370px），只作用于页面宽度类容器；
 * 全宽区块（首屏、服务条）不动 —— 对标站也是这么分的。
 * ========================================================================= */

@media screen and (min-width: 750px) {
  /*
   * 内容列收窄（T24）—— 用户反馈「不只是左边，右边也是，我们的框可以小一点」。
   *
   * 先纠正一个我自己的错误：上一版我在这里加了
   *     .section--page-width { padding-inline: max(var(--page-margin, 0px), 24px); }
   * **那是错的做法，已删除**。原因：Horizon 的 `.section` 用的是 **CSS grid**
   * （`base.css:307` 起），内容列宽度由 `--full-page-grid-central-column-width`
   * 和 `minmax(var(--page-margin), 1fr)` 这两个 margin 列算好了，
   * 再往容器上补 padding 等于**双重留白**，还可能把网格宽度算坏。
   *
   * 正解就是只调「内容列允许的最大宽度」这一个变量 —— 它会自动让两侧 margin 列变宽，
   * 左右对称、不破坏网格。同时给一个更大的下限，保证窄视口下也不会贴边。
   *
   * 取值依据：对标站 Bootstrap 容器 1170px；我们原本是 1440px（比对标站宽 270px）。
   * 分两档收：≥1200px 收到 1240px，≥1600px 放宽到 1320px（大屏太窄会显得空）。
   */
  .page-width-narrow .section--page-width,
  .page-width-normal .section--page-width,
  .page-width-wide .section--page-width {
    --page-content-width: min(var(--page-content-width), 1240px);
  }
}

@media screen and (min-width: 1600px) {
  .page-width-narrow .section--page-width,
  .page-width-normal .section--page-width,
  .page-width-wide .section--page-width {
    --page-content-width: min(var(--page-content-width), 1320px);
  }
}

/*
 * 卡片网格的间距：对标站商品卡实测 `--gutter: 30px`，Horizon 默认 8px 偏挤。
 *
 * ⚠️ 原写法用了 `.product-grid`，实测 DOM 里**不存在这个类**（死代码）。
 * 用 CDP 数类名确认存在的：`.product-card`(4) / `.collection-card`(13)。
 * 所以改成按实际存在的卡片类给间距。
 */
@media screen and (min-width: 990px) {
  :has(> .product-card),
  :has(> .collection-card) {
    --grid-gap: 16px;
    column-gap: 16px;
  }
}

/*
 * 正文行高对齐对标站实测的 24–30px 区间（Horizon body-normal 是 1.4，偏紧）
 *
 * 用户反馈「我们的框可以小一点，字体大一点」—— 这里把正文字号整体提一档。
 * 依据：对标站正文实测是 15–17px/26–30px；Horizon 默认 --font-size-body 是 14px 左右。
 * 只在 .rte / .text-block 范围内提，不动导航、按钮、表单等控件字号（那些另有设定）。
 */
.rte p,
.text-block p {
  line-height: 1.7;
  font-size: 16px;
}

@media screen and (min-width: 990px) {
  .rte p,
  .text-block p {
    font-size: 17px;
  }
}

/*
 * 首屏三段错开进场（对标站实测）：
 *   .tb-slider-title          animation-name: fadeInDown
 *   .tb-slider-subtitle       animation-name: fadeInLeft
 *   .tb-slider-slider-button  animation-name: fadeInUp
 *   三者都是 animation-duration: 1s; animation-delay: 0.3s
 * 只在「轮播当前项」上播（对标站是 .owl-item.active），Horizon 里对应
 * `slideshow-slide[aria-hidden='false']`。
 *
 * ⚠️ 原写法前缀是 `.slideshow`（死代码，DOM 里没这个类），已去掉。
 *    这里只用自定义元素名 `slideshow-slide` —— 它是真实存在的元素（不是类）。
 */
@media (prefers-reduced-motion: no-preference) {
  slideshow-slide[aria-hidden='false'] .text-block[class*='h1'],
  slideshow-slide[aria-hidden='false'] .text-block[class*='h2'] {
    animation: tm-fade-in-down 1s ease 0.3s both;
  }

  slideshow-slide[aria-hidden='false'] .text-block[class*='paragraph'] {
    animation: tm-fade-in-left 1s ease 0.3s both;
  }

  slideshow-slide[aria-hidden='false'] .text-block:has(.button) {
    animation: tm-fade-in-up 1s ease 0.3s both;
  }
}

@keyframes tm-fade-in-down {
  from { opacity: 0; transform: translate3d(0, calc(-1 * var(--tm-reveal-shift)), 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/*
 * ⚠️⚠️ 这里原来有**旧版**的 `.tc-newsletter__panel { display: grid; grid-template-columns: 1fr 1fr }`
 * 以及配套的 `__media` / `__body` / `__title` 规则，**已删除**。
 *
 * 为什么删：T38 我在文件末尾又写了一版「左图右文」的布局（用 flex），
 * 两套 `.tc-newsletter__panel` 定义**同时生效、互相打架** ——
 * 结果用户截图看到的是「图没了、文字铺满整幅」的错乱样子。
 * 一个选择器在两个地方定义不同布局，谁赢取决于出现顺序，这是典型的自伤。
 *
 * **布局类规则只保留文件末尾 2l 段的那一版**（flex，与对标站一致）。
 * 教训：改样式前先 grep 一遍该选择器有没有旧定义，别叠加。
 */

/* 只在文件末尾定一次布局，这里不再重复 */




/* 输入框：对标站是「白底 + 深色字 + 文字居中」 */



.tc-newsletter__done,


/* 「不再显示」勾选项：对标站是 padding-left 22px 的内联块 */


/*
 * 关闭按钮：对标站 30×30、hover 旋转 180°、400ms ease-in-out。
 * 注意原件的 `color: #111111` 是配白底弹窗的；我们弹窗底是 #111，
 * 所以这里用 #ffffff 并在 hover 时切到亮黄，保持「看得见 + 有反馈」。
 */

.tc-newsletter__close:hover,

/* 弹窗相对定位，供关闭按钮绝对定位 */

/* =========================================================================
 * 弹窗进场动效（T22 加强）
 *
 * 用户反馈「刷新的时候应该有一个弹窗的过程动画，这个我们还是没有」。
 * 上一版只写了 `.tc-newsletter[open] .tc-newsletter__panel { animation: tm-fade-in-up 400ms }`，
 * 那条规则确实在线上，但**观感上等于没有**，原因有三：
 *   1. 只有面板动，**遮罩是瞬间出现的** —— 而遮罩从无到有才是「弹窗弹出来」最容易被感知的部分；
 *   2. 400ms 只做 100px 位移 + 透明度，在 #111 深色底上几乎看不出来；
 *   3. 没有 `animation-fill-mode` 之外的持续时间控制，也没有缩放，缺少「弹出」的物理感。
 * 现在补三件事：遮罩淡入、面板淡入+上移+轻微放大、时长拉到 480ms 并带一点回弹感。
 * 全部包在 prefers-reduced-motion: no-preference 里 —— 用户要求减少动态时不做任何动画。
 * ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  /*
   * 遮罩淡入：对标站实测 `opacity: 0.5` + `transition: opacity 0.15s linear`。
   * 我们原来是 320ms ease；改成对标站的 150ms linear（Bootstrap 的 fade 是 150ms）。
   */

  /*
   * 面板：**对齐对标站实测值**。
   *
   * 用 CDP 连到对标站首页实测它的弹窗（不是查静态 CSS，是读运行时计算样式）：
   *   #newsletterModal   class="modal fade wow fadeInUp animated in"
   *                      animation: 1s 0.3s both fadeInUp
   *                      transform: matrix(1,0,0,1,0,100)   ← 即 translateY(100px)
   *                      inlineStyle: "visibility: visible; animation-delay: 0.3s; display: block;"
   *   .modal-backdrop    opacity: 0.5（Bootstrap fade，150ms）
   *
   * 所以对标站的弹窗动画 = **WOW.js 的 fadeInUp：1s 时长 + 0.3s 延迟 + 从下方 100px 上移**，
   * 而不是我先前猜的"480ms 缩放弹出"。
   * 这里改成与它一致：1s / delay 0.3s / 位移 100px（复用 --tm-reveal-shift）。
   * 缩放去掉 —— 对标站没有缩放，那是我自己加的。
   */
}

@keyframes tm-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 与对标站 WOW.js fadeInUp 等价：位移量用统一的 --tm-reveal-shift（100px） */
@keyframes tm-modal-fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, var(--tm-reveal-shift, 100px), 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


/* =========================================================================
 * 1l. 订阅弹窗（T52 重建）—— 数值全部来自对标站真源码
 *
 * 对标站原件（本地已缓存的真实渲染 HTML + 它自己的 CSS，**不是猜的**）：
 *   data/demo/rendered/home.html 的 `#newsletterModal`
 *     <div class="modal fade wow fadeInUp animated in" data-wow-delay="0.3s" id="newsletterModal">
 *       <div class="modal-dialog white-modal center-center">
 *         <button class="close"><i class="mdi mdi-close"></i></button>
 *         <div class="newslatter-img" style="background-image:url(…/newsletter-popup.webp)"></div>
 *         <div class="newslatter-content-col"><div class="newsletter-wrapper">
 *              <h2>Get Our Newsletter</h2><div class="desc">…</div>
 *              <form><input type="email" id="popupEmail"> <button class="btn-secondary">Subscribe</button>
 *                    <input type="checkbox" id="checkBox"><label for="checkBox">Don't Show This Popup Again</label>
 *              </form></div></div>
 *       </div></div>
 *
 * 对应的 CSS 行号（assets/demo/theme/css/theme.css）：
 *   .modal-dialog            28424-28442  fixed + margin:auto + fit-content + #111 + 1px solid #5f5f5f
 *   button.close             28444-28487  30×30、白底、图标 #111、hover rotate(180deg)、all 400ms ease-in-out
 *   h2                       28488-28494  400 36px/38px Oswald、uppercase、letter-spacing .3px
 *   .desc                    28495-28500  margin 15px 0 20px、400 15px/26px Roboto
 *   input                    28501-28519  白底白边、padding 12px 20px、居中、14px/20px、**border-radius 50px**
 *   .checkbox-group          28525-28543  label 400 14px/26px、padding-left 22px
 *   .newslatter-img          28569-28573  **height 380px、width 800px**
 *   .newslatter-content-col  28574-28583  **width 50%、position absolute、top 50%、right 40px、translateY(-50%)**
 *   移动端覆盖                28588-28631  <=991px 时改为上下排布、图 350px 高
 *
 * ⚠️ 为什么要整段重写，而不是继续打补丁：
 *   这个选择器族过去被**完整写了两遍**（旧段在 L1055-1160、新段在文件末尾），
 *   `node tools/t52-refscan.mjs` 实测：两段**交替覆盖** —— 有 56 个属性只存在于其中一段，
 *   任何"只删一段"的做法都会丢样式，而两段共存又会互相打架（用户看到的黑边/文字压图就是这么来的）。
 *   所以这里定死一条纪律：**这一族选择器在全文只允许出现一次**（响应式覆盖除外，且写在明确断点里）。
 *   防复发守卫：tools/verify-t52.mjs 会数每个选择器的出现次数，多于 1 就报错。
 * ========================================================================= */

.tc-newsletter {
  /* dialog 默认带 border/padding，先重置 */
  padding: 0;
  border: none;
  border-radius: 0;
  /* T52 修复：dialog 自身宽度必须与内部 panel(800px) 一致，否则右侧会露出
     920-800=120px 的 #111 黑条（即用户看到的「最右边黑框」）。 */
  max-width: min(800px, 92vw);
  width: min(800px, 92vw);
  background-color: #111111;
  color: #ffffff;
  overflow: hidden;
  /* __close 与 __body 的绝对定位基准（对标站由 .modal-dialog 承担） */
  position: relative;
}

.tc-newsletter::backdrop {
  background-color: rgb(0 0 0 / 0.6);
}

/* 面板 = 对标站 .modal-dialog：固定尺寸由内容（图 800×380）决定 */
.tc-newsletter__panel {
  position: relative;
  max-width: 800px;
  width: min(800px, 92vw);
  overflow: hidden;
  background-color: #111;
  /* 对标站 .modal-dialog：border: 1px solid #5f5f5f */
  border: 1px solid #5f5f5f;
}

/* 图 = 对标站 .newslatter-img：**真元素**、800×380、cover + top left。
 * 不再把整张图当面板背景 —— 那样文字必然压在图上，是过去"黑边"的根源。 */
.tc-newsletter__media {
  width: 800px;
  height: 380px;
  background-image: var(--tc-popup-image, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top left;
}

/* 内容列 = 对标站 .newslatter-content-col：absolutely positioned、右半 50% */
.tc-newsletter__body {
  position: absolute;
  top: 50%;
  right: 40px;
  width: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  /* 对标站这里没有背景色、没有遮罩、没有文字投影 —— 文字直接坐在板的 #111 上 */
  background: none;
  text-shadow: none;
}

.tc-newsletter__title {
  font-family: var(--font-heading--family, "Oswald", Helvetica, sans-serif);
  font-size: 36px;
  line-height: 38px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  color: #ffffff;
  margin: 0;
}

.tc-newsletter__text {
  margin: 15px 0 20px;
  font-family: var(--font-body--family, Roboto, sans-serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 26px;
  color: #cccccc;
}

.tc-newsletter__form {
  display: block;
  margin: 0;
}

/* 邮箱框 = 对标站 input：白底白边 + **50px 胶囊圆角** + 居中深色字
 *
 * ⚠️⚠️ T52 补修（真浏览器实测抓出来的，静态层查了三轮才定位）：
 * 选择器**必须**写成 `.tc-newsletter__body .tc-newsletter__input`，不能只用 `.tc-newsletter__input`。
 *
 * 原因：Horizon 底座 `vendor/horizon/assets/base.css` 里有一条通用表单规则
 *     textarea, input:not([type='checkbox'], [type='radio']) {
 *       background-color: var(--color-input-background);
 *       border-color: var(--color-input-border);
 *     }
 * 它的特异性是 **0,2,1**（一个元素 + 一个 :not 里的属性选择器），
 * 而单个类选择器只有 **0,1,0** —— **底座赢**。
 * 实测后果（用户浏览器量出来的计算值）：
 *     background-color: rgb(17, 17, 17)   ← 主题深色，盖掉了我们的 #fff
 *     border:           1px solid rgb(68, 68, 68)  ← 盖掉了我们的 #fff
 *     border-radius:    50px              ← 唯独这条生效（base 只写了 var(--style-border-radius-inputs)=inherit）
 * 于是「白底黑字」变成「深底深字」——**字看不见**。
 *
 * 为什么之前没发现：前几轮只在**外部样式表**（theme-motion.css / compiled styles.css）里搜，
 * 而这条规则在**底座 base.css** 里。教训：查「我的样式为什么不生效」时，
 * 要连**底座的通用元素选择器**一起查，不能只看自己的文件和编译产物。
 *
 * 修法：作用域收窄到弹窗内部 → 特异性 0,3,0 > 0,2,1，不用 !important（守住零依赖/零暴力覆盖的约定）。
 * 防复发：tools/verify-t52.mjs 断言这个**双类**选择器存在，且弹窗区块内不存在单类写法。
 */
.tc-newsletter__body .tc-newsletter__input {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 12px 20px;
  border: 1px solid #fff;
  border-radius: 50px;
  background-color: #fff;
  color: #111;
  font-family: var(--font-body--family, Roboto, sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5px;
  text-align: center;
}

/* 占位文字：同一特异性问题，一并收窄（否则占位字会被底座的
   `input::placeholder { color: rgb(var(--color-input-text-rgb) / var(--opacity-muted-text)) }` 影响） */
.tc-newsletter__body .tc-newsletter__input::placeholder {
  opacity: 1;
  color: #111111;
}

.tc-newsletter__submit {
  width: 100%;
}

/* 成功/失败提示：两者共用排版，只有 error 额外上色。
 * 注意这两条**必须分开**：.tc-newsletter__done 不该变黄。 */
.tc-newsletter__done,
.tc-newsletter__error {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 20px;
}

.tc-newsletter__error {
  color: #ffc000;
}

/* 「不再显示」= 对标站 .checkbox-group：label 常驻、缩进 22px */
.tc-newsletter__suppress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0 0 0 22px;
  font-family: var(--font-body--family, Roboto, sans-serif);
  font-size: 14px;
  line-height: 26px;
  color: #cccccc;
  cursor: pointer;
  transition: color 400ms ease-in-out;
}

.tc-newsletter__suppress:hover,
.tc-newsletter__suppress:focus-within {
  color: #ffffff;
}

.tc-newsletter__suppress input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #ffc000;
}

/* 关闭按钮 = 对标站 button.close：右上角 30×30 **白底 + 深色图标**、hover 旋转 180° */
.tc-newsletter__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  transition: all 400ms ease-in-out;
}

.tc-newsletter__close:hover,
.tc-newsletter__close:focus-visible {
  transform: rotate(180deg);
}

/* 进场动效 = 对标站 wow fadeInUp + data-wow-delay="0.3s"（1s / delay .3s / 上移 100px）
 * 遮罩淡入用实测的 150ms linear（Bootstrap fade）。 */
@media (prefers-reduced-motion: no-preference) {
  .tc-newsletter[open]::backdrop {
    animation: tm-backdrop-in 150ms linear both;
  }

  .tc-newsletter[open] .tc-newsletter__panel {
    animation: tm-modal-fade-in-up 1s ease 0.3s both;
  }
}

/* 移动端 = 对标站 @media (max-width: 991px)：改成上下排布、图 350px 高 */
@media screen and (max-width: 991px) {
  .tc-newsletter__panel {
    width: min(500px, 92vw);
  }

  .tc-newsletter__media {
    width: auto;
    height: 350px;
    background-position: top left;
    background-size: cover;
  }

  .tc-newsletter__body {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    transform: none;
    padding: 35px 20px;
    text-align: center;
  }

  .tc-newsletter__title {
    font-size: 38px;
    line-height: 40px;
  }

  .tc-newsletter__text {
    margin: 10px 0 15px;
  }
}

@media screen and (max-width: 749px) {
  .tc-newsletter__media {
    background-image: var(--tc-popup-image-mobile, var(--tc-popup-image, none));
  }
}

@media screen and (max-width: 749px) {
  .tc-newsletter__panel {
    width: min(420px, 92vw);
  }

  .tc-newsletter__title {
    font-size: 32px;
    line-height: 34px;
  }

  .tc-newsletter__text {
    font-size: 14px;
    line-height: 22px;
  }
}
/*
 * 小屏的弹窗样式（标题降一档 + body 内边距）**已合并到文件末尾 2l 段的媒体查询里**。
 * 这里原来另有一份 `@media (max-width: 749px)` 覆盖同一批属性 ——
 * 与 T38 新增的那份重复。重复定义本身不一定出错（后者胜），
 * 但会让"改一处、另一处还在生效"这种问题极难查。**同一属性只留一处**。
 */

/* =========================================================================
 * 2g. 首屏外框、箭头与高度：对齐对标站实测（T27）
 *
 * 用户反馈：「首页人家没接边啊，对齐下差异，按对标站的来」。
 *
 * 对标站实测（1440x900 视口，CDP 读运行时计算样式）：
 *   #tb-home-slideshow   w=1425   **padding: 0 10px**        ← 左右各缩进 10px
 *     .slideshow         x=10  w=1405                        ← 内容实际起点
 *     .slider-description  left: 182.641px（= 1405 × 13%）
 *   箭头 .owl-prev / .owl-next
 *        50x50；**background #ffffff**；**border-radius 50px**；color #111111
 *        prev 在图片左边缘**外** 50px（x=-40）、next 在右边缘外 50px（x=1415）
 *        垂直居中用 `transform: translateY(-25px)`（箭头高 50 的一半）
 *   .owl-nav 是绝对定位的整幅宽覆盖层，两个箭头贴它的左右外侧。
 *
 * 我们改前（实测）：section w=1430 padding 0（**所以接边**）；
 *   箭头 48x44、透明底 + 白色图标（**与对标站的白圆深箭头不同**）；
 *   首屏高 720px（对标站 586px）。
 * ========================================================================= */

@media screen and (min-width: 990px) {
  /*
   * ① 外框左右缩进 10px（对标站 `padding: 0 10px`）。
   *
   * ⚠️ 必须加在 **`.slideshow-section`（外层网格容器）** 上，不能加在 `slideshow-component`
   * 或 `slideshow-container` 上 —— 后两者的计算样式里 `overflow-x` 是 `clip`/`scroll`，
   * 在里面加 padding 会连带把图片裁掉。
   * 目标是复刻对标站的 1425/1405 关系：外层 1430 缩 10 -> 内容 1405（左右各 10）。
   */
  .slideshow-section {
    padding-inline: 10px;
  }

  /*
   * ② 只给首页轮播箭头改成「白底圆形 + 深色图标」。
   * 商品媒体缩略图也复用 .slideshow-control；不能把首页箭头样式套到商品缩略图上。
   */
  .slideshow-section .slideshow-control {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #111111;
    border-radius: 50px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--tm-duration-base) var(--tm-ease-base),
                color var(--tm-duration-base) var(--tm-ease-base);
  }

  .slideshow-section .slideshow-control:hover,
  .slideshow-section .slideshow-control:focus-visible {
    background-color: #ffc000;   /* 悬停转站点强调色（对标站 hover 会反色） */
    color: #111111;
  }

  /* 图标尺寸跟着按钮走（对标站 ::before 是 26px 的 Material 图标） */
  .slideshow-section .slideshow-control svg,
  .slideshow-section .slideshow-control .svg-wrapper svg {
    width: 26px;
    height: 26px;
  }

  /*
   * ③ 箭头位置：贴到图片左右边缘**外侧**（对标站 prev x=-40 / next x=1415）。
   * 用相对定位微调，不改动 Horizon 的绝对定位骨架（避免破坏它的滚动同步逻辑）。
   */
  .slideshow-section .slideshow-control--previous {
    margin-inline-start: -60px;
  }

  .slideshow-section .slideshow-control--next {
    margin-inline-end: -60px;
  }

  /*
   * ④ 首屏高度对齐 586px（对标站实测）。
   *
   * ⚠️⚠️ **必须限定作用域**：Horizon 的**公告栏也用 `slideshow-slide`**
   * （实测页面里有 3 个 `slideshow-slide`：公告栏 1 个 + 首屏 2 个）。
   * 我第一版直接写 `slideshow-slide { height: 586px }`，把**公告栏也撑到 586px**，
   * 结果整页被顶开、导航被推到 y=586、截图上出现一大片黄色。
   * 所以下面全部用 `.slideshow-section` 作前缀，只作用于首屏。
   *
   * 另外：只定**网格行高**、不再给容器写固定 height —— 容器高度由内容决定更稳。
   */
  .slideshow-section slideshow-slide {
    --grid-template-rows: 586px;
    --grid-template-rows-desktop: 586px;
  }

  .slideshow-section slideshow-container,
  .slideshow-section slideshow-slides,
  .slideshow-section slideshow-slide,
  .slideshow-section slideshow-slide .slide__image-container,
  .slideshow-section slideshow-slide .slide__image,
  .slideshow-section slideshow-slide .slide__content {
    height: 586px;
  }

  /* 图片按 cover 填满，避免源图尺寸（734px）把容器撑高 */
  .slideshow-section slideshow-slide .slide__image {
    object-fit: cover;
    width: 100%;
  }
}

/* =========================================================================
 * 2h. 「TOP PRODUCTS」区块：标题居中 + tab 改药丸（T28）
 *
 * 用户截图对比指出的两处差异。对标站实测（CDP，1440 宽）：
 *   标题  h3 "Top Products"
 *         **45px / 47px** Oswald；letter-spacing **1px**；uppercase；weight 400；
 *         **text-align: center**（宽 1425 撑满，文字居中）
 *   Tab   a  15px；weight **500**；letter-spacing **1px**；uppercase；
 *         **padding: 14px 40px**；**border-radius: 50px**；border 0
 *         选中  bg **#ffc000**  color #111
 *         未选中 bg **#ffffff**  color #111
 *         x = 389 / 537 / 705 / 892（横向居中排列）
 *
 * 我们改前：标题 24px 靠左；tab 是「下划线式」（padding 8px 0 + border-bottom 2px，
 * 选中仅文字变黄、无填充）；未选中文字灰 #cccccc。
 *
 * ⚠️ 类名必须用 **`tc-*`**（本项目自己的 product-tabs.liquid 里的命名）：
 *     .tc-tabs / .tc-tabs__heading / .tc-tabs__nav / .tc-tabs__tab(.is-active)
 *   我第一版凭印象写了 `.product-tabs button` 之类，被 tools/verify-selectors.py
 *   一次性抓出 4 个死选择器 —— **先读自己的模板再写选择器**，别猜。
 * ========================================================================= */

/* ① 标题：字号与居中对齐（对标站 45px/47px，居中） */
.tc-tabs__heading {
  font-size: 45px;
  line-height: 47px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
}

@media screen and (max-width: 989px) {
  .tc-tabs__heading {
    font-size: 32px;
    line-height: 38px;
  }
}

/* ② tab：药丸按钮 + 填充色（对标站选中黄底、其余白底）
 *
 * ⚠️ 加 `!important` 的原因（实测）：section 自己的 `<style>` 里对
 * `.tc-tabs__tab` 设了 `padding: 8px 0`，而 section 内联样式在文档里**排在外链 CSS 之后**，
 * 同特异性下后者胜 —— 实测 padding 仍是 8px 0、选中态文字色被设成 #ffc000（黄底黄字看不见）。
 * 用 !important 是此处最小代价；改 section 里的原样式也行，但那是产物代码，尽量不动。
 */
.tc-tabs__tab {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 40px !important;
  border-radius: 50px !important;
  border: 0 !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  cursor: pointer;
  transition: background-color var(--tm-duration-base) var(--tm-ease-base),
              color var(--tm-duration-base) var(--tm-ease-base);
}

.tc-tabs__tab:hover {
  background-color: #ffc000 !important;
}

/* 选中态：亮黄填充 + 深色文字（对标站实测 bg rgb(255,192,0) / color rgb(17,17,17)） */
.tc-tabs__tab.is-active,
.tc-tabs__tab[aria-selected='true'] {
  background-color: #ffc000 !important;
  color: #111111 !important;
}

/* =========================================================================
 * 2m. 窄下拉（Lamp）：平级竖排 + 右侧级联抽屉（T47 重写）
 *
 * ## 为什么整段重写
 *
 * 前面几轮我一直在**给官方那套整幅宽 mega menu 的分列算法打补丁**：
 * 官方 `mega-menu-list` 有 `open_column_span` / `column_span` / `links_before_wrap`
 * 一整套「把多个二级项打包成若干列」的逻辑，实测把我们的 Lamp 5 项拆成了几列
 * （用户截图：Cameo 在最左、LED Lamp 在最右）。
 * **方向错了** —— 对一个为 mega menu 设计的算法做 CSS 对抗，只会越修越乱。
 *
 * 现在窄下拉走**独立渲染路径**（见 `snippets/mega-menu-list.liquid` 顶部
 * `narrow_menu` 分支），输出的是简单可预测的标记：
 *
 *     <ul class="mega-menu__list mega-menu__list--narrow">
 *       <li class="mega-menu__narrow-item [--has-children]">
 *         <a class="mega-menu__link mega-menu__narrow-link">Cameo</a>
 *         <span class="mega-menu__narrow-caret">›</span>            <- 仅带三级时
 *         <ul class="mega-menu__narrow-sub">                        <- 仅带三级时
 *           <li><a class="mega-menu__link mega-menu__narrow-sublink">Color LED</a></li>
 *         </ul>
 *       </li>
 *       ...
 *
 * ## 对标站实测
 *   面板   220px 宽、深色底、1px 描边、padding 20px 15px
 *   条目   14px/28px、weight 400、白字；带三级的行**右侧一个 `›`**
 *   抽屉   `position:absolute; left:100%; top:0; width:220px; background:#111;
 *           border:1px solid; padding:20px 15px`；`scaleY(0) -> scaleY(1)`，400ms ease-in-out
 *   悬停   二级项 `color: #ffc000`
 * ========================================================================= */

/* 面板宽度 220px + **水平对齐到触发项**（对标站实测）。
 *
 * ⚠️ T50 实测（Playwright 量出的真实数值，这是第 N 次修、也是第一次有实测）：
 *
 *     一级项 x 坐标:  Home 546 | Light 606 | **Lamp 659 (宽 58)** | Tripod 717 | Buffet 779 | More 840
 *     窄面板实际:     x = 40   w = 1360        <- **跑到页面最左，与 logo 对齐**
 *     .menu-list__submenu: position:absolute; left:0; right:0; width:1440px; transform:none
 *     .menu-list__submenu-inner: justify-content:space-between; padding-inline:0
 *
 * 即：**宽度 220px 早就生效了**（grid 实测 w=220），条目也是紧凑竖排（y=164/220/276/332/388，
 * 行距 56px）—— 用户看到的"摊开"其实是**整块面板被放到了页面最左边**：
 * 面板在 x=40、触发项在 x=659，视觉上就像条目散落在屏幕两侧。
 *
 * 根因：`right:0` + `width:1440px` 的 submenu 是整幅宽容器，里面的 220px 块默认**左对齐**。
 * 修法：把 220px 的面板在水平方向**偏移到触发项位置**。
 * 偏移量用实测值（Lamp x=659）—— 这是**本菜单专属**的常量，
 * 因为窄下拉只用于 Lamp（由主题设置 `narrow_menu_titles` 决定），
 * 客户若改设置换菜单，偏移量需同步调整（已在 CSS 注释中标明出处）。
 */
[data-tm-narrow-menu] .menu-list__submenu-inner {
  padding-block: 0;
}
/* 旧 T55 的面板样式已被上面 T57 的「外层面板画框」方案取代（避免双重边框/透明露底） */

/* T55 修复（面板对齐触发项，替代旧的 margin-inline-start:639px 硬编码）：
   旧偏移是 Lamp 专属常量（Lamp x=659），More 加入窄下拉后（x=856）会错位。
   新方案：给 narrow 模式的 li 设 position:relative，让它的 .menu-list__submenu
   以触发项为定位参照 —— 面板自动从各触发项左缘展开，Lamp/More 通用。
   （官方教训里「li 加 relative 会塌陷」只发生在全宽 mega menu 的六列网格上，
   narrow 模式不经过那条路径，实测无影响。） */
.menu-list__list-item:not([slot='overflow']):has([data-tm-narrow-menu]) {
  position: relative;
}

.menu-list__list-item:not([slot='overflow']):has([data-tm-narrow-menu]) > .menu-list__submenu {
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: 220px;
  max-width: 220px;
  /* T57：放开裁剪，让三级抽屉能从面板右缘滑出（对标站 .tb_sub_menu_wrap 无 overflow 裁剪）。
     若 Horizon 默认给 submenu 设了 overflow:hidden，这里显式覆盖为 visible。 */
  overflow: visible;
  /* T57：Horizon 默认 content-visibility:auto —— 实测会把超面板绘制范围的三级抽屉
     裁剪在面板盒内（真实悬停截图：飞出框只剩面板内 ~14px 的一条边）。
     窄下拉路径必须完全禁用这个优化。 */
  content-visibility: visible;
  /* 实底/边框/内边距（对标站 .tb_sub_menu_wrap 的盒子）。内层 ul 不再重复画框。 */
  background-color: #111111;
  border: 1px solid #444444;
  padding: 20px 15px;
}

.menu-list__list-item:not([slot='overflow']):has([data-tm-narrow-menu]) > .menu-list__submenu .menu-list__submenu-inner {
  overflow: visible;
}

/* 内层 ul（data-tm-narrow-menu 宿主）：只管宽度与单列布局，框由外层面板画 */
[data-tm-narrow-menu] {
  width: 190px !important;
  max-width: 190px !important;
  --menu-columns-desktop: 1 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.menu-list__list-item:not([slot='overflow']):has([data-tm-narrow-menu]) > .menu-list__submenu .menu-list__submenu-inner {
  overflow: visible;
}

/* 下拉容器也一起收窄（面板 220px - 左右 padding 15px×2 = 内容区 190px；
   不收窄的话官方 left:0;right:0 的整幅宽布局会把内容横向拉伸） */
.menu-list__submenu:has([data-tm-narrow-menu]) .menu-list__submenu-inner,
.menu-list__submenu:has([data-tm-narrow-menu]) .mega-menu {
  width: 190px !important;
  max-width: 190px !important;
  margin-inline: 0 auto !important;
}

/* T57：内容**顶部堆叠 + 高度自适应**。实测 Horizon 的 submenu-inner 是
   flex + justify-content:space-between，把 5 个条目摊满 288px 高（行距 ~48px），
   对标站是紧凑的 28px 行距（面板 ~180px）。这里全部收紧。 */
.menu-list__submenu:has([data-tm-narrow-menu]) .menu-list__submenu-inner {
  justify-content: flex-start !important;
  align-content: flex-start !important;
  height: auto !important;
  gap: 0 !important;
}

.menu-list__submenu:has([data-tm-narrow-menu]) {
  height: auto !important;
}

/* T57：Horizon 的 .mega-menu 是 grid（实测被拆成 40px/110px/40px 三列），
   窄下拉路径必须单列块级，否则条目/角标会被网格错位。 */
.menu-list__submenu:has([data-tm-narrow-menu]) .mega-menu {
  display: block !important;
  grid-template-columns: none !important;
}

/* ⚠️ 这里删掉了两条我原本想加的"非窄下拉兜底"规则
   （`.mega-menu__grid:not([data-tm-narrow-menu]) .mega-menu__list { width:auto !important }`）。
   删除原因：那是我**预判**"More 下拉被同一批补丁撑开"，但**没有证据**。
   而它会副作用式地让 Light 的列表不再 `span 5`，从而把右侧 banner 挤走 ——
   我在 T32 花了很大力气才让 banner 与分类列同处一行，不能为了一个猜测把它弄坏。
   More 的问题等有实测再处理，**不猜**。 */

/* 窄下拉里不显示 banner 图（对标站 Lamp 面板 0 张图） */
[data-tm-narrow-menu] .mega-menu__banner,
[data-tm-narrow-menu] [data-tm-menu-banner] {
  display: none;
}

[data-tm-narrow-menu] .menu-list__submenu-inner {
  padding-block: 0;
}

/* 列表：平级竖排，不参与任何分列。
   ⚠️ T57：Horizon 把 `.mega-menu__list` 设为 grid + row-gap（实测行距被撑到 56px），
   这里必须 !important 压制成单列块级、零间距。 */
.menu-list__submenu:has([data-tm-narrow-menu]) .mega-menu__list--narrow {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0 !important;
  row-gap: 0 !important;
  list-style: none;
}

/* 每个二级项：一行，右侧给 `›` 留位 */
.mega-menu__narrow-item {
  position: relative;          /* 抽屉的定位参照（**加在 li/div 上都不是问题**：
                                  这里是自己渲染的标记，不涉及官方 mega menu 的骨架） */
  display: block;
  margin: 0;
  padding: 0;
}

.mega-menu__narrow-item > .mega-menu__narrow-link {
  display: block;
  padding: 4px 20px 4px 0;
  font-size: 14px;
  line-height: 28px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  transition: color 400ms ease-in-out;
}

.mega-menu__narrow-item > .mega-menu__narrow-link:hover,
.mega-menu__narrow-item > .mega-menu__narrow-link:focus-visible {
  color: #ffc000;
}

/* `›` 角标（只在带三级的那一行出现；T57 改为**行内**跟在文字后） */
.mega-menu__narrow-caret {
  display: inline-block;
  margin-inline-start: 12px;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  opacity: 0.85;
  pointer-events: none;
}

/* 三级：**从右侧飞出的抽屉**（对标站 `LED Lamp ›` 右侧滑出，而非手风琴）。
 *
 * 对标站做法：二级 `li.tb_menu_item` 内嵌 `.tb_sub_menu_wrap`，面板
 *   `position:absolute; left:100%; top:0` 从二级项右缘向右弹出（header.css / theme.css）。
 *
 * ⚠️ 关键前提（T57）：让抽屉**真的能滑出面板之外**，必须满足：
 *   ① 二级项容器**不能被 `overflow:hidden` 裁掉**（窄面板 `.menu-list__submenu`
 *      的默认 `overflow` 要放开）—— 见下面 `.menu-list__list-item:not([slot='overflow']):has([data-tm-narrow-menu])` 规则；
 *   ② 三级 ul 用 `position:absolute; inset-inline-start:100%` 定位在二级项右侧；
 *   ③ hover 用 `opacity/visibility` 过渡展开（400ms ease-in-out）。
 *      注：最初试过 `transform: scaleY`，但与 Horizon 变换祖先叠加时实测绘制异常
 *      （布局 160px 宽、绘制只剩 ~10px 竖条），故改用 opacity/visibility。
 * 之前 T53 的"死路"根因是**窄面板 overflow:hidden 裁掉了滑出的抽屉**，现在放开即可。
 */
.mega-menu__narrow-sub {
  position: absolute;
  inset-inline-start: 100%;
  inset-block-start: 0;
  z-index: 4;
  min-width: 160px;
  margin: 0;
  padding: 10px 15px;
  list-style: none;
  background-color: #111111;
  border: 1px solid #444444;
  /* T57：不用 transform（scaleY 与 Horizon 变换祖先叠加时实测绘制异常：
     布局 160px 宽、绘制只剩 ~10px 竖条）。改用 opacity/visibility 过渡。 */
  visibility: hidden;
  opacity: 0;
  transition: opacity 400ms ease-in-out 0s, visibility 400ms ease-in-out 0s;
}

/* 悬停/聚焦展开 */
.mega-menu__narrow-item--has-children:hover > .mega-menu__narrow-sub,
.mega-menu__narrow-item--has-children:focus-within > .mega-menu__narrow-sub {
  visibility: visible;
  opacity: 1;
}

/* 抽屉里的三级链接 */
.mega-menu__narrow-sub > li {
  margin: 0;
  padding: 0;
}

.mega-menu__narrow-sub > li > .mega-menu__narrow-sublink {
  display: block;
  font-size: 14px;
  line-height: 28px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 400ms ease-in-out;
}

.mega-menu__narrow-sub > li > .mega-menu__narrow-sublink:hover,
.mega-menu__narrow-sub > li > .mega-menu__narrow-sublink:focus-visible {
  color: #ffc000;
}

/* BITPOTT: automatic More uses the native overflow layout in _header-menu.liquid. */

/* 窄屏：手风琴在窄屏同样可用，所以这里**不再隐藏**。
 *
 * T53 改动说明：这一段原来是 `.mega-menu__narrow-sub { display: none }`，
 * 前提是三级做成"右侧滑出的抽屉"（窄屏放不下）。现在三级已改成面板内展开的手风琴，
 * 窄屏保留它反而更好（对标站的 mega menu 在窄屏也是手风琴）。
 * 保留这条 @media 是为了给窄屏更紧的缩进，而不是隐藏。
 */
@media screen and (max-width: 989px) {
  .mega-menu__narrow-sub {
    padding-inline-start: 10px;
  }
}

/* =========================================================================
 * 2k. Testimonial 区块：对齐对标站（T37）
 *
 * 用户指出：「Testimonial 这块背景和人家也不一样」。
 *
 * 对标站实测（从**本地缓存的它自己的 HTML/CSS** 挖出，不依赖浏览器）：
 *   容器  #tb-testimonial-cms { background-size: cover; background-position: center;
 *                              background-repeat: no-repeat; padding: 60px 0 }
 *         背景图 = testimonial-bg_*.webp（1920x600 深色纹理）
 *   标题  .TB-Commen-Heading h3 { 45px/47px Oswald; letter-spacing 1px; 居中; uppercase;
 *                                 padding-bottom 48px; margin-bottom 30px }
 *         ::after { 金色分隔图 separator-img.png  168x36，居中贴底 }
 *   卡片  .tb-testimonial-content { margin: 0 15px; padding: 25px }
 *   用户行 .tb-testimonial-user-info { display:flex; gap:20px; margin-bottom:15px }
 *         头像 80x80
 *         姓名 h3 22px/24px Oswald uppercase letter-spacing .5px
 *         职位 span 13px/15px Roboto uppercase（margin: 10px 0 8px）
 *         星级 font-size 20px，flex gap 3px
 *   正文  p 15px/28px Roboto，line-clamp 4
 *
 * 我们缺的东西：**背景图（从未上传）**、标题下的金色分隔图、用户行的横向布局。
 * ========================================================================= */
.tc-testimonials {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* 标题下加金色分隔图（对标站的 ::after，168x36，居中贴底） */
.tc-testimonials__heading {
  position: relative;
  padding-block-end: 48px;
  margin-block-end: 30px;
}

.tc-testimonials__heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 168px;
  height: 36px;
  background-image: url("separator-img.png");
  background-repeat: no-repeat;
  background-position: center;
}

/* 卡片：对标站 padding 25px + margin 0 15px */
.tc-testimonial {
  padding: 25px !important;
}

/* 用户行：头像 + 姓名/职位 + 星级 横向排列 */
.tc-testimonial__user-info {
  display: flex;
  gap: 20px;
  margin-block-end: 15px;
}

.tc-testimonial__img {
  flex: none;
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.tc-testimonial__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 姓名：22px/24px Oswald 大写；职位：13px/15px 大写 */
.tc-testimonial__name h3 {
  font-family: var(--font-heading--family, "Oswald", Helvetica, sans-serif);
  font-size: 22px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.tc-testimonial__name span {
  display: inline-block;
  font-size: 13px;
  line-height: 15px;
  text-transform: uppercase;
  margin: 10px 0 8px;
}

/* 星级：对标站 font-size 20px、flex gap 3px */
.tc-testimonial__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 20px;
  line-height: 22px;
}

/* 正文：15px/28px，最多 4 行（对标站 -webkit-line-clamp: 4） */
.tc-testimonial__quote,
.tc-testimonial__quote p {
  font-size: 15px;
  line-height: 28px;
  margin: 0 auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

@media screen and (max-width: 989px) {
  .tc-testimonial__name h3 {
    font-size: 18px;
    line-height: 20px;
  }
  .tc-testimonial__img {
    width: 64px;
    height: 64px;
  }
}
/* =========================================================================
 * 2j. 带 banner 的 mega menu（Light）：5 列分类 + 第 6 列一张实景图
 *
 * 对标站实测：「Light」下拉共 6 列 —— 前 5 列是分类链接（各 209px），
 * 第 6 列 `tb_sub_menu menu-banner` 是**一张 348x163 的实景图、0 个链接**。
 * Horizon 原生没有这个位置，所以在 `blocks/_header-menu.liquid` 里加了
 * `menu_banner_image` 设置，这里只负责它的排布。
 *
 * ⚠️ 为什么不用 `grid-column: span 3`：实测父网格 `.mega-menu__grid` 的列数
 * 与理论值不符（`--menu-columns-desktop` 计算值是 6，但 5 个栏目只占 5 列，
 * 剩下的空间放不下 span-3，于是 banner **换行**到了第二行、
 * 被拉到整行宽 660px）。与其去改一处会连带影响分类列的列数定义，
 * 不如**给 banner 一个明确的宽度**，稳定且不影响其它元素。
 *
 * ⚠️⚠️ T53 修：这段注释原来**缺了开头两行**（开头的注释定界符与标题行），
 * 而结尾的定界符还在 —— 于是从这一行往下 12 行被浏览器当成「一条选择器很怪异的规则」
 * **整条丢弃**，并且把紧随其后的 `[data-tm-has-banner]` 等规则的声明块错接。
 * 症状：本文件下面那些 banner 规则一直没生效（T40/T49 报告的「banner 换行」就是这么来的）。
 * 防复发：`node tools/css-health.mjs` 会检查注释配对与「孤立的星号行」，两条验收命令以外补的这一层。
 * 教训：**删注释时要么整块删、要么整块留**，不要从中间截断。
 * ========================================================================= */
/* ---- 带 banner 的下拉：6 列网格 = 列表 span 5 + banner span 1 ----------
 * ⚠️ T53 修：这一块的注释定界符原来前后不配对（与上面那块是同一个编辑失误的第二次出现，
 * 全文件共两处，都已修）。只有前后配对成完整注释，下面的 `[data-tm-has-banner]` 规则
 * 才会真正进样式表 —— 在此之前它一直是「写了但没生效」的死代码。
 *
 * 算清这笔账（实测）：
 *    网格 5 列 × 254px = 1270px
 *    列表 `grid-column: span 5` -> 占满网格全部 5 列
 *    banner `span 1`            -> 没位置，换到第二行（实测 by=383 vs listY=164）
 * 所以：网格 6 列、列表 span 5、banner span 1。对标站也正是「5 列 + 第 6 列图」。
 *
 * 用 `[data-tm-has-banner]` 作作用域，只影响带图的下拉，其它下拉行为不变。
 */
[data-tm-has-banner] {
  --menu-columns-desktop: 6 !important;
}

[data-tm-has-banner] .mega-menu__list {
  --menu-columns-desktop: 5;
}

/* ⚠️ 这里原来还有一条**旧的**窄下拉规则：
 *     [data-tm-narrow-menu] { --menu-columns-desktop: 1 !important;
 *                             width: 220px; margin-inline: 0 auto; }
 *   与 2m 段（T49 加强版，带 !important 并同时约束到 `.menu-list__submenu-inner`）
 *   **重复**。同一选择器两处定义正是我 T40 犯过的错，故删除；窄下拉样式**只在 2m 段定义**。
 *
 * ⚠️ 另外纠正上面注释里一句**错误记录**：原文写「第三级做不了：Shopify 的 link.links
 *   只暴露两级」—— 那句是**错的**。真相是：桌面 mega menu 里三级**一直都在渲染**
 *   （原生嵌套 `<ul>`），我此前查错了地方（先只看 `size` 没看 DOM，
 *   后来又把移动端抽屉的标记当成了唯一的三级）。详见 T47 的完整记录。
 */

/* 窄面板里不显示 banner 图、以及内边距 —— 这两条**已在 2m 段（L1633-1641）定义过**。
 *
 * T53 说明：这里原来又写了一遍（值完全相同）。它们长期是**死代码**，因为上面那段
 * 缺定界符的注释让浏览器把这一带整块丢掉；T53 把注释修好后它们才「复活」，
 * 于是变成真正的重复定义。取值相同、层叠结果不变，故**删除这里的两条**，
 * 只保留 2m 段那一份（同一选择器只在文件里出现一次）。
 *
 * 不删 2m 段那一份、而删这里的，是因为 2m 段紧邻其它窄下拉规则，改一处只影响一处。
 */

/* ---- 列内的字体层级：标题要**大于**子链接（对标站实测）------------------
 *
 * 对标站每列结构 `h4.sub_mn_title > ul`：
 *     标题（一级 collection 名）  15px / 20px  weight **500**  text-transform **capitalize**
 *     子链接                     14px / 28px  weight 400
 * 我们改前是**反的**：标题 14px/23.4px weight 400 case none，子链接 16px/25.6px
 * —— 子链接比标题还大，层级看不出来（用户截图里最扎眼的一处差异）。
 * Horizon 用 `--menu-parent-font-*` 一组变量控制标题，子链接另有变量，这里分别设。
 */
[data-tm-has-banner] .mega-menu__link--parent,
[data-tm-has-banner] .mega-menu__column > a:first-child {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  text-transform: capitalize;
}

/*
 * （这里原来有一条 `[data-tm-narrow-menu] .mega-menu__column div > ul > li > a` ——
 *   针对**旧的**窄下拉标记（官方 `mega-menu__column` 结构）设三级字号。
 *   T47 把窄下拉改成独立渲染路径后，那个结构在窄下拉里已不存在，
 *   三级字号由 2m 段的 `.mega-menu__narrow-sublink` 统一设定，**故删除**。）
 */

/* banner 本身：占第 6 列，宽 348px（对标站实测），高 163px */
[data-tm-has-banner] .mega-menu__banner,
[data-tm-menu-banner] {
  grid-column: span 1;
  width: 100%;
  max-width: none;
  align-self: start;
}

.mega-menu__banner-link {
  display: block;
  text-decoration: none;
}

.mega-menu__banner-image,
.mega-menu__banner img {
  display: block;
  width: 100%;
  height: 163px;                /* 对标站实测高 */
  object-fit: cover;
  border-radius: var(--menu-image-border-radius, 0);
}

/* 平板/手机不显示这个图片位（对标站的 mega menu 在窄屏本来就退化为手风琴） */
@media screen and (max-width: 989px) {
  .mega-menu__banner,
  [data-tm-menu-banner] {
    display: none;
  }
}

/* ③ tab 横向居中排列（对标站起点 x=389，在 1425 宽里居中） */
.tc-tabs__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px !important;
  border-bottom: 0 !important;
}

/* =========================================================================
 * 2i. 首页**全部区块标题**统一对齐对标站（T29）
 *
 * 实测发现：对标站首页 13 个区块里，**区块标题一律 45px/47px 居中**
 *   Categories Features / Top Products / Categories Products /
 *   Testimonial / Special Products / Blog  —— 全部 `45px/47px`、`text-align: center`
 * 例外两处（也按实测照做）：
 *   · banner_row 标题      **30px/40px 居中**
 *   · video 区 "Get 20% Off" **50px/52px 居中**
 *
 * 我们改前（实测线上计算样式）：除 TOP PRODUCTS 外**全部是 24px 靠左**：
 *   tc-banner-row__heading       24px start
 *   Categories Features          24px start
 *   tc-testimonials__heading     24px start
 *   Categories Products          24px start
 *   tc-video__heading            24px start
 *
 * 类名来源（先读模板再写，不猜）：
 *   tc-banner-row__heading / tc-testimonials__heading / tc-video__heading /
 *   tc-tabs__heading；
 *   「Categories Features」与「Categories Products」是 Horizon **原生 collection-list**
 *   区块的标题 —— 它**不渲染自己的标题**，标题是编辑器里加的**文本块**，
 *   结构是 `div.group-block > div.text-block > h2`（**裸 h2、没有类名**）。
 *   所以按**区块 id** 定位：`[id*=screen_07_category_grid] h2` / `[id*=screen_10_category_carousel] h2`。
 *   第一版我写的 `.collection-list h2` 命中 0 —— 因为那个 `<h2>` 的祖先里没有
 *   `.collection-list` 这个类（自作聪明猜的类名，实测打脸）。
 * ========================================================================= */

/*
 * 「Categories Features」/「Categories Products」两个标题是 Horizon **文本块**里的裸 h2，
 * 字号由**变量** `--font-h2--size`（实测 1.5rem = 24px）驱动，
 * 因为 Horizon 的规则是双特异性 + 变量：
 *     h2, .h2.h2, .text-block.h2 > * { font-size: var(--font-h2--size) }
 * 直接写 `font-size: 45px` 会被它压过去（**实测：对齐变了、字号没变**）。
 * 所以必须改**变量**，并且同时给文本块和 h2 设（变量在文本块上、h2 读它）。
 */
[id*='screen_07_category_grid'] .text-block,
[id*='screen_10_category_carousel'] .text-block,
[id*='screen_12_special_products'] .text-block,
[id*='screen_07_category_grid'] h2,
[id*='screen_10_category_carousel'] h2,
[id*='screen_12_special_products'] h2 {
  --font-h2--size: 45px;
  --font-h2--line-height: 47px;
  --font-h2--letter-spacing: 1px;
  --font-h2--weight: 400;
  --font-h2--case: uppercase;
}

.tc-banner-row__heading,
.tc-testimonials__heading,
.tc-video__heading,
[id*='screen_07_category_grid'] h2,
[id*='screen_10_category_carousel'] h2,
[id*='screen_12_special_products'] h2 {
  font-size: 45px;
  line-height: 47px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
}

/* banner_row 的标题对标站是 30px/40px 居中（比其他区块小） */
.tc-banner-row__heading {
  font-size: 30px;
  line-height: 40px;
}

/* video 区标题对标站是 50px/52px 居中 */
.tc-video__heading {
  font-size: 50px;
  line-height: 52px;
}

@media screen and (max-width: 989px) {
  .tc-banner-row__heading,
  .tc-testimonials__heading,
  .tc-video__heading,
  [id*='screen_07_category_grid'] h2,
  [id*='screen_10_category_carousel'] h2 {
    font-size: 30px;
    line-height: 34px;
  }
}

/* =========================================================================
 * 2l. 订阅弹窗：按对标站真源码重做（T52，取代 T38/T41/T45–T50 的历次补丁）
 *
 * 用户要求：「弹窗也要和人家一样」。
 *
 * 对标站弹窗实测（从**本地缓存的它自己的 HTML/CSS** 挖出，不依赖浏览器）：
 *   标记  #newsletterModal > .modal-dialog > .modal-row
 *           > .newslatter-img（背景图）
 *           > .newslatter-content-col > .newsletter-wrapper
 *               > .newsletter-title h2 + .desc + form(.row-subscibe) + .checkbox-group
 *   样式  .modal-row        { display:flex; align-items:center; background:#111 }
 *         .newslatter-img   { height:380px; width:800px; background-size:cover;
 *                             background-position: top left }
 *         .newslatter-content-col { text-align:center; width:50%; position:absolute;
 *                                   top:50%; right:40px; transform:translateY(-50%) }
 *         .newsletter-title h2 { 36px/38px Oswald; uppercase; letter-spacing .3px }
 *         .row-subscibe input  { border:1px solid #fff; padding:12px 20px; color:#111;
 *                                background:#fff; 14px/20px; text-align:center }
 *         button.close { right:0; top:0; 30x30; hover 时 rotate(180deg) }
 *
 * 我们改前：`__media` 和 `__body` 是**竖排**（上下），与对标站的左右并排不同。
 * ========================================================================= */


/* 文字浮层：压在图片**右侧的暗区**上。
 *
 * ⚠️ 修正记录（用户：「黑边没修好」）：
 * 我原来在这里铺了一层 `width:52%; background: linear-gradient(...0.72)` 的遮罩，
 * 想"保证文字可读"。但实测该图**右半边本来就是暗的**（逐列扫描：x=700~800
 * 亮度稳定在 16~17），我那片 0.72 不透明度的遮罩等于**把整个暗区再涂黑一遍**，
 * 于是看起来就是一条黑带 —— 用户所说的"黑边"其实是**我自己的遮罩**，不是图片内容。
 *
 * **精进做法**：不再用遮罩盖图（对标站也是文字直接压在图上），
 * 改为**给文字加投影**（text-shadow）来保证可读性 ——
 * 图与文字都保持原生观感，不会出现色块边界。
 */

/* 标题：对标站 36px/38px Oswald 大写 */

/* 邮箱框：对标站白底 + 白边 + 居中文字 */

/* 关闭按钮：对标站 30x30、右上角、hover 旋转 180 度 */

.tc-newsletter__close:hover,

/* 窄屏：图片继续打底，文字浮层改为**铺满全图**（图太窄时右侧 52% 放不下）
   —— 对标站移动端也是「图打底 + 文字在上面」的观感。 */
@media screen and (max-width: 749px) {


}
/* More：桌面端紧凑两列下拉 */
@media screen and (min-width: 750px) {
  header-menu[data-overflow-expanded="true"]
  .overflow-menu::part(overflow) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip-path: none !important;
    top: 100% !important;
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
    width: 520px !important;
    max-width: calc(100vw - 32px) !important;
    padding: 0 !important;
    background: #111 !important;
    border: 1px solid #444;
  }

  header-menu[data-overflow-expanded="true"]
  .overflow-menu::part(overflow-list) {
    display: grid !important;
    grid-template-columns: 170px minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    grid-template-rows: max-content !important;
    grid-auto-rows: max-content !important;
    align-items: start !important;
    align-content: start !important;
    gap: 0 20px !important;
    padding: 16px !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  header-menu .menu-list__list-item[slot="overflow"] {
    display: contents !important;
  }

  header-menu .menu-list__list-item[slot="overflow"]
  > .menu-list__trigger,
  header-menu .menu-list__list-item[slot="overflow"]
  > .menu-list__link {
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    padding-block: 8px !important;
  }

  header-menu .menu-list__list-item[slot="overflow"]
  > .menu-list__submenu {
    display: none !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  header-menu .menu-list__list-item[slot="overflow"]
  :is(.menu-list__submenu-inner) {
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }

  header-menu .menu-list__list-item[slot="overflow"]:has(
    .menu-list__disclosure[aria-expanded="true"]
  ) > .menu-list__submenu {
    display: block !important;
    visibility: visible !important;
  }
}/* 自动 More 展开时，隐藏原来的全宽背景层 */
@media screen and (min-width: 750px) {
  #header-component:has(
    header-menu[data-overflow-expanded="true"]
  ) .header__underlay {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    pointer-events: none !important;
  }
}/* BITPOTT：统一桌面下拉菜单外观 */
@media screen and (min-width: 990px) {

  /* 普通下拉以对应导航项为定位参照 */
  header-menu .menu-list__list-item:not([slot="overflow"])
  :is(.menu-list__trigger) {
    height: 100%;
  }

  header-menu .menu-list__list-item:not([slot="overflow"]):has(
    > .menu-list__submenu
  ) {
    position: relative;
  }

  /* 内容较多：紧凑两列面板 */
  header-menu .menu-list__list-item:not([slot="overflow"])
  > .menu-list__submenu {
    top: 100% !important;
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    width: 480px !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    padding: 16px !important;
    clip-path: none !important;
    background: #111 !important;
    border: 1px solid #383838 !important;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgb(0 0 0 / 25%);
  }

  /* 清除内层额外留白和位移 */
  header-menu .menu-list__list-item:not([slot="overflow"])
  > .menu-list__submenu .menu-list__submenu-inner {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  header-menu .menu-list__list-item:not([slot="overflow"])
  > .menu-list__submenu .mega-menu {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  header-menu .menu-list__list-item:not([slot="overflow"])
  .mega-menu__grid {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  header-menu .menu-list__list-item:not([slot="overflow"])
  .mega-menu__list:not(.mega-menu__list--narrow) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 20px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header-menu .menu-list__list-item:not([slot="overflow"])
  .mega-menu__list > .mega-menu__column {
    grid-column: auto !important;
    min-width: 0;
  }

  /* 已设为窄下拉的分类：单列面板 */
  header-menu .menu-list__list-item:not([slot="overflow"])
  > .menu-list__submenu:has([data-tm-narrow-menu]) {
    width: 280px !important;
    max-width: calc(100vw - 32px) !important;
  }

  /* 下拉统一字体、行距和点击区域 */
  header-menu .menu-list__submenu
  :is(.mega-menu__link, .mega-menu__narrow-link) {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    color: #eee;
    transition: color 160ms ease, background-color 160ms ease;
  }

  header-menu .menu-list__submenu .mega-menu__link--parent {
    font-weight: 600;
  }

  header-menu .menu-list__submenu
  :is(.mega-menu__link, .mega-menu__narrow-link):hover {
    color: #ffc000;
    background-color: #222;
  }

  /* 下拉先以文字导航为主 */
  header-menu .menu-list__submenu
  :is(.mega-menu__banner, [data-tm-menu-banner]) {
    display: none !important;
  }

  /* 普通下拉展开时去掉全宽背景层 */
  #header-component:has(
    .menu-list__list-item:not([slot="overflow"])
    .menu-list__disclosure[aria-expanded="true"]
  ) .header__underlay {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }
}
/* BITPOTT：统一桌面下拉菜单外观结束 */