/* 插画风格橙色主题 */
:root {
    --primary-orange: #FF7B25;
    --secondary-orange: #FF9E53;
    --accent-blue: #25B0FF;
    --dark-color: #2B2B2B;
    --light-color: #FFF8F0;
    --illustration-shadow: 4px 4px 0 var(--dark-color);
    --hand-drawn-border: 2px dashed var(--dark-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Neue', cursive, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.1) 1px, transparent 0);
    background-size: 20px 20px;
}

a {
    text-decoration: none;
    color: var(--primary-orange);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-blue);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 手绘风格头部 */
header {
    background-color: var(--light-color);
    padding: 25px 0;
    border-bottom: var(--hand-drawn-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-orange);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    letter-spacing: 1px;
    font-family: 'Baloo 2', cursive;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 30px;
    background-color: white;
    border: 2px solid var(--primary-orange);
    font-weight: 600;
    box-shadow: var(--illustration-shadow);
}

nav ul li a:hover {
    background-color: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

/* 插画风格主要内容区域 */
.main-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--illustration-shadow);
    border: var(--hand-drawn-border);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-orange);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    opacity: 0.2;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px dotted var(--primary-orange);
    color: var(--primary-orange);
    font-family: 'Baloo 2', cursive;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '✏️';
    position: absolute;
    right: -40px;
    top: 0;
    font-size: 24px;
}

/* 气泡风格文章网格 */
.article-bubbles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-bubble {
    background-color: white;
    border-radius: 50% 50% 20px 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--illustration-shadow);
    border: var(--hand-drawn-border);
    position: relative;
}

.article-bubble:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 6px 6px 0 var(--dark-color);
}

.bubble-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: var(--hand-drawn-border);
}

.bubble-content {
    padding: 20px;
    text-align: center;
}

.bubble-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bubble-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: var(--primary-orange);
    margin-top: 15px;
    flex-wrap: wrap;
}

/* 分类标签 - 贴纸效果 */
.category-sticker {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 0 var(--dark-color);
    transform: rotate(-5deg);
    position: absolute;
    top: 15px;
    right: 15px;
}

/* 文章详情页 - 笔记本风格 */
.article-notebook {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    box-shadow: var(--illustration-shadow);
    border: var(--hand-drawn-border);
    position: relative;
}

.article-notebook::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-orange);
}

.notebook-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.notebook-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-orange);
    font-family: 'Baloo 2', cursive;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.notebook-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--dark-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-weight: 600;
}

.notebook-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    border: var(--hand-drawn-border);
    box-shadow: var(--illustration-shadow);
}

.notebook-content {
    line-height: 1.8;
    font-size: 18px;
}

.notebook-content p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.notebook-content p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-size: 24px;
    line-height: 1;
}

/* 分页导航 - 按钮风格 */
.pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination-buttons a {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: var(--primary-orange);
    color: white;
    font-weight: 700;
    box-shadow: var(--illustration-shadow);
    border: none;
    transition: all 0.3s ease;
}

.pagination-buttons a:hover {
    background-color: var(--accent-blue);
    transform: translateY(-3px);
}

/* 友情链接 - 徽章风格 */
.friend-badges {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--illustration-shadow);
    border: var(--hand-drawn-border);
}

.friend-badges h3 {
    margin-bottom: 20px;
    color: var(--primary-orange);
    font-size: 24px;
    text-align: center;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.badges-container a {
    padding: 8px 20px;
    background-color: var(--secondary-orange);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 2px 2px 0 var(--dark-color);
    transition: all 0.3s ease;
}

.badges-container a:hover {
    background-color: var(--accent-blue);
    transform: translateY(-3px);
}

/* 手绘风格页脚 */
footer {
    background-color: var(--primary-orange);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: var(--hand-drawn-border);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,0 Q25,10 50,0 T100,0" fill="%23FF7B25" stroke="none"/></svg>');
    background-size: 100% 100%;
}

.copyright {
    font-size: 16px;
    color: white;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .article-bubbles {
        grid-template-columns: 1fr;
    }
    
    .notebook-title {
        font-size: 28px;
    }
    
    .pagination-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}