* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    list-style: none;
}
a{-webkit-tap-highlight-color: transparent;}

::-webkit-scrollbar {
    width: 3px;
}

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

/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #6b7280 #e1ebee;
}

body {
    color: #1A1A1A;
    line-height: 1.8;
    background-color: #FAFBFC;
    overflow-x: hidden;
}

/* Scroll Animation */
.animate-section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏 */
header {
    background: linear-gradient(180deg, #FFFFFF, #FAFBFC);
    height: 90px;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: #094C5A;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.logo  a{
    color: #094C5A;
    text-decoration: none;
}

.logo:hover {
    color: #1A8C9C;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 50px;
}

nav li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

nav a {
    color: #1A1A1A;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: #094C5A;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #094C5A;
}

nav a span.primary {
    font-weight: 700;
    margin-bottom: 6px;
}

nav a span.secondary {
    font-size: 0.8rem;
    color: #666666;
    transition: color 0.3s ease;
}

nav a:hover span.secondary {
    color: #094C5A;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    background: #094C5A;
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #FFFFFF;
    padding: 80px 30px;
    transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #094C5A;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-nav .close-btn:hover {
    color: #1A8C9C;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 30px;
}

.mobile-nav li {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.mobile-nav a {
    font-size: 1.1rem;
    color: #1A1A1A;
    text-decoration: none;
}

.mobile-nav a span.primary {
    font-weight: 700;
}

.mobile-nav a span.secondary {
    font-size: 0.9rem;
    color: #666666;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

 /* 响应式 */
 @media (max-width: 768px) {
    .news-buttons {
        display: flex;
    }

    header {
        padding: 0 20px;
        height: 60px;
    }

    nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .banner {
        height: 240px;
    }

    .banner-text {
        left: 20px;
        max-width: 90%;
    }

    .banner-text h2 {
        font-size: 1.6rem;
    }

    .banner-text p {
        font-size: 1rem;
    }

    .service,
    .company {
        flex-direction: column;
        height: auto;
    }

    .service .image,
    .company .image {
        width: 100%;
        height: 300px;
        /* Scaled down for mobile */
    }

    .service .content,
    .company .content {
        width: 100%;
        padding: 40px 20px;
    }

    .greeting,
    .contact,
    .news {
        padding: 80px 20px;
    }

    .greeting h2,
    .contact h2,
    .news h2 {
        font-size: 2.2rem;
    }
    footer{padding: 50px 20px !important;}

    .greeting h3,
    .contact h3 {
        font-size: 1.2rem;
    }

    .greeting p,
    .contact p,
    .service p,
    .company p,
    .news-item p {
        font-size: 1.1rem;
    }

    .news-item {
        padding: 30px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* 页脚 */
footer {
    background: linear-gradient(180deg, #E3ECEF, #D7E4E8);
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 140px;
    height: 4px;
    background: #094C5A;
    transform: translateX(-50%);
    border-radius: 2px;
}

footer ul {
    list-style: none;
    margin-bottom: 40px;
}

footer ul li {
    display: inline;
    margin: 0 15px;
}

footer a {
    color: #555555;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #094C5A;
}

footer p {
    color: #888888;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #094C5A;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1A8C9C;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}