:lang(en) body { font-family: 'Inter', sans-serif; }
:lang(zh) body { font-family: 'Noto Sans SC', sans-serif; }

.animated-element { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}
.animated-element.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.nav-link { 
    position: relative; 
    color: #374151; 
}
.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: -4px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background-color: #2069ab; 
    transition: width 0.3s ease; 
}
.nav-link:hover { 
    color: #2069ab; 
}
.nav-link:hover::after { 
    width: 100%; 
}

        #floating-contact {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 40;
            transform: translateY(0);
            transition: transform 0.3s ease-in-out;
        }
        #floating-contact.hidden-floating {
            transform: translateY(100%);
        }
        #contact-section {
            position: relative;
        }
        
        /* Larger font size for logo and navigation on larger screens */
        @media (min-width: 768px) {
            .header-title {
                font-size: 1.125rem; /* text-lg */
            }
            .nav-link {
                font-size: 1.125rem; /* text-lg */
            }
        }

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 32px;
    max-width: none;
}
.news-card { 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2069ab 0%, #1a5a96 100%);
    border-radius: 16px 16px 0 0;
}
.news-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(32, 105, 171, 0.15);
    border-color: rgba(32, 105, 171, 0.3);
}
.news-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.news-card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover .news-card-image img {
    transform: scale(1.08);
}
.news-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(32, 105, 171, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
}
.news-card-link {
    display: inline-flex;
    align-items: center;
    color: #2069ab;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}
.news-card-link:hover {
    color: #1a5a96;
    transform: translateX(4px);
}
.news-card-link svg {
    transition: transform 0.3s ease;
}
.news-card-link:hover svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 24px;
    }
}
@media (max-width: 768px) {
    .floating-contact {
        right: 20px;
        padding: 15px;
    }
    .floating-contact-text {
        font-size: 12px;
    }
    .news-container {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    .news-card-image {
        height: 200px;
    }
}
