/* 拼贴艺术风格 - 莓果红主题 */
:root {
    --berry-red: #9E0B41;
    --berry-light: #D44D5C;
    --berry-dark: #5C0029;
    --cream: #F7EDE8;
    --accent-yellow: #F9C846;
    --accent-green: #5B8C5A;
    --shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Neue', cursive, sans-serif;
}

body {
    background-color: var(--cream);
    color: #333;
    line-height: 1.6;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,10 Q50,5 70,30 T90,70 Q95,50 70,30 T10,30 Q5,50 30,70 T30,10" fill="none" stroke="%23D44D5C" stroke-width="0.5" opacity="0.2"/></svg>');
}

a {
    text-decoration: none;
    color: var(--berry-dark);
    transition: all 0.3s;
}

a:hover {
    color: var(--berry-red);
    text-decoration: underline;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 拼贴艺术风格头部 */
header {
    background-color: var(--berry-red);
    padding: 20px 0;
    margin: 20px 0;
    border-radius: 0 30px 0 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100px;
    height: 100px;
    background-color: var(--accent-yellow);
    transform: rotate(45deg);
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 0 var(--berry-dark);
    transform: rotate(-3deg);
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 15px;
}

nav ul li a {
    background-color: var(--cream);
    padding: 8px 15px;
    border-radius: 15px 0 15px 0;
    font-weight: bold;
    box-shadow: 2px 2px 0 var(--berry-dark);
}

nav ul li a:hover {
    background-color: var(--accent-yellow);
    text-decoration: none;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--berry-dark);
}

/* 拼贴内容区域 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border: 3px solid var(--berry-dark);
    border-radius: 20px 0 20px 0;
    box-shadow: var(--shadow);
    position: relative;
}

.main-content::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-green);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--berry-red);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-yellow);
    transform: skewX(-15deg);
}

/* 拼贴风格文章网格 */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.collage-item {
    background-color: white;
    border: 2px solid var(--berry-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    box-shadow: var(--shadow);
}

.collage-item:nth-child(odd) {
    transform: rotate(2deg);
}

.collage-item:nth-child(even) {
    transform: rotate(-1deg);
}

.collage-item:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 6px 6px 0 var(--berry-dark);
    z-index: 2;
}

.collage-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px dashed var(--berry-light);
}

.collage-info {
    padding: 20px;
}

.collage-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--berry-dark);
}

.collage-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--berry-light);
    margin-top: 15px;
}

.category-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-yellow);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 2px 2px 0 var(--berry-dark);
}

/* 文章详情页样式 */
.article-collage {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border: 3px solid var(--berry-dark);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.article-collage::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-green);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--berry-red);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--berry-light);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 3px solid var(--berry-dark);
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
    padding: 0 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px dashed var(--berry-light);
}

/* 拼贴风格分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 15px 0 15px 0;
    background-color: var(--berry-light);
    color: white;
    font-weight: bold;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--berry-dark);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
}

/* 手绘风格友情链接 */
.friend-links {
    background-color: white;
    padding: 25px;
    margin: 30px 0;
    border: 3px dashed var(--berry-light);
    border-radius: 0 20px 0 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.friend-links::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-yellow);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--berry-red);
    font-size: 24px;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--cream);
    border-radius: 15px;
    font-weight: bold;
    box-shadow: 2px 2px 0 var(--berry-dark);
    border: 1px solid var(--berry-light);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--berry-light);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--berry-dark);
}

/* 手绘风格页脚 */
footer {
    background-color: var(--berry-dark);
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
    border-radius: 30px 0 30px 0;
    box-shadow: var(--shadow);
    color: white;
}

.copyright {
    font-size: 16px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .collage-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 10px;
    }
}