:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #64b5f6;
    --secondary-color: #2962ff;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --gray-bg: #f5f7fa;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--gray-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.nav-container {
    /* background: linear-gradient(135deg, rgb(0 118 236) 0%, rgba(172, 172, 172, 0.7) 100%); */
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.logo img {
    height: 45px;
    margin-right: 10px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    height: 100%;
    gap: 40px;
}

.nav-item {
    position: relative;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: #0066cc;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #00aaff);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dropdown-item {
    padding: 12px 20px;
    transition: all 0.3s;
}

.dropdown-link {
    text-decoration: none;
    color: #555;
    display: block;
    transition: all 0.3s;
    font-size: 14px;
}

/* 新闻内容区样式 */
.news-section {
    padding: 120px 0 60px;
}

.section-title {
    text-align: left;
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 50px;
    background-color: var(--primary-color);
}

.section-title::after {
    display: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: 105px;
    /* 14px * 1.5 * 5行 = 105px */
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-light);
    color: var(--white);
}

.pagination a.active {
    background: var(--primary-color);
    color: var(--white);
}

.pagination .next {
    padding: 0 20px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}