/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-bottom: 50px;
}

/* 头部样式 */
header {
    background-color: #1a365d;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.tagline {
    font-style: italic;
    opacity: 0.9;
}

nav {
    background-color: #2d3748;
    padding: 0.75rem 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

nav a:hover {
    color: #cbd5e0;
    border-bottom: 2px solid #cbd5e0;
}

/* 主内容区域 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

main {
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 侧边栏 */
aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-title {
    font-size: 1.25rem;
    border-bottom: 2px solid #1a365d;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

/* 文章样式 */
article {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

article:last-child {
    border-bottom: none;
}

.article-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1a365d;
}

.article-title a {
    color: #1a365d;
    text-decoration: none;
}

.article-title a:hover {
    text-decoration: underline;
}

.article-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-summary {
    margin-bottom: 1rem;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.read-more {
    color: #1a365d;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* 列表页样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.list-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.list-content {
    flex: 1;
}

/* 详情页样式 */
.detail-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a365d;
    line-height: 1.3;
}

.detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.detail-content p {
    margin-bottom: 1.5rem;
}

/* 分类列表 */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: #333;
    text-decoration: none;
}

.category-list a:hover {
    color: #1a365d;
    text-decoration: underline;
}

/* 页脚 */
/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: #3498db;
}

.card-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.9rem;
}

/* 页脚样式 */
footer {
    background-color: #1a365d;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #ddd;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
    color: #aaa;
}




/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .list-item {
        flex-direction: column;
    }

    .list-image {
        width: 100%;
        height: auto;
    }
}


