/* 涂鸦风格橙红色调主题 */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #ff9e1b;
    --accent-color: #ff3a20;
    --dark-color: #292929;
    --light-color: #f8f8f8;
    --doodle-bg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 Q30,5 50,20 T90,10" stroke="rgba(255,107,53,0.1)" fill="none" stroke-width="2"/><path d="M5,50 Q25,45 45,60 T85,50" stroke="rgba(255,107,53,0.1)" fill="none" stroke-width="2"/><path d="M15,90 Q35,85 55,100 T95,90" stroke="rgba(255,107,53,0.1)" fill="none" stroke-width="2"/></svg>');
}

* {
    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: var(--doodle-bg);
    background-size: 200px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255,107,53,0.05) 0%, rgba(255,158,27,0.05) 90%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 涂鸦风格头部 */
header {
    background-color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-bottom: 3px dashed var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 rgba(255,107,53,0.2);
    position: relative;
    display: inline-block;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: rotate(-1deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    background-color: rgba(255,107,53,0.1);
    border: 2px solid var(--primary-color);
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

/* 涂鸦风格主要内容 */
.main-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    border: 2px solid var(--dark-color);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    opacity: 0.2;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: rotate(-1deg);
}

/* 涂鸦卡片 */
.doodle-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    border: 2px solid var(--dark-color);
    position: relative;
}

.doodle-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

.doodle-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.doodle-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid var(--dark-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark-color);
    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(--dark-color);
    margin-top: 15px;
    font-weight: 600;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 网格布局 */
.doodle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-color);
    text-shadow: 3px 3px 0 rgba(255,107,53,0.2);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--dark-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-weight: 600;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 3px solid var(--dark-color);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
}

.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: 8px;
    margin: 20px 0;
    border: 2px solid var(--dark-color);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: white;
    border: 2px solid var(--dark-color);
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

/* 友情链接 */
.friend-links {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    border: 2px solid var(--dark-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 22px;
    position: relative;
    display: inline-block;
}

.friend-links h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: rotate(-1deg);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--dark-color);
    transition: all 0.3s;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px dashed var(--primary-color);
}

.copyright {
    font-size: 16px;
    color: white;
    font-weight: 600;
}

/* 涂鸦元素 */
.doodle-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .doodle-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}