:root {
    --ink: #20213a;
    --muted: #696b83;
    --paper: #fbfbff;
    --line: #e7e6f2;
    --violet: #6b4eff;
    --coral: #ff6f61;
    --shadow: 0 18px 44px rgba(50, 39, 111, 0.09);
}

* {
    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;
    max-width: 100%;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 251, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner,
main,
.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: #312479;
    font-size: 22px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px 11px 11px 3px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), #9e7fff);
}

.main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 5px;
}

.main-nav a,
.search-button {
    padding: 8px 10px;
    border-radius: 9px;
    color: #55566e;
    font-size: 13px;
    white-space: nowrap;
}

.main-nav a span {
    margin-right: 4px;
    color: var(--violet);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--violet);
    background: #eeebff;
}

.search-button {
    border: 1px solid var(--line);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 24px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 490px;
    margin-top: 46px;
    padding: 50px 68px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(120deg, #e9e5ff, #fff1ed);
}

.pill,
.eyebrow,
.genre {
    display: inline-block;
    color: var(--violet);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pill {
    padding: 5px 12px;
    border-radius: 99px;
    color: #53408f;
    background: #fff;
}

.hero h1,
.channel-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1.1;
}

.hero h1 a {
    color: #322372;
}

.hero p {
    max-width: 520px;
    color: #54526c;
    font-size: 17px;
}

.hero-actions,
.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
}

.primary {
    color: #fff;
    background: var(--violet);
    box-shadow: 0 10px 20px rgba(107, 78, 255, 0.25);
}

.secondary {
    border: 1px solid #d8d3f5;
    color: #574a9f;
    background: #fff;
}

.hero-art {
    position: relative;
    justify-self: center;
    width: min(100%, 370px);
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 9px solid #fff;
    border-radius: 140px 140px 25px 25px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
}

.orb-one {
    top: -25px;
    left: -35px;
    width: 135px;
    height: 135px;
    background: #ffcb75;
}

.orb-two {
    right: -40px;
    bottom: 30px;
    width: 105px;
    height: 105px;
    background: #a99aff;
}

.floating-note {
    position: absolute;
    z-index: 3;
    right: -35px;
    bottom: 25px;
    padding: 12px 18px;
    border-radius: 14px;
    color: #59487e;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
    line-height: 1.3;
}

.floating-note strong {
    color: var(--coral);
    font-size: 26px;
}

.content-section,
.editorial-section,
.ranking-section,
.quote-section,
.category-section,
.feature-strip,
.reading-guide,
.about-section,
.app-section,
.channel-seo {
    margin-top: 100px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2,
.editorial-copy h2,
.reading-guide h2,
.about-section h2,
.app-section h2 {
    margin: 2px 0 0;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.25;
}

.section-heading p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: transform 0.2s ease;
}

.comic-card:hover {
    transform: translateY(-5px);
}

.cover-link {
    position: relative;
    display: block;
}

.comic-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.chapter-badge {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
    background: rgba(32, 33, 58, 0.78);
    font-size: 12px;
}

.card-copy {
    padding: 14px;
}

.card-copy h3 {
    margin: 3px 0 5px;
    font-size: 16px;
}

.card-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.editorial-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: #242248;
}

.editorial-image {
    min-height: 370px;
}

.wide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-copy {
    align-self: center;
    padding: 48px;
    color: #fff;
}

.editorial-copy p {
    color: #c9c5e5;
}

.text-link {
    color: var(--violet);
    font-weight: 700;
}

.editorial-copy .text-link {
    color: #d8cfff;
}

.ranking-section {
    padding: 42px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 70px 1fr 1fr 60px;
    align-items: center;
    padding: 17px 0;
    border-top: 1px solid var(--line);
}

.ranking-list strong {
    color: var(--coral);
    font-size: 22px;
}

.ranking-list em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.ranking-list b {
    color: var(--violet);
}

.quote-section {
    padding: 35px 15%;
    text-align: center;
}

.quote-section span {
    color: #c9bdff;
    font-family: Georgia, serif;
    font-size: 70px;
    line-height: 0.5;
}

.quote-section p {
    margin: 16px 0 8px;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: 24px;
}

.quote-section small {
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    position: relative;
    min-height: 185px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.category-card:hover {
    border-color: #bdb0ff;
}

.category-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: var(--violet);
    background: #efedff;
    font-size: 22px;
}

.category-card h3 {
    margin: 12px 0 3px;
}

.category-card p {
    max-width: 270px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.category-card i {
    position: absolute;
    right: 24px;
    bottom: 19px;
    color: var(--violet);
    font-style: normal;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-strip article {
    padding: 28px 36px;
}

.feature-strip article + article {
    border-left: 1px solid var(--line);
}

.feature-strip span {
    color: var(--coral);
    font-size: 24px;
}

.feature-strip h3 {
    margin: 2px 0;
}

.feature-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.reading-guide {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    padding: 42px;
    border-radius: 20px;
    color: #4e3c6e;
    background: #fff3d7;
}

.guide-steps p {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px dashed #dfc99b;
}

.guide-steps b {
    margin-right: 12px;
    color: var(--coral);
}

.about-section {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.about-stamp {
    display: grid;
    width: 225px;
    height: 225px;
    place-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--violet);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-align: center;
    transform: rotate(-10deg);
}

.about-stamp span {
    color: #ffce7e;
}

.about-section p,
.app-section p,
.channel-seo p {
    color: var(--muted);
}

.app-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 52px 70px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(130deg, #3e2c8c, #754eff);
}

.app-copy {
    max-width: 650px;
}

.app-section .eyebrow,
.app-section p {
    color: #ddd6ff;
}

.qr-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border-radius: 16px;
    color: #3e2c8c;
    background: #fff;
}

.qr-grid {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 5px solid #372878;
    background: repeating-linear-gradient(45deg, #eeeaff 0 5px, #fff 5px 10px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.qr-card small {
    font-size: 12px;
    font-weight: 700;
}

.site-footer {
    margin-top: 100px;
    padding: 46px 0 0;
    color: #bbb9ce;
    background: #211f38;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-footer .brand {
    color: #fff;
}

.footer-inner p {
    margin: 8px 0 0;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.copyright {
    width: min(1200px, calc(100% - 40px));
    margin: 30px auto 0;
    padding: 16px 0;
    border-top: 1px solid #393650;
    font-size: 12px;
}

.channel-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    min-height: 285px;
    margin-top: 46px;
    padding: 46px 55px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(125deg, #36256f, #8c6fff);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 30px 0 20px;
    color: var(--muted);
    font-size: 13px;
}

.channel-hero .breadcrumb {
    margin: 0 0 18px;
    color: #d9d2ff;
}

.channel-symbol {
    font-size: 30px;
}

.channel-hero h1 {
    font-size: 44px;
}

.channel-hero p {
    max-width: 600px;
    margin: 0;
    color: #e1ddff;
}

.channel-stat {
    padding: 20px;
    border-left: 1px solid #ad9cf3;
    text-align: center;
}

.channel-stat strong {
    display: block;
    font-size: 48px;
    line-height: 1;
}

.channel-stat span {
    font-size: 12px;
}

.channel-seo {
    padding: 34px 42px;
    border-left: 5px solid #b9adff;
    background: #f0eeff;
}

.channel-seo h2 {
    margin-top: 0;
}

.reader-main {
    max-width: 920px;
}

.reader-header {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.reader-header h1 {
    margin: 6px 0;
    font-size: clamp(28px, 4vw, 42px);
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    color: var(--muted);
    font-size: 13px;
}

.reading-note {
    display: flex;
    gap: 12px;
    margin: 28px 0;
    padding: 16px 20px;
    border-radius: 12px;
    color: #55438a;
    background: #f1eeff;
}

.reading-note span {
    color: var(--violet);
    font-weight: 900;
}

.reading-note p {
    margin: 0;
}

.comic-pages {
    display: grid;
    gap: 24px;
}

.comic-pages figure {
    margin: 0;
}

.reader-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    object-fit: cover;
    background: #eee;
}

.comic-pages figcaption {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.chapter-end {
    margin-top: 40px;
    padding: 36px 25px;
    border-radius: 18px;
    background: #fff0eb;
    text-align: center;
}

.chapter-end span {
    color: var(--coral);
    font-size: 28px;
}

.chapter-end h2 {
    margin: 0;
}

.chapter-end p {
    margin-bottom: 0;
    color: var(--muted);
}

.chapter-nav {
    justify-content: center;
    margin-top: 28px;
}

@media (max-width: 1000px) {
    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .main-nav a {
        flex: 0 0 auto;
    }

    .comic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .header-inner,
    main,
    .footer-inner {
        width: min(100% - 28px, 1200px);
    }

    .header-inner {
        min-height: 64px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        order: 3;
        width: 100%;
        padding-bottom: 4px;
    }

    .main-nav.open {
        display: flex;
    }

    .search-button {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        margin-top: 28px;
        padding: 40px 25px;
    }

    .hero-art {
        margin-top: 35px;
    }

    .content-section,
    .editorial-section,
    .ranking-section,
    .quote-section,
    .category-section,
    .feature-strip,
    .reading-guide,
    .about-section,
    .app-section,
    .channel-seo {
        margin-top: 65px;
    }

    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .comic-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .editorial-section,
    .reading-guide,
    .about-section {
        grid-template-columns: 1fr;
    }

    .editorial-image {
        min-height: 245px;
    }

    .editorial-copy,
    .ranking-section,
    .reading-guide,
    .app-section {
        padding: 30px 22px;
    }

    .ranking-list li {
        grid-template-columns: 48px 1fr 50px;
    }

    .ranking-list em {
        display: none;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .feature-strip article + article {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .about-stamp {
        width: 155px;
        height: 155px;
        font-size: 17px;
    }

    .app-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .channel-hero {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 28px;
        padding: 35px 25px;
    }

    .channel-stat {
        border-top: 1px solid #ad9cf3;
        border-left: 0;
    }

    .reader-main {
        width: min(100% - 28px, 920px);
    }

    .footer-links {
        flex-wrap: wrap;
    }
}
