:root {
    --ink: #17152b;
    --muted: #6f6b82;
    --paper: #fffdf9;
    --cream: #f7f1e8;
    --coral: #ff6b6b;
    --yellow: #ffd166;
    --mint: #6bd9c4;
    --violet: #7357ff;
    --line: #e8e2da;
    --shadow: 0 18px 50px rgba(30, 25, 58, 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", Arial, sans-serif;
    line-height: 1.75;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(23, 21, 43, 0.08);
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(18px);
}

.header-inner,
main,
.footer-grid,
.copyright,
.app-panel {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

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

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

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 13px 13px 13px 4px;
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 18px;
}

.brand-name {
    font-size: 21px;
    letter-spacing: -0.5px;
}

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

.nav-link {
    display: flex;
    min-width: 70px;
    padding: 8px 7px;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
    background: #eeeaff;
}

.nav-link.active {
    box-shadow: inset 0 -3px 0 var(--violet);
}

.nav-icon {
    font-size: 19px;
    line-height: 1;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 26px;
}

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

.hero {
    display: grid;
    min-height: 560px;
    padding: 60px;
    align-items: center;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg, #eee9ff 0%, #fff4e6 48%, #dffaf2 100%);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--violet);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(54px, 8vw, 106px);
    line-height: 0.95;
    letter-spacing: -7px;
}

.hero h1 a {
    background: linear-gradient(100deg, var(--ink), var(--violet));
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 600px;
    margin: 28px 0;
    color: #4f4a66;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: 999px;
    color: white;
    background: var(--ink);
    box-shadow: 4px 4px 0 var(--coral);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--coral);
}

.button-ghost {
    color: var(--ink);
    background: transparent;
    box-shadow: none;
}

.button-small {
    min-height: 38px;
    padding: 0 18px;
    font-size: 13px;
}

.button-light {
    color: var(--ink);
    background: white;
    box-shadow: 4px 4px 0 var(--yellow);
}

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

.hero-art::before {
    position: absolute;
    inset: -16px;
    z-index: -1;
    border: 3px solid var(--ink);
    border-radius: 24px;
    background: var(--yellow);
    content: "";
    transform: rotate(-4deg);
}

.hero-art img {
    aspect-ratio: 4 / 5;
    border: 3px solid var(--ink);
    border-radius: 20px;
}

.speech-bubble {
    position: absolute;
    right: -18px;
    bottom: 30px;
    padding: 14px 18px;
    border: 2px solid var(--ink);
    border-radius: 18px 18px 4px 18px;
    background: white;
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 800;
}

.quick-strip {
    display: grid;
    padding: 26px 30px;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
}

.quick-item {
    display: grid;
    padding: 4px 24px;
    grid-template-columns: 34px 1fr;
    align-items: center;
    border-right: 1px solid var(--line);
}

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

.quick-item > span {
    grid-row: span 2;
    color: var(--coral);
    font-size: 23px;
}

.quick-item small {
    color: var(--muted);
}

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

.section-heading h2,
.feature-copy h2,
.mood-copy h2,
.about-panel h2,
.app-copy h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -2px;
}

.section-heading > p {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
}

.text-link {
    color: var(--violet);
    font-weight: 800;
}

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

.category-card {
    min-height: 235px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    transition: 0.25s ease;
}

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

.category-icon,
.category-hero-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    color: white;
    background: var(--ink);
    font-size: 26px;
}

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

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

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

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

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

.feature-split {
    display: grid;
    padding: 34px;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    border-radius: 30px;
    color: white;
    background: var(--ink);
}

.feature-image img {
    aspect-ratio: 16 / 11;
    border-radius: 20px;
    filter: saturate(0.8) contrast(1.05);
}

.feature-copy p:not(.eyebrow) {
    color: #cbc7dc;
}

.cards-four,
.cards-five {
    display: grid;
    gap: 22px;
}

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

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

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

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

.cover-link img {
    aspect-ratio: 3 / 4;
    transition: transform 0.4s ease;
}

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

.cover-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(23, 21, 43, 0.88);
    font-size: 11px;
}

.card-copy {
    padding: 20px;
}

.card-copy h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

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

.editorial-cards .comic-card:nth-child(2),
.editorial-cards .comic-card:nth-child(4) {
    margin-top: 34px;
}

.ranking-panel {
    padding: 52px;
    border-radius: 30px;
    color: white;
    background: #211e3b;
}

.section-heading-light .eyebrow,
.ranking-panel .text-link {
    color: var(--yellow);
}

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

.rank-list li {
    display: grid;
    padding: 19px 0;
    grid-template-columns: 75px 1fr auto;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

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

.rank-list a {
    font-size: 18px;
    font-weight: 800;
}

.rank-list small {
    display: block;
    color: #aaa5c0;
}

.rank-change {
    color: var(--mint);
    font-size: 12px;
    font-weight: 900;
}

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

.timeline::before {
    position: absolute;
    top: 25px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--line);
    content: "";
}

.timeline-item {
    position: relative;
}

.timeline-item time {
    display: inline-block;
    position: relative;
    z-index: 1;
    padding: 4px 12px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--paper);
    font-weight: 900;
}

.timeline-item div {
    display: flex;
    margin-top: 18px;
    flex-direction: column;
}

.timeline-item span {
    color: var(--muted);
}

.mood-board {
    display: grid;
    padding: 46px;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 42px;
    border-radius: 28px;
    background: var(--cream);
}

.mood-copy p:last-child {
    color: var(--muted);
}

.mood-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mood {
    display: flex;
    min-height: 112px;
    padding: 22px;
    align-items: end;
    border: 2px solid var(--ink);
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 20px;
    font-weight: 900;
}

.mood.blue {
    background: #a9d6f5;
}

.mood.orange {
    background: #ffb36b;
}

.mood.pink {
    background: #ffb8cc;
}

.mood.violet {
    color: white;
    background: #8a72ff;
}

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

.guide-card {
    padding: 30px;
    border-top: 4px solid var(--violet);
    border-radius: 0 0 18px 18px;
    background: #f5f2ff;
}

.guide-card > span {
    color: var(--violet);
    font-size: 30px;
    font-weight: 900;
}

.guide-card h3 {
    margin: 12px 0 6px;
}

.guide-card p {
    margin: 0;
    color: var(--muted);
}

.about-panel {
    display: grid;
    padding: 52px;
    grid-template-columns: 0.35fr 1fr;
    gap: 58px;
    border: 2px solid var(--ink);
    border-radius: 26px;
    box-shadow: 8px 8px 0 var(--yellow);
}

.about-columns {
    columns: 2;
    column-gap: 36px;
}

.about-columns p {
    margin-top: 0;
    break-inside: avoid;
    color: #514d61;
}

.app-panel {
    display: grid;
    padding: 54px;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 50px;
    border-radius: 30px;
    color: white;
    background: linear-gradient(120deg, var(--violet), #3a277e);
}

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

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

.app-copy p:not(.eyebrow) {
    color: #ded8ff;
}

.brand-qr {
    display: grid;
    width: 180px;
    height: 180px;
    place-items: center;
    border: 14px solid white;
    outline: 3px solid var(--ink);
    color: var(--ink);
    background: repeating-linear-gradient(45deg, white 0 12px, var(--yellow) 12px 24px);
    box-shadow: 8px 8px 0 var(--ink);
}

.brand-qr span {
    padding: 4px 18px;
    background: white;
    font-size: 44px;
    font-weight: 900;
}

.brand-qr small {
    align-self: end;
    padding: 2px 5px;
    background: white;
    font-size: 9px;
    letter-spacing: 1px;
}

.site-footer {
    margin-top: 80px;
    padding: 50px 0 24px;
    color: #c9c5d9;
    background: var(--ink);
}

.footer-grid {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.footer-grid strong {
    color: white;
    font-size: 26px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

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

.copyright {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #817c96;
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    margin-top: 34px;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

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

.category-hero {
    display: grid;
    padding: 48px;
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 30px;
    border-radius: 28px;
    background: linear-gradient(120deg, #f1edff, #fff2dc);
}

.category-hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 26px;
    font-size: 42px;
    box-shadow: 7px 7px 0 var(--yellow);
}

.category-hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.1;
}

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

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

.catalog-row {
    display: grid;
    padding: 22px;
    align-items: center;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
}

.catalog-cover img {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
}

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

.catalog-copy h2 {
    margin: 2px 0 7px;
    font-size: 26px;
}

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

.catalog-meta {
    display: flex;
    margin-top: 18px;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
}

.catalog-meta .button {
    margin-left: auto;
    color: white;
}

.reader-page {
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.reader-header {
    text-align: center;
}

.reader-header h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
}

.reader-header h2 {
    margin: 14px 0 20px;
    color: var(--muted);
    font-size: 20px;
    font-weight: 500;
}

.reader-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
}

.reading-note {
    display: grid;
    margin: 42px 0;
    padding: 22px 26px;
    grid-template-columns: 100px 1fr;
    align-items: center;
    border-left: 5px solid var(--violet);
    border-radius: 0 14px 14px 0;
    background: #f2efff;
}

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

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

.comic-page {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}

.comic-page img {
    aspect-ratio: 4 / 5;
    border-radius: 10px;
}

.comic-page figcaption {
    padding: 10px 4px 2px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.chapter-end {
    margin: 70px 0 36px;
    text-align: center;
}

.chapter-end > span {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    color: white;
    background: var(--ink);
    font-size: 11px;
    letter-spacing: 3px;
}

.chapter-end h2 {
    margin: 16px 0 5px;
}

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

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

.chapter-button,
.chapter-home {
    display: flex;
    min-height: 82px;
    padding: 16px 20px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

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

.chapter-button.next {
    align-items: flex-end;
    text-align: right;
}

.chapter-home {
    align-items: center;
    background: var(--cream);
    font-weight: 800;
}

@media (max-width: 1050px) {
    .header-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hero {
        grid-template-columns: 1fr 0.8fr;
        padding: 44px;
    }

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

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

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

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

    .mood-board,
    .about-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner,
    main,
    .footer-grid,
    .copyright,
    .app-panel {
        width: min(100% - 24px, 1200px);
    }

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

    .hero {
        min-height: 0;
        padding: 34px 24px;
        grid-template-columns: 1fr;
        gap: 44px;
        border-radius: 22px;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .hero-art {
        width: 86%;
        margin: 0 auto;
    }

    .speech-bubble {
        right: -8px;
        font-size: 12px;
    }

    .quick-strip,
    .category-grid,
    .cards-four,
    .cards-five,
    .guide-grid,
    .timeline,
    .mood-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-strip {
        padding: 18px 12px;
    }

    .quick-item {
        padding: 8px 10px;
        border-right: 0;
    }

    .quick-item small {
        display: none;
    }

    .category-card {
        min-height: 0;
        padding: 20px;
    }

    .feature-split {
        padding: 22px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .editorial-cards .comic-card:nth-child(2),
    .editorial-cards .comic-card:nth-child(4) {
        margin-top: 0;
    }

    .ranking-panel,
    .about-panel,
    .mood-board,
    .app-panel,
    .category-hero {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .timeline::before {
        display: none;
    }

    .mood-board,
    .app-panel,
    .category-hero {
        grid-template-columns: 1fr;
    }

    .about-columns {
        columns: 1;
    }

    .brand-qr {
        width: 150px;
        height: 150px;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-row {
        padding: 14px;
        grid-template-columns: 112px 1fr;
        gap: 16px;
    }

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

    .catalog-copy p {
        display: none;
    }

    .catalog-meta {
        margin-top: 8px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .catalog-meta .button {
        width: 100%;
        margin-left: 0;
    }

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

    .reading-note {
        grid-template-columns: 1fr;
        gap: 6px;
    }

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

    .chapter-home {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 52px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 18px;
    }

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

    .quick-strip,
    .category-grid,
    .cards-four,
    .cards-five,
    .guide-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

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

    .comic-card {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .cover-link img {
        height: 100%;
        aspect-ratio: auto;
    }

    .cover-badge {
        display: none;
    }

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

    .catalog-row {
        grid-template-columns: 1fr;
    }

    .catalog-cover img {
        aspect-ratio: 16 / 8;
    }

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

    .chapter-home {
        grid-column: auto;
    }

    .chapter-button.next {
        align-items: flex-start;
        text-align: left;
    }
}
