/* 动漫风格主题 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ff9e9e;
    --accent-color: #74b9ff;
    --dark-color: #2d3436;
    --light-color: #fdcb6e;
    --text-color: #2d3436;
    --bg-color: #fff9f9;
    --card-bg: #ffffff;
    --shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', '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"><path d="M30,10 Q50,5 70,10 T90,30 Q95,50 90,70 T70,90 Q50,95 30,90 T10,70 Q5,50 10,30 T30,10" fill="none" stroke="%23ff9e9e" stroke-width="0.5" opacity="0.2"/></svg>');
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(116, 185, 255, 0.3);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 动漫风格头部 */
header {
    background-color: var(--primary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--light-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 0 var(--dark-color), 4px 4px 0 rgba(45, 52, 54, 0.2);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

nav ul li a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 动漫风格主要内容 */
.main-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 2px solid white;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    transform: rotate(45deg) translate(25px, -25px);
    opacity: 0.3;
}

.section-title {
    font-size: 26px;
    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: -30px;
    top: -5px;
    color: var(--light-color);
}

/* 动漫卡片样式 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.anime-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    position: relative;
}

.anime-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

.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%, transparent 100%);
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--light-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    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;
}

/* 动漫标签 */
.anime-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

/* 动漫详情页 */
.anime-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.anime-detail::after {
    content: "";
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,50 Q35,20 50,50 T80,50" fill="none" stroke="%23ff6b6b" stroke-width="2" opacity="0.3"/></svg>');
    background-repeat: no-repeat;
    z-index: -1;
}

.anime-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.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);
}

.anime-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--accent-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-weight: bold;
}

.anime-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 3px solid white;
}

.anime-content {
    line-height: 1.8;
    font-size: 17px;
    position: relative;
}

.anime-content p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.anime-content p::before {
    content: "❀";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
}

.anime-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid var(--light-color);
}

/* 动漫分页 */
.anime-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.anime-pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.anime-pagination a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

/* 友情链接 */
.friend-links {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 2px dashed var(--primary-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 22px;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--light-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--dark-color);
    transition: all 0.3s;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

.friend-links-container a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
}

/* 动漫页脚 */
.anime-footer {
    background-color: var(--primary-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px solid var(--light-color);
    position: relative;
}

.anime-footer::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,20 Q25,10 50,20 T100,20" fill="%23ff6b6b"/></svg>');
    background-repeat: repeat-x;
}

.copyright {
    font-size: 14px;
    color: white;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .anime-title {
        font-size: 28px;
    }
    
    .anime-meta {
        gap: 15px;
    }
    
    .anime-content p::before {
        display: none;
    }
}