/* 孟菲斯风格卡其色主题 */
:root {
    --primary: #C3B091; /* 主卡其色 */
    --secondary: #9C8B68; /* 深卡其 */
    --accent: #E6D5B8; /* 浅卡其 */
    --black: #2A2A2A;
    --pattern-color: rgba(195, 176, 145, 0.3);
    --memphis-blue: #6CD4FF;
    --memphis-pink: #FF9EB7;
    --memphis-yellow: #FFD166;
}

@keyframes memphis-bg {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

body {
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', sans-serif;
    background-color: var(--accent);
    color: var(--black);
    line-height: 1.6;
    background-image: 
        linear-gradient(var(--pattern-color) 2px, transparent 2px),
        linear-gradient(90deg, var(--pattern-color) 2px, transparent 2px),
        linear-gradient(var(--pattern-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--pattern-color) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 10px 10px, 10px 10px;
    animation: memphis-bg 10s linear infinite;
}

/* 孟菲斯风格头部 */
header {
    background: white;
    padding: 20px 0;
    border-bottom: 8px solid var(--memphis-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 8px 8px 0 var(--memphis-pink);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--black);
    position: relative;
    padding: 0 10px;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--memphis-yellow);
    z-index: -1;
    transform: rotate(-2deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    padding: 8px 15px;
    background: white;
    color: var(--black);
    border: 3px solid var(--black);
    font-weight: bold;
    transition: all 0.3s;
    display: block;
}

nav ul li a:hover {
    background: var(--memphis-pink);
    transform: rotate(5deg) scale(1.1);
    box-shadow: 5px 5px 0 var(--memphis-blue);
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-content {
    background: white;
    padding: 30px;
    margin-bottom: 40px;
    border: 8px solid var(--black);
    position: relative;
}

.main-content::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background: var(--memphis-yellow);
    z-index: -1;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--memphis-blue);
    z-index: -1;
    transform: rotate(-1deg);
}

/* 孟菲斯风格文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border: 5px solid var(--black);
    padding: 0;
    transition: all 0.3s;
    position: relative;
}

.article-card:hover {
    transform: rotate(3deg) scale(1.03);
    box-shadow: 10px 10px 0 var(--memphis-pink);
}

.article-card:nth-child(even):hover {
    transform: rotate(-3deg) scale(1.03);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 5px solid var(--black);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--black);
    font-weight: bold;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: var(--secondary);
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--memphis-yellow);
    color: var(--black);
    font-weight: bold;
    border: 2px solid var(--black);
    margin-bottom: 15px;
    transform: rotate(-2deg);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--black);
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--memphis-pink);
    z-index: -1;
    transform: rotate(-1deg);
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 16px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border: 8px solid var(--black);
    margin-bottom: 30px;
    box-shadow: 10px 10px 0 var(--memphis-yellow);
}

.article-content {
    font-size: 18px;
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 20px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 10px 20px;
    background: white;
    color: var(--black);
    border: 3px solid var(--black);
    font-weight: bold;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--memphis-blue);
    transform: rotate(5deg);
}

/* 孟菲斯风格友情链接 */
.friend-links {
    background: white;
    padding: 30px;
    margin: 40px 0;
    border: 8px solid var(--black);
    position: relative;
}

.friend-links::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--memphis-pink);
    z-index: -1;
}

.friend-links h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--black);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 15px;
    background: white;
    color: var(--black);
    border: 3px solid var(--black);
    font-weight: bold;
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background: var(--memphis-yellow);
    transform: scale(1.1);
}

/* 页脚样式 */
footer {
    background: var(--black);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 15px solid var(--memphis-blue);
}

.copyright {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}