body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 顶部导航栏 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    white-space: nowrap;
    margin-top:10px ;
}

.nav-menu li {
    margin-right: 30px;
}

.nav-menu a {
    color: #444;
    text-decoration: none;
    font-size: 16px;
}

.nav-menu a:hover {
    color: #406599;
}

/* 添加logo样式 */
.nav-logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
    display: flex;
}

/* 左侧主内容区 */
.main-content {
    flex: 1;
    margin-right: 20px;
}

/* 右侧边栏 */
.sidebar {
    width: 300px;
}

/* 文章列表样式 */
.blog-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
}

.blog-item:hover {
    background: #f9f9f9;
}

.blog-item-content {
    flex: 1;
    padding-right: 16px;
}

.blog-item h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    transition: color 0.3s ease;
}

.blog-item:hover h2 {
    color: #406599;
}

.blog-item .summary {
    color: #666;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 8px;
}

.blog-item .meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: #999;
}

.blog-item .author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-item .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-item .author {
    color: #406599;
}

.blog-item .date {
    color: #999;
}

.blog-item-image {
    width: 160px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧卡片样式 */
.sidebar-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #222;
}

/* 在顶部导航样式后面添加主图样式 */
.hero-banner {
    margin-top: 60px;
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-image {
    width: 100%;
    height: 600px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 确保文字在logo下方清晰可见 */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 100%;
    margin-top: 40px; /* 给logo留出空间 */
}

.hero-text h1 {
    font-size: 36px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 20px;
    margin: 10px 0 0;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


.nav-menu a.active {
    color: #406599;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: #406599;
}

.article-list {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.article-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-image {
    width: 200px;
    height: 150px;
    margin-right: 20px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.article-date {
    color: #666;
    font-size: 14px;
}

/* 最新资讯样式 */
.news-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-image {
    width: 80px;
    height: 60px;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: #999;
}

.news-item:hover h4 {
    color: #406599;
}

/* 底部版权信息样式 */
.footer {
    background: #000;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.copyright {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
}

.icp {
    color: #fff;
    font-size: 14px;
}

.icp a {
    color: #fff;
    text-decoration: none;
}

.icp a:hover {
    text-decoration: underline;
}
