@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #25233a;
    --muted: #747187;
    --purple: #6f4ff2;
    --pink: #ff6f9f;
    --cream: #fffaf4;
    --card: #ffffff;
    --line: #ebe6f2;
    --shadow: 0 16px 45px rgba(62, 47, 112, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff9f8 0%, #f8f7ff 55%, #fffaf6 100%);
    font-family: "Noto Sans SC", Arial, sans-serif;
}

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: 10;
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(235, 230, 242, 0.9);
    backdrop-filter: blur(14px);
}

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

.logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: #3d286b;
    font-size: 21px;
    font-weight: 800;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #7952ec, #ff6f9f);
    border-radius: 13px 13px 13px 4px;
    box-shadow: 0 7px 16px rgba(111, 79, 242, 0.3);
}

.nav {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 5px;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 7px;
    color: #5d5970;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--purple);
    background: #f0ecff;
    font-weight: 700;
}

.search-button {
    padding: 10px 14px;
    color: white;
    background: var(--purple);
    border: 0;
    border-radius: 12px;
    font: inherit;
    cursor: pointer;
}

.hero {
    margin-top: 42px;
    overflow: hidden;
    background: linear-gradient(120deg, #51359d 0%, #7755e4 53%, #fe759e 100%);
    border-radius: 28px;
    box-shadow: 0 22px 46px rgba(85, 53, 158, 0.24);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 350px;
}

.hero-copy {
    padding: 58px;
    color: white;
}

.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    color: #fdf3ff;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 99px;
    font-size: 13px;
}

h1 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.12;
}

.hero p {
    max-width: 580px;
    margin: 0;
    color: #f4eeff;
    font-size: 17px;
    line-height: 1.9;
}

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

.button {
    display: inline-block;
    padding: 12px 19px;
    border-radius: 12px;
    font-weight: 700;
}

.button-light {
    color: var(--purple);
    background: white;
}

.button-outline {
    color: white;
    border: 1px solid rgba(255,255,255,0.55);
}

.hero-art {
    min-height: 280px;
    background: url("https://tse-mm.bing.com/th?q=%E6%A2%A6%E5%B9%BB%E5%B0%91%E5%A5%B3%E6%BC%AB%E7%94%BB") center/cover;
    mix-blend-mode: luminosity;
    opacity: 0.92;
}

.section {
    margin-top: 68px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 23px;
}

.section-head h2,
.section-head h3 {
    margin: 0;
    font-size: 28px;
}

.section-head p {
    margin: 7px 0 0;
    color: var(--muted);
}

.more {
    color: var(--purple);
    font-weight: 700;
}

.feature-grid,
.book-grid,
.category-grid,
.rank-list,
.news-grid,
.review-grid {
    display: grid;
    gap: 20px;
}

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

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

.feature-card img {
    aspect-ratio: 16 / 10;
}

.feature-card div {
    padding: 18px;
}

.badge {
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
}

.feature-card h3,
.book-card h3,
.news-card h3 {
    margin: 7px 0;
    font-size: 18px;
}

.feature-card p,
.book-card p,
.news-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

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

.book-card {
    min-width: 0;
}

.book-card img {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(48, 39, 84, 0.14);
}

.book-card h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card {
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #8568ef, #fa8bb3);
    border-radius: 13px;
    font-size: 21px;
}

.category-card h3 {
    margin: 13px 0 6px;
}

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

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

.rank-item {
    position: relative;
    overflow: hidden;
    color: white;
    border-radius: 18px;
}

.rank-item img {
    aspect-ratio: 4 / 5;
    filter: brightness(0.68);
}

.rank-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px;
    background: linear-gradient(transparent, rgba(30, 21, 53, 0.88));
}

.rank-number {
    color: #ffe185;
    font-size: 24px;
    font-weight: 800;
}

.split-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.split-panel img {
    aspect-ratio: 16 / 10;
    height: 100%;
}

.split-copy {
    padding: 42px;
}

.split-copy h2 {
    margin-top: 0;
}

.split-copy p {
    color: var(--muted);
    line-height: 1.9;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 12px;
    color: #564a80;
    background: #f5f2ff;
    border-radius: 99px;
    font-size: 14px;
}

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

.news-card {
    padding: 23px;
    background: #fff;
    border-top: 4px solid #8d70ee;
    border-radius: 15px;
}

.news-date {
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
}

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

.review-card {
    padding: 24px;
    background: #fff8ee;
    border-radius: 18px;
}

.review-card p {
    margin: 0;
    line-height: 1.8;
}

.review-card strong {
    display: block;
    margin-top: 15px;
    color: var(--purple);
}

.about {
    padding: 42px;
    color: #fff;
    background: #312654;
    border-radius: 24px;
}

.about h2 {
    margin-top: 0;
}

.about p {
    max-width: 900px;
    color: #e4dcff;
    line-height: 2;
}

.app-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 38px 44px;
    color: white;
    background: linear-gradient(120deg, #ff6d9a, #774fe1);
    border-radius: 25px;
}

.app-panel h2 {
    margin: 0 0 8px;
}

.app-panel p {
    margin: 0 0 17px;
    color: #fff3f7;
}

.qr {
    display: grid;
    width: 126px;
    height: 126px;
    place-items: center;
    color: #4d377e;
    background: repeating-linear-gradient(45deg, #fff 0 8px, #eee8ff 8px 16px);
    border: 8px solid white;
    border-radius: 15px;
    font-weight: 800;
    text-align: center;
}

.site-footer {
    margin-top: 68px;
    padding: 32px 0;
    color: #6e6782;
    border-top: 1px solid var(--line);
    font-size: 14px;
    text-align: center;
}

.breadcrumb {
    margin-top: 30px;
    color: var(--muted);
    font-size: 14px;
}

.page-title {
    margin: 24px 0 10px;
    font-size: 38px;
}

.page-lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.listing {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 34px;
}

.listing .book-card {
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.article {
    max-width: 860px;
    margin: 0 auto;
}

.article h1 {
    margin: 24px 0 8px;
    color: var(--ink);
    font-size: 38px;
}

.article-meta {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
}

.reading-note {
    padding: 17px 19px;
    color: #5a4d82;
    background: #f1edff;
    border-radius: 12px;
    line-height: 1.8;
}

.comic-pages {
    display: grid;
    gap: 20px;
    margin-top: 26px;
}

.comic-pages img {
    aspect-ratio: 2 / 3;
    background: #eae6f5;
    border-radius: 12px;
}

.chapter-end {
    padding: 22px;
    color: var(--muted);
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: center;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.chapter-nav a {
    padding: 12px 16px;
    color: var(--purple);
    background: #f1edff;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .header-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 0;
    }

    .nav {
        order: 3;
        flex-basis: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .hero-inner,
    .split-panel,
    .app-panel {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 220px;
    }

    .book-grid,
    .rank-list,
    .listing {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .search-button {
        margin-left: auto;
    }

    .hero {
        margin-top: 26px;
        border-radius: 20px;
    }

    .hero-copy,
    .split-copy,
    .about,
    .app-panel {
        padding: 28px;
    }

    .section {
        margin-top: 48px;
    }

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

    .book-grid,
    .rank-list,
    .listing {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

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