:root {
    --ink: #243143;
    --muted: #687487;
    --paper: #fffdf9;
    --cream: #fff6e9;
    --coral: #ee7565;
    --navy: #243143;
    --mint: #dff4e8;
    --line: #e9e1d7;
    --shadow: 0 16px 36px rgba(49, 58, 72, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.7;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 0;
    background: rgba(255, 253, 249, 0.94);
    border-bottom: 1px solid rgba(233, 225, 215, 0.8);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--coral);
    border-radius: 12px 12px 12px 3px;
    font-size: 18px;
}

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

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

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

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

.nav-icon {
    font-size: 16px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 25px;
}

.hero {
    margin-top: 42px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 64px;
    min-height: 470px;
    padding: 54px 70px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff0e9, #f7f0ff);
    border-radius: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(44px, 6vw, 76px);
}

.hero h1 a {
    text-decoration: underline;
    text-decoration-color: rgba(238, 117, 101, 0.35);
    text-underline-offset: 10px;
}

.hero-lead {
    max-width: 510px;
    color: var(--muted);
    font-size: 18px;
}

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

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

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

.button-ghost {
    border: 1px solid #d9c8c1;
}

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

.hero-art {
    position: relative;
    transform: rotate(2deg);
}

.hero-art img {
    aspect-ratio: 1 / 1;
    border: 10px solid #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.float-note {
    position: absolute;
    right: -16px;
    bottom: 28px;
    display: grid;
    padding: 13px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.section {
    margin-top: 92px;
}

.section-tint {
    padding: 72px 0;
    background: #fbf6f0;
}

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

.section-heading h2,
.spotlight-copy h2,
.complete-panel h2,
.about-panel h2,
.app-panel h2 {
    margin-bottom: 0;
    font-size: clamp(27px, 3vw, 38px);
}

.text-link {
    color: var(--coral);
    font-weight: 700;
    white-space: nowrap;
}

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

.category-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 13px;
    padding: 21px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
    grid-row: span 2;
    color: var(--coral);
    font-size: 28px;
}

.category-name {
    font-weight: 800;
}

.category-copy {
    color: var(--muted);
    font-size: 13px;
}

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

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

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

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

.cover-link img {
    aspect-ratio: 3 / 4;
}

.chapter-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 7px;
    color: #fff;
    background: rgba(36, 49, 67, 0.82);
    border-radius: 6px;
    font-size: 11px;
}

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

.comic-card-body .eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
}

.comic-card h3 {
    margin-bottom: 7px;
    font-size: 16px;
}

.comic-card p:last-child {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.spotlight-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 58px;
    align-items: center;
}

.spotlight-image img {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
}

.spotlight-copy p:not(.eyebrow) {
    margin: 18px 0 26px;
    color: var(--muted);
}

.rank-list {
    border-top: 1px solid var(--line);
}

.rank-list a {
    display: grid;
    grid-template-columns: 68px 1fr 180px 80px;
    align-items: center;
    min-height: 66px;
    border-bottom: 1px solid var(--line);
}

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

.rank-list small {
    color: var(--muted);
}

.rank-list b {
    text-align: right;
}

.story-strips {
    padding: 72px 0;
    color: #fff;
    background: var(--navy);
}

.light-heading h2 {
    color: #fff;
}

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

.strip-grid a {
    display: grid;
    gap: 7px;
    min-height: 170px;
    padding: 24px;
    color: var(--navy);
    background: #fff2dc;
    border-radius: 17px;
}

.strip-grid a:nth-child(2) {
    background: #e2f4eb;
}

.strip-grid a:nth-child(3) {
    background: #f4eafb;
}

.strip-grid span {
    color: var(--coral);
    font-weight: 900;
}

.strip-grid strong {
    font-size: 24px;
}

.strip-grid em {
    color: var(--muted);
    font-style: normal;
}

.complete-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
    gap: 36px;
    padding: 38px 44px;
    background: var(--mint);
    border-radius: 22px;
}

.complete-panel p:not(.eyebrow) {
    margin: 12px 0 0;
    color: #586c62;
}

.reading-steps {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.reading-steps li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.reading-steps b {
    color: var(--coral);
}

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

.editorial-card {
    min-height: 260px;
    padding: 30px;
    border-radius: 18px;
}

.editorial-card h3 {
    font-size: 24px;
}

.editorial-card p:not(.eyebrow) {
    color: var(--muted);
}

.editorial-card a {
    color: var(--coral);
    font-weight: 700;
}

.peach { background: #fff0e6; }
.mint { background: #e6f6ef; }
.lavender { background: #f1ecff; }

.about-panel {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 42px;
    align-items: center;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 22px;
}

.about-symbol {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    color: #fff;
    background: var(--coral);
    border-radius: 48% 52% 50% 19%;
    font-size: 43px;
    font-weight: 900;
}

.about-panel p:not(.eyebrow),
.app-panel p:not(.eyebrow) {
    margin: 16px 0 0;
    color: var(--muted);
}

.app-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 42px 64px;
    background: linear-gradient(100deg, #ffe3d5, #e9def8);
    border-radius: 22px;
}

.app-copy .button {
    margin-top: 22px;
}

.qr-card {
    display: grid;
    width: 144px;
    height: 144px;
    place-items: center;
    color: #fff;
    background: repeating-conic-gradient(#243143 0% 25%, #fff 0% 50%) 50% / 24px 24px;
    border: 10px solid #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.qr-card span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    background: var(--coral);
    border-radius: 11px;
    font-size: 23px;
    font-weight: 800;
}

.qr-card small {
    padding: 1px 5px;
    color: var(--navy);
    background: #fff;
    font-size: 10px;
    font-weight: 700;
}

.site-footer {
    margin-top: 92px;
    padding: 40px 0;
    color: #d2dbe7;
    background: var(--navy);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.footer-brand {
    color: #fff;
}

.footer-inner p:last-child {
    margin-left: auto;
}

.channel-hero {
    margin-top: 38px;
    padding: 52px 0;
    background: #fff3ea;
}

.channel-hero h1 {
    margin-bottom: 11px;
    font-size: 46px;
}

.channel-hero p:last-child {
    max-width: 660px;
    margin-bottom: 0;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 13px;
}

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

.result-note {
    color: var(--muted);
    font-size: 13px;
}

.seo-copy {
    padding: 34px 38px;
    background: #fff;
    border-left: 4px solid var(--coral);
    box-shadow: var(--shadow);
}

.seo-copy h2 {
    font-size: 24px;
}

.seo-copy p {
    margin-bottom: 0;
    color: var(--muted);
}

.reader-page {
    max-width: 940px;
    padding-top: 42px;
}

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

.reader-header h1 {
    margin-bottom: 16px;
    font-size: clamp(31px, 4vw, 46px);
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 25px;
    color: var(--muted);
    font-size: 13px;
}

.reading-note {
    margin: 30px 0;
    padding: 19px 22px;
    background: #fff3e7;
    border-radius: 12px;
}

.reading-note p {
    margin: 5px 0 0;
    color: #66707d;
    font-size: 14px;
}

.comic-reader {
    display: grid;
    justify-items: center;
    gap: 28px;
}

.reader-image {
    width: min(700px, 100%);
    margin: 0;
}

.reader-image img {
    aspect-ratio: 3 / 4;
    background: #f0ede7;
    border-radius: 8px;
}

.reader-image figcaption {
    padding-top: 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.chapter-end {
    margin: 56px 0 28px;
    text-align: center;
}

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

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

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

.chapter-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 0 6px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

@media (max-width: 960px) {
    .main-nav a {
        padding: 7px;
    }

    .main-nav a span:last-child {
        display: none;
    }

    .hero-grid,
    .spotlight-layout {
        gap: 35px;
    }

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

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

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

    .site-header {
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 58px;
        right: 14px;
        left: 14px;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
    }

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

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

    .main-nav a span:last-child {
        display: inline;
    }

    .hero {
        margin-top: 24px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 35px 25px;
    }

    .hero-art {
        max-width: 390px;
        margin: 0 auto;
    }

    .section {
        margin-top: 60px;
    }

    .section-tint,
    .story-strips {
        padding: 50px 0;
    }

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

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

    .five-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }

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

    .spotlight-layout,
    .about-panel {
        grid-template-columns: 1fr;
    }

    .rank-list a {
        grid-template-columns: 38px 1fr 48px;
        gap: 8px;
    }

    .rank-list small {
        display: none;
    }

    .app-panel {
        align-items: start;
        flex-direction: column;
        padding: 31px;
    }

    .footer-inner {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .footer-inner p:last-child {
        margin-left: 0;
    }

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

    .channel-hero h1 {
        font-size: 36px;
    }

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