.novel-detail-module {
    margin-top: 18px;
    background: var(--n2-card, var(--lt-card, var(--card, #fff)));
    border: 1px solid var(--n2-border, var(--lt-border, var(--border, #eee)));
    border-radius: var(--n2-radius, var(--lt-radius, var(--radius, 12px)));
    padding: 18px;
    box-sizing: border-box;
}

.novel-detail-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.novel-detail-module-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--n2-fg, var(--lt-fg, var(--fg, #222)));
}

.novel-detail-module-head a,
.novel-detail-module-head span {
    font-size: 13px;
    color: var(--n2-muted-fg, var(--lt-muted-fg, var(--muted-fg, #888)));
}

.novel-detail-chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.novel-detail-chapter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--n2-secondary, var(--lt-secondary, var(--secondary, #f7f7f7)));
    color: var(--n2-fg, var(--lt-fg, var(--fg, #222)));
}

.novel-detail-chapter-item span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}

.novel-detail-chapter-item em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 12px;
    color: var(--n2-muted-fg, var(--lt-muted-fg, var(--muted-fg, #999)));
}

.novel-detail-hot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.novel-detail-hot-card {
    min-width: 0;
}

.novel-detail-hot-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    background: var(--n2-secondary, var(--lt-secondary, var(--secondary, #f3f3f3)));
}

.novel-detail-hot-cover span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--n2-muted-fg, var(--lt-muted-fg, var(--muted-fg, #999)));
}

.novel-detail-hot-cover img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.novel-detail-hot-body {
    padding-top: 8px;
}

.novel-detail-hot-body h3 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.novel-detail-hot-body p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--n2-muted-fg, var(--lt-muted-fg, var(--muted-fg, #888)));
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.novel-detail-empty {
    padding: 18px;
    border-radius: 10px;
    background: var(--n2-secondary, var(--lt-secondary, var(--secondary, #f7f7f7)));
    color: var(--n2-muted-fg, var(--lt-muted-fg, var(--muted-fg, #888)));
    text-align: center;
}

@media (max-width: 900px) {
    .novel-detail-chapter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .novel-detail-hot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .novel-detail-module {
        padding: 14px;
    }

    .novel-detail-module-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .novel-detail-chapter-grid {
        grid-template-columns: 1fr;
    }

    .novel-detail-hot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.novel-detail-hot-module {
    width: 100%;
    flex: 0 0 100%;
    grid-column: 1 / -1;
}

.novel-detail-latest-module {
    width: 100%;
}
