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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: #fff;
}
:root {
    --primary-color: #0f7ce7;
    --text-primary: #313233;
    --text-regular: #626466;
    --text-secondary: #939699;
    --section-background: #f8f9fa;
    --transition-standard: all 0.3s ease;
}
a,
a:link,
a:visited {
  color: var(--text-primary);
  text-decoration: none;
}

a, button {  
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    outline: none;
} 
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
 /* 入场动画关键帧 */
 @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s forwards;
}

.animate-scale-in {
    animation: scaleIn 0.8s forwards;
}

/* 延迟动画类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
/* Header */
header {
    background: var(--primary-color);
    color: white;
    padding: .85rem 0;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.header-content .logo {
    display: flex;
    align-items: center;
}
.header-content .logo img {
    max-height: 36px;
}
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.header-content nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.header-content nav a:hover {
    opacity: 1;
}
/* 移动端导航样式 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* 语言切换样式 */
.lang-container {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.lang-switch-btn {
    background: #fff;
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.lang-switch-btn::after {
    content: "▼";
    font-size: 11px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 5px 0;
    margin-top: 5px;
    min-width: 100px;
    z-index: 100;
    display: none;
    color: var(--text-primary);
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition-standard);
}

.lang-option:hover {
    background: #f5f5f5;
}
/* banner */
.banner {
    background: linear-gradient(135deg, #c3dbff 0%, #e6d3fd 100%);
    min-height: 500px;
    position: relative;
    padding: 5rem 0 7rem 0;
}
.banner .banner-slide {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.banner .banner-slide .text{
    flex: 1;
}
.banner-slide .images{
    width: 42%;
}
.banner-slide .images img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.logo-container{
    margin-top: 4rem;
    overflow: hidden;
    position: relative;
}
.logo-container h2{
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    color: var(--text-regular);
    margin-bottom: 2rem;
}
.logo-wall{
    display: flex;
    width: fit-content;
    position: relative;
    margin: 0 auto;
}
.logo-item{
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollLogos 25s linear infinite;
}
.logo-item img{
    height: 2.5rem;
    padding: 0 2rem;
    /* -webkit-filter: brightness(0);
    filter: brightness(0); */
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.logo-item a:hover img{
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    /* -webkit-filter: brightness(100%) invert(0);
    filter: brightness(100%) invert(0); */
}
.logo-item.clone {
    position: absolute;
    top: 0;
    left: 100%;
}
/* 滚动动画 */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* capabilities */
.capabilities{
    position: relative;
    margin-top: -40px;
    /* background: linear-gradient(160deg, #d4e5ff 0%, #f4f9ff 60%); */
}
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.capabilities-card {
    background: rgba(255,255,255,0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    backdrop-filter: blur(10px);
    /* background: linear-gradient(140deg, #d4e5ff 0%, #ffffff 60%); */
}

.capabilities-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.capabilities-icon {
    margin:  1rem 0;
}
.capabilities-icon img {
    height: 60px;
    transition: var(--transition-standard);
}
.capabilities-card:hover .capabilities-icon img {
    transform: scale(1.1);
}
.capabilities-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.capabilities-card p {
    color: #666;
    line-height: 1.6;
}
/* AIDC */
.AIDC{
    padding: 5rem 0;
    /* background: linear-gradient(45deg, #237cd2 0%, #004499 100%);
    color: white; */
}
.AIDC .section-title h2{
    color: #fff;
}
.AIDC-grid{
    background: url(../images/wordmap.png) center no-repeat;
    min-height: 720px;
    background-size: contain;
    background-position: 0 140px;
}
.AIDC-grid h3{
    font-size: 28px;
    line-height: 1.5;
}
.AIDC-grid .description{
    margin-top: 10px;
}
.featured-metrics{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    margin-top: 20px;
}
.featured-metric-value{
    font-size: 30px;
    font-weight: 600;
}


/* Services */
.services {
    background: url(../images/solutions-bg.webp) center no-repeat;
    background-size: cover;
    padding: 5rem 0;
    
}
.section-title{
    font-size: 2.3rem;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    margin-bottom: 3rem;   
}
.section-title::after{
    content: '';
    display: block;
    width: 140px;
    height: 7px;
    background-color: var(--primary-color);
    border-radius: 4px;
    margin-top: 10px;
}
.section-title p{
    color: var(--text-regular);
    font-size: 1.1rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* gap: 2rem; */
    border: 1px solid #ddd;
    border-bottom: none;
    border-right: none;
}
.service-card {
    background: white;
    padding: 2rem;
    /* border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    /* transition: transform 0.3s, box-shadow 0.3s; */
    transition: var(--transition-standard);
}

.service-card:hover {
    /* transform: translateY(-5px); */
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 10;
}
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition-standard);
}
.service-card:hover .service-icon {
    transform: rotate(10deg);
}
.service-icon img {
    width: 30px;
    height: 30px;
}
.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    text-align: center;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Industries */
.sustainability {
    background: url(../images/sustainability-bg.webp) center no-repeat;
    padding: 5rem 0;
}
.sustainability-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}
.sustainability-grid img{
    max-width: 100%;
    border-radius: 10px;
}
.sustainability-grid h3{
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4;
}
.sustainability-grid .description{
    margin-top: 15px;
    color: var(--text-regular);
}
/* Features */
.news{
    padding: 5rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-item {
    transition: var(--transition-standard);
    border-radius: 8px;
    overflow: hidden;
}

/* .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
} */

.news-item img {
    max-width: 100%;
    margin-bottom: 1rem;
    transition: var(--transition-standard);
}

.news-item:hover img {
    transform: scale(1.03);
}
.news-item .date{
    margin-bottom: 1rem;
}
.news-item .date .day {
    font-size: 30px;
    font-weight: 500;
    margin-right: 5px;
}
.news-item .date .year {
    color: var(--text-regular);
}

.news-item .title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

.news-item .desc {
    color: var(--text-regular);
    margin-top: 1rem;
}

/* Contact */
.contact {
    padding: 5rem 0;
    background: var(--section-background);
}
.contact-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}
.contact-grid img{
    max-width: 100%;
    border-radius: 10px;
}
.contact-info .contact-item{
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.contact-info .contact-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
}
.contact-info .contact-item p{
    color: var(--text-regular);
}
.contact-info .contact-item a{
    color: var(--text-regular);
    text-decoration: none;
    transition: var(--transition-standard);
}
.contact-info .contact-item a:hover{
    color: var(--primary-color);
}
/* Footer */
footer {
    background: #000;
    color: white;
    padding: 4rem 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}
.footer-links .title{
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.footer-links ul li{
    list-style: none;
}
.footer-links a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.3rem 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}
.footer-links .logo{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}
.footer-links .logo img{
    max-width: 170px;
}
.footer-socials{
    font-size: 30px;
}
.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 2rem;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
     .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul.active {
        display: block;
    }
    .header-content nav ul a{
        color: var(--text-primary);
        display: block;
        padding: 0.5rem 0;
    }
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .lang-container {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .lang-switch-btn {
        width: 50%;
        margin: 0 auto;
        justify-content: center;
        background: var(--primary-color);
        color: #fff;
    }

    .lang-dropdown {
        width: 50%;
        margin: 0 auto;
        position: static;
        box-shadow: none;
        border: 1px solid #ddd;
    }
   
    .banner{
        padding: 3rem 0 5rem 0;
        min-height: auto;
    }
    .banner .banner-slide{
        display: block;
    }
    .banner h1{
        font-size: 1.8rem;
    }
    .banner p{
        font-size: 1rem;
    }
    .banner-slide .images{
        width: 100%;
    }
    
    .section-title{
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .section-title::after{
        width: 100px;
        height: 6px;
    }
    .AIDC-grid{
        background-size: 100%;
        min-height: 400px;
        background-position: bottom;
    }
    .AIDC-grid h3{
        font-size: 20px;
    }
    .services-grid, .news-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .sustainability{
        background: none;
    }
    .sustainability-grid h3{
        font-size: 24px;
    }
    .sustainability-grid,.contact-grid{
        gap: 0;
    }
    .AIDC,.services,.sustainability,.contact,.news{
        padding: 2rem 0;
    }
    .contact-grid img,.sustainability-grid img{
        order: 2;
        margin-top: 1rem;
    }
    .contact-info .contact-item {
        margin-top: 1rem;
    }
    .footer-links .logo{
        align-items: inherit;
    }
    .footer-links .logo img{
        margin-top: 1rem;
    }
}