:root { --ink: #242134; --muted: #777386; --paper: #faf9fc; --accent: #7753d8; --line: #e9e5ef; --surface: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 "Microsoft YaHei", "PingFang SC", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, select { font: inherit; cursor: pointer; }
button, select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--surface); color: var(--ink); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #ecad43; outline-offset: 4px; }
img { max-width: 100%; display: block; }
img.failed { color: #686276; background: #e9e5f1; font-size: 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 34px; line-height: 1.35; }
h2 { font-size: 25px; line-height: 1.4; }
h3 { font-size: 17px; line-height: 1.5; }
.wrap { max-width: 1280px; margin: auto; padding-left: 28px; padding-right: 28px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; gap: 25px; min-height: 90px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand h1 { font-size: 26px; margin: 0; }
.brand-name { font-size: 26px; font-weight: 800; }
.logo { width: 43px; height: 43px; }
.header-note { color: var(--muted); font-size: 14px; flex: 1; }
.nav { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 14px; flex-wrap: wrap; }
.nav a { font-size: 14px; padding: 6px 10px; border-radius: 7px; }
.nav a[aria-current="page"] { background: #eee8fc; color: #6541c1; font-weight: 700; }
.button { display: inline-flex; justify-content: center; align-items: center; background: var(--accent); color: white; padding: 11px 22px; border-radius: 9px; font-size: 15px; font-weight: 700; }
.button:hover { color: white; background: #6240b7; }
.button.ghost { background: var(--surface); color: var(--accent); border: 1px solid #d6cbea; }
.small { padding: 8px 14px; font-size: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero { position: relative; margin-top: 32px; border-radius: 20px; overflow: hidden; background: #eee9f7; }
.slide { display: none; grid-template-columns: 46% 54%; min-height: 350px; }
.slide.active { display: grid; }
.hero-copy { padding: 35px 32px 70px; position: relative; z-index: 1; }
.eyebrow { display: block; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; margin-bottom: 12px; }
.hero h2 { font-size: 36px; margin-bottom: 15px; }
.hero-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
.hero-meta { color: #736387; font-size: 13px; }
.hero-image { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; background: #ded5ee; }
.slider-controls { position: absolute; bottom: 17px; left: 32px; display: flex; gap: 7px; }
.slider-controls button { font-size: 12px; padding: 4px 9px; }
.slider-controls button[aria-pressed="true"] { background: var(--accent); color: white; }
.ribbon { display: flex; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ribbon span { flex: 1; color: var(--muted); }
.section { margin: 45px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading > a { font-size: 14px; color: var(--muted); white-space: nowrap; }
.section-icon { color: var(--accent); margin-right: 10px; }
.grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.cover-link { position: relative; display: block; }
.cover { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #e8e3ef; }
.badge { position: absolute; bottom: 9px; left: 9px; padding: 2px 7px; background: #272237d9; color: white; font-size: 12px; border-radius: 5px; }
.card-body { padding: 14px; }
.card h3 { min-height: 51px; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.muted { color: var(--muted); }
.card p { font-size: 13px; margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 13px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 44px; color: var(--muted); }
.chapter-link { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 12px; color: var(--accent); padding-top: 8px; }
.tinted { padding: 24px; background: #f0edf6; border-radius: 16px; }
.rank-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.rank-item { display: flex; gap: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.rank-number { font-size: 34px; color: var(--accent); font-weight: 800; font-style: italic; }
.rank-item h3, .rank-item p { margin: 0; }
.rank-item p { font-size: 14px; color: var(--muted); }
.about-panel { padding: 30px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; }
.mobile-panel { display: flex; gap: 30px; align-items: center; padding: 34px; margin: 45px 0; background: #eae4f7; border-radius: 18px; }
.mobile-panel h2 { font-size: 30px; margin-bottom: 10px; }
.app-code { width: 120px; flex-shrink: 0; }
.mobile-panel p { font-size: 14px; }
.mobile-panel .meta { margin: 12px 0 0; }
.site-footer { background: #242131; color: #d7d2e1; padding: 40px 0 20px; margin-top: 45px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.footer-brand h2 { margin: 10px 0; }
.footer-brand p { font-size: 14px; max-width: 440px; }
.footer-grid nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; align-content: start; font-size: 14px; }
.copyright { text-align: center; font-size: 12px; color: #aaa2ba; padding: 25px 20px 0; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; padding: 24px 0; }
.page-intro { background: #eee8f7; padding: 28px; border-radius: 14px; }
.page-intro p { margin-bottom: 0; }
.feature { display: grid; grid-template-columns: 280px 1fr; gap: 25px; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.feature > div { padding: 20px; }
.feature-image { width: 100%; height: 100%; aspect-ratio:16/9; object-fit:cover; background:#e9e2f1; }
.filters { display:flex; gap:20px; margin-bottom:20px; flex-wrap:wrap; }
.chips { display:flex; flex-wrap:wrap; gap:12px; }
.chips a { padding:7px 13px; border:1px solid var(--line); border-radius:20px; font-size:14px; }
.detail-top { display:grid; grid-template-columns:240px 1fr; gap:36px; padding:30px; background:var(--surface); border-radius:18px; border:1px solid var(--line); }
.detail-cover { width:240px; aspect-ratio:2/3; object-fit:cover; border-radius:10px; background:#e9e2f1; }
.facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 20px; font-size:14px; }
.facts > div { display:flex; gap:12px; }
dt { color:var(--muted); flex-shrink:0; }
dd { margin:0; }
.chapter-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.chapter-grid a { padding:18px; background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.gallery-image { width:100%; max-height:380px; aspect-ratio:16/9; object-fit:cover; background:#e9e2f1; border-radius:12px; }
.prose { max-width:850px; padding:25px 0; }
.notice { position:fixed; bottom:18px; left:50%; transform:translateX(-50%); padding:12px 20px; border-radius:8px; background:#242131; color:white; display:none; z-index:50; }
[hidden] { display:none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } * { transition:none !important; } }
