/* Content-only helpers — do NOT override template layout/style.css */

/* Text logo (replaces image logo asset) */
.header .logo.logo-text {
  height: auto;
  min-height: 34px;
  line-height: 1.25;
  padding: 22px 0;
  overflow: visible;
}
.header .logo.logo-text a {
  display: block;
  text-decoration: none;
  color: #104492;
}
.header .logo.logo-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}
.header .logo.logo-text span {
  display: block;
  font-size: 11px;
  color: #888;
  font-weight: 400;
  margin-top: 2px;
  white-space: nowrap;
}
.header .tel strong a {
  color: inherit;
  text-decoration: none;
}

/* Header tools: phone + language (language on the far right) */
.header-tools {
  float: right;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 0;
  min-height: 94px;
  position: relative;
  z-index: 20;
}
.header-tools .tel {
  float: none;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  line-height: 1.15;
}

.gx-lang {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: center;
}
.gx-lang__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #d7e2f0;
  border-radius: 6px;
  background: #fff;
  color: #104492;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.gx-lang__toggle:hover,
.gx-lang.is-open .gx-lang__toggle {
  background: #edf5ff;
  border-color: #104492;
  box-shadow: 0 2px 8px rgba(16, 68, 146, 0.08);
}
.gx-lang__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: inherit;
}
.gx-lang__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.gx-lang__label {
  white-space: nowrap;
}
.gx-lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 226px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  border: 1px solid #dce6f3;
  border-top: 3px solid #104492;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 35, 78, 0.18);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
.gx-lang__menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.gx-lang.is-open .gx-lang__menu,
.gx-lang:hover .gx-lang__menu,
.gx-lang:focus-within .gx-lang__menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.gx-lang__menu > a,
.gx-lang__menu > button {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #233953;
  font: inherit;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  box-sizing: border-box;
}
.gx-lang__menu > * + * {
  margin-top: 2px;
}
.gx-lang__menu > a:hover,
.gx-lang__menu > a:focus,
.gx-lang__menu > button:hover,
.gx-lang__menu > button:focus,
.gx-lang__menu > .is-active {
  color: #104492;
  background: #edf5ff;
  outline: none;
}
.gx-lang__menu > .is-active::after {
  content: "✓";
  color: #104492;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.gx-lang__menu b {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cddcf0;
  border-radius: 4px;
  background: #fff;
  color: #104492;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.gx-lang__menu span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gx-google-translate {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html,
body {
  top: 0 !important;
}
/* Hide Google Translate chrome that flashes white bars / tooltips */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-menu-frame,
.goog-logo-link,
.goog-te-gadget,
.goog-te-spinner-pos,
#goog-gt-tt,
.goog-tooltip,
.goog-text-highlight,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
iframe.skiptranslate,
.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
font font,
font {
  background-color: transparent !important;
  box-shadow: none !important;
}

@media screen and (max-width: 767px) {
  .header-tools {
    float: right;
    margin-top: 0;
    min-height: 0;
    gap: 0;
  }
  .header-tools .tel {
    display: none;
  }
  .gx-lang__label {
    display: none;
  }
  .gx-lang__toggle {
    height: 36px;
    padding: 0 10px;
  }
  .gx-lang__menu {
    right: 0;
    width: 210px;
  }
}

/* Banner caption overlay (content) */
.banner .swiper-slide {
  position: relative;
}
.powell-hero-text {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 520px;
  color: #fff;
  background: rgba(16, 68, 146, 0.78);
  padding: 24px 28px;
  box-sizing: border-box;
  pointer-events: none;
}
.powell-hero-text h2 {
  font-size: 32px;
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.powell-hero-text p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: #fff;
}

/* First hero banner: show original artwork ratio, no crop / stretch */
.banner .swiper-slide.banner-slide-fit {
  height: auto !important;
  background: #0b1c36;
}
.banner .swiper-slide.banner-slide-fit a {
  display: block !important;
  height: auto !important;
  background: none !important;
  line-height: 0;
}
.banner .swiper-slide.banner-slide-fit img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Inquiry form (liuyan page wrap) */
.powell-quote-wrap {
  max-width: 720px;
  margin: 0 auto 50px;
  background: #fff;
  padding: 30px 28px;
  box-sizing: border-box;
  border: 1px solid #eee;
}
.powell-quote-wrap .section-title {
  margin-bottom: 20px;
}
.powell-quote-wrap .section-title small {
  display: none;
}

/* Contact / message modal */
.powell-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.powell-modal.open {
  display: block;
}
.powell-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(16, 40, 80, 0.55);
}
.powell-modal-box {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 560px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px 28px;
  max-height: 88vh;
  overflow: auto;
  box-sizing: border-box;
  box-shadow: 0 18px 48px rgba(16, 68, 146, 0.22);
}
.powell-modal-x {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  font-size: 26px;
  cursor: pointer;
  color: #999;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.powell-modal-x:hover {
  background: #f2f5fa;
  color: #104492;
}
.powell-modal-box h3 {
  margin: 0 0 10px;
  padding-right: 28px;
  font-size: 22px;
  font-weight: 700;
  color: #104492;
  line-height: 1.35;
}
.powell-modal-tips {
  margin: 0 0 22px;
  color: #888;
  font-size: 13px;
  line-height: 1.6;
}
.powell-modal-row {
  display: flex;
  gap: 14px;
}
.powell-modal-row .powell-field {
  flex: 1;
  min-width: 0;
}
.powell-field {
  display: block;
  margin-bottom: 14px;
}
.powell-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
  font-weight: 600;
}
.powell-field-label em {
  color: #e24c4c;
  font-style: normal;
  margin-right: 2px;
}
.powell-modal-form input,
.powell-modal-form textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
  color: #333;
  background: #f7f9fc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  resize: vertical;
  font-family: inherit;
}
.powell-modal-form input:focus,
.powell-modal-form textarea:focus {
  border-color: #104492;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 68, 146, 0.12);
}
.powell-modal-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #104492;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 14px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 8px 18px rgba(16, 68, 146, 0.28);
}
.powell-modal-submit:hover {
  background: #0d3a7a;
}
.powell-modal-submit:active {
  transform: translateY(1px);
}

/* Homepage floating inquiry button */
.powell-float-quote {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #104492;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(16, 68, 146, 0.35);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.powell-float-quote:hover {
  background: #0d3a7a;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* 客服浮层：点击左侧竖条收起，只留「在线客服」条 */
.kf {
  -webkit-transition: right 0.35s ease;
  transition: right 0.35s ease;
}
.kf .kf-side {
  cursor: pointer;
}
.kf.kf-collapsed {
  right: -208px !important;
}

.news-content img {
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  display: block;
}

/* Section title underline: keep a clear gap after longer English titles */
.section-title:not(.section-title-tabs) strong {
  display: flex;
  align-items: center;
  gap: 24px;
}
.section-title:not(.section-title-tabs) strong:after {
  position: static;
  flex: 1 1 auto;
  width: auto;
  min-width: 48px;
  right: auto;
  top: auto;
}

/*
 * Product / News: match original Chinese layout
 * PRODUCT CENTER
 * Products —— [tab][tab][tab]...
 * Line only sits between subtitle and buttons, never through text.
 */
.section-title-tabs {
  margin-bottom: 40px;
}
.section-title-tabs > strong:after,
.section-title-tabs strong:after {
  display: none;
}
.section-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  min-width: 0;
}
.section-title-row > strong {
  flex: 0 0 auto;
  display: block;
  position: relative;
  color: #104492;
  font-size: 30px;
  line-height: 40px;
  margin: 0;
}
.section-title-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 24px;
  background: #e5e5e5;
}
.section-title-row .in-prd-menu {
  flex: 0 1 auto;
  margin: 0;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.section-title-row .in-prd-menu ul {
  float: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin: 0;
}
.section-title-row .in-prd-menu li {
  float: none;
  flex: 0 0 auto;
}
.section-title-row .in-prd-menu li a {
  margin: 0 0 0 8px;
  font-size: 13px;
  line-height: 40px;
  padding: 0 10px;
  white-space: nowrap;
}
.section-title-row .in-prd-menu li:first-child a {
  margin-left: 0;
}

@media (max-width: 991px) {
  .section-title-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .section-title-line {
    display: none;
  }
  .section-title-row .in-prd-menu {
    flex: 1 1 100%;
  }
  .section-title-row .in-prd-menu ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: -10px 0 0 -10px;
  }
  .section-title-row .in-prd-menu li {
    flex: 1 1 45%;
  }
  .section-title-row .in-prd-menu li a {
    margin: 10px 0 0 10px;
    text-align: center;
    font-size: 14px;
    line-height: 34px;
  }
}

/* Homepage advantage cards: equal height */
.in-adv {
  display: flex;
  flex-wrap: wrap;
}
.in-adv > li {
  float: none;
  display: flex;
}
.in-adv > li > a {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

/* 404 page */
.powell-404 {
  text-align: center;
  padding: 48px 20px 72px;
  max-width: 640px;
  margin: 0 auto;
}
.powell-404-code {
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: #104492;
  letter-spacing: 0.04em;
  opacity: 0.18;
  user-select: none;
}
.powell-404-title {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 700;
  color: #104492;
  line-height: 1.35;
}
.powell-404-desc {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}
.powell-404-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.powell-404-actions .more-big {
  margin: 0;
}
.powell-404-link {
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #104492;
  line-height: 1.4;
  padding-bottom: 2px;
}
.powell-404-link:hover {
  color: #104492;
}

@media (max-width: 991px) {
  .powell-hero-text {
    left: 4%;
    right: 4%;
    max-width: none;
    padding: 16px 18px;
  }
  .powell-hero-text h2 {
    font-size: 22px;
  }
}
@media (max-width: 768px) {
  .logo-text strong {
    font-size: 18px;
  }
  .powell-404 {
    padding: 28px 10px 48px;
  }
  .powell-404-code {
    font-size: 88px;
  }
  .powell-404-title {
    font-size: 22px;
  }
  .powell-404-actions {
    gap: 14px 20px;
    margin-top: 28px;
  }
  .powell-float-quote {
    right: 16px;
    bottom: 72px;
    width: 50px;
    height: 50px;
    font-size: 12px;
  }
  .powell-modal-row {
    flex-direction: column;
    gap: 0;
  }
  .powell-modal-box {
    margin: 4vh auto;
    padding: 26px 18px 20px;
  }
  .powell-modal-box h3 {
    font-size: 18px;
  }
}

/* Mobile only: show full hero banner (template forces 160px and clips) */
@media screen and (max-width: 767px) {
  /* Text logo is taller than image logo; compact it and clear space under fixed header */
  .header {
    margin-bottom: 0;
  }
  .header .logo.logo-text {
    height: auto !important;
    min-height: 0;
    padding: 0 !important;
    line-height: 1.2;
    overflow: hidden;
  }
  .header .logo.logo-text strong {
    font-size: 16px;
    line-height: 1.2;
  }
  .header .logo.logo-text span {
    font-size: 9px;
    margin-top: 1px;
    max-width: calc(100vw - 72px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body {
    padding-top: 66px;
    /* Clear fixed bottom nav (.footer-fix ~50px) so copyright is fully visible */
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .footer-fix {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
  }
  .footer-copy {
    margin-bottom: 0;
    padding-bottom: 18px;
  }

  .banner.swiper-container,
  .banner .swiper-wrapper {
    height: auto !important;
  }
  .banner .swiper-slide.banner-slide-fit {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #0b1c36;
  }
  .banner .swiper-slide.banner-slide-fit a {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: none !important;
    line-height: 0 !important;
  }
  .banner .swiper-slide.banner-slide-fit img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
}
