/* 复古风格全局样式 */
:root {
    --primary-color: #3a5f8d; /* 青金石蓝 */
    --secondary-color: #8b6b3d; /* 青铜色 */
    --paper-color: #f5e8d0; /* 旧纸张色 */
    --text-color: #333;
    --accent-color: #a52a2a; /* 红褐色 */
    --vintage-pattern: 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="%23f5e8d0"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="%23d9c7a7" stroke-width="1"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Georgia, serif;
}

body {
    background-color: var(--paper-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: var(--vintage-pattern);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 复古报头样式 */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    border-bottom: 5px solid var(--secondary-color);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    font-family: 'Palatino', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.date-stamp {
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
    text-decoration: none;
}

/* 主要内容区域 - 复古卡片 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid var(--secondary-color);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed var(--secondary-color);
    pointer-events: none;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px double var(--secondary-color);
    color: var(--primary-color);
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 复古文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border: 1px solid var(--secondary-color);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--secondary-color);
}

.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 20px 20px 0;
    border-style: solid;
    border-color: var(--primary-color) var(--paper-color);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid var(--secondary-color);
    margin-bottom: 15px;
    filter: sepia(0.3) contrast(1.1);
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
    color: var(--primary-color);
}

.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: 2px 8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    margin-bottom: 10px;
    border-radius: 0;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border: 1px solid var(--secondary-color);
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed var(--secondary-color);
    pointer-events: none;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px double var(--secondary-color);
    padding-bottom: 20px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'Georgia', serif;
    text-transform: uppercase;
}

.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(--secondary-color);
    margin: 30px 0;
    filter: sepia(0.3) contrast(1.1);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--secondary-color);
    margin: 20px 0;
    filter: sepia(0.3) contrast(1.1);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 15px;
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
    font-family: 'Georgia', serif;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* 友情链接 */
.friend-links {
    background-color: white;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--secondary-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 5px 10px;
    border: 1px solid var(--secondary-color);
    font-size: 14px;
    color: var(--primary-color);
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-top: 5px solid var(--secondary-color);
    font-family: 'Georgia', serif;
}

.copyright {
    font-size: 14px;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-detail {
        padding: 20px;
    }
}