:root {
    --ink: #24211f;
    --muted: #716b64;
    --cream: #fffaf0;
    --paper: #ffffff;
    --yellow: #ffd84d;
    --yellow-deep: #f5b900;
    --coral: #ff6b57;
    --line: #eae3d8;
    --shadow: 0 18px 50px rgba(73, 55, 26, 0.10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button,
input {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(36, 33, 31, 0.08);
    background: rgba(255, 250, 240, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    transform: rotate(-6deg);
    border: 3px solid var(--ink);
    border-radius: 50% 42% 48% 44%;
    background: var(--yellow);
    font-weight: 900;
    box-shadow: 4px 4px 0 var(--ink);
}

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

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

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

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

.main-nav a {
    display: grid;
    min-width: 63px;
    padding: 8px 7px;
    border-radius: 12px;
    place-items: center;
    color: #5b554f;
    font-size: 12px;
    line-height: 1.2;
}

.nav-icon {
    margin-bottom: 4px;
    font-size: 17px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
    background: var(--yellow);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 27px;
}

main {
    min-height: 60vh;
}

.hero {
    display: grid;
    min-height: 590px;
    margin-top: 44px;
    padding: 64px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 54px;
    border: 1px solid #f0df9b;
    border-radius: 34px;
    background: radial-gradient(circle at 85% 15%, #fff7c1 0, transparent 34%), linear-gradient(135deg, #fffdf6, #fff2a8);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    color: #b45c10;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

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

.hero h1 a {
    background: linear-gradient(120deg, var(--ink), #5d4512);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 590px;
    color: #5f574e;
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    min-height: 46px;
    padding: 10px 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.button.primary {
    border: 2px solid var(--ink);
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--ink);
}

.button.ghost {
    border: 1px solid var(--line);
    background: var(--paper);
}

.button.disabled {
    color: #aaa29b;
    background: #eee9e2;
}

.hero-metrics {
    display: flex;
    margin: 38px 0 0;
    padding: 0;
    gap: 30px;
    list-style: none;
}

.hero-metrics li {
    display: grid;
}

.hero-metrics strong {
    font-size: 18px;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 12px;
}

.hero-art {
    position: relative;
}

.hero-art img {
    width: 100%;
    aspect-ratio: 1 / 0.82;
    border: 5px solid var(--paper);
    border-radius: 48% 48% 16% 16%;
    object-fit: cover;
    box-shadow: 18px 18px 0 rgba(255, 107, 87, 0.23);
}

.floating-note {
    position: absolute;
    right: -18px;
    bottom: 28px;
    display: grid;
    padding: 14px 20px;
    transform: rotate(3deg);
    border: 2px solid var(--ink);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 5px 5px 0 var(--ink);
}

.floating-note span {
    color: var(--coral);
    font-size: 11px;
}

.section-block {
    margin-top: 96px;
    margin-bottom: 96px;
}

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

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

.section-heading h2,
.guide-title h2,
.about-copy h2,
.newsletter h2 {
    margin: 5px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}

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

.section-heading > a {
    color: #99670a;
    font-weight: 800;
}

.quick-search {
    display: grid;
    padding: 34px 40px;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    gap: 28px 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.quick-search h2 {
    margin: 3px 0;
    font-size: 29px;
}

.search-box {
    display: flex;
    padding: 7px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: #fffdf8;
}

.search-box label,
.subscribe-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.search-box input {
    min-width: 0;
    padding: 8px 16px;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
}

.search-box button,
.subscribe-form button {
    padding: 9px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    font-weight: 800;
}

.trend-tags {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 9px;
}

.trend-tags span,
.count-pill {
    padding: 7px 13px;
    border-radius: 999px;
    background: #f5f1e9;
    color: #6b635a;
    font-size: 13px;
}

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

.comic-card {
    min-width: 0;
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 10px 32px rgba(48, 38, 25, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease;
}

.comic-card:hover {
    transform: translateY(-7px);
}

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

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(36, 33, 31, 0.88);
    color: white;
    font-size: 11px;
}

.card-copy {
    padding: 17px;
}

.card-copy h3 {
    margin: 0;
    font-size: 18px;
}

.card-copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.spotlight {
    padding: 84px 0;
    background: #272321;
    color: white;
}

.spotlight-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.spotlight-cover img {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    transform: rotate(-2deg);
    border: 7px solid white;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 18px 18px 0 var(--yellow);
}

.spotlight-copy h2 {
    margin: 10px 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.15;
}

.section-kicker.light {
    color: var(--yellow);
}

.light-button {
    margin-top: 18px;
    background: white;
    color: var(--ink);
}

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

.category-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-top: 5px solid var(--accent);
    border-radius: 20px;
    background: var(--paper);
}

.category-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 15px;
    background: color-mix(in srgb, var(--accent) 16%, white);
    color: var(--accent);
    font-size: 25px;
}

.category-card h3 {
    margin: 17px 0 8px;
}

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

.text-link {
    display: block;
    margin-top: 18px;
    font-weight: 800;
}

.ranking {
    display: grid;
    padding: 50px;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 60px;
    border-radius: 28px;
    background: #ffe985;
}

.ranking-copy h2 {
    margin: 8px 0 18px;
    font-size: 46px;
    line-height: 1.12;
}

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

.ranking-list li {
    display: grid;
    padding: 13px 0;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(36, 33, 31, 0.17);
}

.rank-num {
    font-size: 28px;
    font-weight: 900;
}

.ranking-list div {
    display: grid;
}

.ranking-list div span {
    font-size: 12px;
}

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

.landscape-grid .comic-card:nth-child(even) {
    margin-top: 30px;
}

.timeline-section {
    padding: 70px 0;
    background: #f0e9ff;
}

.update-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.update-days div {
    display: grid;
    min-height: 130px;
    padding: 18px 12px;
    align-content: space-between;
    border: 1px solid #ded2f3;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.update-days span {
    color: #76579e;
    font-size: 12px;
}

.update-days .today {
    transform: translateY(-9px);
    background: #8b5cf6;
    color: white;
    box-shadow: 0 13px 26px rgba(97, 65, 160, 0.25);
}

.update-days .today span {
    color: white;
}

.portrait-feature .comic-card:nth-child(1) {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.portrait-feature .comic-card:nth-child(1) .cover-link img {
    height: 100%;
}

.reading-guide {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr;
    align-items: start;
    gap: 60px;
}

.guide-steps {
    display: grid;
    gap: 18px;
}

.guide-steps article {
    display: grid;
    padding: 22px;
    grid-template-columns: 58px 0.5fr 1.5fr;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.guide-steps article > span {
    color: var(--coral);
    font-size: 26px;
    font-weight: 900;
}

.guide-steps h3,
.guide-steps p {
    margin: 0;
}

.guide-steps p {
    color: var(--muted);
}

.about-section {
    display: grid;
    padding: 54px;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 60px;
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow);
}

.about-art img {
    width: 100%;
    aspect-ratio: 1 / 0.82;
    border-radius: 45% 45% 20px 20px;
    object-fit: cover;
}

.about-copy p {
    color: var(--muted);
}

.about-points {
    display: flex;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 11px;
}

.about-points span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff4bd;
    font-weight: 800;
}

.newsletter {
    display: grid;
    padding: 56px 70px;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
    gap: 60px;
    border-radius: 30px;
    background: #25211f;
    color: white;
}

.newsletter-copy p {
    max-width: 700px;
    color: #d7d0c9;
}

.subscribe-form {
    display: flex;
    max-width: 570px;
    margin: 24px 0 12px;
    padding: 7px;
    border-radius: 999px;
    background: white;
}

.subscribe-form input {
    min-width: 0;
    padding: 10px 17px;
    flex: 1;
    border: 0;
    outline: 0;
}

.subscribe-form button {
    background: var(--yellow);
    color: var(--ink);
}

.newsletter small {
    color: #9e9690;
}

.qr-card {
    display: grid;
    padding: 20px;
    place-items: center;
    border-radius: 20px;
    background: white;
    color: var(--ink);
    text-align: center;
}

.qr-pattern {
    display: grid;
    width: 120px;
    height: 120px;
    margin-bottom: 12px;
    place-items: center;
    border: 12px dotted var(--ink);
    background: repeating-linear-gradient(45deg, var(--yellow) 0 8px, white 8px 16px);
}

.qr-pattern span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--yellow);
    font-weight: 900;
}

.site-footer {
    padding-top: 60px;
    background: #181615;
    color: white;
}

.footer-grid {
    display: grid;
    padding-bottom: 45px;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
}

.footer-brand {
    margin-bottom: 12px;
}

.footer-title {
    font-size: 16px;
}

.footer-links {
    display: grid;
    gap: 7px;
    color: #bdb5ae;
}

.footer-grid p {
    color: #a9a19b;
}

.copyright {
    padding: 18px 20px;
    border-top: 1px solid #37312e;
    color: #8e8680;
    text-align: center;
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    margin-top: 36px;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.channel-hero {
    display: flex;
    margin-top: 28px;
    padding: 52px;
    align-items: center;
    gap: 34px;
    border-left: 8px solid var(--channel);
    border-radius: 26px;
    background: white;
    box-shadow: var(--shadow);
}

.channel-icon {
    display: grid;
    width: 100px;
    height: 100px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 28px;
    background: var(--channel);
    color: white;
    font-size: 46px;
}

.channel-hero h1 {
    margin: 5px 0 8px;
    font-size: 48px;
}

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

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

.channel-note {
    padding: 36px 40px;
    border-radius: 22px;
    background: #fff2b8;
}

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

.channel-note p {
    margin-bottom: 0;
}

.reader {
    max-width: 1000px;
    padding-bottom: 100px;
}

.reader-header {
    margin: 30px 0 48px;
    padding: 50px;
    border-radius: 26px;
    background: white;
    box-shadow: var(--shadow);
}

.reader-label {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--yellow);
    font-size: 12px;
    font-weight: 800;
}

.reader-header h1 {
    margin: 14px 0;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.2;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--muted);
    font-size: 13px;
}

.reader-intro {
    margin-top: 25px;
    font-size: 17px;
}

.reading-tips {
    margin-top: 25px;
    padding: 20px;
    border-left: 4px solid var(--coral);
    border-radius: 0 14px 14px 0;
    background: #fff6f0;
}

.reading-tips p {
    margin: 5px 0 13px;
}

.shelf-button {
    padding: 8px 15px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    cursor: pointer;
}

.shelf-button.saved {
    background: #138a63;
}

.comic-pages {
    display: grid;
    gap: 40px;
}

.comic-pages figure {
    margin: 0;
    padding: 14px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}

.comic-pages img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 11px;
    background: #e9e2d8;
    object-fit: cover;
}

.comic-pages figcaption {
    padding: 14px 8px 4px;
    color: var(--muted);
    text-align: center;
}

.chapter-end {
    margin-top: 60px;
    padding: 45px;
    border: 2px dashed #d5c886;
    border-radius: 24px;
    background: #fff9d9;
    text-align: center;
}

.chapter-end > span {
    color: var(--coral);
    font-size: 34px;
}

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

.chapter-nav {
    justify-content: center;
}

@media (max-width: 1050px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 78px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 14px;
        grid-template-columns: repeat(3, 1fr);
        border: 1px solid var(--line);
        border-radius: 18px;
        background: white;
        box-shadow: var(--shadow);
    }

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

    .hero {
        padding: 48px;
        grid-template-columns: 1fr 0.85fr;
    }

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

    .five-grid > :last-child,
    .update-days > :last-child {
        display: none;
    }

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

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

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

    .main-nav {
        top: 68px;
    }

    .hero {
        margin-top: 24px;
        padding: 34px 24px;
        grid-template-columns: 1fr;
        gap: 35px;
        border-radius: 24px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .hero-metrics {
        gap: 17px;
    }

    .floating-note {
        right: 5px;
    }

    .section-block {
        margin-top: 68px;
        margin-bottom: 68px;
    }

    .quick-search,
    .spotlight-inner,
    .ranking,
    .reading-guide,
    .about-section,
    .newsletter,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .ranking,
    .about-section,
    .newsletter {
        padding: 30px 24px;
    }

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

    .comic-grid,
    .category-grid,
    .five-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .five-grid > :last-child {
        display: none;
    }

    .card-copy {
        padding: 13px;
    }

    .card-copy h3 {
        font-size: 15px;
    }

    .spotlight {
        padding: 58px 0;
    }

    .spotlight-inner {
        gap: 45px;
    }

    .category-card {
        padding: 21px;
    }

    .category-card p {
        min-height: 0;
    }

    .ranking-copy h2 {
        font-size: 38px;
    }

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

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

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

    .portrait-feature .comic-card:nth-child(1) {
        grid-column: auto;
        display: block;
    }

    .guide-steps article {
        grid-template-columns: 46px 1fr;
    }

    .guide-steps p {
        grid-column: 2;
    }

    .channel-hero {
        padding: 32px 24px;
        align-items: start;
        flex-direction: column;
    }

    .channel-icon {
        width: 74px;
        height: 74px;
        font-size: 35px;
    }

    .channel-hero h1 {
        font-size: 38px;
    }

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

    .chapter-end {
        padding: 32px 20px;
    }

    .chapter-nav .button {
        flex: 1 1 45%;
    }
}

@media (max-width: 430px) {
    .brand-copy small {
        display: none;
    }

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

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

    .search-box,
    .subscribe-form {
        border-radius: 16px;
        flex-direction: column;
    }

    .search-box button,
    .subscribe-form button {
        border-radius: 12px;
    }

    .portrait-feature .comic-card:nth-child(1) {
        display: block;
    }
}
