:root {
    --ink: #14213d;
    --ink-soft: #3f4963;
    --paper: #f7f8fb;
    --white: #ffffff;
    --coral: #ff695d;
    --coral-dark: #e64f45;
    --sun: #ffc857;
    --mint: #4ec5a5;
    --sky: #dceaff;
    --line: #e1e5ee;
    --shadow: 0 18px 50px rgba(20, 33, 61, 0.10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

body::before {
    position: fixed;
    z-index: -1;
    top: -180px;
    right: -140px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(255, 105, 93, 0.08);
    content: "";
    filter: blur(5px);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
}

.container,
.header-inner,
.hero,
.trust-strip,
.content-section,
.editor-section,
.ranking-section,
.split-showcase,
.timeline-section,
.completed-section,
.guide-section,
.about-section,
.app-section,
.category-hero,
.catalog-section,
.category-note,
.reader-page,
.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.section-space {
    margin-top: 88px;
    margin-bottom: 88px;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(225, 229, 238, 0.85);
    background: rgba(247, 248, 251, 0.94);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 30px;
}

.brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 15px 15px 15px 4px;
    color: var(--white);
    background: var(--coral);
    box-shadow: 0 10px 24px rgba(255, 105, 93, 0.25);
    font-size: 24px;
    font-weight: 900;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-copy strong {
    font-size: 19px;
}

.brand-copy small {
    color: #7d8496;
    font-size: 12px;
}

.main-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.nav-link {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 14px;
    color: #596177;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--coral-dark);
    background: #fff0ee;
}

.nav-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
}

.hero {
    margin-top: 54px;
}

.hero-grid {
    display: grid;
    overflow: hidden;
    min-height: 560px;
    grid-template-columns: 0.95fr 1.05fr;
    border-radius: 34px;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.hero-copy {
    display: flex;
    padding: 72px 60px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--coral);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.hero-lead {
    max-width: 500px;
    margin: 24px 0 30px;
    color: #d9deea;
    font-size: 19px;
}

.search-box {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
}

.search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
}

.search-box input::placeholder {
    color: #b8c0d2;
}

.search-box button {
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: var(--coral);
    cursor: pointer;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--coral);
    box-shadow: 0 10px 20px rgba(255, 105, 93, 0.2);
}

.button-secondary {
    border-color: var(--line);
    color: var(--ink);
    background: var(--white);
}

.hero .button-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.button-dark {
    color: var(--white);
    background: var(--ink);
}

.button-light {
    color: var(--ink);
    background: var(--white);
}

.button-small {
    min-height: 40px;
    padding: 7px 15px;
    color: var(--white);
    background: var(--ink);
    font-size: 14px;
}

.hero-feature {
    position: relative;
    min-height: 560px;
}

.hero-feature > img {
    height: 100%;
}

.hero-feature::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(20, 33, 61, 0.92) 100%);
    content: "";
}

.feature-caption {
    position: absolute;
    z-index: 1;
    right: 36px;
    bottom: 34px;
    left: 36px;
    color: var(--white);
}

.feature-caption span {
    color: var(--sun);
    font-size: 13px;
    font-weight: 800;
}

.feature-caption strong {
    display: block;
    margin: 5px 0;
    font-size: 30px;
}

.feature-caption p {
    margin: 0 0 8px;
    color: #dce1ec;
}

.feature-caption a {
    color: var(--sun);
    font-weight: 800;
}

.trust-strip {
    display: grid;
    padding: 26px 34px;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(20, 33, 61, 0.05);
}

.trust-strip div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
    border-right: 0;
}

.trust-strip strong {
    color: var(--coral);
    font-size: 26px;
}

.trust-strip span {
    color: var(--ink-soft);
    font-size: 14px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.section-heading h2,
.editor-section h2,
.ranking-section h2,
.split-showcase h2,
.guide-section h2,
.about-section h2,
.app-section h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.section-heading > p {
    max-width: 460px;
    margin: 0;
    color: var(--ink-soft);
}

.text-link {
    flex: 0 0 auto;
    color: var(--coral-dark);
    font-weight: 800;
}

.book-grid {
    display: grid;
    gap: 24px;
}

.book-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.book-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.cover-link {
    position: relative;
    display: block;
}

.book-card img,
.poster-card img {
    aspect-ratio: 3 / 4;
}

.cover-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(20, 33, 61, 0.84);
    font-size: 12px;
    font-weight: 800;
}

.book-info {
    padding: 17px 18px 19px;
}

.book-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.book-info p {
    margin: 0;
    color: #7b8294;
    font-size: 14px;
}

.search-empty {
    padding: 30px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--ink-soft);
    text-align: center;
}

.editor-section {
    padding: 54px;
    border-radius: 30px;
    color: var(--white);
    background: var(--ink);
}

.light-heading > p {
    color: #bfc6d5;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.editor-card {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 220px;
    grid-template-columns: 180px 1fr;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
}

.editor-card img {
    height: 100%;
}

.editor-card > div {
    padding: 26px 22px;
}

.editor-card h3 {
    margin: 4px 0 8px;
    font-size: 22px;
}

.editor-card p {
    margin: 0 0 10px;
    color: #c7cedc;
    font-size: 14px;
}

.editor-card a {
    color: var(--sun);
    font-weight: 800;
}

.editor-card > div > span {
    color: #8fdcc8;
    font-size: 13px;
}

.editor-number {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    color: var(--ink);
    background: var(--sun);
    font-size: 12px;
    font-weight: 900;
}

.ranking-section {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 64px;
    align-items: center;
}

.ranking-intro p {
    margin: 18px 0 26px;
    color: var(--ink-soft);
}

.rank-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    padding: 18px 20px;
    grid-template-columns: 52px 1fr 30px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    gap: 14px;
}

.rank-list li:first-child {
    border-radius: 16px 16px 0 0;
    background: #fff0ee;
}

.rank-number {
    color: var(--coral);
    font-size: 24px;
    font-weight: 900;
}

.rank-list a {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.rank-list small {
    color: #82899b;
}

.trend {
    color: var(--mint);
    font-weight: 900;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    display: grid;
    min-height: 150px;
    padding: 26px;
    grid-template-columns: 58px 1fr 28px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    gap: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateX(5px);
    border-color: var(--coral);
}

.category-icon,
.category-hero-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    background: var(--coral);
    font-size: 25px;
    font-weight: 900;
}

.category-card:nth-child(2n) .category-icon {
    background: var(--ink);
}

.category-card:nth-child(3n) .category-icon {
    color: var(--ink);
    background: var(--sun);
}

.category-card h3 {
    margin: 0 0 4px;
    font-size: 21px;
}

.category-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.category-arrow {
    font-size: 22px;
}

.split-showcase {
    display: grid;
    overflow: hidden;
    min-height: 520px;
    grid-template-columns: 0.8fr 1.2fr;
    border-radius: 30px;
    background: #ffdad6;
}

.showcase-copy {
    display: flex;
    padding: 54px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.showcase-copy p {
    margin: 18px 0 26px;
    color: var(--ink-soft);
}

.showcase-stack {
    position: relative;
    min-height: 520px;
}

.stack-card {
    position: absolute;
    display: block;
    overflow: hidden;
    width: 48%;
    border: 7px solid var(--white);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.stack-card img {
    aspect-ratio: 3 / 2;
}

.stack-card span {
    display: block;
    padding: 8px 10px;
    font-weight: 800;
}

.stack-1 {
    top: 40px;
    left: 4%;
    transform: rotate(-5deg);
}

.stack-2 {
    z-index: 2;
    top: 170px;
    left: 29%;
    transform: rotate(4deg);
}

.stack-3 {
    top: 55px;
    right: 2%;
    transform: rotate(7deg);
}

.story-timeline {
    position: relative;
    padding-left: 40px;
}

.story-timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 2px;
    background: var(--line);
    content: "";
}

.timeline-item {
    position: relative;
    display: grid;
    padding: 24px 0;
    grid-template-columns: 60px 1fr;
    border-bottom: 1px solid var(--line);
    gap: 24px;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    margin-left: -48px;
    place-items: center;
    border: 5px solid var(--paper);
    border-radius: 50%;
    color: var(--white);
    background: var(--coral);
    font-weight: 900;
}

.timeline-item small {
    color: var(--coral-dark);
    font-weight: 800;
}

.timeline-item h3 {
    margin: 2px 0 7px;
    font-size: 24px;
}

.timeline-item p {
    max-width: 720px;
    margin: 0 0 7px;
    color: var(--ink-soft);
}

.timeline-item a {
    font-weight: 800;
}

.completed-section {
    display: grid;
    padding: 48px;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    border-radius: 30px;
    color: var(--white);
    background: linear-gradient(140deg, #192a4d, #0f1830);
    gap: 38px;
}

.completed-banner h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.2;
}

.completed-banner p {
    color: #c5ccda;
}

.poster-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.poster-card {
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
}

.poster-card .cover-badge {
    display: none;
}

.poster-card .book-info {
    padding: 10px;
    color: var(--ink);
}

.poster-card .book-info h3 {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-card .book-info p {
    font-size: 12px;
}

.guide-section {
    display: grid;
    grid-template-columns: 0.42fr 1.58fr;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
}

.guide-visual {
    display: flex;
    min-height: 380px;
    padding: 34px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 27px 0 0 27px;
    color: var(--white);
    background: var(--coral);
}

.guide-visual strong {
    display: grid;
    width: 128px;
    height: 128px;
    margin: 14px 0;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 44px 44px 44px 10px;
    font-size: 66px;
}

.guide-visual span,
.guide-visual small {
    letter-spacing: 0.2em;
}

.guide-content {
    padding: 54px;
}

.guide-steps {
    display: grid;
    margin-top: 34px;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.guide-steps > div > span {
    color: var(--coral);
    font-size: 24px;
    font-weight: 900;
}

.guide-steps h3 {
    margin: 8px 0;
}

.guide-steps p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.about-section {
    display: grid;
    padding: 58px;
    grid-template-columns: 0.75fr 1.25fr;
    border-radius: 30px;
    background: var(--sky);
    gap: 55px;
}

.about-copy p {
    margin-top: 0;
    color: var(--ink-soft);
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.about-values span {
    padding: 7px 13px;
    border: 1px solid rgba(20, 33, 61, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 800;
}

.app-section {
    display: flex;
    padding: 55px 70px;
    align-items: center;
    justify-content: space-between;
    border-radius: 30px;
    color: var(--white);
    background: var(--coral);
    gap: 50px;
}

.app-copy {
    max-width: 670px;
}

.app-copy .section-kicker {
    color: #ffe4b0;
}

.app-copy p {
    margin: 18px 0 25px;
    color: #fff2f0;
}

.app-copy small {
    display: block;
    margin-top: 12px;
    color: #ffe6e2;
}

.qr-card {
    display: flex;
    width: 210px;
    flex: 0 0 210px;
    padding: 18px;
    flex-direction: column;
    align-items: center;
    border-radius: 22px;
    color: var(--ink);
    background: var(--white);
}

.qr-pattern {
    display: grid;
    width: 150px;
    height: 150px;
    margin-bottom: 12px;
    place-items: center;
    border: 12px dotted var(--ink);
    background: repeating-linear-gradient(45deg, var(--ink) 0 6px, var(--white) 6px 12px);
}

.qr-pattern span {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    background: var(--coral);
    font-size: 34px;
    font-weight: 900;
}

.qr-card small {
    color: #7c8497;
}

.breadcrumbs {
    display: flex;
    margin-top: 34px;
    align-items: center;
    gap: 9px;
    color: #7b8294;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--coral-dark);
}

.category-hero {
    display: flex;
    min-height: 330px;
    padding: 56px 64px;
    align-items: center;
    justify-content: space-between;
    border-radius: 30px;
    color: var(--white);
    background: var(--ink);
    gap: 50px;
}

.category-hero > div {
    max-width: 790px;
}

.category-hero .category-hero-icon {
    float: left;
    margin-right: 18px;
}

.category-hero h1 {
    clear: both;
    margin: 25px 0 10px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.1;
}

.category-hero p {
    margin: 0;
    color: #cbd1de;
    font-size: 18px;
}

.category-hero aside {
    display: flex;
    width: 190px;
    height: 190px;
    flex: 0 0 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.category-hero aside strong {
    color: var(--sun);
    font-size: 36px;
}

.category-hero aside span {
    color: #cbd1de;
    font-size: 14px;
}

.catalog-list {
    display: grid;
    gap: 22px;
}

.catalog-item {
    display: grid;
    overflow: hidden;
    min-height: 270px;
    grid-template-columns: 205px 1fr;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
}

.catalog-cover img {
    height: 100%;
    aspect-ratio: 3 / 4;
}

.catalog-info {
    display: flex;
    padding: 30px 34px;
    flex-direction: column;
}

.catalog-meta {
    display: flex;
    gap: 10px;
}

.catalog-meta span {
    padding: 4px 9px;
    border-radius: 8px;
    color: var(--coral-dark);
    background: #fff0ee;
    font-size: 12px;
    font-weight: 800;
}

.catalog-info h2 {
    margin: 12px 0 8px;
    font-size: 28px;
}

.catalog-info p {
    margin: 0;
    color: var(--ink-soft);
}

.catalog-footer {
    display: flex;
    margin-top: auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.catalog-footer time {
    color: #82899b;
    font-size: 14px;
}

.category-note {
    display: flex;
    padding: 38px 42px;
    align-items: center;
    border-radius: 24px;
    background: #fff0ee;
    gap: 26px;
}

.category-note h2 {
    margin: 0 0 6px;
}

.category-note p {
    margin: 0;
    color: var(--ink-soft);
}

.reader-page {
    max-width: 980px;
}

.reader-header {
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    text-align: center;
}

.reader-category {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--coral-dark);
    background: #fff0ee;
    font-size: 14px;
    font-weight: 800;
}

.reader-header h1 {
    margin: 18px 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.25;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    color: #7d8496;
    font-size: 14px;
}

.reader-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.favorite-button.is-saved {
    color: var(--ink);
    background: var(--sun);
}

.reading-note {
    display: flex;
    padding: 24px 28px;
    margin: 28px 0 44px;
    border-left: 5px solid var(--mint);
    border-radius: 14px;
    background: #e7f8f3;
    gap: 16px;
}

.reading-note > span {
    color: #239679;
    font-size: 24px;
}

.reading-note h2 {
    margin: 0 0 4px;
    font-size: 19px;
}

.reading-note p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.chapter-content {
    overflow: hidden;
    border-radius: 24px;
    background: #0f1525;
}

.chapter-opening,
.chapter-end {
    padding: 62px 40px;
    color: var(--white);
    text-align: center;
}

.chapter-opening span {
    color: var(--sun);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.chapter-opening h2,
.chapter-end h2 {
    margin: 10px 0;
    font-size: 32px;
}

.chapter-opening p,
.chapter-end p {
    max-width: 650px;
    margin: 0 auto;
    color: #c7cddd;
}

.comic-panel {
    margin: 0;
    background: var(--white);
}

.comic-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
}

.comic-panel figcaption {
    padding: 17px 24px 26px;
    color: var(--ink-soft);
    background: var(--white);
    text-align: center;
}

.chapter-end > span {
    color: var(--sun);
    font-size: 34px;
}

.chapter-nav {
    display: grid;
    margin-top: 30px;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 12px;
}

.chapter-nav > a,
.chapter-disabled {
    display: flex;
    min-height: 88px;
    padding: 14px 18px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.chapter-nav > a:last-child,
.chapter-nav > span:last-child {
    align-items: flex-end;
    text-align: right;
}

.chapter-nav small {
    color: #7d8496;
}

.chapter-directory {
    align-items: center;
    color: var(--white);
    background: var(--ink) !important;
    font-weight: 800;
}

.chapter-disabled {
    color: #a1a7b5;
}

.site-footer {
    margin-top: 88px;
    color: #cbd1de;
    background: #0f1830;
}

.footer-inner {
    display: grid;
    padding-top: 48px;
    padding-bottom: 30px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand strong {
    color: var(--white);
    font-size: 20px;
}

.footer-brand p {
    margin: 3px 0 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--sun);
}

.copyright {
    padding-top: 24px;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    color: #8f98ad;
    font-size: 13px;
    text-align: center;
}

.back-top {
    position: fixed;
    z-index: 40;
    right: 24px;
    bottom: 24px;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--coral);
    box-shadow: var(--shadow);
    cursor: pointer;
    font-weight: 900;
}

.back-top.is-visible {
    display: block;
}

@media (max-width: 1080px) {
    .brand-copy small {
        display: none;
    }

    .nav-link {
        padding: 8px;
        font-size: 13px;
    }

    .nav-icon {
        display: none;
    }

    .hero-copy {
        padding: 50px 38px;
    }

    .editor-section,
    .completed-section {
        padding: 38px;
    }

    .poster-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .poster-card:nth-child(n + 4) {
        display: none;
    }
}

@media (max-width: 820px) {
    .section-space {
        margin-top: 64px;
        margin-bottom: 64px;
    }

    .header-inner {
        min-height: 72px;
        justify-content: space-between;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 20px;
        left: 20px;
        display: none;
        max-height: calc(100vh - 100px);
        padding: 12px;
        grid-template-columns: repeat(2, 1fr);
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
    }

    .nav-icon {
        display: grid;
    }

    .nav-link {
        justify-content: flex-start;
        font-size: 14px;
    }

    .hero-grid,
    .ranking-section,
    .split-showcase,
    .completed-section,
    .guide-section,
    .about-section {
        grid-template-columns: 1fr;
    }

    .hero-feature {
        min-height: 420px;
    }

    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
    }

    .trust-strip div:nth-child(2) {
        border-right: 0;
    }

    .book-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .showcase-copy {
        padding: 42px;
    }

    .showcase-stack {
        min-height: 450px;
    }

    .completed-section {
        gap: 28px;
    }

    .guide-visual {
        min-height: 280px;
        border-radius: 27px 27px 0 0;
    }

    .about-section {
        gap: 28px;
    }

    .app-section {
        padding: 42px;
    }

    .category-hero {
        padding: 44px;
    }

    .category-hero aside {
        display: none;
    }
}

@media (max-width: 600px) {
    .container,
    .header-inner,
    .hero,
    .trust-strip,
    .content-section,
    .editor-section,
    .ranking-section,
    .split-showcase,
    .timeline-section,
    .completed-section,
    .guide-section,
    .about-section,
    .app-section,
    .category-hero,
    .catalog-section,
    .category-note,
    .reader-page,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

    .hero {
        margin-top: 32px;
    }

    .hero-grid {
        min-height: auto;
        border-radius: 24px;
    }

    .hero-copy {
        padding: 42px 24px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .search-box {
        flex-wrap: wrap;
    }

    .search-box input {
        flex-basis: 75%;
    }

    .search-box button {
        width: 100%;
    }

    .hero-feature {
        min-height: 350px;
    }

    .feature-caption {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }

    .trust-strip {
        padding: 20px 12px;
    }

    .trust-strip div {
        flex-direction: column;
        gap: 0;
    }

    .trust-strip div:nth-child(3) {
        border-right: 1px solid var(--line);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .book-grid-four {
        gap: 14px;
    }

    .book-info {
        padding: 13px;
    }

    .book-info h3 {
        font-size: 16px;
    }

    .editor-section,
    .completed-section,
    .about-section,
    .app-section {
        padding: 28px 20px;
        border-radius: 23px;
    }

    .editor-card {
        min-height: auto;
        grid-template-columns: 120px 1fr;
    }

    .editor-card > div {
        padding: 18px 14px;
    }

    .editor-card h3 {
        font-size: 18px;
    }

    .editor-card p {
        display: none;
    }

    .rank-list li {
        padding: 15px 8px;
        grid-template-columns: 42px 1fr 24px;
    }

    .category-card {
        min-height: 135px;
        padding: 20px;
        grid-template-columns: 48px 1fr 22px;
        gap: 13px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .showcase-copy {
        padding: 34px 24px;
    }

    .showcase-stack {
        min-height: 350px;
    }

    .stack-card {
        width: 58%;
    }

    .stack-1 {
        top: 20px;
    }

    .stack-2 {
        top: 145px;
        left: 24%;
    }

    .stack-3 {
        top: 32px;
        right: -6%;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .poster-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .poster-card:nth-child(3) {
        display: none;
    }

    .guide-content {
        padding: 34px 22px;
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }

    .app-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .qr-card {
        width: 100%;
    }

    .category-hero {
        min-height: 300px;
        padding: 34px 24px;
        border-radius: 24px;
    }

    .category-hero .category-hero-icon {
        float: none;
        margin-bottom: 12px;
    }

    .category-hero h1 {
        margin-top: 12px;
    }

    .catalog-item {
        grid-template-columns: 125px 1fr;
    }

    .catalog-info {
        padding: 18px 14px;
    }

    .catalog-meta span:nth-child(2),
    .catalog-info p {
        display: none;
    }

    .catalog-info h2 {
        font-size: 20px;
    }

    .catalog-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .category-note {
        padding: 26px 22px;
        align-items: flex-start;
    }

    .category-note .category-hero-icon {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }

    .reader-header {
        padding: 32px 20px;
    }

    .chapter-opening,
    .chapter-end {
        padding: 44px 22px;
    }

    .chapter-nav {
        grid-template-columns: 1fr 1fr;
    }

    .chapter-directory {
        order: 3;
        grid-column: 1 / -1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
