:root {
    --ink: #142239;
    --muted: #67758a;
    --orange: #ff6938;
    --paper: #ffffff;
    --line: #e1e7ee;
    --canvas: #f4f6f9;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.6;
    font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: #c83c11; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ed6d30; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: 2.5rem; letter-spacing: -.04em; line-height: 1.3; }
h2 { font-size: 1.6rem; letter-spacing: -.03em; }
h3 { font-size: 1rem; }
button { border: 0; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; min-height: 92px; gap: 32px; }
.header-top h1 { font-size: 1.55rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.55rem; font-weight: 850; white-space: nowrap; }
.brand-note { color: var(--muted); font-size: .9rem; border-left: 1px solid var(--line); padding-left: 30px; }
.reading-link { margin-left: auto; font-size: .9rem; font-weight: 700; }
.main-nav { display: flex; gap: 7px; justify-content: space-between; padding-bottom: 13px; }
.main-nav a { padding: 9px 12px; border-radius: 8px; font-size: .9rem; white-space: nowrap; }
.main-nav a span { margin-right: 7px; font-size: 1.05rem; }
.main-nav a.active { background: var(--ink); color: white; }
main.wrap { padding-top: 30px; }
main > section { margin-bottom: 56px; }
.hero { position: relative; min-height: 490px; overflow: hidden; border-radius: 20px; background: #14263b; color: white; }
.hero-slide { position: relative; display: none; min-height: 490px; }
.hero-slide.is-active { display: block; }
.hero-image { position: absolute; top: 0; right: 0; height: 100%; width: 76%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #102035 4%, #102035e8 30%, #10203542 73%, #10203528); }
.hero-copy { position: relative; z-index: 1; width: 58%; padding: 52px 54px 94px; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .15em; color: #d4491c; }
.hero .eyebrow { color: #ffab8e; margin-bottom: 25px; }
.pill { display: inline-block; padding: 4px 10px; border: 1px solid #ffffff55; border-radius: 5px; font-size: .8rem; }
.hero-copy h2 { font-size: 3.2rem; margin: 13px 0; line-height: 1.2; }
.hero-intro { color: #d9e2ed; font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.8em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 8px; font-size: .9rem; font-weight: 700; min-height: 46px; }
.primary { background: var(--orange); color: #142239; }
.primary:hover { background: #ff8b64; color: #142239; }
.light { background: #ffffff1c; border: 1px solid #ffffff60; color: white; }
.light:hover { color: white; background: #ffffff33; }
.outline { border: 1px solid #c5cdd8; background: var(--paper); }
.slider-controls { position: absolute; z-index: 2; bottom: 26px; left: 54px; display: flex; gap: 12px; align-items: center; }
.slider-controls > button { width: 34px; height: 34px; background: #ffffff18; color: white; border: 1px solid #ffffff44; border-radius: 50%; }
.slider-dots { display: flex; gap: 7px; }
.slider-dots button { width: 24px; height: 24px; background: transparent; position: relative; }
.slider-dots button::after { content: ""; width: 7px; height: 7px; border-radius: 8px; background: #ffffff66; position: absolute; inset: 8px; }
.slider-dots button[aria-pressed="true"]::after { background: #ff855a; width: 16px; left: 4px; }
.discovery-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-top: -20px; }
.discovery-strip h2 { margin-top: 6px; font-size: 1.25rem; }
.mood-links { display: flex; flex-wrap: wrap; gap: 9px; }
.mood-links a { background: white; padding: 12px 17px; border: 1px solid var(--line); border-radius: 8px; font-size: .88rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.section-heading p { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.section-icon { color: #e35425; margin-right: 10px; }
.more { color: #b73b15; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.comic-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.comic-card { min-width: 0; display: flex; flex-direction: column; }
.cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 10px; background: #ccd5df; }
.cover img { width: 100%; height: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .25s; color: #293d52; font-size: .85rem; }
.comic-card:hover .cover img { transform: scale(1.035); }
.status { position: absolute; bottom: 8px; right: 8px; background: #101e33df; color: white; padding: 3px 7px; font-size: .75rem; border-radius: 4px; }
.comic-card h3 { margin-top: 12px; height: 2.9em; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta, .author { color: var(--muted); font-size: .8rem; line-height: 1.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-chapter { margin-top: 6px; color: #b63d1b; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-intro { font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 3.2em; margin-top: 7px; }
.update-section { background: white; border: 1px solid var(--line); padding: 28px; border-radius: 14px; }
.updates { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
.updates article { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.updates article > a { margin-left: auto; max-width: 40%; font-size: .8rem; color: #b63d1b; }
.updates article div > a { font-weight: 700; }
.updates p { font-size: .8rem; color: var(--muted); }
.update-time { color: #7b8798; font-size: .8rem; white-space: nowrap; }
.rank-section { background: #eaf0f6; border-radius: 16px; padding: 32px; }
.ranking { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 45px; }
.ranking li { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid #ccd5e0; }
.rank-number { font-size: 2rem; font-weight: 850; color: #dc562b; font-style: italic; }
.ranking li > div > a { font-weight: 750; }
.ranking p { color: var(--muted); font-size: .8rem; }
.rank-chapter { margin-left: auto; font-size: .8rem; white-space: nowrap; }
.about-panel { max-width: 850px; padding-block: 10px; }
.about-panel h2 { font-size: 2rem; margin: 10px 0 18px; }
.about-panel p { color: var(--muted); line-height: 1.9; margin-bottom: 18px; }
.mobile-panel { padding: 36px; background: #16273e; color: white; display: flex; align-items: center; gap: 32px; border-radius: 18px; }
.mobile-panel > img { flex-shrink: 0; }
.mobile-panel .eyebrow { color: #ffaa87; }
.mobile-panel h2 { margin: 7px 0; }
.mobile-panel p, .mobile-panel small { color: #cbd6e6; }
.mobile-panel small { display: block; margin-top: 14px; font-size: .78rem; }
.mobile-panel .outline { background: transparent; color: white; border-color: #607089; }
.mobile-panel .more { color: #ffb095; }
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 42px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .5fr; gap: 60px; }
.footer-grid p { font-size: .9rem; color: var(--muted); margin-top: 15px; }
.footer-grid nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .9rem; }
.footer-grid nav:last-child { grid-template-columns: 1fr; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 35px; padding-block: 22px; color: var(--muted); font-size: .8rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .85rem; margin-bottom: 28px; }
.page-intro h1 { margin: 12px 0; }
.page-intro p { color: var(--muted); max-width: 780px; }
.feature-book { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 16px; background: #e4ebf3; }
.feature-book > img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #c8d4e0; }
.feature-book > div { padding: 32px; }
.feature-book h2 { font-size: 2rem; margin: 10px 0; }
.feature-book p { color: #526176; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 10px; background: white; align-items: center; }
.filters label { font-size: .85rem; display: flex; gap: 9px; align-items: center; }
input, select { padding: 8px 10px; border: 1px solid #bac5d3; border-radius: 5px; background: white; color: var(--ink); }
.filters [data-result-count] { font-size: .85rem; color: var(--muted); margin-left: auto; }
.pagination { margin-top: 35px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; color: var(--muted); font-size: .85rem; }
.pagination [aria-current] { background: #182c45; color: white; padding: 8px 17px; border-radius: 5px; }
.empty-message { padding: 35px 0; color: var(--muted); }
.detail-hero { display: grid; grid-template-columns: 260px 1fr; gap: 45px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.detail-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; background: #cbd6e0; }
.detail-hero h1 { margin: 10px 0; }
.alias { color: var(--muted); font-size: .85rem; }
.book-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: .88rem; margin: 20px 0; }
.book-facts div { display: flex; gap: 15px; min-width: 0; }
.book-facts dt { color: var(--muted); flex-shrink: 0; }
.book-facts dd { margin: 0; }
.detail-hero h2 { font-size: 1.1rem; margin-bottom: 8px; }
.synopsis { color: #526176; line-height: 1.9; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.chapter-grid a { background: white; border: 1px solid #d7dfe9; border-radius: 8px; padding: 19px; }
.chapter-grid a:hover { border-color: var(--orange); }
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.scene-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #cbd6e0; border-radius: 10px; }
figcaption { font-size: .8rem; color: var(--muted); padding: 10px 0; }
.back-row { margin-bottom: 40px; }
.text-page { max-width: 850px; min-height: 50vh; padding: 30px 0 50px; }
.text-page h1 { margin: 12px 0 25px; }
.text-page h2 { margin: 30px 0 14px; }
.text-page p { line-height: 2; color: #526176; margin-bottom: 24px; }
[data-history] a { display: block; border-top: 1px solid var(--line); padding: 15px 0; }
.notice { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #102035; color: white; padding: 12px 22px; border-radius: 8px; z-index: 20; max-width: 90vw; display: none; }
.skip-link { position: fixed; left: 16px; top: -100px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
