/* ========================================
   txcms2 小说推荐详情页样式 v4
   保留布局结构（信息卡/药丸按钮/badge/CTA条）
   颜色全部中性灰 + 跟随站点主色，无自定义配色
   ======================================== */

/* ====== 文章页隐藏右侧栏 + 主内容全宽 ====== */
.main.zh .right.fr {
    display: none !important;
}
.main.zh .left.fl {
    width: 100% !important;
    float: none !important;
}

/* ====== 顶部信息卡（浅灰底 + 站点主色左边框） ====== */
.novel-intro-card {
    background: #f8f9fa;
    border-left: 4px solid var(--tx-zs, #29a7e4);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 24px;
    font-size: 14.5px;
    line-height: 1.8;
}

.novel-intro-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.novel-intro-title .fa {
    color: var(--tx-zs, #29a7e4);
    font-size: 16px;
}

.novel-intro-text {
    color: #555;
    margin-bottom: 14px;
    text-align: justify;
}

/* ====== 操作按钮行（药丸形） ====== */
.novel-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.novel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 38px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
    gap: 5px;
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.novel-btn .fa {
    font-size: 14px;
}

.novel-btn:hover {
    border-color: var(--tx-zs, #29a7e4);
    color: var(--tx-zs, #29a7e4);
}

.novel-btn-primary {
    background: var(--tx-zs, #29a7e4);
    border-color: var(--tx-zs, #29a7e4);
    color: #fff;
    font-weight: 600;
}

.novel-btn-primary:hover {
    opacity: 0.88;
    color: #fff;
    transform: translateY(-1px);
}

.novel-btn-disabled {
    background: #f5f5f5;
    border-color: #eee;
    color: #bbb;
    cursor: not-allowed;
}

/* ====== 标题区 ====== */
.novel-header {
    margin-bottom: 20px;
}

.novel-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin: 0 0 10px 0;
}

.novel-badge {
    display: inline-block;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 2px 12px;
    margin-left: 10px;
}

.novel-edit {
    font-size: 12px !important;
    color: #ccc !important;
    margin-left: 8px;
}

.novel-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin: 10px 0 14px;
    font-size: 14px;
    color: #888;
}

.novel-meta-item strong {
    color: #333;
    font-weight: 600;
}

.novel-meta-date {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 13px;
    color: #888;
}

.novel-meta-date .fa {
    color: var(--tx-zs, #29a7e4);
    margin-right: 5px;
    font-size: 13px;
}

/* ====== 正文/简介区（轻量卡片） ====== */
.novel-body {
    margin-bottom: 24px;
}

.novel-section {
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 18px;
}

.novel-section-toggle,
.novel-section-title {
    font-weight: 700;
    font-size: 13px;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.novel-section-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.novel-section-content p {
    margin: 0 0 12px 0;
}

/* 标签 + 分享按钮行 */
.novel-share-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #eee;
}

.novel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.novel-tag {
    display: inline-block;
    padding: 3px 11px;
    font-size: 12px;
    color: #777;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.novel-tag:hover {
    color: var(--tx-zs, #29a7e4);
    border-color: var(--tx-zs, #29a7e4);
}

.novel-share-icons {
    display: flex;
    gap: 8px;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.share-icon:hover {
    transform: scale(1.1);
}

.share-weibo { background: #ff6a00; }
.share-qq   { background: #12b7f5; }
.share-wechat { background: #2dc100; }
.share-star  { background: #999; }

/* ====== 底部 CTA + 上下篇 ====== */
.novel-cta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.novel-cta-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 38px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
    gap: 5px;
}

.cta-btn .fa {
    font-size: 14px;
}

.cta-primary {
    background: var(--tx-zs, #29a7e4);
    color: #fff;
    border: none;
}

.cta-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff;
}

.cta-outline {
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
}

.cta-outline:hover {
    border-color: var(--tx-zs, #29a7e4);
    color: var(--tx-zs, #29a7e4);
}

/* 上下篇导航 */
.novel-cta-nav {
    display: flex;
    gap: 6px 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.cta-prev,
.cta-next {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #999;
}

.cta-prev a,
.cta-next a {
    color: #999;
    text-decoration: none;
}

.cta-prev a:hover,
.cta-next a:hover {
    color: var(--tx-zs, #29a7e4);
}

/* ====== 猜你喜欢区域 ====== */
.xg {
    background: #fbfbfc;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.xg .ybbt {
    font-size: 16px;
    font-weight: 700;
    border-left: 3px solid var(--tx-zs, #29a7e4);
    padding-left: 10px;
    margin-bottom: 12px;
    border-bottom: none;
    border-top: none;
    border-right: none;
    background: transparent;
    color: #222;
}

.xg ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xg ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.xg ul li:last-child {
    border-bottom: none;
}

.xg ul li span:first-child {
    color: #bbb;
    font-size: 13px;
    margin-right: 8px;
    white-space: nowrap;
}

.xg ul li .fa-caret-right {
    color: var(--tx-zs, #29a7e4);
    margin-right: 6px;
    font-size: 11px;
}

.xg ul li a {
    color: #555;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.xg ul li a:hover {
    color: var(--tx-zs, #29a7e4);
}

/* ====== 响应式适配 ====== */
@media screen and (max-width: 900px) {
    .novel-title { font-size: 23px; }
    .novel-intro-card { padding: 14px 16px; }
    .novel-action-row { gap: 8px; }
    .novel-btn { height: 36px; padding: 0 15px; font-size: 13px; }
    .novel-cta-bar { flex-direction: column; align-items: stretch; }
    .novel-cta-left { justify-content: center; }
    .novel-cta-nav { justify-content: center; }
    .cta-prev, .cta-next { max-width: none; }
    .novel-meta { gap: 8px 14px; }
}

@media screen and (max-width: 560px) {
    .novel-title { font-size: 21px; }
    .novel-badge { display: block; margin-left: 0; margin-top: 6px; width: fit-content; }
    .novel-meta { flex-direction: column; gap: 6px; font-size: 13px; }
    .novel-share-row { flex-direction: column; align-items: stretch; }
    .novel-share-icons { justify-content: center; }
    .cta-btn { height: 38px; padding: 0 18px; font-size: 13px; }
    .novel-cta-nav { flex-direction: column; gap: 6px; }
}
