:root {
    --ink: #152e35;
    --muted: #5b7077;
    --accent: #007e75;
    --mint: #b8efce;
    --line: #dde6e7;
    --paper: #f5f8f9;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid #087eab;
    outline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
    background: #dce7e5;
    color: #29474b;
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    line-height: 1.4;
}

h2 {
    font-size: 26px;
    letter-spacing: -.6px;
}

h3 {
    font-size: 18px;
}

p {
    color: var(--muted);
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: inline-block;
    vertical-align: middle;
}

h1 .icon, h2 .icon {
    margin-right: 10px;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    border-radius: 12px;
    background: none;
}

.brand-text {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.4;
}

.brand-text small {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 4px;
}

.header-note {
    font-size: 14px;
    color: var(--muted);
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    padding-top: 4px;
    padding-bottom: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 11px;
    font-size: 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link.active {
    color: #006458;
    background: #e6f4ee;
    font-weight: 700;
}

.nav-link:hover {
    background: #f0f5f5;
}

.menu-button {
    display: none;
    align-items: center;
    gap: 5px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
}

.skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10;
    background: white;
    padding: 12px;
}

.skip:focus {
    top: 10px;
}

.hero {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    background: #123438;
    color: white;
    border-radius: 22px;
    overflow: hidden;
    min-height: 420px;
}

.hero-copy {
    padding: 42px 42px 34px;
}

.eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
}

.eyebrow.light {
    color: #b8efce;
}

.hero h1 {
    font-size: 19px;
    margin: 12px 0 16px;
    color: #e6f6ee;
}

.hero h1 a:hover {
    color: white;
}

.hero-lead {
    color: white;
    font-size: clamp(30px, 3vw, 41px);
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-desc {
    max-width: 460px;
    margin-top: 16px;
    color: #c1d4d3;
    font-size: 15px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    min-height: 44px;
}

.button.mint {
    background: var(--mint);
    color: #123438;
}

.button.dark {
    background: #123438;
    color: white;
}

.button.ghost {
    border-color: #547475;
    color: white;
    background: transparent;
}

.button.outline {
    border-color: #b7cccd;
    background: white;
    color: var(--ink);
}

.button:hover {
    filter: brightness(1.08);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    font-size: 12px;
    color: #c1d4d3;
}

.hero-feature {
    position: relative;
    min-width: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-position: center 35%;
}

.hero-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,31,35,.94), transparent 80%);
}

.feature-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 28px;
    z-index: 1;
}

.feature-caption h2 {
    margin: 12px 0 8px;
    font-size: 29px;
}

.feature-caption h2 a:hover {
    color: #b8efce;
}

.feature-caption p {
    color: #e1eeeb;
    font-size: 14px;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #c5dad4;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.6;
}

.section {
    margin-top: 64px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-heading p {
    font-size: 14px;
    margin-top: 7px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}

.category-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    transition: transform .15s, border-color .15s;
}

.category-card>.icon {
    color: var(--accent);
    width: 26px;
    height: 26px;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #78b8aa;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 20px;
}

.comic-card {
    min-width: 0;
}

.cover-link {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.cover {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    transition: transform .2s;
}

.cover-link:hover img {
    transform: scale(1.035);
}

.cover-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    color: white;
    background: #123438df;
    font-size: 12px;
}

.card-copy {
    padding-top: 13px;
}

.card-copy h3 {
    font-size: 16px;
    margin: 5px 0;
}

.card-copy p {
    font-size: 12px;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    overflow: hidden;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.rank-row:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.rank-row:nth-last-child(-n+2) {
    border-bottom: 0;
}

.rank-number {
    font-size: 29px;
    font-weight: 800;
    color: #008478;
}

.rank-row p {
    font-size: 13px;
    margin-top: 5px;
}

.rank-note {
    font-size: 12px;
    color: var(--muted);
    margin-left: auto;
    white-space: nowrap;
}

.spotlight {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    border-radius: 18px;
    background: #e4f1ec;
    overflow: hidden;
}

.spotlight-visual {
    min-height: 360px;
    position: relative;
}

.spotlight-image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.spotlight-copy {
    padding: 40px;
}

.spotlight-copy h2 {
    margin: 12px 0 16px;
}

.spotlight-copy p {
    margin-bottom: 14px;
    font-size: 15px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 24px;
}

.schedule-item {
    border-top: 3px solid #9ac7ba;
    padding-top: 18px;
}

.schedule-item>span {
    font-size: 12px;
    color: var(--muted);
}

.schedule-item h3 {
    margin: 8px 0;
}

.schedule-item p {
    font-size: 14px;
    min-height: 50px;
    margin-bottom: 15px;
}

.completed-strip {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.completed-number {
    color: var(--accent);
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    flex-shrink: 0;
}

.completed-number span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 12px;
}

.completed-strip h3 {
    margin-bottom: 8px;
}

.completed-strip p {
    font-size: 14px;
}

.completed-strip>.button {
    margin-left: auto;
    flex-shrink: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
}

.editor-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 14px;
}

.editor-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 8px;
}

.editor-card h3 {
    margin: 5px 0 8px;
}

.editor-card p {
    font-size: 14px;
    margin-bottom: 12px;
}

.bookshelf {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border: 1px dashed #9ebbb4;
    border-radius: 12px;
    background: #eef6f2;
}

.bookshelf p {
    font-size: 14px;
    margin-top: 8px;
}

.shelf-item {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #c9dfd8;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 30px;
}

.guide-grid article {
    padding: 26px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.step {
    display: block;
    color: var(--accent);
    font-family: monospace;
    font-size: 20px;
    margin-bottom: 14px;
}

.guide-grid h3 {
    margin-bottom: 10px;
}

.guide-grid p {
    font-size: 14px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

details {
    border-bottom: 1px solid var(--line);
    padding: 19px 4px;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

details p {
    margin: 12px 0 0;
    max-width: 960px;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 55px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}

.about h2 {
    margin-top: 12px;
}

.about p+p {
    margin-top: 15px;
}

.subscribe {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 35px;
    align-items: center;
    background: #dcefe7;
    padding: 38px;
    border-radius: 18px;
    margin-bottom: 60px;
}

.subscribe-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.subscribe-mark img {
    background: transparent;
}

.subscribe-mark span {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

.subscribe h2 {
    margin: 7px 0 12px;
}

.subscribe p {
    margin-bottom: 14px;
}

.subscribe .muted {
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: white;
    margin-top: 64px;
    padding: 32px 0;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-row p, .footer-row a {
    font-size: 12px;
    margin-top: 4px;
}

.breadcrumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    margin: 30px 0;
    color: var(--muted);
}

.category-hero {
    background: #123438;
    color: white;
    padding: 40px;
    border-radius: 16px;
}

.category-hero h1 {
    font-size: 36px;
    margin: 8px 0 12px;
}

.category-hero p, .category-hero .eyebrow {
    color: #c1e5d6;
}

.series-intro {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 35px;
    align-items: center;
}

.series-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 12px;
}

.series-intro h2 {
    margin: 8px 0 15px;
}

.series-intro p {
    margin-bottom: 16px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}

.chapter-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.chapter-index {
    font: 700 26px monospace;
    color: var(--accent);
    margin-bottom: 18px;
}

.chapter-card p {
    font-size: 14px;
    margin: 12px 0 20px;
    flex: 1;
}

.reading-head {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 28px;
}

.reading-head h1 {
    font-size: 32px;
    margin: 12px 0 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px;
}

.save-status {
    font-size: 14px;
    margin-top: 10px;
    min-height: 25px;
}

.reading-note {
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 24px;
    background: #e8f1ef;
    border-radius: 12px;
}

.reading-note h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.reading-note p {
    font-size: 14px;
}

.reader {
    max-width: 760px;
    margin: auto;
}

.panel {
    margin: 40px 0;
    background: white;
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 12px;
}

.panel h2 {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 20px;
}

figure {
    margin: 0;
}

.panel-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #eaf0f1;
}

figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
}

.panel>p {
    color: #243b43;
    margin-top: 22px;
    font-size: 18px;
    line-height: 2;
}

.chapter-end {
    max-width: 820px;
    text-align: center;
    margin: 60px auto;
    padding: 36px 20px;
    border-top: 1px solid var(--line);
}

.chapter-end h2 {
    margin: 10px 0 14px;
}

.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.image-retry {
    display: block;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #9ebbb4;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: var(--ink);
}

@media (max-width: 1050px) {
    .navigation {
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
    }

    .hero-copy {
        padding: 30px;
    }

    .comic-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .editor-card {
        grid-template-columns: 100px 1fr;
        gap: 15px;
        padding: 16px;
    }

    .rank-note {
        display: none;
    }

    .spotlight-copy {
        padding: 28px;
    }

}

@media (max-width: 760px) {
    .container {
        width: calc(100% - 32px);
    }

    .brand-row {
        min-height: 78px;
        gap: 10px;
    }

    .brand-text {
        font-size: 19px;
    }

    .brand-text small {
        font-size: 12px;
        letter-spacing: 0;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .header-note {
        display: none;
    }

    .menu-button {
        display: flex;
        flex-shrink: 0;
    }

    .navigation {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 5px;
    }

    .js .navigation {
        display: none;
    }

    .js .navigation.is-open {
        display: grid;
    }

    .nav-link {
        padding: 10px 5px;
    }

    .hero {
        margin-top: 24px;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .hero-copy {
        padding: 28px 24px;
    }

    .hero-lead {
        font-size: 32px;
    }

    .hero-feature {
        min-height: 290px;
    }

    .hero-tags {
        gap: 12px;
    }

    .section {
        margin-top: 44px;
    }

    h2 {
        font-size: 23px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading>.text-link {
        margin-top: 5px;
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }

    .category-card {
        padding: 17px;
    }

    .comic-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 22px 16px;
    }

    .ranking-list {
        grid-template-columns: 1fr;
    }

    .rank-row {
        padding: 18px;
    }

    .rank-row:nth-child(odd) {
        border-right: 0;
    }

    .rank-row:nth-last-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .rank-row>.icon {
        margin-left: auto;
    }

    .spotlight {
        grid-template-columns: 1fr;
    }

    .spotlight-visual {
        min-height: 270px;
    }

    .spotlight-copy {
        padding: 26px;
    }

    .schedule-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 24px 18px;
    }

    .schedule-item p {
        min-height: 74px;
    }

    .completed-strip {
        flex-wrap: wrap;
        padding: 24px;
        gap: 24px;
    }

    .completed-strip>div:nth-child(2) {
        flex: 1;
        min-width: 150px;
    }

    .completed-strip>.button {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .editor-card {
        grid-template-columns: 110px 1fr;
    }

    .bookshelf {
        padding: 24px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .guide-grid article {
        display: grid;
        grid-template-columns: 32px 1fr;
        gap: 0 16px;
        padding: 22px;
    }

    .guide-grid p {
        grid-column: 2;
    }

    .step {
        grid-row: span 2;
        margin: 0;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 28px;
    }

    .subscribe {
        grid-template-columns: 1fr;
        padding: 26px;
        gap: 24px;
    }

    .subscribe-mark {
        flex-direction: row;
        justify-content: flex-start;
    }

    .subscribe-mark img {
        width: 64px;
        height: 64px;
    }

    .footer-row {
        flex-direction: column;
    }

    .category-hero {
        padding: 26px;
    }

    .category-hero h1 {
        font-size: 30px;
    }

    .series-intro {
        grid-template-columns: 110px 1fr;
        gap: 18px;
        align-items: start;
    }

    .series-intro h2 {
        font-size: 23px;
    }

    .series-intro p {
        font-size: 14px;
    }

    .chapter-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }

    .chapter-card {
        padding: 18px;
    }

    .chapter-card h3 {
        font-size: 17px;
    }

    .reading-head h1 {
        font-size: 27px;
    }

    .reading-note {
        padding: 20px;
    }

    .panel {
        padding: 16px;
        margin: 28px 0;
    }

    .panel>p {
        font-size: 17px;
    }

}

@media (max-width: 360px) {
    .brand-text {
        font-size: 16px;
    }

    .brand-text small {
        font-size: 12px;
    }

    .brand {
        gap: 7px;
    }

    .menu-button {
        padding: 7px;
    }

    .menu-button span {
        display: none;
    }

    .hero-copy {
        padding: 22px;
    }

    .chapter-card {
        padding: 13px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }

}
