/* ============================================================
   VAVA OUTLET 官网样式
   配色基准：黑白灰 + 桔 #f4792a（2026-11-17 基准文档）
   顶栏尺寸/形式参照 arcteryx.com/us/zh（2026-11-17 实测）：
   - 黑条 40px / 白条 94px（≥768px 视口）
   - 全站容器：max-width 1520px 居中 + 内边距 16px
   - 一级导航：16px / 400 / 字距 normal / 项间距 24px
   ============================================================ */

:root {
  --ink: #111213;        /* 近黑 */
  --ink-2: #4b5563;      /* 深灰 */
  --ink-3: #8b93a1;      /* 中灰 */
  --line: #e5e7eb;       /* 分隔线 */
  --bg-soft: #f5f6f7;    /* 浅灰底 */
  --brand: #f4792a;      /* 品牌桔 */
  --utility-h: 40px;     /* 黑条高（对齐官网） */
  --main-h: 94px;        /* 白条高（对齐官网 ≥768px） */
  --nav-fs: 16px;        /* 一级导航字号（对齐官网实测） */
  --nav-gap: 24px;       /* 一级导航项间距（对齐官网实测） */
  --logo-h: 40px;        /* logo 高 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { text-decoration: none; color: inherit; }

/* ---------------- 全站容器（所有页面统一使用） ----------------
   与官网一致：视口 > 1552px 时左右留白 = (视口-1520)/2 + 16px，
   更窄时左右固定 16px。 */
.container {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------------- 全站顶部 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 黑色占位条：内容待定，先保留高度 */
.utility-bar {
  height: var(--utility-h);
  background: #0b0b0c;
}

/* 白色主导航条：外层通栏，内层用 .container 控制缩进 */
.main-bar {
  position: relative; /* 下拉面板的定位基准 */
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.main-bar-inner {
  height: calc(var(--main-h) - 1px); /* 减去下边框 1px，总高与官网一致 */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand img {
  height: var(--logo-h);
  display: block;
}

/* 一级分类：绝对居中，字距均匀；hover 短下划线（品牌桔点缀） */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}
.main-nav a {
  position: relative;
  font-size: var(--nav-fs);
  letter-spacing: normal;
  color: var(--ink);
  line-height: var(--main-h);
  white-space: nowrap;
  transition: color .12s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(50% - 24px);
  width: 0;
  height: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width .15s ease;
}
.main-nav a:hover::after { width: 100%; }

/* 特卖：品牌桔，强调折扣入口 */
.main-nav a.nav-sale { color: var(--brand); font-weight: 600; }

/* 右侧操作区：搜索胶囊 + 图标 */
.bar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--ink-3);
  font-size: 13px;
  transition: background .12s;
}
.search-box:hover { background: #ececee; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  transition: background .12s;
}
.icon-btn:hover { background: var(--bg-soft); }

/* ---------------- 一级分类悬停下拉（复刻 arcteryx 实测规格） ----------------
   面板：宽 min(1520px, 94.5vw) 水平居中白卡，贴导航栏底；
   展开 = max-height 0→上限，0.2s linear，展开延迟 0.4s（防误触滑过）；
   遮罩 = 全屏 rgba(0,0,0,.8)，0.3s 渐显 */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 90; /* 低于顶栏 100，顶栏保持明亮 */
  pointer-events: none;
}
.nav-backdrop.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-flyout {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s linear 0s;
}
.site-header.has-flyout .nav-flyout {
  max-height: 660px;
  transition: max-height .2s linear .4s;
}
.nf-panel {
  width: min(1520px, 94.5%);
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 40px 48px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 264px;
  gap: 48px;
  align-self: flex-start;
}
/* 链接列：组标题 + 链接列表 */
.nf-columns {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.nf-col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.nf-col ul { list-style: none; }
.nf-col li { margin: 0; }
.nf-col a {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 34px;
  transition: color .12s;
}
.nf-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 右侧宣传位：3:4 竖图占位 + CTA */
.nf-banner { display: block; }

/* ===== 鞋履下拉：三大人群列 + 右侧宣传位 =====
   注意：字号/颜色/行高全部复用全局 .nf-col / .nf-col-title / .nf-col a，
   这里只放排布骨架（grid/flex/竖线/间距），不再单独定义字号和颜色。 */
.nf-panel.nf-panel-shoes { padding: 30px 0 8px 48px; grid-template-columns: 960px 1fr; gap: 0; }
.nf-columns.nf-cols-shoes { grid-column: 1 / 2; grid-template-columns: repeat(3, 320px); gap: 0; }
.nf-cols-shoes .nf-group { padding: 2px 30px 30px 30px; border-right: 1px solid #e7e9ec; }
.nf-group-title { margin-bottom: 14px; }
.nf-subrow { display: flex; gap: 26px; margin-bottom: 14px; }
.nf-subrow:last-child { margin-bottom: 0; }
.nf-subcol { flex: 0 0 69px; min-width: 0; }
.nf-subcol .nf-col-title { margin-bottom: 6px; }
.nf-subcol ul { list-style: none; margin: 0; padding: 0; }
.nf-subcol li a { line-height: 30px; }

/* 鞋履面板宣传位：限高避免撑爆面板，图按比例居中，CTA 完整显示 */
.nf-panel.nf-panel-shoes .nf-banner { display: flex; flex-direction: column; align-items: center; }
.nf-panel.nf-panel-shoes .nf-banner-img { height: 375px; width: 281px; aspect-ratio: 3 / 4; margin-bottom: 12px; }
.nf-panel.nf-panel-shoes .nf-banner-title,
.nf-panel.nf-panel-shoes .nf-banner-cta { width: 281px; align-self: center; }

/* ---------------- 品牌下拉网格（数据来自 brandmenu 接口） ----------------
   一级 = 品牌（LOGO + 品牌名）；灰色细线下方 = 该品牌二级分类 + 在售款数 */
.nf-panel.bm-panel { display: block; padding: 24px 32px 32px; }
.nf-columns.bm-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  margin-bottom: -20px;   /* 面板底部留白整体上移 20px（顶部/LOGO 不动） */
}
.bm-logo {
  position: relative; width: 40px; height: 40px;
  display: grid; place-items: center; overflow: hidden;
  transition: transform .24s cubic-bezier(.2,.7,.3,1);
}
.bm-logo i {
  display: none; /* 占位字母默认隐藏：LOGO 已透明化，否则会从透明区透出来；仅图片失败时由 JS 显示 */
  font-style: normal; font-size: 14px; font-weight: 700;
  color: #666; letter-spacing: 1px;
}
/* 品牌 LOGO 真图：服务器现成素材 /brands/{品牌短名小写}.png，缺失时露出占位字 */
.bm-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
}
.bm-name {
  height: 44px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  text-align: center; overflow: hidden;
}
.bm-cn { font-size: 14px; line-height: 18px; color: #1a1a1a; transition: color .18s ease, font-weight .18s ease; }
.bm-en { font-size: 10px; line-height: 12px; color: #444; letter-spacing: .2px; }
.bm-empty {
  grid-column: 1 / -1; padding: 40px 0; text-align: center;
  font-size: 14px; color: var(--ink-3);
}

.nf-banner-img {
  aspect-ratio: 3 / 4;
  width: 100%;
  background: var(--bg-soft);
  border: 1px dashed #cbd5e1;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 12px;
}
.nf-banner-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.nf-banner-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  transition: background .12s, color .12s;
}
.nf-banner:hover .nf-banner-cta { background: var(--ink); color: #fff; }
/* 激活分类的下划线保持 */
.main-nav a.is-active::after,
.main-nav a.is-current::after { width: 100%; }

/* ---------------- 首屏占位 ---------------- */
.page-placeholder {
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
}
.page-placeholder p {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 2px;
}

/* ---------------- 响应式 ---------------- */

/* 中等宽度：导航收一点间距，避免挤压两侧 */
@media (max-width: 1180px) {
  :root { --nav-gap: 16px; }
}

/* 更窄：logo 与导航同步收缩 */
@media (max-width: 1024px) {
  :root { --nav-fs: 15px; --logo-h: 34px; }
  .bar-actions { gap: 10px; }
  .search-box { height: 32px; padding: 0 12px; }
  .icon-btn { width: 32px; height: 32px; }
}

/* 窄屏（平板/手机横竖）：切换紧凑模式 */
@media (max-width: 860px) {
  :root { --utility-h: 32px; --logo-h: 26px; --nav-fs: 14px; --nav-gap: 16px; }
  .nav-flyout { display: none; }
  .main-bar-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand actions" "nav nav";
    row-gap: 3px;
    height: auto;
    padding-top: 9px;
    padding-bottom: 5px;
  }
  .brand { grid-area: brand; }
  .bar-actions { grid-area: actions; }
  .main-nav { grid-area: nav; gap: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { line-height: 28px; }
  .main-nav a::after { bottom: 3px; }
  .search-box span { display: none; }
  .search-box { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; }
  .icon-btn { width: 32px; height: 32px; }
}

/* 小屏手机：再收一档 */
@media (max-width: 600px) {
  :root { --utility-h: 28px; --logo-h: 22px; }
  .main-nav { gap: 16px; }
  .icon-btn { width: 30px; height: 30px; }
}

/* ==== 非品牌页卡统一 960 宽居中（20261121）==== */
.nf-panel.nf-panel-shoes { height: 442px !important; }
.nf-panel:not(.nf-panel-shoes):not(.bm-panel) { width: 960px !important; height: 442px !important; }

/* ==== nav dropdown styles (merged from per-page inline 20261121) ==== */
  /* 20261120fs：二级分类整体缩30%，人群框架收窄，宽度让给广告位；二级标题15px，介于一级16px与链接14px之间 */
  .nf-subcol { flex: 0 0 48px !important; }
  .nf-subrow { gap: 18px !important; }
  .nf-columns.nf-cols-shoes { grid-template-columns: repeat(3, 220px) !important; }
  .nf-panel.nf-panel-shoes { width: 960px !important; grid-template-columns: 660px 1fr !important; padding-left: 24px !important; }
  .nf-panel.nf-panel-shoes .nf-banner-img { width: 210px !important; height: 280px !important; }
  .nf-subcol .nf-col-title { font-size: 15px !important; }
  /* 20261120slide：二级分类链接 hover 文字右滑（拷自品牌下拉 bm-cats） */
  .nf-subcol li a { position: relative; transition: color .16s ease, padding-left .18s ease; }
  .nf-subcol li a::before { content:''; position:absolute; left:0; top:50%; width:2px; height:0; background:var(--ink); transform:translateY(-50%); transition:height .18s ease; }
  .nf-subcol li a:hover { color:#000 !important; padding-left:10px !important; text-decoration:none !important; }
  .nf-subcol li a:hover::before { height:14px; }
  /* 20261120shoemain：人群大标题链接也加同款滑动特效 */
  .nf-group-title a.nf-group-link { position:relative; display:inline-block; font-size:16px !important; font-weight:600 !important; color:var(--ink) !important; transition:color .16s ease, padding-left .18s ease; }
  .nf-group-title a.nf-group-link::before { content:''; position:absolute; left:0; top:50%; width:2px; height:0; background:var(--ink); transform:translateY(-50%); transition:height .18s ease; }
  .nf-group-title a.nf-group-link:hover { color:#000; padding-left:10px; text-decoration:none; }
  .nf-group-title a.nf-group-link:hover::before { height:16px; }
  /* 去掉广告位下方的标题与按钮，页卡整体上移 */
  .nf-banner .nf-banner-title, .nf-banner .nf-banner-cta { display:none !important; }
  .nf-panel.nf-panel-shoes { padding-top:18px !important; padding-bottom:6px !important; }

/* ==== 品牌页卡：纯 LOGO 墙，960 宽（20261121） ==== */
.nf-panel.bm-panel { width: 960px !important; padding: 0; }
.nf-columns.bm-grid.bm-wall {
  position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; margin-bottom: 0;
}
.bm-wall-item {
  position: relative; min-height: 220px;
  border-right: 1px solid #ececec; border-bottom: 1px solid #ececec;
  transition: background-color .18s ease;
}
.bm-wall-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 220px; padding: 10px 3px 8px;
  text-decoration: none; color: inherit;
}
.bm-wall-item:nth-child(8n) { border-right: 0; }
.bm-wall-item:nth-last-child(-n+8) { border-bottom: 0; }
.bm-wall-item:hover { background: #f7f7f7; }
.bm-wall-item .bm-logo { width: 40px; height: 40px; }
.bm-wall-item .bm-name { height: auto; }
.bm-wall-item:hover .bm-cn { color: #000; font-weight: 700; }
.bm-wall-item:hover .bm-logo { transform: translateY(-3px); }

/* 品牌 LOGO 墙：hover 弹出二级分类，点击直达 */
@keyframes bmDrawerDown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bmDrawerUp   { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.bm-hover-cats {
  display: none; position: absolute; left: -1px; width: calc(100% + 2px); height: 100%;
  z-index: 40; background: #1f1f1f; color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.38);
  padding: 8px 6px; box-sizing: border-box; flex-direction: column; overflow: hidden;
}
.bm-wall-item:nth-child(-n+8):hover .bm-hover-cats { display: flex; top: 100%; animation: bmDrawerDown .30s cubic-bezier(.22,.61,.36,1) both; }
.bm-wall-item:nth-child(n+9):hover .bm-hover-cats { display: flex; bottom: 100%; animation: bmDrawerUp .30s cubic-bezier(.22,.61,.36,1) both; }
.bm-hover-cats ul { flex: 1 1 auto; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.bm-hover-cats a {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 3px 6px; font-size: 12px; color: #fff; text-decoration: none;
  background: transparent; border: 0; border-radius: 0; white-space: nowrap;
  transition: background .14s ease;
}
.bm-hover-cats a:hover { background: #3a3a3a; color: #fff; }
.bm-hover-cats em { font-style: normal; color: #8f8f8f; font-size: 11px; }
.bm-hover-cats a:hover em { color: #ccc; }
/* unclip hover flyout for last-row brand cats (20261121) */
.site-header.has-flyout .nav-flyout:hover { overflow: visible; }

/* 会员中心入口（20261121 member） */
.bar-actions .mem-entry { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.bar-actions .mem-entry:hover { color: var(--brand); }
.mem-entry-name { font-size: 12px; color: var(--ink-2); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-actions .mem-entry:hover .mem-entry-name { color: var(--brand); }

/* ==== 20261126 brandhover：品牌页卡去掉 hover 头部，二级分类贴顶上移 ==== */
.site-header .bm-hover-cats { height: auto !important; padding: 10px 6px 8px !important; }
.bm-hover-cats ul { flex: 0 0 auto !important; gap: 2px !important; }

/* ==== 20261126 brand2col：分类列表一行两列，"全部 N 类"跨整行 ==== */
.bm-hover-cats ul { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 2px 4px !important; }
.bm-hover-cats a { justify-content: flex-start !important; padding: 3px 4px !important; }
.bm-hover-cats .bm-hcat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==== 20261126 brand350：品牌墙总高对齐儿童/成人面板 350px（两行各 175px） ==== */
.bm-wall-item { min-height: 175px !important; }
.bm-wall-main { min-height: 175px !important; padding: 6px 3px 5px !important; }

/* 20261127cart1 顶栏购物车角标 */
.cart-entry { position: relative; display: inline-flex; align-items: center; }
.cart-badge {
  position: absolute; top: -3px; right: -7px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px;
  background: #b8322c; color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
}
/* —— 全局铁律（20261128）：NAV 上边距 0 / FOOTER 下边距 0，全站统一，任何页面不得单独覆盖 —— */
.site-header{margin-top:0 !important;}
.site-footer{margin-bottom:0 !important;}
/* —— 全局铁律（20261128）续：FOOTER 钉底，全站统一 —— */
body{min-height:100vh;display:flex;flex-direction:column;}
body>main{flex:1 0 auto;}
.site-footer{margin-top:auto !important;}

/* —— 全局铁律（20261128）续2：页头账户槽样式全局化 —— */
/* 账户槽随页头全站注入，样式必须全局（原在 member.css，非会员页无样式导致字号 16px 散排）*/
.mem-acct-slot { display: inline-flex; align-items: center; }
.mem-acct { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; white-space: nowrap; transition: color .16s; }
.mem-acct:hover { color: var(--brand); }
.mem-acct svg { flex: none; }
