/* 动漫风格主题 */
:root {
    --primary-color: #ff6b9e;
    --secondary-color: #7bd3f7;
    --accent-color: #ffcc4d;
    --bg-color: #fff5f9;
    --card-color: #ffffff;
    --text-color: #33334d;
    --shadow-color: rgba(255, 107, 158, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Marker Felt', 'Arial Rounded MT Bold', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    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"><circle cx="20" cy="20" r="3" fill="%23ffcc4d" opacity="0.2"/><circle cx="50" cy="50" r="2" fill="%237bd3f7" opacity="0.2"/><circle cx="80" cy="30" r="4" fill="%23ff6b9e" opacity="0.2"/></svg>');
    background-size: 200px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-color);
}

a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    animation: linkUnderline 0.3s forwards;
}

@keyframes linkUnderline {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 动漫风格头部 */
header {
    background-color: var(--card-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow-color);
    border-bottom: 3px solid var(--accent-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Comic Sans MS', cursive;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px var(--shadow-color);
}

/* 动漫风格内容区域 */
.main-content {
    background-color: var(--card-color);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    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 dashed var(--primary-color);
    color: var(--primary-color);
    font-family: 'Comic Sans MS', cursive;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '✨';
    position: absolute;
    right: -30px;
    top: 0;
    font-size: 20px;
}

/* 动漫风格卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: var(--card-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px var(--shadow-color);
    border: 2px solid var(--secondary-color);
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 15px;
}

/* 动漫风格分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 动漫风格文章详情 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--primary-color);
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-weight: bold;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.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: 10px;
    margin: 20px 0;
    border: 2px solid var(--secondary-color);
}

/* 动漫风格分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.pagination a:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* 动漫风格友情链接 */
.friend-links {
    background-color: var(--card-color);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 2px dashed var(--primary-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
    font-family: 'Comic Sans MS', cursive;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* 动漫风格页脚 */
footer {
    background-color: var(--primary-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    color: white;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

.copyright {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .section-title::after {
        display: none;
    }
}

/* 动漫风格特殊效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}