@charset "utf-8";

/* =========================
全局变量与基础重置开始
========================= */
:root {
  /* 品牌色 */
  --se-huang: #f8d300;        /* 品牌黄 */
  --se-hei: #141517;          /* 品牌黑 */
  --se-bai: #ffffff;

  /* 中性色 */
  --se-huidi: #f2f2f2;        /* 浅灰底（当前项） */
  --se-biankuang: #dcdcd7;    /* 分隔线 */
  --se-zhanwei: #757575;      /* 输入框占位文字 */
  --se-footer-wen: #b9bbbe;   /* 页脚正文链接 */
  --se-footer-hui: #86888c;   /* 页脚简介 */
  --se-footer-xian: #292b2e;  /* 页脚分隔线 */
  --se-footer-banquan: #626469;

  /* 尺寸 */
  --chi-cebianlan: 280px;     /* 侧边栏 / logo 块宽度 */
  --chi-toubu-gao: 118px;     /* 头部高度 */
  --chi-daohang-gao: 55px;    /* 主导航高度 */
  --chi-neibianju: 40px;      /* 头部右内边距 */
  --chi-toubu-jincou: 74px;   /* 头部吸顶后的紧凑高度 */
  --chi-toubu-shiji: 118px;   /* 头部实际高度，由 main.js 实时写入，供导航/侧栏定位 */

  /* 层级：头部 > 导航 > 侧栏 */
  --ceng-toubu: 120;
  --ceng-daohang: 110;
  --ceng-cebianlan: 10;

  /* 字体 */
  --zi-zu: Arial, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 过渡 */
  --guodu: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--zi-zu);
  color: var(--se-hei);
  background: var(--se-bai);
  line-height: 1.5;
}

img { border: 0; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }

/* 商品问号：提示框挂到 body，避免商品卡片动效和容器裁切遮挡。 */
.product-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 4px;
  width: 18px;
  height: 18px;
  color: #757575;
  font-size: 13px;
  line-height: 1;
  text-transform: none;
  cursor: help;
}
.product-help:hover { color: #141517; }
.product-help:focus-visible { outline: 2px solid #8a7500; outline-offset: 2px; border-radius: 50%; }
.product-help-tooltip {
  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  max-height: min(360px, 50vh);
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 4px;
  background: #141517;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  text-transform: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.product-help-tooltip[hidden] { display: none; }

/* AOS 兜底：脚本缺失或用户要求减少动效时，取消 aos.css 的初始隐藏 */
.wu-aos [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* =========================
全局变量与基础重置结束
========================= */


/* =========================
头部 Header 开始
========================= */
.toubu {
  position: sticky;
  top: 0;
  z-index: var(--ceng-toubu);
  background: var(--se-bai);
  padding-right: var(--chi-neibianju);
}

.toubu-neirong {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--chi-toubu-gao);
  transition: height var(--guodu);
}

/* --- 头部 Logo（黑底块） --- */
.toubu-logo {
  flex: 0 0 var(--chi-cebianlan);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: var(--chi-cebianlan);
  height: var(--chi-toubu-gao);
  background: var(--se-hei);
  overflow: hidden;
  transition: opacity var(--guodu), height var(--guodu);
}

.toubu-logo:hover { opacity: 0.86; }

.toubu-logo-tupian {
  display: block;
  width: 165px;
  height: 68px;
  max-width: calc(100% - 32px);
  object-fit: contain;
  transition: width var(--guodu), height var(--guodu);
}

.toubu-logo-biaozhi {
  flex-shrink: 0;
  display: block;
  width: 64px;
  height: 61px;
  transition: width var(--guodu), height var(--guodu);
}

.toubu-logo-biaozhi img {
  display: block;
  width: 64px;
  height: 61px;
  object-fit: contain;
}

.toubu-logo-zibiao {
  flex-shrink: 0;
  display: block;
  width: 127px;
  height: 46px;
  transition: width var(--guodu), height var(--guodu);
}

.toubu-logo-zibiao img {
  display: block;
  width: 127px;
  height: 46px;
  object-fit: contain;
}

/* --- 头部搜索表单（设计稿中相对整行居中） --- */
.toubu-sousuo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: stretch;
  height: 47px;
  border: 2px solid var(--se-hei);
  transition: box-shadow var(--guodu), height var(--guodu);
}

.toubu-sousuo:focus-within { box-shadow: 0 0 0 3px rgba(248, 211, 0, 0.55); }

.toubu-sousuo-shuru {
  width: 490px;
  padding: 0 17px;
  border: 0;
  outline: 0;
  font-size: 13px;
  color: var(--se-hei);
  background: var(--se-bai);
}

.toubu-sousuo-shuru::placeholder { color: var(--se-zhanwei); }

.toubu-sousuo-anniu {
  flex: 0 0 116px;
  width: 116px;
  background: var(--se-hei);
  color: var(--se-bai);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  transition: background var(--guodu), color var(--guodu);
}

.toubu-sousuo-anniu:hover {
  background: var(--se-huang);
  color: var(--se-hei);
}

/* --- 头部右侧服务信息 --- */
.toubu-fuwu {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 35px;
  margin-left: auto;
}

.toubu-fuwu-xiang {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-left: 18px;
  border-left: 1px solid var(--se-biankuang);
}

.toubu-fuwu-biaoti {
  font-size: 13px;
  font-weight: 700;
  line-height: 18.85px;
  white-space: nowrap;
  transition: color var(--guodu);
}

.toubu-fuwu-miaoshu {
  font-size: 11px;
  line-height: 15.95px;
  white-space: nowrap;
}

a.toubu-fuwu-xiang:hover .toubu-fuwu-biaoti { color: #8a7500; }

/* --- 购物袋 --- */
.toubu-gouwudai {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding-left: 18px;
  border-left: 1px solid var(--se-biankuang);
  font-size: 12px;
  color: #101114;
}

.toubu-gouwudai-shuliang {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--se-huang);
  font-size: 10px;
  font-weight: 700;
  color: var(--se-hei);
  transition: transform var(--guodu);
}

.toubu-gouwudai:hover .toubu-gouwudai-shuliang { transform: scale(1.15); }

/* 加入购物袋：商品缩略图从产品卡飞向 Bag（起止位置由 cart-store.js 计算） */
.gouwu-feixing {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  overflow: hidden;
  border: 2px solid var(--se-huang);
  border-radius: 50%;
  background: var(--se-bai);
  box-shadow: 0 6px 18px rgba(20, 21, 23, 0.28);
  pointer-events: none;
  will-change: transform, opacity;
}

.gouwu-feixing img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 商品「落进」Bag 后：整个 Bag 入口放大再缩回，数字徽标弹得更明显 */
.toubu-gouwudai--tantiao { animation: gouwudai-tantiao 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.toubu-gouwudai--tantiao .toubu-gouwudai-shuliang { animation: gouwudai-shuliang-tantiao 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes gouwudai-tantiao {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

@keyframes gouwudai-shuliang-tantiao {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.7); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .toubu-gouwudai--tantiao,
  .toubu-gouwudai--tantiao .toubu-gouwudai-shuliang { animation: none; }
}

/* --- 移动端汉堡按钮（PC 隐藏） --- */
.toubu-hanbao {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 12px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--se-hei);
  transition: color var(--guodu);
}

.toubu-hanbao:hover { color: #8a7500; }
/* =========================
头部 Header 结束
========================= */


/* =========================
头部吸顶紧凑态开始
页面下滚后头部压缩，减少固定区对可视高度的占用
========================= */
body.toubu-yigundong { --chi-toubu-gao: var(--chi-toubu-jincou); }

body.toubu-yigundong .toubu-logo-biaozhi,
body.toubu-yigundong .toubu-logo-biaozhi img { width: 42px; height: 40px; }

body.toubu-yigundong .toubu-logo-zibiao,
body.toubu-yigundong .toubu-logo-zibiao img { width: 84px; height: 30px; }

body.toubu-yigundong .toubu-logo { gap: 10px; }

body.toubu-yigundong .toubu-logo-tupian { width: 127px; height: 52px; }

body.toubu-yigundong .toubu-sousuo { height: 40px; }

body.toubu-yigundong .toubu-fuwu-miaoshu { display: none; }

/* 吸顶后补一道细分隔线，与下方内容拉开层次 */
body.toubu-yigundong .toubu { box-shadow: 0 1px 0 var(--se-biankuang); }
/* =========================
头部吸顶紧凑态结束
========================= */


/* =========================
主导航 Navigation 开始
========================= */
.daohang {
  position: sticky;
  /* 头部实际高度由 main.js 写入，头部收缩时导航自动跟随上移 */
  top: var(--chi-toubu-shiji);
  z-index: var(--ceng-daohang);
  display: flex;
  gap: 30px;
  height: var(--chi-daohang-gao);
  padding-right: var(--chi-neibianju);
  /* 设计稿为 drop-shadow：黄色下沿只跟随两个色块，中间留白处不着色 */
  filter: drop-shadow(0 3px 0 var(--se-huang));
}

/* 左侧「全部分类」黄块 */
.daohang-fenlei {
  flex: 0 0 var(--chi-cebianlan);
  display: flex;
  align-items: center;
  width: var(--chi-cebianlan);
  padding: 0 23px;
  background: var(--se-huang);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.96px;
  transition: background var(--guodu);
}

.daohang-fenlei:hover { background: #e6c400; }

.daohang-fenlei-tubiao {
  display: none;
  margin-left: auto;
  transition: transform var(--guodu);
}

/* 右侧黑色导航条 */
.daohang-tiao {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding-right: 64px;
  background: var(--se-hei);
}

.daohang-caidan {
  display: flex;
  align-items: stretch;
  height: var(--chi-daohang-gao);
}

.daohang-caidan-xiang { display: flex; }

.daohang-caidan-lianjie {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  color: var(--se-bai);
  white-space: nowrap;
  transition: color var(--guodu), background var(--guodu);
}

.daohang-caidan-lianjie--shouzimu { text-transform: capitalize; }

/* 悬停时黄色下划线由中间向两侧展开 */
.daohang-caidan-lianjie::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--se-huang);
  transform: translateX(-50%);
  transition: width var(--guodu);
}

.daohang-caidan-lianjie:hover { background: rgba(255, 255, 255, 0.06); }
.daohang-caidan-lianjie:hover::after { width: 100%; }

/* 当前所在页：黄色下划线常驻。给对应页面的菜单项加这个修饰符即可，
   本规则为新增，未被任何已完成页面使用，不改变既有页面表现 */
.daohang-caidan-lianjie--dangqian { color: var(--se-huang); }
.daohang-caidan-lianjie--dangqian::after { width: 100%; }

.daohang-tuiguang {
  flex-shrink: 0;
  margin-left: 24px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: var(--se-huang);
  white-space: nowrap;
  transition: transform var(--guodu), opacity var(--guodu);
}

.daohang-tuiguang:hover { transform: translateX(4px); opacity: 0.85; }

/* 头部与内容之间的 20px 留白（设计稿 68:2800） */
.toubu-jiange {
  height: 20px;
  background: var(--se-bai);
}
/* =========================
主导航 Navigation 结束
========================= */


/* =========================
侧边栏 Sidebar 开始
========================= */
.zhuti-buju {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 0 var(--chi-neibianju) 60px 0;
}

.cebianlan {
  flex: 0 0 var(--chi-cebianlan);
  width: var(--chi-cebianlan);
  /* 跟随页面吸顶：顶部让出「头部 + 导航 + 20px 留白」 */
  position: sticky;
  top: calc(var(--chi-toubu-shiji) + var(--chi-daohang-gao) + 20px);
  z-index: var(--ceng-cebianlan);
  /* 内容高于可视区时自身滚动，不裁切也不顶开页面 */
  max-height: calc(100vh - var(--chi-toubu-shiji) - var(--chi-daohang-gao) - 40px);
  overflow-y: auto;
  transition: max-height var(--guodu);
  scrollbar-width: thin;
  scrollbar-color: var(--se-biankuang) transparent;
}

.cebianlan::-webkit-scrollbar { width: 6px; }
.cebianlan::-webkit-scrollbar-thumb { background: var(--se-biankuang); }
.cebianlan::-webkit-scrollbar-track { background: transparent; }

/* 分类区块：可整块复制新增分类（见 process.md 说明） */
.cebianlan-fenlei {
  border-top: 1px solid var(--se-biankuang);
  border-right: 1px solid var(--se-biankuang);
  border-bottom: 1px solid var(--se-biankuang);
}

/* --- 分组标题（黑底 + 右侧图标） --- */
.cebianlan-fenzu-biaoti {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 48px 15px 18px;
  background: var(--se-hei);
  color: var(--se-bai);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.96px;
  text-align: left;
  text-transform: uppercase;
  transition: background var(--guodu);
}

.cebianlan-fenzu-biaoti:hover { background: #202226; }

.cebianlan-fenzu-tubiao {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  transition: transform var(--guodu);
}

.cebianlan-fenzu-tubiao--yaoshi { width: 16px; height: 20px; }
.cebianlan-fenzu-tubiao--yaoshi img { width: 16px; height: 20px; object-fit: contain; display: block; }

.cebianlan-fenzu-tubiao--mima { width: 17px; height: 17px; }
.cebianlan-fenzu-tubiao--mima img { width: 17px; height: 17px; object-fit: contain; display: block; }

/* 折叠态：图标轻微缩小提示 */
.cebianlan-fenzu--shouqi .cebianlan-fenzu-tubiao { transform: translateY(-50%) scale(0.86); opacity: 0.7; }

/* --- 分组内的分类链接 --- */
.cebianlan-fenzu-liebiao {
  overflow: hidden;
  max-height: 1000px;
  transition: max-height var(--guodu);
}

.cebianlan-fenzu--shouqi .cebianlan-fenzu-liebiao { max-height: 0; }

.cebianlan-lianjie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--se-biankuang);
  font-size: 12px;
  text-transform: uppercase;
  transition: background var(--guodu), padding-left var(--guodu), color var(--guodu);
}

.cebianlan-fenzu-xiang:last-child .cebianlan-lianjie { border-bottom: 0; }

.cebianlan-lianjie:hover {
  background: var(--se-huang);
  padding-left: 24px;
}

.cebianlan-lianjie-jiantou {
  flex-shrink: 0;
  font-size: 12px;
  transition: transform var(--guodu);
}

.cebianlan-lianjie:hover .cebianlan-lianjie-jiantou { transform: translateX(4px); }

/* 当前所在分类 */
.cebianlan-lianjie--dangqian { background: var(--se-huidi); }

/* --- 侧边栏底部推广卡片 --- */
.cebianlan-tuiguang {
  margin-top: 18px;
  padding: 22px 20px;
  background: var(--se-huang);
}

.cebianlan-tuiguang-biaoqian {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.cebianlan-tuiguang-biaoti {
  padding-top: 11px;
  max-width: 240px;
  font-size: 28px;
  font-weight: 700;
  line-height: 26.6px;
  letter-spacing: -1.4px;
}

.cebianlan-tuiguang-miaoshu {
  padding: 12px 0;
  max-width: 240px;
  font-size: 12px;
  line-height: 18px;
}

.cebianlan-tuiguang-anniu {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  text-decoration: underline;
  transition: transform var(--guodu), opacity var(--guodu);
}

.cebianlan-tuiguang-anniu:hover { transform: translateX(5px); opacity: 0.75; }

/* 主体右侧内容占位区（后续页面在此填充） */
.zhuti-neirong {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 420px;
}
/* =========================
侧边栏 Sidebar 结束
========================= */


/* =========================
页脚 Footer 开始
========================= */
.footer {
  padding: 68px 120px 30px;
  background: var(--se-hei);
  overflow: hidden;
}

.footer-shangbu {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

/* --- 页脚品牌区 --- */
.footer-pinpai { width: 310px; flex-shrink: 0; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  transition: opacity var(--guodu);
}

.footer-logo:hover { opacity: 0.82; }

.footer-logo-tupian { display: block; width: 131px; height: 39px; object-fit: contain; object-position: left center; }

.footer-logo-biaozhi { display: block; width: 41px; height: 39px; }
.footer-logo-biaozhi img { display: block; width: 41px; height: 39px; object-fit: contain; }

.footer-logo-zibiao { display: block; width: 81px; height: 29px; }
.footer-logo-zibiao img { display: block; width: 81px; height: 29px; object-fit: contain; }

.footer-jianjie {
  padding: 17px 0 12px;
  max-width: 310px;
  font-size: 12px;
  line-height: 19.8px;
  color: var(--se-footer-hui);
}

/* --- 页脚导航分组 --- */
.footer-daohang {
  display: flex;
  gap: 120px;
  flex-shrink: 0;
}

.footer-daohang-biaoti {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.53px;
  text-transform: uppercase;
  color: var(--se-huang);
}

.footer-daohang-liebiao { padding-top: 19px; }

.footer-daohang-xiang + .footer-daohang-xiang { padding-top: 11px; }

.footer-daohang-lianjie {
  display: inline-block;
  font-size: 12px;
  color: var(--se-footer-wen);
  white-space: nowrap;
  transition: color var(--guodu), transform var(--guodu);
}

.footer-daohang-lianjie:hover {
  color: var(--se-huang);
  transform: translateX(4px);
}

/* --- 页脚版权 --- */
.footer-banquan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 95px;
  padding-top: 23px;
  border-top: 1px solid var(--se-footer-xian);
}

.footer-banquan-wenzi {
  font-size: 9px;
  letter-spacing: 1.17px;
  text-transform: uppercase;
  color: var(--se-footer-banquan);
}
/* =========================
页脚 Footer 结束
========================= */


/* =========================
响应式：平板（≤1440px / ≤1200px）开始
========================= */
@media (max-width: 1440px) {
  .toubu-sousuo-shuru { width: 360px; }
  .daohang-caidan-lianjie { padding: 0 16px; }
  .daohang-tiao { padding-right: 32px; }
  .footer { padding: 60px 60px 30px; }
  .footer-daohang { gap: 60px; }
}

/* 1441–1548px：导航项内边距一恢复成 25px，整条导航的自然宽度就要 1484px，
   加上 .daohang-tiao 的 64px 右留白共需 1548px；不做处理时
   1441–1483px 会把 .daohang-tuiguang 挤出视口（整页横向滚动），
   1484–1548px 则会吃掉右留白、推广文案贴边。
   此区间用一档过渡内边距（20px / 48px），≥1549px 才回到设计稿数值。
   用 min-width 限定下界，避免与上面的 ≤1440px 规则产生先后顺序依赖。 */
@media (min-width: 1441px) and (max-width: 1548px) {
  .daohang-caidan-lianjie { padding: 0 20px; }
  .daohang-tiao { padding-right: 48px; }
}

@media (max-width: 1366px) {
  /* 主菜单与推广文案已无法共存，优先保留主菜单 */
  .daohang-tuiguang { display: none; }
}

@media (max-width: 1200px) {
  :root { --chi-cebianlan: 240px; }

  /* 搜索框改为流式，不再绝对居中 */
  .toubu-sousuo {
    position: static;
    transform: none;
    flex: 1 1 auto;
    margin: 0 24px;
    min-width: 0;
  }

  .toubu-sousuo-shuru { width: 100%; min-width: 0; }
  .toubu-fuwu { margin-left: 0; }
  .toubu-fuwu-xiang--zhichi { display: none; }

  .daohang-caidan-lianjie { padding: 0 14px; font-size: 11px; }

  .footer-daohang { gap: 40px; }
}
/* =========================
响应式：平板结束
========================= */


/* =========================
响应式：中屏与手机（≤992px / ≤768px）开始
========================= */
@media (max-width: 992px) {
  /* 侧边栏移至内容上方，横向铺满 */
  .zhuti-buju {
    flex-direction: column;
    padding: 0 20px 40px;
  }

  .cebianlan {
    flex: none;
    width: 100%;
    /* 侧栏已移到内容上方，不再吸顶 */
    position: static;
    max-height: none;
    overflow: visible;
  }
  .cebianlan-fenlei { border-left: 1px solid var(--se-biankuang); }
  .zhuti-neirong { width: 100%; }

  .footer-shangbu { flex-direction: column; gap: 40px; }
  .footer-daohang { flex-wrap: wrap; gap: 40px 60px; }
  .footer-banquan { margin-top: 50px; }

  /* 汉堡按钮接管导航 */
  .toubu-hanbao { display: flex; }

  /* 主导航：黄块变为菜单开关，黑条改为下拉面板；保留吸顶 */
  .daohang {
    position: sticky;
    flex-direction: column;
    gap: 0;
    height: auto;
    padding-right: 0;
    filter: none;
    box-shadow: 0 3px 0 var(--se-huang);
  }

  .daohang-fenlei {
    flex: none;
    width: 100%;
    height: 48px;
  }

  .daohang-fenlei-tubiao { display: block; }

  .daohang--zhankai .daohang-fenlei-tubiao { transform: rotate(180deg); }

  .daohang-tiao {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding-right: 0;
    transition: max-height var(--guodu);
  }

  .daohang--zhankai .daohang-tiao { max-height: 520px; }

  .daohang-caidan {
    flex-direction: column;
    height: auto;
  }

  .daohang-caidan-lianjie {
    width: 100%;
    height: 46px;
    padding: 0 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
  }

  .daohang-caidan-lianjie::after { display: none; }
}

@media (max-width: 768px) {
  /* 头部换行后高度过大，不再吸顶；导航黄块本身就是菜单开关，吸顶后仍可展开菜单 */
  .toubu {
    position: static;
    padding-right: 0;
  }

  .daohang { top: 0; }

  .toubu-neirong {
    flex-wrap: wrap;
    height: auto;
    padding: 0 0 14px;
  }

  .toubu-logo {
    flex: 0 0 auto;
    width: 190px;
    height: 74px;
    gap: 10px;
  }

  body.toubu-yigundong .toubu-fuwu-miaoshu { display: block; }

  .toubu-logo-tupian,
  body.toubu-yigundong .toubu-logo-tupian { width: 127px; height: 52px; }

  .toubu-logo-biaozhi, .toubu-logo-biaozhi img { width: 32px; height: 31px; }
  .toubu-logo-zibiao, .toubu-logo-zibiao img { width: 86px; height: 31px; }

  /* 搜索框换行占满整行（扣除左右外边距，避免撑出横向滚动） */
  .toubu-sousuo {
    order: 3;
    flex: 1 1 calc(100% - 28px);
    max-width: calc(100% - 28px);
    /* 与上方 Logo 拉开垂直间距，不再紧贴 */
    margin: 14px 14px 0;
    height: 42px;
  }

  .toubu-sousuo-anniu { flex-basis: 88px; width: 88px; }

  .toubu-fuwu { display: none; }

  .toubu-hanbao { margin-left: auto; margin-right: 10px; }

  .cebianlan-tuiguang-biaoti { font-size: 24px; line-height: 24px; }

  .footer { padding: 46px 20px 26px; }
  .footer-daohang { gap: 30px 40px; }
  .footer-pinpai, .footer-jianjie { width: 100%; max-width: 100%; }

  .footer-banquan {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 36px;
  }
}
/* =========================
响应式：中屏与手机结束
========================= */

/* =========================
通用分页 / 提示页开始
（产品列表、目录列表、视频列表、搜索结果共用；提示页供 msg.html / 404.html 使用）
========================= */
.gongyong-fenye {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 40px;
}

.gongyong-fenye .pagination {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gongyong-fenye .pagination a,
.gongyong-fenye .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  background: var(--se-bai);
  font-size: 14px;
  color: #666;
  transition: border-color var(--guodu), background var(--guodu), color var(--guodu), transform var(--guodu);
}

.gongyong-fenye .pagination a:hover,
.gongyong-fenye .pagination a:focus-visible,
.gongyong-fenye .pagination .active a,
.gongyong-fenye .pagination .active span {
  border-color: var(--se-hei);
  background: var(--se-hei);
  color: var(--se-bai);
  transform: translateY(-2px);
}

/* 搜索结果页副标题 */
.xinwen-zhongxin-fubiaoti {
  padding-top: 10px;
  font-size: 15px;
  color: #666;
}

/* 提示页 / 404：不带左侧栏的单栏布局 */
.zhuti-buju--danlan { padding-left: var(--chi-neibianju); }

.tishi-ye {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 420px;
  padding: 80px 20px;
  text-align: center;
}

.tishi-ye-daima {
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--se-huang);
}

.tishi-ye-tubiao { font-size: 56px; line-height: 1; color: var(--se-huang); }
.tishi-ye-tubiao--cuowu { color: #d0342c; }

.tishi-ye-biaoti {
  max-width: 720px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.tishi-ye-miaoshu-wenzi {
  max-width: 640px;
  font-size: 15px;
  color: #666;
}

.tishi-ye-miaoshu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 10px;
}

.tishi-ye-anniu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border-radius: 25px;
  background: var(--se-hei);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--se-bai);
  transition: background var(--guodu), transform var(--guodu);
}

.tishi-ye-anniu:hover,
.tishi-ye-anniu:focus-visible { background: var(--se-huang); color: var(--se-hei); transform: translateY(-2px); }

.tishi-ye-lianjie {
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid currentColor;
  transition: color var(--guodu);
}

.tishi-ye-lianjie:hover, .tishi-ye-lianjie:focus-visible { color: var(--se-hei); }

@media (max-width: 1024px) {
  .gongyong-fenye { gap: 12px; padding-top: 32px; }
  .gongyong-fenye .pagination { gap: 12px; }
  .gongyong-fenye .pagination a,
  .gongyong-fenye .pagination span { min-width: 42px; height: 42px; padding: 0 11px; }
  .zhuti-buju--danlan { padding-left: 20px; padding-right: 20px; }
  .tishi-ye-daima { font-size: 72px; }
  .tishi-ye-biaoti { font-size: 22px; }
}
/* =========================
通用分页 / 提示页结束
========================= */

/* =========================
表单提交结果反馈（联系我们 / 询价购物袋 / Your Logo 三个表单共用）开始
用 p.fankui-kapian 提高选择器权重，覆盖各页面 CSS 里原来的 11px 纯文字样式。
========================= */
p.fankui-kapian {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 4px solid currentColor;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  animation: fankui-chuxian 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 没有文字时不占位，避免出现空色块 */
p.fankui-kapian:empty { display: none; }

p.fankui-kapian::before {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

p.fankui-kapian--chenggong {
  background: #eaf6ec;
  color: #1e7b34;
}
p.fankui-kapian--chenggong::before { content: "✓"; }

p.fankui-kapian--cuowu {
  background: #fdecec;
  color: #b3261e;
}
p.fankui-kapian--cuowu::before { content: "!"; }

p.fankui-kapian--jinxing {
  background: #f1f3f4;
  color: #5f6368;
}
p.fankui-kapian--jinxing::before { content: "⋯"; }

@keyframes fankui-chuxian {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 提交按钮的「已发送」完成态：保持禁用几秒，兼作二次确认与防重复提交 */
.biaodan-yifasong,
.biaodan-yifasong:disabled {
  background: #1e7b34 !important;
  border-color: #1e7b34 !important;
  color: #fff !important;
  opacity: 1 !important;
  cursor: default !important;
  transform: none !important;
}

@media (max-width: 768px) {
  p.fankui-kapian { padding: 12px 14px; font-size: 13px; }
}
/* =========================
表单提交结果反馈 结束
========================= */
