:root {
    --ink: #17202a;
    --muted: #68707d;
    --paper: #ffffff;
    --canvas: #f6f7fb;
    --line: #e7e9f0;
    --primary: #ef476f;
    --primary-dark: #d7375d;
    --navy: #182238;
    --gold: #ffd166;
    --shadow: 0 18px 50px rgba(31, 41, 55, 0.1);
    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-small: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.container,
.header-inner {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ui-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.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;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(231, 233, 240, 0.9);
    backdrop-filter: blur(16px);
}

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

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 190px;
    height: auto;
}

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

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 10px;
    color: #515b69;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: #fff0f4;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    place-items: center;
}

.hero {
    margin-top: 40px;
}

.hero-grid {
    min-height: 590px;
    padding: 58px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 54px;
    color: #fff;
    background: var(--navy);
    border-radius: 34px;
    overflow: hidden;
    position: relative;
}

.hero-grid::before {
    content: "";
    position: absolute;
    inset: auto auto -170px -120px;
    width: 410px;
    height: 410px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(4px);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--gold);
}

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

.hero h1 a {
    color: #fff;
}

.hero-copy > p {
    max-width: 560px;
    margin: 0;
    color: #cbd3df;
    font-size: 18px;
}

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

.button {
    min-height: 48px;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 12px 28px rgba(239, 71, 111, 0.28);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-dark {
    color: #fff;
    background: var(--navy);
}

.button-light {
    color: var(--navy);
    background: #fff;
}

.search-box {
    max-width: 470px;
    margin-top: 30px;
    padding: 6px 6px 6px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7b8491;
    background: #fff;
    border-radius: 16px;
}

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

.search-box button {
    padding: 10px 18px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
}

.hero-art {
    position: relative;
    z-index: 2;
}

.hero-art > img {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
    border-radius: 26px 26px 80px 26px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.floating-note {
    position: absolute;
    padding: 13px 16px;
    display: grid;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.floating-note strong {
    font-size: 18px;
}

.floating-note span {
    color: var(--muted);
    font-size: 12px;
}

.note-one {
    top: 24px;
    left: -32px;
}

.note-two {
    right: -24px;
    bottom: 34px;
}

.quick-strip {
    margin-top: 28px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(31, 41, 55, 0.04);
}

.quick-grid > div {
    min-height: 76px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #3f4855;
    font-size: 14px;
    font-weight: 700;
}

.quick-grid > div + div {
    border-left: 1px solid var(--line);
}

.quick-grid .ui-icon {
    color: var(--primary);
}

.section-gap {
    margin-top: 104px;
}

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

.section-heading h2,
.editor-copy h2,
.ranking-intro h2,
.guide-heading h2,
.bookshelf-copy h2,
.about-grid h2,
.newsletter-panel h2,
.app-copy h2 {
    margin: 7px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.22;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 600px;
    margin: 10px auto 0;
    color: var(--muted);
}

.centered-heading {
    justify-content: center;
    text-align: center;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-weight: 750;
}

.comic-grid {
    display: grid;
    gap: 22px;
}

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

.comic-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.comic-cover {
    display: block;
    position: relative;
    overflow: hidden;
}

.comic-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 350ms ease;
}

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

.status-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    color: #fff;
    background: rgba(23, 32, 42, 0.82);
    border-radius: 999px;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.comic-info {
    padding: 18px;
}

.comic-category {
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
}

.comic-info h3 {
    margin: 4px 0 7px;
    font-size: 20px;
}

.comic-info p {
    display: -webkit-box;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editor-section {
    padding: 86px 0;
    background: #fff;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 64px;
}

.editor-visual {
    position: relative;
}

.editor-visual img {
    width: 100%;
    aspect-ratio: 1.4 / 1;
    object-fit: cover;
    border-radius: 20px 70px 20px 20px;
}

.editor-visual span {
    position: absolute;
    right: -18px;
    bottom: 28px;
    padding: 12px 16px;
    background: var(--gold);
    border-radius: 12px;
    font-weight: 800;
}

.editor-copy > p,
.ranking-intro > p,
.guide-heading > p,
.bookshelf-copy > p,
.newsletter-panel p,
.app-copy > p {
    color: var(--muted);
}

.detail-list {
    margin: 24px 0;
}

.detail-list > div {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.detail-list dt {
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
    font-weight: 750;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
}

.ranking-intro {
    align-self: start;
    padding: 42px;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius-large);
    position: sticky;
    top: 110px;
}

.ranking-intro > p {
    color: #cbd3df;
}

.ranking-intro .button {
    margin-top: 12px;
    color: var(--navy);
    background: var(--gold);
}

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

.ranking-list li {
    min-height: 100px;
    padding: 14px 0;
    display: grid;
    grid-template-columns: 48px 72px 1fr auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.ranking-list img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-number {
    color: #c2c7d0;
    font-size: 25px;
    font-weight: 900;
}

.ranking-list li:first-child .rank-number {
    color: var(--primary);
}

.ranking-list h3 {
    margin: 1px 0 0;
    font-size: 18px;
}

.ranking-list div > span {
    color: var(--muted);
    font-size: 13px;
}

.ranking-list li > strong {
    color: var(--primary);
    font-size: 14px;
}

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

.mood-card {
    min-height: 230px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--radius-large);
    transition: transform 180ms ease;
}

.mood-card:hover {
    transform: translateY(-4px) rotate(-0.4deg);
}

.mood-card .ui-icon {
    width: 36px;
    height: 36px;
}

.mood-card h3 {
    margin: 22px 0 5px;
    font-size: 21px;
}

.mood-card p {
    margin: 0;
    opacity: 0.75;
}

.mood-pink {
    color: #8b244f;
    background: #ffe0ea;
}

.mood-violet {
    color: #49318b;
    background: #e8e1ff;
}

.mood-blue {
    color: #20558e;
    background: #ddecff;
}

.mood-green {
    color: #165b55;
    background: #d8f2e9;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-template-rows: 230px 230px;
    gap: 18px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-medium);
}

.mosaic-1 {
    grid-row: 1 / 3;
}

.mosaic-4 {
    grid-column: 2 / 4;
}

.mosaic-item::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(10, 15, 25, 0.86));
}

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

.mosaic-item > div {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    z-index: 2;
    color: #fff;
}

.mosaic-item span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 750;
}

.mosaic-item h3 {
    margin: 2px 0 0;
    font-size: 20px;
}

.category-section {
    padding: 94px 0;
    background: #fff;
}

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

.category-card {
    min-height: 270px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    transition: border 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

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

.category-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--category-color);
    border-radius: 15px;
}

.category-icon .ui-icon {
    width: 26px;
    height: 26px;
}

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

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

.category-more {
    margin-top: auto;
    color: var(--category-color);
    font-weight: 750;
}

.schedule-header {
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: var(--navy);
    border-radius: 24px 24px 0 0;
}

.schedule-header h2 {
    margin: 4px 0 0;
    font-size: 34px;
}

.schedule-header > .ui-icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
}

.schedule-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 24px 24px;
}

.schedule-track > div {
    min-height: 130px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-track > div + div {
    border-left: 1px solid var(--line);
}

.schedule-track strong {
    color: var(--primary);
}

.schedule-track span {
    font-size: 14px;
}

.guide-section {
    padding: 90px 0;
    background: #fff;
}

.guide-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
}

.guide-steps {
    display: grid;
    gap: 14px;
}

.guide-steps article {
    padding: 24px;
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    background: var(--canvas);
    border-radius: 18px;
}

.guide-steps article > span {
    grid-row: 1 / 3;
    color: var(--primary);
    font-size: 25px;
    font-weight: 900;
}

.guide-steps h3 {
    margin: 0;
}

.guide-steps p {
    margin: 4px 0 0;
    color: var(--muted);
}

.bookshelf-panel {
    min-height: 430px;
    padding: 54px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 50px;
    background: #fff3db;
    border-radius: 34px;
    overflow: hidden;
}

.book-stack {
    min-height: 330px;
    position: relative;
}

.book-stack img {
    position: absolute;
    top: 0;
    width: 210px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 7px solid #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.book-stack img:nth-child(1) {
    left: 3%;
    transform: rotate(-9deg) translateY(30px);
}

.book-stack img:nth-child(2) {
    left: 34%;
    z-index: 2;
}

.book-stack img:nth-child(3) {
    left: 65%;
    transform: rotate(8deg) translateY(28px);
}

.about-grid {
    padding: 56px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius-large);
}

.about-copy p {
    margin-top: 0;
    color: #cbd3df;
}

.about-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-points span {
    padding: 7px 11px;
    color: var(--gold);
    background: rgba(255, 209, 102, 0.09);
    border: 1px solid rgba(255, 209, 102, 0.2);
    border-radius: 999px;
    font-size: 13px;
}

.newsletter-panel {
    padding: 42px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
}

.newsletter-panel h2 {
    font-size: 30px;
}

.newsletter-panel p {
    margin-bottom: 0;
}

.newsletter-form {
    min-width: 430px;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    min-width: 0;
    flex: 1;
    padding: 12px 16px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
}

.app-section {
    padding: 82px 0;
    background: var(--primary);
}

.app-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
    color: #fff;
}

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

.app-copy .eyebrow {
    color: var(--gold);
}

.app-copy > p {
    color: #ffe5ec;
}

.qr-mark {
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    color: var(--navy);
    background: #fff;
    border: 14px solid #fff;
    outline: 4px dashed var(--navy);
    outline-offset: -22px;
    border-radius: 24px;
}

.qr-mark span {
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
}

.qr-mark small {
    margin-top: 9px;
    font-weight: 750;
}

.site-footer {
    padding: 62px 0 24px;
    color: #cbd3df;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1fr;
    gap: 70px;
}

.footer-logo {
    width: 190px;
    height: auto;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 16px;
}

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

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

.copyright {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.breadcrumb {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.channel-hero {
    margin-top: 26px;
}

.channel-hero-inner {
    padding: 54px 60px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 7px solid var(--channel-color);
    border-radius: var(--radius-large);
}

.channel-icon {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--channel-color);
    border-radius: 28px;
    transform: rotate(-5deg);
}

.channel-icon .ui-icon {
    width: 44px;
    height: 44px;
}

.channel-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.15;
}

.channel-hero p {
    max-width: 850px;
    margin: 0;
    color: var(--muted);
}

.update-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

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

.channel-item {
    padding: 22px;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
}

.channel-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 13px;
}

.channel-copy {
    align-self: center;
}

.channel-copy h2 {
    margin: 6px 0 10px;
    font-size: 28px;
}

.channel-copy p {
    max-width: 720px;
    margin: 0 0 16px;
    color: var(--muted);
}

.channel-meta {
    margin-bottom: 16px;
    display: flex;
    gap: 18px;
    color: #657081;
    font-size: 13px;
}

.channel-note {
    margin-bottom: 104px;
}

.channel-note-inner {
    padding: 40px 46px;
    background: #fff3db;
    border-radius: var(--radius-medium);
}

.channel-note h2 {
    margin-top: 0;
}

.channel-note p {
    margin-bottom: 0;
    color: var(--muted);
}

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

.reader-article {
    width: min(900px, calc(100% - 40px));
    margin: 34px auto 0;
}

.reader-header {
    padding: 52px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
}

.reader-category {
    color: var(--primary);
    font-weight: 800;
}

.reader-header h1 {
    margin: 9px 0 6px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.reader-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.reader-meta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

.reader-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reading-note {
    margin-top: 24px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    background: #fff3db;
    border-radius: var(--radius-medium);
}

.reading-note > div:first-child {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #8a5d00;
    background: var(--gold);
    border-radius: 14px;
}

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

.reading-note p {
    margin: 4px 0 0;
    color: #6e5a2c;
}

.chapter-intro {
    margin: 54px 0 26px;
    text-align: center;
}

.chapter-intro h2 {
    margin: 0;
    font-size: 30px;
}

.chapter-intro p {
    max-width: 700px;
    margin: 10px auto 0;
    color: var(--muted);
}

.comic-pages {
    display: grid;
    gap: 32px;
}

.comic-pages figure {
    margin: 0;
    padding: 12px;
    background: #fff;
    border-radius: var(--radius-medium);
    box-shadow: 0 14px 40px rgba(31, 41, 55, 0.07);
}

.comic-pages img {
    width: 100%;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    border-radius: 12px;
}

.comic-pages figcaption {
    padding: 10px 4px 1px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.chapter-end {
    margin-top: 50px;
    padding: 42px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
}

.chapter-end .ui-icon {
    width: 42px;
    height: 42px;
    color: #16a085;
}

.chapter-end h2 {
    margin: 10px 0 4px;
}

.chapter-end p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
}

.chapter-nav {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.chapter-link {
    min-height: 78px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

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

.chapter-link > span {
    color: var(--muted);
    font-size: 12px;
}

.chapter-link.disabled {
    color: #9ca3af;
    background: #f0f1f4;
}

@media (max-width: 1080px) {
    .menu-button {
        display: grid;
    }

    .main-nav {
        position: fixed;
        top: 79px;
        right: 0;
        left: 0;
        max-height: calc(100vh - 79px);
        padding: 18px 20px 30px;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        overflow-y: auto;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

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

    .main-nav a {
        justify-content: center;
        background: var(--canvas);
    }

    .hero-grid {
        padding: 46px;
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

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

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

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

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

    .schedule-track > div:nth-child(4) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .schedule-track > div:nth-child(5),
    .schedule-track > div:nth-child(6) {
        border-top: 1px solid var(--line);
    }

    .book-stack img {
        width: 175px;
    }
}

@media (max-width: 820px) {
    .hero-grid,
    .editor-grid,
    .ranking-layout,
    .guide-layout,
    .bookshelf-panel,
    .about-grid,
    .newsletter-panel {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding: 42px;
    }

    .hero-art {
        margin-top: 10px;
    }

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

    .quick-grid > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .quick-grid > div:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .ranking-intro {
        position: static;
    }

    .mosaic-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 220px;
    }

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

    .mosaic-4 {
        grid-column: 1 / 3;
    }

    .book-stack {
        min-height: 300px;
    }

    .newsletter-form {
        min-width: 0;
    }

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

@media (max-width: 620px) {
    .container,
    .header-inner {
        width: min(100% - 28px, 1200px);
    }

    .header-inner {
        min-height: 70px;
    }

    .brand img {
        width: 164px;
    }

    .main-nav {
        top: 71px;
        max-height: calc(100vh - 71px);
    }

    .hero {
        margin-top: 22px;
    }

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

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

    .hero-copy > p {
        font-size: 16px;
    }

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

    .search-box {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .search-box .ui-icon {
        align-self: center;
    }

    .search-box input {
        width: calc(100% - 38px);
    }

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

    .note-one {
        left: 10px;
    }

    .note-two {
        right: 10px;
    }

    .quick-grid,
    .comic-grid-six,
    .mood-grid,
    .category-grid,
    .schedule-track,
    .mosaic-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid > div + div,
    .quick-grid > div:nth-child(3),
    .schedule-track > div + div,
    .schedule-track > div:nth-child(4) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .section-gap {
        margin-top: 76px;
    }

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

    .editor-section,
    .category-section,
    .guide-section {
        padding: 72px 0;
    }

    .editor-visual span {
        right: 10px;
    }

    .ranking-layout {
        gap: 30px;
    }

    .ranking-intro,
    .about-grid,
    .bookshelf-panel,
    .newsletter-panel,
    .reader-header,
    .chapter-end {
        padding: 30px 22px;
    }

    .ranking-list li {
        grid-template-columns: 35px 62px 1fr;
        gap: 10px;
    }

    .ranking-list img {
        width: 62px;
        height: 62px;
    }

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

    .mosaic-grid {
        grid-template-rows: none;
    }

    .mosaic-item,
    .mosaic-4 {
        min-height: 280px;
        grid-column: auto;
    }

    .schedule-header {
        padding: 26px 22px;
    }

    .schedule-header h2 {
        font-size: 28px;
    }

    .schedule-header > .ui-icon {
        width: 36px;
        height: 36px;
    }

    .bookshelf-panel {
        gap: 20px;
    }

    .book-stack {
        min-height: 250px;
    }

    .book-stack img {
        width: 42%;
    }

    .book-stack img:nth-child(1) {
        left: 0;
    }

    .book-stack img:nth-child(2) {
        left: 29%;
    }

    .book-stack img:nth-child(3) {
        left: 58%;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

    .qr-mark {
        width: 160px;
        height: 160px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .channel-hero-inner {
        padding: 34px 24px;
        grid-template-columns: 1fr;
    }

    .channel-item {
        padding: 16px;
        grid-template-columns: 110px 1fr;
        gap: 16px;
    }

    .channel-copy h2 {
        font-size: 20px;
    }

    .channel-copy p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14px;
    }

    .channel-meta {
        flex-direction: column;
        gap: 2px;
    }

    .reader-article {
        width: calc(100% - 28px);
    }

    .reader-meta {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }

    .reading-note {
        padding: 20px;
    }

    .comic-pages {
        gap: 20px;
    }

    .comic-pages figure {
        padding: 7px;
    }

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

    .chapter-nav .button {
        grid-column: 1 / 3;
        grid-row: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}