/* 78动漫全站样式 */
:root {
    --ink: #20211d;
    --muted: #6c6d64;
    --paper: #fffdf6;
    --surface: #ffffff;
    --banana: #ffca28;
    --banana-deep: #eba900;
    --lime: #dfee91;
    --line: #e9e6d9;
    --night: #20251f;
    --shadow: 0 18px 50px rgba(41, 38, 25, 0.09);
    --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.7;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image: radial-gradient(circle at 12% 10%, rgba(255, 202, 40, 0.14), transparent 25%), radial-gradient(circle at 85% 35%, rgba(223, 238, 145, 0.18), transparent 25%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

.shell,
.header-inner,
.footer-grid,
.copyright {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 246, 0.94);
    border-bottom: 1px solid rgba(233, 230, 217, 0.9);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.logo-mark,
.about-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #2e2b1d;
    background: var(--banana);
    border: 2px solid #2e2b1d;
    border-radius: 16px 16px 22px 12px;
    box-shadow: 4px 4px 0 #2e2b1d;
    font-size: 22px;
    font-weight: 900;
    transform: rotate(-3deg);
}

.logo-copy {
    display: grid;
    line-height: 1.1;
}

.logo-copy strong {
    font-size: 19px;
    letter-spacing: 0.04em;
}

.logo-copy small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.main-nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 5px;
}

.nav-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    color: #55574f;
    font-size: 14px;
    white-space: nowrap;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #211e12;
    background: var(--banana);
}

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.hero {
    padding-top: 52px;
}

.hero-grid {
    display: grid;
    min-height: 500px;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
    gap: 32px;
    padding: 56px;
    overflow: hidden;
    background: var(--lime);
    border: 1px solid #cad975;
    border-radius: 36px;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.eyebrow,
.section-kicker {
    color: #6c650f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(52px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero h1 a {
    position: relative;
}

.hero h1 a::after {
    position: absolute;
    right: -18px;
    bottom: -8px;
    width: 46%;
    height: 12px;
    content: "";
    background: var(--banana);
    border-radius: 999px;
    transform: rotate(-3deg);
}

.hero-copy {
    max-width: 510px;
    margin: 0;
    color: #494c3a;
    font-size: 18px;
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #211d0e;
    background: var(--banana);
    border-color: #d9a600;
}

.button-ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(32, 33, 29, 0.15);
}

.button-dark {
    color: #ffffff;
    background: var(--night);
}

.button.is-disabled {
    color: #9a9b94;
    background: #ecece8;
    cursor: default;
}

.hero-visual {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px 72px 28px 28px;
    box-shadow: var(--shadow);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-copy {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 2;
    padding: 18px 20px;
    color: #ffffff;
    background: rgba(25, 28, 24, 0.78);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.hero-card-copy span,
.hero-card-copy strong,
.hero-card-copy p {
    display: block;
    margin: 0;
}

.hero-card-copy strong {
    font-size: 22px;
}

.stats {
    margin-top: 26px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(41, 38, 25, 0.05);
}

.stat {
    display: grid;
    padding: 24px;
    text-align: center;
}

.stat + .stat {
    border-left: 1px solid var(--line);
}

.stat strong {
    font-size: 25px;
}

.stat span {
    color: var(--muted);
    font-size: 14px;
}

.content-section {
    margin-top: 92px;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 32px;
}

.section-heading h2,
.about-copy h2,
.app-copy h2 {
    margin: 6px 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.comic-grid {
    display: grid;
    gap: 24px;
}

.comic-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.comic-grid.five {
    grid-template-columns: repeat(5, 1fr);
}

.comic-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: 0.24s ease;
}

.comic-card:hover {
    border-color: #d7bb40;
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.cover-link {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e8e5da;
}

.cover-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.comic-card:hover .cover-link img {
    transform: scale(1.04);
}

.card-body {
    padding: 18px;
}

.card-tag,
.article-category {
    display: inline-flex;
    padding: 3px 10px;
    color: #665300;
    background: #fff3b7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.card-body h3 {
    margin: 8px 0 2px;
    font-size: 18px;
    line-height: 1.4;
}

.card-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.text-link {
    display: inline-block;
    margin-top: 24px;
    color: #795f00;
    font-weight: 800;
}

.feature-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    color: #f8f7ee;
    background: var(--night);
    border-radius: 32px;
}

.feature-copy {
    padding: clamp(36px, 6vw, 72px);
}

.feature-copy h2 {
    margin: 8px 0 18px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.feature-copy p,
.feature-copy li {
    color: #cfd5c8;
}

.feature-panel > img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.ranking-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.rank-number {
    color: var(--banana-deep);
    font-size: 24px;
    font-weight: 900;
}

.ranking-list strong,
.ranking-list p {
    display: block;
    margin: 0;
}

.ranking-list p {
    color: var(--muted);
    font-size: 14px;
}

.score {
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    min-height: 245px;
    padding: 26px;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: 0.2s ease;
}

.category-card:hover {
    background: #fff7ce;
    border-color: #e2bd22;
    transform: translateY(-4px);
}

.category-icon,
.page-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    background: var(--banana);
    border-radius: 16px;
}

.category-card h3 {
    margin: 16px 0 4px;
    font-size: 20px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-card > span {
    margin-top: auto;
    padding-top: 14px;
    font-weight: 750;
}

.comic-scroll {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.schedule-item {
    position: relative;
    padding: 24px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.schedule-item::after {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 64px;
    height: 64px;
    content: "";
    background: var(--banana);
    border-radius: 50%;
}

.schedule-item span,
.schedule-item strong,
.schedule-item p {
    display: block;
    margin: 0;
}

.schedule-item span {
    color: #826b00;
    font-weight: 800;
}

.schedule-item strong {
    margin-top: 8px;
    font-size: 19px;
}

.schedule-item p {
    color: var(--muted);
}

.reading-guide {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 36px;
    padding: 38px;
    background: #fff2af;
    border: 1px solid #e4c64c;
    border-radius: 28px;
}

.guide-main > .icon {
    width: 42px;
    height: 42px;
}

.guide-main h2 {
    margin: 12px 0;
    font-size: 30px;
}

.guide-list {
    padding: 20px 26px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 18px;
}

.guide-list h3 {
    margin-top: 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

blockquote {
    margin: 0;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
}

blockquote p {
    margin-top: 0;
    font-size: 17px;
}

blockquote footer {
    color: var(--muted);
    font-size: 14px;
}

.about-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    padding: clamp(34px, 6vw, 70px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.about-copy p {
    color: var(--muted);
}

.about-art {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
    background: var(--lime);
    border-radius: 24px;
}

.about-art .about-mark {
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    font-size: 38px;
}

.about-art strong {
    font-size: 22px;
}

.app-section {
    margin-bottom: 92px;
}

.app-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
    padding: 44px;
    color: #ffffff;
    background: var(--night);
    border-radius: 30px;
}

.app-copy {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.app-copy > .icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    color: var(--banana);
}

.app-copy p {
    max-width: 680px;
    color: #cfd5c8;
}

.subscribe-status {
    display: block;
    margin-top: 12px;
    color: #b9c2b4;
    font-size: 13px;
}

.qr-placeholder {
    padding: 14px;
    color: var(--ink);
    background: #ffffff;
    border-radius: 18px;
    text-align: center;
}

.qr-placeholder p {
    margin: 8px 0 0;
    font-size: 12px;
}

.qr-brand {
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    background-color: #fff9d9;
    background-image: repeating-linear-gradient(45deg, #27291f 0 6px, transparent 6px 12px), repeating-linear-gradient(-45deg, rgba(255, 202, 40, 0.9) 0 6px, transparent 6px 12px);
    border: 8px solid #ffffff;
    border-radius: 12px;
}

.qr-brand span,
.qr-brand small {
    padding: 2px 7px;
    color: #24251f;
    background: var(--banana);
    font-weight: 900;
}

.site-footer {
    color: #e7eadf;
    background: #181b17;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 54px;
    padding-top: 58px;
    padding-bottom: 46px;
}

.footer-grid h2 {
    margin-top: 0;
    font-size: 16px;
}

.footer-brand strong {
    color: var(--banana);
    font-size: 24px;
}

.footer-grid p,
.footer-grid a {
    color: #aeb5a8;
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 18px;
}

.footer-links h2 {
    grid-column: 1 / -1;
}

.copyright {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid #30342e;
}

.copyright p {
    margin: 0;
}

.page-hero {
    padding-top: 44px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #8a6b00;
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 38px;
    background: var(--lime);
    border: 1px solid #cad975;
    border-radius: 28px;
}

.page-heading h1 {
    margin: 5px 0 2px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
}

.page-heading p {
    margin: 0;
    color: #555b43;
}

.seo-panel {
    padding: 34px;
    background: #fff7d2;
    border: 1px solid #ecd56d;
    border-radius: 24px;
}

.seo-panel h2 {
    margin-top: 0;
}

.article-shell {
    padding-top: 44px;
    padding-bottom: 90px;
}

.article-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

.article-header h1 {
    margin: 12px 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.15;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    color: var(--muted);
    font-size: 14px;
}

.reading-note {
    max-width: 900px;
    margin: 0 auto 38px;
    padding: 28px;
    background: #fff5c6;
    border: 1px solid #ead375;
    border-radius: 20px;
}

.reading-note h2 {
    margin-top: 0;
    font-size: 22px;
}

.reading-note p:last-child {
    margin-bottom: 0;
}

.reader-section > h2 {
    margin-bottom: 24px;
    text-align: center;
}

.reader-stack {
    display: grid;
    max-width: 900px;
    gap: 28px;
    margin: 0 auto;
}

.reader-page {
    margin: 0;
    overflow: hidden;
    background: #151713;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.reader-page img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.reader-page figcaption {
    padding: 12px 18px;
    color: #cfd3c9;
    text-align: center;
    font-size: 13px;
}

.chapter-end {
    display: flex;
    max-width: 900px;
    align-items: center;
    gap: 14px;
    margin: 48px auto 0;
    padding: 24px;
    background: var(--lime);
    border-radius: 20px;
}

.chapter-end h2,
.chapter-end p {
    margin: 0;
}

.chapter-end p {
    color: #555b43;
}

.chapter-nav {
    display: grid;
    max-width: 900px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px auto 0;
}

@media (max-width: 1100px) {
    .header-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex: 1 0 100%;
        grid-template-columns: repeat(3, 1fr);
        padding-top: 8px;
    }

    .main-nav.is-open {
        display: grid;
    }

    .nav-link {
        justify-content: center;
    }

}

@media (max-width: 820px) {
    .hero-grid,
    .feature-panel,
    .ranking-section,
    .about-panel,
    .reading-guide {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding: 34px;
    }

    .comic-grid.four,
    .comic-grid.five,
    .comic-scroll,
    .category-grid,
    .schedule-grid,
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .comic-grid.four,
    .comic-grid.five,
    .comic-scroll,
    .category-grid,
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comic-grid.five .comic-card:last-child,
    .comic-scroll .comic-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 10px);
        justify-self: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .shell,
    .header-inner,
    .footer-grid,
    .copyright {
        width: min(100% - 24px, 1200px);
    }

    .header-inner {
        min-height: 70px;
    }

    .logo-mark {
        width: 42px;
        height: 42px;
    }

    .logo-copy small {
        display: none;
    }

    .main-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 26px;
    }

    .hero-grid {
        min-height: 0;
        padding: 28px 22px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .stat:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .content-section {
        margin-top: 68px;
    }

    .comic-grid.four,
    .comic-grid.five,
    .comic-scroll,
    .category-grid,
    .schedule-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .comic-grid.five .comic-card:last-child,
    .comic-scroll .comic-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .comic-card {
        display: grid;
        grid-template-columns: 42% 58%;
    }

    .cover-link {
        height: 100%;
        aspect-ratio: 3 / 4;
    }

    .card-body {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .feature-copy {
        padding: 32px 24px;
    }

    .feature-panel > img {
        min-height: 340px;
    }

    .reading-guide,
    .about-panel,
    .app-panel {
        padding: 26px;
    }

    .app-panel,
    .app-copy {
        grid-template-columns: 1fr;
    }

    .app-copy {
        display: grid;
    }

    .qr-placeholder {
        justify-self: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-note {
        grid-column: auto;
    }

    .copyright {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .page-heading {
        align-items: flex-start;
        padding: 28px;
        flex-direction: column;
    }

    .article-meta {
        flex-direction: column;
    }

    .chapter-end {
        align-items: flex-start;
        flex-direction: column;
    }

    .chapter-nav {
        grid-template-columns: 1fr;
    }
}
