/* 怀旧复古风格全局样式 */
:root {
    --primary-color: #8b4513; /* 棕色 */
    --secondary-color: #d2691e; /* 巧克力色 */
    --accent-color: #cd853f; /* 秘鲁色 */
    --light-color: #f5deb3; /* 小麦色 */
    --dark-color: #654321; /* 深棕色 */
    --text-color: #333;
    --paper-color: #fffaf0; /* 亚麻色 */
    --old-paper: #f8f4e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    background-color: var(--paper-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(to bottom, 
        rgba(245, 222, 179, 0.8), 
        rgba(255, 250, 240, 0.8)), 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23d2691e" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 100px 100px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 复古报纸风格 */
header {
    background-color: var(--old-paper);
    padding: 20px 0;
    border-bottom: 3px double var(--primary-color);
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.3);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.logo::after {
    content: '';
    display: block;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--light-color));
    margin: 10px auto;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

nav ul li a {
    padding: 5px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    font-size: 16px;
    color: var(--dark-color);
    transition: all 0.3s;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
}

/* 主要内容区域 - 复古卡片 */
.main-content {
    background-color: var(--old-paper);
    padding: 30px;
    margin: 30px 0;
    border: 1px solid var(--primary-color);
    box-shadow: 5px 5px 15px rgba(139, 69, 19, 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));
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--primary-color);
    color: var(--dark-color);
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '◆';
    position: absolute;
    right: 0;
    bottom: -10px;
    color: var(--primary-color);
    font-size: 14px;
}

/* 文章列表样式 - 复古网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: var(--light-color);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 3px 3px 10px rgba(139, 69, 19, 0.2);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--primary-color);
    filter: sepia(30%);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--dark-color);
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--secondary-color);
    margin-top: 15px;
    font-style: italic;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 0;
    font-size: 12px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页样式 - 复古报纸 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--old-paper);
    padding: 40px;
    border: 1px solid var(--primary-color);
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed var(--primary-color);
    pointer-events: none;
    opacity: 0.3;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-color);
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    text-shadow: 1px 1px 1px rgba(139, 69, 19, 0.1);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-style: italic;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
    border: 1px solid var(--primary-color);
    filter: sepia(20%);
    box-shadow: 3px 3px 10px rgba(139, 69, 19, 0.2);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
    text-indent: 2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid var(--primary-color);
    padding: 5px;
    background-color: white;
}

.article-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--secondary-color);
}

/* 分页导航 - 复古按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 20px;
    background-color: var(--light-color);
    border: 1px solid var(--primary-color);
    color: var(--dark-color);
    transition: all 0.3s;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    position: relative;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.pagination a:hover::before {
    opacity: 0.3;
}

/* 友情链接 - 复古标签 */
.friend-links {
    background-color: var(--light-color);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--primary-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 20px;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.friend-links-container a {
    padding: 5px 15px;
    background-color: var(--old-paper);
    border: 1px solid var(--primary-color);
    color: var(--dark-color);
    font-size: 14px;
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: rotate(-2deg);
}

/* 页脚样式 - 复古印章效果 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    color: var(--light-color);
    position: relative;
    border-top: 3px double var(--primary-color);
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
    background-color: var(--dark-color);
    border: 3px double var(--primary-color);
    border-bottom: none;
    border-radius: 50% 50% 0 0;
}

.copyright {
    font-size: 14px;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 28px;
    }
    
    nav ul {
        gap: 8px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-detail {
        padding: 25px;
    }
    
    .article-content {
        font-size: 16px;
    }
}