/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: #fff;
    overflow-x: hidden;
}


 /* Banner 区域 */
 .banner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-img-wrap {
    display: flex;
    width: 400%; /* 4张图片，每张100%宽度 */
    height: 100%;
    transition: transform 0.5s ease; /* 添加过渡效果 */
}

.banner-img {
    width: 25%; /* 每张图片占容器宽度的25% */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.banner-img-wrap.active > .banner-img {
  transition: all .5s;
}

.banner-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

/* 顶部导航基础样式（所有设备通用） */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    /* Flex 布局：让子元素自动分配空间 */
    display: flex;
    /* 垂直方向居中 */
    align-items: center;
    /* 两端对齐，留出空白 */
    justify-content: space-around;
    padding: 0 20px;
    /* 允许换行 */
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* LOGO 样式 */
.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    /* 上下内边距，左右不设置（避免挤压） */
    padding: 15px 0;
    margin-left: 45px;
}

/* 导航菜单基础样式 */
.nav-menu {
    display: flex;
    /* 允许换行 */
    flex-wrap: wrap;
    /* 让菜单项在空间不足时自动换行 */
    gap: 10px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 12px 10px; /* 减小内边距，适配小屏幕 */
    transition: background-color 0.3s ease;
    /* 让文字换行时更美观 */
    white-space: nowrap;
    font-size: 16px;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-menu a.active {
    border-bottom: 2px solid #fff;
}

/* 电话区域基础样式 */
.phone-area {
    color: #fff;
    display: flex;
    align-items: center;
    /* 允许换行 */
    flex-wrap: wrap;
    gap: 5px; /* 图标和文字间距 */
}

.phone-txt {
    /* 让文字换行时更美观 */
    white-space: nowrap;
}

.phone-area img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

@media (max-width: 1024px) {
    .nav-menu a {
        padding: 10px 8px;
        font-size: 14px;
     }
    .logo {
        font-size: 20px;
    }
    .phone-txt {
        font-size: 14px;
    }
}
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-between;
        margin: 10px 0;
    }

    .nav-menu a {
        padding: 8px 6px;
        font-size: 12px;
    }

    .phone-area {

        width: 100%;
        justify-content: flex-end;
    }

    .logo {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-menu a {
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px;
    }
}


.indicator-dot {
    width: 12px;
    height: 4px;
    border-radius: 2px;
    background-color: #ccc;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.indicator-dot.active {
    width: 24px;
    background-color: #fff;
}

/* 内容容器 */
.content-wrap {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    min-height: 300px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}/* 底部信息栏样式 */
.footer-section {
    background-color: #486C8C;
    color: #fff;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* text-align: center; */
}

.footer-col {
    flex: 1;
    width: 284px;
    /* margin-left: -92px; */
}
.footer-cols{
    margin-left: -170px;
}
.footer-colss{
    margin-left: 50px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-col p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.qrcode-group {
    display: flex;
    gap: 20px;
}

.qrcode-item img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
}

.qrcode-item p {
    text-align: center;
    margin-top: 6px;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #ccc;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .enter-youran {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .enter-youran-left {
        transform: none;
        margin-bottom: 20px;
    }

    .enter-youran-right {
        margin-left: 0;
        padding-left: 5%;
    }

    .stats-module {
        flex-direction: column;
        align-items: center;
    }

    .stats-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .nav-menu a {
        padding: 15px 10px;
    }

    .agri-cards {
        grid-template-columns: 1fr;
    }
}
