html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.7;
  color: #333;
  overflow-x: hidden;
  font-size: 15px;
}

#site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #FCFCFC;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#site-loader.loader-done {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  text-align: center;
  width: 220px;
}
.loader-logo {
  width: 80px;
  height: auto;
  margin-bottom: 18px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}
.loader-text {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px;
}
.loader-bar-track {
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1A5A96, #42A5F5);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.loader-percent {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.animate-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-fade.show {
  opacity: 1;
  transform: translateY(0);
}

.navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

#index-page {
  padding-top: 0;
  margin-top: 0;
}

#index-page.hide-index {
  display: none;
}

.product-inner-page {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease, max-height 0s 0.6s ease;
}

.product-inner-page.show-page {
  opacity: 1;
  visibility: visible;
  max-height: none;
  overflow: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease, max-height 0s 0s ease;
}

.navbar {
  background: rgba(26, 90, 150, 0.98);
  backdrop-filter: blur(10px);
  padding: 8px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scroll-active {
  background: rgba(20, 70, 120, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 5px 0;
}
.site-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.nav-link {
  color: #fff;
  font-size: 15px;
  margin: 4px 10px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #42A5F5;
  opacity: 0;
  transform: translateX(-50%);
  transition: width 0.5s ease, opacity 0.5s ease;
}
.nav-link:hover {
  color: #42A5F5;
}
.nav-link:hover::after {
  width: 80%;
  opacity: 1;
}
.navbar-toggler {
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 4px 6px;
}
.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 767px) {
  .navbar-collapse {
    background: #1A5A96;
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px 0;
  }
  .nav-link {
    text-align: center;
    font-size: 16px;
    padding: 10px 0;
  }
  .dropdown-menu {
    background: #fff;
    text-align: center;
  }
}

.hero {
  margin-top: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  top: -70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(images/bg.png) center center / cover no-repeat;
  background-color: rgba(0, 0, 0, 0.35);
  background-blend-mode: overlay;
  z-index: -1;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 70px;
}
.hero h1 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.hero p {
  font-size: 15px;
  max-width: 100%;
  margin: 0 auto 25px;
  opacity: 0.95;
  line-height: 1.7;
}
.btn-hero {
  padding: 11px 28px;
  background: #42A5F5;
  color: #111;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  font-size: 15px;
  display: inline-block;
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(66, 165, 245, 0.35);
  color: #000;
  background: #1976D2;
}

.section {
  padding: 45px 0;
}
.bg-light {
  background-color: #f8f9fa;
}
.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: #1A5A96;
  font-weight: 700;
  position: relative;
  font-size: 22px;
}
.section-title::after {
  content: '';
  display: block;
  width: 45px;
  height: 3px;
  background: #42A5F5;
  margin: 8px auto 0;
  border-radius: 2px;
}

.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  height: 100%;
  aspect-ratio: 1 / 1;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.product-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.product-card:hover .card-img-top {
  transform: scale(1.05);
}
.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26, 90, 150, 0.95), rgba(26, 90, 150, 0.35));
  color: #fff;
  padding: 15px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.product-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.product-desc {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.enter-more {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border: 1px solid #fff;
  border-radius: 18px;
  font-size: 11px;
}

@media (max-width: 767.98px) {
  .product-card.show-desc .product-desc {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 768px) {
  .product-card:hover .product-desc {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub-pro-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.4s ease;
  background: #fff;
}
.sub-pro-card:hover {
  transform: translateY(-4px);
}
.sub-pro-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.sub-pro-info {
  padding: 12px;
}
.sub-pro-info h6 {
  font-size: 14px;
  margin-bottom: 4px;
}
.back-btn {
  color: #1A5A96;
  text-decoration: none;
  margin-bottom: 15px;
  display: inline-block;
  font-size: 15px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.back-btn:hover {
  color: #42A5F5;
  padding-left: 6px;
}

.about-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease;
}
.about-img:hover {
  transform: scale(1.02);
}

#future .card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#future .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(26, 90, 150, 0.1);
}

.contact-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  padding: 25px 15px;
  text-align: center;
  transition: transform 0.3s ease;
  background: #fff url(images/contact.png) center / cover no-repeat;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.9);
}
.contact-card:hover {
  transform: translateY(-2px);
}

footer {
  background: #1A5A96;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
}
footer p {
  margin: 0;
  opacity: 0.9;
}
footer a,
footer a:link,
footer a:visited,
footer a:hover,
footer a:active {
  color: white !important;
  text-decoration: none !important;
}

.product-inner-page .section {
  margin-top: 70px;
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 14px;
  }
  .section {
    padding: 35px 0;
  }
  .section-title {
    font-size: 20px;
  }
  .about-img {
    margin-bottom: 20px;
    max-height: 200px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section p {
    font-size: 14px;
  }
  .col-6 {
    margin-bottom: 15px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .site-logo {
    height: 38px;
  }
  .brand-text {
    font-size: 18px;
  }
  .hero h1 {
    font-size: 30px;
  }
}

@media (min-width: 768px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .navbar .dropdown .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    margin-top: 0;
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  }
  .dropdown-item:hover {
    background-color: #f0f7fc;
    color: #1A5A96;
  }
}
