/* =========================================
           1. 基础视觉系统 (Design System)
           ========================================= */
:root {
    --primary-green: #3D7D56; /* 艾草绿 */
    --primary-blue: #1A3A59; /* 深海蓝 */
    --accent-gold: #D4AF37; /* 金色点缀 */
    --text-light: #F5F5F5;
    --text-dark: #333333;
    --bg-light: #FAFAFA;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

/* =========================================
   2. 导航栏 (Navigation)
   ========================================= */
header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 0;
    font-size: 0.75rem;
    text-align: center;
    letter-spacing: 1px;
}

.nav-container {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    line-height: 1;
    z-index: 1001;
}

.logo span {
    font-size: 1rem;
    color: var(--primary-green);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

.nav-menu {
    display: flex;
    height: 100%;
    gap: 0;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    padding: 0 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.arrow-icon {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1100;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    margin-left: 10px;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-blue);
}

.nav-item.current > .nav-link {
    color: var(--primary-green);
    font-weight: bold;
    position: relative;
}

.nav-item.current > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--primary-green);
}

.dropdown li a.current {
    color: var(--primary-green);
    font-weight: bold;
    background-color: rgba(61, 125, 86, 0.05);
}

/* --- 响应式导航 --- */
@media screen and (min-width: 769px) {
    .nav-item.current > .nav-link {
        color: var(--primary-green);
        font-weight: bold;
        background: rgba(0, 0, 0, 0.15) !important;
    }

    .dropdown li a.current {
        color: var(--primary-green);
        font-weight: bold;
        background-color: rgba(61, 125, 86, 0.1);
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-green);
    }

    .dropdown {
        position: absolute;
        top: 70px;
        left: 0;
        background: white;
        min-width: 200px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-top: 3px solid var(--primary-green);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: 0.3s;
        border-radius: 0 0 4px 4px;
        z-index: 1002;
    }

    .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown li a {
        display: block;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid #eee;
        color: #333;
    }

    .dropdown li a:hover {
        background-color: #f9f9f9;
        color: var(--primary-green);
        padding-left: 25px;
    }
}

@media screen and (max-width: 768px) {
    .top-bar, .btn-outline {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: #1A3A59;
        flex-direction: column;
        padding-top: 80px;
        transition: 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1050;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        height: auto;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link {
        width: 100%;
        padding: 18px 25px;
        font-size: 1rem;
        color: #eee;
        background-color: transparent !important;
    }

    .nav-item.mobile-active > .nav-link {
        color: var(--primary-green);
        background: rgba(0, 0, 0, 0.2) !important;
    }

    .nav-item.mobile-active .arrow-icon {
        transform: rotate(180deg);
    }

    .dropdown {
        display: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 0;
        margin: 0;
    }

    .nav-item.mobile-active .dropdown {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    .dropdown li a {
        color: #ccc;
        padding: 15px 15px 15px 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
        font-size: 1rem;
        display: block;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   4. 底部通栏 (Footer)
   ========================================= */
footer {
    background-color: #111215;
    color: #888;
    padding: 80px 20px 30px;
    text-align: center;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-weight: bold;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
}

.footer-col ul li:hover {
    color: var(--primary-green);
}

.partners-bar {
    border-top: 1px solid #222;
    padding-top: 40px;
    text-align: center;
}

.partner-logo {
    display: inline-block;
    margin: 0 15px;
    color: #555;
    font-weight: bold;
    font-size: 1rem;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 4px;
}
.nonelist{
    text-align: center;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 5px;
    flex-wrap: wrap;
}
.el-pagination{
    background: #fff;
}
.el-pagination button:hover:not(.active):not(:disabled) {
    background: #f5f5f5;
    color: var(--primary-green);
    border-color: var(--primary-green);
}
.el-pager li.active {
    --tw-text-opacity: 1;
    color: white;
    --tw-bg-opacity: 1;
    background-color: var(--primary-green);
}
.el-pager li:hover:not(.active):not(:disabled) {
    background: #f5f5f5;
    color: var(--primary-green);
    border-color: var(--primary-green);
}
.el-pager li {--tw-text-opacity: 1;color: #666;}

.btn-secondary {
    background-color: var(--primary-green);
    --tw-text-opacity: 1;
    color: white;
    border: 2px solid white;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s
    ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
#loadMoreArticles {
    display: none;
    margin: auto;
}
@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul li {
        justify-content: center;
    }
    #loadMoreArticles {
        display: block;
    }
    .pagination{
        display: none;
    }
}
.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    margin-left: 10px;
    background: transparent;
    cursor: pointer;
}
