/* 喜庆欢乐风格 - 马卡龙粉主题 */
:root {
    --primary-color: #ff9bb3; /* 马卡龙粉 */
    --secondary-color: #ff6b88;
    --accent-color: #ff4757;
    --dark-color: #333;
    --light-color: #fff8fa;
    --text-color: #5a3a3a;
    --shadow: 0 4px 12px rgba(255, 107, 136, 0.2);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 214, 221, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    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: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.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: 25px;
}

nav ul li a {
    color: white;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

nav ul li a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 主要内容区域 - 泡泡效果 */
.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: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    border-radius: 5px;
}

/* 欢乐卡片布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 136, 0.1);
    border: 2px solid var(--primary-color);
}

.article-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(255, 107, 136, 0.3);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px dashed var(--primary-color);
}

.card-body {
    padding: 20px;
    position: relative;
}

.card-body::before {
    content: '❤️';
    position: absolute;
    top: -15px;
    right: 15px;
    font-size: 24px;
    color: var(--accent-color);
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-header::before {
    content: '✨';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--accent-color);
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 5px solid white;
    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: var(--border-radius);
    margin: 20px 0;
    border: 3px solid var(--primary-color);
}

/* 分页导航 - 心形按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pagination a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.pagination a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    transition: transform 0.5s;
}

.pagination a:hover::after {
    transform: scale(1);
}

/* 友情链接 - 泡泡效果 */
.friend-links {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.friend-links::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--accent-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-color: var(--primary-color);
    border-radius: 50px;
    color: white;
    font-weight: bold;
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    color: white;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, transparent, white, transparent);
}

.copyright {
    font-size: 14px;
    font-weight: bold;
}

/* 响应式设计 */
@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-direction: column;
        align-items: center;
    }
    
    .pagination a {
        width: 80%;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.article-card:hover {
    animation: float 1.5s ease-in-out infinite;
}