:root {
    --bg: #0d0f15;
    --surface: #151821;
    --surface-2: #1c202b;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f5f7fb;
    --muted: #a9b0c0;
    --red: #ff5d73;
    --blue: #54b8ff;
    --yellow: #ffd166;
    --radius: 22px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at 12% 0%, rgba(84, 184, 255, 0.12), transparent 30rem), var(--bg);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 15, 21, 0.9);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 46px;
    aspect-ratio: 1;
    place-items: center;
    transform: rotate(-5deg);
    border: 2px solid var(--text);
    border-radius: 14px 6px 14px 6px;
    background: var(--red);
    box-shadow: 5px 5px 0 var(--blue);
}

.brand-mark span {
    font-size: 1.25rem;
    font-weight: 900;
}

.brand-copy {
    display: grid;
    line-height: 1.25;
}

.brand-copy strong {
    font-size: 1.2rem;
    letter-spacing: 0.06em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

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

.main-nav a {
    display: grid;
    min-width: 68px;
    padding: 9px 8px;
    place-items: center;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.25;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: var(--surface-2);
}

.main-nav a.active {
    box-shadow: inset 0 -2px 0 var(--red);
}

.ui-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    font-size: 1rem;
    font-style: normal;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface);
}

.hero {
    display: grid;
    min-height: 590px;
    margin-top: 52px;
    padding: 64px;
    align-items: center;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: linear-gradient(135deg, #1a1f2c, #11131a 60%);
    box-shadow: var(--shadow);
}

.hero-kicker,
.eyebrow {
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 10px 0 16px;
    font-size: clamp(3.6rem, 8vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-lead {
    max-width: 620px;
    margin: 0;
    color: #d0d5df;
    font-size: 1.08rem;
}

.hero-actions,
.reader-tools {
    display: flex;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    font-weight: 800;
}

.button.primary {
    color: #101116;
    background: var(--red);
}

.button.secondary,
.button.ghost {
    border-color: var(--line);
    color: var(--text);
    background: var(--surface-2);
}

.button.ghost {
    background: transparent;
}

.hero-stats {
    display: flex;
    margin-top: 38px;
    gap: 28px;
}

.hero-stats div {
    display: grid;
}

.hero-stats strong {
    font-size: 1.7rem;
    line-height: 1;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.82rem;
}

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

.hero-poster {
    position: absolute;
    overflow: hidden;
    border: 6px solid #f3f4f7;
    background: var(--surface-2);
    box-shadow: 12px 18px 0 rgba(84, 184, 255, 0.42);
}

.hero-poster img {
    height: 100%;
}

.hero-poster-main {
    inset: 0 12% 5% 8%;
    transform: rotate(3deg);
}

.hero-poster-side {
    right: -6%;
    bottom: -8%;
    width: 42%;
    height: 52%;
    transform: rotate(-8deg);
    box-shadow: -10px -10px 0 rgba(255, 93, 115, 0.5);
}

.art-label {
    position: absolute;
    top: 2%;
    right: 2%;
    padding: 7px 14px;
    transform: rotate(7deg);
    color: #11131a;
    background: var(--yellow);
    font-weight: 900;
}

.trust-strip {
    display: grid;
    margin-top: 28px;
    padding: 22px;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item .ui-icon {
    border-radius: 50%;
    color: #11131a;
    background: var(--blue);
}

.trust-item div {
    display: grid;
}

.trust-item span {
    color: var(--muted);
    font-size: 0.82rem;
}

.content-section,
.column-seo {
    margin-top: 96px;
}

.section-heading {
    display: grid;
    max-width: 720px;
    margin-bottom: 30px;
    gap: 6px;
}

.section-heading h2,
.spotlight-copy h2,
.about-title h2,
.subscribe-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p,
.spotlight-copy p,
.about-copy p,
.subscribe-copy p {
    margin: 0;
    color: var(--muted);
}

.comic-grid {
    display: grid;
    gap: 24px;
}

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

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.comic-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 93, 115, 0.55);
}

.comic-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.comic-cover img {
    height: 100%;
    transition: transform 0.45s ease;
}

.comic-card:hover .comic-cover img {
    transform: scale(1.04);
}

.cover-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 10px;
    border-radius: 99px;
    color: #11131a;
    background: var(--yellow);
    font-size: 0.78rem;
    font-weight: 800;
}

.comic-info {
    padding: 20px;
}

.comic-meta {
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.comic-info h3 {
    margin: 5px 0 7px;
    font-size: 1.35rem;
}

.comic-info p {
    min-height: 58px;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.text-link,
.category-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--red);
    font-weight: 800;
}

.schedule-panel {
    display: grid;
    padding: 40px;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    border-radius: var(--radius);
    color: #12131a;
    background: var(--yellow);
}

.schedule-intro h2 {
    margin: 8px 0;
    font-size: 2.6rem;
    line-height: 1.1;
}

.schedule-intro .eyebrow {
    color: #a54251;
}

.schedule-list {
    border-top: 2px solid rgba(17, 19, 26, 0.2);
}

.schedule-row {
    display: grid;
    padding: 11px 4px;
    grid-template-columns: 70px 1fr auto;
    gap: 16px;
    border-bottom: 1px solid rgba(17, 19, 26, 0.18);
}

.schedule-row em {
    font-style: normal;
    opacity: 0.65;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
}

.ranking-feature {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--surface);
}

.ranking-feature img {
    height: 330px;
    border-radius: 14px;
}

.ranking-feature h3 {
    margin: 18px 0 4px;
    font-size: 2rem;
}

.ranking-feature p {
    margin: 0;
    color: var(--muted);
}

.rank-number {
    position: absolute;
    top: 46px;
    left: 46px;
    padding: 6px 12px;
    color: #11131a;
    background: var(--red);
    font-weight: 900;
}

.ranking-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 12px;
    list-style: none;
}

.ranking-list li {
    display: grid;
    padding: 21px;
    align-items: center;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.ranking-index {
    color: var(--red);
    font-size: 1.4rem;
    font-weight: 900;
}

.ranking-list div {
    display: grid;
}

.ranking-list small,
.heat {
    color: var(--muted);
}

.editor-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.editor-card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border-radius: var(--radius);
}

.editor-card:first-child {
    grid-row: span 2;
}

.editor-card img {
    position: absolute;
    height: 100%;
    filter: brightness(0.52);
}

.editor-card div {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px;
}

.editor-card h3 {
    margin: 8px 0 4px;
    font-size: 1.7rem;
}

.editor-card p {
    margin: 0;
    color: #d9deea;
}

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

.category-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--accent) 12%, var(--surface)));
}

.category-card .ui-icon {
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: 14px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    font-size: 1.35rem;
}

.category-card h3 {
    margin: 20px 0 8px;
    font-size: 1.35rem;
}

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

.category-card .category-link {
    color: var(--accent);
}

.spotlight-section {
    display: grid;
    padding: 28px;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
}

.spotlight-art img {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
}

.spotlight-copy {
    padding: 20px;
}

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

.tag-row span {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--muted);
    font-size: 0.82rem;
}

.completed-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.comic-card.compact .comic-info p {
    display: none;
}

.comic-card.compact .comic-cover {
    aspect-ratio: 3 / 4;
}

.path-grid,
.voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.path-card {
    min-height: 240px;
    padding: 28px;
    border-top: 3px solid var(--red);
    background: var(--surface);
}

.path-number {
    color: var(--blue);
    font-size: 2.6rem;
    font-weight: 900;
}

.path-card h3 {
    margin: 16px 0 6px;
}

.path-card p {
    margin: 0;
    color: var(--muted);
}

.voice-grid blockquote {
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.voice-grid blockquote p {
    margin: 0 0 22px;
}

.voice-grid blockquote footer {
    display: grid;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.voice-grid blockquote span {
    color: var(--muted);
    font-size: 0.82rem;
}

.about-section {
    display: grid;
    padding: 48px;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 60px;
    border-radius: 28px;
    color: #11131a;
    background: #f1f3f7;
}

.about-section .eyebrow {
    color: #b1394e;
}

.about-copy p {
    color: #4f5563;
}

.about-points {
    display: grid;
    margin: 24px 0 0;
    padding: 0;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    list-style: none;
}

.about-points li::before {
    margin-right: 8px;
    color: #b1394e;
    content: "✓";
    font-weight: 900;
}

.subscribe-section {
    display: grid;
    margin-bottom: 96px;
    padding: 48px;
    align-items: center;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    border: 1px solid rgba(84, 184, 255, 0.35);
    border-radius: 28px;
    background: linear-gradient(135deg, #182a3b, #1b182c);
}

.subscribe-form {
    display: flex;
    max-width: 620px;
    margin-top: 24px;
    gap: 10px;
}

.subscribe-form label {
    display: grid;
    flex: 1;
    gap: 6px;
}

.subscribe-form label span {
    font-size: 0.82rem;
}

.subscribe-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    outline: none;
    background: rgba(13, 15, 21, 0.75);
}

.subscribe-copy small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
}

.qr-mark {
    display: grid;
    place-items: center;
    gap: 4px;
}

.qr-grid {
    display: grid;
    width: 172px;
    aspect-ratio: 1;
    padding: 16px;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    border-radius: 18px;
    background: #f5f7fb;
}

.qr-cell {
    background: #151821;
}

.qr-cell.cell-1,
.qr-cell.cell-4 {
    border-radius: 50%;
    background: var(--red);
}

.site-footer {
    padding: 58px 0 26px;
    border-top: 1px solid var(--line);
    background: #090a0f;
}

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

.footer-brand {
    font-size: 1.5rem;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer-grid p {
    margin: 10px 0 0;
    color: var(--muted);
}

.footer-links {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.footer-bottom {
    display: flex;
    margin-top: 42px;
    padding-top: 20px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-bottom p {
    margin: 0;
}

.breadcrumb {
    display: flex;
    margin-top: 34px;
    gap: 9px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.category-hero {
    display: grid;
    min-height: 330px;
    margin-top: 28px;
    padding: 52px;
    align-items: center;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 28px;
    background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 28rem), var(--surface);
}

.category-hero h1 {
    margin: 8px 0;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1.05;
}

.category-hero p,
.category-note p {
    margin: 0;
    color: var(--muted);
}

.category-note {
    padding: 24px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

.column-seo {
    margin-bottom: 96px;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.column-seo h2 {
    margin-top: 0;
}

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

.reader-page {
    max-width: 960px;
    margin-top: 28px;
    margin-bottom: 96px;
}

.reader-header {
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}

.reader-header h1 {
    margin: 8px 0 10px;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    line-height: 1.12;
}

.reader-summary {
    max-width: 720px;
    margin: 0;
    color: #d0d5df;
    font-size: 1.08rem;
}

.reader-meta {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.reader-meta span {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--muted);
    font-size: 0.82rem;
}

.reading-notice {
    display: flex;
    margin: 26px 0 40px;
    padding: 24px;
    gap: 14px;
    border: 1px solid rgba(84, 184, 255, 0.3);
    border-radius: 18px;
    background: rgba(84, 184, 255, 0.08);
}

.reading-notice p {
    margin: 3px 0 0;
    color: var(--muted);
}

.chapter-content h2 {
    margin: 0 0 24px;
    text-align: center;
}

.chapter-panel {
    position: relative;
    margin: 0 0 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.chapter-panel img {
    aspect-ratio: 4 / 5;
}

.chapter-panel figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(13, 15, 21, 0.78);
    backdrop-filter: blur(8px);
    font-size: 0.8rem;
}

.chapter-text {
    max-width: 760px;
    margin: 0 auto 48px;
    color: #c6ccd8;
    font-size: 1.05rem;
}

.chapter-end {
    display: grid;
    margin-top: 58px;
    padding: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    text-align: center;
    background: var(--surface);
}

.chapter-end .ui-icon {
    color: var(--red);
    font-size: 1.6rem;
}

.chapter-end h2 {
    margin: 10px 0 2px;
}

.chapter-end p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.chapter-nav {
    display: grid;
    margin-top: 24px;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
}

.chapter-nav a,
.chapter-nav span {
    display: flex;
    min-height: 56px;
    padding: 12px 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: center;
    background: var(--surface);
}

.chapter-nav .back-column {
    color: #11131a;
    background: var(--red);
    font-weight: 800;
}

.chapter-nav .disabled {
    color: #646b78;
}

@media (max-width: 1050px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        grid-template-columns: repeat(4, 1fr);
    }

    .main-nav.open {
        display: grid;
    }

    .hero {
        min-height: auto;
        padding: 44px;
        grid-template-columns: 1fr;
    }

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

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

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

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

    .brand-copy small {
        display: none;
    }

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

    .main-nav a {
        grid-template-columns: 28px 1fr;
        justify-items: start;
        text-align: left;
    }

    .hero {
        margin-top: 28px;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .hero-stats {
        gap: 18px;
    }

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

    .trust-strip,
    .comic-grid-3,
    .category-grid,
    .completed-row,
    .path-grid,
    .voice-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .column-seo {
        margin-top: 68px;
    }

    .schedule-panel,
    .ranking-layout,
    .editor-mosaic,
    .spotlight-section,
    .about-section,
    .subscribe-section,
    .category-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .schedule-panel,
    .about-section,
    .subscribe-section,
    .category-hero,
    .reader-header {
        padding: 28px 22px;
    }

    .schedule-row {
        grid-template-columns: 58px 1fr;
    }

    .schedule-row em {
        grid-column: 2;
    }

    .ranking-feature {
        min-height: auto;
    }

    .editor-card:first-child {
        grid-row: auto;
    }

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

    .subscribe-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

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

@media (max-width: 420px) {
    .hero-actions,
    .reader-tools {
        align-items: stretch;
        flex-direction: column;
    }

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

    .hero h1 {
        font-size: 3.1rem;
    }

    .ranking-list li {
        grid-template-columns: 44px 1fr;
    }

    .ranking-list .heat {
        grid-column: 2;
    }
}
