 /* Banner */
 .banner {
    height: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)); */
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    color: #FFFFFF;
    z-index: 1;
    max-width: 800px;
}

.banner-text h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 1px;
}

.banner-text p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* 问候 */
.greeting {
    background: linear-gradient(135deg, #094C5A, #1A8C9C);
    color: #FFFFFF;
    text-align: center;
    padding: 140px 20px;
    position: relative;
    overflow: hidden;
}

.greeting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    z-index: 0;
}

.greeting h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: 1.5px;
}

.greeting h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.greeting p {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 2;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.greeting p span {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
}

/* 服务 */
.service {
    display: flex;
    align-items: stretch;
    background-color: #FFFFFF;
    height: 450px;
}

.service .image {
    width: 50%;
    margin: 0;
}

.service .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.service .content {
    width: 50%;
    padding: 60px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FAFBFC;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #094C5A;
    letter-spacing: 1.5px;
}

.service h4 {
    font-size: 1.3rem;
    color: #555555;
    margin-bottom: 25px;
}

.service p {
    margin-bottom: 30px;
    font-size: 1.25rem;
    display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* 限制显示4行 */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 公司 */
.company {
    display: flex;
    align-items: stretch;
    background-color: #FFFFFF;
    height: 450px;
    flex-direction: row-reverse;
}

.company .image {
    width: 50%;
    margin: 0;
}

.company .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.company .content {
    width: 50%;
    padding: 60px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FAFBFC;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.company h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #094C5A;
    letter-spacing: 1.5px;
}

.company h4 {
    font-size: 1.3rem;
    color: #555555;
    margin-bottom: 25px;
}

.company p {
    margin-bottom: 30px;
    font-size: 1.25rem;
}

/* 按钮样式 */
.btn {
    border: 1px solid #094C5A;
    background-color: transparent;
    color: #094C5A;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #094C5A;
    opacity: 0.2;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::after {
    left: 0;
}

.btn:hover {
    background-color: #094C5A;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* 接触 */
.contact {
    background: linear-gradient(135deg, #094C5A, #1A8C9C);
    color: #FFFFFF;
    text-align: center;
    padding: 140px 20px;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="10" cy="10" r="1" fill="%23FFFFFF" opacity="0.1"/%3E%3C/svg%3E');
    z-index: 0;
}

.contact h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: 1.5px;
}

.contact h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.contact p {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 2;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.contact .btn {
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    padding: 16px 48px;
}

.contact .btn:hover {
    background-color: #FFFFFF;
    color: #094C5A;
}

/* 消息 */
.news {
    background-color: #FFFFFF;
    padding: 140px 40px;
    position: relative;
}

.news h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: 1.5px;
}

.news h3 {
    font-size: 1.3rem;
    color: #AAAAAA;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.news-item {
    max-width: 1000px;
    margin: 0 auto 40px;
    background: #E6ECEF;
    /* Softer, elegant background */
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.news-item p{
    display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2; 
            overflow: hidden;
            text-overflow: ellipsis;
}

.news-item .meta {
    color: #888888;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.news-item h4 a {
    color: #2BA7B4;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.news-item h4 a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #094C5A;
    transition: width 0.3s ease;
}

.news-item h4 a:hover::after {
    width: 100%;
}

.news-item h4 a:hover {
    color: #094C5A;
}

.news-item p {
    margin-bottom: 25px;
    font-size: 1.25rem;
}

.news-buttons {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.news-buttons .btn-primary {
    background-color: #2BA7B4;
    color: #FFFFFF;
    border: none;
    padding: 16px 56px;
    margin-left: 30px;
}

.news-buttons .btn-primary:hover {
    background-color: #094C5A;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}



/* 响应式 */
@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: 255px;
        /* 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;
    }

    .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;
    }
}