/* 复古浆果红主题 */
:root {
    --primary: #8e0e41;
    --secondary: #ff6b8b;
    --dark: #2a0a14;
    --light: #fff0f5;
    --accent: #ff8fab;
    --vintage: #f8d7da;
    --text: #3d0a1a;
    --shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    --retro-font: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--retro-font);
    background-color: var(--vintage);
    color: var(--text);
    line-height: 1.6;
    background-image: 
        linear-gradient(to right, var(--vintage) 50%, transparent 50%),
        linear-gradient(to right, var(--vintage) 50%, transparent 50%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 复古风格头部 */
header {
    background-color: var(--primary);
    padding: 20px 0;
    border-bottom: 5px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--light);
    text-shadow: 3px 3px 0 var(--dark);
    letter-spacing: 2px;
    font-family: 'Times New Roman', Times, serif;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--light);
    padding: 8px 15px;
    border: 2px solid var(--light);
    font-weight: bold;
}

nav ul li a:hover {
    background-color: var(--light);
    color: var(--primary);
    text-decoration: none;
}

/* 主要内容区域 - 复古卡片 */
.main-content {
    background-color: var(--light);
    padding: 30px;
    margin: 30px 0;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed var(--secondary);
    pointer-events: none;
    z-index: -1;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* 复古网格布局 */
.retro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.retro-card {
    background-color: white;
    border: 3px solid var(--primary);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.retro-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 8px 8px 0 var(--secondary);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary);
    margin-top: 15px;
    border-top: 1px dashed var(--secondary);
    padding-top: 10px;
}

/* 分类标签 */
.category-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 3px 3px 0 var(--dark);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 3px double var(--primary);
    padding-bottom: 20px;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text);
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin: 30px 0;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
    border: 2px solid var(--primary);
}

/* 复古分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    border: 2px solid var(--dark);
    box-shadow: 3px 3px 0 var(--dark);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--secondary);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--dark);
    text-decoration: none;
}

/* 友情链接 */
.friend-links {
    background-color: white;
    padding: 25px;
    margin: 30px 0;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 22px;
    text-transform: uppercase;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    border: 2px solid var(--dark);
    box-shadow: 3px 3px 0 var(--dark);
}

.friend-links-container a:hover {
    background-color: var(--secondary);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--dark);
}

/* 页脚样式 */
footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 5px solid var(--secondary);
    font-family: 'Times New Roman', Times, serif;
}

.copyright {
    font-size: 16px;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .retro-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 10px;
    }
}