:root {
    --ink: #28233a;
    --muted: #766f86;
    --paper: #fffdf9;
    --lilac: #f0eaff;
    --purple: #7048c8;
    --orange: #ff8b49;
    --line: #e9e3ee;
    --deep: #29213d;
}

* {
    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%;
    height: auto;
}

.shell {
    width: min(1200px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 16px 0;
    background: rgba(255, 253, 249, 0.94);
    border-bottom: 1px solid rgba(233, 227, 238, 0.9);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 9px;
    color: var(--deep);
    font-size: 20px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #8c62df, #e368b9);
    border-radius: 11px 11px 17px 11px;
    font-size: 17px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 10px;
    color: #625b70;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--purple);
    background: var(--lilac);
}

.header-action {
    flex-shrink: 0;
    padding: 8px 13px;
    color: var(--purple);
    border: 1px solid #d9cafa;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.menu-button {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 68px;
    align-items: center;
    min-height: 520px;
    margin-top: 56px;
    padding: 42px 64px;
    overflow: hidden;
    background: linear-gradient(117deg, #f1e9ff, #fff0e8);
    border-radius: 32px;
}

.section-kicker {
    margin: 0 0 10px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hero h1,
.page-hero h1,
.article-header h1 {
    margin: 0;
    color: var(--deep);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.15;
}

.hero h1 a {
    text-decoration: underline;
    text-decoration-color: #bc9cf7;
    text-underline-offset: 10px;
}

.hero-lead {
    max-width: 510px;
    margin: 22px 0;
    color: #5d546d;
    font-size: 17px;
}

.hero-actions,
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

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

.button-primary {
    color: #fff;
    background: var(--purple);
    box-shadow: 0 9px 18px rgba(112, 72, 200, 0.2);
}

.button-ghost {
    color: var(--purple);
    background: rgba(255, 255, 255, 0.62);
}

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

.hero-meta {
    gap: 19px;
    margin-top: 24px;
    color: #716880;
    font-size: 12px;
}

.hero-meta span::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    background: var(--orange);
    border-radius: 50%;
    content: "";
}

.hero-art {
    position: relative;
}

.hero-art img {
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.8);
    border-radius: 26px;
    box-shadow: 15px 18px 0 rgba(112, 72, 200, 0.14);
}

.hero-note {
    position: absolute;
    right: -18px;
    bottom: 26px;
    padding: 13px 18px;
    color: #fff;
    background: var(--deep);
    border-radius: 12px;
}

.hero-note span {
    display: block;
    color: #d6c9f8;
    font-size: 11px;
}

.hero-note strong {
    font-size: 14px;
}

.section {
    margin-top: 104px;
}

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

.section-heading h2,
.about-section h2,
.app-section h2,
.story-band h2,
.tools-copy h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.3;
}

.section-heading > p,
.centered p {
    margin: 0;
    color: var(--muted);
}

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

.text-link {
    flex-shrink: 0;
    color: var(--purple);
    font-size: 14px;
    font-weight: 800;
}

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

.feature-tile {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    color: #fff;
    border-radius: 18px;
}

.feature-tile::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(29, 20, 44, 0.86));
    content: "";
}

.feature-tile img {
    position: absolute;
    height: 100%;
    object-fit: cover;
}

.feature-tile div {
    position: absolute;
    right: 20px;
    bottom: 19px;
    left: 20px;
    z-index: 1;
}

.feature-tile p {
    margin: 0;
    color: #f2d4ff;
    font-size: 12px;
}

.feature-tile h3 {
    margin: 3px 0 9px;
    font-size: 20px;
}

.feature-tile a {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

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

.category-card {
    display: flex;
    min-height: 122px;
    gap: 13px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(46, 35, 68, 0.035);
}

.category-card:hover {
    border-color: #c9b2f6;
    transform: translateY(-3px);
}

.category-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--purple);
    background: var(--lilac);
    border-radius: 13px;
    font-size: 21px;
}

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

.category-card strong {
    font-size: 15px;
}

.category-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.category-card i {
    margin-left: auto;
    color: #b2a8bd;
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
}

.rank-panel,
.update-panel {
    padding: 31px;
    border-radius: 22px;
}

.rank-panel {
    background: #fff;
    border: 1px solid var(--line);
}

.update-panel {
    color: #fff;
    background: linear-gradient(145deg, #443265, #251d3a);
}

.update-panel .section-kicker {
    color: #d6bdfc;
}

.update-panel h2 {
    margin: 0 0 19px;
    font-size: 27px;
}

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

.ranking-list li,
.update-list li {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.ranking-list b {
    color: var(--orange);
    font-size: 17px;
}

.ranking-list a {
    flex: 1;
    font-weight: 800;
}

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

.update-list li {
    border-color: rgba(255, 255, 255, 0.14);
}

.update-list a {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
}

.update-list em,
.update-time {
    font-size: 11px;
    font-style: normal;
}

.update-list em {
    color: #d6c9ed;
}

.update-time {
    color: #d0adfb;
}

.update-panel .button {
    width: 100%;
    margin-top: 22px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.schedule-item {
    min-height: 142px;
    padding: 19px;
    background: #fff;
    border-right: 1px solid var(--line);
}

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

.schedule-item b {
    display: grid;
    width: 32px;
    height: 32px;
    margin-bottom: 15px;
    place-items: center;
    color: #fff;
    background: var(--purple);
    border-radius: 50%;
}

.schedule-item span {
    color: #5e566b;
    font-size: 13px;
}

.story-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    background: #f5f1eb;
    border-radius: 22px;
}

.story-band-image img {
    height: 100%;
    min-height: 345px;
    object-fit: cover;
}

.story-band-copy {
    align-self: center;
    padding: 50px;
}

.story-band-copy p:not(.section-kicker) {
    color: var(--muted);
}

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

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

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

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

.cover-link img {
    aspect-ratio: 0.71 / 1;
    object-fit: cover;
}

.cover-tag {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    color: #fff;
    background: rgba(40, 35, 58, 0.82);
    border-radius: 6px;
    font-size: 11px;
}

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

.comic-card-body .eyebrow {
    margin: 0;
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
}

.comic-card h2,
.comic-card h3 {
    margin: 5px 0 4px;
    font-size: 17px;
    line-height: 1.35;
}

.comic-card-body > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.quote-section {
    padding: 58px 13%;
    color: #fff;
    text-align: center;
    background: linear-gradient(130deg, #8d60db, #cf72b4);
    border-radius: 21px;
}

.quote-mark {
    height: 40px;
    color: #f7d6ed;
    font-family: Georgia, serif;
    font-size: 66px;
    line-height: 1;
}

.quote-section blockquote {
    margin: 16px 0;
    font-size: clamp(22px, 3vw, 31px);
    font-weight: 800;
    line-height: 1.55;
}

.quote-section p {
    margin: 0;
    color: #fbe5f4;
    font-size: 13px;
}

.reader-tools {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 54px;
    align-items: center;
}

.tools-copy p:not(.section-kicker) {
    color: var(--muted);
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tool-cards div {
    padding: 22px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: center;
}

.tool-cards span {
    color: var(--purple);
    font-size: 26px;
}

.tool-cards h3 {
    margin: 7px 0 2px;
    font-size: 15px;
}

.tool-cards p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.about-section {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 38px;
    align-items: start;
    padding: 49px;
    background: #f7f5fb;
    border-radius: 22px;
}

.about-symbol {
    display: grid;
    width: 124px;
    height: 124px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #714ac7, #a27ae8);
    border-radius: 38px 38px 70px 38px;
    font-size: 58px;
    font-weight: 800;
}

.about-section p:not(.section-kicker) {
    margin-bottom: 0;
    color: var(--muted);
}

.app-section {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
    margin-top: 104px;
    margin-bottom: 74px;
    padding: 48px 72px;
    background: #ffe8d9;
    border-radius: 23px;
}

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

.app-copy p:not(.section-kicker) {
    color: #725e59;
}

.qr-card {
    display: flex;
    flex: 0 0 176px;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 13px;
    text-align: center;
}

.qr-pattern {
    width: 114px;
    padding: 6px;
    color: #fff;
    background: repeating-linear-gradient(45deg, #34264d 0, #34264d 7px, #fff 7px, #fff 12px);
    border: 8px solid #fff;
    outline: 1px solid #ded7e6;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 15px;
    line-height: 1.15;
    text-indent: 13px;
}

.qr-card strong {
    margin-top: 9px;
    font-size: 13px;
}

.qr-card span {
    color: var(--muted);
    font-size: 10px;
}

.site-footer {
    padding: 55px 0 20px;
    color: #d8d0e0;
    background: var(--deep);
}

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

.brand-footer {
    color: #fff;
}

.footer-grid p {
    color: #bfb4ca;
    font-size: 13px;
}

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

.footer-grid a:not(.brand) {
    display: block;
    margin: 6px 0;
    color: #c7bed0;
    font-size: 13px;
}

.copyright {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copyright p {
    margin: 0;
    color: #a99eaf;
    font-size: 12px;
}

.inner-page {
    padding-bottom: 80px;
}

.page-hero {
    margin-top: 54px;
    padding: 50px 58px;
    background: linear-gradient(125deg, #f0eaff, #fff2e9);
    border-radius: 24px;
}

.page-hero h1 {
    font-size: clamp(35px, 5vw, 54px);
}

.page-hero > p:last-child {
    max-width: 650px;
    margin: 15px 0 0;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
    color: #766e81;
    font-size: 13px;
}

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

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

.column-seo {
    margin-top: 84px;
    padding: 40px 48px;
    background: #f7f5fb;
    border-left: 5px solid var(--purple);
    border-radius: 0 18px 18px 0;
}

.column-seo h2 {
    margin: 0;
    font-size: 25px;
}

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

.reading-page {
    padding: 55px 0 80px;
}

.reading-article {
    max-width: 880px;
}

.article-header {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.article-header h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}

.reading-note {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 30px 0;
    padding: 17px 21px;
    background: #f5efff;
    border-radius: 12px;
}

.reading-note > span {
    color: var(--purple);
    font-size: 25px;
}

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

.reading-note p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.chapter-content {
    max-width: 680px;
    margin: 0 auto;
}

.reading-panel {
    margin: 0;
    padding: 0 0 30px;
}

.reading-panel img {
    aspect-ratio: 0.71 / 1;
    object-fit: cover;
    background: #eee9f0;
}

.reading-panel figcaption {
    padding: 9px 12px;
    color: #756b7d;
    background: #faf8fb;
    font-size: 13px;
}

.chapter-end {
    margin: 16px 0 30px;
    padding: 35px 20px;
    color: #665c73;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.chapter-end span {
    color: var(--orange);
}

.chapter-end h2 {
    margin: 6px 0;
    color: var(--ink);
    font-size: 19px;
}

.chapter-end p {
    margin: 0;
    font-size: 13px;
}

.chapter-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.chapter-nav a {
    padding: 12px;
    color: var(--purple);
    border: 1px solid #d9caf9;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.chapter-nav .back-chapter {
    color: #fff;
    background: var(--purple);
}

@media (max-width: 1050px) {
    .main-nav {
        gap: 0;
    }

    .nav-link {
        padding: 8px 7px;
        font-size: 12px;
    }

    .hero {
        gap: 36px;
        padding: 38px;
    }

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

    .feature-tile {
        min-height: 280px;
    }

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

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

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

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

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .brand {
        font-size: 18px;
    }

    .header-action {
        margin-left: auto;
    }

    .menu-button {
        display: grid;
        gap: 4px;
        width: 35px;
        padding: 8px;
        background: #f3edff;
        border: 0;
        border-radius: 8px;
    }

    .menu-button span {
        display: block;
        height: 2px;
        background: var(--purple);
    }

    .main-nav {
        display: none;
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-top: 8px;
    }

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

    .nav-link {
        padding: 7px 8px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        margin-top: 31px;
        padding: 32px 24px;
        border-radius: 20px;
    }

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

    .section {
        margin-top: 70px;
    }

    .section-heading {
        display: block;
    }

    .section-heading .text-link,
    .section-heading > p {
        display: inline-block;
        margin-top: 10px;
    }

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

    .split-section,
    .story-band,
    .reader-tools {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .update-panel {
        padding: 23px;
    }

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

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

    .schedule-item:nth-child(-n+4) {
        border-bottom: 1px solid var(--line);
    }

    .story-band-copy {
        padding: 32px 25px;
    }

    .story-band-image img {
        min-height: 260px;
    }

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

    .about-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 25px;
    }

    .about-symbol {
        width: 80px;
        height: 80px;
        border-radius: 23px 23px 43px 23px;
        font-size: 38px;
    }

    .app-section {
        gap: 30px;
        margin-top: 70px;
        padding: 34px 25px;
    }

    .qr-card {
        flex-basis: 145px;
    }

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

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

    .page-hero {
        margin-top: 30px;
        padding: 32px 25px;
    }

    .column-seo {
        margin-top: 60px;
        padding: 28px 25px;
    }

    .reading-page {
        padding-top: 30px;
    }

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

@media (max-width: 420px) {
    .header-action {
        display: none;
    }

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

    .feature-grid,
    .category-grid,
    .comic-grid,
    .compact-grid,
    .five-grid {
        grid-template-columns: 1fr;
    }

    .feature-tile {
        min-height: 250px;
    }

    .tool-cards {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid > div:first-child {
        grid-column: auto;
    }
}
