/* 动漫风格全局样式 */
:root {
    --primary-color: #FF6B9E; /* 樱花粉 */
    --secondary-color: #5ECFFF; /* 天空蓝 */
    --accent-color: #FFD166; /* 阳光黄 */
    --dark-color: #2E2E3A; /* 深灰 */
    --light-color: #FFF9FB; /* 浅粉白 */
    --text-color: #4A4A4A;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'M PLUS Rounded 1c', sans-serif;
}

body {
    background-color: var(--light-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="%23FF6B9E" opacity="0.2"/><circle cx="50" cy="50" r="2" fill="%235ECFFF" opacity="0.2"/><circle cx="80" cy="30" r="4" fill="%23FFD166" opacity="0.2"/></svg>');
    background-size: 200px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(94, 207, 255, 0.3);
}

.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: var(--shadow);
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    background-color: white;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 0 rgba(255, 107, 158, 0.3);
}

/* 动漫风格主要内容区域 */
.main-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transform: translate(50px, -50px);
    opacity: 0.1;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px dashed var(--secondary-color);
    position: relative;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
}

.section-title::after {
    content: '☆';
    position: absolute;
    right: 0;
    color: var(--accent-color);
}

/* 动漫卡片式文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid var(--secondary-color);
    box-shadow: var(--shadow);
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.15);
}

.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: 2px dashed var(--secondary-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 15px;
    font-weight: 600;
}

/* 动漫标签 */
.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 700;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

/* 动漫风格文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-header::before {
    content: '✦';
    position: absolute;
    top: -20px;
    left: 0;
    color: var(--primary-color);
    font-size: 30px;
}

.article-header::after {
    content: '✦';
    position: absolute;
    top: -20px;
    right: 0;
    color: var(--secondary-color);
    font-size: 30px;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-weight: 600;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 3px solid var(--accent-color);
}

.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;
    top: 0;
    color: var(--primary-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 2px solid var(--secondary-color);
}

/* 动漫风格分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    background-color: white;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
    font-weight: 700;
    box-shadow: 0 5px 0 rgba(255, 107, 158, 0.3);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(3px);
    box-shadow: 0 2px 0 rgba(255, 107, 158, 0.3);
}

/* 动漫风格友情链接 */
.friend-links {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.friend-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: white;
    border-radius: 50px;
    font-size: 14px;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s;
    font-weight: 600;
}

.friend-links-container a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* 动漫风格页脚 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 5px solid var(--primary-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background-color: var(--primary-color);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.copyright {
    font-size: 14px;
    color: white;
}

/* 动漫风格响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* 动漫风格特殊元素 */
.anime-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 107, 158, 0.5);
    z-index: 1000;
    transform: rotate(5deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}