/* 动漫风格全局样式 */
:root {
    --primary-color: #FF6B9D;
    --secondary-color: #5FD3FF;
    --accent-color: #FFCA3D;
    --bg-color: #FFF9F9;
    --card-color: #FFFFFF;
    --text-color: #4A4A6A;
    --shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', 'Segoe UI', 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="%23FF6B9D" opacity="0.1"/><circle cx="50" cy="50" r="4" fill="%235FD3FF" opacity="0.1"/><circle cx="80" cy="30" r="2" fill="%23FFCA3D" opacity="0.1"/></svg>');
}

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);
    text-shadow: 0 0 5px rgba(95, 211, 255, 0.3);
}

.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: 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: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 20px;
    border-radius: 50px;
    background-color: var(--bg-color);
    font-weight: 600;
    border: 2px solid var(--primary-color);
    display: inline-block;
    transform: scale(1);
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* 动漫风格主要内容 */
.main-content {
    background-color: var(--card-color);
    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(--secondary-color);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px dashed var(--primary-color);
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '✨';
    position: absolute;
    right: -40px;
    top: 0;
}

/* 动漫卡片样式 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.anime-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--primary-color);
    position: relative;
}

.anime-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.3);
}

.anime-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,157,0.1) 0%, rgba(95,211,255,0.1) 100%);
    z-index: 1;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.anime-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-color);
}

.card-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--primary-color);
}

.card-desc {
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-color);
    margin-top: 15px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 动漫详情页样式 */
.anime-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.anime-detail::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.2;
    border-radius: 50%;
    filter: blur(5px);
}

.detail-header {
    margin-bottom: 30px;
    text-align: center;
}

.detail-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
}

.detail-title::before, .detail-title::after {
    content: '★';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

.detail-title::before {
    left: -40px;
}

.detail-title::after {
    right: -40px;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.detail-meta span {
    background-color: var(--bg-color);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid var(--secondary-color);
    font-size: 14px;
}

.detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.detail-content {
    line-height: 1.8;
    font-size: 17px;
}

.detail-content p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.detail-content p::before {
    content: '❀';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-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(--bg-color);
    border: 2px solid var(--primary-color);
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.anime-pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* 友情链接 */
.friend-links {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary-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;
    justify-content: center;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: var(--bg-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* 动漫风格页脚 */
footer {
    background-color: var(--primary-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
}

.copyright {
    font-size: 14px;
    color: white;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .anime-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-title {
        font-size: 28px;
    }
    
    .detail-title::before, .detail-title::after {
        display: none;
    }
}