:root {
    --ink: #17213d;
    --ink-soft: #42506f;
    --paper: #f7f8fc;
    --white: #ffffff;
    --coral: #ff5f5f;
    --coral-dark: #df3e4e;
    --amber: #ffc857;
    --mint: #77d6c2;
    --line: #dfe4ef;
    --shadow: 0 20px 55px rgba(23, 33, 61, 0.11);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button {
    font: inherit;
}

.section-shell,
.header-shell,
.footer-grid,
.copyright {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

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

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(247, 248, 252, 0.94);
    border-bottom: 1px solid rgba(223, 228, 239, 0.9);
    backdrop-filter: blur(16px);
}

.header-shell {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--white);
    background: var(--coral);
    border: 3px solid var(--ink);
    border-radius: 14px 14px 14px 4px;
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 1.12rem;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 0.75rem;
    letter-spacing: 0.28em;
}

.site-nav ul {
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.site-nav a {
    display: flex;
    min-width: 62px;
    padding: 10px 9px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 13px;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 700;
    transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
    background: var(--ink);
}

.nav-icon {
    font-size: 1rem;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
}

main > section {
    margin-top: 88px;
}

.hero {
    display: grid;
    min-height: 610px;
    margin-top: 48px;
    padding: 54px;
    align-items: center;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 55%, #ffe7d8 100%);
    border: 1px solid var(--line);
    border-radius: 36px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--coral-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 600px;
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.7rem);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

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

.hero-lead {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--ink-soft);
    font-size: 1.1rem;
}

.hero-actions,
.reader-actions,
.app-actions {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 4px 5px 0 var(--ink);
}

.button-primary {
    color: var(--white);
    background: var(--coral);
}

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

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

.hero-points {
    display: flex;
    padding: 0;
    margin: 30px 0 0;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    list-style: none;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-points span {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    color: var(--white);
    background: var(--mint);
    border-radius: 50%;
    font-size: 0.7rem;
}

.hero-visual {
    position: relative;
    min-height: 500px;
}

.hero-cover {
    position: absolute;
    overflow: hidden;
    border: 4px solid var(--ink);
    box-shadow: 12px 12px 0 rgba(23, 33, 61, 0.9);
}

.hero-cover img {
    width: 100%;
    height: 100%;
}

.hero-cover-main {
    top: 0;
    right: 0;
    width: 72%;
    height: 440px;
    border-radius: 28px;
    transform: rotate(3deg);
}

.hero-cover-small {
    bottom: 0;
    left: 0;
    width: 47%;
    height: 280px;
    border-radius: 22px;
    transform: rotate(-6deg);
}

.hero-note {
    position: absolute;
    right: -16px;
    bottom: 20px;
    display: grid;
    padding: 16px 18px;
    color: var(--ink);
    background: var(--amber);
    border: 3px solid var(--ink);
    border-radius: 14px;
    box-shadow: 5px 5px 0 var(--ink);
    transform: rotate(2deg);
}

.hero-note span {
    font-size: 0.82rem;
}

.pulse-bar {
    display: grid;
    margin-top: 28px;
    padding: 24px;
    grid-template-columns: repeat(4, 1fr);
    background: var(--ink);
    border-radius: 22px;
}

.pulse-bar div {
    display: grid;
    place-items: center;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.pulse-bar div:last-child {
    border-right: 0;
}

.pulse-bar strong {
    color: var(--amber);
    font-size: 1.7rem;
}

.pulse-bar span {
    font-size: 0.82rem;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

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

.text-link {
    flex: 0 0 auto;
    padding-bottom: 3px;
    color: var(--coral-dark);
    border-bottom: 2px solid currentColor;
    font-weight: 800;
}

.editor-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.editor-stack {
    display: grid;
    gap: 24px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    border-radius: var(--radius);
}

.feature-card .cover-link {
    display: block;
    height: 100%;
}

.feature-card img {
    width: 100%;
    height: 100%;
    opacity: 0.74;
}

.feature-card-large {
    min-height: 600px;
}

.feature-card-wide {
    min-height: 288px;
}

.feature-card .card-body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 34px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(8, 13, 29, 0.96));
    pointer-events: none;
}

.feature-card .card-body a {
    pointer-events: auto;
}

.feature-card h3,
.poster-card h3,
.comic-card h3 {
    margin: 0;
    font-size: 1.45rem;
}

.feature-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.cover-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 6px 11px;
    color: var(--ink);
    background: var(--amber);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.feature-card .card-meta,
.poster-card .card-meta {
    display: none;
}

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

.category-card {
    position: relative;
    min-height: 250px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.category-icon,
.catalog-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--white);
    background: var(--coral);
    border-radius: 16px;
    font-size: 1.4rem;
    font-weight: 800;
}

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

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

.category-card h3 {
    margin: 20px 0 8px;
    font-size: 1.2rem;
}

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

.category-action {
    position: absolute;
    bottom: 22px;
    color: var(--coral-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.update-list {
    border-top: 2px solid var(--ink);
}

.update-row {
    display: grid;
    padding: 22px 8px;
    align-items: center;
    grid-template-columns: 80px 52px 1fr auto;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.update-row time {
    color: var(--coral-dark);
    font-weight: 800;
}

.update-index {
    color: #a7afc3;
    font-size: 1.35rem;
    font-weight: 800;
}

.update-copy h3 {
    margin: 0;
    font-size: 1.12rem;
}

.update-copy p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.chapter-pill {
    padding: 6px 12px;
    color: var(--ink);
    background: #ebeff8;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rank-champion {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    border-radius: var(--radius);
}

.rank-champion img {
    width: 100%;
    height: 100%;
}

.rank-champion-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 36px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(15, 23, 48, 0.98));
}

.rank-champion-copy h3 {
    margin: 0;
    font-size: 2rem;
}

.rank-list {
    padding: 0;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    list-style: none;
    overflow: hidden;
}

.rank-list li {
    display: grid;
    min-height: 127px;
    padding: 20px;
    align-items: center;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.rank-list li:last-child {
    border-bottom: 0;
}

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

.rank-list h3,
.rank-list p {
    margin: 0;
}

.rank-list p {
    display: -webkit-box;
    color: var(--ink-soft);
    font-size: 0.82rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.poster-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.poster-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(23, 33, 61, 0.08);
}

.poster-card .cover-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.poster-card img {
    width: 100%;
    height: 100%;
    transition: transform 300ms ease;
}

.poster-card:hover img {
    transform: scale(1.04);
}

.poster-card .card-body {
    padding: 18px;
}

.poster-card .card-body p {
    display: -webkit-box;
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 16px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.mosaic-item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
}

.mosaic-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(8, 13, 29, 0.92));
}

.mosaic-overlay span {
    font-size: 0.76rem;
}

.mosaic-overlay h3,
.mosaic-overlay p {
    margin: 4px 0 0;
}

.mosaic-overlay p {
    display: none;
}

.mosaic-item-1 .mosaic-overlay p {
    display: block;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.mood-card {
    padding: 30px 24px;
    color: var(--white);
    background: var(--ink);
    border-radius: 18px;
}

.mood-card:nth-child(2) {
    background: #324a73;
}

.mood-card:nth-child(3) {
    color: var(--ink);
    background: var(--amber);
}

.mood-card:nth-child(4) {
    color: var(--ink);
    background: var(--mint);
}

.mood-card > span {
    font-size: 2rem;
}

.mood-card h3 {
    margin: 18px 0 6px;
}

.mood-card p {
    margin: 0;
    opacity: 0.78;
    font-size: 0.88rem;
}

.calendar-section {
    padding: 46px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.calendar-tabs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-tabs button {
    padding: 12px 8px;
    color: var(--ink-soft);
    background: var(--paper);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}

.calendar-tabs button[aria-selected="true"] {
    color: var(--white);
    background: var(--coral);
}

.calendar-panel {
    margin-top: 18px;
    padding: 26px;
    background: #fff4e0;
    border-radius: 16px;
}

.calendar-date {
    color: var(--coral-dark);
    font-weight: 800;
}

.calendar-panel h3,
.calendar-panel p {
    margin: 4px 0 0;
}

.reading-section {
    display: grid;
    padding: 54px;
    align-items: center;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    color: var(--white);
    background: var(--ink);
    border-radius: 32px;
    overflow: hidden;
}

.reading-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.reading-copy > p {
    color: rgba(255, 255, 255, 0.72);
}

.reading-features {
    display: grid;
    margin-top: 28px;
    gap: 16px;
}

.reading-features > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reading-features > div > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--ink);
    background: var(--amber);
    border-radius: 13px;
}

.reading-features h3,
.reading-features p {
    margin: 0;
}

.reading-features p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.85rem;
}

.phone-preview {
    width: min(330px, 100%);
    padding: 12px;
    margin-inline: auto;
    color: var(--ink);
    background: var(--white);
    border: 4px solid #080d1d;
    border-radius: 36px;
    box-shadow: 14px 18px 0 var(--coral);
}

.phone-top {
    display: flex;
    padding: 10px 6px 14px;
    align-items: center;
    justify-content: space-between;
}

.phone-preview img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
}

.phone-progress {
    height: 6px;
    margin: 16px 8px 8px;
    background: var(--line);
    border-radius: 99px;
    overflow: hidden;
}

.phone-progress > span {
    display: block;
    height: 100%;
    background: var(--coral);
}

.about-section {
    display: grid;
    padding: 52px;
    align-items: center;
    grid-template-columns: 0.38fr 1fr;
    gap: 52px;
    background: #fff0ea;
    border-radius: 28px;
}

.about-number {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    color: var(--white);
    background: var(--coral);
    border: 5px solid var(--ink);
    border-radius: 42% 58% 65% 35% / 42% 34% 66% 58%;
    box-shadow: 14px 14px 0 var(--ink);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
}

.about-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

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

.about-tags {
    display: flex;
    padding: 0;
    margin: 24px 0 0;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.about-tags li {
    padding: 7px 12px;
    background: var(--white);
    border: 1px solid #f2cabe;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.faq-list details {
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    margin: 12px 0 0;
    color: var(--ink-soft);
}

.app-section {
    display: grid;
    margin-bottom: 88px;
    padding: 50px;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 50px;
    color: var(--white);
    background: linear-gradient(135deg, #e64855, #ff7462);
    border-radius: 30px;
}

.eyebrow-light {
    color: #fff2bc;
}

.app-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.app-copy p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.83);
}

.app-actions > span {
    font-size: 0.85rem;
}

.brand-code {
    display: grid;
    width: 210px;
    padding: 20px;
    place-items: center;
    color: var(--ink);
    background: var(--white);
    border: 4px solid var(--ink);
    border-radius: 20px;
    box-shadow: 9px 9px 0 var(--ink);
}

.brand-code-grid {
    display: grid;
    width: 128px;
    height: 128px;
    padding: 8px;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    background: #fff2e8;
}

.brand-code-grid i {
    display: block;
    background: transparent;
    border: 2px solid var(--ink);
}

.brand-code-grid i.filled {
    background: var(--ink);
}

.brand-code strong {
    margin-top: 12px;
    letter-spacing: 0.12em;
}

.site-footer {
    color: rgba(255, 255, 255, 0.72);
    background: #0d1428;
}

.footer-grid {
    display: grid;
    padding: 58px 0 44px;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 60px;
}

.footer-grid h2,
.footer-grid strong {
    color: var(--white);
}

.footer-brand strong {
    font-size: 1.45rem;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer-grid p {
    margin: 9px 0 0;
}

.footer-grid ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-grid a:hover {
    color: var(--amber);
}

.copyright {
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
}

.copyright p {
    margin: 0;
}

.breadcrumb {
    margin-top: 34px;
}

.breadcrumb ol {
    display: flex;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.85rem;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    margin-left: 8px;
    content: "/";
}

.catalog-hero {
    display: grid;
    margin-top: 30px;
    padding: 44px;
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
}

.catalog-icon {
    width: 90px;
    height: 90px;
    font-size: 2.5rem;
}

.catalog-hero h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.1;
}

.catalog-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.catalog-stats {
    display: flex;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-stats span {
    padding: 6px 11px;
    background: #eef1f7;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.comic-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.comic-card:last-child:nth-child(4n + 1) {
    grid-column: 2 / span 2;
}

.comic-card .cover-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.comic-card img {
    width: 100%;
    height: 100%;
    transition: transform 260ms ease;
}

.comic-card:hover img {
    transform: scale(1.04);
}

.comic-card .card-body {
    padding: 20px;
}

.comic-card .card-body p {
    display: -webkit-box;
    margin: 8px 0 14px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.card-meta {
    display: flex;
    color: var(--ink-soft);
    justify-content: space-between;
    font-size: 0.78rem;
}

.card-meta span:last-child {
    color: var(--coral-dark);
    font-weight: 800;
}

.catalog-note {
    margin-bottom: 88px;
    padding: 34px;
    background: #fff3ec;
    border-left: 5px solid var(--coral);
    border-radius: 8px 20px 20px 8px;
}

.catalog-note h2 {
    margin: 0;
}

.catalog-note p {
    margin: 8px 0 14px;
    color: var(--ink-soft);
}

.hidden {
    display: none !important;
}

.reader-main {
    padding-bottom: 90px;
}

.reader-header {
    margin-top: 30px;
    padding: 46px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
}

.reader-category {
    display: inline-block;
    padding: 6px 12px;
    color: var(--white);
    background: var(--coral);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.reader-header h1 {
    margin: 16px 0 0;
    font-size: clamp(2.1rem, 5vw, 4.3rem);
    line-height: 1.12;
}

.reader-summary {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--ink-soft);
}

.reader-meta {
    display: flex;
    margin-top: 22px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.reading-notice {
    margin-top: 30px;
    padding: 26px 30px;
    background: #fff4d9;
    border: 1px solid #f0d69a;
    border-radius: 18px;
}

.reading-notice h2,
.reading-notice p {
    margin: 0;
}

.reading-notice p {
    margin-top: 6px;
    color: var(--ink-soft);
}

.comic-chapter {
    width: min(920px, calc(100% - 40px));
    margin: 56px auto 0;
}

.comic-chapter > h2 {
    width: 100%;
    margin-bottom: 28px;
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.comic-panel {
    margin: 0 0 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(23, 33, 61, 0.08);
}

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

.comic-panel figcaption {
    padding: 26px 30px;
}

.comic-panel figcaption strong {
    color: var(--coral-dark);
}

.comic-panel figcaption p {
    margin: 7px 0 0;
    color: var(--ink-soft);
}

.chapter-end {
    padding: 44px;
    text-align: center;
    background: var(--ink);
    border-radius: 24px;
    color: var(--white);
}

.end-mark {
    color: var(--amber);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.3em;
}

.chapter-end h2 {
    margin: 6px 0 0;
    font-size: 2rem;
}

.chapter-end p {
    max-width: 720px;
    margin: 10px auto 0;
    color: rgba(255, 255, 255, 0.72);
}

.reader-actions {
    justify-content: center;
}

.chapter-navigation {
    display: grid;
    margin-top: 26px;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.chapter-link {
    display: grid;
    min-height: 100px;
    padding: 20px 24px;
    align-content: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.chapter-link.next {
    text-align: right;
}

.chapter-link span {
    color: var(--coral-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.chapter-link.disabled {
    color: #9299aa;
    background: #eef0f5;
}

@media (max-width: 1040px) {
    .header-shell {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .site-nav ul {
        width: max-content;
        min-width: 100%;
        justify-content: space-between;
    }

    .hero {
        padding: 42px;
        gap: 32px;
    }

    .category-grid,
    .poster-strip,
    .mood-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comic-card:last-child:nth-child(4n + 1) {
        grid-column: auto;
    }

    .comic-card:last-child:nth-child(2n + 1) {
        grid-column: 1 / span 2;
        width: calc(50% - 10px);
        justify-self: center;
    }
}

@media (max-width: 760px) {
    .section-shell,
    .header-shell,
    .footer-grid,
    .copyright,
    .comic-chapter {
        width: min(100% - 24px, 1200px);
    }

    main > section {
        margin-top: 64px;
    }

    .site-header {
        position: relative;
    }

    .header-shell {
        min-height: 72px;
    }

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

    .site-nav {
        display: none;
        padding-bottom: 8px;
        overflow: visible;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav ul {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .site-nav a {
        justify-content: flex-start;
        background: var(--white);
    }

    .hero {
        min-height: auto;
        margin-top: 24px;
        padding: 30px 22px;
        grid-template-columns: 1fr;
        gap: 36px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 15vw, 4.5rem);
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 370px;
    }

    .hero-cover-main {
        width: 74%;
        height: 330px;
    }

    .hero-cover-small {
        width: 44%;
        height: 205px;
    }

    .hero-note {
        right: 0;
        bottom: 4px;
    }

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

    .pulse-bar div {
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .pulse-bar div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

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

    .editor-layout,
    .ranking-layout,
    .reading-section,
    .about-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-large,
    .feature-card-wide {
        min-height: 380px;
    }

    .category-grid,
    .poster-strip,
    .mood-grid,
    .catalog-grid,
    .faq-list {
        grid-template-columns: 1fr;
    }

    .comic-card:last-child:nth-child(2n + 1) {
        grid-column: auto;
        width: 100%;
    }

    .update-row {
        grid-template-columns: 58px 1fr auto;
        gap: 10px;
    }

    .update-index {
        display: none;
    }

    .update-copy p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .ranking-layout {
        gap: 18px;
    }

    .rank-champion {
        min-height: 440px;
    }

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

    .rank-list li > strong {
        display: none;
    }

    .mosaic-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 330px);
    }

    .mosaic-item-1 {
        grid-column: auto;
        grid-row: auto;
    }

    .mosaic-overlay p,
    .mosaic-item-1 .mosaic-overlay p {
        display: none;
    }

    .calendar-section,
    .reading-section,
    .about-section,
    .app-section {
        padding: 30px 22px;
    }

    .calendar-tabs {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-number {
        width: min(240px, 80%);
        margin-inline: auto;
    }

    .app-section {
        grid-template-columns: 1fr;
    }

    .brand-code {
        margin-inline: auto;
    }

    .catalog-hero {
        padding: 28px 22px;
        grid-template-columns: 1fr;
    }

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

    .comic-panel figcaption,
    .chapter-end {
        padding: 24px 20px;
    }

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

    .chapter-link.next {
        text-align: left;
    }
}

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

    .hero-cover-main {
        width: 82%;
    }

    .hero-cover-small {
        width: 50%;
    }

    .update-row {
        grid-template-columns: 50px 1fr;
    }

    .chapter-pill {
        display: none;
    }

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