/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    background-color: #F0F5F9;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.logo {
    position: relative;
    padding: 5px 15px;
    background: linear-gradient(120deg, rgba(0, 71, 187, 0.15), rgba(0, 71, 187, 0.1));
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.logo:hover {
    background: linear-gradient(120deg, rgba(0, 71, 187, 0.2), rgba(0, 71, 187, 0.15));
}

.logo img {
    height: 40px;
    position: relative;
    z-index: 1;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #0047BB;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #003894;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #0047BB;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* 主页横幅样式 */
.hero-section {
    height: 85vh;
    position: relative;
    margin-top: 70px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
}

.slide-overlay {
    display: none;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: auto;
    max-width: min-content;
    padding: 25px 40px;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 15px;
    background: linear-gradient(120deg, #0047BB, #00A3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 8px rgba(0, 71, 187, 0.2);
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

/* 第一张轮播图的白色样式 */
.swiper-slide[data-slide="1"] .hero-content h1 {
    background: linear-gradient(120deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.swiper-slide[data-slide="1"] .hero-content p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* 第二张轮播图的样式 */
.swiper-slide[data-slide="2"] .hero-content h1 {
    background: linear-gradient(120deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.swiper-slide[data-slide="2"] .hero-content p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.swiper-slide[data-slide="2"] .hero-content h1::after {
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

/* 保持其他轮播图的原有样式 */
.hero-content p {
    font-size: clamp(18px, 3vw, 24px);
    text-shadow: none;
    color: #2C3E50;
    font-weight: 500;
    white-space: nowrap;
}

/* 关于我们简介样式 */
.about-preview {
    padding: 60px 0;
    background: rgba(231, 246, 242, 0.9);
}

.about-preview .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.about-preview .about-content {
    text-align: left;
}

.about-preview h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 30px;
    color: #0047BB;
}

.about-preview p {
    max-width: 100%;
    margin-bottom: 40px;
    font-size: clamp(16px, 2vw, 18px);
    color: #2C3E50;
    line-height: 1.8;
}

.about-preview .about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 71, 187, 0.15);
    max-width: 400px;
    margin-left: auto;
    aspect-ratio: 4/3;
}

.about-preview .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.about-preview .about-image:hover img {
    transform: scale(1.05);
}

/* 特色服务样式 */
.features {
    padding: 60px 0;
    background: linear-gradient(135deg, #F0F5F9 0%, #E7F6F2 100%);
}

.features h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 50px;
    color: #0047BB;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.feature-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(42, 157, 143, 0.15);
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: clamp(20px, 3vw, 24px);
    margin-bottom: 10px;
    color: #2C3E50;
    font-weight: 600;
}

.feature-item p {
    color: #566573;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.8;
    margin-bottom: 15px;
}

.feature-item .subtitle {
    color: #0047BB;
    font-size: clamp(15px, 2.2vw, 17px);
    margin-bottom: 8px;
    font-weight: 500;
}

/* 新闻动态样式 */
.news {
    padding: 80px 0;
    background: rgba(231, 246, 242, 0.9);
}

.news h2 {
    text-align: center;
    font-size: clamp(32px, 5vw, 42px);
    margin-bottom: 60px;
    color: #0047BB;
    position: relative;
}

.news h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0047BB, transparent);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.news-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 71, 187, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 71, 187, 0.2);
}

.news-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 25px;
    position: relative;
}

.news-content h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    margin-bottom: 15px;
    color: #0047BB;
    font-weight: 600;
}

.news-content p {
    color: #2C3E50;
    margin-bottom: 20px;
    font-size: clamp(15px, 2vw, 16px);
    line-height: 1.8;
}

.vision-number {
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(0, 71, 187, 0.1);
    z-index: 1;
}

.read-more {
    color: #0047BB;
    text-decoration: none;
    font-size: clamp(14px, 2vw, 16px);
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #003894;
}

/* 页脚样式 */
footer {
    background: linear-gradient(120deg, rgba(0, 71, 187, 0.15), rgba(0, 71, 187, 0.1));
    color: #2C3E50;
    padding: 40px 0 20px;
    backdrop-filter: blur(5px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-section:last-child {
    text-align: right;
    justify-self: end;
}

.footer-section h4 {
    font-size: clamp(18px, 2.5vw, 20px);
    margin-bottom: 20px;
    color: #0047BB;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    color: #2C3E50;
    font-size: clamp(14px, 2vw, 16px);
}

.footer-section a {
    display: block;
    color: #2C3E50;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    font-size: clamp(14px, 2vw, 16px);
}

.footer-section a:hover {
    color: #0047BB;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    font-size: 24px;
    color: #0047BB;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #003894;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(0, 71, 187, 0.2);
    color: #2C3E50;
    font-size: clamp(12px, 1.8vw, 14px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 71, 187, 0.98);
        flex-direction: column;
        padding: 80px 20px;
        transition: right 0.3s ease;
    }

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

    .nav-links a {
        margin: 15px 0;
        font-size: 18px;
        color: white;
    }

    .nav-links a:hover {
        color: rgba(255, 255, 255, 0.8);
    }

    .booking-btn {
        margin-top: 20px;
    }

    .hero-section {
        margin-top: 60px;
    }

    .about-preview,
    .features,
    .news {
        padding: 40px 0;
    }

    .feature-grid,
    .news-grid {
        gap: 20px;
    }

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

    .social-links {
        margin-top: 10px;
    }

    .about-preview .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-preview .about-content {
        text-align: center;
    }

    .about-preview .about-image {
        max-width: 100%;
        margin: 0 auto;
        aspect-ratio: 16/9;
    }

    .news {
        padding: 60px 0;
    }
    
    .news-grid {
        gap: 30px;
    }
    
    .vision-number {
        font-size: 36px;
        top: -25px;
    }

    .hero-content {
        padding: 20px 30px;
        width: auto;
    }
    
    .hero-content h1 {
        font-size: clamp(28px, 4vw, 36px);
        white-space: normal;
    }
    
    .hero-content p {
        font-size: clamp(16px, 2.5vw, 20px);
        white-space: normal;
    }
}

/* 适配超小屏幕 */
@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }

    .container {
        padding: 0 15px;
    }

    .feature-item,
    .news-item {
        margin: 0 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.social-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 0;
}

.social-popup img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    background-color: transparent;
    padding: 0;
}

.social-popup.active {
    display: flex;
}

.social-links a {
    position: relative;
    cursor: pointer;
}

.booking-btn .btn {
    background: #0047BB;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid #0047BB;
}

.booking-btn .btn:hover {
    background: white;
    color: #0047BB;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 71, 187, 0.2);
}
