/* 喜庆欢乐风格 - 马卡龙粉主题 */
:root {
    --primary-color: #FF9AA2; /* 马卡龙粉 */
    --secondary-color: #FFB7B2; /* 辅助粉 */
    --accent-color: #FFDAC1; /* 奶油橙 */
    --dark-color: #E2F0CB; /* 薄荷绿 */
    --light-color: #B5EAD7; /* 浅水绿 */
    --text-color: #5E5343; /* 深棕文字 */
    --shadow: 0 4px 12px rgba(255, 154, 162, 0.3);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Marker Felt', 'Arial Rounded MT Bold', sans-serif;
}

body {
    background-color: #FFF5F5;
    color: var(--text-color);
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 186, 194, 0.1) 0%, rgba(255, 255, 255, 0.1) 90%);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

a:hover {
    color: #FF6B6B;
    transform: scale(1.05);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 欢乐风格头部 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 25px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 10px 20px;
    background-color: white;
    border-radius: 50px;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

nav ul li a:hover {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 气球装饰元素 */
.decoration-balloon {
    position: absolute;
    width: 60px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

/* 主要内容区域 */
.main-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed var(--primary-color);
    border-radius: calc(var(--border-radius) + 10px);
    pointer-events: none;
    opacity: 0.3;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* 糖果风格文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(255, 154, 162, 0.2);
    border: 2px solid var(--light-color);
}

.article-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(255, 154, 162, 0.4);
}

.card-image-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .card-image {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    background: linear-gradient(to bottom, white, #FFF9F9);
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-weight: bold;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 5px solid white;
    outline: 2px dashed var(--primary-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-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 糖果风格分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* 友情链接糖果风格 */
.friend-links {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-links-container a {
    padding: 10px 20px;
    background: linear-gradient(to right, var(--light-color), var(--dark-color));
    border-radius: 50px;
    color: var(--text-color);
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.05);
}

/* 页脚糖果风格 */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, white 10px, white 20px);
}

.copyright {
    font-size: 16px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}