.novel-site { --novel-blue: #1762d9; --novel-muted: #738094; --novel-line: #e3e8ef; color: #202c3d; background: #fff; }
.novel-site [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.novel-container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.novel-home { padding: 42px 0 64px; }
.novel-site .site-nav { min-height: 76px; }
.novel-site h1,.novel-site h2,.novel-site h3 { color: inherit; line-height: 1.4; }
.novel-site h1 { font-size: 40px; margin: 0 0 10px; letter-spacing: -.025em; }
.novel-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.novel-page-heading p { margin: 8px 0 0; color: #66758a; }
.novel-eyebrow { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--novel-blue) !important; margin-bottom: 12px !important; }
.novel-discovery { display: grid; gap: 15px; justify-items: end; }
.novel-shelf-link { font-size: 14px; color: #43516a; }
.novel-search { display: flex; align-items: center; width: 320px; border: 1px solid #ccd5e1; border-radius: 7px; background: #fff; }
.novel-search input { width: 100%; min-width: 0; padding: 11px 14px; border: 0; background: transparent; font: inherit; font-size: 14px; color: inherit; }
.novel-search button { border: 0; padding: 4px 13px; background: none; font-size: 26px; color: #58677e; cursor: pointer; }
.novel-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.novel-filters a { padding: 4px 19px; font-size: 14px; border: 1px solid var(--novel-line); border-radius: 6px; color: #43516a; }
.novel-filters .selected { background: var(--novel-blue); border-color: var(--novel-blue); color: #fff; }
.novel-feature { display: flex; align-items: center; gap: 34px; padding: 30px; min-height: 290px; border-radius: 10px; background: #e7f0fa url('/img/novels/river-mist.jpg') center/cover; overflow: hidden; }
.novel-feature-cover { width: 154px; flex-shrink: 0; }
.novel-cover { position: relative; aspect-ratio: 2 / 3; width: 100%; overflow: hidden; border-radius: 5px; color: #fff; background: #174260 url('/img/novels/river-mist.jpg') 88% center/auto 100%; box-shadow: 0 5px 12px #16384d20; }
.novel-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#102d4360, transparent 70%); }
.novel-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.novel-cover-title { display: block; position: relative; padding: 24px 12px 0; text-align: center; font: 28px/1.4 Georgia, 'Songti SC', SimSun, serif; letter-spacing: .08em; overflow-wrap: anywhere; }
.novel-cover-author { display: block; position: relative; text-align: center; margin-top: 12px; font-size: 11px; letter-spacing: .15em; }
.cover-tone-1 { filter: saturate(.7); }
.cover-tone-2 { background-position: 64% center; }
.cover-tone-3 { background-position: 98% center; }
.novel-feature-copy { max-width: 480px; padding: 16px 24px 16px 0; }
.novel-feature-copy h2 { font: 600 34px/1.3 Georgia, 'Songti SC', SimSun, serif; margin: 14px 0 8px; }
.novel-pill { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; background: #dbe9fc; color: #265693; }
.novel-author { color: #677284; font-size: 13px; margin: 6px 0; }
.novel-feature-summary { font-size: 14px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 14px 0 20px; }
.novel-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.novel-button { display: inline-flex; gap: 16px; justify-content: center; align-items: center; min-height: 42px; padding: 9px 24px; border: 1px solid var(--novel-blue); border-radius: 5px; color: #fff; background: var(--novel-blue); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.novel-button:hover { background: #124fb0; color: #fff; text-decoration: none; }
.novel-button.secondary { color: #33516f; background: #fff; border-color: #cbd6e4; }
.novel-button.secondary:hover { background: #f3f7fc; }
.novel-text-link { font-size: 14px; margin-left: 6px; }
.novel-section { margin-top: 34px; }
.novel-section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 20px; }
.novel-section-heading h2 { font-size: 21px; margin: 0; border-left: 3px solid var(--novel-blue); padding-left: 12px; }
.novel-muted { color: var(--novel-muted); font-size: 13px; }
.novel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.novel-card { min-width: 0; }
.novel-card-art { display: block; }
.novel-card-art:hover { text-decoration: none; }
.novel-card .novel-cover { transition: transform .2s, box-shadow .2s; }
.novel-card-art:hover .novel-cover { transform: translateY(-3px); box-shadow: 0 9px 20px #16384d30; }
.novel-card-copy { padding: 13px 2px 8px; }
.novel-card h3 { font-size: 18px; margin: 4px 0; }
.novel-card h3 a { color: inherit; }
.novel-meta { font-size: 11px; color: #7a8798; }
.novel-card-summary { font-size: 13px; color: #7a8798; margin: 10px 0; height: 3.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.novel-card-link { font-size: 12px; }
.novel-updates { border: 1px solid var(--novel-line); border-radius: 8px; overflow: hidden; }
.novel-updates a { display: grid; grid-template-columns: 180px 1fr 100px 14px; gap: 16px; padding: 14px 18px; align-items: center; color: #5e6b7c; font-size: 13px; }
.novel-updates a + a { border-top: 1px solid #edf0f5; }
.novel-updates a:hover { background: #f7faff; text-decoration: none; }
.novel-updates strong { color: #27344a; font-weight: 500; }
.novel-update-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.novel-updates time { color: #8993a1; font-size: 12px; }
.novel-empty { text-align: center; padding: 70px 18px; border: 1px dashed #dbe3ee; border-radius: 10px; color: #7a8798; margin: 28px auto; }
.novel-empty h2,.novel-empty h1 { color: #3b4c64; }
.novel-empty-symbol { display: block; font-size: 48px; color: #9cb9df; }
.novel-pagination { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 28px 0; font-size: 14px; }
.novel-detail { padding: 22px 0 65px; }
.novel-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8892a2; margin: 8px 0 28px; }
.novel-breadcrumb a { color: #64748b; }
.novel-book-intro { display: grid; grid-template-columns: 190px 1fr; gap: 36px; padding: 10px 0 30px; border-bottom: 1px solid var(--novel-line); }
.novel-book-info h1 { font-size: 34px; margin: 12px 0; font-family: Georgia, 'Songti SC', SimSun, serif; }
.novel-book-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #677488; font-size: 13px; }
.novel-book-meta span + span::before { content: '|'; color: #d1d7df; padding-right: 14px; }
.novel-work-notes .novel-book-meta { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 8px 16px; padding: 16px; border-radius: 7px; background: #f6f8fb; }
.novel-work-notes .novel-book-meta dt { color: #526177; font-weight: 600; }
.novel-work-notes .novel-book-meta dd { margin: 0; overflow-wrap: anywhere; }
.novel-synopsis { font-size: 15px; line-height: 1.9; margin: 24px 0; white-space: pre-line; overflow-wrap: anywhere; }
.novel-local-note { margin-top: 14px; }
.novel-chapter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--novel-line); border-radius: 7px; overflow: hidden; }
.novel-chapter-list li { min-width: 0; border-bottom: 1px solid #edf0f5; }
.novel-chapter-list a { display: flex; gap: 16px; align-items: baseline; padding: 17px 20px; font-size: 14px; color: inherit; }
.novel-chapter-list a:hover { background: #f5f8fd; text-decoration: none; }
.novel-chapter-list strong { flex: 1; min-width: 0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.novel-chapter-list a span:first-child { color: #8a96a6; font-size: 12px; }
.novel-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 12px 24px; background: #24354c; color: white; border-radius: 7px; font-size: 14px; z-index: 20; max-width: calc(100% - 28px); }
.novel-shelf-remove { border: 0; background: none; padding: 8px 0; font: inherit; font-size: 12px; color: #8993a1; cursor: pointer; }
.novel-reader { --reader-bg: #f8f4ec; --reader-ink: #38342d; --reader-muted: #8d8578; background: var(--reader-bg); color: var(--reader-ink); }
.novel-reader[data-reader-theme="light"] { --reader-bg: #fff; --reader-ink: #29364b; --reader-muted: #77859a; }
.novel-reader[data-reader-theme="dark"] { --reader-bg: #20252b; --reader-ink: #c6cdd5; --reader-muted: #8c99aa; }
.novel-reader .site-nav { background: transparent; }
.novel-reader .brand,.novel-reader .nav-links a { color: var(--reader-ink); }
.novel-reading-bar { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #8882; }
.novel-reading-bar .novel-breadcrumb { margin: 0; }
.novel-reader-tools { display: flex; flex-shrink: 0; gap: 4px; }
.novel-reader-tools button { min-width: 36px; min-height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--reader-ink); cursor: pointer; font-size: 15px; }
.novel-reader-tools button[aria-pressed="true"] { background: #8882; }
.novel-reading-paper { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 42px; }
.novel-reading-title { text-align: center; margin-bottom: 48px; }
.novel-reading-title h1 { font: 600 28px/1.6 Georgia,'Songti SC',SimSun,serif; }
.novel-reading-title p,.novel-reading-title span { font-size: 12px; color: var(--reader-muted); }
.novel-prose { font-family: Georgia,'Songti SC',SimSun,serif; font-size: var(--reader-font, 19px); line-height: 2.15; letter-spacing: .025em; overflow-wrap: anywhere; }
.novel-prose p { text-indent: 2em; margin: 0 0 1.3em; }
.novel-chapter-navigation { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 50px; }
.novel-chapter-navigation a,.novel-chapter-navigation .disabled { display: block; padding: 12px; border: 1px solid #8885; border-radius: 5px; text-align: center; color: var(--reader-ink); font-size: 14px; }
.novel-chapter-navigation .disabled { color: var(--reader-muted); border-style: dashed; }
.novel-reading-note { text-align: center; font-size: 12px; color: var(--reader-muted); margin: 24px 0; }
.novel-admin { padding: 32px 0 60px; }
.novel-admin-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; margin-bottom: 30px; }
.novel-admin h1 { font-size: 30px; }
.novel-admin-form { max-width: 820px; display: grid; gap: 20px; margin: 30px 0; }
.novel-admin-form label { display: grid; gap: 6px; font-size: 14px; }
.novel-admin-form input:not([type="checkbox"]),.novel-admin-form textarea,.novel-admin-form select { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 5px; color: inherit; background: #fff; font: inherit; }
.novel-admin-form textarea { resize: vertical; }
.novel-admin-form .novel-check { display: flex; align-items: center; gap: 10px; }
.novel-admin-form .novel-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.novel-admin-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
.novel-admin-table th,.novel-admin-table td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--novel-line); }
.novel-table-scroll { overflow-x: auto; }
.novel-form-error { padding: 14px 18px; border: 1px solid #eac6bc; background: #fff6f3; color: #a44732; border-radius: 6px; }
.novel-success { padding: 12px 16px; background: #eef8f1; color: #34714c; border-radius: 6px; }
@media (min-width: 1400px) { .novel-container { width: 1160px; } }
@media (max-width: 900px) { .novel-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; } .novel-feature-copy { max-width: 430px; } }
@media (max-width: 640px) {
    .novel-container { width: calc(100% - 32px); } .novel-home { padding-top: 26px; } .novel-site h1 { font-size: 32px; }
    .novel-page-heading { display: block; } .novel-discovery { margin-top: 20px; gap: 12px; } .novel-search { width: 100%; } .novel-filters { gap: 8px; } .novel-filters a { padding: 4px 13px; }
    .novel-feature { padding: 22px 18px; gap: 18px; min-height: auto; align-items: start; } .novel-feature-cover { width: 94px; } .novel-feature .novel-cover-title { font-size: 20px; padding: 20px 8px 0; } .novel-feature-copy { padding: 0; min-width: 0; } .novel-feature-copy h2 { font-size: 25px; } .novel-feature-summary { -webkit-line-clamp: 3; } .novel-feature .secondary { display: none; } .novel-feature .novel-button { padding: 7px 14px; }
    .novel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; } .novel-cover-title { font-size: 23px; } .novel-section-heading h2 { font-size: 19px; } .novel-section-heading { align-items: start; } .novel-section-heading .novel-muted { max-width: 45%; text-align: right; }
    .novel-updates a { grid-template-columns: 100px 1fr 12px; padding: 12px; gap: 10px; } .novel-updates time { display: none; }
    .novel-book-intro { grid-template-columns: 105px minmax(0,1fr); gap: 20px; } .novel-book-intro > .novel-cover { height: auto; align-self: start; } .novel-book-intro .novel-cover-title { font-size: 20px; padding: 20px 8px 0; } .novel-book-info h1 { font-size: 27px; } .novel-book-info .novel-actions { gap: 8px; } .novel-book-info .novel-button { padding: 9px 12px; } .novel-book-meta { gap: 6px 10px; } .novel-book-meta span + span::before { padding-right: 10px; } .novel-synopsis { font-size: 14px; margin: 16px 0; } .novel-local-note { font-size: 11px; }
    .novel-chapter-list { grid-template-columns: 1fr; } .novel-chapter-list a { padding: 15px; }
    .novel-reading-bar { padding: 10px 16px; gap: 8px; flex-wrap: wrap; } .novel-reading-paper { width: calc(100% - 40px); padding-top: 32px; } .novel-reading-title h1 { font-size: 23px; } .novel-reading-title { margin-bottom: 32px; } .novel-chapter-navigation { gap: 8px; } .novel-chapter-navigation a,.novel-chapter-navigation .disabled { padding: 10px 2px; font-size: 12px; }
    .novel-admin-form .novel-form-row { grid-template-columns: 1fr; } .novel-admin-nav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .novel-card .novel-cover { transition: none; } }
