/* =============================================================
   WELLGO — 产品详情页 Product Detail (Figma 1:340)
   1920×2830 画板。页头/悬浮栏/页脚复用 style.css 公共组件。
   顶层区块页面偏移 = 设计 Y − 140px（页头高度）。
   全部坐标为页面绝对坐标（1920 设计稿）。
   ============================================================= */

/* ---------- 页头 Header 微调（与 certificate.css 相同，参照截图实测） ---------- */
.header .main-nav a:nth-child(1) { letter-spacing: 1.5px; }   /* home */
.header .main-nav a:nth-child(3) { letter-spacing: 2.0px; }   /* ESS */
.header .main-nav a:nth-child(4) { letter-spacing: 1.2px; }   /* Cases */
.header .main-nav .nav-union {
  position: relative;
  left: 2px; top: 4px;
  width: 137px; height: 26px;
}
.header .main-nav .nav-search {
  position: relative;
  left: 3px; top: 5px;
  width: 28px; height: 28px;
}
.header .main-nav .nav-search img { width: 28px; height: 28px; }
.header .main-nav > a:not(.nav-search) {
  display: flex;
  align-items: center;
  height: 32px;
  line-height: 32px;
}

/* 悬浮社交栏：设计稿固定于 y1229 */
.float-bar {
  top: 50%;
  transform: translateY(-50%);
}

/* =============================================================
   ① 面包屑 Breadcrumb (设计 y160, 高 91)
   ============================================================= */
.pd-crumb {
  position: relative;
  width: var(--page-w);
  height: 91px;
  margin-top: 20px;          /* 160 − 140 */
}
.pd-crumb-bg {
  position: absolute;
  left: 275px;
  top: 0;
  width: 1368px;
  height: 91px;
  background: linear-gradient(to right, #efefef, rgba(239,239,239,0));
}
.pd-crumb-row {
  position: absolute;
  left: 337px;
  top: 32px;                 /* 192 − 160 */
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  white-space: nowrap;
}
.pd-crumb-home { width: 20px; height: 20px; }
.pd-crumb-row a {
  color: #e62c2f;
  text-transform: capitalize;
}
.pd-crumb-current { color: #333; }
.pd-crumb-sep {
  width: 6px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-crumb-sep::before {
  content: "";
  flex: none;
  width: 19.925px;
  height: 1px;
  background: #e62c2f;
  transform: rotate(107.53deg);
}

/* =============================================================
   ② 产品主区 (设计 y271, 高 667, 内容宽 1200)
   ============================================================= */
.pd-main {
  position: relative;
  width: var(--page-w);
  min-height: 667px;
  margin-top: 20px;          /* 271 − 251 */
}
.pd-main-inner {
  position: static;
  margin-left: 360px;
  width: 1200px;
  display: flex;
  gap: 40px;
}

/* ---- 左图集 450px ---- */
.pd-gallery {
  position: relative;
  width: 450px;
  height: 667px;
  flex: none;
}
.pd-gallery-top {
  position: absolute;
  left: 0;
  top: 0;
  width: 450px;
  height: 550px;
}
/* 主图：黑底 450×450，产品照片按设计百分比裁剪填充 */
.pd-main-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 450px;
  height: 450px;
}
.pd-main-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.pd-dots {
  position: absolute;
  left: 202px;
  top: 416px;
  width: 46px;
  height: 10px;
}
.pd-arrow {
  position: absolute;
  top: 181px;
  width: 36px;
  height: 88px;
  z-index: 1;
}
.pd-arrow img { width: 36px; height: 88px; }
.pd-arrow--left { left: 0; }
.pd-arrow--right { right: 0; transform: rotate(180deg); }
.pd-arrow:hover { opacity: .75; }

/* 缩略图行 */
.pd-thumbs {
  position: absolute;
  left: 0;
  top: 460px;
  width: 450px;
  height: 90px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.pd-thumb {
  position: relative;
  width: 90px;
  height: 90px;
  flex: none;
  border: 2px solid #f3f3f3;
  overflow: hidden;
  cursor: pointer;
}
.pd-thumb.is-active { border-color: #e00f15; }
.pd-thumb:focus-visible { outline: 2px solid #e00f15; outline-offset: 3px; }
.pd-thumb--half { width: 50px; }
.pd-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.pd-thumb--half img {
  width: 100%;
}

/* ---- 尺寸 / 颜色 ---- */
.pd-sizes {
  position: absolute;
  left: 0;
  top: 573px;                /* 550 + 23 */
  width: 450px;
  height: 94px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.pd-size-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-size-label {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  width: 60px;
  line-height: 27px;        /* 20px YaHei 行盒比 1.2 高 3px，参照截图 */
}
.pd-chips { display: flex; gap: 10px; }
.pd-chip {
  width: 75px;
  padding: 6px 10px;
  background: var(--brand-red);
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-color-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-color-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  align-self: flex-start;
  margin-left: 8px;           /* 色块居中于 Color 标签，参照截图 */
}
.pd-color-swatch {
  width: 32px;
  height: 32px;
}
.pd-color-name {
  font-size: 16px;
  color: #333;
}

/* ---- 右产品信息 710px ---- */
.pd-info {
  width: 710px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.pd-title {
  font-size: 46px;
  font-weight: 700;
  color: #333;
  line-height: 61px;
  white-space: nowrap;
}
.pd-desc {
  font-size: 20px;
  color: #333;
  line-height: 26px;
}
.pd-features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.pd-features-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 32px;
  white-space: nowrap;
}
.pd-features-line {
  position: relative;
  width: 710px;
  height: 2px;
}
.pd-features-line img {
  position: absolute;
  top: -3px;
  left: 0;
  width: 710px;
  height: 5px;
}
.pd-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.pd-features-list li {
  font-size: 20px;
  color: #333;
  line-height: 26px;
}
.pd-features-list p,
.pd-features-list li {
  margin: 0 0 12px;
  font-size: 20px;
  color: #333;
  line-height: 26px;
}
.pd-features-list h4 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 28px;
}
.pd-features-list ul,
.pd-features-list ol {
  margin: 0;
  padding-left: 24px;
}

/* =============================================================
   ③ 分隔线 (设计 y970)
   ============================================================= */
.pd-line {
  position: relative;
  width: var(--page-w);
  margin-top: 32px;          /* 970 − 938 */
  height: 0;
}
.pd-line::after {
  content: "";
  display: block;
  width: 1200px;
  height: 1px;
  margin-left: 360px;
  background: #e0e0e0;
}

/* =============================================================
   ④ 规格表 Specification (设计 y1010, 高 458)
   ============================================================= */
.pd-spec {
  position: relative;
  width: var(--page-w);
  min-height: 280px;
  margin-top: 40px;          /* 1010 − 970 */
}
.pd-spec-inner {
  position: static;
  margin-left: 360px;
  width: 1200px;
}
.pd-spec-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 32px;
}
.pd-spec-table {
  margin-top: 24px;
}
.pd-spec-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.pd-spec-table th,
.pd-spec-table td {
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.pd-spec-table th,
.pd-spec-table tr:first-child td {
  background: var(--brand-red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.pd-spec-table tr:nth-child(odd):not(:first-child) td { background: #f8f8f8; }
.pd-spec-row {
  display: flex;
  height: auto;
  min-height: 45px;
  border: 1px solid #ccc;
}
.pd-spec-row:not(:last-child) { margin-bottom: -1px; }
.pd-spec-row--head {
  height: 50px;
  background: var(--brand-red);
}
.pd-spec-row--alt { background: #f8f8f8; }
.pd-spec-row .cell {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: 14px;
  color: #333;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.pd-spec-row .cell + .cell { border-left: 1px solid #ccc; }
.pd-spec-row--head .cell {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.pd-cell-wrap {
  white-space: normal;
  text-align: center;
}
.pd-spec-row--wrap {
  height: auto;
  min-height: 45px;
}
.pd-spec-row--wrap .cell {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* =============================================================
   ⑤ 询盘表单 Enquiry (设计 y1508, 高 618, 宽 1200)
   ============================================================= */
.pd-form {
  position: relative;
  width: 1200px;
  height: 618px;
  margin-top: 40px;          /* 1508 − 1468 */
  margin-bottom:100px;
  margin-left: 363px;
  background: #f4f4f4;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.pd-form-title {
  font-size: 40px;
  font-weight: 700;
  color: #333;
  line-height: 53px;
  white-space: nowrap;
}
.pd-form-title .c-red { color: var(--brand-red); }

.pd-form-row {
  display: flex;
  gap: 35px;
}
.pd-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24.41px;
}
.pd-field-label {
  font-size: 14px;
  color: #333;
  line-height: 18px;
}
.pd-field-label .req { color: var(--brand-red); }
.pd-input {
  display: block;
  width: 350px;
  height: 45px;
  background: #fff;
  border: 0.872px solid #cecece;
  border-radius: 10px;
  padding: 0 20px;
  color: #333;
  font: inherit;
  font-size: 14px;
}
.pd-input::placeholder, .pd-textarea::placeholder { color: #999; opacity: 1; }
.pd-input:focus, .pd-textarea:focus { outline: 2px solid rgba(224, 15, 21, .25); outline-offset: 1px; border-color: var(--brand-red); }

.pd-form-msg {
  display: flex;
  flex-direction: column;
  gap: 24.41px;
}
.pd-textarea {
  display: block;
  width: 1120px;
  height: 101px;
  background: #fff;
  border: 0.872px solid #cecece;
  border-radius: 8.718px;
  padding: 18px 20px;
  color: #333;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.pd-form-send {
  display: flex;
  justify-content: center;
}
.pd-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 308.615px;
  height: 66.87px;
  background: var(--brand-red);
  color: #fff;
  font-size: 24.41px;
  font-weight: 700;
  border-radius: 8.718px;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.pd-send-btn:hover { background: #c70d13; }
.pd-send-btn:focus-visible { outline: 2px solid #333; outline-offset: 3px; }

/* =============================================================
   ⑥ 页脚 Footer (设计 y2229, 高 601, 背景 #CE090C)
   ============================================================= */
.pd-footer {
  position: relative;
  width: var(--page-w);
  height: 601px;
  background: var(--brand-red-deep);
  color: #fff;
  overflow: hidden;
}

/* FOLLOW US + 社交图标 */
.pd-follow {
  position: absolute;
  left: 1285px;
  top: 34px;                 /* 2263 − 2229 */
  display: flex;
  align-items: center;
  gap: 20px;
}
.pd-follow p {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.pd-follow-icons { display: flex; gap: 20px; }
.pd-follow-icons a,
.pd-follow-icons img { width: 50px; height: 50px; }

/* 两条分隔线 复用 style.css .footer-line / .footer-line--2 (top 108 / 439) */

/* 主内容区（两行列布局，全部绝对定位） */
.pd-footer-main {
  position: absolute;
  left: 193px;
  top: 108px;
  width: 1535px;
  height: 331px;
}

/* 第 1 行 (设计 y2397 → 区内 top 60) */
.f-col--prod,
.f-col--about,
.f-col--energy { position: absolute; top: 60px; width: 280px; }
.f-col--prod  { left: 0; }
.f-col--energy { left: 307px; }
.f-col--about { left: 614px; }
.f-col--prod h4,
.f-col--about h4,
.f-col--energy h4 { margin-bottom: 27px; }
.f-col--prod .f-links,
.f-col--about .f-links { gap: 15px; }

.pd-f-cert {
  position: absolute;
  left: 921px;
  top: 60px;
  padding-top: 0;
}
.pd-f-addr-wellgo {
  position: absolute;
  left: 1228px;
  top: 60px;
}
.pd-f-addr-wellgo h4 { margin-bottom: 23px; }
.pd-f-addr-wellgo .f-addr-text { line-height: 1.3; }

/* 第 2 行 (设计 y2535 → 区内 top 198) */
.pd-f-cta {
  position: absolute;
  left: 921px;
  top: 198px;
  width: 158px;
  gap: 28px;
}
.pd-f-cta .f-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  white-space: nowrap;
}
.pd-f-cta .f-email {
  align-self: center;
  text-align: center;
  white-space: nowrap;
}
.pd-f-addr-sunrise {
  position: absolute;
  left: 1228px;
  top: 198px;
}
.pd-f-addr-sunrise h4 { margin-bottom: 23px; }
.pd-f-addr-sunrise .f-addr-text { line-height: 1.3; }

/* 底部：Logo + 版权 + SUNRISE 友链 */
.pd-f-logo {
  left: 222px;
  top: 483px;                /* 2711 − 2229 ≈ 482 */
  bottom: auto;
}
.pd-f-copy {
  left: 515px;
  top: 494px;                /* 2723 − 2229 */
  right: auto;
  bottom: auto;
  text-align: left;
  line-height: 1.6;
  width: 396px;
  white-space: nowrap;
}
.pd-links-row {
  position: absolute;
  right: 194px;              /* 右缘锚定：多条友链时向左撑开，最右链接保持不动 */
  top: 503px;                /* 2732 − 2229 */
  display: flex;
  align-items: center;
  gap: 20px;
}
.pd-f-friend {
  font-weight: 700;
  padding: 6px 10px;
}

/* =============================================================
   响应式布局
   ============================================================= */
@media (max-width: 1799px) {
  :root {
    --page-w: 100%;
    --pad-x: 24px;
    --container-w: calc(100% - 48px);
  }
  .page, .header, .topbar, .navbar, .pd-crumb, .pd-main, .pd-line, .pd-spec { width: 100%; }
  .header .topbar { padding-right: 24px; }
  .navbar { padding-left: 24px; padding-right: 24px; }
  .main-nav { margin-left: auto; }
  .pd-crumb-bg { left: 18%; width: 82%; }
  .pd-crumb-row { left: 24px; }
  .pd-main-inner { margin-left: 24px; width: calc(100% - 48px); }
  .pd-line::after { width: calc(100% - 48px); margin-left: 24px; }
  .pd-spec-inner { margin-left: 24px; width: calc(100% - 48px); }
  .pd-form { margin-left: auto; margin-right: auto; max-width: calc(100% - 48px); }
  .pd-footer { width: 100%; }
  .pd-footer-main { left: 24px; width: calc(100% - 48px); }
  .pd-footer > .footer-line { left: 24px; width: calc(100% - 48px); }
}

@media (max-width: 1199px) {
  .header .main-nav { gap: 24px; }
  .header .main-nav a { font-size: 15px; }
  .header .main-nav a:nth-child(3) { letter-spacing: 0; }
  .header .main-nav .nav-union { width: 100px; height: auto; }

  .pd-main { height: auto; }
  .pd-main-inner { position: static; display: flex; flex-direction: column; gap: 36px; margin: 0 auto; }
  .pd-gallery { width: min(450px, 100%); height: auto; margin: 0 auto; }
  .pd-gallery-top { position: relative; width: 100%; height: auto; }
  .pd-main-img { position: relative; width: 100%; height: auto; aspect-ratio: 1; }
  .pd-dots { left: 50%; top: auto; bottom: 24px; transform: translateX(-50%); }
  .pd-thumbs { position: static; width: 100%; height: 90px; margin-top: 10px; justify-content: center; }
  .pd-sizes { position: static; width: 100%; height: auto; margin-top: 24px; justify-content: center; }
  .pd-info { width: 100%; }
  .pd-title, .pd-features-title { white-space: normal; }
  .pd-features-line, .pd-features-line img { width: 100%; }
  .pd-line { margin-top: 40px; }
  .pd-spec { height: auto; }
  .pd-spec-inner { position: static; width: calc(100% - 48px); margin: 0 auto; }
  .pd-form { height: auto; }
  .pd-form-row { flex-wrap: wrap; }
  .pd-field { flex: 1 1 calc(50% - 18px); }
  .pd-input { width: 100%; }
  .pd-textarea { width: 100%; }

  .pd-footer { height: auto; min-height: 601px; padding-bottom: 120px; }
  .pd-follow { left: auto; right: 24px; }
  .pd-footer-main { position: relative; left: auto; top: auto; width: calc(100% - 48px); height: auto; margin: 108px 24px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
  .pd-footer-main .f-col--prod, .pd-footer-main .f-col--energy, .pd-footer-main .f-col--about, .pd-f-cert, .pd-f-addr-wellgo, .pd-f-cta, .pd-f-addr-sunrise { position: static; width: auto; }
  .pd-f-logo, .pd-f-copy, .pd-links-row { position: static; margin: 36px 24px 0; }
  .pd-f-copy { width: auto; white-space: normal; }
  .pd-links-row { justify-content: flex-end; }
}

@media (max-width: 767px) {
  .header .topbar { height: auto; min-height: 60px; padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .topbar-links { gap: 12px; }
  .topbar-links a { font-size: 12px; }
  .navbar { height: auto; min-height: 80px; padding: 14px 16px; gap: 14px; flex-direction: column; align-items: center; }
  .logo img { width: 150px; height: auto; }
  .header .main-nav { width: 100%; margin-left: 0; flex-wrap: nowrap; justify-content: center; gap: 8px; }
  .header .main-nav a { font-size: 12px; letter-spacing: 0 !important; }
  .header .main-nav .nav-union { display: none; }
  .header .main-nav .nav-search { display: none; }
  .float-bar { right: 12px; gap: 8px; }
  .float-bar a, .float-bar img { width: 36px; height: 36px; }

  .pd-crumb { height: auto; min-height: 72px; margin-top: 12px; }
  .pd-crumb-bg { left: 0; width: 100%; }
  .pd-crumb-row { position: relative; left: auto; top: auto; padding: 24px 16px; font-size: 15px; flex-wrap: wrap; white-space: normal; }
  .pd-main-inner, .pd-spec-inner { width: calc(100% - 32px); }
  .pd-main-inner { gap: 28px; }
  .pd-gallery { width: 100%; }
  .pd-thumb { width: 64px; height: 64px; }
  .pd-thumb--half { width: 40px; }
  .pd-thumbs { height: 64px; gap: 6px; }
  .pd-sizes { flex-wrap: wrap; gap: 20px; justify-content: flex-start; }
  .pd-info { gap: 20px; }
  .pd-title { font-size: 34px; line-height: 1.2; }
  .pd-desc, .pd-features-list li { font-size: 16px; line-height: 1.5; }
  .pd-features-title, .pd-spec-title { font-size: 22px; }
  .pd-spec-row .cell { font-size: 12px; padding: 8px 6px; }
  .pd-spec-row--head .cell { font-size: 13px; }
  .pd-form { max-width: calc(100% - 32px); margin-top: 32px; padding: 24px 16px; gap: 24px; }
  .pd-form-title { font-size: 26px; line-height: 1.3; white-space: normal; }
  .pd-form-row { flex-direction: column; gap: 20px; }
  .pd-field { flex-basis: auto; gap: 10px; }
  .pd-form-msg { gap: 10px; }
  .pd-send-btn { width: min(308px, 100%); }

  .pd-footer { margin-top: 64px; padding: 40px 16px 32px; min-height: 0; }
  .pd-footer > .footer-line { display: none; }
  .pd-follow { position: static; flex-direction: column; align-items: flex-start; gap: 14px; }
  .pd-footer-main { display: flex; flex-direction: column; gap: 28px; width: 100%; margin: 36px 0 0; }
  .pd-footer-main .f-col--prod, .pd-footer-main .f-col--energy, .pd-footer-main .f-col--about, .pd-f-cert, .pd-f-addr-wellgo, .pd-f-cta, .pd-f-addr-sunrise { width: 100%; }
  .pd-f-logo, .pd-f-copy, .pd-links-row { margin-left: 0; margin-right: 0; }
  .pd-links-row { justify-content: flex-start; flex-wrap: wrap; }
}
