﻿:root {
    --glass: rgba(255, 255, 255, 0.85);
}

body {
    background-color: #f0f7f4;
    color: #2D3748;
    scroll-behavior: smooth;
}
/* 响应式容器替代固定宽度 */
.container-custom {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1200px) {
    .container-custom {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.section-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(45, 156, 108, 0.05);
    transition: all 0.3s ease;
}

    .section-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(45, 156, 108, 0.1);
    }

.gradient-bg {
    background: linear-gradient(135deg, #2D9C6C 0%, #155E3D 100%);
}

.dot-pattern {
    background-image: radial-gradient(#2D9C6C 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 移动端导航菜单样式 - 核心修复：PC端默认隐藏 */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    /* PC端强制隐藏 */
    display: none;
}
/* 仅在移动端显示菜单容器 */
@media (max-width: 767px) {
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        min-height: 800px;
        width: 64%;
        max-width: 256px;
        background: white;
        
        z-index: 9999; /* 提升层级避免被遮挡 */
        padding: 2rem;
        flex-direction: column;
        gap: 2rem;
         
    }
}

.mobile-menu.active {
    transform: translateX(0);
}
/* 菜单遮罩层 - 仅移动端显示 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

@media (max-width: 767px) {
    .menu-overlay.active {
        display: block;
    }
}
/* 轮播图样式 */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 24px;
    }

.swiper-pagination-bullet {
    background: #2D9C6C;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #1B5E20;
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}
