/* 动漫风格主题 */
:root {
    --primary-color: #ff6b9a; /* 樱花粉 */
    --secondary-color: #5d9df5; /* 天蓝 */
    --accent-color: #ff9e3d; /* 橙黄 */
    --dark-color: #33334d; /* 深紫灰 */
    --light-color: #fff9f9; /* 浅粉白 */
    --text-color: #4a4a6a;
    --card-bg: #ffffff;
    --shadow: 0 4px 15px rgba(255, 107, 154, 0.2);
    --border-radius: 16px;
}

/* 动漫风格字体 */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=M+PLUS+Rounded+1c:wght@500;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    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"><path d="M30,10 Q50,5 70,10 Q95,15 90,40 Q85,65 50,90 Q15,65 10,40 Q5,15 30,10 Z" fill="%23ff6b9a" opacity="0.05"/></svg>');
    background-size: 200px;
}

/* 动漫风格滚动条 */
::-webkit-scrollbar {
    width: 10px;
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

a:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 动漫风格头部 */
header {
    background-color: var(--card-bg);
    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;
}

.logo {
    font-family: 'Comic Neue', cursive;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    background-color: var(--light-color);
    box-shadow: 0 3px 0 var(--secondary-color);
    display: inline-block;
}

nav ul li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 0 var(--primary-color);
}

/* 动漫风格内容区域 */
.main-content {
    background-color: var(--card-bg);
    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: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

/* 动漫卡片 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.anime-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--secondary-color);
    position: relative;
}

.anime-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(255, 107, 154, 0.3);
}

.anime-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.anime-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px dashed var(--primary-color);
}

.anime-body {
    padding: 20px;
}

.anime-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 15px;
}

/* 动漫标签 */
.anime-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 详情页样式 */
.anime-detail {
    max-width: 800px;
    margin: 0 auto;
}

.anime-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.anime-header::before {
    content: "★";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 24px;
}

.detail-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.detail-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(--primary-color);
}

.detail-content {
    line-height: 1.8;
    font-size: 18px;
}

.detail-content p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.detail-content p::before {
    content: "❀";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 动漫风格分页 */
.anime-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.anime-pagination a {
    padding: 10px 20px;
    border-radius: 50px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 0 var(--dark-color);
    transition: all 0.3s;
}

.anime-pagination a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 var(--dark-color);
    background-color: var(--primary-color);
}

/* 友情链接 */
.friend-links {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 2px dashed var(--secondary-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 22px;
    text-align: center;
}

.friend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-container a {
    padding: 8px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    box-shadow: 0 3px 0 var(--dark-color);
    transition: all 0.3s;
}

.friend-container a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 0 var(--dark-color);
}

/* 动漫风格页脚 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="20" viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 Q25,20 50,0 T100,0" fill="%2333334d"/></svg>');
    background-size: 100% 100%;
}

.copyright {
    font-size: 14px;
    color: white;
    font-family: 'Comic Neue', cursive;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .anime-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-title {
        font-size: 28px;
    }
    
    .detail-meta {
        gap: 10px;
    }
}