:root {
    --primary-color: #1890ff;
    --bg-light: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --spacing-lg: 40px;
}

/* 新闻详情页样式 */
.news-detail-banner {
    height: 240px;
    background: var(--bg-blue-50);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.news-detail-title {
    text-align: center;
    padding: 0 20px;
}

.news-detail-title h1 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.news-detail-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    color: var(--text-primary);
    line-height: 1.8;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--bg-blue-100);
}

.news-detail-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.back-to-news:hover {
    background: rgba(24, 144, 255, 0.8);
    transform: translateY(-2px);
}

.back-to-news::before {
    content: '←';
    margin-right: 8px;
}

/* 导航菜单容器 */
.nav-container {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 50px;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1890ff;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: #1890ff;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .news-detail-banner {
        height: 180px;
    }

    .news-detail-title h1 {
        font-size: 24px;
    }

    .news-detail-content {
        padding: 0 16px var(--spacing-lg);
    }
}