:root {
    --ink: #111a2f;
    --paper: #f5f7fb;
    --card: #ffffff;
    --coral: #ff6e59;
    --mint: #5bd2c3;
    --line: #dfe5f1;
    --muted: #64708a;
    --navy: #18243d;
    --shadow: 0 16px 38px rgba(25, 39, 71, 0.10);
}

* {
    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", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

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

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

.shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(245, 247, 251, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    font-size: 1.12rem;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: var(--coral);
    border-radius: 12px 4px 12px 4px;
    font-size: 1rem;
    font-weight: 900;
    transform: rotate(-6deg);
}

.main-nav {
    margin-left: auto;
}

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

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #4d5870;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--coral);
    background: #fff0ed;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    background: #ffffff;
    font-size: 1.15rem;
}

.hero {
    margin-top: 38px;
    padding: 42px 0 44px;
}

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

.hero-copy h1,
.inner-hero h1,
.reader h1 {
    margin: 8px 0 14px;
    font-size: clamp(2.35rem, 6vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.hero-copy h1 a {
    text-decoration: underline;
    text-decoration-color: var(--mint);
    text-decoration-thickness: 9px;
    text-underline-offset: -3px;
}

.hero-copy > p:not(.hero-kicker) {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-poster {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 26px 26px 68px 26px;
    box-shadow: var(--shadow);
}

.hero-poster img {
    height: 340px;
}

.hero-poster span {
    position: absolute;
    right: 16px;
    bottom: 15px;
    left: 16px;
    padding: 10px 13px;
    color: #ffffff;
    background: rgba(17, 26, 47, 0.82);
    border-radius: 10px;
    font-weight: 700;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 10px;
    font-weight: 800;
}

.button-primary {
    color: #ffffff;
    background: var(--coral);
    box-shadow: 0 8px 17px rgba(255, 110, 89, 0.26);
}

.button-quiet {
    color: var(--navy);
    background: #ffffff;
    border: 1px solid var(--line);
}

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

.section {
    margin-top: 82px;
}

.quick-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(31, 48, 84, 0.05);
}

.quick-strip a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 74px;
    border-right: 1px solid var(--line);
    font-weight: 800;
}

.quick-strip a:last-child {
    border-right: 0;
}

.quick-strip span {
    color: var(--coral);
    font-size: 1.3rem;
}

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

.section-heading h2,
.mini-ranking h2,
.reader-notes h2,
.about-block h2,
.app-subscribe h2,
.channel-copy h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.section-heading > a,
.text-link {
    color: var(--coral);
    font-weight: 800;
}

.eyebrow,
.hero-kicker {
    margin: 0 0 5px;
    color: var(--coral);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

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

.five-up {
    grid-template-columns: repeat(5, 1fr);
}

.comic-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.comic-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e7ebf4;
}

.comic-cover img {
    height: 100%;
}

.chapter-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 7px;
    color: #ffffff;
    background: rgba(17, 26, 47, 0.85);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
}

.comic-copy {
    padding: 13px;
}

.comic-copy h3 {
    margin: 2px 0 5px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.comic-copy > p:last-child {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.weekly-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 26px;
}

.week-picks,
.mini-ranking {
    padding: 28px;
    background: #ffffff;
    border-radius: 19px;
    box-shadow: var(--shadow);
}

.feature-story {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 25px;
    align-items: center;
}

.feature-story img {
    height: 230px;
    border-radius: 13px;
}

.feature-story h3 {
    margin: 4px 0 10px;
    font-size: 1.5rem;
}

.feature-story p:not(.eyebrow) {
    color: var(--muted);
}

.mini-ranking {
    color: #ffffff;
    background: var(--navy);
}

.mini-ranking h2 {
    margin-bottom: 16px;
}

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

.mini-ranking li {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-ranking li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 0;
    font-size: 0.88rem;
}

.mini-ranking b {
    color: var(--mint);
}

.mini-ranking span {
    margin-left: auto;
    color: #9aa6c0;
    font-size: 0.72rem;
}

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

.category-card {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.category-card:hover {
    border-color: var(--mint);
}

.category-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--coral);
    background: #fff0ed;
    border-radius: 14px;
    font-size: 1.35rem;
}

.category-card strong,
.category-card small {
    display: block;
}

.category-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
}

.tone-section {
    padding: 70px 0;
    color: #ffffff;
    background: var(--navy);
}

.inverse > a {
    color: var(--mint);
}

.hanman-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 45px;
    align-items: center;
}

.hanman-layout img {
    height: 300px;
    border-radius: 20px;
}

.hanman-layout h3 {
    margin: 4px 0 12px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.25;
}

.hanman-layout p:not(.eyebrow) {
    max-width: 620px;
    color: #c7d0e2;
}

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

.schedule-grid div {
    min-height: 142px;
    padding: 17px;
    background: #ffffff;
    border-top: 4px solid var(--mint);
    border-radius: 11px;
}

.schedule-grid b,
.schedule-grid span,
.schedule-grid small {
    display: block;
}

.schedule-grid b {
    color: var(--coral);
}

.schedule-grid span {
    margin: 13px 0 4px;
    font-weight: 800;
}

.schedule-grid small {
    color: var(--muted);
}

.reader-notes {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 44px;
    align-items: start;
    padding: 35px;
    background: #e3f7f3;
    border-radius: 20px;
}

.note-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.note-list article {
    padding-left: 14px;
    border-left: 2px solid var(--coral);
}

.note-list span {
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 900;
}

.note-list h3 {
    margin: 4px 0;
    font-size: 1rem;
}

.note-list p {
    margin: 0;
    color: #4f6471;
    font-size: 0.86rem;
}

.ranking-ribbon {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    align-items: stretch;
    overflow: hidden;
    color: #ffffff;
    background: var(--coral);
    border-radius: 18px;
}

.ribbon-title {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 27px;
}

.ribbon-title > span {
    font-size: 2.8rem;
}

.ribbon-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
}

.ribbon-items a {
    padding: 21px;
    color: var(--navy);
    border-right: 1px solid var(--line);
}

.ribbon-items b,
.ribbon-items span,
.ribbon-items small {
    display: block;
}

.ribbon-items b {
    color: var(--coral);
    font-size: 1.3rem;
}

.ribbon-items span {
    margin: 4px 0;
    font-weight: 800;
}

.ribbon-items small {
    color: var(--muted);
}

.shelf-promo {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 42px;
    align-items: center;
    padding: 42px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 21px;
}

.shelf-promo h2 {
    margin: 4px 0 10px;
    font-size: clamp(1.8rem, 3.3vw, 2.7rem);
    line-height: 1.22;
}

.shelf-promo p:not(.eyebrow) {
    color: var(--muted);
}

.shelf-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    padding: 16px;
    background: #edf1f8;
    border-radius: 16px;
    transform: rotate(2deg);
}

.shelf-visual span {
    display: grid;
    min-height: 98px;
    place-items: center;
    color: #ffffff;
    background: var(--navy);
    border-radius: 10px 3px 10px 3px;
    font-weight: 800;
}

.shelf-visual span:nth-child(2) {
    background: #4463a3;
}

.shelf-visual span:nth-child(3) {
    background: #e67a62;
}

.shelf-visual span:nth-child(4) {
    background: #57a69c;
}

.about-block {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 32px;
    align-items: center;
    padding: 36px 10%;
    text-align: left;
}

.about-symbol {
    display: grid;
    width: 124px;
    height: 124px;
    place-items: center;
    color: var(--coral);
    border: 5px solid var(--coral);
    border-radius: 50%;
    font-size: 2.8rem;
    font-weight: 900;
}

.about-block p:not(.eyebrow) {
    color: var(--muted);
}

.app-subscribe {
    display: grid;
    grid-template-columns: 115px 1fr auto;
    gap: 28px;
    align-items: center;
    margin-bottom: 82px;
    padding: 28px;
    color: #ffffff;
    background: #263b62;
    border-radius: 18px;
}

.app-subscribe .eyebrow {
    color: var(--mint);
}

.app-subscribe p:not(.eyebrow) {
    margin-bottom: 0;
    color: #cbd5e7;
}

.qr-mark {
    position: relative;
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    overflow: hidden;
    color: #263b62;
    background: #ffffff;
    border-radius: 8px;
    font-weight: 900;
}

.qr-mark i {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--coral);
}

.qr-mark i:nth-of-type(1) { top: 7px; left: 7px; }
.qr-mark i:nth-of-type(2) { top: 7px; right: 7px; }
.qr-mark i:nth-of-type(3) { bottom: 7px; left: 7px; }
.qr-mark i:nth-of-type(4) { right: 18px; bottom: 20px; }

.site-footer {
    padding-top: 52px;
    color: #c8d0de;
    background: #10192d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    color: #ffffff;
}

.site-footer p {
    max-width: 320px;
    color: #9ca9c0;
}

.site-footer h2 {
    margin: 0 0 11px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 7px 0;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 35px;
    padding: 17px 0;
    border-top: 1px solid #2a3550;
}

.copyright p {
    margin: 0;
    font-size: 0.78rem;
}

.inner-hero {
    margin-top: 38px;
    padding: 55px 0;
    color: #ffffff;
    background: linear-gradient(120deg, #17243e, #395785);
}

.inner-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.inner-hero p:not(.eyebrow) {
    max-width: 620px;
    margin: 0;
    color: #cbd5e7;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #8a98b2;
    font-size: 0.87rem;
}

.inner-hero .breadcrumbs {
    color: #c5d0e4;
}

.breadcrumbs a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.result-count {
    color: var(--muted);
}

.channel-copy {
    margin-bottom: 82px;
    padding: 34px;
    background: #ffffff;
    border-left: 4px solid var(--mint);
}

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

.reader {
    max-width: 900px;
    padding-top: 52px;
    padding-bottom: 82px;
}

.reader-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.reader h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: var(--muted);
    font-size: 0.88rem;
}

.reading-notice {
    margin: 28px 0;
    padding: 20px 23px;
    background: #fff4e9;
    border-radius: 12px;
}

.reading-notice h2 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.reading-notice p {
    margin: 0;
    color: #6d5a4a;
}

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

.reading-page {
    margin: 0;
    overflow: hidden;
    background: #e9edf5;
    border-radius: 12px;
}

.reading-page img {
    aspect-ratio: 4 / 5;
}

.reading-page figcaption {
    padding: 8px 12px;
    color: var(--muted);
    background: #ffffff;
    font-size: 0.78rem;
}

.chapter-end {
    padding: 36px;
    text-align: center;
}

.chapter-end span {
    color: var(--coral);
    font-size: 1.6rem;
}

.chapter-end h2 {
    margin: 3px 0;
    font-size: 1.35rem;
}

.chapter-end p {
    margin: 0;
    color: var(--muted);
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-weight: 800;
}

.chapter-nav > a:not(.button),
.chapter-nav > span {
    min-width: 110px;
    color: var(--coral);
}

.chapter-nav > span {
    color: var(--muted);
}

@media (max-width: 980px) {
    .main-nav a {
        padding: 8px 6px;
        font-size: 0.76rem;
    }

    .hero-grid,
    .weekly-layout,
    .hanman-layout,
    .reader-notes,
    .shelf-promo {
        grid-template-columns: 1fr;
    }

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

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

    .app-subscribe {
        grid-template-columns: 92px 1fr;
    }

    .app-subscribe .button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 28px, 1200px);
    }

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

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        right: 14px;
        left: 14px;
        display: none;
        margin: 0;
        padding: 9px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

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

    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav a {
        justify-content: center;
        padding: 11px 7px;
        font-size: 0.84rem;
    }

    .hero {
        margin-top: 24px;
        padding-top: 24px;
    }

    .hero-grid {
        gap: 28px;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 250px;
        height: 250px;
    }

    .section {
        margin-top: 56px;
    }

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

    .quick-strip a:nth-child(2) {
        border-right: 0;
    }

    .quick-strip a:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .five-up,
    .category-grid,
    .schedule-grid,
    .note-list,
    .ribbon-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .comic-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 9px);
        justify-self: center;
        width: 100%;
    }

    .feature-story {
        grid-template-columns: 1fr;
    }

    .feature-story img {
        height: 220px;
    }

    .week-picks,
    .mini-ranking,
    .shelf-promo,
    .reader-notes {
        padding: 22px;
    }

    .tone-section {
        padding: 52px 0;
    }

    .hanman-layout {
        gap: 25px;
    }

    .hanman-layout img {
        height: 230px;
    }

    .ranking-ribbon {
        grid-template-columns: 1fr;
    }

    .ribbon-items a:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .about-block {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .about-symbol {
        width: 86px;
        height: 86px;
        font-size: 2rem;
    }

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

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }

    .reader {
        padding-top: 34px;
    }

    .chapter-nav {
        flex-direction: column;
    }

    .chapter-nav > a:not(.button),
    .chapter-nav > span {
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .five-up,
    .category-grid,
    .schedule-grid,
    .note-list,
    .ribbon-items {
        grid-template-columns: 1fr;
    }

    .comic-card:last-child,
    .ribbon-items a:last-child {
        grid-column: auto;
        max-width: none;
    }

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

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