/* 引入远程Tailwind CSS确保样式生效（若本地样式缺失时补充） */
@import url('https://cdn.tailwindcss.com');

/* 新导航栏样式 - 确保文字不换行 */
.all-nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: all 0.3s ease;
    background-color: transparent;
}

.all-nav.scrolled {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.agric-nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo img {
    height: 40px;
    transition: all 0.3s ease;
    margin-top: -50px;
    margin-left: -10px !important;
}

.all-nav.scrolled .nav-logo img {
    height: 36px;
}

.nav-button {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

.ipmor-nav ul {
    display: flex;
    list-style: none;
    margin-top: 10px;
    padding: 0;
    white-space: nowrap; /* 防止整个导航栏换行 */
}

.ipmor-nav li {
    margin: 0 1rem; /* 调整间距，减少左右边距防止换行 */
    position: relative;
}

.ipmor-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap; /* 确保链接文字不换行 */
}

.all-nav.scrolled .ipmor-nav a {
    color: #333;
}

.ipmor-nav a span {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 3px;
    letter-spacing: 0.5px;
    white-space: nowrap; /* 确保英文说明不换行 */
}

.ipmor-nav li.active a,
.ipmor-nav a:hover {
    color: white;
}

.all-nav.scrolled .ipmor-nav li.active a,
.all-nav.scrolled .ipmor-nav a:hover {
    color: #165DFF;
}

.ipmor-nav li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #165DFF;
    border-radius: 1px;
}

/* 响应式设计 - 确保在各种屏幕尺寸下不换行 */
@media (max-width: 1200px) {
    .ipmor-nav li {
        margin: 0 0.8rem; /* 进一步减小间距 */
    }
    .ipmor-nav a {
        font-size: 14px; /* 适当缩小字体 */
    }
}

@media (max-width: 992px) {
    .nav-button {
        display: block;
        z-index: 1000;
    }

    .ipmor-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .ipmor-nav.active {
        transform: translateX(0);
    }

    .ipmor-nav ul {
        flex-direction: column;
        padding: 80px 20px 20px;
    }

    .ipmor-nav li {
        margin: 0 0 1.5rem 0;
    }

    .ipmor-nav a {
        color: #333;
        align-items: flex-start;
    }

    .ipmor-nav li.active a,
    .ipmor-nav a:hover {
        color: #165DFF;
    }
}

/* 确保极小屏幕下导航不溢出 */
@media (max-width: 768px) {
    .agric-nav {
        padding: 0 15px;
    }
    .nav-logo img {
        height: 36px;
    }
}
.footer-rwm p{
    width: 47%;
}

