/* 怀旧报纸风格主题 */
:root {
    --primary-color: #8b4513; /* 棕色 */
    --secondary-color: #5c4033;
    --paper-color: #f5f5dc; /* 米色 */
    --text-color: #333;
    --accent-color: #b22222; /* 砖红色 */
    --border-color: #d2b48c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    background-color: #e6d8b5;
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100h-100z" fill="none" stroke="%23d2b48c" stroke-width="0.5"/></svg>');
    background-size: 20px 20px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 报纸风格的头部 */
header {
    background-color: var(--paper-color);
    padding: 20px 0;
    border-bottom: 3px double var(--border-color);
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 42px;
    font-weight: bold;
    font-family: 'Old English Text MT', 'Times New Roman', serif;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.date-line {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-style: italic;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    padding: 5px 10px;
    border-bottom: 1px dotted var(--border-color);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover {
    border-bottom: 1px solid var(--accent-color);
    text-decoration: none;
}

/* 主要内容区域 - 报纸风格 */
.main-content {
    background-color: var(--paper-color);
    padding: 30px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color), var(--primary-color));
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
    font-family: 'Old English Text MT', 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100px;
    height: 1px;
    background-color: var(--border-color);
}

/* 复古文章列表 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-item {
    border: 1px solid var(--border-color);
    padding: 20px;
    background-color: rgba(255,255,255,0.7);
    position: relative;
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100h-100z" fill="none" stroke="%23d2b48c" stroke-width="0.3"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    filter: sepia(30%);
}

.article-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--secondary-color);
    margin-top: 15px;
    font-style: italic;
    border-top: 1px dotted var(--border-color);
    padding-top: 10px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255,255,255,0.7);
    padding: 30px;
    border: 1px solid var(--border-color);
    position: relative;
}

.article-detail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100h-100z" fill="none" stroke="%23d2b48c" stroke-width="0.3"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'Old English Text MT', 'Times New Roman', serif;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-style: italic;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    filter: sepia(30%);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    margin: 20px auto;
    display: block;
    filter: sepia(30%);
}

/* 分页导航 - 复古风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.7);
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 友情链接 - 复古风格 */
.friend-links {
    background-color: var(--paper-color);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
    position: relative;
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Old English Text MT', 'Times New Roman', serif;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 5px 10px;
    background-color: rgba(255,255,255,0.7);
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 页脚样式 - 复古报纸风格 */
footer {
    background-color: var(--paper-color);
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px double var(--border-color);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color), var(--primary-color));
}

.copyright {
    font-size: 14px;
    color: var(--secondary-color);
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 32px;
    }
    
    nav ul {
        gap: 10px;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}