/* 日漫收藏页面样式 */
.anime-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e, #ffa8a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title i {
    color: #ff6b6b;
    background: none;
    -webkit-text-fill-color: #ff6b6b;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 筛选和搜索区域 */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 142, 0.05));
    border-radius: 1rem;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.filter-tabs {
    display: flex;
    gap: 1rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    background: white;
    color: var(--text-color);
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.filter-tab.active {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border-color: #ff6b6b;
}

.search-box, .genre-filter, .date-filter {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    z-index: 1;
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    font-size: 1rem;
    width: 700px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.genre-filter select, .date-filter select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    font-size: 1rem;
    min-width: 150px;
    transition: var(--transition);
    background: white;
}

.genre-filter select:focus, .date-filter select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* 动漫卡片网格 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.anime-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.anime-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.anime-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.anime-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.anime-card:hover .anime-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.anime-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1rem;
}

.anime-card:hover .anime-overlay {
    opacity: 1;
}

.rating {
    color: #ffd700;
}

.rating i {
    margin-right: 0.1rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* 动漫信息 */
.anime-info {
    padding: 1.5rem;
}

.anime-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
}

.anime-japanese {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.anime-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: #ff6b6b;
}

.anime-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.anime-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.watch-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.watch-date i {
    color: #ff6b6b;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .anime-container {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-bar {
        gap: 1.5rem;
    }

    .filter-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .search-box input {
        width: 100%;
    }

    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .anime-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .progress-bar {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .anime-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 动画效果 */
.anime-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 隐藏卡片的动画 */
.anime-card.hidden {
    display: none;
}

.anime-card.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}