/* Header 样式 */

/* 顶部联系栏 */
.top-bar {
    background: var(--white);
    color: var(--dark);
    padding: 10px 0;
    font-size: 14px;
}

.top-contacts {
    gap: 30px;
}

.top-contacts span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 导航栏 */
.header {
    background: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-nav {
    padding: 10px 0;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-menu {
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
    padding: 10px 0;
}

.nav-menu .dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--heading-color);
    text-transform: none;
}

.nav-menu .submenu a:hover {
    background: var(--light-bg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
}

/* hero banner */
.hero-article {
    position: relative;
    min-height: 420px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
}

.hero-article .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-article .hero-title {
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hero-article .hero-sub {
    color: #fff;
    max-width: 820px;
    margin: 0 auto;
    opacity: .95;
}

.hero-article .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, .25));
    z-index: 1;
}


/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-article {
        min-height: 340px;
    }


}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hero-article {
        min-height: 280px;
    }

    .hero-article .hero-title {
        font-size: 32px;
    }
}

/* 分页 */
.pagination {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.pagination li {
    background-color: #f5f7fa;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all .3s;

}

.pagination .active {
    background: var(--primary-color);
    color: #fff;
}