/* newbook.html 页面专用样式 */

/* 页面头部 */
.page-header {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: bold;
}

.page-description {
    font-size: 14px;
    opacity: 0.9;
}

/* 最新入库小说列表 */
.new-book-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

/* 分类标签 */
.section-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tab-btn {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.tab-btn.active {
    background: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}

/* 小说项目 */
.new-book-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.new-book-item {
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    transition: all 0.3s;
    background: white;
}

.new-book-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #4a6cf7;
    transform: translateY(-2px);
}

.new-book-title {
    margin-bottom: 8px;
}

.new-book-title a {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.new-book-title a:hover {
    color: #4a6cf7;
}

.new-book-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.new-book-author,
.new-book-time,
.new-book-category {
    display: inline-flex;
    align-items: center;
}

.new-book-author:before {
    content: "作者: ";
    color: #999;
}

.new-book-time:before {
    content: "时间: ";
    color: #999;
}

.new-book-category {
    padding: 2px 8px;
    background: #f0f7ff;
    color: #4a6cf7;
    border-radius: 12px;
    font-size: 12px;
}

.new-book-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.page-link:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-link.active {
    background: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}

.page-ellipsis {
    color: #999;
    padding: 0 8px;
}

.page-link.next {
    padding: 0 20px;
}

/* 分类快速导航 */
.category-quick-nav {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    background: white;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #4a6cf7;
    color: #4a6cf7;
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.category-count {
    font-size: 13px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-tabs {
        width: 100%;
        margin-top: 15px;
        justify-content: flex-start;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .new-book-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}