:root {
  --brand-red: #e00f15;
  --brand-red-deep: #ce090c;
  --text-primary: #333333;
  --text-muted: #999999;
  --topbar-bg: #2a2626;
  --border-light: #eeeeee;
  --line-light: rgba(255, 255, 255, 0.5);
  --input-border: #cecece;
  --panel-bg: #f4f4f4;
  --surface: #ffffff;
  --page-w: 100%;
  --container-w: 1535px;
  --page-left: 193px;
  --page-right: 192px;
  --header-h: 140px;
  --footer-h: 601px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.2;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page {
  position: relative;
  width: var(--page-w);
  min-height: 2776px;
  margin: 0 auto;
  background: var(--surface);
  overflow: hidden;
}

.float-bar {
  position: fixed;
  top: auto;
  bottom: 24px;
  left: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* The shared shell owns the responsive horizontal position. */
.page .float-bar {
  top: 50% !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%) !important;
}

.float-bar a,
.float-bar img {
  width: 50px;
  height: 50px;
}

.float-bar a:hover img {
  opacity: 0.8;
}

.header {
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding-left: 193px;
  padding-right: 166px;
  background: var(--topbar-bg);
}

.topbar-email {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-email-icon {
  width: 24px;
  height: 24px;
}

.topbar-email-text {
  font-size: 18px;
  font-weight: 400;
  text-transform: lowercase;
}

.t-white {
  color: #ffffff;
}

.t-email {
  color: #ff3d43;
}

.topbar-links {
  display: flex;
  width: 500px;
}

.topbar-links a {
  flex: 1;
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
}

.navbar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 80px;
  padding-left: 193px;
  padding-right: 192px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.logo img {
  width: 201px;
  height: 50px;
}


.nav-union {
  position: relative;
  top: 2px;
  width: 136px;
  height: 26.022px;
}

.nav-search img {
  width: 32px;
  height: 32px;
}

.hero {
  position: relative;
  width: 100%;
  height: 373px;
  margin-top: 10px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 握手中心在源图 x≈26%；30% 让它在各断点的可见区里都居中，
     不再被右侧红色覆盖层吃掉一半。 */
  object-position: 30% center;
}

/* wellgo-v2-style.css 里有一条全局规则（首页 hero 轮播用）：
     .hero .hero-bg { aspect-ratio: 1919/853; height: auto !important; ... }
   它的优先级 (0,2,0) 高于本文件的 .hero-bg (0,1,0)，height 又带 !important，
   所以上面的 height:100% 会被盖掉，背景图改按 1919:853 撑高：
     · 1920px 下被撑到 853px，而 .hero 只有 373px 且 overflow:hidden，
       下半部分被裁掉，握手照只剩上半截；
     · 390px 下只撑到 173px，比 220px 的 hero 还矮，底部露出白底。
   这里用 .contact-page 作用域（(0,3,0)）+ !important 复位。
   只影响联系页，首页轮播的 .hero-bg 不受影响。 */
.contact-page .hero .hero-bg {
  height: 100% !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* 矢量红色斜切块：preserveAspectRatio="none" 让它按盒子重绘，
   斜边永远贯穿整个 hero 高度，不会再被压扁或裁切。 */
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 861.5px;
  height: 373px;
}

/* 刻意不叫 .hero-title：首页在 wellgo-v2-style.css 里有一个全局的
   .hero-title（width:100%; margin:60px auto 0; text-align:center），
   会把这个 h1 撑满整行并顶下去 60px。about/certificate 两页同样用
   .about-hero-title 做了页面级命名隔离。 */
.contact-hero-title {
  position: absolute;
  top: 150px;
  /* 与下面 <=1919 档同一条曲线，避免 1920/1919 边界上跳 77px；
     1920px 处右边缘落在 1690，也不会被右侧悬浮社交栏压住。 */
  right: clamp(64px, 12vw, 311px);
  left: auto;
  color: #ffffff;
  font-size: 55px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

@media (max-width: 1599px) and (min-width: 768px) {
  /* 861.5px 固定宽在 1201–1919px 会吃掉屏幕右侧一大半，
     改成百分比后 1600px 处为 832px，与固定值几乎连续。 */
  .hero-overlay {
    width: 52%;
    height: 100%;
  }

  .contact-hero-title {
    top: 42%;
    left: auto;
    font-size: clamp(32px, 4vw, 55px);
  }
}

.contact-form-section {
  padding-top: 50px;
}

.contact-form-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 1535px;
  min-height: 605.6923px;
  margin-left: 193px;
  padding: 30px 40px;
  background: var(--panel-bg);
}

.contact-form-title {
  font-size: 31.385px;
  font-weight: 700;
  line-height: normal;
}

.form-row {
  display: flex;
  width: 100%;
}

.form-row--two {
  gap: 35px;
}

.form-row--narrow-gap {
  gap: 30px;
}

.field {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 24.4103px;
  min-width: 0;
}

.field-label {
  color: var(--text-primary);
  font-size: 14px;
  line-height: normal;
}

.field-label-star {
  color: var(--brand-red);
}

.field input,
.field textarea {
  width: 100%;
  border: 0.872px solid var(--input-border);
  background: #ffffff;
  color: var(--text-primary);
  outline: none;
}

.field input {
  height: 45px;
  padding: 0 20px;
  border-radius: 10px;
}

.field textarea {
  height: 101px;
  padding: 18px 20px;
  border-radius: 8.718px;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  font-size: 14px;
}

.form-submit {
  display: flex;
  justify-content: center;
  width: 100%;
}

.form-submit button {
  width: 308.6154px;
  height: 66.8718px;
  border: 0;
  border-radius: 8.718px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 24.4103px;
  font-weight: 700;
  cursor: pointer;
}

.contact-cards {
  padding-top: 90px;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 360px);
  gap: 30px;
  width: 1530px;
  margin-left: 193px;
}

.contact-card {
  position: relative;
  height: 190px;
  border: 2.25px solid var(--brand-red);
}

.contact-card-badge {
  position: absolute;
  top: -40px;
  left: 250px;
  width: 80px;
  height: 80px;
}

.contact-card-copy {
  position: absolute;
  color: var(--text-primary);
}

.contact-card-copy h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
}

.contact-card-copy p {
  font-size: 20px;
  line-height: normal;
}

.contact-card-copy--hotline {
  top: 58px;
  left: 35px;
}

.contact-card-copy--hotline p,
.contact-card-copy--email p {
  margin-top: 15px;
}

.contact-card-copy--email {
  top: 58px;
  left: 34.5px;
}

.contact-card-tag {
  position: absolute;
  top: -23px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 53px;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: normal;
}

.contact-card-tag--wide {
  width: 145px;
}

.contact-card-copy--address {
  top: 42px;
  left: 35px;
}

.contact-card-copy--address p {
  width: 290px;
  margin-top: 15px;
}

.map-section {
  padding-top: 50px;
  margin-bottom: 90px;
}

.map-image {
  width: 1535px;
  height: 576px;
  margin-left: 193px;
  object-fit: cover;
}

.footer {
  position: relative;
  width: 100%;
  height: var(--footer-h);
  margin-top: 90px;
  background: var(--brand-red-deep);
  color: #ffffff;
}

.footer-line {
  position: absolute;
  left: 193px;
  width: 1535px;
  border-top: 1px solid var(--line-light);
}

.footer-line {
  top: 108px;
}

.footer-line--2 {
  top: 439px;
}

.footer-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.f-follow {
  position: absolute;
  top: 34px;
  left: 1285px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.f-follow p {
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.f-social {
  display: flex;
  gap: 20px;
}

.f-social a,
.f-social img {
  width: 50px;
  height: 50px;
}

.f-col {
  position: absolute;
  width: 245px;
}

.f-col--products {
  top: 168px;
  left: 193px;
}

.f-col h4,
.f-cert,
.f-addr h4 {
  font-size: 20px;
  font-weight: 700;
}

.f-col h4 {
  margin-bottom: 20px;
}

.f-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.f-links a {
  font-size: 16px;
  line-height: normal;
}

.f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 162px;
  height: 42px;
  padding: 8px 15px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--brand-red-deep);
  font-size: 20px;
  font-weight: 700;
}

.f-email {
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
}

.f-addr {
  position: absolute;
  width: 288px;
}

.f-addr--wellgo {
  top: 168px;
  left: 1379px;
}

.f-addr--sunrise {
  top: 306px;
  left: 1379px;
}

.f-addr h4 {
  margin-bottom: 20px;
}

.f-addr-text {
  font-size: 16px;
  line-height: 1.3;
}

.f-links-row {
  position: absolute;
  top: 503px;
  left: 1509px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.f-sunrise {
  font-size: 14px;
  text-decoration: underline;
}

.f-friend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 6px 10px;
  background: #ffffff;
  color: var(--brand-red-deep);
  border-radius: 4px;
  font-size: 14px;
  line-height: normal;
}

.f-friend img {
  width: 11.993px;
  height: 12px;
}

.f-logo {
  position: absolute;
  left: 222px;
  top: 482px;
  width: 236.9335px;
  height: 59px;
}

.f-copy {
  position: absolute;
  left: 514px;
  top: 494px;
  width: 396px;
  font-size: 14px;
  line-height: normal;
}

@media (max-width: 1919px) {
  :root {
    --page-w: 100%;
  }

  .page {
    width: 100%;
    min-height: auto;
  }






  .contact-form-panel,
  .map-image {
    width: min(calc(100% - 48px), 1535px);
    margin-left: auto;
    margin-right: auto;
  }

  .contact-cards-grid {
    width: min(calc(100% - 48px), 1530px);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-card {
    min-width: 0;
  }

  .contact-card-badge {
    left: auto;
    right: 28px;
  }

  .contact-card-copy--address {
    left: 24px;
    right: 16px;
    min-width: 0;
  }
  .contact-card-copy--address p {
    width: auto;
    max-width: 100%;
    font-size: clamp(14px, 1.4vw, 20px);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .footer-main,
  .footer-line {
    width: min(calc(100% - 48px), 1535px);
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
  }

  .float-bar {
    position: fixed;
    top: auto;
    left: auto;
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 1200px) {
  .topbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .topbar-links {
    width: auto;
    gap: 24px;
  }

  .topbar-links a {
    flex: none;
    text-align: left;
  }

  .navbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 20px;
  }



  .hero {
    height: 280px;
  }

  .contact-hero-title {
    top: 50%;
    /* 右侧悬浮社交栏在 <=1599 时宽 58px，48px 会让标题最后一个字
       压在图标底下。留 14px 间隙。 */
    right: 72px;
    transform: translateY(-50%);
    font-size: clamp(34px, 5vw, 55px);
  }

  .contact-form-section,
  .contact-cards,
  .map-section {
    padding-top: 40px;
  }

  .contact-form-panel {
    padding: 24px;
  }

  .form-row--two {
    flex-direction: column;
    gap: 24px;
  }

  .contact-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 24px;
  }

  .map-image {
    height: auto;
    aspect-ratio: 1535 / 576;
  }

  .footer {
    height: auto;
    margin-top: 64px;
    padding: 40px 24px 32px;
  }

  .footer-line,
  .footer-line--2 {
    display: none;
  }

  .footer-main {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 24px;
  }

  .f-follow,
  .f-col,
  .f-cert,
  .f-cta,
  .f-addr,
  .f-links-row {
    position: static;
    margin: 0;
    left: auto;
    top: auto;
  }

  .f-follow {
    width: 100%;
    justify-content: flex-start;
  }

  .f-col,
  .f-addr {
    width: calc(50% - 12px);
    min-width: 240px;
  }

  .f-cert {
    width: 100%;
  }

  .f-cta {
    align-items: flex-start;
  }

  .f-links-row {
    width: 100%;
  }

  .f-logo,
  .f-copy {
    position: static;
    margin-top: 32px;
  }

  .f-copy {
    width: auto;
  }
}

@media (max-width: 767px) {
  .topbar-email-text,
  .topbar-links a,


  .hero {
    height: 220px;
  }

  .hero-overlay {
    width: 68%;
  }

  .contact-hero-title {
    right: 7%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    white-space: nowrap;
  }

  .contact-form-panel {
    gap: 24px;
    padding: 20px 16px;
  }

  .contact-form-title {
    font-size: 26px;
  }

  .form-submit button {
    width: 100%;
    max-width: 308.6154px;
    height: 56px;
    font-size: 20px;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-card--address {
    height: auto;
    min-height: 190px;
    box-sizing: border-box;
    padding: 42px 34px 24px;
  }

  .contact-card--address .contact-card-copy--address {
    position: static;
    width: 100%;
  }

  .contact-card--address .contact-card-copy--address h3,
  .contact-card--address .contact-card-copy--address p {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: anywhere;
  }

  .f-follow {
    flex-direction: column;
    align-items: flex-start;
  }

  .f-social {
    flex-wrap: wrap;
  }

  .f-col,
  .f-addr,
  .f-cta {
    width: 100%;
  }

  .float-bar {
    display: none;
  }

  .float-bar a,
  .float-bar img {
    width: 42px;
    height: 42px;
  }
}

/* 联系页手机端沿用公共 Header，避免本页旧版响应式规则把导航改成纵向桌面布局。 */
@media (max-width: 767px) {
  .topbar {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: 26px 28px;
    height: 72px !important;
    min-height: 72px !important;
    box-sizing: border-box;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
  }

  .topbar-email { display: flex; width: 100%; height: 26px; align-items: center; gap: 8px; }
  .topbar-email-icon { width: 22px; height: 22px; }
  .topbar-email-text { display: block !important; visibility: visible !important; width: auto !important; height: 22px !important; margin: 0; color: #fff !important; font-size: 14px !important; line-height: 22px !important; white-space: nowrap; }
  .topbar-email-text .t-white { display: inline !important; color: #fff !important; }
  .topbar-email-text .t-email { display: inline !important; color: #ff3d43 !important; }
  .topbar-links { display: flex; width: 100%; height: 28px; gap: 4px; }
  .topbar-links a { flex: 1; height: 28px; line-height: 28px; text-align: center; font-size: 12px; }

  .navbar {
    position: relative;
    height: 68px;
    min-height: 68px;
    padding: 10px 16px;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }

  .logo img { width: 138px; height: auto; }
  .mobile-nav-toggle { display: flex; position: absolute; top: 50%; right: 16px; z-index: 5; width: 42px; height: 38px; padding: 8px 6px; border: 1px solid #d7d7d7; border-radius: 4px; background: #fff; flex-direction: column; justify-content: space-between; transform: translateY(-50%); }
  .mobile-nav-toggle span { display: block; width: 100%; height: 2px; background: #222; }
  .main-nav { display: none; width: 100%; height: auto; margin: 0; padding: 16px 0 4px; border-top: 0; gap: 0; }
  .navbar.is-mobile-nav-open { height: auto; flex-wrap: wrap; }
  .navbar.is-mobile-nav-open::after { content: ''; position: absolute; top: 67px; left: 16px; right: 16px; 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; }
  .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; min-width: 0; padding: 0 0 0 16px; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-union, .nav-search { display: none; }
}
