/* ==========================================================================
   优奥工品 · 产品中心页专属样式（products.html）
   以 style.css 的设计变量与公共组件为基础，不修改公共文件；
   页面级组件统一使用 shop-* / product-* / filter-* / flow-* / why-* 语义前缀。
   ========================================================================== */

/* ---------- 公共补位：交替底色 section（style.css 未提供，仅页面内使用） ---------- */
.section--alt {
  background: var(--bg-alt);
}

/* ---------- 页面首屏（page-hero，与 services.css 保持一致的公共写法） ---------- */
.page-hero {
  align-items: center;
  background: #f2f3f5;
  display: flex;
  min-height: 64vh;
  overflow: hidden;
  position: relative;
}
.page-hero__bg {
  background-image: url(../hero.png);
  background-position: center 52%;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.01);
}
.page-hero__veil {
  background: radial-gradient(920px 560px at 88% 6%, rgba(180, 20, 20, .26) 0, rgba(180, 20, 20, 0) 60%),
    linear-gradient(100deg, rgba(12, 14, 17, .72), rgba(12, 14, 17, .42) 32%, rgba(12, 14, 17, .14) 64%, rgba(12, 14, 17, 0));
  inset: 0;
  position: absolute;
}
.page-hero__inner {
  padding-bottom: 60px;
  padding-top: calc(var(--header-h) + 84px);
  position: relative;
  z-index: 2;
}
.page-hero__eyebrow {
  align-items: center;
  background: hsla(0, 0%, 100%, .05);
  border: 1px solid hsla(0, 0%, 100%, .18);
  border-radius: 100px;
  color: hsla(0, 0%, 100%, .86);
  display: inline-flex;
  font-size: 13px;
  gap: 12px;
  letter-spacing: .06em;
  margin-bottom: 22px;
  padding: 8px 18px 8px 14px;
}
.page-hero__eyebrow:before {
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(180, 20, 20, .28);
  content: "";
  height: 7px;
  width: 7px;
}
.page-hero__title {
  color: #fff;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.24;
  max-width: 18em;
}
.page-hero__desc {
  color: hsla(0, 0%, 100%, .78);
  font-size: 16.5px;
  line-height: 1.95;
  margin-top: 22px;
  max-width: 680px;
}
.page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 30px;
}
.page-hero__stat b {
  color: #fff;
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.page-hero__stat span {
  color: hsla(0, 0%, 100%, .62);
  font-size: 13px;
  line-height: 1.6;
}

/* 板块锚点速览 */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.anchor-nav a {
  align-items: center;
  background: hsla(0, 0%, 100%, .06);
  border: 1px solid hsla(0, 0%, 100%, .22);
  border-radius: 100px;
  color: hsla(0, 0%, 100%, .88);
  display: inline-flex;
  font-size: 13.5px;
  height: 40px;
  padding: 0 18px;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- 店铺总览（shop） ---------- */
.shop__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.shop__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.shop__card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.shop__head {
  background: linear-gradient(150deg, #15181b, #0d0f11);
  padding: 26px 26px 22px;
  position: relative;
}
.shop__head:after {
  background: radial-gradient(320px 160px at 90% 0, rgba(180, 20, 20, .32), rgba(180, 20, 20, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.shop__badge {
  background: rgba(180, 20, 20, .28);
  border: 1px solid rgba(217, 67, 67, .42);
  border-radius: 100px;
  color: #f0a8a8;
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 5px 13px;
  position: relative;
  z-index: 1;
}
.shop__name {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  margin: 14px 0 0;
  position: relative;
  z-index: 1;
}
.shop__name a {
  color: inherit;
  text-decoration: none;
}
.shop__name a:hover {
  text-decoration: underline;
}
.shop__card--light .shop__name a {
  color: inherit;
}
.shop__head p {
  color: hsla(0, 0%, 100%, .66);
  font-size: 13.5px;
  line-height: 1.8;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
/* 京东自营店：浅色头部，形成视觉区分 */
.shop__card--light .shop__head {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.shop__card--light .shop__head:after {
  display: none;
}
.shop__card--light .shop__name {
  color: var(--ink);
}
.shop__card--light .shop__head p {
  color: var(--ink-3);
}
.shop__card--light .shop__badge {
  color: var(--ink-2);
}
.shop__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
}
.shop__meta {
  display: grid;
  gap: 12px;
}
.shop__meta li {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
}
.shop__meta li:before {
  background: var(--primary);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 11px;
  width: 6px;
}
.shop__meta li b {
  color: var(--ink-2);
  font-weight: 600;
}
.shop__actions {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
}
.shop__actions .btn {
  flex: 1;
}
/* 次级按钮： outline 风格 */
.btn--outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn--outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary);
  transform: none;
  box-shadow: none;
}

/* ---------- 选购流程（flow） ---------- */
.flow__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: flow;
}
.flow__step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.flow__step:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.flow__num {
  align-items: center;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  margin-bottom: 16px;
  width: 36px;
}
.flow__step h3 {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.flow__step p {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.85;
}
.flow__step em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

/* ---------- 为什么在这里买（why） ---------- */
.why__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.why__card {
  background: hsla(0, 0%, 100%, .045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background-color .28s ease, border-color .28s ease, transform .28s ease;
}
.why__card:hover {
  background: hsla(0, 0%, 100%, .08);
  border-color: rgba(217, 67, 67, .55);
  transform: translateY(-6px);
}
.why__icon {
  align-items: center;
  background: rgba(180, 20, 20, .22);
  border: 1px solid rgba(217, 67, 67, .38);
  border-radius: var(--radius);
  color: #f0a8a8;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}
.why__icon svg {
  height: 24px;
  width: 24px;
}
.why__card h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.why__card p {
  color: hsla(0, 0%, 100%, .72);
  font-size: 13.5px;
  line-height: 1.85;
  margin-top: 10px;
}
.why__card p b {
  color: hsla(0, 0%, 100%, .9);
  font-weight: 600;
}
.section--why {
  background: radial-gradient(900px 420px at 12% 0, rgba(180, 20, 20, .3) 0, rgba(180, 20, 20, 0) 62%),
    linear-gradient(160deg, #15181b, #0e1012);
}

/* 页面购买提示条 */
.product-note {
  background: var(--primary-50);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
  margin-top: 30px;
  padding: 18px 22px;
}
.product-note b {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- CTA 联系板块（沿用 contact 组件，补充 QR 展示样式） ---------- */
.contact__form--qr {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.contact__form--qr h3 {
  margin: 0 0 8px;
}
.contact__qr-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
  height: auto;
  margin: 0 auto 18px;
  max-width: 260px;
  width: 100%;
}
.contact__qr-tip {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.contact__qr-phone {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.contact__qr-phone a {
  color: var(--primary);
  text-decoration: none;
}

/* ---------- 响应式（与 style.css 断点对齐：1180 / 1024 / 768） ---------- */
@media (max-width: 1180px) {
  .page-hero__title {
    font-size: 42px;
  }
}
@media (max-width: 1024px) {
  .page-hero {
    min-height: 0;
  }
  .page-hero__inner {
    padding-bottom: 56px;
    padding-top: calc(var(--header-h) + 64px);
  }
  .shop__grid {
    grid-template-columns: 1fr;
  }
  .product__grid {
    grid-template-columns: 1fr;
  }
  .flow__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .page-hero__title {
    font-size: 30px;
  }
  .page-hero__desc {
    font-size: 15px;
    margin-top: 18px;
  }
  .page-hero__stats {
    gap: 12px 28px;
  }
  .anchor-nav {
    gap: 10px;
    margin-top: 28px;
  }
  .anchor-nav a {
    font-size: 12.5px;
    height: 38px;
    padding: 0 14px;
  }
  .flow__grid,
  .why__grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__bg {
    transform: none;
  }
}
