/* 动漫风格全局样式 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ff9f1c;
    --bg-color: #f7fff7;
    --card-color: #ffffff;
    --text-color: #292f36;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Neue', cursive, '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="%23ff6b6b" opacity="0.1"/><circle cx="50" cy="50" r="2" fill="%234ecdc4" opacity="0.1"/><circle cx="80" cy="30" r="4" fill="%23ff9f1c" opacity="0.1"/></svg>');
    background-size: 200px;
}

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(--accent-color);
    transform: scale(1.05);
}

.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: 700;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 16px;
    border-radius: 50px;
    background-color: var(--bg-color);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 动漫风格主要内容 */
.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(--secondary-color);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px dashed var(--accent-color);
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "✨";
    position: absolute;
    right: -30px;
    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.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary-color);
    position: relative;
}

.anime-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.anime-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.card-body {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 15px;
    font-weight: 600;
}

/* 动漫标签 */
.anime-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* 动漫详情页 */
.anime-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.anime-detail::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="%23ff6b6b" stroke-width="2" stroke-dasharray="5,5"/></svg>');
    opacity: 0.2;
    z-index: 0;
}

.anime-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.anime-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.1);
    position: relative;
    display: inline-block;
}

.anime-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.anime-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-weight: 600;
}

.anime-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.anime-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);
}

.anime-content {
    line-height: 1.8;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.anime-content p {
    margin-bottom: 20px;
}

.anime-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 2px solid var(--secondary-color);
}

/* 动漫风格分页 */
.anime-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.anime-pagination a {
    padding: 12px 24px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.anime-pagination a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0,0,0,0.2);
    background-color: var(--accent-color);
}

.anime-pagination a:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

/* 友情链接 */
.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;
    gap: 15px;
    justify-content: center;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: var(--secondary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 0 3px 0 rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.friend-links-container a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 0 rgba(0,0,0,0.1);
}

/* 动漫风格页脚 */
footer {
    background-color: var(--primary-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 5px solid var(--accent-color);
    color: white;
    font-weight: 600;
}

.copyright {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .anime-grid {
        grid-template-columns: 1fr;
    }
    
    .anime-title {
        font-size: 28px;
    }
    
    .anime-meta {
        gap: 10px;
    }
    
    .anime-pagination {
        flex-direction: column;
        align-items: center;
    }
}

/* 动漫风格特殊元素 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}