/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "宋体", sans-serif;
}

body {
    background-color: #f8f9fa;
}

/* 导航栏容器（绿色主题） */
.nav-container {
    background-color: rgba(76, 175, 80, 0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container.scrolled {
    background-color: rgba(76, 175, 80, 0.85);
}

/* 主导航菜单 */
.main-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

/* 网站名字样式 */
.site-name {
    font-family: "楷体", "宋体", sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    margin-right: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    height: 64px;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 20px;
}

/* 导航链接样式 */
.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 12px;
    position: relative;
    transition: color 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

/* 清华式悬停渐变下划线（绿色版） */
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C8E6C9, transparent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: #fff;
}

.nav-menu a:hover::after {
    width: 100%;
    background: linear-gradient(90deg, transparent, #C8E6C9 30%, #C8E6C9 70%, transparent);
}

/* 二级菜单（绿色主题） */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(129, 199, 132, 0.95);
    min-width: 200px;
    padding: 12px 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none; /* 去掉列表的项目符号 */
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.sub-menu a {
    color: rgba(46, 125, 50, 0.9);
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #2E7D32;
}

/* 轮播图区域 */
.banner {
    height: calc(100vh - 64px);
    position: relative;
    margin-top: 64px;
    overflow: hidden;
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

/* 纯色背景 */
.slide-1 {
    background-color: #E8F5E9;
}

.slide-2 {
    background-color: #C8E6C9;
}

.slide-3 {
    background-color: #A5D6A7;
}

/* 轮播图文字 */
.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2E7D32;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* 内容模块 */
.content-section {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 旅游套餐页面特定样式 */
.tour-packages-page.content-section {
    display: block; 
}

.tour-packages-page.package-type h3 {
    color: green; 
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    /* 原 padding 是 24px，现在将上下 padding 变为 48px，左右保持不变 */
    padding: 48px 24px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #C8E6C9;
    /* 可以添加 min-height 进一步确保纵向空间 */
    min-height: auto; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
    background-color: #E8F5E9; /* 鼠标悬停时背景变为浅绿色 */
}

.section-title {
    color: #2E7D32;
    font-size: 1.8rem;
    border-left: 4px solid #81C784;
    padding-left: 16px;
    margin: 40px 0 30px;
    grid-column: 1 / -1;
}

.card h4 {
    color: #2E7D32;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 底部样式（绿色主题） */
.footer {
    background-color: #4CAF50;
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
}

.footer-section {
    flex: 1;
    margin-right: 40px;
}

.footer-section h3 {
    color: #C8E6C9;
    margin-bottom: 16px;
}

.footer-section p {
    line-height: 1.6;
    margin: 8px 0;
}

/* 修改首页生态旅游线路板块链接样式 */
.content-section .card a {
    color: black; /* 字体颜色改为黑色 */
    text-decoration: none; /* 去掉下划线 */
}

.content-section .card a:hover {
    color: black; /* 鼠标悬停时字体颜色保持黑色 */
    text-decoration: none; /* 鼠标悬停时也去掉下划线 */
}

/* 移动端导航菜单样式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        height: auto;
        background-color: rgba(76, 175, 80, 0.95);
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
    }

    .nav-menu > li {
        width: 100%;
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 16px 24px;
    }

    .sub-menu {
        position: static;
        background: rgba(129, 199, 132, 0.95);
        min-width: auto;
        padding: 0;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
    }

    .sub-menu a {
        padding: 10px 40px;
    }

    /* 显示导航菜单的按钮样式 */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 24px;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        margin-bottom: 6px;
    }
}

/* 团队模块 */
.team-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: #E8F5E9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
}    


/* 调整卡片内 <p> 标签的行间距 */
.card p {
    line-height: 1.8; /* 数值可根据实际效果调整，1.8 表示 1.8 倍行高 */
}


/* logo */
nav {
	display: flex;
    align-items: center;
    padding: 20px;
}

nav img {
    height: 45px; /* 根据实际情况调整 logo 高度 */
    margin-right: 30px;
}

/* 让 logo 变为圆形 */
.main-nav img {
    border-radius: 50%;
    /* 可根据需要调整图片大小 */
    width: 50px; 
    height: 50px;
    object-fit: cover;
}


/* 底部样式（绿色主题） */
.footer {
    background-color: rgba(76, 175, 80, 0.95); /* 与导航栏颜色一致 */
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center; /* 添加这一行，让整个.footer 元素内的内容居中 */
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    flex-wrap: wrap; /* 添加这一行，防止子元素溢出 */
    align-items: center; /* 添加这一行，垂直居中子元素 */
    text-align: left; /* 恢复.footer-content 内原本的文本对齐方式为左对齐 */
}

.footer-section {
    flex: 1;
    margin-right: 40px;
}

.footer-section h3 {
    color: #C8E6C9;
    margin-bottom: 16px;
}

.footer-section p {
    line-height: 1.6;
    margin: 8px 0;
}

/* 新增备案信息样式 */
.icp-info {
    text-align: center;
    margin-top: 20px;
    width: 100%; /* 添加这一行，让.icp-info 元素占满宽度 */
}

.icp-info a {
    color: white; /* 设置字体颜色为白色 */
    text-decoration: none;
}

.icp-info a:hover {
    text-decoration: underline;
}

