:root {
    --ink: #17203a;
    --muted: #66708a;
    --paper: #f6f7fb;
    --surface: #ffffff;
    --night: #101936;
    --night-2: #18254d;
    --accent: #ff6a55;
    --accent-2: #ffc857;
    --cyan: #53d7d9;
    --line: #e5e8f0;
    --shadow: 0 18px 55px rgba(26, 35, 66, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 14px 20px;
    background: rgba(246, 247, 251, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner,
.section-shell,
.inner-main,
.reader-main,
.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 26px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid rgba(23, 32, 58, 0.08);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(28, 37, 70, 0.07);
}

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

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    background: var(--night);
    border: 4px solid var(--accent);
    border-radius: 13px 17px 13px 17px;
    font-size: 19px;
    font-weight: 900;
    transform: rotate(-4deg);
}

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

.brand-copy strong {
    font-size: 20px;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.2px;
}

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

.nav-link {
    display: flex;
    min-width: 68px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 8px;
    color: #4b5570;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: var(--night);
}

.nav-link span:first-child {
    color: var(--accent);
    font-size: 17px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 8px 14px;
    color: #ffffff;
    background: var(--night);
    border: 0;
    border-radius: 10px;
}

.hero {
    display: grid;
    min-height: 560px;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 54px;
    align-items: center;
    margin-top: 46px;
    padding: 58px;
    overflow: hidden;
    color: #ffffff;
    background: var(--night);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(52px, 7vw, 88px);
    line-height: 1;
}

.hero h1 a {
    color: #ffffff;
}

.hero p {
    margin: 0;
    color: #cfd5e8;
    font-size: 18px;
}

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

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

.button-primary {
    color: #ffffff;
    background: var(--accent);
}

.button-ghost {
    color: inherit;
    background: transparent;
    border-color: currentColor;
}

.button-light {
    color: var(--night);
    background: #ffffff;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 8px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    transform: rotate(2deg);
}

.hero-note {
    position: absolute;
    right: -10px;
    bottom: 22px;
    display: grid;
    max-width: 260px;
    gap: 2px;
    padding: 16px 20px;
    color: var(--ink);
    background: var(--accent-2);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transform: rotate(-2deg);
}

.hero-note span {
    font-size: 13px;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 32px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.metric-strip div {
    display: grid;
    gap: 2px;
    padding: 24px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
    border-right: 0;
}

.metric-strip strong {
    color: var(--night);
    font-size: 25px;
}

.metric-strip span {
    color: var(--muted);
    font-size: 14px;
}

.content-section,
.feature-split,
.reader-tools,
.about-section,
.app-banner {
    margin-top: 88px;
}

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

.section-heading h2,
.feature-copy h2,
.about-section h2,
.app-banner h2 {
    margin: 5px 0 5px;
    color: var(--night);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

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

.section-more,
.text-link {
    color: var(--accent);
    font-weight: 800;
}

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

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

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

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

.cover-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
}

.cover-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin: 5px 0 8px;
    font-size: 21px;
}

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

.spotlight-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
}

.spotlight-card .cover-link img {
    height: 100%;
}

.spotlight-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.update-list {
    display: grid;
    gap: 12px;
}

.update-list > a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 116px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.update-index {
    color: var(--accent);
    font-size: 26px;
    font-weight: 900;
}

.update-copy {
    display: grid;
}

.update-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.update-list time {
    color: var(--muted);
    font-size: 13px;
}

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

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

.category-card {
    min-height: 230px;
    padding: 26px;
    color: #ffffff;
    background: var(--night);
    border-radius: 22px;
}

.category-card:nth-child(even) {
    color: var(--ink);
    background: var(--accent-2);
}

.category-card:last-child {
    grid-column: span 2;
    background: var(--accent);
}

.category-icon,
.channel-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--night);
    background: #ffffff;
    border-radius: 14px;
    font-size: 24px;
}

.category-card h3 {
    margin: 16px 0 6px;
    font-size: 22px;
}

.category-card p {
    margin: 0 0 12px;
    opacity: 0.78;
    font-size: 14px;
}

.schedule-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.schedule-item {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 16px;
    border-right: 1px solid var(--line);
}

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

.schedule-item span {
    color: var(--accent);
    font-weight: 800;
}

.schedule-item small {
    color: var(--muted);
}

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

.ranking-list li {
    display: grid;
    grid-template-columns: 50px 82px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 14px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.ranking-list li > span {
    color: var(--accent);
    font-size: 27px;
    font-weight: 900;
}

.ranking-list img {
    width: 82px;
    aspect-ratio: 1;
    border-radius: 13px;
}

.ranking-list a {
    font-size: 19px;
    font-weight: 800;
}

.ranking-list p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--surface);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.feature-art img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
}

.feature-copy {
    padding: 54px;
}

.feature-copy p,
.feature-copy li {
    color: var(--muted);
}

.feature-copy ul {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding-left: 22px;
}

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

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.mosaic-large {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
}

.mosaic-item > span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    padding: 40px 18px 16px;
    color: #ffffff;
    background: linear-gradient(transparent, rgba(7, 12, 30, 0.9));
}

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

.timeline article {
    padding: 24px;
    background: var(--surface);
    border-top: 5px solid var(--cyan);
    border-radius: 18px;
}

.timeline time {
    color: var(--accent);
    font-size: 24px;
    font-weight: 900;
}

.timeline h3 {
    margin: 10px 0 4px;
}

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

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

.reader-tools > div {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.tool-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    background: var(--accent);
    border-radius: 50%;
    font-size: 23px;
}

.reader-tools h3 {
    margin: 14px 0 4px;
}

.reader-tools p {
    margin: 0;
    color: var(--muted);
}

.about-section {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
    padding: 54px;
    background: var(--accent-2);
    border-radius: 28px;
}

.about-copy {
    columns: 2;
    column-gap: 34px;
}

.about-copy p {
    margin-top: 0;
}

.app-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 88px;
    padding: 54px 72px;
    color: #ffffff;
    background: var(--night);
    border-radius: 30px;
}

.app-banner h2 {
    color: #ffffff;
}

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

.app-copy small {
    display: block;
    margin-top: 12px;
    color: #aeb8d4;
}

.qr-card {
    position: relative;
    display: grid;
    width: 170px;
    height: 170px;
    flex: 0 0 auto;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 16px;
    background: #ffffff;
    border-radius: 18px;
}

.qr-card i {
    background: var(--night);
    border-radius: 2px;
}

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

.qr-card strong {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #ffffff;
    background: var(--accent);
    border: 5px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.site-footer {
    padding: 50px 0;
    color: #c3cae0;
    background: #0a1128;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 22px;
}

.footer-inner p {
    margin: 4px 0;
    font-size: 14px;
}

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

.footer-inner > p {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid #26304e;
}

.inner-main,
.reader-main {
    padding-top: 42px;
    padding-bottom: 88px;
}

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

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

.breadcrumb i {
    font-style: normal;
}

.channel-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 38px;
    align-items: center;
    padding: 48px;
    color: #ffffff;
    background: var(--night);
    border-radius: 28px;
}

.channel-hero > div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    align-items: center;
}

.channel-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
}

.channel-hero > div p {
    grid-column: 2;
    margin: 6px 0 0;
    color: #cbd2e8;
}

.channel-hero aside {
    padding: 22px;
    color: var(--ink);
    background: var(--accent-2);
    border-radius: 18px;
}

.channel-hero aside p {
    margin: 5px 0 0;
    font-size: 14px;
}

.channel-content,
.channel-note {
    margin-top: 64px;
}

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

.channel-heading h2 {
    margin: 0;
    font-size: 32px;
}

.channel-heading p {
    margin: 0;
    color: var(--muted);
}

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

.channel-note {
    padding: 32px;
    background: var(--surface);
    border-left: 6px solid var(--accent);
    border-radius: 16px;
}

.channel-note h2 {
    margin-top: 0;
}

.channel-note p {
    margin-bottom: 0;
    color: var(--muted);
}

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

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

.reader-header h1 {
    margin: 7px 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.25;
}

.reader-header > p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 20px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.reading-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 28px;
    padding: 22px 26px;
    background: #fff5dd;
    border: 1px solid #f5d98d;
    border-radius: 16px;
}

.reading-note p {
    margin: 0;
}

.chapter-content {
    margin-top: 56px;
}

.chapter-content > h2 {
    margin-bottom: 26px;
    text-align: center;
    font-size: 30px;
}

.chapter-content figure {
    margin: 0 0 38px;
    overflow: hidden;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.chapter-content figure img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #dfe3ed;
}

.chapter-content figcaption {
    padding: 20px 26px;
}

.chapter-content figcaption p {
    margin: 4px 0 0;
    color: var(--muted);
}

.chapter-end {
    padding: 46px;
    text-align: center;
    background: var(--night);
    color: #ffffff;
    border-radius: 24px;
}

.chapter-end span {
    color: var(--accent-2);
    font-weight: 800;
}

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

.chapter-end p {
    max-width: 650px;
    margin: 0 auto;
    color: #c3cae0;
}

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

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

.chapter-nav a:hover,
.chapter-home {
    color: #ffffff;
    background: var(--accent) !important;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    padding: 14px 20px;
    color: #ffffff;
    background: var(--night);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
    .header-inner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

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

    .nav-link {
        flex: 1 0 120px;
    }

    .hero,
    .feature-split {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 44px;
    }

    .hero-visual img {
        max-height: 440px;
    }

    .spotlight-layout {
        grid-template-columns: 1fr;
    }

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

    .category-card:last-child {
        grid-column: auto;
    }

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

    .schedule-item {
        border-bottom: 1px solid var(--line);
    }

    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 230px);
    }

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

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

@media (max-width: 760px) {
    .header-inner,
    .section-shell,
    .inner-main,
    .reader-main,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

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

    .brand-copy small {
        display: none;
    }

    .hero {
        gap: 28px;
        margin-top: 28px;
        padding: 32px 24px;
        border-radius: 24px;
    }

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

    .hero-note {
        position: static;
        margin-top: -12px;
        transform: none;
    }

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

    .metric-strip div:nth-child(2) {
        border-right: 0;
    }

    .metric-strip div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .content-section,
    .feature-split,
    .reader-tools,
    .about-section,
    .app-banner {
        margin-top: 62px;
    }

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

    .spotlight-card {
        grid-template-columns: 1fr;
    }

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

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

    .update-list > a {
        grid-template-columns: auto 1fr;
    }

    .update-list time {
        display: none;
    }

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

    .ranking-list li {
        grid-template-columns: 38px 64px 1fr;
        gap: 12px;
    }

    .ranking-list img {
        width: 64px;
    }

    .ranking-list li > strong,
    .ranking-list p {
        display: none;
    }

    .feature-copy {
        padding: 32px 24px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 34px 24px;
    }

    .about-copy {
        columns: 1;
    }

    .app-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 36px 24px;
    }

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

    .channel-hero {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .reader-header {
        padding: 30px 22px;
    }

    .reading-note {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .nav-link {
        flex-basis: 44%;
    }

    .editor-grid,
    .category-grid,
    .reader-tools,
    .timeline,
    .channel-grid {
        grid-template-columns: 1fr;
    }

    .mosaic-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 190px);
    }

    .mosaic-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .schedule-board {
        grid-template-columns: 1fr 1fr;
    }

    .channel-hero > div {
        grid-template-columns: 1fr;
    }

    .channel-hero > div p {
        grid-column: 1;
    }
}
