/* --- 基本和全局样式 --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #3D9BE9;
    --secondary-color: #0a72c8;
    --text-color: #333;
    --light-bg-color: #f4f7fc;
    --white-color: #fff;
    --black-color: #000;
    --border-color: #ddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* max-width: 100%; */
    /* width: 100%; */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #666;
}

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

.bg-light {
    background-color: var(--light-bg-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* --- 页眉和导航 --- */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
}

.main-nav {
    display: flex;
    gap: 50px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
}

.mobile-menu-toggle.is-open .fa-bars::before {
    content: "\f00d";
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--white-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobile-nav.is-active {
    display: flex;
}

.mobile-nav a {
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a.active {
    background-color: var(--light-bg-color);
    font-weight: bold;
}

/* --- Hero Section --- */
.hero {
    color: var(--white-color);
    padding: 180px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 20, 50, 0.3);
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.hero-bg-index { background-image: url('img/imgi_3_cbad7d_8eca36100c4f43e7855a860ebe9ce994~mv2.webp'); }
.hero-bg-about { background-image: url('img/banner_about.avif'); padding: 140px 0; }
.hero-bg-ourlab { background-image: url('img/banner_ourlab.jpg'); padding: 140px 0; }
.hero-bg-products { background-image: url('img/banner_product.jpg');padding:200px 0; }
.hero-bg-contact { background-image: url('img/banner_contact.avif'); padding: 140px 0; }


.partners-grid img {
    height: 86px;
    margin: 10px 20px;
}

.about-image {
    height: 100%;
}

.about-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* --- 通用网格和卡片 --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.card img {
    max-width: 100%;
    margin-bottom: 20px;
}
.card h3 {
    color: var(--black-color);
    margin-bottom: 15px;
    text-align: left;
}
.feature-list {

    text-align: left;
    color: #555;
    padding-left: 20px;
}

/* --- 团队部分 --- */
.team-member {
    max-width: 264px;
}
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px;
}
/* .team-grid.large-gap {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}*/
.team-member img {
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.team-member h4 {
    color: var(--primary-color);
}
.team-member p {
    font-size: 0.9rem;
    color: #777;
}
.checklist {
    padding-left: 20px;
}
.promise-card span {
    display: inline-block;
    padding: 10px;
    width: 120px;
    height: 120px;
    overflow: hidden;
    background: #636d80;
}
.promise-card span img{

    height: 100%;
}
.promise-card h3 {
    font-size: 24px;
    font-weight:bold;
    margin: 15px auto;
}
 
/* --- 关于我们部分 (Grid) --- */
.grid-2-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* --- OUR LAB (Grid) --- */
.grid-2-ourlab {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.grid-1-ourlab {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.icon-grid {
    gap: 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ccc;
}
.icon-grid-pro {
    gap: 0px;
}

.icon-grid span {
    max-width: 160px;
    font-size: 14px;
}
.icon-grid img {
    width: 60%;
}
.icon-grid-pro span {
    max-width: 140px;
    font-size: 14px;
}


.about-content svg {
    width: 200px;
    margin-right: 40px;
}

.padding0 {padding: 0;}

/* --- 页脚 --- */
.footer {
    background-color:#002244;
    color: #ccc;
}
.footer-main {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 40px;
    border-bottom: 1px solid #00428a;
}
.footer-col {
padding: 20px;
}

.footer-col h4 {
    font-size: 22px;
    color: var(--white-color);
    margin-bottom: 20px;
}
.footer-form input, .footer-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #4a6a8a;
    background-color: #00428a;
    color: var(--white-color);
}
.footer-form .form-group-row {
    display: flex;
    gap: 10px;
}
.footer-bottom {
    background-color: #002244;
    padding: 20px 0;
    font-size: 12px;
    text-align: center;
}
.social-icons {
    margin: 10px 0;
}
.social-icons a {
    color: #ccc;
    font-size: 1.2rem;
    margin: 0 10px;
    text-decoration: none;
}
.copyright {
    font-size: 0.8rem;
}

.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: inline-block;
    padding: 20px;
    background-color: #25D366; /* WhatsApp绿色 */
    color: white;
    text-decoration: none;
    border-radius: 10px;
}
.whatsapp-button i {
    font-size: 36px;
    vertical-align: middle;
}
.product-feature {
    margin-bottom: 40px;
}
.product-feature-image img {
    max-width: 100%;
}
.product-feature-text h3 {
    font-size: 24px;
    line-height: 110%;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.product-feature-text h3 span {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #B8D3FF;
    display: inline-block;
    text-align: center;
    line-height: 60px;
    margin-right: 10px;
    font-size: 36px;
    float: left;
}

.product-feature-text ul {
padding-left: 80px;}

/* --- Slideshow Section --- */
.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
}

.mySlides {
  display: none;
}

.mySlides img {
    vertical-align: middle;
    border-radius: 10px;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  opacity: 0; /* Hidden by default */
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.slideshow-container:hover .prev,
.slideshow-container:hover .next {
  opacity: 1; /* Show on hover */
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption and Number text */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #f2f2f2;
    padding: 30px 15px 20px 15px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.6s ease;
    border-radius: 0 0 10px 10px;
}

.slideshow-container:hover .slide-overlay {
    opacity: 1; /* Show on hover */
}

.numbertext {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 12px;
}

.text {
  font-size: 15px;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* --- Photo Wall Section (Masonry/Collage Effect) --- */
.photo-wall {
    column-count: 4; /* Desktop: 4 columns */
    column-gap: 15px;
    margin-top: 40px;
}

.photo-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px; /* Vertical gap between items */
    display: inline-block; /* Essential for column layout */
    width: 100%;
    break-inside: avoid; /* Prevents items from splitting across columns */
}

.photo-item img {
    width: 100%;
    height: auto; /* Let height be determined by aspect ratio */
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    vertical-align: middle; /* Fixes potential bottom space */
}

.photo-item:hover img {
    transform: scale(1.05);
}

.leader-section img {
    width:100%;
}
.grid-2-about .about-content {
    padding-top:40px;
}
.leader-info {
    padding-left:20px;
}
.language-selector a {
    color: #666;
    text-decoration: none;
}
.language-selector a:hover {
    color: var(--primary-color);
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
    .logo img {
        height: 64px;
    }
    .main-nav {
        gap: 30px;
    }
    .grid-3, .team-grid, .grid-2-about {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    .about-image img {
        width: 100%;
    }
    .photo-wall {
        column-count: 3;
    }
    .grid-1-ourlab {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}
}

@media (max-width: 768px) {
    .logo img {
        height: 48px;
    }
    .main-nav, .header-right .language-selector {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .grid-3, .team-grid, .grid-2-about, .footer-main {
        grid-template-columns: 1fr;
    }
    .photo-wall {
        column-count: 2; /* Desktop: 4 columns */
        }
    .grid-2-ourlab {
        display: grid;
        grid-template-columns: 1fr;
        gap: 50px;
        align-items: center;
}
    .about-content svg {
        margin-right: 0px;
        margin-bottom:20px;
}


.product-feature-text ul {
padding-left: 68px;}
}
