/* 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;
}

/* 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;
}

@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-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-form ~50px) so copyright is fully visible */
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .footer-form {
    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;
  }
}

/* 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: 768px) {
  .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;
  }
}
