/* 插画风格 - 马卡龙粉色系主题 */
:root {
    --primary: #FFB7C5; /* 马卡龙粉 */
    --secondary: #FFD3B6; /* 辅助色 */
    --accent: #A2E1DB; /* 点缀色 */
    --dark: #4A4A4A;
    --light: #FFF9FB;
    --text: #5E5E5E;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Neue', 'Segoe UI', cursive, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 20%);
}

/* 手绘风格边框 */
.border-illustration {
    position: relative;
}

.border-illustration::before {
    content: "";
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 2px dashed var(--primary);
    border-radius: 15px;
    z-index: -1;
}

/* 头部样式 */
header {
    background-color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
    background-color: var(--secondary);
    color: var(--dark);
}

.nav-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* 主要内容区 */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* 插画风格卡片 */
.illustration-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.illustration-card:hover {
    transform: rotate(-1deg) scale(1.02);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* 文章网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.article-excerpt {
    color: var(--text);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

/* 文章详情页 */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title-large {
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta-large {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
}

.article-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

.article-body {
    line-height: 1.8;
    font-size: 18px;
}

.article-body p {
    margin-bottom: 20px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background-color: var(--secondary);
    color: var(--dark);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--primary);
    color: white;
}

/* 友情链接 */
.friend-links {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.friend-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.friend-links-grid a {
    padding: 10px;
    background-color: var(--light);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
}

.friend-links-grid a:hover {
    background-color: var(--primary);
    color: white;
}

/* 页脚 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    font-size: 16px;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title-large {
        font-size: 32px;
    }
    
    .friend-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}