/* ============================================================
   Sub-page styles (Product / Factory / About / Contact)
   Palette follows the site theme: deep blue #004d9e,
   accent orange #ff6a00, button blue #1f77d7, text #333/#666.
   ============================================================ */

.pg-page {
  padding-top: 110px; /* fixed header height */
  background: #fff;
}
@media (max-width: 1200px) {
  .pg-page { padding-top: 110px; }
}
@media (max-width: 700px) {
  .pg-page { padding-top: 80px; }
}

/* ---- hero banner ---- */
.pg-hero {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.pg-hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  color: #fff;
}
.pg-hero-inner h1 {
  margin: 0 0 12px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pg-hero-inner p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 700px) {
  .pg-hero { min-height: 260px; }
  .pg-hero-inner h1 { font-size: 28px; }
}

/* ---- section scaffolding ---- */
.pg-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 40px;
  box-sizing: border-box;
}
.pg-section.pg-gray { background: #f7f8fa; }
@media (max-width: 700px) {
  .pg-section { padding: 45px 16px; }
}
.pg-sec-head { text-align: center; margin-bottom: 45px; }
.pg-sec-head h2 {
  margin: 0 0 14px;
  font-size: 32px;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pg-sec-head .pg-bar {
  display: inline-block;
  width: 60px;
  height: 3px;
  background: #ff6a00;
  vertical-align: middle;
}
.pg-sec-head p {
  margin: 14px auto 0;
  max-width: 820px;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}
@media (max-width: 700px) {
  .pg-sec-head h2 { font-size: 24px; }
}

/* ---- product grid ---- */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) { .pg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .pg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .pg-grid { grid-template-columns: 1fr; } }

.pg-card {
  display: block;
  background: #fff;
  border: 1px solid #ececec;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pg-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}
.pg-card-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
}
.pg-card-body { padding: 16px 16px 18px; }
.pg-card-body h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: #333;
  font-weight: 600;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pg-card-body .pg-more {
  font-size: 13px;
  color: #004d9e;
  font-weight: 600;
}
.pg-card:hover .pg-card-body h3 { color: #004d9e; }
.pg-card:hover .pg-more { color: #ff6a00; }

/* ---- split text + image ---- */
.pg-split {
  display: flex;
  gap: 48px;
  align-items: center;
}
.pg-split-text { flex: 1 1 55%; }
.pg-split-img { flex: 1 1 45%; max-width: 520px; }
.pg-split-img img { width: 100%; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.pg-split-text p { color: #666; font-size: 15px; line-height: 1.9; margin: 0 0 16px; }
@media (max-width: 860px) {
  .pg-split { flex-direction: column; }
  .pg-split-img { max-width: 100%; }
}

/* ---- advantage tiles (mirrors homepage "About Company" block) ---- */
.pg-adv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 1100px) { .pg-adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .pg-adv { grid-template-columns: 1fr; } }
.pg-adv-item {
  background: #e6e6e6;
  border: 1px solid #ececec;
  padding: 34px 24px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}
.pg-adv-item:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1); }
.pg-adv-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 18px;
}
.pg-adv-item h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: #004d9e;
  font-weight: 700;
}
.pg-adv-item p { margin: 0; color: #666; font-size: 14px; line-height: 1.75; }

/* ---- stats strip ---- */
.pg-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) { .pg-stats { grid-template-columns: repeat(2, 1fr); } }
.pg-stat b {
  display: block;
  font-size: 40px;
  color: #ff6a00;
  font-weight: 700;
  line-height: 1.2;
}
.pg-stat span { color: #666; font-size: 14px; }

/* ---- category tiles (About page) ---- */
.pg-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) { .pg-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .pg-cats { grid-template-columns: 1fr; } }
.pg-cat { position: relative; display: block; overflow: hidden; }
.pg-cat img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pg-cat:hover img { transform: scale(1.05); }
.pg-cat span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

/* ---- contact page ---- */
.pg-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
@media (max-width: 860px) { .pg-contact-cards { grid-template-columns: 1fr; } }
.pg-ccard {
  border: 1px solid #ececec;
  background: #fff;
  text-align: center;
  padding: 40px 24px;
}
.pg-ccard h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
  font-weight: 700;
}
.pg-ccard p { margin: 0; color: #666; font-size: 15px; line-height: 1.7; }
.pg-ccard .pg-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #004d9e;
  color: #fff;
  font-size: 26px;
  line-height: 60px;
  text-align: center;
}

.pg-form {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ececec;
  padding: 40px;
  box-sizing: border-box;
}
.pg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .pg-form-row { grid-template-columns: 1fr; } }
.pg-form input,
.pg-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  background: #fff;
  padding: 11px 14px;
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
  outline: none;
  font-family: inherit;
}
.pg-form input:focus,
.pg-form textarea:focus { border-color: #1f77d7; }
.pg-form textarea { min-height: 140px; resize: vertical; }
.pg-form .pg-submit {
  display: block;
  width: 170px;
  height: 44px;
  margin: 0 auto;
  border: 1px solid #1f77d7;
  background: #1f77d7;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.pg-form .pg-submit:hover { background: #fff; color: #1f77d7; }

/* ---- CTA strip ---- */
.pg-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 80px 20px;
}
.pg-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.pg-cta-inner { position: relative; z-index: 1; }
.pg-cta-inner h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}
.pg-cta-inner p { margin: 0 0 28px; color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.pg-btn {
  display: inline-block;
  padding: 13px 46px;
  background: #ff6a00;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.pg-btn:hover { background: #004d9e; }
.pg-btn.pg-btn-blue { background: #004d9e; }
.pg-btn.pg-btn-blue:hover { background: #ff6a00; }
.pg-btn.pg-btn-ghost {
  background: transparent;
  color: #004d9e;
  border: 1px solid #004d9e;
  box-sizing: border-box;
}
.pg-btn.pg-btn-ghost:hover { background: #004d9e; color: #fff; }

/* ---- product detail page ---- */
.pg-breadcrumb {
  padding: 18px 40px;
  background: #f7f8fa;
  border-bottom: 1px solid #ececec;
  color: #999;
  font-size: 13px;
}
.pg-breadcrumb a { color: #666; text-decoration: none; }
.pg-breadcrumb a:hover { color: #004d9e; }
.pg-breadcrumb span { color: #004d9e; }

.pd-view {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.pd-gallery { flex: 0 0 44%; }
.pd-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 1px solid #ececec;
}
.pd-info { flex: 1 1 auto; min-width: 0; }
.pd-cat-tag {
  display: inline-block;
  background: #004d9e;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.pd-info h1 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.4;
  color: #333;
  font-weight: 700;
}
.pd-lead { margin: 0 0 18px; color: #666; font-size: 15px; line-height: 1.8; }
.pd-points { list-style: none; margin: 0 0 26px; padding: 0; }
.pd-points li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}
.pd-points li:before {
  content: "\2713";
  position: absolute;
  left: 2px;
  color: #ff6a00;
  font-weight: 700;
}
.pd-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .pd-view { flex-direction: column; }
  .pd-gallery { flex: none; width: 100%; }
}

.pd-text { max-width: 1100px; margin: 0 0 16px; color: #666; font-size: 15px; line-height: 1.9; }
.pd-spec {
  width: 100%;
  max-width: 1100px;
  border-collapse: collapse;
  margin-top: 12px;
  background: #fff;
}
.pd-spec th,
.pd-spec td {
  border: 1px solid #ececec;
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.pd-spec th { width: 180px; background: #f7f8fa; color: #333; font-weight: 600; }
.pd-spec td { color: #666; }
@media (max-width: 600px) {
  .pg-breadcrumb { padding: 14px 16px; }
  .pd-spec th { width: 110px; }
}

/* ---- product category tabs ---- */
.pg-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 34px 20px 0;
  max-width: 1440px;
  margin: 0 auto;
}
.pg-tab {
  padding: 11px 30px;
  border: 1px solid #d9dde2;
  background: #fff;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
  font-family: inherit;
}
.pg-tab:hover { color: #004d9e; border-color: #004d9e; }
.pg-tab.pg-tab-active {
  background: #004d9e;
  border-color: #004d9e;
  color: #fff;
}
.pg-cat-panel .pg-sec-head { margin-bottom: 35px; }

/* ============ 详情页产品主图 Banner（淘宝式多图切换） ============ */
.pd-main-wrap { position: relative; }
.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: #333;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: background-color .2s ease, color .2s ease;
  z-index: 2;
}
.pd-nav:hover { background: #004d9e; color: #fff; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .75;
  transition: opacity .2s ease, border-color .2s ease;
}
.pd-thumb:hover { opacity: 1; }
.pd-thumb.active { border-color: #004d9e; opacity: 1; }
