/* =============================================================
   WELLGO 上海威同化工制品 — 官网首页
   固定 1920px 设计稿像素级还原 (Figma 首页 1:1021)
   内容区 1535px, 左右留白 ~192px
   ============================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  --brand-red:      #e00f15;   /* 强调红 */
  --brand-red-deep: #ce090c;   /* 页脚红 */
  --text-primary:   #333333;
  --text-secondary: #898989;
  --topbar-bg:      #2a2626;
  --panel-gray:     #f5f5f5;   /* 产品卡片面板 */
  --panel-light:    #f1f0f1;   /* 数据条/标语带 */
  --cert-blue:      #01337f;   /* 认证标签 */
  --email-red:      #ff3d43;   /* 顶条邮箱 */
  --border-color:   #eeeeee;   /* 导航下边框 */
  --divider-color:  #e0e0e0;   /* 区块分隔线 */
  --container-w:    1535px;
  --page-w:         1920px;
  --pad-x:          192px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB",
               "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--text-primary);
  line-height: 1.2;
}

img { display: block; }
a { text-decoration: none; color: inherit; }
.c-red { color: var(--brand-red); }

/* 固定 1920px 画板 */
.page {
  position: relative;
  width: var(--page-w);
  margin: 0 auto;
  background: #fff;
}

/* =============================================================
   ⑩ 右侧悬浮社交栏
   ============================================================= */
.float-bar {
  position: fixed;
  right: 91px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-bar a,
.float-bar .float-action { width: 50px; height: 50px; }
.float-bar .float-action {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.float-bar img { width: 50px; height: 50px; transition: opacity .2s; }
.float-bar a:hover img,
.float-bar .float-action:hover img { opacity: .75; }

/* =============================================================
   首页联系表单弹窗（Figma 1:1529）
   ============================================================= */
body.is-modal-open { overflow: hidden; }

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .7);
}
.contact-modal-overlay[hidden] { display: none; }

.contact-modal {
  display: flex;
  width: 999px;
  height: 605px;
  overflow: hidden;
  border-radius: 20px;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.contact-modal-media {
  position: relative;
  flex: none;
  width: 250px;
  height: 605px;
  overflow: hidden;
  background: #171a1d;
}
.contact-modal-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.contact-modal-panel {
  flex: none;
  width: 750px;
  height: 605px;
  padding: 30px 40px;
  border: 0;
  background: #f4f4f4;
}
.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.contact-modal-header h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: #333;
}
.contact-modal-close {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.contact-modal-close img { width: 24px; height: 24px; }

.contact-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 325px);
  column-gap: 20px;
  row-gap: 30px;
  margin-top: 30px;
}
.contact-modal-field {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-modal-field label {
  height: 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: #333;
}
.contact-modal-field label span { color: #e00f15; }
.contact-modal-field input,
.contact-modal-message {
  width: 100%;
  border: 1px solid #cecece;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #333;
  font: 400 14px/18px "Microsoft YaHei", "微软雅黑", sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
.contact-modal-field input {
  height: 45px;
  padding: 0 20px;
}
.contact-modal-field input::placeholder,
.contact-modal-message::placeholder { color: #999; opacity: 1; }
.contact-modal-field input:focus,
.contact-modal-message:focus {
  border-color: #e00f15;
  box-shadow: 0 0 0 2px rgba(224, 15, 21, .1);
}
.contact-modal-field--message {
  margin-top: 30px;
}
.contact-modal-message {
  display: block;
  height: 101px;
  padding: 17px 19px;
  resize: none;
}
.contact-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.contact-modal-submit {
  width: 309px;
  height: 61px;
  border: 0;
  border-radius: 9px;
  background: #e00f15;
  color: #fff;
  font: 700 20px/26px "Microsoft YaHei", "微软雅黑", sans-serif;
  cursor: pointer;
  transition: background .15s;
}
.contact-modal-submit:hover { background: #c90d12; }
.contact-modal-submit:focus-visible,
.contact-modal-close:focus-visible,
.float-action:focus-visible { outline: 2px solid #e00f15; outline-offset: 3px; }

/* ===== 联系表单弹窗 响应式 ===== */
@media (max-width: 1199px) {
  .contact-modal {
    width: 94vw;
    max-width: 800px;
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
  }
  .contact-modal-media { display: none; }
  .contact-modal-panel {
    width: 100%;
    height: auto;
    padding: 30px 32px;
  }
  .contact-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .contact-modal {
    width: 92vw;
    max-width: none;
    max-height: 94vh;
  }
  .contact-modal-panel { padding: 22px 16px; }
  .contact-modal-header h2 { font-size: 24px; }
  .contact-modal-grid {
    grid-template-columns: 1fr;
    row-gap: 22px;
    margin-top: 22px;
  }
  .contact-modal-field { gap: 14px; }
  .contact-modal-field--message { margin-top: 22px; }
  .contact-modal-actions { margin-top: 22px; }
  .contact-modal-submit { width: 100%; font-size: 18px; }
}

/* Windows 150%：桌面可视高度较小时，弹窗完整收纳在视口内。 */
@media (min-width: 1200px) and (max-width: 1365px) {
  .contact-modal {
    width: min(999px, calc(100vw - 48px));
    height: min(520px, calc(100vh - 32px));
  }

  .contact-modal-media,
  .contact-modal-panel {
    height: 100%;
  }

  .contact-modal-grid {
    row-gap: 18px;
    margin-top: 20px;
  }

  .contact-modal-field {
    gap: 14px;
  }

  .contact-modal-field--message {
    margin-top: 20px;
  }

  .contact-modal-message {
    height: 78px;
  }

  .contact-modal-actions {
    margin-top: 20px;
  }

  .contact-modal-submit {
    height: 50px;
  }
}

/* =============================================================
   ① Header (顶条 60 + 导航 80)
   ============================================================= */
.header {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  position: relative;
}
.header img { max-width: none; }
.header a { text-decoration: none; }
.header .logo {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
}
.header .topbar {
  position: relative;
  z-index: 30;
}
.topbar {
  width: var(--page-w);
  height: 60px;
  background: var(--topbar-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
}
.topbar-email { display: flex; align-items: center; gap: 10px; }
.topbar-email-icon { width: 24px; height: 24px; }
.topbar-email-text { font-size: 18px; }
.t-white { color: #fff; }
.t-email { color: var(--email-red); }
.topbar-links { display: flex; width: 500px; }
.topbar-links a {
  flex: 1;
  font-size: 18px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  transition: opacity .2s;
}
.topbar-links a:hover { opacity: .75; }
.header .has-dropdown {
  position: relative;
  flex: 1;
}
.header .has-dropdown > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: right;
  width: 100%;
}
.header .dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  min-width: 210px;
  max-height: none;
  overflow: visible;
  padding: 8px 0;
  background: rgba(42, 38, 38, .97);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.header .dropdown-content a {
  display: block;
  width: auto;
  padding: 11px 18px;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}
.header .dropdown-content a:hover { color: var(--brand-red); opacity: 1; }
.header .has-dropdown:hover .dropdown-content,
.header .has-dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.navbar {
  position: relative;
  width: var(--page-w);
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
}
.header .navbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 20;
}
.logo { display: block; }
.logo img { width: 201px; height: 50px; }

.main-nav {
  display: flex;
  align-items: center;
  margin-left: 316px;
  height: 32px;
}
.main-nav a {
  font-size: 18px;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color .2s;
}
.main-nav a:hover { color: var(--brand-red); }
.main-nav .is-active { color: var(--brand-red); }
.header .main-nav .has-dropdown { flex: none; }
.header .main-nav .has-dropdown { z-index: 31; }
.header .main-nav .has-dropdown > a { width: auto; height: 32px; }
.header .main-nav .dropdown-content { top: calc(100% + 14px); }
.nav-union { width: 136px; height: 26px; }
.nav-search { display: flex; align-items: center; }
.nav-search img { width: 32px; height: 32px; }
.mobile-nav-toggle { display: none; }

/* =============================================================
   ② Hero 首屏
   ============================================================= */
.hero {
  padding-top: 10px;         /* 设计 y=150 − 页头 140px 高度 = 10px */
  padding-left: 0;           /* 客户要求：banner 全屏，左右不留白 */
  padding-right: 0;
}
.hero-slider { position: relative; }
.hero-bg {
  width: 100%;               /* 全宽铺满，替代原 --container-w 收窄 */
  height: 682px;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease;
}
.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;           /* 圆点 @y781 (150+682-802=30) 距图底 30px */
  display: flex;
  align-items: center;
  gap: 15px;
  height: 21px;
}
.hero-dot {
  width: 21px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.hero-dot:hover,
.hero-dot:focus-visible { transform: scale(1.08); }
.hero-dot.is-active { background: var(--brand-red); }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-dot[aria-selected="true"] { background: var(--brand-red); }
.hero-dot[aria-selected="false"] { background: rgba(255,255,255,.5); }
.hero-slider.is-changing .hero-bg img { opacity: .2; }

.hero-title {
  width: 100%;
  margin: 60px auto 0;     /* 标题 @y892 */
  text-align: center;
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

/* =============================================================
   ③ 产品分类栅格 (3行 × 2列)
   ============================================================= */
.products {
  margin-top: 64px;        /* 栅格 @y994 */
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 751px);
  grid-column-gap: 34px;
  grid-row-gap: 30px;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--panel-gray);
}
/* 首页产品区卡片桌面高度：内容全绝对定位，必须显式给高度，否则塌缩为 0
   （范围限定 .products 内，避免影响搜索页/产品列表页的 .product-card；
    仅桌面端生效，平板/手机用下方 media 里的 190px/170px） */
@media (min-width: 1200px) {
  .products .product-card { height: 213px; }
}
.card-photo {
  position: absolute;
  inset: 0;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文字面板 — 纯色矩形 (Anchoring / Powder / Power) */
.card-panel {
  position: absolute;
  left: 353px;
  top: 50%;
  transform: translateY(-50%);
  width: 339px;
  height: 144px;
  background: var(--panel-gray);
}
/* 文字面板 — SVG 斜边平行四边形 */
.card-panel--panel1 { width: 339px; height: 185.5px; }
.card-panel--panel2 { width: 361px; height: 144px;   }
.card-panel--panel3 { width: 369px; height: 172.5px;  }

.card-body {
  position: absolute;
  left: 403px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-red);
  line-height: 1.25;
}
.btn-view {
  border: 1px solid var(--text-primary);
  padding: 10px 40px;
  font-size: 14px;
  color: var(--text-primary);
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-view:hover { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }

/* =============================================================
   ④ WHY 品牌实力
   ============================================================= */
.why {
  margin-top: 30px;         /* WHY @y1723 */
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.why-inner { position: relative; }
.why-bg {
  position: relative;
  width: var(--container-w);
  height: 554px;
  overflow: hidden;
}
.why-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(241,240,241,0) 49.997%, var(--panel-light) 56.707%);
}

.why-text {
  position: absolute;
  left: 70px;
  top: 96px;
  z-index: 1;
}
.why-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}
.why-headline {
  margin-top: 24px;
  font-size: 55px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  text-transform: uppercase;
}
.why-headline span { display: block; }
.why-bar {
  margin-top: 34px;
  width: 89px;
  height: 5px;
  background: var(--brand-red);
}

/* 数据条 */
.why-stats {
  width: var(--container-w);
  height: 222px;
  background: var(--panel-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  column-gap: 80px;
  padding: 0 80px;
  box-sizing: border-box;
}
.stat { display: flex; align-items: center; gap: 20px; }
.stat-icon { width: 90px; height: 90px; object-fit: contain; flex: none; }
.stat-text { display: flex; flex-direction: column; gap: 8px; width: 280px; min-width: 0; }
.stat:nth-child(-n + 2) .stat-title,
.stat:nth-child(-n + 2) .stat-sub { white-space: nowrap; }
.stat-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.stat-num   { font-size: 36px; font-weight: 700; color: var(--brand-red); line-height: 1; }
.stat-sub   { font-size: 20px; color: var(--text-secondary); line-height: 1.25; }

/* =============================================================
   ⑤ 认证资质条
   ============================================================= */
.certs {
  margin-top: 50px;         /* 认证 @y2549 */
  height: 169px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
}
.cert {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cert img { width: 107px; height: 104px; object-fit: contain; }
.cert--intertek img { width: 206px; height: 110px; }
.cert p { font-size: 18px; font-weight: 700; color: var(--cert-blue); }

/* 区块分隔线 (Line 18 @2768, Line 19 @3074) */
.line-h {
  width: 1534px;
  height: 0;
  margin: 50px var(--pad-x) 0;   /* 第一条线 @2768 */
  border-top: 1px solid var(--divider-color);
}
.line-h--tight { margin-top: 29px; }   /* 第二条线 @3074 (values 底 3045 + 29) */

/* =============================================================
   ⑥ 核心优势 (5 列)
   ============================================================= */
.values {
  margin-top: 50px;         /* 核心优势 @y2818 */
  height: 227px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 var(--pad-x);
}
.value-col {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.value-col img { width: 90px; height: 104px; object-fit: contain; }
.value-col p {
  min-height: 53px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
.value-bar { width: 39px; height: 5px; background: var(--brand-red); }
/* 列间 128px 竖向分隔线 */
.value-col + .value-col::before {
  content: "";
  position: absolute;
  left: -15px;              /* 列距 30px 的中点 */
  top: 50%;
  transform: translateY(-50%);
  height: 128px;
  border-left: 1px solid var(--divider-color);
}

/* =============================================================
   ⑦ Cases 案例
   ============================================================= */
.cases-section {
  margin-top: 60px;         /* 标题 @y3134 */
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.cases-title {
  /* font-size: 32px; */
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}
.cases {
  margin-top: 64px;         /* 图片组 @y3236 */
  display: flex;
  gap: 30px;
}
.case {
  position: relative;
  overflow: hidden;
  height: 513px;
}
.case--left, .case--right { width: 327px; }
.case--center { width: 822px; }
.case-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 166px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(0,0,0,0.6) 86.78%);
}
.case-caption {
  position: absolute;
  left: 30px;
  bottom: 28px;
  z-index: 1;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.case-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 36px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
}
.case-arrow:hover { opacity: .75; }
.case-arrow img { width: 36px; height: 88px; }
.case-arrow--left  { left: 30px; }
.case-arrow--right { right: 30px; transform: translateY(-50%) rotate(180deg); }
.case-arrow--mobile-left,
.case-arrow--mobile-right { display: none; }

/* =============================================================
   ⑧ 标语带 Bonding Trust
   ============================================================= */
.footer-band {
  position: relative;
  width: var(--page-w);
  height: 161px;
  margin-top: 60px;         /* 标语带 @y3809 */
  background: var(--panel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.band-texture {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--page-w);
  height: 161px;
  object-fit: cover;
  mix-blend-mode: overlay;
}
.band-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--panel-light) 22.047%, rgba(241,240,241,0) 53.992%);
}
.band-slogan {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 48px);
  font-size: clamp(24px, 2.1vw, 36px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* =============================================================
   ⑨ 页脚 Footer (深红 #ce090c)
   ============================================================= */
.footer {
  position: relative;
  width: var(--page-w);
  height: 601px;
  background: var(--brand-red-deep);
  color: #fff;
  overflow: hidden;
}
/* Line 23 — 白色 0.5 透明度分隔线 */
.footer-line {
  position: absolute;
  left: var(--pad-x);
  width: var(--container-w);
  height: 0;
  border-top: 1px solid rgba(255,255,255,0.5);
}
.footer-line { top: 108px; }   /* @4078 (3970+108) */
.footer-line--2 { top: 439px; }   /* @4409 (3970+439) */

.footer-main {
  position: absolute;
  left: var(--pad-x);
  top: 108px;
  width: var(--container-w);
  height: 331px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 0 40px;
}

.f-row { display: flex; justify-content: space-between; align-items: flex-start; }

/* 关注 */
.f-follow p { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.f-social { display: flex; gap: 20px; }
.f-social a, .f-social img { width: 50px; height: 50px; }

/* 链接列 */
.f-col { width: 245px; }
.f-col h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
/* 标题链接：悬停不变色（覆盖 style.css 的全局 a:hover{color:#000}） */
.f-col h4 a,
.f-col h4 a:hover { color: inherit; }
.f-links { display: flex; flex-direction: column; gap: 14px; }
.f-links a { font-size: 16px; color: #fff; transition: opacity .2s; }
.f-links a:hover { opacity: .75; }

.f-cert { font-size: 20px; font-weight: 700; padding-top: 2px; }
.f-cert a,
.f-cert a:hover { color: inherit; }

/* 联系 CTA */
.f-cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.f-btn {
  display: inline-block;
  background: #fff;
  color: var(--brand-red-deep);
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  padding: 9px 22px;
  transition: transform .15s;
}
.f-btn:hover { transform: translateY(-1px); }
.f-email { font-size: 16px; color: #fff; }

/* 地址 */
.f-addr { width: 288px; }
.f-addr h4 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.f-addr-text { font-size: 16px; line-height: 1.6; }

/* 友链 */
.f-links-row { display: flex; align-items: center; gap: 20px; padding-top: 4px; }
.f-sunrise,
.f-friend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--brand-red-deep);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  padding: 8px 18px;
}
.f-friend img { width: 12px; height: 12px; }

/* =============================================================
   公共页面底部 Footer（pd-footer 结构）
   该结构由 comm/foot.html 统一输出，不能依赖产品详情页样式。
   ============================================================= */
.pd-footer {
  position: relative;
  width: var(--page-w);
  height: 601px;
  background: var(--brand-red-deep);
  color: #fff;
  overflow: hidden;
}
.pd-follow {
  position: absolute;
  left: 1285px;
  top: 34px;
  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; }
.pd-footer-main {
  position: absolute;
  left: 193px;
  top: 108px;
  width: 1535px;
  height: 331px;
}
.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; }
.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; }
.pd-f-logo { left: 222px; top: 483px; bottom: auto; }
.pd-f-copy { left: 515px; top: 494px; 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; display: flex; align-items: center; gap: 20px; }
.pd-f-friend { font-weight: 700; padding: 6px 10px; }

/* 页脚 Logo + 版权 */
.f-logo {
  position: absolute;
  left: var(--pad-x);
  bottom: 44px;
  width: 237px;
  height: 59px;
  object-fit: contain;
}
.f-copy {
  position: absolute;
  right: var(--pad-x);
  bottom: 50px;
  font-size: 14px;
  color: #fff;
  text-align: right;
}

/* =============================================================
   Responsive homepage layout
   ============================================================= */
@media (max-width: 1199px) {
  :root {
    --page-w: 100%;
    --container-w: 100%;
    --pad-x: 32px;
  }

  .page { width: 100%; }
  .topbar, .navbar { width: 100%; }
  .main-nav { margin-left: auto; gap: 24px; }
  .main-nav a { font-size: 15px; }

  .hero-bg { width: 100%; height: min(52vw, 560px); }
  .products { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { width: 100%; height: 190px; }
  .card-panel { left: 47%; width: 47%; }
  .card-panel--panel1, .card-panel--panel2, .card-panel--panel3 { width: 49%; }
  .card-body { left: 53%; }

  .why, .cases-section { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .why-bg, .why-stats { width: 100%; }
  .why-bg { height: min(42vw, 460px); }
  .why-text { left: 48px; top: 60px; }
  .why-headline { font-size: clamp(36px, 4.6vw, 55px); }
  .why-stats { height: auto; min-height: 190px; padding: 28px 40px; gap: 28px; }
  .stat { flex: 1; min-width: 0; }
  .stat-icon { width: 72px; height: 72px; }
  .stat-text { width: auto; }
  .stat-title, .stat-sub { font-size: 16px; }
  .stat-num { font-size: 30px; }

  .certs { height: auto; min-height: 150px; padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .line-h { width: calc(100% - (var(--pad-x) * 2)); margin-left: var(--pad-x); margin-right: var(--pad-x); }
  .values { height: auto; min-height: 220px; padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .value-col p { font-size: 18px; }
  .cases { gap: 20px; }
  .case { height: min(42vw, 460px); }
  .case--left, .case--right { width: 22%; }
  .case--center { width: 56%; }
  .case-caption { left: 20px; bottom: 20px; font-size: clamp(20px, 2.4vw, 32px); }
}

@media (max-width: 767px) {
  :root { --pad-x: 16px; }

  .float-bar { right: 10px; gap: 6px; }
  .float-bar a, .float-bar .float-action,
  .float-bar img { width: 38px; height: 38px; }

  .topbar { min-height: 72px; height: auto; padding: 12px var(--pad-x); flex-wrap: wrap; gap: 10px; }
  .topbar-email-text { font-size: 14px; }
  .topbar-links { width: 100%; gap: 4px; }
  .topbar-links .has-dropdown { min-width: 0; }
  .topbar-links .has-dropdown > a,
  .topbar-links a { justify-content: center; font-size: 12px; text-align: center; }
  .topbar-links .has-dropdown { position: relative; }
  .topbar-links .dropdown-content { left: 0; top: calc(100% + 4px); min-width: 150px; max-width: calc(100vw - 32px); padding: 6px 0; transform: translateY(-6px); }
  .topbar-links .dropdown-content a { display: block; width: 100%; padding: 9px 14px; font-size: 12px; line-height: 1.35; text-align: left; white-space: nowrap; box-sizing: border-box; }
  .topbar-links .has-dropdown:hover .dropdown-content,
  .topbar-links .has-dropdown:focus-within .dropdown-content { transform: translateY(0); }
  .navbar { position: relative; height: 68px; min-height: 68px; padding: 10px var(--pad-x); flex-direction: row !important; align-items: center; justify-content: flex-start; gap: 0; }
  .logo { flex: none; }
  .logo img { display: block; width: 138px; height: auto; }
  .mobile-nav-toggle { display: flex; position: absolute; top: 50%; right: var(--pad-x); z-index: 5; width: 42px; height: 38px; margin: 0; padding: 8px 6px; border: 1px solid #d7d7d7; border-radius: 4px; background: #fff; flex-direction: column; justify-content: space-between; transform: translateY(-50%); cursor: pointer; }
  .mobile-nav-toggle span { display: block; width: 100%; height: 2px; background: #222; }
  .main-nav { display: none; width: 100%; height: auto; margin: 0; padding: 12px 0 4px; gap: 0; border-top: 1px solid #eee; }
  .navbar.is-mobile-nav-open { height: auto; flex-wrap: wrap; }
  .navbar.is-mobile-nav-open::after { content: ''; position: absolute; top: 67px; left: var(--pad-x); right: var(--pad-x); height: 1px; background: #eee; }
  .navbar.is-mobile-nav-open .mobile-nav-toggle { top: 34px; }
  .navbar.is-mobile-nav-open .main-nav { display: grid; grid-template-columns: 1fr; border-top: 0; padding-top: 16px; }
  .main-nav > a, .main-nav > .has-dropdown { min-width: 0; text-align: left; }
  .main-nav a { display: block; padding: 10px 4px; font-size: 13px; line-height: 1.25; white-space: normal; text-align: left; }
  .main-nav .has-dropdown > a { width: 100%; height: auto; min-height: 32px; justify-content: flex-start; }
  .main-nav .dropdown-content { position: static; display: block; left: auto !important; min-width: 0; padding: 0 0 0 16px; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none !important; transition: none !important; }
  .main-nav .dropdown-content a { color: #555; }
  .nav-union, .nav-search { display: none; }

  .hero { padding-top: 8px; }
  .hero-bg { height: 58vw; min-height: 210px; max-height: 340px; }
  .hero-dots { bottom: 14px; gap: 8px; }
  .hero-dot { width: 12px; height: 12px; }
  .hero-title { margin-top: 28px; padding: 0 8px; font-size: 26px; line-height: 1.3; }

  .products { margin-top: 34px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-card { height: 170px; }
  .card-panel { left: 44%; width: 54%; }
  .card-body { left: 49%; }
  .card-title { font-size: 18px; }
  .btn-view { padding: 8px 22px; font-size: 12px; }

  .why { margin-top: 24px; }
  .why-bg { height: 300px; }
  .why-text { left: 24px; top: 34px; }
  .why-title { font-size: 20px; }
  .why-headline { margin-top: 14px; font-size: clamp(28px, 8vw, 42px); }
  .why-bar { margin-top: 20px; width: 62px; }
  .why-stats { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; }
  .stat { gap: 14px; }
  .stat-icon { width: 62px; height: 62px; }
  .stat-text { gap: 5px; }
  .stat-title, .stat-sub { font-size: 14px; white-space: normal !important; }
  .stat-num { font-size: 28px; }

  .certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding-top: 24px; padding-bottom: 24px; }
  .cert { gap: 10px; }
  .cert img, .cert--intertek img { width: 76px; height: 72px; }
  .cert p { font-size: 13px; }
  .values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; padding-top: 28px; padding-bottom: 28px; }
  .value-col { gap: 14px; }
  .value-col img { width: 68px; height: 78px; }
  .value-col p { min-height: 43px; font-size: 13px; }
  .value-col + .value-col::before { display: none; }

  .cases-section { margin-top: 34px; }
  .cases-title { font-size: 24px; }
  .cases { margin-top: 28px; flex-direction: column; gap: 14px; }
  .case, .case--center { width: 100%; height: 220px; }
  .case--left, .case--right { display: none; }
  .case-caption { font-size: 22px; }
  .case-arrow { width: 30px; height: 56px; }
  .case-arrow img { width: 30px; height: 56px; }
  .case-arrow--left { left: 16px; }
  .case-arrow--right { right: 16px; }
  .case-arrow--mobile-left,
  .case-arrow--mobile-right { display: flex; top: 50%; }
  .case-arrow--mobile-left { left: 16px; }
  .case-arrow--mobile-right { right: 16px; transform: translateY(-50%) rotate(180deg); }

  .footer-band { width: 100%; height: auto; min-height: 120px; margin-top: 36px; }
  .band-texture { width: 100%; height: 100%; }
  .band-slogan { max-width: calc(100% - 32px); font-size: 24px; line-height: 1.3; }
}

/* Fluid homepage body. */
.products,
.why,
.cases-section,
.certs,
.values {
  width: 100%;
  max-width: 100%;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
  box-sizing: border-box;
}
.product-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.products .product-card { width: 100%; min-width: 0; }
@media (min-width: 1200px) {
  .products .card-panel { left: 47%; width: 45.1%; }
  .products .card-panel--panel1 { width: 45.1%; }
  .products .card-panel--panel2 { width: 48.1%; }
  .products .card-panel--panel3 { width: 49.1%; }
}
/* Keep the title/button group centered inside each card's gray panel. */
.products .card-body {
  left: 69.6%;
  transform: translate(-50%, -50%);
  align-items: center;
  text-align: center;
}
.products .product-card--gas .card-body { left: 71.6%; }
.products .product-card--bracing .card-body { left: 71%; }
.products .btn-view { white-space: nowrap; }
.products .card-title { white-space: nowrap; }

/* Homepage hero: preserve the source banner ratio so no part of the image is cropped. */
.hero .hero-bg {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1919 / 853;
}
.hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.why-bg,
.why-stats,
.cases-grid,
.certs-inner,
.values-inner { width: 100%; max-width: 100%; }
.why-stats {
  gap: clamp(18px, 4vw, 80px);
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}
.why-stats .stat { flex: 1 1 0; min-width: 0; }
.why-stats .stat-text { flex: 1 1 auto; width: auto; min-width: 0; }
.why-stats .stat-title,
.why-stats .stat-sub { white-space: normal !important; overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .product-grid { grid-template-columns: 1fr; }
  .products .card-body,
  .products .product-card--gas .card-body,
  .products .product-card--bracing .card-body { left: 71%; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .products .card-body { left: 70.95%; }
  .products .product-card--gas .card-body,
  .products .product-card--bracing .card-body { left: 71.5%; }
}
