/* 动漫风格全局样式 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #48dbfb;
    --accent-color: #feca57;
    --dark-color: #2c3e50;
    --light-color: #f5f6fa;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --shadow: 0 8px 16px rgba(0, 0,  ‍0, 0.15);
    --roundness: 20px;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', 'Arial Rounded MT Bold', 'Arial', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(72, 219, 251, 0.1) 0%, transparent 20%);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

a:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.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-left-radius: var(--roundness);
    border-bottom-right-radius: var(--roundness);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.3);
}

/* 动漫风格主要内容区域 */
.main-content {
    background-color: var(--card-bg);
    border-radius: var(--roundness);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.main-content:hover {
    transform: translateY(-5px);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    color: var(--dark-color);
    font-weight: 900;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

/* 动漫风格文章卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: var(--roundness);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 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: 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(--dark-color);
    margin-top: 15px;
    font-weight: 700;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 动漫风格分类标签 */
.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(254, 202, 87, 0.3);
}

/* 动漫风格文章详情页 */
.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);
    font-weight: 900;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--dark-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-weight: 700;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--roundness);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 5px solid white;
    outline: 3px solid var(--accent-color);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--roundness);
    margin: 25px 0;
    box-shadow: var(--shadow);
}

/* 动漫风格分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    background-color: white;
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.3);
}

/* 动漫风格友情链接 */
.friend-links {
    background-color: white;
    border-radius: var(--roundness);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 24px;
    font-weight: 900;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    background-color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.friend-links-container a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(72, 219, 251, 0.3);
}

/* 动漫风格页脚 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top-left-radius: var(--roundness);
    border-top-right-radius: var(--roundness);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.copyright {
    font-size: 16px;
    color: white;
    font-weight: 700;
}

/* 动漫风格响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    nav ul li a {
        padding: 8px 15px;
    }
}

/* 动漫风格特殊效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}