/* ============================================================
   空气炸锅官网 · 全局样式
   配色：方案B 暖橙活力系 | 字体：系统默认字体栈（无 web 字体）
   ============================================================ */

:root {
  /* 配色基准（方案B） */
  --primary: #F2682C;        /* 主色 活力橙 */
  --primary-deep: #D9531A;   /* 主色深 hover/active */
  --primary-light: #FFF3EC;  /* 主色浅 浅底区块 */
  --accent: #1F497D;         /* 点缀 科技蓝 */
  --bg: #FFFFFF;
  --text: #333333;
  --text-2: #666666;
  --text-3: #999999;
  --line: #E8ECF1;
  --surface: #F5F7FA;        /* 浅灰区块背景 */
  --footer-bg: #1F2430;

  /* 字体栈（系统默认，放弃 web 字体） */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
/* 防横向滚动：全宽背景等 100vw 元素在桌面含滚动条宽度会溢出视口 */
html, body { overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ===== 容器：1200px，>1200 无留白，<1200 留 20，手机 16 ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1201px) { .container { padding: 0; } }
@media (max-width: 767px) { .container { padding: 0 16px; } }

/* ===== 标题层级（字号 7 级，标题统一主色） ===== */
h1, .h1 { font-size: 32px; font-weight: 700; line-height: 1.3; color: var(--primary); }
h2, .h2 { font-size: 26px; font-weight: 600; line-height: 1.4; color: var(--primary); }
h3, .h3 { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--text); }
h4, .h4 { font-size: 16px; font-weight: 500; line-height: 1.5; color: #444; }
p { font-size: 16px; color: var(--text); }
.text-aux { font-size: 14px; color: var(--text-3); }
.text-foot { font-size: 12px; color: var(--text-3); }

/* ===== 模块上下间距：桌面 80，手机 44 ===== */
.section { padding: 80px 0; }
@media (max-width: 767px) { .section { padding: 44px 0; } }

.section__title { text-align: center; margin-bottom: 12px; }
.section__lead { text-align: center; color: var(--text-2); font-size: 14px; line-height: 1.6; margin-bottom: 8px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn--ghost:hover { background: rgba(255, 255, 255, .15); }

.link-more {
  display: inline-block;
  margin: 0 16px 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.link-more:hover { color: var(--primary-deep); }

/* ===== 占位图（布局阶段用，真实图待 AI 生图替换） ===== */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), #FFE0CC);
  overflow: hidden;
}
.ph::after {
  content: "图占位 · 待生图";
  font-size: 12px;
  color: var(--primary-deep);
  opacity: .65;
  text-align: center;
  padding: 0 8px;
}

/* ===== 顶部导航（仅 logo + 菜单 + 语言切换 UI） ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.nav__logo img {
  display: block;
  width: auto;
  height: 40px;
}
.nav__menu { display: flex; align-items: center; gap: 24px; }
.nav__menu a { color: var(--text); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav__menu a:hover, .nav__menu a.is-active { color: var(--primary); }
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-switch__btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 13px; line-height: 1; color: var(--text-2);
  padding: 6px 14px; transition: background .2s, color .2s;
}
.lang-switch__btn:hover { color: var(--primary); }
.lang-switch__btn.is-active { background: var(--primary); color: #fff; }

/* 汉堡按钮（桌面隐藏） */
.nav__burger { display: none; }

/* ===== Hero 轮播（图上有占位，文字用 HTML 浮层） ===== */
.hero { position: relative; overflow: hidden; background: var(--primary); }
.hero__track { display: flex; transition: transform .6s ease; }
.hero__slide {
  position: relative;
  min-width: 100%;
  min-height: 520px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: left;
  color: #fff; padding: 0 20px;
}
/* 文字左对齐并限制在 1200px 内容容器内（>1200px 与全站容器对齐，<1200px 保留留白） */
.hero__overlay > * { width: 100%; max-width: 1200px; }
.hero__title { font-size: 40px; font-weight: 700; color: #fff; margin-bottom: 12px; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hero__sub { font-size: 18px; color: #fff; margin-bottom: 24px; opacity: .95; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0;
  transition: width .2s, background .2s;
}
.hero__dots button.is-active { width: 24px; border-radius: 5px; background: #fff; }

/* 左右导航箭头（CSS 画箭头，无 SVG） */
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .28); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease;
}
.hero__arrow:hover { background: rgba(0, 0, 0, .5); }
.hero__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
.hero__arrow-icon {
  display: block;
  width: 18px; height: 18px;
}
/* 左箭头 = 右箭头 chevron 绕自身中心旋转 180°，天然对称居中 */
.hero__arrow--prev .hero__arrow-icon { transform: rotate(180deg); }

/* ===== 产品矩阵 ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.product-card {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  transition: box-shadow .2s, transform .2s; cursor: pointer;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); transform: translateY(-4px); }
.product-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.product-card__name { font-size: 18px; margin: 16px 16px 8px; color: var(--text); }
.product-card__desc { font-size: 14px; color: var(--text-2); margin: 0 16px 12px; }

/* ===== 食谱卡片（网格大图 + 点击原地展开） ===== */
.recipe-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
  transition: box-shadow .2s, transform .2s; cursor: pointer;
}
.recipe-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); transform: translateY(-4px); }
.recipe-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.recipe-card__body { padding: 16px; }
.recipe-card__title { font-size: 18px; color: var(--text); margin: 0 0 8px; }
.recipe-card__desc { font-size: 14px; color: var(--text-2); margin: 0 0 12px; line-height: 1.6; }
.recipe-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-card__tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary); font-size: 12px;
}
.recipe-card__hint { display: block; margin-top: 12px; font-size: 13px; color: var(--primary); }
.recipe-card__detail { display: none; }
.recipe-card__ingredients { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-card__ingredients li {
  font-size: 13px; color: var(--text); background: var(--surface); border-radius: 8px; padding: 4px 10px;
}
.recipe-card__steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.recipe-card__step { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.recipe-card__step b {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== 食谱详情弹窗 ===== */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(16, 24, 40, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal__box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 720px;
  max-height: 84vh; overflow-y: auto; position: relative;
}
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.92); color: #333; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal__media img { width: 100%; height: 240px; object-fit: cover; display: block; border-radius: 16px 16px 0 0; }
.modal__media .ph { height: 240px; background: var(--surface); border-radius: 16px 16px 0 0; }
.modal__content { padding: 20px 24px 24px; }
.modal__title { font-size: 22px; color: var(--text); margin: 0 0 12px; }
.modal__content .recipe-card__meta { margin-bottom: 0; }
.modal__desc { font-size: 15px; color: var(--text-2); margin: 12px 0 4px; line-height: 1.7; }
.modal__subtitle { font-size: 15px; font-weight: 600; color: var(--primary); margin: 0 0 8px; }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
@media (max-width: 560px) {
  .modal__grid { grid-template-columns: 1fr; gap: 10px; }
  .modal__media img, .modal__media .ph { height: 200px; }
  .modal__content { padding: 16px; }
}

/* ===== 食谱手风琴 ===== */
.accordion { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.accordion-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.accordion-item__head {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 12px 20px; border: 0; background: none; cursor: pointer; text-align: left;
}
.accordion-item__thumb { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; display: block; flex: none; }
.accordion-item__thumb.ph { background: var(--surface); }
.accordion-item__head-main { flex: 1; min-width: 0; }
.accordion-item__title { display: block; font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.accordion-item__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.accordion-item__tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary); font-size: 12px;
}
.accordion-item__arrow {
  flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg); transition: transform .25s;
}
.accordion-item.is-open .accordion-item__arrow { transform: rotate(225deg); }
.accordion-item__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-item.is-open .accordion-item__body { max-height: 1200px; }
.accordion-item__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 4px 20px 20px; border-top: 1px solid var(--line);
}
.accordion-item__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.accordion-item__img.ph { background: var(--surface); }
.accordion-item__desc { font-size: 15px; color: var(--text-2); margin: 0 0 16px; line-height: 1.7; }
.accordion-item__subtitle { font-size: 15px; font-weight: 600; color: var(--primary); margin: 14px 0 8px; }
.accordion-item__ingredients { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.accordion-item__ingredients li {
  font-size: 13px; color: var(--text); background: var(--surface); border-radius: 8px; padding: 4px 10px;
}
.accordion-item__steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.accordion-item__step { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.accordion-item__step b {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 767px) {
  .accordion-item__panel { grid-template-columns: 1fr; gap: 16px; }
  .accordion-item__head { padding: 12px 14px; }
}

/* ===== 核心卖点 ===== */
.features { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.feature { text-align: center; }
.feature__icon { width: 100%; max-width: 150px; aspect-ratio: 1 / 1; border-radius: 16px; object-fit: cover; object-position: center; margin: 0 auto 16px; display: block; }
.feature__title { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.feature__desc { font-size: 14px; color: var(--text-2); }

/* ===== 食谱入口（大图区块） ===== */
.recipe-cta { position: relative; overflow: hidden; }
.recipe-cta__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(217, 83, 26, .68), rgba(242, 104, 44, .68)), url(../img/recipe-cta.webp) center / cover no-repeat;
}
.recipe-cta__inner { position: relative; text-align: center; padding: 80px 0; }
.recipe-cta__title { color: #fff; }
.recipe-cta__sub { color: #fff; opacity: .9; margin: 8px 0 24px; font-size: 16px; line-height: 1.6; }

/* ===== 企业实力 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; text-align: center; }
.stat__num { font-size: 40px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat__unit { font-size: 20px; font-weight: 600; }
.stat__label { font-size: 14px; color: var(--text-2); margin-top: 8px; }

/* ===== 新闻资讯 ===== */
.news { background: var(--surface); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.news-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; cursor: pointer; }
.news-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); transform: translateY(-4px); }
.news-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-card__body { padding: 16px; }
.news-card__date { font-size: 13px; color: var(--text-3); display: block; margin-bottom: 8px; }
.news-card__title { font-size: 18px; color: var(--text); margin: 0 0 8px; }
.news-card__desc { font-size: 14px; color: var(--text-2); margin: 0 0 12px; }
.news-card__body .link-more { margin: 0; }

/* ===== 页脚 ===== */
.footer { background: var(--footer-bg); color: #CFD3DA; padding: 48px 0 24px; }
.footer__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-col__title { font-size: 16px; color: #fff; margin-bottom: 16px; font-weight: 600; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; font-size: 14px; }
.foot-col a { color: #CFD3DA; text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--primary); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px;
  font-size: 12px; color: #8B9099;
}

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 99;
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.back-to-top:hover { background: var(--primary-deep); }
.back-to-top:focus-visible { outline: 2px solid var(--primary-deep); outline-offset: 2px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top__icon { display: block; width: 18px; height: 18px; }

/* ============================================================
   响应式：平板 768–1023 / 手机 ≤767
   ============================================================ */
@media (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  h1, .h1 { font-size: 28px; }
  h2, .h2 { font-size: 20px; }
  .hero__slide { min-height: 420px; }
  .hero__title { font-size: 28px; }
  .hero__sub { font-size: 15px; }
  .hero__overlay { padding: 0 16px; }
  .stat__num { font-size: 32px; }

  .back-to-top { right: 16px; bottom: 16px; }

  .product-grid,
  .news-grid { grid-template-columns: 1fr; }

  /* 核心卖点：手机端图标适当缩小，适配一行两列 */
  .feature__icon { max-width: 88px; border-radius: 12px; margin-bottom: 12px; }

  /* 汉堡菜单抽屉 */
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
    position: relative; z-index: 96;
  }
  .nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: .3s; }
  /* 打开时汉堡变 × */
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 遮罩层：让菜单与页面清晰区隔，并拦截背景点击 */
  .nav__backdrop {
    display: none; position: fixed; inset: 0; z-index: 90;
    background: rgba(28, 32, 40, .45);
  }
  .nav__backdrop.is-open { display: block; }

  /* 抽屉：撑满导航栏以下的整页高度 */
  .nav__menu {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 95;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 0 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; display: flex;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { padding: 16px 20px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__menu .lang-switch { margin: 16px 20px; align-self: flex-start; }

  /* 页脚手风琴 */
  .footer__inner { grid-template-columns: 1fr; gap: 0; }
  .foot-col { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .foot-col__title { cursor: pointer; margin: 0; padding: 16px 0; position: relative; }
  .foot-col__title::after { content: "−"; position: absolute; right: 0; font-weight: 400; }
  .foot-col.is-collapsed .foot-col__title::after { content: "+"; }
  .foot-col ul { display: block; padding-bottom: 16px; }
  .foot-col.is-collapsed ul { display: none; }
}

/* ===== 滚动渐显（元素进入视口淡入上浮） ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 首屏 Hero 内容入场动画（随轮播切换重播） */
.hero__overlay > * { animation: none; }
.hero__slide.is-active .hero__overlay > * { animation: heroIn .8s ease both; }
.hero__overlay .hero__sub { animation-delay: .15s; }
.hero__overlay .hero__actions { animation-delay: .3s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* 尊重系统“减少动态效果”偏好（无障碍） */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__overlay > * { animation: none; }
  .hero__slide.is-active .hero__overlay > * { animation: none; }
}

/* ===== 页面级 Banner（产品中心等内页） ===== */
.page-banner {
  background: var(--primary);
  color: #fff; text-align: center; padding: 72px 0; min-height: 340px;
}
.page-banner__title { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.page-banner__sub { font-size: 16px; opacity: .9; }
.page-banner--products { background: url('../img/product-banner.webp') center / cover no-repeat; }
.page-banner--recipes { background: url('../img/recipe-banner.webp') center / cover no-repeat; }
.page-banner--about { background: url('../img/about-banner.webp') center / cover no-repeat; }
.page-banner--support { background: url('../img/support-banner.webp') center / cover no-repeat; }
.page-banner--contact { background: url('../img/contact-banner.webp') center / cover no-repeat; }
.page-banner--news { background: url('../img/news-banner.webp') center / cover no-repeat; }

/* ===== 分类标签 ===== */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
/* ===== 筛选一行：左分类 tab + 右时间/难度下拉（无框纯文字） ===== */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.cat-tabs--inline { margin-bottom: 0; justify-content: flex-start; }
.filter-selects { display: flex; align-items: center; gap: 16px; }
.filter-select-item { display: inline-flex; align-items: center; gap: 6px; }
.filter-label { font-size: 14px; color: var(--text-2); }
/* 自定义下拉：按钮无框纯文字 + 展开菜单（完全可控，替代原生 select） */
.select-custom { position: relative; display: inline-flex; }
.select-custom__btn {
  border: none; background: transparent; padding: 2px 16px 2px 0;
  font-size: 14px; color: var(--primary); cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23F2682C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right center;
}
.select-custom__btn:focus { outline: none; }
.select-custom__menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  min-width: 130px; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
  display: none;
}
.select-custom__menu.is-open { display: block; }
.select-custom__menu li {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text);
  cursor: pointer; white-space: nowrap;
}
.select-custom__menu li:hover { background: var(--primary-light); color: var(--primary); }
.select-custom__menu li.is-selected { color: var(--primary); font-weight: 500; }
/* 表单字段变体：按钮带边框（与其他输入框一致），弹出菜单无边框 */
.select-custom--field { display: block; width: 100%; }
.select-custom--field .select-custom__btn {
  width: 100%; padding: 12px 38px 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background-color: #fff; color: var(--text); font-size: 15px; text-align: left;
  background-position: right 12px center;
}
.select-custom--field .select-custom__btn:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.select-custom--field .select-custom__menu { border: none; }
.cat-tab {
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; cursor: pointer;
  transition: all .2s ease;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== 分页 ===== */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pager__btn {
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  border-radius: 8px; font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.pager__btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager__btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager__btn:disabled { opacity: .45; cursor: not-allowed; }

/* ===== 产品详情页 ===== */
/* 面包屑 */
.detail__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; font-size: 13px; color: var(--text-3); }
.detail__crumb a { color: var(--text-2); text-decoration: none; }
.detail__crumb a:hover { color: var(--primary); }
.detail__crumb .sep { color: var(--line); }
.detail__crumb .is-current { color: var(--text); }

/* 主信息区 */
.section--detail-hero { padding: 40px 0 64px; }
.detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.detail__media { position: relative; border-radius: 16px; background: var(--surface); }
.detail__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 16px; }
/* 产品图放大镜（分体放大窗） */
.detail__zoom-lens { position: absolute; border: 1px solid var(--primary); background: rgba(242, 104, 44, .18); display: none; pointer-events: none; z-index: 10; cursor: crosshair; }
.detail__zoom-pane { position: absolute; left: calc(100% + 16px); top: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); display: none; pointer-events: none; z-index: 20; }
.detail__info { padding-top: 4px; }
.detail__cat { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.detail__name { font-size: 30px; color: var(--primary); margin-bottom: 12px; line-height: 1.3; }
.detail__desc { font-size: 16px; color: var(--text); margin-bottom: 20px; line-height: 1.7; }
.detail__checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.detail__checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-2); margin-bottom: 10px; line-height: 1.5; }
.detail__ck { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; line-height: 20px; text-align: center; margin-top: 1px; }

/* 主信息区：关键参数 chips */
.detail__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.detail__chip { display: inline-flex; align-items: baseline; gap: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--text-2); }
.detail__chip b { font-size: 15px; font-weight: 600; color: var(--text); }

/* 浅灰区块 */
.section--gray { background: var(--surface); }

/* 核心卖点卡片 */
/* 核心卖点：大数字视觉墙（区域背景图 + 浅色数字卡） */
.detail__highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
  /* 全宽撑满：突破 container 居中约束，左右展开到视口边缘 */
  margin-left: calc((100vw - 100%) / -2);
  margin-right: calc((100vw - 100%) / -2);
  padding: 48px max(20px, calc((100vw - 1200px) / 2));
  background:
    linear-gradient(rgba(16, 24, 40, 0.5), rgba(16, 24, 40, 0.5)),
    url('../img/intro-bg.webp') center / cover no-repeat;
}
.detail__hl {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px; padding: 22px 20px; text-align: center;
}
.detail__hl-ic { display: inline-flex; color: var(--primary); margin-bottom: 6px; }
.detail__hl-ic .ic { width: 34px; height: 34px; }
.detail__hl-num { font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--primary); }
.detail__hl-unit { font-size: 16px; font-weight: 600; margin-left: 2px; color: var(--text); }
.detail__hl-label { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* 规格参数：分组列表（飞利浦式） */
.detail__spec-group { max-width: 760px; margin: 0 auto; }
.detail__spec-group + .detail__spec-group { margin-top: 28px; }
.detail__spec-group-title { font-size: 17px; font-weight: 600; color: var(--primary); margin: 0 0 12px; }
.detail__spec-list { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.detail__spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail__spec-row:last-child { border-bottom: none; }
.detail__spec-k { color: var(--text-2); flex: none; }
.detail__spec-v { color: var(--text); font-weight: 500; text-align: right; }

/* 产品介绍 */
.detail__intro-wrap { max-width: 820px; margin: 0 auto; }
.detail__intro { font-size: 16px; color: var(--text-2); line-height: 1.9; margin-top: 24px; text-align: center; }

/* 核心卖点：图文故事块（左图右文 / 右图左文交替，配卖点场景图） */
.detail__stories { margin-top: 36px; display: flex; flex-direction: column; gap: 40px; }
.detail__story { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.detail__story--right .detail__story-media { order: 2; }
.detail__story--right .detail__story-body { order: 1; }
.detail__story-media { border-radius: 16px; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.detail__story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__story-media.ph { display: flex; align-items: center; justify-content: center; }
.detail__story-media.ph::after { content: "卖点图占位"; color: #bbb; font-size: 14px; letter-spacing: 1px; }
.detail__story-title { font-size: 20px; font-weight: 600; color: var(--primary); margin: 0 0 12px; }
.detail__story-text { font-size: 15px; color: var(--text-2); line-height: 1.7; margin: 0; }

/* 相关推荐：复用 .product-grid（已在产品中心定义） */

/* 浅底区块上的描边按钮 */
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }

@media (max-width: 767px) {
  .page-banner { padding: 48px 0; min-height: 200px; }
  .page-banner__title { font-size: 26px; }
  .section--detail-hero { padding: 24px 0 40px; }
  .detail__grid { grid-template-columns: 1fr; gap: 24px; }
  .detail__name { font-size: 24px; }
  .detail__highlights { grid-template-columns: 1fr; gap: 12px; padding: 24px 16px; }
  .detail__hl-num { font-size: 30px; }
  .detail__stories { gap: 28px; }
  .detail__story { grid-template-columns: 1fr; gap: 14px; }
  .detail__story--right .detail__story-media,
  .detail__story--right .detail__story-body { order: 0; }
  .detail__spec-list { font-size: 14px; }
  .detail__spec-row { padding: 11px 0; gap: 12px; }
  .detail__spec-group + .detail__spec-group { margin-top: 22px; }
  .detail__spec-group-title { font-size: 16px; }
  .detail__intro { text-align: left; }
}

/* ===== 关于我们 ===== */
.about-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.about-brief__img { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; object-fit: cover; display: block; background: var(--surface); }
.about-brief__text p { font-size: 16px; color: var(--text-2); line-height: 1.9; margin: 0 0 16px; }
.about-brief__text p:last-child { margin-bottom: 0; }

.about-culture { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.about-culture__card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.about-culture__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface); }
.about-culture__body { padding: 24px; text-align: center; }
.about-culture__card h3 { font-size: 18px; color: var(--primary); margin: 0 0 12px; }
.about-culture__card p { font-size: 15px; color: var(--text-2); margin: 0; line-height: 1.7; }

.about-timeline { list-style: none; padding: 0; margin: 40px auto 0; max-width: 900px; position: relative; }
.about-timeline::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; background: var(--line); transform: translateX(-50%); }
.about-timeline li { position: relative; width: 50%; padding: 0 40px 40px 0; }
.about-timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 40px 40px; }
.about-timeline li:last-child { padding-bottom: 0; }
.about-timeline li::before {
  content: ''; position: absolute; top: 28px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary); z-index: 1;
  transform: translateX(-50%);
}
.about-timeline li:nth-child(odd)::before { left: 100%; }
.about-timeline li:nth-child(even)::before { left: 0; }
.about-timeline__card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; display: flex; gap: 24px; align-items: baseline;
  transition: box-shadow .2s, transform .2s;
}
.about-timeline__card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .06); transform: translateY(-2px); }
.about-timeline__year { flex: none; font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.about-timeline__body h3 { font-size: 17px; color: var(--text); margin: 0 0 6px; }
.about-timeline__body p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.6; }

/* 智造实力：全宽暗调厂房背景 + 白字数字墙 */
.section--stats {
  background:
    linear-gradient(rgba(16, 24, 40, 0.72), rgba(16, 24, 40, 0.72)),
    url('../img/about-stats.webp') center / cover no-repeat;
}
.section--stats .section__title { color: #fff; }
.section--stats .section__lead { color: rgba(255, 255, 255, 0.85); }
.section--stats .stat__num { color: #fff; }
.section--stats .stat__label { color: rgba(255, 255, 255, 0.8); }

/* 发展历程：浅橙渐变氛围底（零图片成本，不抢文字） */
.section--timeline {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--surface) 100%);
}

@media (max-width: 767px) {
  .about-brief { grid-template-columns: 1fr; gap: 24px; }
  .about-culture { grid-template-columns: 1fr; gap: 16px; }
  .about-timeline { max-width: 100%; }
  .about-timeline::before { left: 16px; transform: translateX(-50%); }
  .about-timeline li,
  .about-timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 24px 44px; }
  .about-timeline li::before,
  .about-timeline li:nth-child(odd)::before,
  .about-timeline li:nth-child(even)::before { left: 16px; right: auto; top: 20px; transform: translateX(-50%); }
  .about-timeline__card { flex-direction: column; gap: 6px; padding: 16px; }
  .about-timeline__year { font-size: 22px; }
}

/* ===== 服务支持 ===== */
/* 服务入口图标卡 */
.service-entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* 服务入口：无标题紧凑模块，收紧与下方「常见问题」的间距 */
.section--entries { padding-bottom: 40px; }
@media (max-width: 767px) { .section--entries { padding-bottom: 22px; } }
.service-entry {
  display: block; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 28px 16px;
  transition: box-shadow .2s, transform .2s; text-decoration: none;
}
.service-entry:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .06); transform: translateY(-2px); }
.service-entry__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary); margin-bottom: 14px;
}
.service-entry__title { display: block; font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.service-entry__desc { font-size: 13px; color: var(--text-2); }

.faq-answer { padding: 0 20px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); line-height: 1.8; margin: 0; }
.tutorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.tutorial__card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tutorial__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface); }
.tutorial__card h3 { font-size: 18px; color: var(--text); padding: 16px 20px 0; margin: 0; }
.tutorial__card p { font-size: 14px; color: var(--text-2); padding: 8px 20px 20px; margin: 0; line-height: 1.7; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.guide__step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; }
.guide__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.guide__step h3 { font-size: 18px; color: var(--text); margin: 0 0 10px; }
.guide__step p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.7; }
.warranty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.warranty__card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; }
.warranty__card h3 { font-size: 17px; color: var(--primary); margin: 0 0 10px; }
.warranty__card p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.8; }
@media (max-width: 767px) {
  .service-entries { grid-template-columns: 1fr 1fr; gap: 12px; }
  .guide-grid { grid-template-columns: 1fr; gap: 16px; }
  .warranty-grid { grid-template-columns: 1fr; gap: 16px; }
  .tutorial-grid { grid-template-columns: 1fr; gap: 16px; }
  .faq-answer { padding: 0 14px 14px; }
}

/* ===== 联系我们 ===== */
.contact-scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.contact-scene {
  display: block; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 28px 20px;
  transition: box-shadow .2s, transform .2s; text-decoration: none;
}
.contact-scene:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .06); transform: translateY(-2px); }
.contact-scene__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary); margin-bottom: 16px;
  transition: background .2s, color .2s;
}
.contact-scene:hover .contact-scene__icon { background: var(--primary); color: #fff; }
.contact-scene h3 { font-size: 18px; color: var(--primary); margin: 0 0 10px; }
.contact-scene p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.7; }
.contact-scene__more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--primary); font-weight: 500; }
.contact-scene__more::after { content: '→'; transition: transform .2s; }
.contact-scene:hover .contact-scene__more::after { transform: translateX(3px); }
.contact-form { max-width: 760px; margin: 40px auto 0; }
.contact-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-form__field { margin-bottom: 20px; }
.contact-form__field label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; color: var(--text); background: #fff; font-family: inherit;
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.contact-form__note { font-size: 13px; color: var(--text-2); margin: 14px 0 0; }
@media (max-width: 767px) {
  .contact-scenes { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .contact-scenes { grid-template-columns: 1fr; }
}

/* ===== 新闻详情 ===== */
.news-detail { padding-top: 0; }
.news-detail__article { max-width: 1200px; margin: 0 auto; padding: 40px 0 16px; }
.news-detail__title { font-size: 32px; font-weight: 700; color: var(--text); line-height: 1.3; margin: 0 0 16px; }
.news-detail__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.news-detail__date { font-size: 14px; color: var(--text-2); }
.news-detail__cat { font-size: 13px; color: var(--primary); background: var(--primary-light); border-radius: 999px; padding: 3px 10px; }
.news-detail__media { margin-bottom: 24px; }
.news-detail__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; background: var(--surface); }
.news-detail__img.ph { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--surface); }
.news-detail__content { font-size: 16px; color: var(--text-2); line-height: 1.9; }
.news-detail__content p { margin: 0 0 20px; }
.news-detail__back { text-align: center; padding: 24px 0 40px; }
@media (max-width: 767px) {
  .news-detail__title { font-size: 24px; }
  .news-detail__content { font-size: 15px; }
  .news-detail__article { padding-top: 24px; }
}
