/* ========================================
   Nikkitsfun.com - 列表页样式
   ======================================== */

.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg-pattern.png') repeat;
    opacity: 0.05;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 18px;
    color: #999999;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 列表容器 */
.list-container {
    padding: 80px 0;
    background: #f5f5f5;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* 新闻列表卡片 */
.news-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item-image {
    transform: scale(1.05);
}

.news-item-content {
    padding: 25px;
}

.news-item-category {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.news-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item:hover .news-item-title {
    color: #667eea;
}

.news-item-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
    font-size: 13px;
    color: #999999;
}

.news-item-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-item-link {
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-item-link:hover {
    color: #764ba2;
}

/* 详情页面 */
.detail-container {
    padding: 80px 0;
    background: #ffffff;
}

.detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-category {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    gap: 30px;
    color: #999999;
    font-size: 14px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
}

.detail-content {
    font-size: 16px;
    line-height: 2;
    color: #333333;
}

.detail-content p {
    margin-bottom: 25px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.detail-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 20px;
}

.detail-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.detail-content ul,
.detail-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.detail-content li {
    margin-bottom: 10px;
}

/* 相关新闻 */
.related-news {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #f0f0f0;
}

.related-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #eaeaea;
}

.pagination-item:hover,
.pagination-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 80px;
    }

    .page-title {
        font-size: 32px;
    }

    .list-grid {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 26px;
    }

    .detail-image {
        height: 250px;
    }

    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
