@charset "UTF-8";

/* ==========================================================================
   WellPlus 官网样式
   --------------------------------------------------------------------------
   重写自旧站 main.css + responsive.css + bootstrap3 + icofont + linearicons
   （合计约 430KB / 24 个请求）。

   设计目标：保留原有的配色、字号层级、区块顺序与版式观感，
   仅替换实现方式，并修掉旧站在窄屏下的布局问题。

   组织方式：设计变量 → 基础重置 → 布局 → 组件 → 页面 → 响应式
   无构建步骤，直接由浏览器解析。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量（design tokens）
   色值全部取自旧站 main.css，未做调整
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色 */
  --c-accent: #fda40b;
  --c-accent-hover: #e8940a;
  --c-dark: #071c34;
  --c-selection: #0090cb;

  /* 文本 */
  --c-text: #131e3c;
  --c-text-muted: #848080;
  --c-text-invert: #fff;
  --c-heading: #071c34;

  /* 背景与描边 */
  --c-bg: #f4f4f4;
  --c-surface: #fff;
  --c-surface-alt: #f9f9f9;
  --c-border: #ddd;
  --c-border-light: #eee;
  --c-border-input: #f0f0f0;

  /* 遮罩 */
  --overlay-slider: rgba(0, 0, 0, 0.4);
  --overlay-pagehead: rgba(7, 28, 52, 0.8);
  --overlay-footer: rgba(7, 28, 52, 0.97);
  --overlay-card-hover: rgba(253, 164, 11, 0.95);

  /* 字体 */
  --font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --fs-body: 14px;
  --lh-body: 26px;

  /* 间距 */
  --space-section-lg: 100px;
  --space-section: 70px;
  --space-gap: 30px;

  /* 结构 */
  --container: 1170px;
  --gutter: 15px;
  --radius: 4px;
  --slider-height: 500px;

  /* 动效 */
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --t-fast: 0.25s;
  --t-base: 0.4s;

  /* 层级 */
  --z-nav: 900;
  --z-header: 950;
  --z-overlay: 1000;
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  /* 用 clip 而不是 hidden：hidden 会让 body 变成滚动容器，
       从而破坏页头的 position: sticky */
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-heading);
}

/* 字号层级与旧站一致：h1 32 / h2 18 / h3 16 */
h1 {
  font-size: 32px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}

p {
  margin: 0 0 20px;
}

a {
  color: var(--c-dark);
  text-decoration: none;
  transition: color var(--t-base) ease-out;
}

a:hover,
a:focus {
  color: var(--c-dark);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* <picture> 只作为 WebP 降级容器，本身不应参与布局，
   否则会顶替 <img> 成为 grid/flex 子项，破坏原有版式 */
picture {
  display: contents;
}

/* <source> 只是候选源选择器，本身不应该参与渲染。
   上面的 display:contents 会让 <source> 也跟着变成 grid/flex 的直接子项，
   占掉一个 0 高度的格子，把 <img> 和后续内容整体挤后一格
   （首页 About 两栏时表现为图片被推到右上、文字落到左下） */
picture > source {
  display: none;
}

/* 有 width/height 属性时让浏览器按比例保留空间，避免 CLS */
img[width][height] {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--c-selection);
  color: #fff;
  text-shadow: none;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* 仅供读屏器 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 跳转到主内容（键盘可达性） */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 2000;
  padding: 10px 20px;
  color: #fff;
  background: var(--c-dark);
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   3. 布局工具
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-lg {
  padding-top: var(--space-section-lg);
  padding-bottom: var(--space-section-lg);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

/* 旧站沿用的 pt/pb 工具类（视图里仍在用） */
.pt-100 {
  padding-top: 100px;
}
.pb-100 {
  padding-bottom: 100px;
}
.pt-70 {
  padding-top: 70px;
}
.pb-70 {
  padding-bottom: 70px;
}

.bg-dark {
  background-color: var(--c-dark);
}
.bg-alt {
  background-color: var(--c-surface-alt);
}

/* 图标：内联 SVG sprite，替代 icofont / linearicons 两套图标字体（约 100KB CSS + 字体文件） */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   4. 按钮
   尺寸与圆角沿用旧站（padding 8/10px 26px、radius 4px）
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 26px;
  font-weight: 500;
  text-transform: capitalize;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition:
    background-color var(--t-base) ease,
    border-color var(--t-base) ease,
    color var(--t-base) ease;
}

.btn-primary {
  color: #fff;
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: var(--c-dark);
  border-color: var(--c-dark);
}

.btn-lg {
  padding: 10px 26px;
}

/* --------------------------------------------------------------------------
   5. 页头
   旧站是「滚动过 120px 后由 jQuery 切成 fixed 并播放 fadeInDown」，
   这里直接用 position: sticky —— 视觉结果一致，但不需要 JS，也不会产生布局跳动
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  flex: none;
  padding: 6px 0;
}

.logo img {
  display: block;
  width: 207px;
  height: 57px;
  object-fit: contain;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 40px 20px;
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item.is-active > a {
  color: var(--c-accent);
}

/* 当前栏目：顶部 1px 强调线（旧站 .main-menu ul li.active::before） */
.nav-item.is-active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--c-accent);
}

/* 二级菜单：桌面端 hover 展开 */
.sub-menu {
  position: absolute;
  top: 120px;
  left: 12px;
  min-width: 240px;
  background: var(--c-surface);
  box-shadow: 0 6px 20px rgba(7, 28, 52, 0.12);
  opacity: 0;
  visibility: hidden;
  z-index: var(--z-nav);
  transition:
    opacity var(--t-fast) ease,
    top var(--t-fast) ease,
    visibility var(--t-fast);
}

.has-children:hover > .sub-menu,
.has-children:focus-within > .sub-menu {
  top: 100%;
  opacity: 1;
  visibility: visible;
}

.sub-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  text-transform: capitalize;
  border-bottom: 1px solid var(--c-surface-alt);
}

.sub-menu a:hover {
  color: var(--c-accent);
  background: #fafafa;
}

/* 三级菜单 */
.sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.has-children:hover > .sub-menu .has-children:hover > .sub-menu {
  top: 0;
}

/* 二级菜单展开按钮：只在窄屏出现，桌面端由 :hover 展开，父级链接始终可跳转 */
.sub-toggle {
  display: none;
}

/* 汉堡按钮（窄屏显示） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
  color: var(--c-dark);
}

.header-cta {
  flex: none;
}

/* --------------------------------------------------------------------------
   6. 首屏轮播
   旧站是 owl.carousel + 靠 JS 把 display:none 改成显示。
   这里改为：默认可见（无 JS 也能看到内容），用 CSS scroll-snap 实现滑动，
   JS 只负责自动播放与触摸增强。
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--c-dark);
}

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: var(--slider-height);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-slider);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-text {
  max-width: 750px;
}

/* 轮播三屏共用一套版式，但每页只能有一个 H1：
   首屏是 h1、其余两屏是 h2，这里让两者字号完全一致，视觉不变 */
.hero-text h1,
.hero-text h2 {
  margin-bottom: 10px;
  font-size: 48px;
  font-weight: bold;
  line-height: 60px;
  color: #fff;
  text-transform: capitalize;
}

.hero-text p {
  color: #fff;
}

.hero-text .btn {
  margin-top: 20px;
}

/* 轮播装饰图，窄屏隐藏以免与文字重叠
   （旧站用内联 style 绝对定位，在窄屏会压住标题） */
.hero-figure {
  position: absolute;
  right: 5%;
  bottom: 30px;
  z-index: 3;
  max-width: 30%;
  pointer-events: none;
}

/* 轮播控件 */
.hero-nav {
  position: absolute;
  top: 45%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--c-dark);
  border: 1px solid var(--c-dark);
  transform: translateY(-50%);
  transition:
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease;
}

.hero-nav:hover {
  color: #fff;
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.hero-nav .icon {
  width: 22px;
  height: 22px;
}

.hero-prev {
  left: 20px;
}
.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  z-index: 4;
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color var(--t-fast) ease;
}

.hero-dots button[aria-current="true"] {
  background: var(--c-accent);
}

/* --------------------------------------------------------------------------
   7. 内页标题区
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding: 20px 0;
  background: url("../img/page_hd.webp") center center / cover no-repeat;
}

.page-head-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-pagehead);
}

.page-head-inner {
  position: relative;
  z-index: 2;
}

/* 详情页页头标题已从 h1 降为 h2（H1 让给产品名），视觉大小保持不变 */
.page-head h1,
.page-head h2 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  text-transform: capitalize;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  position: relative;
  padding: 0 14px;
}

.breadcrumb li:first-child {
  padding-left: 0;
}

.breadcrumb a {
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
}

.breadcrumb li:last-child a {
  color: var(--c-accent);
}

/* 分隔斜线（旧站用 ::before 画 2x10px 旋转矩形） */
.breadcrumb li + li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -1px;
  width: 2px;
  height: 10px;
  background: var(--c-bg);
  transform: rotate(23deg);
}

/* --------------------------------------------------------------------------
   8. 首页：产品分类卡片
   -------------------------------------------------------------------------- */
.category-section {
  background: var(--c-dark);
}

.section-title {
  margin-bottom: 50px;
  color: #ddd;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 32px;
  color: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
}

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
}

.category-card img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform var(--t-base) var(--ease);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(7, 28, 52, 0);
  transition: background-color var(--t-base) ease;
}

.category-card:hover::before {
  background: rgba(7, 28, 52, 0.2);
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: 40px;
  background: var(--c-bg);
  transition: background-color var(--t-base) ease;
}

.category-card:hover .category-card-label {
  background: var(--c-accent);
}

.category-card-label h3 {
  margin: 0;
  font-size: 18px;
  text-transform: capitalize;
}

/* --------------------------------------------------------------------------
   9. 首页：关于我们
   旧站是「图片全宽 + 文字浮动在下方」的破损布局（.home-standard 类未加到 body）。
   这里按原设计意图还原为左右两栏。
   -------------------------------------------------------------------------- */
.about-classic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-gap);
}

.about-classic img {
  display: block;
  width: 100%;
  height: auto;
}

.about-short h2 {
  font-size: 32px;
  text-transform: capitalize;
}

.about-short p {
  color: var(--c-text-muted);
}

/* 带图标的列表（旧站 icofont 的 \eed7 箭头） */
.about-short ul {
  margin-bottom: 20px;
}

.about-short li {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  color: var(--c-text-muted);
}

.about-short li .icon {
  margin-top: 7px;
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   10. 产品列表页
   -------------------------------------------------------------------------- */
.product-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: var(--space-gap);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
}

.product-card {
  background: var(--c-surface);
  border-radius: 3px;
  transition: box-shadow var(--t-base) var(--ease);
}

.product-card:hover {
  box-shadow:
    0 8px 17px rgba(138, 57, 3, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-card a {
  display: block;
}

.product-card-media {
  position: relative;
  overflow: hidden;
}

.product-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-card-body {
  padding: 12px;
  background: var(--c-surface);
  transition: background-color var(--t-base) ease;
}

.product-card:hover .product-card-body {
  background: var(--overlay-card-hover);
}

.product-card-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
  text-transform: capitalize;
}

.empty-state {
  padding: 60px 0;
  color: var(--c-text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. 侧栏
   -------------------------------------------------------------------------- */
.sidebar-widget {
  margin-bottom: 50px;
}

.sidebar-widget h2 {
  margin-bottom: 0;
  font-size: 16px;
  color: #222;
}

.sidebar-widget h2 a:hover {
  color: var(--c-accent);
}

.sidebar-widget ul {
  margin-top: 12px;
}

.sidebar-widget li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: var(--c-text);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  text-transform: capitalize;
  transition:
    color var(--t-base) ease-in-out,
    padding-left var(--t-base) ease-in-out;
}

.sidebar-widget li a:hover {
  padding-left: 16px;
  color: var(--c-accent);
}

.sidebar-widget li a .icon {
  color: var(--c-text);
}

/* --------------------------------------------------------------------------
   12. 产品详情
   -------------------------------------------------------------------------- */
.detail-top {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-gap);
  margin-bottom: 30px;
}

.detail-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dae2ee;
}

/* 详情页的 H1 是产品名（"Product Details" 已降为 H2），
   这里保持它原来的 16px 视觉大小 */
.detail-info h1 {
  font-size: 16px;
}

.detail-specs li {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  font-size: 14px;
  text-transform: capitalize;
}

.detail-specs label {
  flex: none;
  width: 130px;
  font-weight: 300;
}

.detail-body h2 {
  padding-bottom: 8px;
  font-size: 24px;
  font-weight: normal;
  color: #444;
  text-transform: capitalize;
  border-bottom: 2px solid #444;
}

.detail-body img {
  height: auto;
}

/* --------------------------------------------------------------------------
   13. 联系页表单
   -------------------------------------------------------------------------- */
.contact-form h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-dark);
  text-transform: capitalize;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-input);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--c-accent);
}

.form-field textarea {
  height: 120px;
  resize: vertical;
}

.form-actions button {
  width: 150px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
  background: var(--c-accent);
  border-radius: 0;
  transition: background-color var(--t-base) ease-in-out;
}

.form-actions button:hover {
  background: var(--c-dark);
}

.form-actions button:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* 提交结果提示条，替代旧站的 toastr */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-overlay);
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-12px);
  opacity: 0;
  transition:
    opacity var(--t-fast) ease,
    transform var(--t-fast) ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  background: #1f8f4e;
}
.toast--error {
  background: #c0392b;
}

/* --------------------------------------------------------------------------
   14. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: url("../img/footer-bg.webp") center center / cover no-repeat;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-footer);
}

.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 6fr 3fr 3fr;
  gap: var(--space-gap);
  padding: 40px 0;
}

.footer-widget h2 {
  position: relative;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
}

.footer-widget h2::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--c-accent);
}

.footer-widget p {
  color: #fff;
}

.footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 10px;
  color: #fff;
  text-transform: capitalize;
}

.footer-links li a:hover {
  color: var(--c-accent);
}

.footer-links .icon {
  color: #fff;
}

.footer-contact {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-contact-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: #fff;
  background: var(--c-dark);
  border-radius: var(--radius);
}

.footer-contact-text {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
}

.footer-contact-text a {
  color: #fff;
}

.footer-contact-text a:hover {
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   15. 回到顶部
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--c-accent);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--t-fast) ease,
    visibility var(--t-fast);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  color: #fff;
  background: var(--c-dark);
}

/* --------------------------------------------------------------------------
   16. 入场动画
   替代 animate.css（72KB）：只保留实际用到的几种效果
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.6s var(--ease),
      transform 0.6s var(--ease);
  }

  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }

  .hero-slide .hero-text > * {
    animation: hero-fade-up 0.7s var(--ease) both;
  }

  .hero-slide .hero-text > *:nth-child(2) {
    animation-delay: 0.12s;
  }
  .hero-slide .hero-text > *:nth-child(3) {
    animation-delay: 0.24s;
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   17. 响应式
   旧站有 12 组零散 @media，且完全依赖 UA 嗅探跳转到 m. 子域。
   这里改为移动优先的 4 档断点，桌面站自适应。
   -------------------------------------------------------------------------- */

/* 平板横屏及以下：折叠主导航 */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    margin-left: 0;
    overflow: hidden;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border-light);
    box-shadow: 0 12px 24px rgba(7, 28, 52, 0.1);
    transition: max-height var(--t-base) var(--ease);
  }

  .site-nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-list {
    display: block;
    padding: 10px 0;
  }

  .nav-item > a {
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
  }

  .nav-item.is-active::before {
    display: none;
  }

  .sub-menu {
    position: static;
    top: auto;
    left: auto;
    display: none;
    min-width: 0;
    padding-left: 16px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .has-children.is-expanded > .sub-menu {
    display: block;
  }

  .sub-menu a {
    padding: 11px 20px;
    border-bottom: 0;
  }

  /* 折叠态下父级链接右侧留出展开按钮的位置 */
  .nav-item.has-children > a {
    padding-right: 64px;
  }

  .sub-toggle {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 50px;
    color: var(--c-dark);
  }

  .sub-toggle .icon {
    width: 18px;
    height: 18px;
    transition: transform var(--t-fast) ease;
  }

  .has-children.is-expanded > .sub-toggle .icon {
    transform: rotate(180deg);
  }

  .hero-text h1,
  .hero-text h2 {
    font-size: 36px;
    line-height: 46px;
  }

  .product-layout,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-widget--about {
    grid-column: 1 / -1;
  }
}

/* 手机 */
@media (max-width: 767px) {
  :root {
    --slider-height: 420px;
    --space-section-lg: 60px;
    --space-section: 45px;
  }

  h1 {
    font-size: 22px;
  }

  .header-cta {
    display: none;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 38px;
  }

  /* 窄屏隐藏轮播装饰图，避免与标题重叠（旧站的内联绝对定位会压字） */
  .hero-figure {
    display: none;
  }

  .hero-nav {
    display: none;
  }

  .page-head h1,
  .page-head h2 {
    font-size: 24px;
  }

  .about-classic,
  .form-grid,
  .product-grid,
  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-card img {
    height: 240px;
  }

  .section-title h2,
  .about-short h2 {
    font-size: 24px;
  }

  .detail-specs label {
    width: 110px;
  }

  .toast {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }
}

/* 小屏：进一步压缩留白 */
@media (max-width: 480px) {
  .logo img {
    width: 165px;
    height: 45px;
  }

  .hero-text p {
    font-size: 13px;
  }

  .category-card-label {
    padding: 24px;
  }
}
