.author-avatar,
.blog-post-image,
.blog-post-img,
.comment-avatar,
.gallery-img,
.mood-board-item img,
.portfolio-item img,
.recent-post-img,
.related-post-img {
  object-fit: cover;
  object-fit: cover;
}
body,
h1,
h2,
h3,
h4,
h5 {
  font-family: Outfit, sans-serif;
}
.nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}
#preloader,
footer {
  background-color: var(--primary-color);
}
.footer-logo,
.navbar-brand {
  font-family: Poppins, sans-serif;
}
.cookies-table td,
.gdpr-badge {
  vertical-align: middle;
}
.back-to-top-mobile,
.blog-post-link,
.blog-post-tag,
.blog-tag,
.category-link,
.copyright a {
  text-decoration: none;
}
:root {
  --primary-color: #0a2463;
  --primary-color-light: #3a5f9e;
  --secondary-color: #ff6b35;
  --accent-color: #3e92cc;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --navbar-height: 72px;
  --section-viewport-height: calc(100dvh - var(--navbar-height));
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-padding-top: var(--navbar-height);
  scroll-behavior: auto;
  overflow-anchor: none;
}

/* 已移除 html.is-scrolling 规则，避免与 JS 的 smooth 滚动冲突 */

html.is-nav-scrolling {
  scroll-snap-type: none;
}

html.is-nav-scrolling .navbar {
  transition: none !important;
}

body {
  color: var(--dark-color);
  overflow-x: hidden;
  overflow-anchor: none;
  line-height: 1.6;
}
h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  color: var(--primary-color);
}
.section-title {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}
.section-title:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.25s ease-out;
}
.preloader-content {
  text-align: center;
  color: #fff;
}
.nav-link,
.navbar-brand {
  color: var(--primary-color) !important;
}
.preloader-logo {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}
.preloader-logo img {
  width: min(350px, 70vw);
  height: auto;
}
@keyframes hammer-animation {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-30deg);
  }
  75% {
    transform: rotate(30deg);
  }
}
.loading-bar {
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px 30px;
  margin: 0 auto;
  overflow: hidden;
}
.loading-progress {
  height: 100%;
  width: 0%;
  background-color: var(--secondary-color);
  border-radius: 20px 30px;
  animation: 0.9s ease-in-out loading;
}
@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: 0.3s;
}
.navbar.scrolled {
  padding: 0.5rem 0;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
}
.navbar-brand-logo {
  width: 115px;
  height: auto;
  vertical-align: middle;
}
.navbar-brand-text {
  vertical-align: middle;
  margin-left: 0.25rem;
}
.navbar-brand-name {
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .navbar-brand {
    font-size: 0;
    max-width: calc(100% - 56px);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .navbar-brand .navbar-brand-logo {
    width: 96px !important;
    height: auto;
    flex-shrink: 0;
  }

  .navbar-brand .navbar-brand-text {
    font-size: clamp(0.58rem, 2.4vw, 0.72rem);
    line-height: 1.28;
    white-space: normal;
    display: inline-block;
    vertical-align: middle;
    max-width: calc(100vw - 150px);
    margin-left: 0;
  }

  .navbar-brand .navbar-brand-name {
    font-size: inherit;
    line-height: inherit;
    color: var(--primary-color) !important;
  }
}
.navbar-nav .nav-link.active {
  font-weight: 600;
  position: relative;
}
.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: -5px;
  left: 0;
  border-radius: 2px;
}
.navbar-brand i {
  color: var(--secondary-color);
  margin-right: 4px;
}
.lang-switch-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.btn-lang-switch {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color) !important;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-left: 0.5rem;
  line-height: 1;
  min-width: 3.25rem;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.35rem;
  transition: all 0.3s ease;
}
.btn-lang-switch .lang-switch-label {
  display: inline-block;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  letter-spacing: 0.02em;
  line-height: 1;
}
.btn-lang-switch:hover,
.btn-lang-switch:focus {
  background: var(--secondary-color);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.nav-link {
  font-weight: 500;
  margin: 0 7px;
  transition: color 0.3s;
}
.blog-post-content p,
.feature-item,
.hero-content h1 {
  margin-bottom: 1.5rem;
}
.navbar-toggler {
  border: none;
  padding: 0;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.btn-outline-custom:hover,
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.hero-section {
  margin-top: var(--navbar-height);
  height: var(--section-viewport-height);
  min-height: var(--section-viewport-height);
  background-color: var(--primary-color);
  display: flex;
  align-items: stretch;
  color: #fff;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: var(--navbar-height);
  box-sizing: border-box;
}

/* 菜单对应模块：统一一屏高度，点击锚点刚好对齐可视区 */
#about,
#services,
#projects,
#why-choose {
  min-height: var(--section-viewport-height);
  height: var(--section-viewport-height);
  max-height: var(--section-viewport-height);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-margin-top: var(--navbar-height);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* 联系我们：内容随高度展开，不使用模块内滚动条 */
#contact {
  scroll-margin-top: var(--navbar-height);
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  overscroll-behavior: auto;
}

/* 技术创新：上部初版样式 + 底部全宽 CTA，模块内无滚动条 */
#why-choose.why-choose-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

#why-choose.why-choose-section > .container {
  padding: 52px 0;
  width: 100%;
  flex-shrink: 0;
}

#why-choose .innovation-cta.cta-section {
  flex-shrink: 0;
  width: 100%;
  margin-top: 0;
  contain: paint;
  background-attachment: scroll;
}

#why-choose .innovation-features-row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

#why-choose .feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 2rem 1.5rem 1.85rem;
  text-align: center;
  will-change: transform;
  transform: translateZ(0);
}

#why-choose .feature-box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 0 1.35rem;
  flex-shrink: 0;
  will-change: transform;
  transform: translateZ(0);
}

#why-choose .feature-box-icon svg {
  width: 3.75rem;
  height: 3.75rem;
  display: block;
  flex-shrink: 0;
  will-change: transform;
  transform: translateZ(0);
}

#why-choose .feature-box h4 {
  margin: 0 0 0.85rem;
  padding: 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary-color);
}

#why-choose .feature-box p {
  margin: 0;
  padding: 0 0.1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-color);
  flex: 1;
}

.feature-icon,
.feature-item,
.kitchen-hero,
.process-icon {
  align-items: center;
  display: flex;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
}
.btn-primary-custom {
  background-color: var(--secondary-color);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 20px 30px;
  color: #fff;
  transition: 0.3s;
}
.btn-primary-custom:hover,
.scroll-to-top:hover {
  background-color: #e55a2b;
}
.btn-outline-custom {
  border: 2px solid #fff;
  background-color: transparent;
  padding: 10px 28px;
  font-weight: 600;
  border-radius: 20px 30px;
  color: #fff;
  transition: 0.3s;
}
.btn-outline-custom:hover {
  background-color: #fff;
  color: var(--primary-color);
}

.testimonials-section {
  padding: 40px 0;
}

.projects-section {
  padding: 60px 0;
  contain: layout style;
}

#projects .project-card {
  position: relative;
  border-radius: 20px 30px;
  overflow: hidden;
  margin-bottom: 0;
  height: 300px;
  background-color: #eef2f7;
  contain: layout style paint;
  isolation: isolate;
  will-change: auto;
}

#projects .project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#projects .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 36, 99, 0.92) 0%,
    rgba(10, 36, 99, 0.45) 38%,
    transparent 72%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}

#projects .project-overlay h4 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

#projects .project-overlay p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.95;
}

@media (hover: hover) and (pointer: fine) {
  #projects .project-card {
    transition: box-shadow 0.25s ease;
  }

  #projects .project-card:hover {
    box-shadow: 0 12px 24px rgba(10, 36, 99, 0.18);
  }
}

.contact-section{
  padding: 17px 0;
}

.about-section{
  padding: 60px 0;
}
.about-img {
  border-radius: 20px 30px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

#aboutCarousel.carousel.slide .carousel-inner {
  overflow: hidden;
}

#aboutCarousel.carousel.slide .carousel-item {
  transition: transform 1.5s ease-in-out;
}

#aboutCarousel .carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#aboutCarousel .carousel-indicators {
  margin-bottom: 0.75rem;
}

#aboutCarousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--primary-color);
}

#aboutCarousel .carousel-indicators button.active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.about-features {
  margin-top: 2rem;
}
.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  justify-content: center;
  margin-right: 1rem;
  color: var(--secondary-color);
  font-size: 1.5rem;
}
.services-section,
.why-choose-section {
  padding: 60px 0;
  background-color: var(--light-color);
}
.service-card,
.service-detail-card {
  background-color: #fff;
  border-radius: 20px 30px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: 0.3s;
  border: none;
}
.service-detail-icon {
  text-align: center;
  padding-top: 2%;
  background-color: rgba(255, 107, 53, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  margin: 2% auto auto;
}
.service-detail-card h4 {
  text-align: center;
  margin: 5%;
}
.service-detail-card p {
  text-align: center;
  padding: 20px;
}
.feature-box:hover,
.service-card.electrical-service:hover,
.service-card.painting-service:hover,
.service-card.plumbing-service:hover,
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.feature-box-icon,
.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}
.project-card {
  position: relative;
  border-radius: 20px 30px;
  overflow: hidden;
  margin-bottom: 30px;
  height: 300px;
  will-change: transform;
}
.design-style-img img,
.flooring-type-img img,
.project-gallery-img,
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  will-change: transform;
}
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 36, 99, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-box,
.testimonial-card {
  background-color: #fff;
  padding: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  border-radius: 20px 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.testimonial-card-link:hover .testimonial-card {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.testimonial-card-cover {
  height: 180px;
  overflow: hidden;
  background: #eef2f7;
}
.testimonial-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}
.testimonial-card-link:hover .testimonial-card-cover img {
  transform: scale(1.05);
}
.testimonial-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.testimonial-card .news-excerpt {
  font-size: 0.92rem;
  color: var(--gray-color);
  line-height: 1.65;
  margin-bottom: 1rem;
  min-height: 4.5rem;
}
.testimonial-card .client-info {
  margin-top: 0;
  flex-wrap: wrap;
  align-items: center;
}
.testimonial-card .client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-card .client-avatar i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}
.testimonial-more {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-color);
  white-space: nowrap;
}
.testimonial-more i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}
.portfolio-item:hover .portfolio-overlay,
.project-card:hover .project-overlay {
  opacity: 1;
}
.design-style-card:hover .design-style-img img,
.flooring-type-card:hover .flooring-type-img img,
.gallery-img:hover,
.mood-board-item:hover,
.portfolio-item:hover img,
.project-card:hover .project-img,
.project-gallery-card:hover .project-gallery-img {
  transform: scale(1.05);
}
.related-post-card:hover,
.scroll-to-top:hover,
.social-icons a:hover {
  transform: translateY(-5px);
}
.feature-box {
  text-align: center;
  transition: 0.3s;
}
.testimonial-rating {
  color: #ffc107;
  margin-bottom: 1rem;
}
.client-info {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}
.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}
.cta-section {
  padding: 80px 0;
  background: linear-gradient(rgba(10, 36, 99, 0.9), rgba(10, 36, 99, 0.9))
      center/cover,
    url("../images/BDMK.jpg") center/cover;
  color: #fff;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}
.contact-form .form-control {
  padding: 12px 15px;
  border-radius: 20px 30px;
  border: 1px solid #ddd;
  margin-bottom: 1.5rem;
}
.contact-form .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}
.contact-row.align-items-stretch > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.contact-form.h-100 {
  display: flex;
  flex-direction: column;
}
.contact-form-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}
.contact-form-submit {
  margin-top: auto;
  padding-top: 0.25rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
}
.contact-info-wechat {
  margin-top: auto;
  margin-bottom: 0;
  align-items: center;
}
.contact-info-wechat .contact-info-icon {
  color: #07c160;
  background-color: rgba(7, 193, 96, 0.1);
}
.contact-wechat-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.contact-wechat-text {
  flex: 1;
  min-width: 0;
}
.contact-wechat-text h5 {
  margin-bottom: 0.35rem;
}
.wechat-qrcode-hint {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 0;
  line-height: 1.5;
}
.wechat-qrcode-img {
  display: block;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
@media (max-width: 991.98px) {
  .contact-info-wechat {
    margin-top: 0;
    margin-bottom: 0;
  }
  .contact-wechat-content {
    flex-wrap: wrap;
  }
}
.contact-us {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 20px 30px;
  padding: 20px;
  background-color: #fff;
}

#contact .map-container {
  border-radius: 20px 30px;
  overflow: hidden;
  height: auto;
  min-height: 0;
  padding: 20px;
  margin-top: 1.5rem;
}

#contact .contact-us,
#contact .contact-form.h-100,
#contact .contact-info.h-100,
#contact .contact-form-inner {
  height: auto;
  min-height: 0;
}

.map-container {
  border-radius: 20px 30px;
  overflow: hidden;
  height: 100%;
  min-height: 300px;
  padding: 20px;
}
.scroll-to-top,
.social-icons a {
  border-radius: 50%;
  transition: 0.3s;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  color: var(--gray-color);
  margin-top: 2%;
  min-height: 260px;
  border-radius: 16px;
  overflow: hidden;
}
.contact-map-open {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  background: #fff;
  border-top: 1px solid #e9ecef;
  transition: color 0.25s ease, background 0.25s ease;
}
.contact-map-open:hover {
  color: var(--secondary-color);
  background: #f8f9fa;
}
.footer-links h5:after,
.scroll-to-top,
.social-icons a:hover {
  background-color: var(--secondary-color);
}
footer {
  color: #fff;
  padding: 50px 0 30px;
}
.footer-logo {
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.footer-links h5 {
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
}
.footer-links h5:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  bottom: -8px;
  left: 0;
}
.footer-links ul,
.project-info ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin-bottom: 0.8rem;
}
.footer-wechat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.footer-wechat-info {
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}
.footer-wechat-info .fa-weixin {
  color: #ffffff;
}
.footer-wechat-qrcode {
  display: block;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}
.footer-qrcodes {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.footer-qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-qrcode-img {
  width: 100px;
  height: auto;
  max-width: 100px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  transition: transform 0.3s ease;
  object-fit: contain;
}
.footer-qrcode-img:hover {
  transform: scale(1.05);
}
.footer-qrcode-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-qrcode-label .fa-weixin {
  color: #07c160;
}
.footer-qrcode-label .fa-tiktok {
  color: #000;
  background: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: 0.3s;
}
.footer-links ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}
.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  color: #fff;
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}
.copyright a {
  color: #ff6b36;
}
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  border: none;
}
.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .about-img {
    margin-bottom: 2rem;
  }
}
.breadcrumb-section {
  background-color: #f8f9fa;
  padding: 20px 0;
  margin-top: 0;
}
.breadcrumb-item a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s;
}
.back-to-blog:hover,
.blog-post-link:hover,
.breadcrumb-item a:hover {
  color: #0056b3;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}
.bathroom-types-section,
.benefits-section,
.blog-post-content-section,
.blog-section,
.comments-section,
.design-styles-section,
.electrical-services-section,
.emergency-section,
.flooring-types-section,
.intro-section,
.layout-section,
.painting-services-section,
.plumbing-services-section,
.projects-gallery-section,
.room-design-section,
.safety-section,
.services-details-section {
  padding: 80px 0;
}
.intro-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.intro-features .feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}
.process-number,
.service-detail-icon {
  display: flex;
  align-items: center;
  color: #fff;
}
.intro-features .feature-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 3px;
}
.intro-features .feature-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}
.service-detail-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f0f0f0;
}
.blog-post-card:hover,
.service-detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.service-detail-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  border-radius: 50%;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
}
.design-style-content h4,
.flooring-type-content h4,
.service-detail-card h4 {
  color: #222;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: "Space Grotesk", sans-serif;
}
.design-style-content p,
.flooring-type-content p,
.service-detail-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}
.service-list,
.style-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.service-list li,
.style-features li {
  padding: 8px 0 8px 25px;
  color: #555;
  position: relative;
  font-size: 0.95rem;
}
.service-list li:before,
.style-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}
.process-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0, #e9ecef 100%);
}
.process-step {
  position: relative;
  padding: 30px 20px;
  background: #fff;
  border-radius: 15px;
  height: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.process-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.process-icon {
  width: 80px;
  height: 80px;
  margin: 20px auto 25px;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 123, 255, 0.05)
  );
  border-radius: 50%;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2.5rem;
}
.bathroom-type-card h4,
.benefit-card h4,
.layout-option h4,
.process-step h4,
.room-design-card h4,
.safety-card h4 {
  color: #222;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: "Space Grotesk", sans-serif;
}
.process-step p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}
.project-gallery-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}
.project-gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.project-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px 25px;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.4s;
}
.accordion-body,
.accordion-button {
  padding: 20px 25px;
  background-color: #fff;
}
.project-gallery-card:hover .project-gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}
.project-gallery-overlay h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
}
.project-gallery-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0;
}
.accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.accordion-button {
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: #fff;
}
.accordion-button:focus,
.mobile-toc .accordion-button:focus {
  box-shadow: none;
  border: none;
}
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body {
  color: #666;
  line-height: 1.7;
}
#bathroomRenovationForm .form-control,
#electricalPlumbingForm .form-control,
#homeRemodelingForm .form-control,
#interiorDesignForm .form-control,
#kitchenRenovationForm .form-control,
#paintingFlooringForm .form-control {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}
#bathroomRenovationForm .form-control:focus,
#electricalPlumbingForm .form-control:focus,
#homeRemodelingForm .form-control:focus,
#interiorDesignForm .form-control:focus,
#kitchenRenovationForm .form-control:focus,
#paintingFlooringForm .form-control:focus,
.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}
#bathroomMessage,
#epMessage,
#interiorMessage,
#kitchenMessage,
#paintingMessage,
#remodelMessage {
  min-height: 150px;
}
[data-aos-delay="100"] {
  transition-delay: 0.1s;
}
[data-aos-delay="200"] {
  transition-delay: 0.2s;
}
[data-aos-delay="300"] {
  transition-delay: 0.3s;
}
[data-aos-delay="400"] {
  transition-delay: 0.4s;
}
.kitchen-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover fixed,
    url("/assets/images/kitchen-hero.jpeg") center/cover fixed;
  min-height: 90vh;
}
.design-style-card,
.flooring-type-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  border: 1px solid #f0f0f0;
}
.design-package-card:hover,
.design-style-card:hover,
.flooring-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.design-style-img,
.flooring-type-img {
  height: 300px;
  overflow: hidden;
}
.design-style-content,
.flooring-type-content {
  padding: 25px;
}
.bathroom-type-card,
.layout-option,
.room-design-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px 25px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  border: 1px solid #f0f0f0;
  position: relative;
}
.bathroom-type-card:hover,
.benefit-card:hover,
.layout-option:hover,
.room-design-card:hover,
.safety-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.bathroom-type-icon,
.layout-icon,
.room-design-icon,
.service-icon.painting-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 123, 255, 0.05)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2.5rem;
}
.bathroom-type-card p,
.layout-option p,
.room-design-card p,
.service-card.electrical-service p,
.service-card.painting-service p,
.service-card.plumbing-service p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.bathroom-type-badge,
.layout-badge,
.room-design-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: #fff;
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.design-style-card,
.layout-option {
  animation: 0.6s forwards fadeInUp;
}
.bathroom-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover fixed,
    url("/assets/images/bathroom-hero.jpeg") center/cover fixed;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.service-detail-icon.bathroom-icon {
  background: linear-gradient(135deg, #0a2463, #0056b3);
}
.breadcrumb-item.active,
.contact-cta h2,
.portfolio-hero h1,
.service-detail-icon.bathroom-icon i {
  color: #fff;
}
.bathroom-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.bathroom-feature-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}
.bathroom-feature-item:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.bathroom-feature-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.bathroom-feature-item h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}
.bathroom-feature-item p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.bathroom-feature-item,
.bathroom-type-card {
  animation: 0.5s forwards fadeInScale;
}
.process-step .process-icon.bathroom-process,
.process-step .process-icon.interior-process,
.process-step .process-icon.painting-process {
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.15),
    rgba(0, 123, 255, 0.05)
  );
}
@keyframes waterRipple {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}
.bathroom-type-icon:hover i {
  animation: 1.5s infinite waterRipple;
}
.interior-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover fixed,
    url("/assets/images/interior-hero.jpeg") center/cover fixed;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.design-style-card.interior-style {
  border-top: 4px solid var(--primary-color);
}
.design-style-content.interior-style h4 {
  color: #222;
  font-size: 1.4rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.style-features.interior-features li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}
.cookies-table tr:last-child td,
.data-processing-table tr:last-child td,
.mobile-toc .nav-link:last-child,
.package-features li:last-child,
.privacy-sidebar .nav-link:last-child,
.service-features li:last-child,
.style-features.interior-features li:last-child,
.terms-sidebar .nav-link:last-child {
  border-bottom: none;
}
.mood-board-preview {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}
.mood-board-preview h4 {
  color: #222;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
}
.mood-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}
.mood-board-item {
  border-radius: 8px;
  overflow: hidden;
  height: 120px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.mood-board-item img {
  width: 100%;
  height: 100%;
}
.design-package-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  border: 2px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.design-package-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}
.design-package-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}
.package-header {
  margin-bottom: 25px;
}
.package-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.package-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
}
.package-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}
.package-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
  text-align: left;
}
.package-features li {
  padding: 10px 0 10px 30px;
  color: #555;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px dashed #eee;
}
.package-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}
@media (max-width: 991.98px) {
  .bathroom-types-section,
  .design-styles-section,
  .faq-section,
  .intro-section,
  .layout-section,
  .process-section,
  .projects-gallery-section,
  .room-design-section,
  .services-details-section {
    padding: 60px 0;
  }
  .service-detail-card {
    padding: 25px;
  }
  .process-step {
    margin-bottom: 40px;
  }
  .project-gallery-card {
    height: 280px;
  }
  .design-style-img {
    height: 180px;
  }
  .design-style-content {
    padding: 20px;
  }
  .bathroom-type-card,
  .layout-option,
  .room-design-card {
    padding: 25px 20px;
  }
  .bathroom-type-icon,
  .layout-icon,
  .room-design-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .bathroom-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .color-swatch {
    width: 50px;
    height: 70px;
  }
  .design-package-card.featured {
    transform: none;
  }
  .design-package-card.featured:hover {
    transform: translateY(-10px);
  }
}
@media (max-width: 767.98px) {
  .intro-features .row > div {
    margin-bottom: 10px;
  }
  .service-detail-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .design-style-content h4,
  .service-detail-card h4 {
    font-size: 1.3rem;
  }
  .process-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  .bathroom-type-card h4,
  .layout-option h4,
  .process-step h4,
  .project-gallery-overlay h4,
  .room-design-card h4 {
    font-size: 1.2rem;
  }
  .project-gallery-card {
    height: 250px;
  }
  .project-gallery-overlay {
    padding: 20px;
  }
  .bathroom-hero,
  .interior-hero,
  .kitchen-hero {
    background-attachment: scroll;
    min-height: 80vh;
  }
  .bathroom-type-card,
  .design-package-card,
  .design-style-card,
  .layout-option,
  .room-design-card {
    margin-bottom: 30px;
  }
  .bathroom-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .color-palette-container {
    flex-wrap: wrap;
  }
  .color-swatch {
    width: 45px;
    height: 65px;
  }
  .mood-board-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 575.98px) {
  .bathroom-types-section,
  .design-styles-section,
  .faq-section,
  .intro-section,
  .layout-section,
  .process-section,
  .projects-gallery-section,
  .room-design-section,
  .services-details-section {
    padding: 50px 0;
  }
  .service-detail-card {
    padding: 20px;
  }
  .accordion-body,
  .accordion-button {
    padding: 15px 20px;
  }
  .project-gallery-card {
    height: 220px;
  }
  .accordion-button {
    font-size: 1rem;
  }
  .design-style-img {
    height: 160px;
  }
  .bathroom-type-card,
  .layout-option,
  .room-design-card {
    padding: 20px 15px;
  }
  .bathroom-type-icon,
  .layout-icon,
  .room-design-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .bathroom-features-grid {
    grid-template-columns: 1fr;
  }
  .color-swatch {
    width: 40px;
    height: 60px;
  }
  .mood-board-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mood-board-item {
    height: 100px;
  }
}
.benefit-card,
.safety-card,
.service-card.painting-service {
  border-radius: 15px;
  height: 100%;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
@keyframes fadeInDesign {
  from {
    opacity: 0;
    transform: translateY(20px) rotateX(-10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}
.design-package-card,
.room-design-card {
  animation: 0.6s forwards fadeInDesign;
}
.color-swatch:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  animation: 1.5s infinite pulse;
}
.painting-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover fixed,
    url("/assets/images/painting-hero.jpeg") center/cover fixed;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.service-card.painting-service {
  background: #fff;
  padding: 30px 25px;
  border: 1px solid #f0f0f0;
  text-align: center;
}
.service-card.electrical-service h4,
.service-card.painting-service h4,
.service-card.plumbing-service h4 {
  color: #222;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: "Space Grotesk", sans-serif;
}
.service-features li i {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-right: 8px;
}
.flooring-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.flooring-attribute {
  display: inline-flex;
  align-items: center;
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #555;
  font-weight: 500;
}
.flooring-attribute i {
  color: var(--primary-color);
  margin-right: 5px;
  font-size: 0.9rem;
}
.benefit-card,
.safety-card {
  background: #fff;
  padding: 30px 25px;
  border: 1px solid #f0f0f0;
}
.benefit-icon,
.safety-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 123, 255, 0.05)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
}
.benefit-card p,
.safety-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0;
}
.color-palette-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
.color-palette {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.color-swatch {
  width: 60px;
  height: 80px;
  position: relative;
  transition: transform 0.3s;
}
.color-swatch:hover {
  transform: scale(1.1);
  z-index: 2;
}
.color-swatch::after {
  content: attr(data-color);
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.finish-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}
.finish-option {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: 0.3s;
}
.finish-option:hover {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}
.finish-option i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.finish-option h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}
.finish-option p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0;
}
.service-card.electrical-service,
.service-card.plumbing-service {
  padding: 30px 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: 0.3s;
}
@keyframes paintBrush {
  0%,
  100% {
    transform: translateX(-10px) rotate(-10deg);
  }
  50% {
    transform: translateX(10px) rotate(10deg);
  }
}
.service-icon.painting-icon:hover i {
  animation: 1s infinite paintBrush;
}
.flooring-type-card:hover .flooring-attribute {
  background: var(--primary-color);
  color: #fff;
  transition: 0.3s 0.2s;
}
.flooring-type-card:hover .flooring-attribute i {
  color: #fff;
  transition: 0.3s 0.2s;
}
.electrical-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover fixed,
    url("/assets/images/electrical-hero.jpeg") center/cover fixed;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.service-icon.electrical-icon,
.service-icon.plumbing-icon {
  width: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  font-size: 2.5rem;
}
.service-card.electrical-service {
  background: #fff;
  border-radius: 15px;
  height: 100%;
  border: 1px solid #f0f0f0;
  border-top: 4px solid #0a2463;
}
.service-icon.electrical-icon {
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 123, 255, 0.05)
  );
  border-radius: 50%;
  justify-content: center;
  color: #0a2463;
}
.service-card.plumbing-service {
  background: #fff;
  border-radius: 15px;
  height: 100%;
  border: 1px solid #f0f0f0;
  border-top: 4px solid #17a2b8;
}
.service-icon.plumbing-icon {
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(23, 162, 184, 0.1),
    rgba(23, 162, 184, 0.05)
  );
  border-radius: 50%;
  justify-content: center;
  color: #17a2b8;
}
.emergency-badge,
.emergency-contact .btn-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
}
.service-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  text-align: left;
}
.blog-hero,
.blog-post-hero,
.faq-hero,
.newsletter-box,
.portfolio-hero,
.privacy-hero,
.right-card,
.stat-item,
.terms-hero,
.usage-card {
  text-align: center;
}
.service-features li {
  padding: 8px 0 8px 25px;
  color: #555;
  position: relative;
  font-size: 0.9rem;
  border-bottom: 1px dashed #eee;
}
.service-features li i.fa-bolt,
.toc-list a:hover {
  color: #0a2463;
}
.service-features li i.fa-tint {
  color: #17a2b8;
}
.emergency-badge {
  display: inline-block;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  animation: 2s infinite pulse;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.2;
  }
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}
.emergency-content h2 {
  color: #222;
  font-size: 2rem;
  font-weight: 700;
}
.emergency-features,
.rights-grid,
.security-features {
  margin: 25px 0;
}
.comment-header,
.emergency-feature {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.emergency-feature i,
.info-type-item i {
  font-size: 1.2rem;
  width: 30px;
}
.emergency-feature span,
.info-type-item span {
  font-weight: 500;
  color: #333;
}
.emergency-contact .btn-danger {
  border: none;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}
.emergency-contact .btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}
.emergency-list {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.emergency-list h4 {
  color: #222;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}
.emergency-item {
  display: flex;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f5f5f5;
}
.emergency-item:last-child,
.privacy-section-item:last-child,
.recent-post-item:last-child,
.terms-section-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.emergency-item i {
  font-size: 1.5rem;
  margin-top: 5px;
}
.emergency-item h5 {
  color: #222;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.emergency-item p,
.usage-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.license-badge {
  display: inline-block;
  background: #f8f9fa;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 10px;
  margin-bottom: 10px;
}
.warning-note {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.warning-note i {
  color: #ffc107;
  margin-right: 10px;
}
@keyframes boltFlash {
  0%,
  100% {
    color: #0a2463;
  }
  50% {
    color: #ffc107;
    transform: scale(1.2);
  }
}
.service-icon.electrical-icon:hover i {
  animation: 0.8s infinite boltFlash;
}
@keyframes waterFlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.service-icon.plumbing-icon:hover i {
  animation: 1s infinite waterFlow;
}
.terms-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover fixed,
    url("/assets/images/terms-hero.jpeg") center/cover fixed;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.privacy-hero .hero-content h1,
.terms-hero .hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}
.privacy-hero .hero-content p,
.terms-hero .hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.9);
}
.privacy-sidebar,
.terms-sidebar {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  margin-top: 20px;
}
.privacy-sidebar h5,
.terms-sidebar h5 {
  color: #222;
  font-weight: 700;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}
.privacy-sidebar .nav-link,
.terms-sidebar .nav-link {
  color: #555;
  padding: 10px 0;
  border-bottom: 1px dashed #e9ecef;
  font-size: 0.95rem;
  transition: 0.3s;
  position: relative;
}
.privacy-sidebar .nav-link.active,
.privacy-sidebar .nav-link:hover,
.terms-sidebar .nav-link.active,
.terms-sidebar .nav-link:hover {
  color: var(--primary-color);
  padding-left: 10px;
  background: 0 0;
}
.privacy-sidebar .nav-link.active::before,
.privacy-sidebar .nav-link:hover::before,
.terms-sidebar .nav-link.active::before,
.terms-sidebar .nav-link:hover::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}
.privacy-content,
.terms-content {
  background: #fff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}
.privacy-section-item,
.terms-section-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  animation: 0.6s forwards fadeInUp;
}
.privacy-section-item h2,
.terms-section-item h2 {
  color: #222;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 25px;
}
.privacy-section-item h5,
.terms-section-item h5 {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
}
.privacy-section-item p,
.terms-section-item p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1rem;
}
.privacy-section-item ul,
.terms-section-item ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.privacy-section-item li,
.terms-section-item li {
  color: #555;
  line-height: 1.7;
  margin-bottom: 10px;
  position: relative;
  padding-left: 10px;
}
.privacy-section-item li:before,
.terms-section-item li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: 700;
  position: absolute;
  left: -15px;
}
.contact-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}
.category-item,
.contact-details p,
.related-post-meta,
.toc-list li {
  margin-bottom: 10px;
}
.contact-details i {
  color: var(--primary-color);
  width: 20px;
}
@media print {
  .process-step,
  .project-gallery-card,
  .service-detail-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  .project-gallery-card {
    height: auto;
  }
  .project-gallery-overlay {
    position: relative;
    opacity: 1;
    transform: none;
    background: 0 0;
    color: #000;
    padding: 15px;
  }
  .project-gallery-overlay h4,
  .project-gallery-overlay p {
    color: #000 !important;
  }
  .acceptance-section,
  .alert-info,
  .mobile-toc,
  .scroll-to-top,
  .terms-sidebar,
  footer {
    display: none !important;
  }
  .terms-hero {
    min-height: auto;
    padding: 50px 0;
    background: #fff !important;
  }
  .terms-hero .hero-content h1 {
    color: #000;
    font-size: 2.5rem;
  }
  .hero-meta,
  .terms-hero .hero-content p {
    color: #000;
  }
  .terms-content {
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .terms-section-item {
    page-break-inside: avoid;
  }
}
@media (max-width: 991.98px) {
  .benefits-section,
  .electrical-services-section,
  .emergency-section,
  .flooring-types-section,
  .painting-services-section,
  .plumbing-services-section,
  .safety-section {
    padding: 60px 0;
  }
  .benefit-card,
  .safety-card,
  .service-card.electrical-service,
  .service-card.painting-service,
  .service-card.plumbing-service {
    padding: 25px 20px;
  }
  .service-icon.electrical-icon,
  .service-icon.painting-icon,
  .service-icon.plumbing-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .flooring-type-img {
    height: 180px;
  }
  .flooring-type-content {
    padding: 20px;
  }
  .benefit-icon,
  .safety-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .emergency-list {
    padding: 25px;
  }
  .terms-hero {
    min-height: 60vh;
    background-attachment: scroll;
  }
  .terms-hero .hero-content h1 {
    font-size: 2.5rem;
  }
  .terms-content {
    padding: 30px;
  }
  .terms-section-item h2 {
    font-size: 1.6rem;
  }
}
@media (max-width: 767.98px) {
  .electrical-hero,
  .painting-hero {
    background-attachment: scroll;
    min-height: 80vh;
  }
  .benefit-card,
  .flooring-type-card,
  .safety-card,
  .service-card.electrical-service,
  .service-card.painting-service,
  .service-card.plumbing-service {
    margin-bottom: 30px;
  }
  .color-swatch {
    width: 50px;
    height: 70px;
  }
  .finish-options {
    justify-content: center;
  }
  .finish-option {
    min-width: 140px;
  }
  .emergency-badge {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  .emergency-content h2 {
    font-size: 1.7rem;
  }
  .emergency-contact .btn-danger {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .emergency-item {
    flex-direction: column;
    text-align: center;
  }
  .emergency-item i {
    margin-bottom: 10px;
    margin-right: 0;
  }
  .terms-hero {
    min-height: 50vh;
  }
  .terms-hero .hero-content h1 {
    font-size: 2rem;
  }
  .terms-hero .hero-content p {
    font-size: 1rem;
  }
  .terms-content {
    padding: 20px;
  }
  .terms-section-item h2 {
    font-size: 1.4rem;
  }
  .terms-section-item h5 {
    font-size: 1.1rem;
  }
  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }
}
.info-type-item,
.privacy-hero {
  align-items: center;
  display: flex;
}
.privacy-sidebar .nav-link.active,
.terms-sidebar .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
  padding-left: 10px;
}
.legal-note {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 15px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-style: italic;
}
.important-text strong,
.legal-note strong {
  color: #d39e00;
}
.definition-list dt {
  font-weight: 600;
  color: #333;
  margin-top: 15px;
}
.definition-list dd {
  color: #555;
  margin-left: 20px;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 2px solid #e9ecef;
}
.important-text {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.1),
    rgba(255, 193, 7, 0.05)
  );
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 193, 7, 0.2);
  margin: 20px 0;
}
.privacy-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover fixed,
    url("/assets/images/terms-hero.jpeg") center/cover fixed;
  min-height: 20vh;
}
.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}
.acceptance-section h4 i,
.alert-info i,
.hero-meta i,
.mobile-toc .nav-link:hover {
  color: var(--primary-color);
}
.filter-btn.active,
.filter-btn:hover,
.mobile-toc .accordion-button,
.mobile-toc .accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: #fff;
}
.sidebar-actions .btn {
  border-radius: 8px;
  padding: 10px;
  font-size: 0.9rem;
}
.alert-info {
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 123, 255, 0.05)
  );
  border: 1px solid rgba(0, 123, 255, 0.2);
  color: #0c5460;
  border-radius: 10px;
  margin-bottom: 40px;
}
.info-types {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}
.info-type-item {
  margin-bottom: 15px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.usage-grid {
  margin: 30px 0;
}
.usage-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 25px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.usage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.usage-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 123, 255, 0.05)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.8rem;
}
.usage-card h5 {
  color: #222;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.security-feature {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-start;
}
.security-feature i {
  font-size: 1.5rem;
  margin-top: 5px;
  flex-shrink: 0;
}
.security-feature h6 {
  color: #222;
  font-weight: 600;
  margin-bottom: 5px;
}
.security-feature p {
  margin-bottom: 0;
  color: #666;
}
.alert-warning {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.1),
    rgba(255, 193, 7, 0.05)
  );
  border: 1px solid rgba(255, 193, 7, 0.2);
  color: #856404;
  border-radius: 10px;
}
.alert-warning i {
  color: #ffc107;
}
.right-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  height: 100%;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}
.comparison-table tr:nth-child(2n),
.contact-method,
.cookies-table tr:hover,
.newsletter-form button:hover {
  background: #f8f9fa;
}
.right-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}
.acceptance-section,
.contact-method {
  border-left: 4px solid var(--primary-color);
}
.right-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
}
.right-card h6 {
  color: #222;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.right-card p {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.4;
}
.cookies-table,
.data-processing-table {
  margin: 20px 0;
  overflow-x: auto;
}
.cookies-table .table,
.data-processing-table .table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}
.cookies-table th,
.data-processing-table th {
  background: #f8f9fa;
  color: #222;
  font-weight: 600;
  padding: 15px;
  border-bottom: 2px solid #dee2e6;
}
.cookies-table td,
.data-processing-table td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
}
.contact-methods,
.mobile-toc {
  margin: 20px 0;
}
.gdpr-badge,
.nav-button.next i {
  margin-left: 10px;
}
.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 10px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 123, 255, 0.05)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 20px;
  flex-shrink: 0;
}
.contact-method h5 {
  color: #222;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.contact-method p {
  color: #555;
  margin-bottom: 5px;
}
.contact-method small {
  color: #6c757d;
  font-size: 0.85rem;
}
.mobile-toc .accordion-item {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.mobile-toc .accordion-button {
  font-weight: 600;
  padding: 15px 20px;
  border: none;
  box-shadow: none;
}
.mobile-toc .accordion-body {
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}
.mobile-toc .nav-link {
  color: #555;
  padding: 10px 0;
  border-bottom: 1px dashed #e9ecef;
  font-size: 0.95rem;
}
@media print {
  .acceptance-section,
  .alert-info,
  .mobile-toc,
  .privacy-sidebar,
  .rights-grid,
  .scroll-to-top,
  .security-features,
  .usage-grid,
  footer {
    display: none !important;
  }
  .privacy-hero {
    min-height: auto;
    padding: 50px 0;
    background: #fff !important;
  }
  .privacy-hero .hero-content h1 {
    color: #000;
    font-size: 2.5rem;
  }
  .hero-meta,
  .privacy-hero .hero-content p {
    color: #000;
  }
  .privacy-content {
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .privacy-section-item {
    page-break-inside: avoid;
  }
  .contact-method,
  .info-types {
    break-inside: avoid;
  }
}
@media (max-width: 991.98px) {
  .privacy-hero {
    min-height: 60vh;
    background-attachment: scroll;
  }
  .privacy-hero .hero-content h1 {
    font-size: 2.5rem;
  }
  .privacy-content {
    padding: 30px;
  }
  .privacy-section-item h2 {
    font-size: 1.6rem;
  }
  .right-card,
  .usage-card {
    margin-bottom: 20px;
  }
}
@media (max-width: 767.98px) {
  .privacy-hero {
    min-height: 50vh;
  }
  .privacy-hero .hero-content h1 {
    font-size: 2rem;
  }
  .privacy-hero .hero-content p {
    font-size: 1rem;
  }
  .privacy-content {
    padding: 20px;
  }
  .privacy-section-item h2 {
    font-size: 1.4rem;
  }
  .privacy-section-item h5 {
    font-size: 1.1rem;
  }
  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }
  .info-type-item {
    margin-bottom: 10px;
  }
  .contact-method {
    flex-direction: column;
    text-align: center;
  }
  .contact-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
@media (max-width: 575.98px) {
  .benefits-section,
  .electrical-services-section,
  .emergency-section,
  .flooring-types-section,
  .painting-services-section,
  .plumbing-services-section,
  .safety-section {
    padding: 50px 0;
  }
  .benefit-card,
  .service-card.electrical-service,
  .service-card.painting-service,
  .service-card.plumbing-service {
    padding: 20px 15px;
  }
  .service-icon.painting-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .benefit-card h4,
  .safety-card h4,
  .service-card.electrical-service h4,
  .service-card.painting-service h4,
  .service-card.plumbing-service h4 {
    font-size: 1.2rem;
  }
  .flooring-type-img {
    height: 160px;
  }
  .flooring-type-content h4 {
    font-size: 1.3rem;
  }
  .color-swatch {
    width: 40px;
    height: 60px;
  }
  .finish-option {
    min-width: 120px;
    padding: 12px;
  }
  .emergency-content h2 {
    font-size: 1.5rem;
  }
  .emergency-contact .btn-danger {
    width: 100%;
    margin-bottom: 15px;
  }
  .privacy-hero,
  .terms-hero {
    min-height: 40vh;
  }
  .privacy-hero .hero-content h1,
  .terms-hero .hero-content h1 {
    font-size: 1.8rem;
  }
  .privacy-content,
  .right-card,
  .terms-content,
  .usage-card {
    padding: 15px;
  }
  .privacy-section-item,
  .terms-section-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
  .cookies-table {
    font-size: 0.9rem;
  }
}
.back-to-top-mobile {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  z-index: 1000;
  transition: 0.3s;
}
.back-to-top-mobile:hover {
  transform: translateY(-5px);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}
@media (min-width: 992px) {
  .back-to-top-mobile {
    display: none;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shieldPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.privacy-hero .preloader-logo i {
}
.gdpr-badge {
  display: inline-block;
  background: #28a745;
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.data-processing-table td {
  vertical-align: top;
}
.consent-management {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 4px solid #17a2b8;
}
.consent-management h5 {
  color: #17a2b8;
  margin-bottom: 15px;
}
.consent-options {
  margin-top: 15px;
}
.consent-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e9ecef;
}
.consent-option label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0;
}
@media (prefers-color-scheme: dark) {
  .contact-method,
  .cookies-table td,
  .cookies-table th,
  .info-types,
  .privacy-content,
  .right-card,
  .security-feature h6,
  .usage-card {
    background: #2c2c2c;
    color: #e0e0e0;
  }
  .contact-method h5,
  .privacy-content h2,
  .privacy-content h5,
  .right-card h6,
  .usage-card h5 {
    color: #fff;
  }
  .contact-method p,
  .privacy-content p,
  .right-card p,
  .usage-card p {
    color: #ccc;
  }
}
.faq-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover,
    url("/assets/images/herobg.jpg") center/cover;
  padding: 150px 0 100px;
  color: #fff;
}
.blog-hero h1,
.faq-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}
.blog-hero p,
.faq-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}
.faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}
#faqSearch {
  margin-top: 35px;
}
.faq-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  border: 1px solid #eee;
  overflow: hidden;
}
.blog-post-card,
.related-post-card {
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.faq-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}
.faq-header:hover {
  background-color: #f8f9fa;
}
.faq-header h5 {
  margin: 0;
  font-weight: 600;
  color: #333;
  flex: 1;
}
.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #0a2463;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.faq-header.collapsed .faq-icon {
  transform: rotate(0);
}
.faq-header:not(.collapsed) .faq-icon {
  transform: rotate(180deg);
}
.faq-body {
  padding: 25px;
  border-top: 1px solid #eee;
  background-color: #fdfdfd;
}
.faq-body p {
  margin-bottom: 0;
  color: #555;
  line-height: 1.7;
}
.faq-categories {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}
.faq-category-btn {
  padding: 10px 25px;
  background: #fff;
  border: 2px solid #0a2463;
  color: #0a2463;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
}
.blog-post-tag:hover,
.blog-tag:hover,
.faq-category-btn.active,
.faq-category-btn:hover,
.nav-button:hover,
.print-btn:hover,
.save-btn:hover {
  background: #0a2463;
  color: #fff;
}
.contact-cta {
  background: linear-gradient(135deg, #0a2463 0, #0056b3 100%);
  color: #fff;
  padding: 60px 0;
  margin-top: 60px;
  border-radius: 15px;
}
.btn-outline-primary,
.text-primary {
  color: #0a2463 !important;
}
.btn-outline-primary {
  border-color: #0a2463 !important;
}
.btn:hover {
  background-color: #0a2463 !important;
  color: #fff !important;
}
.search-box {
  max-width: 600px;
  margin: 0 auto 40px;
}
.search-box input {
  border-radius: 50px;
  padding: 15px 25px;
  border: 2px solid #ddd;
  width: 100%;
}
.blog-search input:focus,
.search-box input:focus {
  outline: 0;
  border-color: #0a2463;
}
.blog-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover,
    url("/assets/images/bloghero.jpeg") center/cover;
  padding: 150px 0 100px;
  color: #fff;
}
.blog-post-card {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: auto;
}
.blog-post-img {
  height: auto;
  width: 100%;
  max-height: 260px;
}
.blog-post-content,
.project-info {
  padding: 30px;
}
.blog-post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 15px;
}
.blog-post-category,
.blog-post-date,
.blog-post-read-time {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.9rem;
}
.blog-post-meta i {
  margin-right: 5px;
  color: #0a2463;
}
.blog-post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
}
.blog-post-excerpt {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}
.blog-post-link {
  margin-top: 2%;
  color: #0a2463;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.blog-post-link i {
  margin-left: 5px;
  transition: transform 0.3s;
}
.blog-post-link:hover i {
  transform: translateX(5px);
}
.blog-categories,
.blog-search,
.recent-posts {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}
.blog-categories h4,
.recent-posts h4 {
  margin-bottom: 20px;
  color: #333;
}
.category-list,
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-link {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: #fff;
  border-radius: 5px;
  color: #333;
  transition: 0.3s;
  border-left: 4px solid transparent;
}
.category-link.active,
.category-link:hover {
  background: #0a2463;
  color: #fff;
  border-left-color: #0056b3;
}
.category-count {
  background: #f8f9fa;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
}
.category-link.active .category-count,
.category-link:hover .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.recent-post-item {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.page-item.active .page-link,
.page-link:hover {
  background: #0a2463;
  border-color: #0a2463;
}
.recent-post-img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  margin-right: 15px;
}
.recent-post-content h5 {
  font-size: 1rem;
  margin-bottom: 5px;
  line-height: 1.4;
}
.recent-post-content p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}
.newsletter-box {
  background: linear-gradient(135deg, #0a2463 0, #0056b3 100%);
  color: #fff;
  padding: 30px;
  border-radius: 10px;
}
.newsletter-box h4 {
  margin-bottom: 15px;
  color: #fff;
}
.newsletter-box p {
  margin-bottom: 20px;
  opacity: 0.9;
}
.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px;
  border: none;
  margin-bottom: 15px;
}
.newsletter-form button {
  width: 100%;
  padding: 12px 15px;
  background: #fff;
  color: #0a2463;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.pagination {
  margin-top: 50px;
  justify-content: center;
}
.page-link {
  padding: 10px 18px;
  border: 1px solid #ddd;
  color: #0a2463;
}
.page-item.active .page-link {
  color: #fff;
}
.author-info,
.nav-buttons {
  border-top: 1px solid #eee;
}
.blog-search {
  margin-top: 2%;
}
.blog-search input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
}
.featured-post {
  grid-column: 1/-1;
  margin-bottom: 40px;
}
.featured-post .blog-post-card {
  display: flex;
  flex-direction: row;
}
.featured-post .blog-post-img {
  flex: 0 0 50%;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.blog-tag {
  background: #f8f9fa;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #666;
  transition: 0.3s;
}
.author-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
}
.author-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}
.author-title {
  font-size: 0.9rem;
}
.blog-post-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6))
      center/cover,
    url("/assets/images/bloghero.jpeg") center/cover;
  padding: 180px 0 100px;
  color: #fff;
  position: relative;
}
.blog-post-hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.blog-post-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #fff;
}
.blog-post-meta-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.author-info,
.meta-item {
  display: flex;
  align-items: center;
}
.meta-item {
  font-size: 1rem;
}
.meta-item i {
  margin-right: 8px;
  color: #ffc107;
}
.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}
.blog-post-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem;
  color: #333;
}
.blog-post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #444;
}
.blog-post-content ol,
.blog-post-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.blog-post-content li {
  margin-bottom: 0.5rem;
}
.blog-post-image {
  width: 100%;
  height: 500px;
  border-radius: 10px;
  margin: 2rem 0;
}
.blog-post-image-caption {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}
.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2rem 0;
}
.blog-post-tag {
  background: #f8f9fa;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  color: #666;
  transition: 0.3s;
}
.gallery-img,
.related-post-card,
.share-btn {
  transition: transform 0.3s;
}
.author-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  margin: 3rem 0;
}
.share-btn,
.toc-list a {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 25px;
}
.author-details h4,
.comment-meta h5 {
  margin-bottom: 5px;
  color: #333;
}
.author-title {
  color: #666;
  margin-bottom: 10px;
}
.author-bio,
.comment-text {
  color: #555;
  line-height: 1.6;
}
.share-buttons {
  display: flex;
  gap: 15px;
  margin: 2rem 0;
}
.comment-form,
.comment-list {
  margin-top: 40px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  justify-content: center;
  color: #fff;
}
.share-btn:hover {
  transform: translateY(-3px);
}
.share-facebook {
  background: #3b5998;
}
.share-twitter {
  background: #1da1f2;
}
.share-linkedin {
  background: #0077b5;
}
.share-pinterest {
  background: #bd081c;
}
.related-posts {
  background: #f8f9fa;
  padding: 80px 0;
}
.related-post-card {
  background: #fff;
  border-radius: 10px;
  height: 100%;
}
.related-post-img {
  height: 200px;
  width: 100%;
}
.related-post-content {
  padding: 20px;
}
.related-post-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.4;
}
.comment-date,
.related-post-meta,
.stat-item .label {
  font-size: 0.9rem;
  color: #666;
}
.comment-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
}
.comment-item {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}
.breadcrumb {
  background: 0 0;
  padding: 0;
  margin-bottom: 20px;
}
.highlight-box,
.table-of-contents {
  padding: 25px;
  border-radius: 10px;
  margin: 2rem 0;
}
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}
.table-of-contents {
  background: #f8f9fa;
  position: sticky;
  top: 100px;
}
.table-of-contents h4 {
  margin-bottom: 15px;
  color: #333;
}
.toc-list a {
  color: #555;
  transition: color 0.3s;
}
.back-to-blog,
.nav-button {
  align-items: center;
  text-decoration: none;
}
.toc-list a i {
  margin-right: 10px;
  font-size: 0.8rem;
}
.highlight-box {
  background: linear-gradient(135deg, #0a2463 0, #0056b3 100%);
  color: #fff;
}
.highlight-box h4 {
  color: #fff;
  margin-bottom: 15px;
}
.back-to-blog {
  display: inline-flex;
  color: #0a2463;
  font-weight: 600;
  margin-bottom: 30px;
}
.back-to-blog i,
.print-btn i,
.save-btn i {
  margin-right: 8px;
}
.blog-post-content blockquote {
  border-left: 4px solid #0a2463;
  padding-left: 20px;
  font-style: italic;
  color: #555;
  margin: 2rem 0;
  font-size: 1.2rem;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.comparison-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border: 1px solid #dee2e6;
}
.comparison-table td {
  padding: 15px;
  border: 1px solid #dee2e6;
  color: #555;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 2rem 0;
}
.nav-button.prev i,
.project-info ul li i {
  margin-right: 10px;
}
.gallery-img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-button,
.print-btn,
.save-btn {
  background: #f8f9fa;
  transition: 0.3s;
}
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
}
.nav-button {
  display: flex;
  padding: 12px 20px;
  border-radius: 8px;
  color: #333;
}
.nav-button i {
  font-size: 1.2rem;
}
.nav-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
  color: #999;
}
.print-btn,
.save-btn {
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  color: #555;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
.portfolio-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
      center/cover,
    url("/assets/images/herobg.jpg") center/cover;
  color: #fff;
  padding: 150px 0 100px;
}
.portfolio-filter {
  background: var(--light-bg);
  padding: 30px 0;
  margin-bottom: 50px;
}
.filter-btn {
  background: 0 0;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  margin: 5px;
  border-radius: 30px;
  transition: 0.3s;
}
.portfolio-item {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.portfolio-item img {
  width: 100%;
  height: 300px;
  transition: transform 0.5s;
}
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-category {
  background: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 10px;
}
.portfolio-details-btn {
  background: #fff;
  color: var(--primary-color);
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  margin-top: 15px;
  font-weight: 600;
  transition: 0.3s;
}
.portfolio-details-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}
.page-link,
.project-info h4,
.project-info ul li i,
.stat-item .number {
  color: var(--primary-color);
}
.project-detail-modal .modal-content {
  border-radius: 15px;
  overflow: hidden;
}
.project-info h4 {
  margin-bottom: 20px;
}
.project-info ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.project-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.stat-item .number {
  font-size: 1.5rem;
  font-weight: 700;
}
.portfolio-pagination {
  margin-top: 50px;
}
.page-link {
  border: 1px solid var(--primary-color);
  margin: 0 5px;
  border-radius: 5px;
}
.page-link.active,
.page-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
@media (max-width: 768px) {
  .featured-post .blog-post-card {
    flex-direction: column;
  }
  .featured-post .blog-post-img {
    flex: 0 0 auto;
    height: 300px;
  }
  .blog-hero {
    padding: 120px 0 60px;
  }
  .blog-hero h1 {
    font-size: 2.5rem;
  }
  .blog-post-hero {
    padding: 150px 0 60px;
  }
  .blog-post-hero h1 {
    font-size: 2.2rem;
  }
  .author-info {
    flex-direction: column;
    text-align: center;
  }
  .author-avatar {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .blog-post-image {
    height: 300px;
  }
  .table-of-contents {
    position: static;
    margin-bottom: 2rem;
  }
  .portfolio-hero {
    padding: 120px 0 80px;
  }
  .filter-btn {
    margin: 3px;
    padding: 6px 15px;
    font-size: 0.9rem;
  }
}

.hero-slide2-row {
  position: relative;
}

.hero-slide2-spacer {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

#heroCarousel .carousel-item:nth-child(2) .hero-slide-content {
  align-items: flex-start;
  padding-top: 0;
}

#heroCarousel .carousel-item:nth-child(2) .hero-slide2-row {
  min-height: 100%;
  height: 100%;
  align-items: flex-start;
  justify-content: center;
}

.hero-slide2-title-layer {
  position: absolute;
  top: var(--hero-slide2-title-offset, 0);
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.hero-content-slide2 {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-content-slide2 h1 {
  display: inline-block;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Hero文字掉落动画 - 初始隐藏状态 */
.hero-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-150px);
}

.hero-content h1,
.hero-content p,
.hero-content .btn-primary-custom,
.hero-content .btn-outline-custom {
  opacity: 0;
  transform: translateY(-200px);
}

/* 加载完成后触发动画 */
.hero-content.loaded {
  visibility: visible;
  animation: dropDown 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-content.loaded h1 {
  animation: dropDownBounce 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.5s;
}

.hero-content.loaded p {
  animation: dropDownBounce 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1s;
}

.hero-content.loaded .btn-primary-custom {
  animation: dropDownBounce 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.5s;
}

.hero-content.loaded .btn-outline-custom {
  animation: dropDownBounce 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.8s;
}

@keyframes dropDown {
  0% {
    opacity: 0;
    transform: translateY(-150px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropDownBounce {
  0% {
    opacity: 0;
    transform: translateY(-200px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 轮播样式 */
#heroCarousel {
  position: relative;
  --hero-slide-duration: 1.8s;
  /* PC 第二张标题垂直偏移：负值上移，正值下移 */
  --hero-slide2-title-offset: clamp(6rem, 20vh, 11rem);
}

/* PC 第二屏标题：仅在当前屏显示，避免叠影/重复 */
@media (min-width: 992px) {
  #heroCarousel .carousel-item:nth-child(2) .hero-slide2-spacer {
    display: none;
  }

  #heroCarousel .carousel-item.active:nth-child(2) .hero-content-slide2 {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  #heroCarousel .carousel-item.active:nth-child(2) .hero-content-slide2 h1 {
    opacity: 1;
    transform: none;
    animation: none;
  }

  #heroCarousel .carousel-item:not(.active):nth-child(2) .hero-content-slide2,
  #heroCarousel .carousel-item:not(.active):nth-child(2) .hero-content-slide2 h1 {
    opacity: 0;
    visibility: hidden;
  }
}

#heroCarousel.carousel.slide .carousel-inner {
  overflow: hidden;
}

#heroCarousel.carousel.slide .carousel-item {
  transition: transform var(--hero-slide-duration) ease-in-out !important;
}

#heroCarousel .carousel-item {
  overflow: hidden;
  background-color: var(--primary-color);
}

#heroCarousel .carousel-item:not(.active) video {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#heroCarousel .carousel-item.active video {
  visibility: visible;
  opacity: 1;
}

#heroCarousel .hero-media-frame--video {
  background-color: #000;
}

#heroCarousel .hero-media-frame--video video {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 微信 Android（含华为）X5 内核：避免 visibility:hidden 导致视频无法渲染 */
html.wechat-android #heroCarousel .carousel-item:not(.active) video {
  visibility: visible;
  opacity: 0;
}

html.wechat-android #heroCarousel .carousel-item.active video {
  visibility: visible;
  opacity: 1;
}

html.wechat-android #heroCarousel .hero-media-frame--video {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

html.wechat-android #heroCarousel .hero-media-frame--video video {
  object-fit: cover;
  -webkit-object-fit: cover;
}

html.wechat-android #about,
html.wechat-android #services,
html.wechat-android #projects,
html.wechat-android #why-choose {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
}

html.wechat-android #why-choose.why-choose-section {
  overflow-y: visible !important;
}

#heroCarousel .hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  background-color: #000;
}

#heroCarousel .hero-video-fallback[hidden] {
  display: none !important;
}

#heroCarousel.hero-is-sliding .hero-content {
  visibility: hidden !important;
  opacity: 0 !important;
  animation: none !important;
}

#heroCarousel .carousel-item:not(.active) .hero-content {
  visibility: hidden;
  opacity: 0;
  animation: none !important;
}

#heroCarousel .carousel-item:not(.active) .hero-content h1,
#heroCarousel .carousel-item:not(.active) .hero-content p,
#heroCarousel .carousel-item:not(.active) .hero-content .btn-primary-custom,
#heroCarousel .carousel-item:not(.active) .hero-content .btn-outline-custom {
  animation: none !important;
}

.carousel-control-prev.hero-carousel-arrow,
.carousel-control-next.hero-carousel-arrow {
  width: 48px;
  height: 48px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
  z-index: 10;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev.hero-carousel-arrow:hover,
.carousel-control-next.hero-carousel-arrow:hover {
  background: transparent;
  box-shadow: none;
  opacity: 0.75;
  transform: translateY(-50%);
}

.hero-carousel-arrow-icon {
  display: block;
  width: 18px;
  height: 18px;
  border-top: 5px solid #fff;
  border-right: 5px solid #fff;
  background: none;
  background-image: none !important;
  box-shadow: none;
  filter: none;
}

.hero-carousel-arrow-icon-prev {
  transform: rotate(-135deg);
  margin-left: 5px;
}

.hero-carousel-arrow-icon-next {
  transform: rotate(45deg);
  margin-right: 5px;
}

#heroCarousel .carousel-control-prev.hero-carousel-arrow {
  left: 24px;
}

#heroCarousel .carousel-control-next.hero-carousel-arrow {
  right: 24px;
}

#aboutCarousel .carousel-control-prev.hero-carousel-arrow {
  left: 12px;
}

#aboutCarousel .carousel-control-next.hero-carousel-arrow {
  right: 12px;
}

#heroCarousel .hero-carousel-progress {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 10;
  width: min(420px, 32vw);
  pointer-events: none;
}

#heroCarousel .hero-carousel-progress-segments {
  display: flex;
  gap: 6px;
  width: 100%;
}

#heroCarousel .hero-carousel-progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 0;
  transition: background-color 0.12s ease;
}

#heroCarousel .hero-carousel-progress-segment.active {
  background-color: var(--secondary-color);
}

/* 轮播切换时重新触发动画 */
.carousel-item.active .hero-content.loaded {
  animation: dropDown 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-item.active .hero-content.loaded h1 {
  animation: dropDownBounce 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.5s;
}

.carousel-item.active .hero-content.loaded p {
  animation: dropDownBounce 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1s;
}

.carousel-item.active .hero-content.loaded .btn-primary-custom {
  animation: dropDownBounce 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.5s;
}

.carousel-item.active .hero-content.loaded .btn-outline-custom {
  animation: dropDownBounce 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.8s;
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  height: 100%;
  min-height: 100%;
}

.hero-section > #heroCarousel {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

#heroCarousel .hero-media-frame {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--primary-color);
}

#heroCarousel .hero-carousel-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  object-position: center center;
  background-color: var(--primary-color);
}

#heroCarousel .hero-carousel-media-fill {
  display: none;
}

#heroCarousel .hero-carousel-media-main {
  z-index: 1;
}

#heroCarousel .hero-media-frame--fullscreen .hero-carousel-media-fill {
  display: none;
}

#heroCarousel .hero-media-frame--fullscreen .hero-carousel-media-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

#heroCarousel .hero-media-frame--video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--primary-color);
  background-image: radial-gradient(
    ellipse 120% 80% at 50% 45%,
    #1a3a7a 0%,
    var(--primary-color) 68%
  );
}

#heroCarousel .hero-media-frame--video .hero-carousel-media,
#heroCarousel .hero-media-frame--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  background-color: var(--primary-color);
}

.hero-video-play-btn {
  display: none !important;
}

#heroCarousel .hero-media-frame--video video {
  pointer-events: none;
}

#heroCarousel .hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(10, 36, 99, 0.8), rgba(10, 36, 99, 0.7));
  pointer-events: none;
}

#heroCarousel .hero-slide-content {
  position: relative;
  z-index: 2;
}

#heroCarousel .carousel-item .container {
  min-height: 0;
}

/* ========== 产品详情二级页 ========== */
.product-detail-page {
  background: var(--light-color);
}
.product-detail-page .product-nav-strip {
  top: var(--navbar-height, 72px);
  margin-top: var(--navbar-height, 72px);
}
.product-detail-image-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--navbar-height, 72px) - 4.5rem);
  padding: 1.5rem 0 2rem;
  background: var(--light-color);
}
.product-detail-image-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 12px;
  overflow: hidden;
}
.product-detail-img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - var(--navbar-height, 72px) - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.product-detail-img:hover {
  opacity: 0.92;
}
.product-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(8, 18, 40, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.product-image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.product-image-lightbox[hidden] {
  display: none !important;
}
.product-image-lightbox.is-open[hidden] {
  display: flex !important;
}
.product-lightbox-close {
  position: absolute;
  top: calc(var(--navbar-height, 72px) + 0.75rem);
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.product-lightbox-close:hover {
  background: rgba(255, 107, 53, 0.85);
  transform: scale(1.05);
}
.product-lightbox-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height, 72px) + 1rem) 1rem 0.5rem;
  cursor: zoom-in;
  touch-action: none;
}
.product-lightbox-viewport.is-zoomed {
  cursor: grab;
}
.product-lightbox-viewport.is-dragging {
  cursor: grabbing;
}
.product-lightbox-img {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: calc(100dvh - var(--navbar-height, 72px) - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.product-lightbox-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 0.75rem 1rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}
body.product-lightbox-open {
  overflow: hidden;
}
.product-detail-image-bg {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-color-light) 48%,
    var(--accent-color) 100%
  );
  box-shadow: 0 10px 28px rgba(10, 36, 99, 0.18);
  z-index: 0;
}
.product-detail-image-bg::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: clamp(4rem, 12vw, 7rem);
  height: clamp(4rem, 12vw, 7rem);
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.16);
  pointer-events: none;
}
.product-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a7a 55%, #0d1f44 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.product-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.15);
}
.product-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.product-breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.product-breadcrumb a:hover {
  color: var(--secondary-color);
}
.product-breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.6;
}
.product-model {
  color: var(--secondary-color);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.product-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.product-tagline {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 1rem;
}
.product-intro-lead {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.88;
  margin-bottom: 1.5rem;
}
.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.product-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.product-outline-light:hover {
  background: #fff;
  color: var(--primary-color);
}
.product-hero-img-wrap {
  border-radius: 20px 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.15);
}
.product-hero-img-wrap img {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #fff;
  min-height: 280px;
  max-height: 360px;
}
.service-card-thumb {
  display: block;
  background: #eef2f7;
  border-bottom: 1px solid #e9ecef;
  overflow: hidden;
}
.service-card-thumb img {
  width: auto;
  height: 90px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.service-card:hover .service-card-thumb img {
  transform: scale(1.03);
}
.service-card-desc {
  font-size: 0.88rem;
  color: var(--gray-color);
  margin-bottom: 1rem;
  min-height: 2.5rem;
}
.service-card h4 {
  font-size: 1.05rem;
  line-height: 1.4;
  min-height: 2.8rem;
}
/* ========== 会展中心二级页 ========== */
.exhibition-detail-page {
  background: var(--light-color);
}
.exhibition-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #153a6e 50%, #0d1f44 100%);
  color: #fff;
}
.exhibition-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.exhibition-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.exhibition-subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}
.exhibition-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.exhibition-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}
.exhibition-meta-list i {
  color: var(--secondary-color);
  margin-top: 0.2rem;
  width: 1.1rem;
}
.exhibition-intro-lead {
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.exhibition-hero-img-wrap {
  border-radius: 20px 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.12);
}
.exhibition-hero-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  min-height: 300px;
  max-height: 420px;
}
.exhibition-nav-strip {
  background: #fff;
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 72px;
  z-index: 100;
}
.exhibition-highlights-list i {
  color: var(--accent-color);
}
.exhibition-gallery-section {
  background: #fff;
}
.exhibition-gallery-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.exhibition-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}
.exhibition-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.product-nav-strip {
  background-color: var(--primary-color-light);
  padding: 1rem 0;
  box-shadow: 0 2px 12px rgba(58, 95, 158, 0.18);
  position: sticky;
  top: 72px;
  z-index: 100;
}
.product-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.product-nav-item {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}
.product-nav-item:hover {
  background: #fff;
  border-color: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.35);
}
.product-nav-item.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}
.product-section {
  padding: 60px 0;
}
.product-advantages-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  border: 2px dashed rgba(10, 36, 99, 0.25);
  border-radius: 20px 30px;
  background: #fff;
}
.product-advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.5rem;
}
.product-advantages-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  line-height: 1.5;
}
.product-advantages-list i {
  color: var(--secondary-color);
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.product-modules-wrap .product-module-row {
  margin-bottom: 3.5rem;
}
.product-modules-wrap .product-module-row:last-child {
  margin-bottom: 0;
}
.product-module-img {
  border-radius: 20px 30px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.product-module-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  min-height: 220px;
}
.product-module-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--secondary-color);
}
.product-specs-table-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px 30px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.product-specs-table {
  margin: 0;
}
.product-specs-table th {
  width: 40%;
  background: rgba(10, 36, 99, 0.06);
  color: var(--primary-color);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
}
.product-specs-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
}
.product-cta h2 {
  color: #fff;
}
@media (max-width: 991.98px) {
  .product-nav-strip {
    top: 64px;
  }
  .product-hero {
    padding-top: 100px;
  }

  .product-detail-image-main {
    min-height: 0;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
  }

  .product-detail-image-wrap {
    padding: 0.75rem;
  }

  .product-detail-img {
    max-height: calc(100dvh - var(--navbar-height, 64px) - 10rem);
  }
}

/* ========== 首页移动端优化（轮播重点） ========== */
@media (max-width: 991.98px) {
  /* 移动端取消一屏锁定，避免模块内滚动条，整页滚动 */
  #heroCarousel {
    --hero-carousel-height: clamp(200px, 50vw, 320px);
    --hero-slide2-title-offset: clamp(0.65rem, 3.5vw, 1.1rem);
    --hero-media-aspect: 16 / 9;
  }

  .hero-section {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .hero-section > #heroCarousel,
  #heroCarousel,
  #heroCarousel .carousel-inner {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  #heroCarousel .carousel-item:not(:nth-child(1)) {
    width: 100%;
    aspect-ratio: var(--hero-media-aspect);
    height: auto;
    min-height: 0;
    max-height: none;
  }

  /* 第一屏：高度随文案撑开，保证文字完整展示 */
  #heroCarousel .carousel-item:nth-child(1) {
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    min-height: calc(100vw * 9 / 16);
    max-height: none;
    overflow: visible;
  }

  #heroCarousel .carousel-inner {
    background-color: var(--primary-color);
  }

  #heroCarousel .carousel-item {
    overflow: hidden;
    position: relative;
  }

  #heroCarousel .carousel-item .hero-media-frame {
    position: absolute;
    inset: 0;
  }

  #heroCarousel .carousel-item .hero-carousel-media,
  #heroCarousel .carousel-item .hero-media-frame--video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-carousel-media-fill {
    display: none;
  }

  html.wechat-android #heroCarousel .hero-media-frame--video video {
    object-fit: cover;
    -webkit-object-fit: cover;
  }

  #heroCarousel .hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  #heroCarousel .hero-slide-content a,
  #heroCarousel .hero-slide-content button {
    pointer-events: auto;
  }

  #heroCarousel .carousel-item .container {
    min-height: 0;
    max-height: 100%;
    height: 100%;
    overflow: hidden;
  }

  #heroCarousel .carousel-item:nth-child(1) .container {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  /* 移动端第一屏：背景图铺满，文字叠在上方完整展示 */
  #heroCarousel .carousel-item:nth-child(1) .hero-media-frame,
  #heroCarousel .carousel-item:nth-child(1) .hero-slide-overlay {
    position: absolute;
    inset: 0;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-slide-content {
    position: relative;
    z-index: 2;
    inset: auto;
    align-items: flex-start;
    overflow: visible;
    min-height: calc(100vw * 9 / 16);
    padding: 10px 44px 34px;
    box-sizing: border-box;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-content h1 {
    font-size: 1.15rem;
    line-height: 1.22;
    margin-bottom: 0.35rem;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-content p {
    font-size: 0.72rem;
    line-height: 1.42;
    margin-bottom: 0.45rem;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-content .btn-primary-custom,
  #heroCarousel .carousel-item:nth-child(1) .hero-content .btn-outline-custom {
    padding: 6px 14px;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
  }

  /* 英文版移动端首屏：略缩小字号，完整展示文案 */
  html[lang="en"] #heroCarousel .carousel-item:nth-child(1) .hero-content h1 {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  html[lang="en"] #heroCarousel .carousel-item:nth-child(1) .hero-content p {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  html[lang="en"] #heroCarousel .carousel-item:nth-child(1) .hero-content .btn-primary-custom,
  html[lang="en"] #heroCarousel .carousel-item:nth-child(1) .hero-content .btn-outline-custom {
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  #about,
  #services,
  #projects,
  #why-choose,
  #contact {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: auto;
  }

  #why-choose.why-choose-section {
    overflow-y: visible;
  }

  #heroCarousel .carousel-item:nth-child(2) .hero-slide-content {
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 0;
  }

  #heroCarousel .carousel-item:nth-child(2) .hero-slide2-row {
    position: static;
    min-height: 100%;
    height: 100%;
    align-items: stretch;
    justify-content: center;
  }

  #heroCarousel .carousel-item:nth-child(2) .hero-slide2-title-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--hero-slide2-title-offset) + 15px);
    width: 100%;
    margin: 0;
    padding: 0 48px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  #heroCarousel .carousel-item:nth-child(2) .hero-content-slide2 {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: center;
  }

  #heroCarousel .carousel-item:nth-child(2) .hero-content-slide2 h1 {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  #heroCarousel .carousel-item:nth-child(2) .hero-slide2-spacer {
    display: none;
  }

  #heroCarousel .carousel-item .container,
  #heroCarousel .hero-slide-content {
    padding-top: 12px;
    padding-bottom: 36px;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }

  .hero-content p {
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
    max-width: none;
    line-height: 1.5;
  }

  .hero-content-slide2 h1 {
    font-size: 1.25rem;
  }

  .hero-content-slide2 {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  #heroCarousel .carousel-control-prev.hero-carousel-arrow {
    left: 8px;
  }

  #heroCarousel .carousel-control-next.hero-carousel-arrow {
    right: 8px;
  }

  #heroCarousel .carousel-control-prev.hero-carousel-arrow,
  #heroCarousel .carousel-control-next.hero-carousel-arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .carousel-control-prev.hero-carousel-arrow,
  .carousel-control-next.hero-carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-carousel-arrow-icon {
    width: 14px;
    height: 14px;
    border-width: 4px;
  }

  #heroCarousel .hero-carousel-progress {
    bottom: 10px;
    width: min(240px, 68vw);
  }

  #aboutCarousel .carousel-control-prev.hero-carousel-arrow,
  #aboutCarousel .carousel-control-next.hero-carousel-arrow {
    width: 36px;
    height: 36px;
  }

  /* 各内容区块 */
  .about-section,
  .services-section,
  .projects-section,
  .contact-section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
  }

  #why-choose.why-choose-section > .container {
    padding: 48px 0 32px;
  }

  #why-choose .innovation-cta.cta-section {
    padding: 56px 0;
  }

  #why-choose .feature-box {
    padding: 1.75rem 1.25rem 1.6rem;
  }

  #why-choose .feature-box-icon {
    width: 4.75rem;
    height: 4.75rem;
    margin-bottom: 1.15rem;
  }

  #why-choose .feature-box-icon svg {
    width: 3.375rem;
    height: 3.375rem;
  }

  #why-choose .feature-box h4 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
  }

  #why-choose .feature-box p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .cta-section {
    padding: 56px 1rem;
  }

  /* 联系区：标题距顶部与「技术创新」一致（容器上内边距 48px） */
  #contact.contact-section {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-top: 0;
    padding-bottom: 56px;
  }

  #contact .contact-us {
    padding-top: 48px;
  }

  #contact .contact-us,
  #contact .map-container {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  #contact .contact-form.h-100,
  #contact .contact-info.h-100,
  #contact .contact-form-inner {
    height: auto;
    min-height: 0;
  }

  #contact .contact-info-wechat {
    margin-top: 0.5rem;
  }

  #contact .contact-row > [class*="col-"] {
    display: block;
  }

  .contact-section .section-title {
    margin-bottom: 1.25rem;
  }

  .contact-row {
    row-gap: 1.5rem;
  }

  .map-container {
    padding: 12px;
    min-height: 0;
    margin-top: 1.25rem;
  }

  .map-placeholder {
    min-height: 220px;
    margin-top: 0;
    height: auto;
    overflow: hidden;
  }

  .map-placeholder iframe {
    height: 220px !important;
  }

  .contact-map-open {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    line-height: 1.4;
  }

  .contact-info {
    margin-top: 0.5rem;
  }

  .contact-info-item {
    margin-bottom: 1.25rem;
  }

  .contact-wechat-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .wechat-qrcode-img {
    width: 100px;
    height: 100px;
  }

  /* 导航折叠菜单 */
  .navbar-collapse {
    background: #fff;
    margin: 0.25rem -0.75rem 0;
    padding: 0.5rem 0.75rem 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .navbar-nav .nav-link {
    padding: 0.7rem 0.5rem;
    font-size: 1rem;
  }

  /* 折叠菜单：去掉底部下划线，避免与语言切换按钮挤在一起 */
  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .navbar-nav .nav-link.active {
    font-weight: 600;
  }

  .navbar-nav .lang-switch-item {
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(10, 36, 99, 0.08);
    width: 100%;
    justify-content: flex-start;
  }

  .navbar-nav .lang-switch-item .btn-lang-switch {
    margin-left: 0.35rem;
  }

  /* 页脚 */
  footer {
    text-align: center;
  }

  footer .footer-links,
  footer .footer-logo {
    text-align: center;
  }

  footer .footer-links h5:after {
    left: 50%;
    transform: translateX(-50%);
  }

  footer .footer-wechat-item {
    flex-direction: column;
    align-items: center;
  }

  footer .footer-wechat-info {
    justify-content: center;
  }

  footer .footer-qrcodes {
    justify-content: center;
    width: 100%;
  }

  .copyright p {
    font-size: 0.8rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }

  .scroll-to-top {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 72px;
    font-size: 1rem;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-slide-overlay {
    background: linear-gradient(
      rgba(10, 36, 99, 0.78),
      rgba(10, 36, 99, 0.62)
    );
  }

  #aboutCarousel .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 767.98px) {
  #heroCarousel {
    --hero-carousel-height: clamp(180px, 48vw, 280px);
    --hero-slide2-title-offset: clamp(0.5rem, 3vw, 0.95rem);
  }

  .hero-section {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  #heroCarousel .carousel-item:nth-child(2) .container,
  #heroCarousel .carousel-item:nth-child(2) .hero-slide-content {
    padding-top: 0;
    padding-bottom: 44px;
    align-items: flex-start;
  }

  .hero-slide2-spacer {
    display: none;
  }

  #heroCarousel .carousel-item:nth-child(2) .hero-slide2-row {
    position: static;
  }

  .navbar-brand {
    max-width: calc(100% - 50px);
    gap: 0.3rem;
  }

  .navbar-brand .navbar-brand-text {
    max-width: calc(100vw - 118px);
  }

  .navbar-brand .navbar-brand-logo {
    width: 68px !important;
  }

  .preloader-logo img {
    width: min(240px, 78vw) !important;
    height: auto;
  }

  .preloader-content h2 {
    font-size: 1.15rem;
    padding: 0 1rem;
  }

  .preloader-content p {
    font-size: 0.9rem;
  }

  .service-card .p-4 {
    padding: 1.25rem !important;
  }

  .service-card h4 {
    font-size: 1.05rem;
  }

  .about-section p {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  #heroCarousel {
    --hero-carousel-height: clamp(168px, 46vw, 240px);
    --hero-slide2-title-offset: clamp(0.45rem, 2.8vw, 0.85rem);
  }

  .hero-section {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  #heroCarousel .carousel-item:nth-child(2) .hero-slide-content {
    padding-top: 0;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-slide-content {
    padding: 8px 44px 30px;
  }

  #heroCarousel .carousel-item .container,
  #heroCarousel .hero-slide-content {
    padding-top: 10px;
    padding-bottom: 28px;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-content h1 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-content p {
    font-size: 0.78rem;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    margin-bottom: 0.45rem;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-content .btn-primary-custom,
  #heroCarousel .carousel-item:nth-child(1) .hero-content .btn-outline-custom {
    display: inline-block;
    width: auto;
    padding: 6px 14px;
    font-size: 0.78rem;
    margin-bottom: 0;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-content .btn-primary-custom {
    margin-right: 0.45rem !important;
  }

  .hero-content h1 {
    font-size: 1.35rem;
  }

  .hero-content-slide2 h1 {
    font-size: 1.2rem;
  }

  .hero-content .btn-primary-custom,
  .hero-content .btn-outline-custom {
    display: block;
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 0.65rem;
    padding: 10px 20px;
    text-align: center;
  }

  .hero-content .btn-outline-custom {
    margin-bottom: 0;
  }

  #heroCarousel .carousel-control-prev.hero-carousel-arrow,
  #heroCarousel .carousel-control-next.hero-carousel-arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 0.9;
  }

  #heroCarousel .carousel-control-prev.hero-carousel-arrow {
    left: 8px;
  }

  #heroCarousel .carousel-control-next.hero-carousel-arrow {
    right: 8px;
  }

  #heroCarousel .hero-carousel-progress {
    bottom: 10px;
    width: min(240px, 68vw);
  }

  .navbar-brand {
    max-width: calc(100% - 48px);
  }

  .navbar-brand .navbar-brand-logo {
    width: 64px !important;
  }

  .navbar-brand .navbar-brand-text {
    max-width: calc(100vw - 108px);
  }

  #aboutCarousel .carousel-item img {
    max-height: 240px;
    object-fit: cover;
  }

  .project-card {
    height: 220px;
  }

  #projects .project-card {
    height: 220px;
  }

  .about-section,
  .services-section,
  .projects-section,
  .contact-section {
    padding: 36px 0 48px;
  }

  #contact .contact-us {
    padding: 36px 16px 16px;
    border-radius: 16px;
  }

  #contact .map-container {
    padding: 10px;
    margin-top: 1rem;
  }

  .contact-info-item {
    margin-bottom: 1rem;
  }

  .contact-info-item p {
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
  }

  .contact-map-open {
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
    line-height: 1.45;
    word-break: break-word;
  }

  .map-placeholder iframe {
    height: 200px !important;
  }

  #why-choose.why-choose-section > .container {
    padding: 36px 0 24px;
  }

  #why-choose .innovation-cta.cta-section {
    padding: 48px 1rem;
  }

  #why-choose .innovation-cta.cta-section h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .map-placeholder iframe {
    height: 200px !important;
  }

  .contact-form .form-control,
  .contact-form select.form-control {
    font-size: 16px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .scroll-to-top {
    bottom: 64px;
    right: 10px;
  }
}

@media (max-width: 767.98px) and (orientation: landscape) {
  #heroCarousel {
    --hero-carousel-height: clamp(160px, 68vh, 220px);
  }

  .hero-section {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-slide-content {
    position: relative;
    inset: auto;
    overflow: visible;
    min-height: calc(100vw * 9 / 16);
  }

  #heroCarousel .carousel-item .container,
  #heroCarousel .hero-slide-content {
    padding-top: 12px;
    padding-bottom: 36px;
  }

  .hero-content h1 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }

  #heroCarousel .carousel-item:nth-child(1) .hero-content p,
  .hero-content p {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .hero-content .btn-primary-custom,
  .hero-content .btn-outline-custom {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .hero-content .btn-primary-custom {
    margin-right: 0.5rem !important;
  }

  .hero-slide2-spacer {
    display: none;
  }
}

/* ========== 英文版布局优化 ========== */
html[lang="en"] .navbar-brand-name {
  font-size: 0.72rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

html[lang="en"] .navbar-nav .nav-link {
  font-size: 0.9rem;
}

html[lang="en"] .btn-lang-switch {
  font-size: 0.8rem;
  padding: 0.38rem 0.85rem;
}

html[lang="en"] .hero-content h1 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.22;
}

html[lang="en"] .hero-content p {
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  line-height: 1.55;
}

html[lang="en"] .hero-content-slide2 h1 {
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  line-height: 1.25;
}

html[lang="en"] #about h3.mb-3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.35;
}

html[lang="en"] .service-card h4 {
  font-size: 0.95rem;
  min-height: auto;
  line-height: 1.35;
}

html[lang="en"] .service-card-desc {
  font-size: 0.82rem;
  min-height: auto;
  line-height: 1.45;
}

html[lang="en"] .service-card .btn-primary-custom {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

html[lang="en"] #projects .section-title {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  padding: 0 0.5rem;
}

html[lang="en"] .project-card h4 {
  font-size: 0.98rem;
  line-height: 1.3;
}

html[lang="en"] .project-card p {
  font-size: 0.84rem;
  line-height: 1.45;
}

html[lang="en"] #why-choose .feature-box h4 {
  font-size: 1rem;
  line-height: 1.3;
}

html[lang="en"] #why-choose .feature-box p {
  font-size: 0.88rem;
  line-height: 1.5;
}

html[lang="en"] .innovation-cta h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

html[lang="en"] .product-nav-item {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  font-size: 0.78rem;
  max-width: 100%;
}

html[lang="en"] .footer-links li {
  white-space: normal;
}

html[lang="en"] .footer-logo {
  font-size: 1rem;
  line-height: 1.35;
}

html[lang="en"] .contact-map-open {
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (min-width: 992px) {
  /* 英文版文案更长：取消模块内固定高度与滚动条，整页滚动 */
  html[lang="en"] #about,
  html[lang="en"] #services,
  html[lang="en"] #projects,
  html[lang="en"] #why-choose {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior: auto;
  }

  html[lang="en"] #why-choose.why-choose-section {
    overflow-y: visible;
  }

  html[lang="en"] .navbar-brand-name {
    font-size: 0.78rem;
    max-width: 280px;
    display: inline-block;
  }

  html[lang="en"] .navbar-nav .nav-link {
    font-size: 0.84rem;
    margin: 0 3px;
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
  }

  html[lang="en"] .lang-switch-item {
    margin-left: 0.15rem;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  html[lang="en"] .navbar-brand-name {
    font-size: 0.68rem;
    max-width: 220px;
  }

  html[lang="en"] .navbar-nav .nav-link {
    font-size: 0.78rem;
    margin: 0 2px;
  }
}

@media (max-width: 991.98px) {
  html[lang="en"] .navbar-brand .navbar-brand-text {
    font-size: clamp(0.48rem, 2vw, 0.62rem);
    line-height: 1.25;
  }

  html[lang="en"] .navbar-nav .nav-link {
    font-size: 0.92rem;
  }

  html[lang="en"] .hero-content h1 {
    font-size: 1.35rem;
  }

  html[lang="en"] #heroCarousel .carousel-item:nth-child(1) .hero-content h1 {
    font-size: 0.9rem;
    line-height: 1.18;
  }

  html[lang="en"] #heroCarousel .carousel-item:nth-child(1) .hero-content p {
    font-size: 0.64rem;
    line-height: 1.32;
  }

  html[lang="en"] #heroCarousel .carousel-item:nth-child(1) .hero-content .btn-primary-custom,
  html[lang="en"] #heroCarousel .carousel-item:nth-child(1) .hero-content .btn-outline-custom {
    font-size: 0.62rem;
    padding: 4px 8px;
  }

  html[lang="en"] .hero-content-slide2 h1 {
    font-size: 1.05rem;
  }

  html[lang="en"] .section-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  html[lang="en"] .service-card h4 {
    font-size: 0.92rem;
  }

  html[lang="en"] .product-nav-item {
    font-size: 0.72rem;
    padding: 0.38rem 0.65rem;
  }
}

@media (max-width: 575.98px) {
  html[lang="en"] .hero-content .btn-primary-custom,
  html[lang="en"] .hero-content .btn-outline-custom {
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
  }

  html[lang="en"] .product-nav-list {
    justify-content: flex-start;
  }
}
