:root {
    --ink: #202033;
    --muted: #6f7185;
    --paper: #fffdf9;
    --surface: #ffffff;
    --line: #e7e7ef;
    --brand: #f04464;
    --brand-dark: #c82e50;
    --brand-soft: #fff0f3;
    --violet: #6458d8;
    --yellow: #ffd66b;
    --shadow: 0 18px 50px rgba(44, 39, 69, 0.1);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f7f7fb;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(231, 231, 239, 0.85);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    border-radius: 15px 15px 15px 5px;
    background: linear-gradient(145deg, var(--brand), #ff7a69);
    box-shadow: 0 10px 20px rgba(240, 68, 100, 0.24);
}

.brand-mark::after {
    content: "漫";
    font-size: 1.05rem;
    font-weight: 900;
}

.site-nav {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 11px;
    color: #55566b;
    border-radius: 13px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.nav-icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    font-size: 0.92rem;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
}

main {
    padding: 34px 0 76px;
}

.home-main {
    display: grid;
    gap: 56px;
}

.hero {
    position: relative;
    display: grid;
    min-height: 490px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
    padding: 62px;
    overflow: hidden;
    border: 1px solid #ebe7f3;
    border-radius: 36px;
    background: linear-gradient(135deg, #fff6f1 0%, #ffffff 50%, #f0efff 100%);
    box-shadow: var(--shadow);
}

.hero::before {
    position: absolute;
    top: -90px;
    right: -60px;
    width: 260px;
    height: 260px;
    content: "";
    border: 42px solid rgba(100, 88, 216, 0.08);
    border-radius: 50%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 1.04;
    letter-spacing: -0.07em;
}

.hero h1 a {
    color: var(--ink);
}

.hero-copy {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 12px 24px rgba(240, 68, 100, 0.24);
}

.button-secondary {
    color: var(--ink);
    border: 1px solid var(--line);
    background: #ffffff;
}

.hero-art {
    position: relative;
    min-height: 350px;
}

.hero-cover {
    position: absolute;
    overflow: hidden;
    border: 8px solid #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(45, 38, 78, 0.2);
}

.hero-cover img {
    height: 100%;
    object-fit: cover;
}

.hero-cover-main {
    inset: 10px 46px 18px 78px;
    transform: rotate(3deg);
}

.hero-cover-side {
    top: 78px;
    bottom: 50px;
    left: 0;
    width: 42%;
    transform: rotate(-8deg);
}

.hero-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    font-weight: 900;
}

.section {
    scroll-margin-top: 110px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -0.04em;
}

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

.section-link {
    flex: 0 0 auto;
    color: var(--brand-dark);
    font-weight: 800;
}

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

.category-card {
    min-height: 190px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-symbol {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    place-items: center;
    color: #ffffff;
    border-radius: 15px;
    background: var(--violet);
    font-size: 1.3rem;
}

.category-card:nth-child(even) .category-symbol {
    background: var(--brand);
}

.category-card h3 {
    margin: 0 0 7px;
    font-size: 1.08rem;
}

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

.latest-panel {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 20px;
}

.latest-list {
    padding: 12px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.latest-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.latest-row:last-child {
    border-bottom: 0;
}

.latest-number {
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 900;
}

.latest-row h3,
.latest-row p {
    margin: 0;
}

.latest-row p {
    color: var(--muted);
    font-size: 0.9rem;
}

.chapter-pill {
    padding: 6px 10px;
    color: var(--violet);
    border-radius: 999px;
    background: #f0efff;
    font-size: 0.82rem;
    font-weight: 800;
}

.update-note {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
    color: #ffffff;
    border-radius: var(--radius);
    background: linear-gradient(150deg, #29243f, #6458d8);
}

.update-note h3 {
    margin: 0;
    font-size: 1.8rem;
}

.update-note p {
    color: #dcd9ff;
}

.spotlight {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    border-radius: 30px;
    background: #211f31;
    box-shadow: var(--shadow);
}

.spotlight figure {
    margin: 0;
}

.spotlight img {
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.spotlight-copy {
    padding: 54px;
    color: #ffffff;
}

.spotlight-copy h2 {
    margin: 10px 0 18px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
}

.spotlight-copy p {
    color: #cbc9d8;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0;
}

.tag {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.84rem;
}

.ranking-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rank-column {
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(44, 39, 69, 0.06);
}

.rank-column h3 {
    margin: 0 0 16px;
}

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

.rank-list li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-list strong {
    color: var(--brand);
}

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

.manga-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(44, 39, 69, 0.07);
}

.manga-card figure {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.manga-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.manga-card:hover img {
    transform: scale(1.05);
}

.manga-card-body {
    padding: 16px;
}

.manga-card h3,
.manga-card p {
    margin: 0;
}

.manga-card h3 {
    font-size: 1rem;
}

.manga-card p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.84rem;
}

.bookshelf {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 34px;
    border-radius: 28px;
    background: #ece9ff;
}

.book-spine {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-left: 8px solid var(--brand);
    border-radius: 8px 18px 18px 8px;
    background: #ffffff;
    box-shadow: 8px 12px 0 rgba(100, 88, 216, 0.12);
}

.book-spine:nth-child(even) {
    border-left-color: var(--violet);
}

.book-spine h3,
.book-spine p {
    margin: 0;
}

.book-spine p {
    color: var(--muted);
    font-size: 0.9rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.timeline-item {
    position: relative;
    padding: 14px 22px 14px 28px;
    border-left: 2px solid #dedbea;
}

.timeline-item::before {
    position: absolute;
    top: 22px;
    left: -7px;
    width: 12px;
    height: 12px;
    content: "";
    border-radius: 50%;
    background: var(--brand);
}

.timeline-item time {
    color: var(--brand-dark);
    font-weight: 900;
}

.timeline-item h3,
.timeline-item p {
    margin: 4px 0 0;
}

.timeline-item p {
    color: var(--muted);
    font-size: 0.88rem;
}

.genre-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding: 42px;
    border-radius: 50px 18px 50px 18px;
    background: #fff4dc;
}

.genre-chip {
    padding: 11px 18px;
    border: 1px solid rgba(32, 32, 51, 0.08);
    border-radius: 999px;
    background: #ffffff;
    font-weight: 800;
}

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

.reader-step {
    position: relative;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.reader-step strong {
    display: block;
    margin-bottom: 40px;
    color: var(--brand);
    font-size: 2rem;
}

.reader-step h3,
.reader-step p {
    margin: 0;
}

.reader-step p {
    margin-top: 8px;
    color: var(--muted);
}

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

.voice-card {
    margin: 0;
    padding: 32px;
    border-radius: 10px 28px 10px 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.voice-card p {
    margin: 0;
    font-size: 1.05rem;
}

.voice-card footer {
    margin-top: 18px;
    color: var(--muted);
}

.about-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 44px;
    padding: 50px;
    color: #ffffff;
    border-radius: 30px;
    background: linear-gradient(130deg, #29243f, #3b3457);
}

.about-panel h2 {
    margin: 0;
    font-size: 2.4rem;
}

.about-panel p {
    margin: 0;
    color: #d8d6e2;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.about-point {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.subscribe-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 34px;
    padding: 46px;
    border: 1px solid #f5c7d1;
    border-radius: 30px;
    background: linear-gradient(135deg, #fff0f3, #ffffff);
}

.subscribe-panel h2,
.subscribe-panel p {
    margin: 0;
}

.subscribe-panel p {
    max-width: 720px;
    margin-top: 10px;
    color: var(--muted);
}

.subscribe-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-qr {
    display: grid;
    width: 92px;
    height: 92px;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.brand-qr i {
    background: var(--ink);
}

.brand-qr i:nth-child(3n) {
    background: var(--brand);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    padding: 14px 18px;
    color: #ffffff;
    border-radius: 14px;
    background: #211f31;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: 0.25s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.9rem;
}

.page-hero {
    padding: 46px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #fff0f3);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.14;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 38px 0 20px;
}

.catalog-toolbar h2 {
    margin: 0;
}

.catalog-count {
    color: var(--muted);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.catalog-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(44, 39, 69, 0.08);
}

.catalog-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.catalog-cover img {
    height: 100%;
    object-fit: cover;
}

.catalog-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(32, 32, 51, 0.86);
    font-size: 0.78rem;
}

.catalog-body {
    padding: 18px;
}

.catalog-body h3,
.catalog-body p {
    margin: 0;
}

.catalog-body p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.86rem;
}

.catalog-seo {
    margin-top: 42px;
    padding: 34px;
    border-left: 6px solid var(--brand);
    border-radius: 0 22px 22px 0;
    background: #ffffff;
}

.catalog-seo h2,
.catalog-seo p {
    margin: 0;
}

.catalog-seo p {
    margin-top: 10px;
    color: var(--muted);
}

.reader-shell {
    max-width: 980px;
    margin: 0 auto;
}

.reader-header {
    padding: 38px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
}

.reader-header h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.reading-note {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 5px solid var(--yellow);
    border-radius: 0 16px 16px 0;
    background: #fff9ea;
}

.comic-chapter {
    display: grid;
    gap: 26px;
}

.comic-panel {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.comic-panel img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.comic-panel figcaption {
    padding: 18px 22px;
    color: var(--muted);
    text-align: center;
}

.chapter-ending {
    margin-top: 32px;
    padding: 34px;
    text-align: center;
    border: 1px dashed #cfcbdc;
    border-radius: 22px;
    background: #ffffff;
}

.chapter-ending h2,
.chapter-ending p {
    margin: 0;
}

.chapter-ending p {
    margin-top: 8px;
    color: var(--muted);
}

.chapter-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.chapter-nav a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #ffffff;
    font-weight: 800;
    text-align: center;
}

.chapter-nav a:nth-child(2) {
    color: #ffffff;
    border-color: var(--brand);
    background: var(--brand);
}

.site-footer {
    padding: 34px 0;
    color: #b9b7c7;
    background: #211f31;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    margin: 0;
}

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

@media (max-width: 1080px) {
    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        display: none;
        max-height: calc(100vh - 100px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

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

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

    .manga-grid,
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .header-inner {
        min-height: 72px;
    }

    .brand {
        font-size: 1.12rem;
    }

    main {
        padding-top: 22px;
    }

    .home-main {
        gap: 40px;
    }

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

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

    .hero-cover-main {
        inset: 10px 36px 10px 60px;
    }

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

    .category-grid,
    .ranking-board,
    .reader-steps,
    .voice-grid,
    .about-panel,
    .subscribe-panel,
    .latest-panel,
    .spotlight {
        grid-template-columns: 1fr;
    }

    .manga-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spotlight-copy,
    .about-panel,
    .subscribe-panel,
    .page-hero {
        padding: 30px 24px;
    }

    .spotlight img {
        min-height: 320px;
    }

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

    .about-points {
        grid-template-columns: 1fr;
    }

    .subscribe-actions {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

@media (max-width: 440px) {
    .category-grid,
    .bookshelf,
    .manga-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .latest-row {
        grid-template-columns: 42px 1fr;
    }

    .latest-row .chapter-pill {
        grid-column: 2;
        justify-self: start;
    }
}
