/* 动漫资讯列表页样式 */

/* 新闻列表容器 */
.newslist {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 新闻列表主体 */
.newslist_main {
    padding: 20px;
}

/* 单个新闻项 */
.news-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 新闻缩略图 */
.news-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

/* 新闻内容区域 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 新闻标题 */
.news-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #ff6b6b;
}

/* 新闻摘要 */
.news-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 新闻元信息 */
.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
}

.news-meta span {
    margin-right: 20px;
}

.news-time {
    color: #666;
}

.news-views {
    color: #999;
}

/* 查看详情按钮 */
.news-detail-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.news-detail-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 分页样式 */
.page {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.page b,
.page a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page b {
    background: #ff6b6b;
    color: white;
    font-weight: 600;
}

.page a {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.page a:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-1px);
}

.page-next {
    margin-left: 10px !important;
    background: #4CAF50 !important;
    color: white !important;
    border: none !important;
}

.page-next:hover {
    background: #45a049 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .news-thumb {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-detail-btn {
        align-self: flex-start;
    }
    
    .newslist_main {
        padding: 15px;
    }
    
    .page {
        padding: 15px;
    }
    
    .page b,
    .page a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 15px;
    }
    
    .news-summary {
        font-size: 13px;
    }
    
    .news-meta {
        font-size: 12px;
    }
    
    .page b,
    .page a {
        padding: 5px 8px;
        font-size: 12px;
        margin: 0 2px;
    }
}

/* 加载动画效果 */
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为不同的新闻项添加延迟动画 */
.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }
.news-item:nth-child(7) { animation-delay: 0.7s; }
.news-item:nth-child(8) { animation-delay: 0.8s; }

/* 空状态样式 */
.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.news-empty img {
    width: 120px;
    height: 120px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.news-empty h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.news-empty p {
    font-size: 14px;
    color: #999;
}

/* ==================== 新闻详情页样式 ==================== */

/* 新闻详情容器 */
.newsbox {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 25px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff6b6b;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #ff6b6b;
    font-weight: 500;
}

/* 文章内容区域 */
.article-content {
    padding: 30px;
}

/* 文章头部 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 0 0 20px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    width: 16px;
    height: 16px;
    background-size: contain;
    opacity: 0.7;
}

/* 文章正文 */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-body p {
    margin: 0 0 20px 0;
    /*text-align: justify;*/
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.1), transparent);
    padding: 10px 0 10px 15px;
    border-radius: 0 8px 8px 0;
}

.article-body ul {
    margin: 20px 0;
    padding-left: 0;
}

.article-body li {
    list-style: none;
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.article-body li:before {
    content: "▶";
    color: #ff6b6b;
    font-size: 12px;
    position: absolute;
    left: 0;
    top: 2px;
}

.article-body blockquote {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #ff6b6b;
    margin: 25px 0;
    padding: 20px 25px;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.article-body blockquote:before {
    content: "";
    font-size: 60px;
    color: #ff6b6b;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
}

/* 文章图片 */
.article-image {
    text-align: center;
    margin: 30px 0;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.article-image img:hover {
    transform: scale(1.02);
}

.image-caption {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* 标签区域 */
.article-tags {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.tag-item {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 上下篇导航 */
.article-nav {
    padding: 25px 30px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.nav-item {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.nav-label {
    font-weight: 600;
    color: #666;
    min-width: 70px;
    flex-shrink: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
    flex: 1;
}

.nav-link:hover {
    color: #ff6b6b;
}

/* 相关文章 */
.related-articles {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
    display: inline-block;
}

.related-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.related-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-thumb img {
    transform: scale(1.1);
}

.related-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.related-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #ff6b6b;
}

.related-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-tags {
        padding: 15px 20px;
    }
    
    .article-nav {
        padding: 20px;
    }
    
    .nav-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-label {
        min-width: auto;
    }
    
    .related-articles {
        padding: 20px;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .related-item {
        flex-direction: column;
        padding: 15px;
    }
    
    .related-thumb {
        width: 100%;
        height: 150px;
    }
    
    .breadcrumb {
        padding: 12px 20px;
        font-size: 13px;
    }
}