/* ============================================
   小说推荐页样式
   ============================================ */

.novels-container { max-width: 1200px; margin: 20px auto; padding: 0 15px; }

/* 顶部快捷筛选 */
.weekl_yrank {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.weekl_yrank ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.weekl_yrank li {
    border-radius: 20px;
    transition: all 0.2s;
}
.weekl_yrank li a {
    display: block;
    padding: 6px 16px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 20px;
}
.weekl_yrank li.active {
    background: var(--primary-color);
}
.weekl_yrank li.active a {
    color: #fff;
    font-weight: bold;
}
.weekl_yrank li:not(.active):hover {
    background: var(--bg-color);
}

/* 双栏布局 */
.listbox { display: flex; gap: 20px; align-items: flex-start; }
.listleft {
    width: 160px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px 0;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.listleft .droplist { list-style: none; margin: 0; padding: 0; }
.listleft .droplist li { border-left: 3px solid transparent; }
.listleft .droplist li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
}
.listleft .droplist li:hover a {
    background: var(--bg-color);
    color: var(--primary-color);
}
.listleft .droplist li.active {
    border-left-color: var(--primary-color);
    background: rgba(34,153,52,0.05);
}
.listleft .droplist li.active a {
    color: var(--primary-color);
    font-weight: bold;
}

/* 右侧列表 */
.listright { flex: 1; min-width: 0; }
.newbox {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
#article_list_content { list-style: none; margin: 0; padding: 0; }
#article_list_content > li {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}
#article_list_content > li:last-child { border-bottom: none; }
#article_list_content > li:hover { background: var(--bg-color); }

/* 封面 */
.imgbox {
    width: 90px;
    height: 120px;
    flex-shrink: 0;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.imgbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.imgbox:hover img { transform: scale(1.05); }

/* 信息区 */
.newnav { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.newnav h3 { font-size: 16px; margin: 0 0 8px 0; }
.newnav h3 a {
    color: var(--primary-color);
    text-decoration: none;
}
.newnav h3 a:hover { text-decoration: underline; }

.labelbox {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.labelbox label {
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 3px;
}
.labelbox label a {
    color: var(--text-muted);
    text-decoration: none;
}
.labelbox label a:hover { color: var(--primary-color); }

.ellipsis_2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    padding: 0;
    list-style: none;
}

.zxzj {
    margin-top: auto;
    font-size: 13px;
    color: var(--text-muted);
}
.zxzj p { margin: 0; }
.zxzj p span {
    color: #999;
    margin-right: 8px;
}
.zxzj p a {
    color: var(--primary-color);
    text-decoration: none;
}
.zxzj p a:hover { text-decoration: underline; }

/* 右侧按钮 */
.newright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    width: 110px;
}
.newright .btn {
    display: block;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-tp {
    background: var(--primary-color);
    color: #fff;
}
.btn-tp:hover { background: #1e7e2b; color: #fff; }
.btn-jrsj {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-jrsj:hover { background: var(--primary-color); color: #fff; }

/* 分页 */
.pages { margin-top: 20px; text-align: center; }
.pagelink {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.pagelink a,
.pagelink strong,
.pagelink span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.pagelink a:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.pagelink strong { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.pagelink span.disabled { opacity: 0.4; cursor: not-allowed; }

/* 移动端适配 */
@media (max-width: 768px) {
    .listbox { flex-direction: column; }
    .listleft { width: 100%; }
    .listleft .droplist { display: flex; overflow-x: auto; padding: 0 10px; gap: 8px; }
    .listleft .droplist li { border-left: none; border-bottom: 2px solid transparent; flex-shrink: 0; }
    .listleft .droplist li.active { border-left: none; border-bottom-color: var(--primary-color); }
    .listleft .droplist li a { padding: 8px 12px; white-space: nowrap; }

    #article_list_content > li { padding: 15px; gap: 10px; }
    .imgbox { width: 70px; height: 95px; }
    .newnav h3 { font-size: 14px; }
    .ellipsis_2 { -webkit-line-clamp: 2; font-size: 12px; }
    .newright { width: 80px; }
    .newright .btn { font-size: 12px; padding: 6px 0; }
}