/* 产品中心与产品详情专用样式。头尾、颜色和字体继续使用 style.css。 */
.product-page {
  background: #f7f7f7;
}
.product-container {
  width: 77.083333%;
  max-width: 1500px;
  margin: 0 auto;
}
.products-banner {
  position: relative;
  height: calc(746 * var(--u));
  background: #071027 url('../images/products-banner.jpg') center / cover no-repeat;
  color: white;
}
.products-banner > div {
  position: absolute;
  top: calc(328 * var(--u));
  left: 0;
  right: 0;
  text-align: center;
}
.products-banner > div p {
  font: 700 calc(62 * var(--u))/1.3 Arial, sans-serif;
  color: rgba(255, 255, 255, .35);
}
.products-banner > div h1 {
  margin-top: calc(-42 * var(--u));
  font-size: calc(28 * var(--u));
  font-weight: 400;
}
.product-subnav {
  background: white;
  height: calc(80 * var(--u));
}
.subnav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: calc(15 * var(--u));
  white-space: nowrap;
  color: #666;
  font-size: calc(18 * var(--u));
}
.breadcrumbs svg {
  display: block;
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  fill: #444;
}
.breadcrumbs a:hover {
  color: var(--red);
}
.category-nav {
  display: flex;
  align-self: stretch;
  gap: calc(55 * var(--u));
}
.category-nav a {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: #777;
  font-size: calc(21 * var(--u));
}
.category-nav a.active {
  color: #333;
}
.category-nav a.active::after,
.category-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(82 * var(--u));
  height: 3px;
  background: var(--red);
}
/* 产品列表 */
.catalog-content {
  padding: calc(103 * var(--u)) 0 calc(170 * var(--u));
  min-height: calc(2465 * var(--u));
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(38 * var(--u));
}
.catalog-card {
  min-width: 0;
  height: calc(665 * var(--u));
  background: white;
  transition: transform .35s ease, box-shadow .35s ease;
}
.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px #00000009;
}
.catalog-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(333 * var(--u));
  border-bottom: 1px solid #f7f7f7;
  overflow: hidden;
}
.catalog-picture img {
  max-width: 60%;
  width: auto;
  height: calc(200 * var(--u));
  object-fit: contain;
  transition: transform .35s ease;
}
.catalog-card:hover img {
  transform: scale(1.05);
}
.catalog-card-copy {
  padding: calc(41 * var(--u)) calc(33 * var(--u)) 0;
  text-align: center;
}
.catalog-card-copy h2 {
  margin-bottom: calc(12 * var(--u));
  font-size: calc(36 * var(--u));
  font-weight: 400;
  line-height: 1.5;
}
.catalog-card-copy p {
  font-size: calc(19 * var(--u));
  line-height: 1.9;
  color: #999;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.catalog-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: calc(178 * var(--u));
  height: calc(55 * var(--u));
  margin-top: calc(50 * var(--u));
  border: 1px solid #eee;
  border-radius: 20px;
  font-size: calc(19 * var(--u));
  color: #777;
  transition: background .25s, color .25s, border-color .25s;
}
.catalog-detail:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.catalog-pagination {
  display: flex;
  justify-content: center;
  gap: calc(12 * var(--u));
  margin-top: calc(78 * var(--u));
}
.catalog-pagination button {
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  padding: 0;
  background: #e8e9eb;
  border: 0;
  font-size: calc(15 * var(--u));
  color: #777;
}
.catalog-pagination button[data-page-step] {
  font-size: calc(29 * var(--u));
  line-height: 1;
}
.catalog-pagination button.active {
  background: var(--red);
  color: white;
}
.catalog-pagination button:disabled {
  opacity: .45;
  cursor: default;
}
.category-empty {
  padding: 100px 20px;
  background: white;
  text-align: center;
}
.category-empty h2 {
  font-size: 24px;
  font-weight: 400;
}
.category-empty p {
  margin: 15px 0 25px;
  color: #888;
}
.category-empty a {
  display: inline-block;
  padding: 10px 28px;
  background: var(--red);
  color: white;
}
/* 产品详情 */
.detail-content {
  padding: calc(104 * var(--u)) 0 calc(163 * var(--u));
}
.detail-summary {
  display: flex;
  justify-content: space-between;
  gap: calc(64 * var(--u));
  height: calc(646 * var(--u));
  padding: calc(55 * var(--u)) calc(46 * var(--u));
  background: white;
}
.detail-info {
  flex: 1;
  min-width: 0;
  padding-top: calc(20 * var(--u));
}
.detail-info h2 {
  padding-bottom: calc(22 * var(--u));
  border-bottom: 1px solid #ddd;
  font-size: calc(36 * var(--u));
  font-weight: 500;
}
.detail-description {
  margin-top: calc(33 * var(--u));
  padding-bottom: calc(35 * var(--u));
  border-bottom: 1px solid #ddd;
}
.detail-description p {
  font-size: calc(16 * var(--u));
  line-height: 2.55;
}
.inquiry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(289 * var(--u));
  height: calc(55 * var(--u));
  margin-top: calc(48 * var(--u));
  color: white;
  background: #ec001b;
  font-size: calc(19 * var(--u));
}
.inquiry-button:hover {
  background: #d6001a;
}
.product-gallery {
  width: calc(658 * var(--u));
  display: grid;
  grid-template-columns: calc(117 * var(--u)) 1fr;
  gap: calc(25 * var(--u));
  align-items: center;
}
.gallery-sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(7 * var(--u));
}
.gallery-step {
  display: block;
  height: calc(19 * var(--u));
  padding: 0;
  border: 0;
  line-height: 1;
  color: #d33636;
  background: transparent;
  font-size: calc(23 * var(--u));
}
.gallery-step:disabled {
  opacity: .35;
  cursor: default;
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
}
.gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(109 * var(--u));
  width: 100%;
  background: white;
  border: 1px solid #e9e9e9;
  padding: calc(12 * var(--u));
  transition: border-color .25s;
}
.gallery-thumb.active {
  border: 2px solid #dd3434;
}
.gallery-thumb img {
  width: auto;
  max-width: 100%;
  height: calc(70 * var(--u));
  object-fit: contain;
}
.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(516 * var(--u));
  border: 1px solid #eee;
  background: white;
  padding: calc(40 * var(--u));
  cursor: zoom-in;
}
.gallery-main img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: calc(358 * var(--u));
  object-fit: contain;
}
.description-panel,
.recommend-panel {
  background: white;
  padding: calc(45 * var(--u)) calc(48 * var(--u));
}
.description-panel {
  margin-top: calc(60 * var(--u));
  min-height: calc(610 * var(--u));
}
.description-panel h2,
.recommend-panel h2 {
  padding-bottom: calc(20 * var(--u));
  margin-bottom: calc(30 * var(--u));
  font-size: calc(30 * var(--u));
  font-weight: 400;
  border-bottom: 1px solid #eee;
}
.description-panel p {
  font-size: calc(14 * var(--u));
  line-height: 2.4;
}
.recommend-panel {
  margin-top: calc(68 * var(--u));
  min-height: calc(608 * var(--u));
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(55 * var(--u));
}
.recommend-card {
  text-align: center;
  padding: calc(60 * var(--u)) calc(10 * var(--u)) 0;
}
.recommend-card>a:first-child {
  height: calc(164 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
}
.recommend-card img {
  width: calc(266 * var(--u));
  max-width: 100%;
  height: auto;
}
.recommend-card h3 {
  margin-top: calc(38 * var(--u));
  font-size: calc(28 * var(--u));
  font-weight: 400;
}
.recommend-link {
  display: inline-block;
  border: 1px solid #eee;
  padding: calc(6 * var(--u)) calc(30 * var(--u));
  margin-top: calc(43 * var(--u));
  font-size: calc(17 * var(--u));
  color: #777;
}
.recommend-link:hover {
  color: var(--red);
  border-color: var(--red);
}
.detail-back {
  text-align: right;
  margin-top: 18px;
  font-size: 14px;
}
.detail-back a:hover { color: var(--red); }
.product-lightbox {
  width: min(760px, 92vw);
  margin: auto;
  text-align: center;
}
.product-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin: auto;
  object-fit: contain;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .product-container { width: 90%; }
  .products-banner { height: 420px; }
  .products-banner > div { top: 190px; }
  .products-banner > div p { font-size: 42px; }
  .products-banner > div h1 { font-size: 24px; margin-top: -8px; }
  .product-subnav { height: auto; }
  .subnav-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .breadcrumbs { font-size: 13px; padding: 15px 0; gap: 10px; }
  .breadcrumbs svg { width: 15px; height: 15px; }
  .category-nav { overflow-x: auto; gap: 30px; }
  .category-nav a { min-height: 52px; font-size: 15px; }
  .catalog-content { min-height: 600px; padding: 45px 0 65px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .catalog-card { height: auto; }
  .catalog-picture { height: 220px; }
  .catalog-picture img { height: 135px; }
  .catalog-card-copy { padding: 22px 20px 25px; }
  .catalog-card-copy h2 { font-size: 26px; }
  .catalog-card-copy p { font-size: 13px; }
  .catalog-detail { width: 128px; height: 38px; margin-top: 25px; font-size: 14px; }
  .catalog-pagination { margin-top: 40px; gap: 10px; }
  .catalog-pagination button { width: 36px; height: 36px; font-size: 14px; }
  .detail-content { padding: 45px 0 70px; }
  .detail-summary { height: auto; flex-direction: column; padding: 30px; gap: 30px; }
  .detail-info { padding-top: 0; }
  .detail-info h2 { font-size: 28px; padding-bottom: 15px; }
  .detail-description { margin-top: 20px; padding-bottom: 20px; }
  .detail-description p { font-size: 14px; line-height: 2; }
  .inquiry-button { width: 200px; height: 44px; margin-top: 25px; font-size: 16px; }
  .product-gallery { width: 100%; grid-template-columns: 80px 1fr; gap: 15px; }
  .gallery-sidebar { gap: 6px; }
  .gallery-step { height: 18px; font-size: 20px; }
  .gallery-thumbs { gap: 8px; }
  .gallery-thumb { height: 74px; padding: 8px; }
  .gallery-thumb img { height: 50px; }
  .gallery-main { height: 340px; padding: 25px; }
  .gallery-main img { height: 240px; }
  .description-panel,.recommend-panel { padding: 28px; min-height: 320px; margin-top: 30px; }
  .description-panel h2,.recommend-panel h2 { font-size: 24px; margin-bottom: 20px; padding-bottom: 15px; }
  .description-panel p { font-size: 14px; line-height: 2; }
  .recommend-grid { gap: 20px; }
  .recommend-card { padding: 10px 0 0; }
  .recommend-card>a:first-child { height: 120px; }
  .recommend-card h3 { font-size: 22px; margin-top: 20px; }
  .recommend-link { font-size: 13px; padding: 6px 15px; margin-top: 20px; }
}
@media (max-width: 520px) {
  .products-banner { height: 330px; }
  .products-banner > div { top: 155px; }
  .products-banner > div p { font-size: 33px; }
  .products-banner > div h1 { font-size: 21px; }
  .catalog-grid { gap: 14px; }
  .catalog-picture { height: 155px; }
  .catalog-picture img { height: 100px; }
  .catalog-card-copy { padding: 18px 12px 22px; }
  .catalog-card-copy h2 { font-size: 22px; }
  .catalog-card-copy p { font-size: 12px; }
  .catalog-detail { width: 105px; font-size: 13px; margin-top: 20px; }
  .catalog-content { padding-top: 30px; }
  .detail-summary { padding: 22px; }
  .product-gallery { grid-template-columns: 56px 1fr; gap: 10px; }
  .gallery-thumb { height: 56px; padding: 6px; }
  .gallery-thumb img { height: 40px; }
  .gallery-main { height: 270px; padding: 18px; }
  .gallery-main img { height: 170px; }
  .description-panel,.recommend-panel { padding: 22px; }
  .recommend-grid { grid-template-columns: 1fr; gap: 25px; }
  .recommend-card { padding-top: 0; }
  .recommend-card>a:first-child { height: 130px; }
  .recommend-card img { width: 230px; }
  .recommend-card h3 { margin-top: 10px; }
}


.catalog-content.is-empty {
  min-height: calc(700 * var(--u));
}
.back-to-products {
  display: block;
  text-align: right;
  margin-top: 18px;
  font-size: 14px;
}
.back-to-products:hover { color: var(--red); }
@media (max-width: 900px) {
  .product-subnav { height: auto; }
  .subnav-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .breadcrumbs { padding: 14px 0; font-size: 12px; gap: 10px; }
  .breadcrumbs svg { width: 14px; height: 14px; }
  .category-nav { width: 100%; min-width: 0; }
  .category-nav a { font-size: 14px; }
  .products-banner > div h1 { margin-top: -18px; }
  .catalog-content.is-empty { min-height: 450px; }
}

/* 推荐数据与产品中心一致；返回入口居中显示。 */
.recommend-card img { width: auto; max-width: 70%; height: 145px; object-fit: contain; }
.recommend-card > p { color: #888; font-size: 14px; line-height: 1.8; margin: 10px 10px 0; }
.recommend-card .recommend-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 26px; min-height: 40px; }
.back-to-products { display: flex; align-items: center; justify-content: center; width: fit-content; min-width: 200px; min-height: 48px; margin: 36px auto 0; padding: 12px 30px; text-align: center; background: var(--red); color: white; border: 1px solid var(--red); border-radius: 6px; font-size: 16px; transition: background .2s; }
.back-to-products:hover { background: #df0028; color: white; }
@media (max-width: 900px) { .recommend-card > p { font-size: 16px; } .recommend-card > a:first-child { height: 170px; } }
