/* b2c-mirox-surfboard：B2C 冲浪户外商城主题覆盖层。
 *
 * ★ 参考：fecify 体验页 · B2C 面板第 9 套 mirox surfboard。
 * ★ 结构样式仍由基座 `public/theme.css` 提供；本文件只做三件事：
 *     ① 覆写基座变量（--accent / --ink / --bg）→ 全局配色
 *     ② 覆写 B2C 专属变量（--b2c-*）→ 商品卡/图墙风格
 *     ③ ★ 导航条差异化：靠 `order` + `flex` 重排页头，**不改 layout/theme.liquid**
 *        ⇒ `/cart` / `/inquiry-list` 的门禁分支天然一字未动（业主 2026-09-26 事故点零风险）。
 *
 * ★★ 导航形态：深色单行页头：品牌左 + 导航紧跟 + 控件右（LOGO 反白）（复用第一批已验收的形态模板 `b2c-plusshop`，仅换配色）。
 */
:root {
  /* 主色：皇家蓝（参考图实测 #3356b0） */
  --accent: #1f8fb0;
  --b2c-accent: #1f8fb0;
  --b2c-accent-ink: #ffffff;
  --ink: #10323d;
  --b2c-ink: #10323d;
  --b2c-muted: #4f7c8a;
  --b2c-line: #d9e9ee;
  --b2c-surface: #ffffff;
  --b2c-radius: 12px;
  --b2c-gap: 20px;
  --bg: #f5fbfd;
  /* ★ 本套新增：深蓝页头 token */
  --hdr-bg: #1f8fb0;
  --hdr-ink: #ffffff;
  --hdr-line: #197590;
  --topbar-bg: #e4f2f6;        /* 参考图顶栏是浅灰蓝促销条 */
  --topbar-ink: #1f8fb0;
  /* ★ 2026-10-12 A7：LOGO 反白**只在 hero 透明态**由下方 ② 规则显式打开
     （`body.a7-over-hero .site-header .brand__logo{filter:brightness(0) invert(1)}`）。
     ⛔ 这里必须保持 none —— 基座 `.site-header .brand__logo{filter:var(--brand-logo-filter,none)}`
     会让全局反白，而**非 hero 页面是白底页头** ⇒ 白 LOGO 压白底 = 看不见（A7 实测踩到）。 */
  --brand-logo-filter: none;
}

/* ---------- 商品卡 / 图墙 ---------- */
.b2c-card {
  border-radius: var(--b2c-radius);
  box-shadow: 0 1px 2px rgba(16, 50, 61, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.b2c-card:hover { box-shadow: 0 10px 26px rgba(16, 50, 61, 0.12); transform: translateY(-2px); }
.b2c-card .b2c-card-actions .button-primary,
.b2c-card .b2c-card-actions .button-dark { background: var(--b2c-accent); border-color: var(--b2c-accent); color: var(--b2c-accent-ink); }
.b2c-wall-tile { border-radius: var(--b2c-radius); }

/* 主行动按钮染色（id 与 b2c-flagship 逐字相同，已核过落点） */
.b2c-add,
#b2c-cart-checkout,
#b2c-checkout-submit,
#b2c-checkout-pay-btn { background: var(--b2c-accent); border-color: var(--b2c-accent); color: var(--b2c-accent-ink); }
.b2c-add:hover,
#b2c-cart-checkout:hover,
#b2c-checkout-submit:hover,
#b2c-checkout-pay-btn:hover { filter: brightness(0.94); }
.b2c-add:disabled,
#b2c-cart-checkout[disabled],
#b2c-checkout-submit:disabled,
#b2c-checkout-pay-btn:disabled { background: #e5e7eb; border-color: #e5e7eb; color: #9aa1ab; cursor: not-allowed; filter: none; }

:root{--radius-sm:4px;--radius:8px;--radius-lg:12px;--radius-pill:999px;--radius-btn:4px}

/* ============================================================================
 * ★★ 导航条差异化 · 第 1 层：顶栏 → 浅蓝促销条
 * ============================================================================ */
.site-topbar { background: var(--topbar-bg); color: var(--topbar-ink); border-bottom: 0; }
.site-topbar__link, .site-topbar__link:hover, .site-topbar__link:focus-visible { color: var(--topbar-ink); }
.site-topbar__link--inquiry { color: var(--topbar-ink); }
.site-topbar__link--inquiry:hover { color: #1b2233; }

/* ★ 2026-10-12 A7：原「第 2 层：深蓝单行页头」整块**已移除**（保留本注记，勿再复活）。
   原块 `.site-header{background:var(--hdr-bg)}`（深蓝 #1f8fb0）+ 白字，会让**非 hero 页面**
   的页头变成第三种状态（首页只有「透明 → 滚过变白底」两态），与参考站 228 不符。
   移除后：hero 页仍走下方 ②③（透明叠图 → 白底深字）；其余页回落基座原生**白底深字**页头。
   ⛔ 深蓝只保留给 `preview` 用的变量（--hdr-*），不再作用于任何 `.site-header`。 */

/* 主行右侧图标组（全站通用）：只留图标、横排靠右；文字隐藏（图标跟父级色走） */
@media (min-width:701px){
  .site-header>.site-search{order:3}
  .site-header>.a7-hacts{order:4;display:flex;align-items:center;gap:16px;margin-left:8px}
}
.site-header .a7-hact{text-decoration:none;display:inline-flex;align-items:center;position:relative;color:var(--accent,#1f8fb0)}
.site-header .a7-hact span:not(.site-topbar__count){display:none !important}
.site-header .a7-hact .site-topbar__ico{width:20px;height:20px;color:inherit}
.site-header .a7-hact:hover{opacity:.8}

/* ============================================================================
 * 页头「导航条文字 + LOGO」放大（与 b2c-flagship 同口径）
 * ============================================================================ */
.site-header nav { font-size: clamp(14px, 0.55vw + 6px, 17px); font-weight: 700; }
@media (min-width: 701px) {
  .site-header { padding-top: 6px; padding-bottom: 6px; }
  .site-header .brand__logo { max-height: clamp(52px, 1.9vw + 38px, 76px); max-width: min(480px, 66vw); }
}
@media (min-width: 701px) and (max-width: 1023px) { .site-header > nav { gap: 18px; } }
@media (min-width: 1024px) { .site-header > nav { gap: 14px; } }
@media (min-width: 1440px) { .site-header > nav { gap: 16px; } }
@media (max-width: 700px) {
  .site-header .brand__logo { max-height: clamp(34px, 8vw + 16px, 54px); }
  #mobileNavOpen:checked ~ .site-header > nav { font-size: 18px; font-weight: 700; }
  #mobileNavOpen:checked ~ .site-header > nav .nav-sub__item > a { font-size: 15px; }
}

/* 2026-10-10（业主：产品分类墙前端图片显示比例有问题，产品都跑外面去了）
   商品图是 1:1 方图，基座里 .sec-cat-tile 是 4:3 + cover ⇒ 必然裁掉上下。
   本主题内改成方图 + contain（完整显示商品），浅灰补边。⛔ 只写本主题覆盖层。 */
.sec-cat-tile{aspect-ratio:1 / 1;background-size:contain;background-repeat:no-repeat;background-position:center;background-color:#f4f5f7}
.sec-cat-tile::after{background:linear-gradient(180deg,rgba(16,24,34,0) 55%,rgba(16,24,34,.55) 100%)}

/* ═══════════════════════════════════════════════════════════════════════════
   ★ 2026-10-12 B2C-A7 页头 + 整页动效（业主图1 · 参考 mirox 228）
   顶栏 = 浅黄联系条（#ece770 / 深字，46px）；主行 = 透明叠在 hero 上（白字/白图标），
   滚过首屏后 → 白底 + 深字 + fixed（0.25s 过渡）；各 section 滚动淡入上移（.a7-reveal）。
   ═══════════════════════════════════════════════════════════════════════════ */
/* ① 浅黄顶栏 */
.a7-topbar{--a7-tb-bg:#ece770;background:var(--a7-tb-bg);color:#222;border-bottom:0}
.a7-topbar .site-topbar__inner{max-width:none}
.a7-topbar__in{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1250px;margin:0 auto;padding:0 24px;min-height:46px}
.a7-topbar__contacts{display:flex;align-items:center;gap:22px;font-size:13px;color:#222;min-width:0}
.a7-topbar__item{display:inline-flex;align-items:center;gap:7px;color:#222;text-decoration:none;white-space:nowrap}
.a7-topbar__item:hover{color:#000}
.a7-topbar__pref{display:flex;align-items:center;gap:16px}
.a7-topbar .a7-tb-lang,.a7-topbar .a7-tb-cur{display:inline-flex;align-items:center;gap:6px;margin:0}
.a7-topbar .lang-switch-label{color:rgba(0,0,0,.55);font-size:12px;letter-spacing:.04em}
.a7-topbar .a7-tb-lang select,.a7-topbar .a7-tb-cur select{background:transparent;border:0;color:#222;font-size:13px;font-weight:600;padding:2px 0;cursor:pointer}
.a7-topbar .a7-tb-lang select option,.a7-topbar .a7-tb-cur select option{color:#222}
/* 购物车角标（全站通用，与页面无关） */
.site-header .site-topbar__count{position:absolute;top:-6px;right:-8px;margin:0;min-width:17px;height:17px;line-height:17px;padding:0 3px;border-radius:999px;background:#e0263c;color:#fff;font-size:10px;font-weight:700;text-align:center}
/* ② 主行（**仅首页 hero 之上**透明叠图；其余页面走基座白底页头，避免内页白字压白底） */
@media (min-width:701px){
  body.a7-over-hero header.site-header{position:absolute;top:46px;left:0;right:0;z-index:60;display:grid !important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;
    min-height:68px;padding:0 4%;background:transparent !important;border-bottom:0 !important;
    transition:background .25s ease,box-shadow .25s ease}
  body.a7-over-hero .site-header>nav{order:1;justify-self:start;display:flex;align-items:center;gap:24px;flex-wrap:nowrap;margin:0;background:transparent}
  body.a7-over-hero .site-header>nav a{color:#fff;font-weight:700;font-size:14px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
  body.a7-over-hero .site-header>nav a:hover{color:#fff;opacity:.8}
  body.a7-over-hero .site-header .brand--logo{order:2;justify-self:center;margin:0}
  body.a7-over-hero .site-header .brand__logo{filter:brightness(0) invert(1);transition:filter .25s ease}
  body.a7-over-hero .site-header>.site-search{order:3;justify-self:end;margin:0 14px 0 0}
  body.a7-over-hero .site-header .site-search__ico,body.a7-over-hero .site-header .site-search__toggle{color:#fff}
  body.a7-over-hero .site-header>.a7-hacts{order:4;justify-self:end;display:flex;align-items:center;gap:16px}
  body.a7-over-hero .site-header .a7-hact,body.a7-over-hero .site-header .member-nav-entry{color:#fff;text-decoration:none;display:inline-flex;align-items:center;position:relative}
  body.a7-over-hero .site-header .a7-hact span:not(.site-topbar__count),body.a7-over-hero .site-header .member-nav-anon,body.a7-over-hero .site-header .member-nav-member,body.a7-over-hero .site-header .member-nav-slash{display:none !important}
  body.a7-over-hero .site-header .a7-hact .site-topbar__ico,body.a7-over-hero .site-header .member-nav-entry .member-nav-ico{width:21px;height:21px;
    /* 基座 .site-topbar__ico 写死 var(--accent) ⇒ 透明态会露成蓝色；跟父级（白/深墨）走 */
    color:inherit}
  body.a7-over-hero .site-header .a7-hact:hover,body.a7-over-hero .site-header .member-nav-entry:hover{opacity:.8}
}
/* ③ 滚过首屏：白底 + 深字 + 吸顶（**仅 hero 页**）
   ⛔ position:fixed 只给 ≥701px —— 手机上 unset 宽度的 fixed 会 shrink-to-fit 塌成 190px。 */
@media (min-width:701px){
  body.a7-over-hero.a7-scrolled header.site-header{position:fixed;top:0}
}
body.a7-over-hero.a7-scrolled .site-header{background:#fff !important;box-shadow:0 1px 0 var(--b2c-line,rgba(0,0,0,.08))}
body.a7-over-hero.a7-scrolled .site-header>nav a{color:var(--ink,#0d1b2a)}
body.a7-over-hero.a7-scrolled .site-header>nav a:hover{color:var(--accent,#123a63);opacity:1}
body.a7-over-hero.a7-scrolled .site-header .brand__logo{filter:none}
body.a7-over-hero.a7-scrolled .site-header .site-search__ico,body.a7-over-hero.a7-scrolled .site-header .site-search__toggle{color:var(--ink,#0d1b2a)}
body.a7-over-hero.a7-scrolled .site-header .a7-hact,body.a7-over-hero.a7-scrolled .site-header .member-nav-entry{color:var(--ink,#0d1b2a)}
/* ④ 整页入场动效（滚动淡入上移） */
.a7-reveal{opacity:0;transform:translateY(26px);transition:opacity .65s cubic-bezier(.22,.61,.36,1),transform .65s cubic-bezier(.22,.61,.36,1)}
.a7-reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){ .a7-reveal{opacity:1 !important;transform:none !important;transition:none !important} }
/* ⑤ 手机端（基座行为：浅黄顶栏 display:none + 页头常规流 + 右侧「搜索 + 购物车(.mobile-inquiry)」）
      · hero 页（含 .sec-banner-slider）：页头**透明叠在 hero 上**（白 LOGO / 白图标），滚过 → 白底深字；
      · 其余页面：保持基座白底页头；
      · ⛔ 主行图标组 .a7-hacts 手机端**一律隐藏**（购物车已由基座 .mobile-inquiry 提供 ⇒ 否则出现两个车）。 */
@media (max-width:700px){
  .site-header>.a7-hacts{display:none !important}

  body.a7-over-hero header.site-header{position:absolute;top:0;left:0;right:0;z-index:60;background:transparent !important;border-bottom:0 !important}
  body.a7-over-hero.a7-scrolled header.site-header{position:fixed;top:0;background:#fff !important;border-bottom:1px solid var(--b2c-line,rgba(0,0,0,.08)) !important}
  body.a7-over-hero .site-header .mobile-nav-toggle,
  body.a7-over-hero .site-header .site-search__ico,
  body.a7-over-hero .site-header .site-search__toggle,
  body.a7-over-hero .site-header .mobile-inquiry{color:#fff}
  body.a7-over-hero .site-header .brand__logo{filter:brightness(0) invert(1)}
  body.a7-over-hero.a7-scrolled .site-header .mobile-nav-toggle,
  body.a7-over-hero.a7-scrolled .site-header .site-search__ico,
  body.a7-over-hero.a7-scrolled .site-header .site-search__toggle,
  body.a7-over-hero.a7-scrolled .site-header .mobile-inquiry{color:var(--ink,#0d1b2a)}
  body.a7-over-hero.a7-scrolled .site-header .brand__logo{filter:none}

  /* ★★ 抽屉打开时：hero 页的透明页头必须强制**白底深字**（否则抽屉透明、文字压 hero 看不清）。
     特异性 (1,3,1) 高过上面 hero 的 (0,2,2) 与 a7-scrolled 的 (0,3,2)，两条都带 !important 时后者取胜。 */
  body.a7-over-hero #mobileNavOpen:checked ~ .site-header{background:#fff !important;border-bottom:0 !important}
  body.a7-over-hero #mobileNavOpen:checked ~ .site-header .brand__logo{filter:none}
  body.a7-over-hero #mobileNavOpen:checked ~ .site-header>nav a{color:var(--ink,#0d1b2a)}
  body.a7-over-hero #mobileNavOpen:checked ~ .site-header .mobile-nav-close,
  body.a7-over-hero #mobileNavOpen:checked ~ .site-header .a7-hact,
  body.a7-over-hero #mobileNavOpen:checked ~ .site-header .member-nav-entry{color:var(--ink,#0d1b2a)}
}

/* ★ 2026-10-12 A7 修正：右侧工具组定位（搜索 + 图标组同排贴右）+ LOGO 放大（裁切盒，字标 40px） */
@media (min-width:701px){
  body.a7-over-hero .site-header>.site-search{grid-column:3 !important;grid-row:1 !important;justify-self:end !important;margin:0 66px 0 0 !important}
  body.a7-over-hero .site-header>.a7-hacts{grid-column:3 !important;grid-row:1 !important;justify-self:end !important;margin:0 !important}
  /* LOGO 裁切盒（源图 300×300、墨迹 0.39~0.6433 ⇒ 图 156px / 上移 61px / 盒 40px） */
  .site-header .brand--logo{height:40px;overflow:hidden;display:inline-flex;align-items:flex-start}
  .site-header .brand__logo{height:156px;max-height:none;max-width:none;width:auto;margin:-61px 0 0}
}
@media (max-width:700px){
  .site-header .brand--logo{height:26px;overflow:hidden;display:inline-flex;align-items:flex-start}
  .site-header .brand__logo{height:101px;max-height:none !important;max-width:none;width:auto;margin:-39px 0 0}
}

/* ═══════════════════════════════════════════════════════════════════════════
   ★★★ 官网适配层（自动追加 · 幂等 · 勿手改）—— 由 _off_adapt.py 生成
   适用：任何从演示站同步到官网的主题（themes/<dir>/assets/theme.css 末尾）
   两条规则解决「演示站假设」与「官网环境」的差异：
     ① 底部去重：官网 layout 自带默认页脚（.footer-cols / .footer-bottom / padding-top:64px）
        —— 演示站 layout 走 footer_from_section 分支天然不渲染 ⇒ 官网必须显式隐藏（否则两个底部）
     ② LOGO 通用限高：主题的「裁切盒」参数按**演示站方形 logo(300×300)** 计算，
        官网 logo 是**横条 demo-brand(480×120)** ⇒ 直套会撑爆/裁错 ⇒ 官网改用「限高+保持比例」
        （不依赖图片比例 ⇒ 客户换任何 logo 都成立）
   ⛔ 本段只在官网侧；演示站那份覆盖层不追加（演示站行为逐字节不变）。
   ═══════════════════════════════════════════════════════════════════════════ */
body:has(.a4f) footer#contact .footer-cols:not(.a4f__slots){display:none!important}
body:has(.a4f) footer#contact .footer-bottom{display:none!important}
body:has(.a4f) footer#contact{padding-top:0!important}
@media (min-width:701px){
  .site-header .brand--logo{height:auto!important;overflow:visible!important;display:inline-flex!important;align-items:center!important}
  .site-header .brand__logo{max-height:44px!important;max-width:none!important;width:auto!important;height:auto!important;margin:0!important}
}
@media (max-width:700px){
  .site-header .brand--logo{height:auto!important;overflow:visible!important;display:inline-flex!important;align-items:center!important}
  .site-header .brand__logo{max-height:34px!important;max-width:none!important;width:auto!important;height:auto!important;margin:0!important}
}
/* ★ 官网适配层结束 */
