/* 插画风格香槟色调主题 */
:root {
    --champagne: #f7e7ce;
    --champagne-dark: #e5d4b9;
    --champagne-light: #fff4e4;
    --accent: #d4a373;
    --accent-dark: #b38a62;
    --text: #5a4a42;
    --text-light: #8b7d76;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Neue', 'Marker Felt', 'Segoe UI', cursive, sans-serif;
}

body {
    background-color: var(--champagne-light);
    color: var(--text);
    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,50 Q50,30 70,50 T90,50" fill="none" stroke="%23e5d4b9" stroke-width="0.5" opacity="0.3"/></svg>');
}

a {
    text-decoration: none;
    color: var(--accent-dark);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 手绘风格头部 */
header {
    background-color: var(--champagne);
    padding: 20px 0;
    border-bottom: 3px dashed var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    text-shadow: 2px 2px 0 var(--champagne-dark), 
                 4px 4px 0 rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    background-color: var(--champagne-dark);
    box-shadow: 3px 3px 0 var(--accent);
    border: 2px solid var(--accent);
}

nav ul li a:hover {
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 var(--accent-dark);
}

/* 插画风格主要内容 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    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="M20,20 Q50,0 80,20 T80,80 Q50,100 20,80 T20,20" fill="%23f7e7ce" opacity="0.5"/></svg>');
    background-repeat: no-repeat;
    z-index: 0;
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--accent);
    color: var(--accent-dark);
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: "✏️";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 手绘卡片风格 */
.illustration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.illustration-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    box-shadow: 5px 5px 0 var(--champagne-dark);
    position: relative;
}

.illustration-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 8px 8px 0 var(--accent);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 2;
}

.card-image-container {
    height: 180px;
    overflow: hidden;
    border-bottom: 2px dashed var(--accent);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.illustration-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 15px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 文章详情页 */
.article-illustration {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--accent-dark);
    line-height: 1.3;
    text-shadow: 2px 2px 0 var(--champagne-dark);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 2px solid var(--accent);
}

/* 手绘风格分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--champagne);
    border: 2px solid var(--accent);
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 3px 3px 0 var(--champagne-dark);
}

.pagination a:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 var(--accent-dark);
}

/* 手绘风格友情链接 */
.friend-links {
    background-color: white;
    padding: 25px;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px dashed var(--accent);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--accent-dark);
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-links h3::before {
    content: "🔗";
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--champagne);
    border-radius: 20px;
    font-size: 14px;
    border: 2px solid var(--accent);
    transition: all 0.3s;
    box-shadow: 3px 3px 0 var(--champagne-dark);
}

.friend-links-container a:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 var(--accent-dark);
}

/* 手绘风格页脚 */
footer {
    background-color: var(--champagne);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px dashed var(--accent);
}

.copyright {
    font-size: 14px;
    color: var(--text);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .illustration-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 10px;
    }
}