/* =========================================================
   破壁机企业官网模板 — main.css（首页）
   Hero / 核心卖点 / 产品系列 / 性能数据 / 灵感食谱 / 品牌故事
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 84vh, 780px);
  overflow: hidden;
  background: var(--c-soft);
}

.hero__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__track {
  display: flex;
  height: 100%;
}
.hero__slide {
  flex: 0 0 100%;
  height: 100%;
}
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%; /* 主体居中构图（2026-09-22 重做）：各断点裁切均保主体完整 */
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(250, 247, 242, 0.92) 0%,
    rgba(250, 247, 242, 0.66) 40%,
    rgba(250, 247, 242, 0) 70%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 140px 110px;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.01em;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero__line > span { display: block; }
.hero.is-ready .hero__line > span {
  animation: heroUp 1.05s var(--ease) both;
}
.hero.is-ready .hero__line:nth-child(2) > span { animation-delay: 0.12s; }

@keyframes heroUp {
  from { transform: translateY(112%); }
}

.hero__sub {
  margin-top: 22px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--c-ink-2);
  max-width: 36em;
}

/* hero 文案随轮播联动切换（is-live = 进场动画结束后的可切换态） */
.hero__copy.is-live .eyebrow,
.hero__copy.is-live .hero__title,
.hero__copy.is-live .hero__sub {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  transition-delay: 0s;
}
.hero__copy.is-live.is-fading .eyebrow,
.hero__copy.is-live.is-fading .hero__title,
.hero__copy.is-live.is-fading .hero__sub {
  opacity: 0;
  transform: translateY(10px);
}

.hero__indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 3;
}
.hero__indicators .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-nav-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42, 36, 33, 0.22);
  border-radius: 50%;
  color: var(--c-ink);
  background: rgba(250, 247, 242, 0.55);
  transition: border-color 0.3s, background-color 0.3s;
}
.hero-nav-btn:hover {
  border-color: var(--c-ink);
  background: rgba(250, 247, 242, 0.92);
}
.hero-nav-btn svg { transition: transform 0.3s var(--ease); }
.hero-nav-btn:first-child:hover svg { transform: translateX(-2px); }
.hero-nav-btn:last-child:hover svg { transform: translateX(2px); }

.hero-dot {
  position: relative;
  width: 30px;
  height: 24px;
  transition: width 0.45s var(--ease);
}
.hero-dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(42, 36, 33, 0.18);
}
.hero-dot i {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-dot.is-active { width: 52px; }

/* ---------- 图片占位（待接入实拍 / 生成图） ---------- */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--c-soft);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(198, 93, 46, 0.22);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.ph::after {
  content: "";
  position: absolute;
  width: 26%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(198, 93, 46, 0.09);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ph--a { background: #F0E7DB; }
.ph--b { background: #EBE1D3; }
.ph--c { background: #F3EBE1; }
.ph--d { background: #E8DDCD; }
/* 深色底 / 影像底上的占位（品牌影像区等） */
.ph--dark { background: #3A322D; }
.ph--dark::before { border-color: rgba(250, 247, 242, 0.13); }
.ph--dark::after { background: rgba(250, 247, 242, 0.05); }

/* Hero 内的占位环偏右，给左侧文案留出干净区域 */
.hero .ph::before { left: 64%; width: 62%; }
.hero .ph::after { left: 68%; }

/* 深色区段内的占位 */
.section--dark .ph { background: #3A322D; }
.section--dark .ph::before { border-color: rgba(250, 247, 242, 0.13); }
.section--dark .ph::after { background: rgba(250, 247, 242, 0.05); }

/* ---------- 核心卖点（图文联动：左影像 + 右编号索引） ---------- */
.f-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: stretch;
}
.f-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-soft);
}
.f-stage__media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s var(--ease), transform 1.4s var(--ease);
}
.f-stage__media.is-active { opacity: 1; transform: scale(1); }
.f-stage__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.f-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.f-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--c-line);
  cursor: pointer;
  transition: border-color 0.35s;
}
.f-item:last-child { border-bottom: 1px solid var(--c-line); }
.f-item.is-active { border-top-color: var(--c-primary); }
.f-item__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.f-item__num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--c-ink-3);
  transition: color 0.35s;
}
.f-item.is-active .f-item__num { color: var(--c-primary); }
.f-item__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.35s;
}
.f-item.is-active .f-item__title { color: var(--c-primary); }
.f-item__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-2);
}

/* ---------- 产品系列（居中标题 + 极简产品卡 + 分页箭头） ---------- */
.p-slider {
  position: relative;
  /* 箭头垂直位置 = 图片区高度的一半（由卡宽与图片 13/20 比例推导；百分比 margin 按容器宽度解析） */
  --p-media-half: calc((100% - 48px) / 4 * 20 / 13 / 2);
}
.p-slider__viewport { overflow: hidden; }
.p-slider__track {
  display: flex;
  transition: transform 0.65s var(--ease);
}
.p-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}
.p-card {
  display: flex;
  flex-direction: column;
}
.p-card__media {
  position: relative;
  height: auto; /* 高度由 aspect-ratio 从宽度推导（覆盖 .ph 的 height:100%，避免自动最小尺寸被放大撑爆栅格） */
  aspect-ratio: 13 / 20;
  overflow: hidden;
}
.p-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
/* A · 浮光扫过：柔光带悬浮时快速掠过一次（纯 transform；移开瞬时复位、再次悬浮可重播） */
.p-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 250, 244, 0) 38%, rgba(255, 250, 244, 0.45) 50%, rgba(255, 250, 244, 0) 62%);
  transform: translateX(-135%);
}
.p-card:hover .p-card__media::after {
  transform: translateX(135%);
  transition: transform 0.8s cubic-bezier(0.35, 0.6, 0.25, 1);
}
/* B · 光影显影：柔边光幕扫过后，显影为更饱满的暖调（保留状态） */
.p-card__img--grade {
  position: absolute;
  inset: 0;
  filter: brightness(1.05) saturate(1.13) contrast(1.02);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 37.5%, rgba(0, 0, 0, 0) 55.4%);
  mask-image: linear-gradient(100deg, #000 0%, #000 37.5%, rgba(0, 0, 0, 0) 55.4%);
  -webkit-mask-size: 280% 100%;
  mask-size: 280% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transition: -webkit-mask-position 0.85s cubic-bezier(0.4, 0, 0.2, 1), mask-position 0.85s cubic-bezier(0.4, 0, 0.2, 1), transform 1.1s var(--ease);
}
.p-card:hover .p-card__img--grade {
  -webkit-mask-position: 0% 0;
  mask-position: 0% 0;
}
.p-card:hover .p-card__img,
.p-card:hover .p-card__img--grade { transform: scale(1.04); }
.p-card__body { padding-top: 16px; }
.p-card__cat {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-ink-3);
}
.p-card__name {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.p-card:hover .p-card__name { color: var(--c-primary); }

/* 分页箭头：白底方块，贴两侧、垂直居中于图片区 */
.p-nav {
  position: absolute;
  top: 0;
  margin-top: var(--p-media-half);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  color: var(--c-ink);
  box-shadow: 0 10px 26px -14px rgba(42, 36, 33, 0.45);
  transition: opacity 0.3s, visibility 0.3s;
}
.p-nav--prev { left: 0; }
.p-nav--next { right: 0; }
.p-nav.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.p-nav svg { transition: transform 0.3s var(--ease); }
.p-nav--prev:hover svg { transform: translateX(-2px); }
.p-nav--next:hover svg { transform: translateX(2px); }
/* 无 JS 环境：不启用滑页，全部产品纵向完整展示 */
html:not(.js) .p-nav { display: none; }
html:not(.js) .p-slider__track { display: block; }
html:not(.js) .p-page + .p-page { margin-top: 28px; }

/* ---------- 性能数据（深色重音） ---------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 32px;
}
.stat__value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-primary-bright);
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--c-on-dark-2);
}
.stat__label {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-hairline-dark);
  font-size: 14px;
  color: var(--c-on-dark-2);
}

/* ---------- 灵感食谱（影像墙：方图 + 左下角文字叠加） ---------- */
.recipes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.r-card { display: block; position: relative; overflow: hidden; }
.r-card__media {
  height: auto; /* 高度由 aspect-ratio 从宽度推导（覆盖 .ph 的 height:100%，避免自动最小尺寸被放大撑爆栅格） */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.r-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.r-card:hover .r-card__media { transform: scale(1.08); }
.r-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(36, 30, 27, 0.78) 0%,
    rgba(36, 30, 27, 0.36) 42%,
    rgba(36, 30, 27, 0) 72%
  );
}
.r-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 18px 16px;
}
.r-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(250, 247, 242, 0.85);
}
.r-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.55);
}
.r-card__title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-on-dark);
}

/* ---------- 最新动态（编辑式新闻列表：缩略图 + 文字） ---------- */
.news__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--c-line);
}
.news__item { border-top: 1px solid var(--c-line); }
.news__link {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 2px;
}
.news__link--text { grid-template-columns: minmax(0, 1fr) auto; }
.news__text { display: block; min-width: 0; }
.news__date, .news__cat { white-space: nowrap; }
.news__thumb {
  display: block;
  width: 132px;
  height: 88px;
  overflow: hidden;
}
.news__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news__link:hover .news__img { transform: scale(1.05); }
.news__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-ink-3);
}
.news__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-ink-3);
}
.news__title {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.news__arrow {
  display: inline-flex;
  color: var(--c-ink-3);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.news__link:hover .news__title { color: var(--c-primary); }
.news__link:hover .news__arrow { color: var(--c-primary); transform: translateX(4px); }

/* ---------- 品牌故事（全宽影像叠加：通栏大图 + 左侧文案） ---------- */
.brand-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
}
.brand-hero__media { position: absolute; inset: 0; }
.brand-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-hero .ph::before { left: 67%; width: 26%; }
.brand-hero .ph::after { left: 70%; }
.brand-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(36, 30, 27, 0.82) 0%,
    rgba(36, 30, 27, 0.5) 48%,
    rgba(36, 30, 27, 0.2) 100%
  );
}
.brand-hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 72px;
  color: var(--c-on-dark);
}
.brand-hero__copy { max-width: 660px; }
.brand-hero .eyebrow { color: var(--c-primary-bright); }
.brand-hero__body .section-title { font-size: clamp(26px, 3vw, 36px); }
.brand-hero__desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-on-dark-2);
}
.brand-hero__cta { margin-top: 32px; }

/* ---------- 产品中心页（products.html） ---------- */
/* 页面标题区（banner：全宽纯图；导航叠图上，与首页 hero 同模式） */
.page-hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 产品中心 banner：高度锁定模式（垂直不裁、左右对半裁、水平居中——产品完整显示）
   素材 2800×650 横带（产品居中 x~1048-1745 + 两侧镜像延展带 #eedccb→#b69e86）；
   >显示宽(~1981@460) 的屏幕两侧由同色素渐变兜底衔接 */
.page-hero--product {
  height: 460px;
  background: linear-gradient(90deg, #eedccb 0%, #eedccb 23%, #b69e86 77%, #b69e86 100%);
}
.page-hero--product .page-hero__img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  max-width: none;
  transform: translateX(-50%);
}

/* 筛选栏：文字按钮 + 下划线指示（延续导航语言），右端结果计数 */
.catalog__toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.catalog__chips {
  display: flex;
  flex-wrap: wrap;
  column-gap: 26px;
  row-gap: 4px;
}
.filter-chip {
  position: relative;
  padding: 6px 0 9px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--c-ink-2);
  transition: color 0.3s;
}
.filter-chip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.filter-chip:hover,
.filter-chip.is-active { color: var(--c-primary); }
.filter-chip:hover::after,
.filter-chip.is-active::after { transform: scaleX(1); }
.catalog__count {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-ink-3);
  white-space: nowrap;
}

/* 产品网格：4 列「目录」排布（8 款主机正好 2 行满排） */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 32px;
}
.catalog__item.is-hidden { display: none; }
/* 筛选切换后的轻量进场重放（animation 独立于 reveal 的 transition） */
@keyframes catalog-pop {
  from { opacity: 0; transform: translateY(16px); }
}
.catalog__item.is-pop { animation: catalog-pop 0.55s var(--ease) both; }

/* 配件耗材楼层：楼层头（顶线分隔）+ 4 列小卡（较主机卡更小，主次分明） */
.catalog__subhead {
  margin: 76px 0 30px;
  padding-top: 44px;
  border-top: 1px solid var(--c-line);
  scroll-margin-top: 96px; /* 锚点跳转时避开固定页头 */
}
.catalog__subtitle {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.catalog__subdesc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-ink-2);
}
/* 配件小卡间距略紧（列数继承基础网格） */
.catalog__grid--accessory { gap: 44px 26px; }

/* 产品中心页响应式 */
@media (max-width: 1023px) {
  .catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .catalog__grid--accessory { gap: 36px 20px; }
}
@media (max-width: 767px) {
  .page-hero { min-height: 360px; }
  .page-hero--product { height: 320px; min-height: 0; }

  .catalog__toolbar { margin-bottom: 28px; }
  .catalog__chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .catalog__chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .catalog__count { display: none; }

  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }

  .catalog__subhead { margin: 56px 0 24px; padding-top: 32px; }
  .catalog__subtitle { font-size: 19px; }
}

/* ---------- 产品详情页（product-detail.html） ---------- */
/* 页面顶区（通用：白底分区，顶部让出固定页头高度，与导航分层） */
.page-top {
  margin-top: 72px;
  background: var(--c-surface);
}

/* 面包屑 */
.crumbs { padding-top: 30px; }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-ink-3);
}
.crumbs__list li { display: flex; align-items: center; }
.crumbs__list li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--c-line);
}
.crumbs__list a { transition: color 0.3s; }
.crumbs__list a:hover { color: var(--c-primary); }
.crumbs__list li:last-child { color: var(--c-ink-2); }

/* 主区：左图右文（竖图占半幅 6:6；行业惯例：图文顶部对齐、右列从图顶开始排） */
.pd-hero { padding: 36px 0 92px; }
.pd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px 72px;
  align-items: start;
}
.pd-hero__media { margin: 0; }
.pd-hero__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.pd-hero__ph { height: auto; aspect-ratio: 1 / 1; }
.pd-hero__body { max-width: 600px; }
.pd-hero__title {
  margin-top: 14px;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.pd-hero__desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink-2);
}
.pd-hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 技术参数区：浅色底图 + 半透明遮罩（文字层置顶保证可读） */
.pd-specs {
  position: relative;
  overflow: hidden;
}
.pd-specs__media { position: absolute; inset: 0; }
.pd-specs__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-specs__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(243, 237, 228, 0.7);
}
.pd-specs .container {
  position: relative;
  z-index: 2;
}

/* 应用场景（纯图片通栏，视觉呼吸区） */
.pd-scene { overflow: hidden; }
.pd-scene__img {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* 技术参数（浅底 3 列网格） */
.pd-params {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 48px;
  margin: 0;
}
.pd-param {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.pd-param__k {
  flex: none;
  min-width: 4.6em;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-ink-2); /* 浅色参数区上加深一档，保证小字可读 */
}
.pd-param__v {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-ink);
}

/* 产品特点（右列紧凑列表） */
.pd-features {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.pd-feature__t {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pd-feature__d {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink-2);
}

/* 主区信任小字行 */
.pd-hero__note {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-ink-3);
}

/* 产品详情页响应式 */
@media (max-width: 1023px) {
  .pd-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pd-hero__media { max-width: 460px; margin-inline: auto; }
  .pd-hero__body { max-width: 640px; margin-inline: auto; }
  .pd-params { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
  .pd-scene__img { height: 440px; }
}
@media (max-width: 767px) {
  .crumbs { padding-top: 18px; }

  .pd-hero { padding: 26px 0 64px; }
  .pd-hero__desc { font-size: 15px; }
  .pd-hero__cta { margin-top: 30px; }
  .pd-hero__media { max-width: 400px; }

  .pd-params { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pd-scene__img { height: 300px; }
}

/* ---------- 灵感食谱页（recipes.html） ---------- */
/* 食谱网格：4 列方图卡（图下信息；悬浮标题变主色 + 图片裁剪放大） */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
}
.recipe-card { display: block; }
.recipe-card__media {
  position: relative;
  height: auto; /* 覆盖 .ph 的 height:100%，交由宽高比主导（与产品卡同防坑） */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-soft);
}
.recipe-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.recipe-card:hover .recipe-card__img { transform: scale(1.08); }
.recipe-card__body { padding-top: 16px; }
.recipe-card__meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-ink-3);
}
.recipe-card__title {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.recipe-card:hover .recipe-card__title { color: var(--c-primary); }

/* 「加载更多」（食谱页 / 新闻中心页共用；按钮由 JS 生成，加载完毕后隐藏） */
.load-more {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.load-more[hidden] { display: none; }

/* 食谱弹窗（首页与食谱页共用；DOM 由 main.js 构建） */
.r-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.r-modal[hidden] { display: none; }
.r-modal.is-open { opacity: 1; pointer-events: auto; }
.r-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(36, 30, 27, 0.45);
}
.r-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  width: min(920px, 100%);
  max-height: min(86vh, 720px);
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(42, 36, 33, 0.5);
  transform: translateY(14px);
  transition: transform 0.4s var(--ease);
}
.r-modal.is-open .r-modal__panel { transform: none; }
.r-modal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--c-soft);
}
.r-modal__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.r-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(250, 247, 242, 0.92);
  color: var(--c-ink);
  transition: color 0.3s, background-color 0.3s;
}
.r-modal__close:hover { color: var(--c-primary); background: #fff; }
.r-modal__body {
  padding: 42px 44px 44px;
  overflow-y: auto;
}
.r-modal__title {
  margin-top: 12px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.r-modal__meta {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-ink-3);
}
.r-modal__sub {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.r-modal__ingredients {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.r-modal__ingredients li {
  font-size: 14px;
  color: var(--c-ink-2);
}
.r-modal__steps {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  counter-reset: rstep;
}
.r-modal__steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}
.r-modal__steps li::before {
  counter-increment: rstep;
  content: counter(rstep, decimal-leading-zero);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-primary);
}
.r-modal__steps li span {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--c-ink-2);
}
.r-modal__tip {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--c-soft);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-ink-2);
}
@media (max-width: 767px) {
  .r-modal { padding: 16px; }
  .r-modal__panel {
    grid-template-columns: minmax(0, 1fr);
    max-height: 90vh;
    overflow-y: auto;
  }
  .r-modal__media { padding: 0; background: none; }
  .r-modal__body { padding: 24px 22px 30px; overflow: visible; }
}

/* 灵感食谱页响应式 */
@media (max-width: 1023px) {
  .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
}
@media (max-width: 767px) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .recipe-card__title { font-size: 15px; }
}

/* ---------- 新闻中心页（news.html） ---------- */
/* 编辑式列表：文字左 + 图右，行间细线；悬浮标题变主色、图轻放大 */
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-list > li { border-top: 1px solid var(--c-line); }
.news-list > li:last-child { border-bottom: 1px solid var(--c-line); }
.news-item {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 56px;
  padding: 32px 4px;
}
.news-item__body { min-width: 0; }
.news-item__meta {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-ink-2);
}
.news-item__title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.news-item__summary {
  margin-top: 10px;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-2);
}
.news-item__media {
  overflow: hidden;
  background: var(--c-soft);
}
.news-item__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.news-item:hover .news-item__img { transform: scale(1.05); }
.news-item:hover .news-item__title { color: var(--c-primary); }
/* 行尾箭头（与首页「最新动态」同款语言：悬浮变主色并右移） */
.news-item__arrow {
  display: inline-flex;
  color: var(--c-ink-3);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.news-item:hover .news-item__arrow { color: var(--c-primary); transform: translateX(4px); }

/* 新闻中心页响应式 */
@media (max-width: 1023px) {
  .news-item { grid-template-columns: 240px minmax(0, 1fr) auto; gap: 24px 36px; }
}
@media (max-width: 767px) {
  .news-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }
  .news-item__arrow { display: none; }
  .news-item__title { font-size: 17px; }
}

/* ---------- 新闻详情页（news-detail.html） ---------- */
/* 文章：居中窄栏（760px），头 + 图 + 正文 + 上下篇 */
.nd-article { padding: 22px 0 88px; }
.nd-head { max-width: 760px; margin-inline: auto; }
.nd-title {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.nd-meta {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-ink-2);
}
.nd-media {
  max-width: 760px;
  margin: 36px auto 0;
  overflow: hidden;
  background: var(--c-soft);
}
.nd-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.nd-body {
  max-width: 760px;
  margin: 44px auto 0;
}
.nd-body p {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  color: var(--c-ink-2);
}
.nd-body p:first-child {
  margin-top: 0;
  font-size: 17px;
  color: var(--c-ink);
}
.nd-nav {
  max-width: 760px;
  margin: 64px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}
.nd-nav__link { display: grid; gap: 6px; }
.nd-nav__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-ink-3);
}
.nd-nav__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.nd-nav__link:hover .nd-nav__title { color: var(--c-primary); }
.nd-nav__link--next { text-align: right; }
.nd-back {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

/* 新闻详情页响应式 */
@media (max-width: 767px) {
  .nd-article { padding: 16px 0 60px; }
  .nd-title { font-size: 24px; }
  .nd-media { margin-top: 26px; }
  .nd-body { margin-top: 32px; }
  .nd-body p { font-size: 15.5px; line-height: 1.9; }
  .nd-nav { margin-top: 44px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nd-nav__link--next { text-align: left; }
}

/* ---------- 品牌故事页（brand.html） ---------- */
/* 序章：左文右图（图为「1998 起点」氛围；标题左对齐与其他模块统一） */
.bp-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px 72px;
  align-items: center;
}
.bp-intro__copy { min-width: 0; }
.bp-intro__title {
  margin-top: 14px;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.bp-intro__body { margin-top: 26px; }
.bp-intro__media {
  margin: 0;
  overflow: hidden;
  background: var(--c-soft);
}
.bp-intro__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.bp-intro__body p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--c-ink-2);
}
.bp-intro__body p:first-child { margin-top: 0; }

/* 理念区影像底：车间图 + 深色遮罩（文字保持可读，深色调性不破） */
.bp-belief {
  position: relative;
  overflow: hidden;
}
.bp-belief__media { position: absolute; inset: 0; }
.bp-belief__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bp-belief__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(36, 30, 27, 0.72);
}
.bp-belief .container { position: relative; z-index: 2; }

/* 理念：三列（深色区） */
.bp-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.bp-value__t {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bp-value__d {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-on-dark-2);
}

/* 制造之旅：大图行左右交替 */
.bp-crafts {
  display: grid;
  gap: 72px;
}
.bp-craft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 72px;
  align-items: center;
}
.bp-craft__media {
  overflow: hidden;
  background: var(--c-soft);
}
.bp-craft__img {
  display: block;
  width: 100%;
  height: auto;
}
.bp-craft__body { max-width: 480px; }
.bp-craft__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.bp-craft__desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-ink-2);
}

/* 大事记：年份主轴 + 事件（块居中；节点悬浮时右侧弹出「对话气泡」配图，不占流） */
.bp-timeline {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.bp-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px 40px;
  align-items: baseline;
  padding: 22px 0 22px 28px;
}
/* 轴线：年份之间用竖线连接（首尾收口）；节点圆点标记 */
.bp-timeline__item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-line);
}
.bp-timeline__item:first-child::before { top: 50%; }
.bp-timeline__item:last-child::before { bottom: 50%; }
.bp-timeline__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-primary);
  transform: translateY(-50%);
}
.bp-timeline__year {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.bp-timeline__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink-2);
}
/* 悬浮「对话气泡」：锚点跟随文字末尾（气泡跟在文字右边、逐行错开） */
.bp-timeline__anchor {
  position: relative;
  display: inline-block;
  width: 0;
  height: 1em;
  vertical-align: middle;
}
.bp-timeline__hover {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  width: 220px;
  padding: 8px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px -20px rgba(42, 36, 33, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.bp-timeline__hover::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--c-surface);
  transform: translateY(-50%) rotate(45deg);
}
.bp-timeline__item:hover .bp-timeline__hover {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.bp-timeline__hover-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
@media (max-width: 1023px) {
  .bp-timeline__hover { display: none; }
}

/* 品牌故事页响应式 */
@media (max-width: 1023px) {
  .bp-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bp-intro__media { order: -1; }
  .bp-crafts { gap: 56px; }
  .bp-craft { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bp-craft__media { order: -1; }
  .bp-craft__body { max-width: none; }
}
@media (max-width: 767px) {
  .bp-intro__title { font-size: 24px; }
  .bp-intro__body p { font-size: 15.5px; line-height: 1.9; }
  .bp-values { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bp-craft__title { font-size: 20px; }
  .bp-timeline__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 18px 0 18px 28px;
  }
  .bp-timeline__year { font-size: 19px; }
}

/* ---------- 联系我们页（contact.html） ---------- */
/* 联系信息 + 留言表单：左信息列表 / 右表单卡 */
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 72px;
  align-items: start;
}
.ct-info {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-info > li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--c-line);
}
.ct-info > li:last-child { border-bottom: 1px solid var(--c-line); }
.ct-info__k {
  font-size: 14px;
  color: var(--c-ink-2);
}
.ct-info__v {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}
.ct-info__v a { transition: color 0.3s; }
.ct-info__v a:hover { color: var(--c-primary); }

/* 留言表单：白卡 + 底线式输入（呼应 banner 的信纸意象） */
.ct-form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 34px 36px 38px;
}
.ct-form__title {
  font-size: 17px;
  font-weight: 600;
}
.ct-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}
.ct-field {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}
.ct-field__label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-ink-2);
}
.ct-field__input {
  width: 100%;
  padding: 10px 0;
  font: inherit;
  font-size: 15px;
  color: var(--c-ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  transition: border-color 0.3s;
}
.ct-field__input:focus {
  outline: none;
  border-bottom-color: var(--c-primary);
}
.ct-field__input::placeholder { color: var(--c-ink-3); }
.ct-field__area {
  resize: vertical;
  min-height: 96px;
}
.ct-form .btn { margin-top: 30px; }
.ct-form__hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--c-primary);
}
.ct-form__hint[hidden] { display: none; }

/* 到访指引：三列 */
.ct-visit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-visit__t {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ct-visit__d {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-2);
}

/* 联系我们页响应式 */
@media (max-width: 1023px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 767px) {
  .ct-form { padding: 26px 22px 30px; }
  .ct-form__row { grid-template-columns: minmax(0, 1fr); }
  .ct-visit { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .f-split { grid-template-columns: 1fr; gap: 40px; }
  .f-stage { aspect-ratio: 16 / 10; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .recipes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .p-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 两行排布时，箭头改为垂直居中于整块内容（而非第一行图片） */
  .p-nav { top: 50%; margin-top: 0; }
}

@media (max-width: 767px) {
  .f-stage { aspect-ratio: 4 / 3; }
  .f-item { padding: 20px 0; }
  .f-item__title { font-size: 18px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .stat__value { font-size: 32px; }
  .stat__unit { font-size: 13px; }
  .recipes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .p-page { gap: 28px 12px; }
  .p-nav { width: 34px; height: 34px; }
  .p-card__name { font-size: 15px; }
  .r-card__title { font-size: 15px; }
  .r-card__body { padding: 0 14px 13px; }

  .news__list { grid-template-columns: 1fr; }

  .news__link {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 0;
  }
  .news__thumb { width: 96px; height: 64px; }
  .news__title { font-size: 15px; }

  .brand-hero { min-height: 420px; }
  .brand-hero__body { padding-block: 44px; }
  .brand-hero__shade {
    background: linear-gradient(
      180deg,
      rgba(36, 30, 27, 0.3) 0%,
      rgba(36, 30, 27, 0.86) 100%
    );
  }

  .hero__content { padding-block: 124px 96px; }
  .hero__indicators { bottom: 24px; }
  .hero__sub { margin-top: 18px; }
  .hero-nav-btn { width: 40px; height: 40px; }
}
