/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
}

/* 页面头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: white;
    padding: 15px 30px;
}
.logo{
    display: flex;
}

.logo img  {
    height: 50px; /* 根据实际 logo 尺寸调整 */
}
.logo span {
    height: 50px; /* 根据实际 logo 尺寸调整 */
    line-height: 50px;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 30px;
}

nav ul li {
    font-size: 18px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ccc;
}

/* 页面主体内容区域通用样式 */
main {
    padding: 30px;
}

.section-title {
    font-size: 32px;
    margin-top: 10px;
    margin-bottom: 20px;
    /* text-align: center; */
    color: #333;
}

/* 计算机与 AI 资讯分类展示区样式 */
.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

article {
    flex-basis: calc(48% - 10px); /* 两列布局，自适应宽度并留间距 */
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

article h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 14px;
    margin-bottom: 5px;
    color: #999;
}

.news-summary {
    font-size: 16px;
    margin-bottom: 15px;
}

.read-more-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #0056b3;
}

/* 计算机与 AI 学习资源区样式 */
.learning-resources-container ul {
    list-style-type: none;
    padding-left: 0;
}

.learning-resources-container ul li {
    font-size: 16px;
    margin-bottom: 15px;
}

.learning-resources-container ul li a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.learning-resources-container ul li a:hover {
    color: #0056b3;
}

/* 计算机与 AI 研究动态区样式 */
.research-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* 计算机与 AI 相关社区链接区样式 */
.community-container ul {
    list-style-type: none;
    padding-left: 0;
}

.community-container ul li {
    font-size: 16px;
    margin-bottom: 15px;
}

.community-container ul li a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.community-container ul li a:hover {
    color: #0056b3;
}

/* 页面底部样式 */
footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 20px;
}

footer p {
    font-size: 14px;
    margin-bottom: 10px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ccc;
}