.nav-container {width: 100%;background: linear-gradient(135deg, var(--primary), #3a8861);position: fixed;top: 0;left: 0;z-index: 1000;}
/* 导航内容容器 */
.nav-content {
max-width: 1560px;
margin: 0 auto;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
height: 86px;
}
.logo {display: flex;align-items: center;}
.logo-img {width: auto;}
.nav-links {display: flex;list-style: none;}
.nav-item {position: relative;}
.nav-link {
color: white;
text-decoration: none;
padding: 28px 25px;
display: flex;
align-items: center;
font-size: 18px;
transition: all 0.3s ease;
position: relative;
}

.nav-link:hover {background: rgba(255, 255, 255, 0.15);color:#e6d3a7;}
.nav-link i {margin-right: 10px;
<!-- font-size: 1.2rem; -->
width: 24px;
text-align: center;
}

.nav-link .arrow {
margin-left: 8px;
font-size: 0.9rem;
transition: transform 0.3s ease;
}

.nav-item:hover .arrow {
transform: rotate(180deg);
}

.dropdown {
position: absolute;
top: 100%;
left: 0;
background: white;
width: 100%;
border-radius: 0px 0px 10px 10px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
z-index: 1000;
opacity: 0;
visibility: hidden;
transform: translateY(15px);
transition: all 0.3s ease;
padding: 10px 0;
}

.nav-item:hover .dropdown {opacity: 1;visibility: visible;transform: translateY(0);}

.dropdown-item {
padding: 12px 20px;
display: flex;
align-items: center;
color: #444;
text-decoration: none;
transition: all 0.3s ease;
}

.dropdown-item i {
margin-right: 12px;
color: #3a8861;
font-size: 1rem;
width: 20px;
}

.dropdown-item:hover {
background: #f0f7f3;
color: #3a8861;
padding-left: 25px;
}

.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
padding:8px;
background: rgba(255, 255, 255, 0.15);
border-radius: 6px;
}

.hamburger span {
width: 26px;
height: 3px;
background: white;
margin: 3px 0;
transition: all 0.3s ease;
border-radius: 2px;
}

/* 轮播图样式 */
.carousel {
width: 100%;
height: 100vh;
position: relative;
overflow: hidden;
margin-top: 0; /* 移除之前的margin-top */
}

.carousel-inner {
width: 100%;
height: 100%;
position: relative;
}

.carousel-item {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 1s ease;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
color: white;
text-align: center;
}

.carousel-item.active {opacity: 1;}

.carousel-content {
max-width: 800px;
padding: 30px;
<!-- background: rgba(0, 0, 0, 0.5); -->
border-radius: 15px;
animation: fadeInUp 1s ease;
}

.carousel-content h2 {
font-size: 3.6rem;
margin-bottom: 20px;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
font-size: 1.2rem;
margin-bottom: 25px;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
display: inline-block;
padding: 12px 30px;
background: #3a8861;
color: white;
text-decoration: none;
border-radius: 50px;
font-weight: bold;
transition: all 0.3s ease;
border: 2px solid #3a8861;
}

.btn:hover {
background: transparent;
color: white;
border-color: white;
}

.carousel-controls {position: absolute;bottom: 45px;right: 2%;/* transform: translateX(-50%); */display: flex;gap:6px;z-index: 10;}

.carousel-control {
width: 0px;
height: 0px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: all 0.3s ease;
}

.carousel-control.active {
background: white;
transform: scale(1.2);
}

.carousel-arrows {
position: absolute;
top: 50%;
width: 100%;
display: flex;
justify-content: space-between;
padding: 0 30px;
z-index: 10;
transform: translateY(-50%);
}

.carousel-arrow {
width: 50px;
height: 50px;
background: rgba(0, 0, 0, 0.3);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
cursor: pointer;
transition: all 0.3s ease;
}

.carousel-arrow:hover {
background: rgba(0, 0, 0, 0.6);
}

/* 响应式设计 */
@media (max-width: 1200px) {
.nav-link {padding: 28px 15px;font-size: 1rem;}
.nav-link i {margin-right: 8px;font-size: 1.1rem;}
}

@media (max-width: 992px) {
body {padding-top: 70px; /* 调整移动端的顶部间距 */}
.nav-content {height: 70px;}

.nav-links {
position: fixed;
top: 70px;
right: -300px;
width: 300px;
height: calc(100vh - 70px);
background: linear-gradient(to bottom, #2a7a52, #3a8861);
flex-direction: column;
padding-top: 20px;
transition: right 0.4s ease;
z-index: 1000;
box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
overflow-y: auto;
}

.nav-links.active {right: 0;}
.nav-item {width: 100%;}
.nav-link {padding: 18px 25px;border-bottom: 1px solid rgba(255, 255, 255, 0.1);justify-content: flex-start;}

.dropdown {
position: static;
width: 100%;
background: rgba(255, 255, 255, 0.08);
box-shadow: none;
display: none;
opacity: 1;
visibility: visible;
transform: none;
border-radius: 0;
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease;
margin-left: 20px;
width: calc(100% - 40px);
}

.nav-item:hover .dropdown {transform: none;}
.dropdown.active {display: block;max-height: 500px;}
.dropdown-item {color: white;padding: 14px 25px 14px 35px;border-bottom: 1px solid rgba(255, 255, 255, 0.1);}
.dropdown-item i {color: rgba(255, 255, 255, 0.8);}
.dropdown-item:hover {background: rgba(255, 255, 255, 0.1);color: white;}

.hamburger {display: flex;z-index: 1001;}
.hamburger.active span:nth-child(1) {transform: rotate(45deg) translate(5px, 5px);}
.hamburger.active span:nth-child(2) {opacity: 0;}
.hamburger.active span:nth-child(3) {transform: rotate(-45deg) translate(7px, -6px);}

.overlay {
position: fixed;
top: 70px;
left: 0;
width: 100%;
height: calc(100% - 70px);
background: rgba(0, 0, 0, 0.5);
opacity: 0;
visibility: hidden;
transition: all 0.4s ease;
z-index: 999;
}

.overlay.active {opacity: 1;visibility: visible;}
.carousel-content h2 {font-size: 2.2rem;}
.carousel-content p {font-size: 1.3rem;}
.carousel-arrow {width: 40px;height: 40px;font-size: 1.2rem;}
}

/* 手机端特定样式 */
@media (max-width: 768px) {
.carousel {
height: 300px !important;
}

.carousel-content {
padding: 15px;
margin: 0 10px;
max-width: 90%;
/* background: rgba(0, 0, 0, 0.6); */
}

.carousel-content h2 {
font-size: 1.5rem !important;
margin-bottom: 10px;
line-height: 1.3;
}

.carousel-content p {font-size: 0.9rem !important;margin-bottom: 15px;line-height: 1.4;}

.btn {padding: 8px 16px;font-size: 0.8rem;}
.carousel-arrows {padding: 0 15px;}
.carousel-arrow {width: 35px;height: 35px;font-size: 1rem;}
.carousel-controls {bottom: 15px;}
.carousel-control {width:0px;height: 10px;}

/* 移动端单独图片处理 */
.carousel-item {background-position: center 30%;}
.carousel-item.mobile-img-1 {background-image: url('../images/m01.jpg') !important;}
.carousel-item.mobile-img-2 {background-image: url('../images/m02.jpg') !important;}
.carousel-item.mobile-img-3 {background-image: url('../images/m03.jpg') !important;}{background-image: url('../images/m03.jpg') !important;}
}

@media (max-width: 576px) {.nav-content {padding: 0 15px;}
.logo {height: 50px;}
.carousel-content h2 {font-size: 1.6rem !important;}
.carousel-content p {font-size: 1rem !important;}
}

/* 动画效果 */
@keyframes fadeInUp
{
from {opacity: 0;transform: translateY(30px);}
to {opacity: 1;transform: translateY(0);}
}

/* 页脚 */
footer {
background: linear-gradient(135deg, var(--primary), #3a8861);
color:#ccc;
padding:40px 0 30px;
position: relative;
}
footer::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 5px;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}
.footer-container {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 20px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.footer-col {
flex: 1;
min-width: 250px;
margin-bottom: 30px;
}
.footer-col h3 {
position: relative;
margin-bottom: 25px;
padding-bottom: 10px;
}
.footer-col h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 2px;
background-color: var(--primary-color);
}

.footer-title {
font-size: 1.3rem;
margin-bottom: 25px;
position: relative;
padding-bottom: 10px;
}
.footer-title::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 2px;
background: var(--accent-color);
}
.footer-links {list-style: none;}
.footer-links li {margin-bottom: 12px;}
.footer-links a {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
transition: all 0.3s ease;
}

/* Banner容器 - 已修改为响应式 */
.banner-container {
width: 100%;
height: 500px;
background: linear-gradient(to bottom, rgba(26, 94, 52, 0.1), rgba(15, 56, 30, 0.1));
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: #fff;
position: relative;
padding:20px; /* 确保顶部没有多余空间 */
transition: height 0.3s ease;
}
 /* 背景图片容器 */
.hero-image-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
overflow: hidden;
}

.hero-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.banner-container:hover .hero-image {
transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
.banner-container {height: 400px;background-attachment: scroll;}
}

@media (max-width: 576px) {
.banner-container {height: 350px;}
}

/* Banner内容 */
.banner-content {
max-width:1000px;
padding: 0 30px;
z-index: 10;
animation: fadeInUp 1s ease-out;
}

.banner-title {
font-size: 2.6rem;
font-weight: 600;
margin-bottom: 1.2rem;
letter-spacing: 3px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
line-height: 1.2;
}

.underline {
width: 60px;
height: 3px;
background-color: #fff;
margin: 1.8rem auto;
border-radius: 5px;
animation: expandLine 1.2s ease-out;
}

.banner-subtitle {
font-size: 1.2rem;
font-weight: 300;
line-height: 1.6;
margin-top: 2rem;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
max-width: 100%;
margin-left: auto;
margin-right: auto;
}

/* 装饰元素 */
.banner-decoration {
position: absolute;
border: 4px solid rgba(255, 255, 255, 0.12);
border-radius: 50%;
animation: float 12s infinite ease-in-out;
}

/* .decoration-1 {
width: 220px;
height: 220px;
top: -110px;
left: -110px;
animation-delay: 0s;
} */

.decoration-2 {
width: 160px;
height: 160px;
bottom: -60px;
right: 60px;
animation-delay: 1.5s;
}

.decoration-3 {
width: 100px;
height: 100px;
bottom: 80px;
left: 80px;
animation-delay: 2.5s;
}

/* 响应式设计 */
@media (max-width: 992px) {
.banner-title {
font-size: 2.8rem;
}
}

@media (max-width: 768px) {
.banner-container {height:220px;}
.banner-title {font-size: 2.4rem;margin-bottom: 0.8rem;}
.banner-subtitle {font-size: 1.1rem;margin-top: 1.6rem;line-height: 1.5;}
.underline {margin: 1.5rem auto;}
}

@media (max-width: 480px) {
.banner-title {font-size: 2.1rem;}
.banner-subtitle {font-size: 1.0rem;}
.banner-content {padding: 0 20px;}
}

/* 动画效果 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes expandLine {from {width: 0;}
to {width: 100px;}
}

@keyframes float {0%, 100% {
transform: translateY(0) translateX(0);
}
25% {
transform: translateY(-20px) translateX(15px);
}
50% {
transform: translateY(10px) translateX(-15px);
}
75% {
transform: translateY(-10px) translateX(10px);
}
}