/* 娱乐页面专用样式 - 重新编写 */
#entertainment.content-section {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%) !important;
    color: #fff !important;
    padding: 0 !important;
    display: block !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.entertainment-hero {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.entertainment-hero h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.entertainment-hero p {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto;
    opacity: 0.95;
}

/* 通用区块样式 */
.entertainment-section {
    background: rgba(255, 255, 255, 0.12);
    margin: 40px 20px;
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.entertainment-section .section-title {
    font-size: 1.7rem;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 动漫推荐 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.anime-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* 列表页不展示博客交互元素，移至详情页显示 */
.anime-card .anime-actions,
.anime-card .anime-comments {
    display: none;
}

/* 卡片可点击进入详情页 */
.anime-card { cursor: pointer; }

/* 电影列表页同样仅显示概况 */
.movie-card .movie-actions,
.movie-card .movie-comments {
    display: none;
}

.movie-card { cursor: pointer; }

.anime-poster {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.anime-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.anime-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4e54c8;
    margin-bottom: 4px;
}

.anime-genre {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.anime-desc {
    color: #444;
    line-height: 1.5;
    flex-grow: 1;
    font-size: 0.9rem;
}

.anime-rating {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* 电影推荐 */
.movie-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.movie-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    height: auto;
}

.movie-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.movie-poster {
    width: 120px;
    height: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.movie-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.movie-main-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.movie-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4e54c8;
    margin-bottom: 4px;
}

.movie-year {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.movie-desc {
    color: #444;
    line-height: 1.5;
    flex-grow: 1;
    font-size: 0.9rem;
}

.movie-rating {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* 游戏网站推荐 */
.game-sites {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.site-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4e54c8;
    margin-bottom: 6px;
}

.site-desc {
    color: #444;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.site-tag {
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: inline-block;
}

/* 小游戏推荐 */
.mini-games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.game-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.game-name {
    font-size: 1rem;
    font-weight: 600;
    color: #4e54c8;
    margin-bottom: 6px;
}

.game-desc {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 动画效果 */
@keyframes fadeInUpEntertainment {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.anime-card, .movie-card, .site-card, .game-card {
    animation: fadeInUpEntertainment 0.6s ease forwards;
}

.anime-card:nth-child(2) { animation-delay: 0.1s; }
.anime-card:nth-child(3) { animation-delay: 0.2s; }
.movie-card:nth-child(2) { animation-delay: 0.1s; }
.site-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.2s; }

/* 博客元素样式 */
.anime-rating, .movie-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.star.active {
    color: #ffd700;
}

.rating-text {
    font-size: 0.9rem;
    color: #ff6b6b;
    font-weight: 600;
}

.anime-actions, .movie-actions {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: none;
    border-radius: 15px;
    background: #f5f5f5;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.action-btn.liked {
    background: #ff6b6b;
    color: white;
}

.action-btn.favorited {
    background: #ffd700;
    color: #333;
}

.action-btn.watch-btn {
    background: #4e54c8;
    color: white;
    text-decoration: none;
}

.action-btn.watch-btn:hover {
    background: #3a3f9e;
    color: white;
    text-decoration: none;
}

.action-btn .icon {
    font-size: 0.9rem;
}

.action-btn .count {
    font-weight: 600;
}

.action-btn .text {
    font-weight: 500;
}

/* 评论系统样式 */
.anime-comments, .movie-comments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comments-header h4 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.add-comment-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-comment-btn:hover {
    background: #ff5252;
}

.comments-list {
    margin-bottom: 12px;
}

.comment-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 6px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.comment-text {
    color: #555;
    line-height: 1.4;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-date {
    color: #999;
    font-size: 0.7rem;
}

.comment-like {
    background: none;
    border: none;
    color: #666;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.comment-like:hover {
    background: #f0f0f0;
    color: #ff6b6b;
}

.comment-form {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
}

.comment-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.comment-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.comment-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.submit-comment, .cancel-comment {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-comment {
    background: #ff6b6b;
    color: white;
}

.submit-comment:hover {
    background: #ff5252;
}

.cancel-comment {
    background: #f5f5f5;
    color: #666;
}

.cancel-comment:hover {
    background: #e0e0e0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .anime-grid { grid-template-columns: repeat(2, 1fr); }
    .movie-grid { flex-direction: column; }
    .game-sites { grid-template-columns: 1fr; }
    .mini-games { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .entertainment-hero { padding: 40px 20px; }
    .entertainment-hero h2 { font-size: 2rem; }
    .anime-grid { grid-template-columns: 1fr; }
    .mini-games { grid-template-columns: 1fr; }
    .movie-card { 
        flex-direction: column; 
        height: auto; 
        min-height: auto;
    }
    .movie-main-content {
        flex-direction: row;
    }
    .movie-poster { 
        width: 120px; 
        height: 160px; 
        flex-shrink: 0;
    }
    .movie-info {
        flex: 1;
        padding: 15px;
    }
    .entertainment-section { margin: 20px 10px; }
    
    .anime-actions, .movie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .action-btn {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    .movie-comments {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .comment-form {
        margin-top: 10px;
    }
    
    .comment-input {
        min-height: 60px;
    }
    
    .comment-form-actions {
        justify-content: center;
    }
}