/* ==========================================================================
   优奥工品 · 产品中心子页面专属样式（shop/*.html 店铺页、product/*.html 产品详情页）
   以 style.css 的设计变量与公共组件为基础，不修改公共文件；
   页面级组件统一使用 sw-* / pd-* / intro-* / cta-band / crumbs 语义前缀。
   ========================================================================== */

/* ---------- 公共补位：交替底色 section ---------- */
.section--alt {
  background: var(--bg-alt);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.crumbs a {
  color: inherit;
  opacity: .72;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease;
}
.crumbs a:hover {
  color: var(--primary);
  opacity: 1;
}
.crumbs span {
  opacity: .4;
}
.crumbs b {
  font-weight: 600;
}
/* 深色 hero 内 */
.page-hero .crumbs {
  color: hsla(0, 0%, 100%, .85);
  margin-bottom: 22px;
}
/* 浅色区域（详情页产品信息区） */
.crumbs--light {
  color: var(--ink-2);
  margin: 22px 0 0;
}

/* ---------- 页面首屏基础样式（与 products.css / 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;
}

/* ---------- 紧凑 Hero（店铺页/产品页顶部） ---------- */
.page-hero--sm {
  min-height: 0;
}
.page-hero--sm .page-hero__inner {
  padding-bottom: 56px;
  padding-top: calc(var(--header-h) + 56px);
}
.page-hero--sm .page-hero__title {
  font-size: 40px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
/* 店铺页 Hero「查看本店产品」按钮：补充实色背景，保证在深色 Hero 上清晰可见 */
.page-hero--sm .hero-actions .btn--ghost {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
}
.page-hero--sm .hero-actions .btn--ghost:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---------- 店铺页产品网格（sw-card） ---------- */
.sw-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.sw-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;
}
.sw-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.sw-card__media {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: block;
  overflow: hidden;
}
.sw-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: transform .4s ease;
}
.sw-card:hover .sw-card__media img {
  transform: scale(1.05);
}
.sw-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}
.sw-card__sku {
  color: var(--ink-4);
  font-size: 11.5px;
  letter-spacing: .02em;
}
.sw-card__name {
  color: var(--ink);
  display: -webkit-box;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  margin-top: 8px;
  min-height: 3em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sw-card__name a {
  color: inherit;
  text-decoration: none;
}
.sw-card__name a:hover {
  color: var(--primary);
}
.sw-card__tags {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 8px;
}
.sw-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.sw-card__actions .btn {
  flex: 1;
  font-size: 12.5px;
  padding: 8px 10px;
}
.sw-card__actions .btn--outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}
.sw-card__actions .btn--outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary);
}

/* ---------- 店铺保障承诺（intro） ---------- */
.intro__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.intro__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.intro__card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.intro__icon {
  align-items: center;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
  color: var(--primary);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.intro__icon svg {
  height: 22px;
  width: 22px;
}
.intro__card h3 {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  margin: 12px 0 8px;
}
.intro__card p {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- 产品详情 Hero（pd） ---------- */
.pd-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* 为固定导航头部预留空间，避免上方面包屑被头部遮挡 */
  padding-top: var(--header-h);
}
.pd-hero__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  padding-bottom: 48px;
  padding-top: 40px;
}
.pd-media {
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 0;
  overflow: hidden;
}
.pd-media img {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.pd-media figcaption {
  color: var(--ink-4);
  font-size: 12px;
  padding: 10px 14px;
  text-align: center;
}
.pd-top-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-store {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 100px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
}
.pd-cat {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-3);
  font-size: 12px;
  padding: 4px 12px;
}
.pd-name {
  color: var(--ink);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 16px;
}
.pd-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
}
.pd-meta li {
  color: var(--ink-3);
  font-size: 13.5px;
}
.pd-meta b {
  color: var(--ink-2);
  font-weight: 600;
  margin-right: 6px;
}
.pd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.pd-cta .btn {
  height: 46px;
  padding: 0 22px;
}
.pd-cta .btn--outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}
.pd-cta .btn--outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary);
}
.pd-assure {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.pd-assure li {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}
.pd-assure li:before {
  background: var(--primary);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 4px;
  position: absolute;
  top: 9px;
  width: 6px;
}

/* ---------- 详情两栏布局 ---------- */
.pd-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 300px;
}
.pd-main h2 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  margin: 34px 0 16px;
}
.pd-main h2:first-child {
  margin-top: 0;
}
.pd-prose p {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 2;
  margin-bottom: 14px;
}
.pd-prose p b {
  color: var(--ink-2);
  font-weight: 600;
}
.pd-note {
  color: var(--ink-4);
  font-size: 12.5px;
  line-height: 1.8;
  margin-top: 12px;
}

/* ---------- 规格表 ---------- */
.pd-table {
  border: 1px solid var(--line);
  border-collapse: separate;
  border-radius: var(--radius-lg);
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}
.pd-table th,
.pd-table td {
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
  padding: 12px 16px;
  text-align: left;
}
.pd-table th {
  background: var(--bg-alt);
  color: var(--ink-2);
  font-weight: 600;
  width: 160px;
}
.pd-table td {
  color: var(--ink-3);
}
.pd-table tr:last-child th,
.pd-table tr:last-child td {
  border-bottom: 0;
}
.pd-table--variants thead th {
  background: var(--bg-alt);
  width: auto;
}
.pd-table--variants tbody tr.is-current td {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.pd-table a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.pd-table a:hover {
  text-decoration: underline;
}

/* ---------- 侧栏 ---------- */
.pd-side {
  align-content: start;
  display: grid;
  gap: 20px;
}
.pd-side__box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.pd-side__box h3 {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  margin: 0 0 10px;
}
.pd-side__box p {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.85;
}
.pd-side__box .btn {
  margin-top: 12px;
  width: 100%;
}
.pd-side__box .btn--outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}
.pd-side__box .btn--outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary);
}
.pd-side__phone {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}
.pd-side__phone a {
  color: var(--primary);
  text-decoration: none;
}

/* ---------- 上/下产品导航 ---------- */
.pd-pager {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 26px;
}
.pd-pager a {
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.pd-pager a:hover {
  text-decoration: underline;
}
.pd-pager .pd-pager__all {
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- CTA 条（店铺页 / 产品页底部） ---------- */
.cta-band {
  background: radial-gradient(720px 300px at 85% 0, rgba(180, 20, 20, .3) 0, rgba(180, 20, 20, 0) 60%),
    linear-gradient(160deg, #15181b, #0e1012);
}
.cta-band__inner {
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.cta-band p {
  color: hsla(0, 0%, 100%, .72);
  font-size: 14.5px;
  line-height: 1.85;
  margin: 14px auto 0;
  max-width: 640px;
}
.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- 响应式（与 style.css 断点对齐：1180 / 1024 / 768） ---------- */
@media (max-width: 1180px) {
  .sw-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .intro__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-hero--sm .page-hero__title {
    font-size: 34px;
  }
}
@media (max-width: 1024px) {
  .pd-hero__grid {
    gap: 26px;
    grid-template-columns: 1fr;
  }
  .pd-media {
    max-width: 460px;
  }
  .pd-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .sw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro__grid {
    grid-template-columns: 1fr;
  }
  .page-hero--sm .page-hero__title {
    font-size: 26px;
  }
  .pd-name {
    font-size: 21px;
  }
  .pd-pager {
    flex-direction: column;
    gap: 10px;
  }
  .cta-band h2 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sw-card:hover .sw-card__media img {
    transform: none;
  }
}
