/*
Theme Name: WestAV8 Novel
Author: JABLV
Description: Adult novel reading theme for WestAV8.
Version: 1.0.0
Text Domain: westav8-novel
*/

:root {
    --bg: #0d0e12;
    --panel: #171922;
    --panel2: #20232e;
    --text: #e9e5dc;
    --muted: #9d9a92;
    --line: #2d303c;
    --accent: #ff4f91;
    --accent2: #f4b35e;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 14px; }
.site-head {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(13,14,18,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.head-row {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.logo { font-size: 27px; font-weight: 800; color: #fff; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav a {
    padding: 8px 10px;
    color: var(--muted);
    border-radius: 4px;
    font-size: 14px;
}
.nav a:hover { color: #fff; background: var(--panel2); }
.head-partners {
    padding-bottom: 10px;
}
.head-partners .jdh-cluster-links {
    margin-top: 0;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.head-partners .jdh-cluster-head {
    margin-bottom: 7px;
}
.head-partners .jdh-cluster-grid {
    gap: 6px 12px;
}
.search { margin-left: auto; display: flex; min-width: 260px; max-width: 360px; flex: 1; }
.search input {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: #fff;
    padding: 0 12px;
    border-radius: 4px 0 0 4px;
    outline: 0;
}
.search button {
    width: 58px;
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.hero {
    padding: 30px 0 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #171821 0%, #0d0e12 100%);
}
.hero h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; }
.section { margin: 28px 0; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}
.section-head h2 { margin: 0; font-size: 21px; }
.section-head a { color: var(--accent2); font-size: 14px; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}
.cat-card, .novel-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.cat-card {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}
.cat-card:hover, .novel-card:hover { border-color: var(--accent); background: var(--panel2); }
.novel-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.novel-card { padding: 14px; min-height: 134px; display: flex; flex-direction: column; }
.novel-card h3 { margin: 0 0 9px; font-size: 17px; line-height: 1.4; }
.novel-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.novel-meta { margin-top: auto; display: flex; justify-content: space-between; color: #85827d; font-size: 12px; gap: 10px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; margin: 26px 0 36px; }
.reader {
    background: #15161d;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 24px;
}
.reader h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.35; }
.reader-meta { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.novel-body { color: #e7dfd0; font-size: 18px; line-height: 1.95; }
.novel-body p { margin: 0 0 1.1em; }
.reader-tools { display: flex; gap: 8px; margin: 18px 0 0; flex-wrap: wrap; }
.reader-tools button, .pager a, .pager span {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 4px;
    padding: 8px 11px;
}
.reader-tools button { cursor: pointer; }
.side-box { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin-bottom: 14px; }
.side-box h3 { margin: 0 0 10px; font-size: 16px; }
.side-box a { display: block; color: var(--muted); padding: 7px 0; border-top: 1px solid rgba(255,255,255,.04); }
.side-box a:hover { color: #fff; }
.pager { display: flex; justify-content: center; gap: 7px; margin: 24px 0; flex-wrap: wrap; }
.pager .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-foot { border-top: 1px solid var(--line); color: var(--muted); padding: 26px 0; text-align: center; font-size: 13px; }
body.reader-large .novel-body { font-size: 21px; }
body.reader-sepia { background: #211d17; --panel: #2a241c; --panel2: #342b20; --text: #f0e1c7; --muted: #bcae97; --line: #493c2c; }

@media (max-width: 860px) {
    .head-row { flex-wrap: wrap; padding: 10px 0; gap: 10px; }
    .search { order: 3; flex-basis: 100%; max-width: none; min-width: 0; }
    .nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .nav a { white-space: nowrap; }
    .hero { padding-top: 20px; }
    .hero h1 { font-size: 25px; }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .novel-list { grid-template-columns: 1fr; }
    .content-layout { display: block; }
    .reader { padding: 18px 14px; }
    .reader h1 { font-size: 22px; }
    .novel-body { font-size: 17px; line-height: 1.9; }
}
