/* 复古风格全局样式 */
:root {
    --primary-color: #ff7b25;
    --secondary-color: #ff9e4f;
    --dark-color: #2a2118;
    --light-color: #fff4e6;
    --accent-color: #ff5e00;
    --retro-pattern: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="50" height="50" x="0" y="0" fill="%23ff9e4f" opacity="0.2"/><rect width="50" height="50" x="50" y="50" fill="%23ff9e4f" opacity="0.2"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    background-image: var(--retro-pattern);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-weight: bold;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 复古风格头部 */
header {
    background-color: var(--dark-color);
    padding: 20px 0;
    border-bottom: 5px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Times New Roman', Times, serif;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0;
    font-size: 18px;
    border: 2px solid var(--primary-color);
}

nav ul li a:hover {
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
}

/* 主要内容区域 - 复古卡片 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border: 3px solid var(--dark-color);
    box-shadow: 8px 8px 0 var(--primary-color);
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px dashed var(--primary-color);
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Times New Roman', Times, serif;
}

/* 复古网格布局 */
.retro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.retro-card {
    background-color: white;
    border: 3px solid var(--dark-color);
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0 var(--secondary-color);
}

.retro-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0 var(--primary-color);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--dark-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--dark-color);
    font-family: 'Times New Roman', Times, serif;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--dark-color);
    margin-top: 15px;
    font-style: italic;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border: 3px solid var(--dark-color);
    box-shadow: 8px 8px 0 var(--primary-color);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 3px dashed var(--primary-color);
    padding-bottom: 30px;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-color);
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--dark-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-style: italic;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin: 30px 0;
    border: 3px solid var(--dark-color);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--dark-color);
    margin: 20px 0;
}

/* 复古分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border: 2px solid var(--dark-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
}

/* 复古友情链接 */
.friend-links {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border: 3px solid var(--dark-color);
    box-shadow: 8px 8px 0 var(--primary-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 24px;
    text-transform: uppercase;
    font-family: 'Times New Roman', Times, serif;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border: 2px solid var(--dark-color);
}

.friend-links-container a:hover {
    background-color: white;
    color: var(--primary-color);
}

/* 复古页脚样式 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 5px solid var(--primary-color);
}

.copyright {
    font-size: 16px;
    color: var(--light-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .retro-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
}