:root {
    --ink: #20233d;
    --muted: #747891;
    --paper: #fffdfb;
    --lavender: #7165d9;
    --rose: #ff8ba7;
    --sky: #dff4ff;
    --line: #ebe8f6;
    --shadow: 0 14px 34px rgba(52, 43, 104, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #faf9ff 0, var(--paper) 520px);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    padding: 18px 0;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    color: #312a75;
    font-size: 22px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--lavender), var(--rose));
    border-radius: 13px 13px 13px 4px;
    box-shadow: 0 7px 15px rgba(113, 101, 217, .3);
}

.main-nav {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 5px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 9px;
    color: #545773;
    font-size: 14px;
    border-radius: 10px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--lavender);
    background: #f0eeff;
    font-weight: 700;
}

.nav-icon {
    font-size: 16px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 395px;
    margin-top: 38px;
    padding: 58px;
    background: linear-gradient(118deg, #4c419e, #776fe0 57%, #ff97b2);
    border-radius: 30px;
    box-shadow: 0 20px 45px rgba(80, 64, 176, .24);
}

.hero::after {
    position: absolute;
    top: -85px;
    right: -45px;
    width: 355px;
    height: 355px;
    content: "";
    background: rgba(255, 255, 255, .14);
    border: 28px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 675px;
    color: white;
}

.eyebrow {
    display: inline-block;
    padding: 5px 13px;
    font-size: 13px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 99px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: .06em;
}

.hero p {
    max-width: 600px;
    font-size: 17px;
}

.button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 12px;
}

.button {
    color: #473d94;
    background: white;
}

.button.alt {
    color: white;
    background: var(--lavender);
}

.hero .button {
    margin-top: 10px;
}

.section {
    margin-top: 76px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 26px;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.more {
    color: var(--lavender);
    font-weight: 700;
    white-space: nowrap;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.comic-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}

.comic-card:hover {
    transform: translateY(-5px);
}

.cover {
    aspect-ratio: 3 / 4;
}

.comic-card-body {
    padding: 13px;
}

.comic-card h3 {
    margin-bottom: 4px;
    font-size: 16px;
}

.comic-card p,
.meta {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    display: flex;
    align-items: center;
    min-height: 120px;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.category-icon,
.feature-icon {
    display: grid;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    place-items: center;
    color: #6658cc;
    font-size: 25px;
    background: #efedff;
    border-radius: 15px;
}

.category-card h3 {
    margin-bottom: 3px;
}

.category-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.spotlight {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    background: #25214e;
    border-radius: 24px;
}

.spotlight-copy {
    padding: 42px;
    color: white;
}

.spotlight-copy p {
    color: #d7d3ff;
}

.spotlight-image {
    min-height: 320px;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px;
    background: white;
    border-bottom: 3px solid #ebe8ff;
    border-radius: 14px;
}

.rank-number {
    color: var(--rose);
    font-size: 24px;
    font-weight: 800;
}

.rank-item img {
    width: 58px;
    height: 74px;
    border-radius: 8px;
}

.rank-item h3 {
    margin-bottom: 2px;
    font-size: 15px;
}

.rank-item p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.schedule {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.day {
    min-height: 160px;
    padding: 16px;
    border-right: 1px solid var(--line);
}

.day:last-child {
    border-right: 0;
}

.day strong {
    color: var(--lavender);
}

.day span {
    display: block;
    margin-top: 12px;
    font-size: 13px;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature {
    padding: 23px;
    background: #f4fbff;
    border-radius: 18px;
}

.feature:nth-child(2) {
    background: #fff3f6;
}

.feature:nth-child(3) {
    background: #f3f1ff;
}

.feature:nth-child(4) {
    background: #f1fbf6;
}

.feature h3 {
    margin: 14px 0 4px;
}

.feature p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.editorial article {
    padding: 25px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.editorial h3 {
    font-size: 18px;
}

.editorial p {
    color: var(--muted);
}

.about {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 34px;
    padding: 40px;
    background: linear-gradient(135deg, #effaff, #f7f3ff);
    border-radius: 24px;
}

.about h2 {
    font-size: 29px;
}

.about p {
    color: #52566e;
}

.about-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-list li {
    padding: 11px 13px;
    background: white;
    border-radius: 10px;
}

.app-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 38px 44px;
    color: white;
    background: linear-gradient(120deg, #2d276e, #715bd1);
    border-radius: 24px;
}

.app-box h2 {
    margin-bottom: 8px;
}

.app-box p {
    max-width: 630px;
    margin-bottom: 0;
    color: #ddd9ff;
}

.qr {
    display: grid;
    width: 106px;
    height: 106px;
    place-items: center;
    color: #392f81;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    background: repeating-linear-gradient(45deg, #fff 0 7px, #ded9ff 7px 14px);
    border: 7px solid white;
    border-radius: 12px;
}

.site-footer {
    margin-top: 70px;
    padding: 28px 0;
    color: #72748a;
    font-size: 13px;
    border-top: 1px solid var(--line);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.crumb {
    padding: 22px 0;
    color: var(--muted);
    font-size: 14px;
}

.listing-hero,
.reader-heading {
    padding: 36px 40px;
    color: white;
    background: linear-gradient(135deg, #6354c5, #aa87e8);
    border-radius: 24px;
}

.listing-hero h1,
.reader-heading h1 {
    margin-bottom: 8px;
    font-size: 35px;
    letter-spacing: 0;
}

.listing-hero p,
.reader-heading p {
    margin-bottom: 0;
}

.reader {
    max-width: 820px;
    margin: 0 auto;
}

.reading-note {
    padding: 17px 20px;
    color: #565070;
    background: #f2f0ff;
    border-left: 4px solid var(--lavender);
    border-radius: 8px;
}

.chapter-image {
    aspect-ratio: 16 / 10;
    margin-top: 20px;
    background: #f1eff8;
    border-radius: 14px;
}

.chapter-end {
    padding: 25px;
    margin-top: 22px;
    text-align: center;
    background: #fff4f7;
    border-radius: 16px;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 900px) {
    .header-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .comic-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .spotlight,
    .about {
        grid-template-columns: 1fr;
    }

    .spotlight-image {
        min-height: 240px;
    }

    .schedule {
        grid-template-columns: repeat(4, 1fr);
    }

    .day:nth-child(4) {
        border-right: 0;
    }
}

@media (max-width: 600px) {
    .wrap {
        width: min(100% - 28px, 1200px);
    }

    .hero {
        min-height: 0;
        margin-top: 25px;
        padding: 34px 25px;
    }

    .section {
        margin-top: 54px;
    }

    .comic-grid,
    .category-grid,
    .ranking-list,
    .feature-row,
    .editorial {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .schedule {
        grid-template-columns: repeat(2, 1fr);
    }

    .day {
        min-height: 120px;
        border-bottom: 1px solid var(--line);
    }

    .day:nth-child(even) {
        border-right: 0;
    }

    .spotlight-copy,
    .about,
    .app-box {
        padding: 26px;
    }

    .app-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading,
    .footer-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
