:root {
    --ink: #182437;
    --muted: #647085;
    --yellow: #ffda55;
    --paper: #f5f7fa;
    --line: #e4e8ef;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.75 "Microsoft YaHei", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, .button { cursor: pointer; border: 0; border-radius: 9px; padding: 11px 20px; background: var(--yellow); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
a:hover { color: #9b6500; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #b88100; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 850; }
.brand img { width: 46px; height: 46px; }
.muted, small { color: var(--muted); }
small { font-size: 14px; }
.navigation { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding-bottom: 14px; }
.navigation a { padding: 10px 6px; border-radius: 8px; text-align: center; font-size: 14px; display: flex; justify-content: center; gap: 7px; align-items: center; }
.navigation a[aria-current="page"] { background: var(--yellow); color: var(--ink); font-weight: 700; }
.icon { display: inline-block; min-width: 1.3em; text-align: center; }
.hero { margin-top: 36px; background: #14253a; color: white; border-radius: 22px; display: grid; grid-template-columns: 1.1fr 1fr; padding: 42px; gap: 30px; overflow: hidden; }
.eyebrow { color: #b18a20; font-size: 14px; letter-spacing: 2px; font-weight: 700; }
.hero .eyebrow { color: var(--yellow); }
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.25; margin: 14px 0 20px; }
h2 { margin: 0; font-size: 26px; line-height: 1.4; }
h3 { margin: 10px 0 5px; font-size: 18px; }
p { margin: 12px 0; }
.hero p { color: #c2cbd6; max-width: 520px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.hero-art a:nth-child(2) { transform: translateY(16px); }
.hero-art img { width: 100%; aspect-ratio: 3/4; object-fit: cover; height: auto; border-radius: 12px; max-height: 285px; background: #32455a; }
.hero-art strong { display: block; font-size: 14px; margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.outline { border: 1px solid var(--line); background: white; }
section { margin-block: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cover { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; background: #e0e6ee; }
.card { min-width: 0; }
.card h3 { font-size: 16px; }
.card small { display: block; }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category { background: white; border: 1px solid var(--line); padding: 24px; border-radius: 14px; }
.category > .icon { background: #fff4c8; font-size: 25px; border-radius: 12px; padding: 6px; }
.category p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: white; border: 1px solid var(--line); padding: 28px; border-radius: 16px; }
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { border-bottom: 1px solid var(--line); padding: 15px 0; }
.rank a { display: flex; gap: 16px; align-items: center; }
.rank b { font-size: 26px; color: #af810b; }
.rank small { display: block; }
.update-row { display: grid; grid-template-columns: 100px 1fr auto; padding: 17px 0; gap: 14px; border-bottom: 1px solid var(--line); }
.feature { background: #e5edf5; border-radius: 18px; display: grid; grid-template-columns: 260px 1fr; gap: 38px; padding: 32px; align-items: center; }
.feature img { width: 100%; aspect-ratio: 3/4; height: auto; object-fit: cover; border-radius: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps article { padding: 24px; border-top: 3px solid #d9ad34; background: white; }
.steps b { color: #9d760c; font-size: 32px; }
.shelf { border: 1px dashed #bbc7d4; padding: 28px; border-radius: 14px; background: white; }
.shelf ul { padding-left: 24px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 700; cursor: pointer; }
.about { border-left: 5px solid var(--yellow); padding: 10px 0 10px 28px; }
.subscribe { background: #172a40; color: white; border-radius: 18px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.subscribe p { color: #c3cedb; }
.subscribe img { width: 110px; height: 110px; }
footer { background: white; border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.breadcrumbs { margin: 28px 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.catalog-intro { padding: 32px; background: #e8edf4; border-radius: 16px; }
.chapter-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chapter-item { padding: 22px; background: white; border-radius: 12px; border: 1px solid var(--line); }
.reader { max-width: 820px; margin: 36px auto 64px; }
.reader-header { text-align: center; }
.reader-header h1 { font-size: 34px; }
.reading-note { background: #fff5d4; padding: 20px; border-radius: 12px; margin: 26px 0; }
.story { background: white; border: 1px solid var(--line); padding: 32px; border-radius: 14px; }
.story figure { margin: 28px 0; }
.story img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; background: #e8edf4; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.story p { line-height: 2.1; }
.chapter-end { text-align: center; padding: 28px 0; }
.status { min-height: 1.75em; }
@media (max-width: 1000px) {
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .navigation { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero { padding: 30px; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .wrap { width: calc(100% - 28px); }
    .topbar { padding: 18px 0; }
    .topbar > small { display: none; }
    .brand { font-size: 21px; }
    .navigation { gap: 5px; }
    .navigation a { font-size: 14px; padding: 9px 2px; gap: 2px; }
    .hero { grid-template-columns: 1fr; padding: 26px; margin-top: 26px; gap: 22px; }
    .hero-art img { max-height: 210px; }
    section { margin-block: 44px; }
    h2 { font-size: 22px; }
    .section-head { align-items: flex-start; }
    .section-head > a { flex-shrink: 0; font-size: 14px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
    .split, .steps, .chapter-list { grid-template-columns: 1fr; }
    .category { padding: 18px; }
    .feature { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
    .feature img { max-height: 330px; aspect-ratio: 4/3; }
    .panel { padding: 20px; }
    .update-row { grid-template-columns: 64px 1fr; gap: 8px; }
    .update-row > small:last-child { grid-column: 2; }
    .subscribe { padding: 26px; flex-direction: column; align-items: flex-start; }
    .story { padding: 20px; }
    .reader-header h1 { font-size: 28px; }
}
