/* Logo Styles */
.logo {
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Header Logo */
header img {
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

/* Footer Logo */
footer img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1.65em;
  overflow-x: hidden;
  font-size: 14px;
  color: #4B5563;
  color: #7a7a7a;
}

.container {
  max-width: 1780px;
  padding: 0 5%;
  margin: 0 auto;
}


/* Header Styles */
header {
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Banner Animation Styles */
.banner-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.banner-text h1 {
  font-size: 60px;
  line-height: 130%;
  font-family: "Crimson Text", Sans-serif;
  color: #ffffff;
}

.banner-text2{
  display: flex;
  justify-content: center;
  gap: 25px;
}
.banner-text2 p{
  font-size: 60px;
  line-height: 130%;
  font-family: "Crimson Text", Sans-serif;
  color: #ffffff;
}

.banner-text2 p span {
  background: url("../images/uk.png") no-repeat top left;
  background-size: contain;
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-bottom: 10px;
}

/* Banner Background Image Styles */
#home {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Swiper banner */
.banner-swiper {
  position: relative;
}

.banner-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.banner-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  filter: blur(1px);
}

.banner-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.banner-swiper .swiper-pagination-bullet-active {
  background: #fff;
}

.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Readability overlay */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 1;
  /* above slides, below controls/text */
}

/* Navigation Dots */
.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.banner-dot.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgb(255, 255, 255);
  transform: scale(1.3);
}

/* Previous/Next Navigation Buttons */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.banner-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.banner-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

.banner-nav svg {
  color: white;
  transition: all 0.3s ease;
}

.banner-nav:hover svg {
  color: rgba(255, 255, 255, 0.9);
}


.BigTitle {
  font-family: "Crimson Text", Sans-serif;
  font-size: 42px;
  line-height: 1.4em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
}

.Title {
  font-family: "Crimson Text", Sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
  color: #000000;
  line-height: 1.3em;
}

.about,
.product,
.advantage {
  padding: 90px 0 120px 0;
}

.about {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}


/* Product*/
.product {
  background-color: #f3f4f6;
}

.product .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px 70px;
}

.product-card {
  transition: all 0.5s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card .bg-white {
  transition: all 0.5s ease;
}

.product-card img {
  margin-bottom: 20px;
  width: 100%;
}

.product-card .Title {
  text-align: center;
}

/* ProductMore */
/* .product-more {
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-more img {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
} */
.ProductMore {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.ProductMore img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 800px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.ProductMore .bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #3c4853;
  opacity: 0.3;
  width: 100%;
  height: 100%;
}

.ProductMore .content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.ProductMore .content .icon {
  border-radius: 50%;
  border: 1px solid;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ProductMore .content .icon svg {
  width: 45px;
  height: 45px;
}

.ProductMore .content span {
  font-family: "Crimson Text", Sans-serif;
  font-size: 24px;
  padding-top: 20px;
}

.ProductMore:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


/* Advantage*/
.advantage .BigTitle {
  margin-bottom: 50px;
}

.advantage .grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 60px;
  margin-top: 50px;
}

.advantage-card {
  text-align: center;
}

/* .advantage-card {
  transition: all 0.3s ease;
  border-radius: 16px;
  text-align: center;
  padding: 32px;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
} */

.advantage-card .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 80px;
  margin: 0 auto;
  margin-bottom: 24px;
  border-radius: 50%;
  background-color: #f3f4f6;
  transition: all 0.3s ease;
}

.advantage-card .icon img {
  height: 50px;
  width: 50px;
}

.advantage-card:hover .icon {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  transform: scale(1.1);
}

.advantage-card .Title {
  line-height: 1.2em;
}

/*contact*/
.contact {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 0;
}

.contact .content {
  max-width: 1100px;
  margin: 0 auto;
}

.contact p {
  font-family: "Crimson Text", Sans-serif;
  font-size: 32px;
  line-height: 1.5;
}

.contact .email {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  font-size: 22px;
}

.contact .email img {
  height: 25px;
  margin-right: 15px;
}

.contact .email span {
  text-decoration: underline;
}

/* Responsive adjustments for navigation */



/* Image loading optimization (exclude slideshow images) */
#home img:not(.banner-slide) {
  opacity: 0;
  animation: imageFadeIn 1s ease-out 0.2s forwards;
}

@keyframes imageFadeIn {
  to {
    opacity: 1;
  }
}



@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Elements Animation */
.floating-element {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.1), rgba(75, 85, 99, 0.1));
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.6;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(156, 163, 175, 0.5);
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  border-color: rgba(156, 163, 175, 0.8);
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(156, 163, 175, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(20px);
  }

  60% {
    transform: translateX(-50%) translateY(10px);
  }
}





/* Button Hover Effects */
button {
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

/* Smooth Transitions */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Animations */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Intersection Observer Animations */
.fade-in-left {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.fade-in-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.fade-in-scale {
  animation: fadeInScale 0.8s ease-out forwards;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
  outline: 2px solid #374151;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .text-gray-600 {
    color: #374151 !important;
  }

  .text-gray-400 {
    color: #4b5563 !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-element {
    animation: none;
  }

  .scroll-dot {
    animation: none;
  }
}


/* 自适应 */
@media (max-width: 1280px) {
  .banner-text2 p{
    font-size: 50px;
  }

  .banner-text2 p span {
    width: 25px;
    height: 25px;
    margin-bottom: 6px;
  }
}

@media (max-width: 1024px) {
  .banner-text2 p {
    font-size: 35px;
  }

  .banner-text2 p span {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
  }
  .about,
  .product,
  .advantage {
    padding: 75px 0 105px 0;
  }

  .advantage .grid {
    grid-template-columns: repeat(3, 1fr);

  }
}

@media (max-width: 768px) {
  #home img:not(.banner-slide) {
    -o-object-position: center center;
    object-position: center center;
  }

  .banner-nav {
    width: 40px;
    height: 40px;
  }

  .banner-nav svg {
    width: 20px;
    height: 20px;
  }

  .banner-prev {
    left: 15px;
  }

  .banner-next {
    right: 15px;
  }

  .banner-dot {
    width: 10px;
    height: 10px;
  }

  .banner-text h1 {
    font-size: 48px !important;
  }

  .banner-text2 p{
    font-size:30px;
  }

  .floating-element {
    width: 60px;
    height: 60px;
  }

  /* Logo responsive */
  header img {
    height: 2.5rem !important;
  }

  .BigTitle {
    font-size: 30px;
  }

  .about,
  .product,
  .advantage {
    padding: 50px 0 55px 0;
  }

  .product .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-more img {
    max-width: 100%;
    border-radius: 8px;
  }

  .contact {
    padding: 100px 0;
  }

  .contact p {
    font-size: 22px;
  }

  .contact .email {
    font-size: 18px;
  }

  .contact .email img {
    height: 20px;
    margin-right: 10px;
  }
}

@media (max-width: 640px) {
  .banner-text h1 {
    font-size: 36px !important;
  }

  .banner-text2{
    display: block;
  }
  .banner-text2 p{
    font-size:36px;
  }

  .product .grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
  }

  .advantage .grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
  }

  .product-more {
    margin-top: 30px;
  }

  .product-more img {
    max-width: 100%;
    border-radius: 6px;
  }
}