:root { --primary: #c06c84; --secondary: #6c5b7b; --accent: #f67280; --bg: #faf8f5; --card-bg: #fff; --text: #2d2d2d; --text-light: #8e8e93; --footer-bg: #2d2d2d; --border: #e8e8e8;  --btn-disabled-bg: #f3eee6; --btn-disabled-color: #333333; --nav-height: 3.6rem; --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; --font-size-base: 1rem; }
:root.dark { --bg: #1a1a1a; --card-bg: #2d2d2d; --text: #e8e8e8; --text-light: #a8a8a8; --border: #404040; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); transition: background 0.3s, color 0.3s; margin: 0; }
html { margin: 0; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.navbar { position: sticky; height: var(--nav-height); top: 0; background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 0rem 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-left { display: flex; align-items: center; gap: 0.5rem; }
.back-btn { margin-right: 0rem; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: var(--nav-height); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; }
main { min-height: 60vh; padding: 0rem 0; }
.hero { text-align: center; padding: 3rem 0 0 0; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary); }
.hero p { font-size: 1.6rem; }
.section-title { font-size: 1.8rem; margin: 2rem 0 1.5rem; color: var(--secondary); }
.novel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.novel-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.novel-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.novel-cover { width: 100%; aspect-ratio: 1; object-fit: cover; }
.novel-info { padding: 0.5rem 1rem 1rem 1rem; }
.novel-title { font-size: 1.1rem; color: var(--text); font-weight: 600; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.novel-synopsis { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.tag { background: rgba(192, 108, 132, 0.1); color: var(--primary); padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; }
.btn { font-family: var(--font-family); font-size: var(--font-size-base); display: inline-block; padding: 0.5rem 1rem; background: var(--primary); color: #fff; border-radius: 8px; font-weight: 600; transition: background 0.2s; border: none; cursor: pointer; }
.btn.large { padding: 0.75rem 1.5rem; }
.btn:hover { background: var(--accent); text-decoration: none; }
.btn:disabled { background: var(--btn-disabled-bg); color: var(--btn-disabled-color); }
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.genre-card { background: var(--card-bg); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; display: flex; overflow: hidden; }
.genre-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.genre-cover { width: 30%; min-height: 100%; object-fit: cover; flex-shrink: 0; }
.genre-info { padding: 1rem 1.2rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.genre-card h3 { color: var(--secondary); margin-bottom: 0.5rem; }
.genre-card p { color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.genre-card span { margin-top: 0.5rem }
.footer { background: var(--footer-bg); color: #fff; padding: 2rem 0 1rem; margin-top: 4rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 1.5rem; }
.footer a { color: #fff; opacity: 0.8; }
.footer a:hover { opacity: 1; }
.copyright { text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.7; font-size: 0.9rem; }
.breadcrumb { margin: 1rem auto; max-width: 1100px; align-items: center; display: flex; padding: 0 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: nowrap; gap: 0.5rem; font-size: 0.9rem; color: var(--text-light); overflow: hidden; }
.breadcrumb li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
.breadcrumb li:first-child { flex-shrink: 0; }
.breadcrumb li:not(:last-child)::after { content: ' › '; margin-left: 0.5rem; }
.book-header { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; margin: 3rem 0 2rem 0; }
.book-cover-img { width: 100%; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.book-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.meta-pill { background: var(--card-bg); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; border: 1px solid var(--border); }
.chapter-toc { background: var(--card-bg); padding: 0.1rem 1.5rem 1.5rem 1.5rem; border-radius: 12px; margin: 2rem 0; }
.chapter-list { list-style: none; }
.chapter-item { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.chapter-item:first-child { padding-top: 0rem }
.chapter-item:last-child { border-bottom: none; }
.chapter-item-head { display: flex; justify-content: space-between; align-items: center; }
.chapter-number { font-weight: 500; }
.chapter-words { color: var(--text-light); font-size: 0.85rem; }
.chapter-title { margin-top: 0.25rem; color: var(--text-light); font-size: 0.9rem; }
.chapter-header { position: sticky; top: 0; background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 0; z-index: 100; }
.chapter-header .container { display: flex; justify-content: space-between; align-items: center; }
.chapter-controls { display: flex; gap: 0.5rem; align-items: center; }
.icon-btn { background: none; border: none; color: var(--text); cursor: pointer; padding: 0.5rem; border-radius: 8px; font-size: 1.2rem; }
.icon-btn:hover { background: var(--bg); }
.chapter-content { max-width: 720px; margin: 0rem auto; font-size: 1.1rem; line-height: 1.8; }
.chapter-content p { margin-bottom: 1.5rem; }
.chapter-nav { display: flex; justify-content: space-between; margin: 1rem 0 0.5rem 0; padding: 1.5rem 0; }
.sidebar { position: fixed; top: 0; left: -320px; width: 320px; height: 100vh; background: var(--card-bg); border-right: 1px solid var(--border); overflow-y: auto; padding: 1.5rem; transition: left 0.3s; z-index: 200; }
.sidebar.open { left: 0; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; display: none; }
.overlay.open { display: block; }
.meta { color: var(--text-light); font-size: 0.85rem; }
.chapter-list .active a { color: var(--primary); font-weight: 600; }
.novel-title a, .genre-card a { color: inherit; }
.novel-title a:hover, .genre-card a:hover { text-decoration: none; color: var(--primary); }
.footer-brand { margin-bottom: 0.5rem; }
.footer-tagline { opacity: 0.8; font-size: 0.9rem; }
.footer-heading { margin-bottom: 0.75rem; }
.footer-link-list { display: flex; flex-direction: column; gap: 0.5rem; }
.hub-desc { font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-light); }
.btn-mt { margin-top: 1rem; }
.synopsis-section { background: var(--card-bg); padding: 0.1rem 1.5rem 1.5rem 1.5rem; border-radius: 12px; margin: 2rem 0; }
.synopsis-text { line-height: 1.8; }
.chapter-page-title { text-align: center; margin: 2rem 0; }
.font-controls { display: flex; gap: 0.5rem; justify-content: center; margin: 2rem 0; }
.font-ctrl { width: 2rem; height: 2rem; line-height: 1rem; }
.font-ctrl-sm { font-size: 0.9rem; }
.font-ctrl-md { font-size: 1.1rem; }
.font-ctrl-lg { font-size: 1.3rem; }
.load-more-con { text-align: center; margin: 2rem 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.editorial-article { max-width: 800px; margin: 0 auto; padding: 1rem 0 2rem; }
.editorial-article .section-title { font-size: 2.2rem; line-height: 1.3; margin-bottom: 0.75rem; }
.editorial-meta { display: flex; gap: 1rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.editorial-section { margin-bottom: 2.5rem; }
.editorial-section h2 { font-size: 1.4rem; color: var(--secondary); margin-bottom: 1rem; }
.editorial-section p { font-size: 1.05rem; line-height: 1.85; color: var(--text); margin-bottom: 1rem; }
.editorial-section p:last-child { margin-bottom: 0; }
.editorial-novel-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.editorial-novel-item { display: flex; gap: 0; background: var(--card-bg); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; cursor: pointer; }
.editorial-novel-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.editorial-novel-cover { flex-shrink: 0; width: 120px; display: block; }
.editorial-novel-cover img { width: 120px; height: 100%; object-fit: cover; display: block; }
.editorial-novel-body { flex: 1; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.editorial-novel-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--secondary); }
.editorial-novel-body p { font-size: 0.95rem; line-height: 1.7; color: var(--text-light); margin: 0; }
@media (max-width: 768px) { .book-meta {justify-content: center;} .book-cover-img { width: 70%; margin: 0 auto; display: block; } .book-header { grid-template-columns: 1fr; text-align: center; } .nav-links { display: none; } .novel-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; } .genre-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 1.8rem; } .editorial-article .section-title { font-size: 1.6rem; } .editorial-novel-item { flex-direction: column; } .editorial-novel-cover { width: 100%; height: 180px; } .editorial-novel-cover img { width: 100%; height: 180px; } .editorial-novel-body { padding: 1rem 1.25rem 1.25rem; } }
