@charset "utf-8";

/* ============================================================
   goods.css — 产品列表（对齐乔锋 product.html）+ 产品详情
   列表内容区用本站 site-wrap；头/底宽度不变
   ============================================================ */

.page-goods {
  --goods: #76B331;
  --goods-deep: #5BA323;
  --u: calc(100vw / 19.2);
  background: #f5f6f7;
}
@media (min-width: 1920px) {
  .page-goods { --u: 100px; }
}
@media (max-width: 768px) {
  .page-goods { --u: calc(100vw / 7.5); }
}

.page-goods .site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}

.page-goods .site-wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
  box-sizing: border-box;
}

.page-goods ul,
.page-goods ol,
.page-goods li { list-style: none; margin: 0; padding: 0; }

.goods-page {
  padding: 0;
  background: #f5f6f7;
}

/* Banner：压缩高度、文案靠上，避免导航下大片留白 */
.page-goods .common-banner {
  height: calc(3.2 * var(--u));
  align-items: flex-end;
  justify-content: center;
}
.page-goods .common-banner .text1 {
  padding-top: 0;
  padding-bottom: calc(.55 * var(--u));
  /* 沿用 .site-wrap 宽度（大屏 84% / 小屏 94%），避免贴边 */
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
}
.page-goods .common-banner .common-title-module .title {
  color: var(--goods);
  padding-bottom: calc(.12 * var(--u));
}
.page-goods .common-banner .common-title-module .desc {
  margin: 0;
  font-size: calc(.22 * var(--u)) !important;
  color: #1a1a1a;
  line-height: 1.45;
  max-width: 36em;
}
@media (max-width: 1200px) {
  .page-goods .common-banner {
    height: auto;
    min-height: 0;
    padding: calc(.7 * var(--u)) 0 calc(.55 * var(--u));
    align-items: flex-end;
  }
}
@media (max-width: 990px) {
  .page-goods .common-banner .common-title-module .desc {
    font-size: calc(.24 * var(--u)) !important;
  }
}

/* ---------- 分类导航 + 搜索（对齐乔锋 product-nav-section） ---------- */
.goods-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: calc(.8 * var(--u));
  line-height: calc(.8 * var(--u));
}
.goods-nav__left {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  padding-left: var(--site-gutter);
  background: #2b2e33;
  display: flex;
  align-items: center;
}
.goods-nav__right {
  flex: 0 0 34.5%;
  width: 34.5%;
  max-width: 34.5%;
  background: var(--goods-deep);
}
.goods-nav__menu {
  position: relative;
  max-width: calc(5 * var(--u));
  display: flex;
  align-items: center;
  z-index: 5;
}
.goods-nav__menu::before {
  content: '';
  display: block;
  width: calc(.24 * var(--u));
  height: calc(.2 * var(--u));
  margin-right: calc(.25 * var(--u));
  background: url("../images/icon-rhombus.png") no-repeat center / contain;
  flex-shrink: 0;
}
.goods-nav__menu::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: calc(.1 * var(--u));
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #fff;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.goods-nav__menu:hover::after,
.goods-nav__menu.is-open::after {
  transform: rotate(180deg);
}
.goods-nav__menu dl {
  margin: 0;
  padding: 0;
  min-width: 0;
}
.goods-nav__menu dt {
  margin: 0;
  padding: 0;
}
.goods-nav__menu dt a {
  display: block;
  font-size: calc(.16 * var(--u));
  font-weight: 600;
  color: #fff;
  line-height: calc(.8 * var(--u));
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(4 * var(--u));
}
.goods-nav__list {
  display: none;
  position: absolute;
  top: 100%;
  left: -6%;
  width: 106%;
  min-width: 220px;
  max-height: calc(4 * var(--u));
  margin: 0;
  padding: 10px 0 10px 30px;
  overflow: auto;
  z-index: 30;
  background: #fff;
  box-shadow: 0 12px 100px rgba(0, 0, 0, .1);
  box-sizing: border-box;
}
.goods-nav__menu:hover .goods-nav__list,
.goods-nav__menu.is-open .goods-nav__list {
  display: block;
}
.goods-nav__list a {
  display: block;
  color: #808080;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  text-decoration: none;
  transition: color .2s ease;
}
.goods-nav__list a:hover,
.goods-nav__list a.is-active {
  color: var(--goods-deep);
}

.goods-nav__search {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: calc(.8 * var(--u));
  padding: 0 calc(.3 * var(--u));
  box-sizing: border-box;
}
.goods-nav__search-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.goods-nav__search-btn .icon {
  font-size: calc(.2 * var(--u));
  color: #fff;
}
.goods-nav__search-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  margin-left: calc(.15 * var(--u));
  padding: 0;
  border: 0;
  background: transparent;
  font-size: calc(.16 * var(--u));
  color: #fff;
  line-height: calc(.8 * var(--u));
  outline: none;
}
.goods-nav__search-input::placeholder {
  color: rgba(255, 255, 255, .75);
}

@media (max-width: 1200px) {
  .goods-nav {
    flex-wrap: wrap;
  }
  .goods-nav__left,
  .goods-nav__right {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }
  .goods-nav__left {
    padding-left: calc(.3 * var(--u));
  }
  .goods-nav__menu {
    max-width: 100%;
  }
}

/* ---------- 产品网格（对齐乔锋 / 搜索页产品卡） ---------- */
.goods-list {
  padding: 0 0 calc(1 * var(--u));
  background: #f5f6f7;
}
.goods-grid {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.goods-card {
  /* 整卡渐变：上灰 → 下白 */
  background: linear-gradient(180deg, #9a9ea4 0%, #d5d7db 45%, #ffffff 100%);
  overflow: hidden;
  cursor: pointer;
  clip-path: polygon(
    calc(.3 * var(--u)) 0,
    100% 0,
    100% calc(100% - .3 * var(--u)),
    calc(100% - .3 * var(--u)) 100%,
    0 100%,
    0 calc(.3 * var(--u))
  );
  transition: box-shadow .3s ease, transform .3s ease;
  display: flex;
  flex-direction: column;
}
.goods-grid > .goods-card {
  width: calc(33.333% - (.4 * var(--u) * 2 / 3));
  margin-right: calc(.4 * var(--u));
  margin-top: calc(.6 * var(--u));
}
.goods-grid > .goods-card:nth-child(-n+3) {
  margin-top: calc(.35 * var(--u));
}
.goods-grid > .goods-card:nth-child(3n) {
  margin-right: 0;
}
.goods-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  transform: translateY(-4px);
}
.goods-card[hidden] {
  display: none !important;
}
.goods-card__link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(6 * var(--u));
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.goods-card__top {
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
}
.goods-card__pic {
  margin: 0;
  padding: calc(.35 * var(--u)) calc(.25 * var(--u)) calc(.15 * var(--u));
  position: relative;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.goods-card__pic img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform .45s ease;
}
.goods-card:hover .goods-card__pic img {
  transform: scale(1.04);
}
.goods-card__body,
.goods-card__foot {
  box-sizing: border-box;
  min-height: calc(2 * var(--u));
  padding: 0 calc(.3 * var(--u)) calc(.4 * var(--u));
  background: transparent;
  text-align: center;
  position: relative;
}
.goods-card__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.goods-card__label {
  position: relative;
  display: inline-block;
  min-width: calc(.95 * var(--u));
  font-size: calc(.14 * var(--u));
  font-weight: 400;
  color: var(--goods-deep);
  padding: 1px;
}
.goods-card__label span {
  line-height: 1;
  display: block;
  position: relative;
  z-index: 1;
  background: #fff;
  clip-path: polygon(
    calc(.1 * var(--u)) 0,
    100% 0,
    100% calc(100% - .1 * var(--u)),
    calc(100% - .1 * var(--u)) 100%,
    0 100%,
    0 calc(.1 * var(--u))
  );
  padding: calc(.1 * var(--u)) calc(.2 * var(--u));
}
.goods-card__label::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(
    calc(.1 * var(--u)) 0,
    100% 0,
    100% calc(100% - .1 * var(--u)),
    calc(100% - .1 * var(--u)) 100%,
    0 100%,
    0 calc(.1 * var(--u))
  );
  background: rgba(91, 163, 35, .2);
}
.goods-card__name {
  margin: calc(.2 * var(--u)) 0 calc(.1 * var(--u));
  font-size: calc(.22 * var(--u));
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color .25s ease;
}
.goods-card:hover .goods-card__name {
  color: var(--goods-deep);
}
.goods-card__desc {
  margin: 0;
  font-size: calc(.16 * var(--u));
  font-weight: 400;
  color: #808080;
  line-height: 1.57;
  text-align: center;
  min-height: calc(.58 * var(--u));
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.goods-card__cta {
  clip-path: polygon(
    calc(.2 * var(--u)) 0,
    100% 0,
    100% calc(100% - .2 * var(--u)),
    calc(100% - .2 * var(--u)) 100%,
    0 100%,
    0 calc(.2 * var(--u))
  );
  opacity: 0;
  transform: translateY(-30px);
  width: calc(4.13 * var(--u));
  max-width: 90%;
  height: calc(.58 * var(--u));
  background: var(--goods-deep);
  transition: .3s ease;
  margin: auto auto calc(-.8 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(.3 * var(--u));
  box-sizing: border-box;
  font-size: calc(.14 * var(--u));
  color: #fff;
  font-style: italic;
  font-weight: 600;
}
.goods-card__cta::after {
  content: '';
  display: block;
  width: 11px;
  height: 12px;
  background: url("../images/news-btn-arrow.png") no-repeat center / contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.goods-card__cta .icon { display: none; }
.goods-card:hover .goods-card__cta {
  opacity: 1;
  transform: translateY(calc(-.6 * var(--u)));
}

.goods-empty {
  margin: 0;
  padding: calc(.8 * var(--u)) 0;
  text-align: center;
  font-size: 15px;
  color: var(--c-text-muted, #888);
}
.goods-empty[hidden] {
  display: none !important;
}

/* ---------- 分页（对齐新闻列表） ---------- */
.goods-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: calc(.8 * var(--u)) 0 calc(.2 * var(--u));
  font-size: 14px;
  line-height: 1;
}
.goods-pagination .btn,
.goods-pagination a,
.goods-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.goods-pagination a:hover {
  color: var(--goods-deep);
  border-color: var(--goods);
}
.goods-pagination .active,
.goods-pagination span.active,
.goods-pagination span.btn.active {
  background: var(--goods);
  border-color: var(--goods);
  color: #fff;
  cursor: default;
}
.goods-pagination .prev,
.goods-pagination .next {
  min-width: auto;
}

@media (max-width: 1200px) {
  .goods-grid > .goods-card {
    width: calc(50% - (.2 * var(--u)));
  }
  .goods-grid > .goods-card:nth-child(3n) {
    margin-right: calc(.4 * var(--u));
  }
  .goods-grid > .goods-card:nth-child(2n) {
    margin-right: 0;
  }
}
@media (max-width: 768px) {
  .goods-grid > .goods-card,
  .goods-grid > .goods-card:nth-child(3n),
  .goods-grid > .goods-card:nth-child(2n) {
    width: 100%;
    margin-right: 0;
  }
  .goods-nav__menu dt a {
    font-size: calc(.28 * var(--u));
  }
  .goods-nav__search-input {
    font-size: calc(.28 * var(--u));
  }
  .goods-card__name {
    font-size: 16px;
  }
  .goods-card__desc {
    font-size: 14px;
  }
  .goods-card__label {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .goods-card,
  .goods-card__pic img,
  .goods-card__cta {
    transition: none;
  }
  .goods-card:hover {
    transform: none;
  }
}

/* ============================================================
   产品详情页 goods-read
   ============================================================ */

.page-goods-read .site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}

.goods-read {
  padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 8vw, 96px);
  background: #fff;
}

.goods-read .site-wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
}

/* ---------- 面包屑 ---------- */
.goods-read__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: clamp(24px, 3vw, 36px);
  font-size: 13px;
  color: var(--c-text-muted);
}

.goods-read__crumb a {
  color: var(--c-text-sub);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.goods-read__crumb a:hover {
  color: var(--c-accent, #5BA323);
}

.goods-read__crumb-sep {
  color: #ccc;
}

.goods-read__crumb-current {
  color: #1a1a1a;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 概览：图库 + 信息 ---------- */
.goods-read__showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.goods-gallery__stage {
  position: relative;
  background: linear-gradient(180deg, #9a9ea4 0%, #d5d7db 45%, #ffffff 100%);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.goods-gallery__main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 2vw, 24px);
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.goods-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .45s var(--ease), opacity .2s var(--ease);
}

.goods-gallery__main img.is-switching {
  opacity: .35;
}

.goods-gallery__main:hover img {
  transform: scale(1.03);
}

.goods-gallery__main:hover img.is-switching {
  transform: none;
}

.goods-gallery__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #333;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.goods-gallery__zoom:hover {
  background: var(--c-accent, #5BA323);
  color: #fff;
}

.goods-gallery__zoom-icon {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.goods-gallery__zoom-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 1px;
}

.goods-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.goods-gallery__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f5f5f7;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.goods-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.goods-gallery__thumb:hover,
.goods-gallery__thumb.is-active {
  border-color: var(--c-accent, #5BA323);
  box-shadow: 0 0 0 1px rgba(91, 163, 35, .12);
}

.goods-gallery__thumbs:has(.goods-gallery__thumb:only-child) {
  display: none;
}

.goods-read__series {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent, #5BA323);
}

.goods-read__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  letter-spacing: .02em;
}

.goods-read__summary {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-sub);
}

.goods-read__summary--muted {
  color: #888;
}

.goods-read__summary p {
  margin: 0 0 .6em;
}

.goods-read__summary p:last-child {
  margin-bottom: 0;
}

.goods-read__meta {
  margin: 0 0 28px;
  padding: 18px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.goods-read__meta-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
}

.goods-read__meta-row dt {
  margin: 0;
  color: var(--c-text-muted);
}

.goods-read__meta-row dd {
  margin: 0;
  color: #1a1a1a;
  font-weight: 500;
}

.goods-read__meta-row dd a {
  color: inherit;
  text-decoration: none;
}

.goods-read__meta-row dd a:hover {
  color: var(--c-accent, #5BA323);
}

.goods-read__price {
  color: var(--c-accent, #5BA323) !important;
  font-size: 18px;
  font-weight: 700 !important;
}

.goods-read__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.goods-read__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.goods-read__btn--primary {
  color: #fff;
  background: var(--c-accent, #5BA323);
  border: 1px solid var(--c-accent, #5BA323);
}

.goods-read__btn--primary:hover {
  background: #a80d26;
  border-color: #a80d26;
  transform: translateY(-1px);
}

.goods-read__btn--ghost {
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #ddd;
}

.goods-read__btn--ghost:hover {
  color: var(--c-accent, #5BA323);
  border-color: var(--c-accent, #5BA323);
}

.goods-read__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.goods-read__points li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--c-text-sub);
}

.goods-read__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent, #5BA323);
}

/* ---------- 吸顶 Tab ---------- */
.goods-read__tabs {
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 40;
  margin-bottom: clamp(32px, 4vw, 48px);
  background: rgba(255, 255, 255, .92);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.goods-read__tabs-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.goods-read__tab {
  position: relative;
  flex: 0 0 auto;
  padding: 16px 8px;
  margin-right: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-sub);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.goods-read__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background .2s var(--ease);
}

.goods-read__tab:hover,
.goods-read__tab.is-active {
  color: var(--c-accent, #5BA323);
}

.goods-read__tab.is-active::after {
  background: var(--c-accent, #5BA323);
}

/* ---------- 详情 / 相关 ---------- */
.goods-read__detail,
.goods-read__related {
  scroll-margin-top: calc(var(--header-h, 60px) + 64px);
}

.goods-read__section-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.goods-read__section-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: #1a1a1a;
}

.goods-read__section-desc {
  margin: 0;
  font-size: 14px;
  color: var(--c-text-muted);
}

.goods-read__body {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
}

.goods-read__body p {
  margin: 0 0 1em;
}

.goods-read__body strong,
.goods-read__body b {
  color: #1a1a1a;
  font-weight: 700;
}

.goods-read__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2em auto;
  border-radius: 12px;
  content-visibility: auto;
  contain-intrinsic-size: 800px 450px;
}

.goods-read__body h2,
.goods-read__body h3,
.goods-read__body h4 {
  margin: 1.6em 0 .6em;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

.goods-read__body h2 { font-size: 1.45em; }
.goods-read__body h3 { font-size: 1.25em; }

.goods-read__body table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 14px;
}

.goods-read__body th,
.goods-read__body td {
  padding: 12px 16px;
  border: 1px solid #eee;
  text-align: left;
}

.goods-read__body th {
  background: #f8f8f8;
  font-weight: 600;
  color: #1a1a1a;
}

.goods-read__body video,
.goods-read__body iframe {
  display: block;
  max-width: 100%;
  margin: 1.2em auto;
  border: 0;
  border-radius: 12px;
}

.goods-read__empty {
  padding: clamp(40px, 6vw, 72px) 24px;
  text-align: center;
  background: #f5f5f7;
  border-radius: 16px;
}

.goods-read__empty p {
  margin: 0 0 20px;
  color: var(--c-text-sub);
}

.goods-read__related {
  margin-top: clamp(56px, 7vw, 88px);
}

.goods-read__section-head--related {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.goods-related__nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.goods-related__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), opacity .2s var(--ease);
}

.goods-related__btn:hover:not(:disabled) {
  color: #fff;
  border-color: var(--c-accent, #5BA323);
  background: var(--c-accent, #5BA323);
}

.goods-related__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.goods-related {
  position: relative;
}

.goods-related__viewport {
  overflow: hidden;
}

.goods-related__track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  transition: transform .45s var(--ease);
  will-change: transform;
}

.goods-related__slide {
  flex: 0 0 calc((100% - 2 * clamp(16px, 2vw, 24px)) / 3);
  min-width: 0;
}

.goods-related__slide .goods-card__link {
  height: 100%;
}

/* ---------- 产品留言 ---------- */
.goods-read__message {
  margin-top: clamp(56px, 7vw, 88px);
  scroll-margin-top: calc(var(--header-h, 60px) + 64px);
}

.goods-read__message-box {
  padding: clamp(24px, 3vw, 40px);
  background: #f5f5f7;
  border-radius: 20px;
}

.goods-msg__product {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.goods-msg__product-label {
  font-size: 13px;
  color: var(--c-text-muted);
}

.goods-msg__product-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

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

.goods-msg__field {
  min-width: 0;
}

.goods-msg__field--full {
  grid-column: 1 / -1;
}

.goods-msg__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.goods-msg__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.goods-msg__input:focus {
  border-color: rgba(91, 163, 35, .45);
  box-shadow: 0 0 0 3px rgba(91, 163, 35, .08);
}

.goods-msg__textarea {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.7;
}

.goods-msg__code {
  display: flex;
  align-items: center;
  gap: 12px;
}

.goods-msg__code .goods-msg__input {
  flex: 1;
}

.goods-msg__code img {
  height: 48px;
  border-radius: 8px;
  cursor: pointer;
}

.goods-msg__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .goods-msg__grid {
    grid-template-columns: 1fr;
  }

  .goods-read__message-box {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .goods-msg__actions {
    flex-direction: column;
  }

  .goods-msg__actions .goods-read__btn {
    width: 100%;
  }
}

.goods-grid--related {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.goods-related:not(:has(.goods-related__slide)),
.goods-read__related:has(.goods-related__track:not(:has(.goods-related__slide))) {
  display: none;
}

.goods-read__related:has(.goods-related__track:not(:has(.goods-related__slide))) {
  display: none;
}

/* ---------- 底栏上下篇 ---------- */
.goods-read__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.goods-read__pager {
  flex: 1 1 280px;
}

.goods-read__pager-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

.goods-read__pager-item:last-child {
  margin-bottom: 0;
}

.goods-read__pager-label {
  color: var(--c-text-muted);
  flex: 0 0 auto;
}

.goods-read__pager-item a {
  color: #1a1a1a;
  text-decoration: none;
}

.goods-read__pager-item a:hover {
  color: var(--c-accent, #5BA323);
}

.goods-read__pager-empty {
  color: #bbb;
}

.goods-read__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.goods-read__back:hover {
  color: var(--c-accent, #5BA323);
  border-color: var(--c-accent, #5BA323);
}

/* ---------- 灯箱 ---------- */
.goods-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(0, 0, 0, .88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.goods-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.goods-lightbox[hidden] {
  display: none !important;
}

.goods-lightbox.is-open[hidden] {
  display: flex !important;
}

.goods-lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}

.goods-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.goods-lightbox__close:hover {
  background: rgba(255, 255, 255, .22);
}

@media (max-width: 1024px) {
  .goods-read__showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .goods-related__slide {
    flex-basis: calc((100% - clamp(16px, 2vw, 24px)) / 2);
  }

  .goods-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .goods-gallery__stage {
    border-radius: 14px;
    aspect-ratio: 1 / 1;
  }

  .goods-gallery__thumb {
    width: 60px;
    height: 60px;
  }

  .goods-read__title {
    font-size: 26px;
  }

  .goods-read__actions {
    flex-direction: column;
  }

  .goods-read__btn {
    width: 100%;
  }

  .goods-read__meta-row {
    grid-template-columns: 76px 1fr;
  }

  .goods-related__slide {
    flex-basis: 100%;
  }

  .goods-grid--related {
    grid-template-columns: 1fr;
  }

  .goods-read__section-head--related {
    align-items: center;
  }

  .goods-related__btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .goods-read__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .goods-read__back {
    align-self: flex-start;
  }
}

.goods-faq {
  margin: 8px 0 24px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.goods-faq__item {
  border-bottom: 1px solid #eef2f7;
}
.goods-faq__item:last-child {
  border-bottom: 0;
}
.goods-faq__q {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  color: #0f172a;
}
.goods-faq__q::-webkit-details-marker {
  display: none;
}
.goods-faq__a {
  padding: 0 16px 14px;
  color: #475569;
  line-height: 1.7;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .goods-gallery__main img,
  .goods-read__btn {
    transition: none;
  }

  .goods-gallery__main:hover img,
  .goods-read__btn--primary:hover {
    transform: none;
  }
}
