:root {
    --ink: #202b31;
    --muted: #67747c;
    --line: #e4e8e9;
    --yellow: #f5ce39;
    --paper: #ffffff;
    --base: #f6f8fa;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    color: var(--ink);
    background: var(--base);
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
    background: #e1e7eb;
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    line-height: 1.45;
}

p {
    overflow-wrap: anywhere;
}

h2 {
    font-size: 1.55rem;
    letter-spacing: -.04em;
}

h3 {
    font-size: 1rem;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid #326aaf;
    outline-offset: 5px;
}

.wrap {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    background: white;
    border-bottom: 1px solid var(--line);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 86px;
}

.logo {
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -.06em;
}

.logo img {
    background: transparent;
    border-radius: 12px;
}

.brand-note {
    font-size: .875rem;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 4px;
    justify-content: space-between;
    padding-bottom: 13px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: .875rem;
    white-space: nowrap;
}

.nav a:hover {
    background: #f1f4f5;
}

.nav a[aria-current="page"] {
    background: var(--yellow);
    color: #202b31;
    font-weight: 700;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15em;
    width: 1.25em;
    flex-shrink: 0;
    margin-right: .25em;
}

.menu-toggle {
    display: none;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    padding: 10px;
    background: white;
    z-index: 20;
}

.skip-link:focus {
    top: 8px;
}

.hero {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f7d951;
    border-radius: 20px;
    overflow: hidden;
}

.hero-copy {
    padding: 42px;
}

.eyebrow {
    font-size: .75rem;
    letter-spacing: .13em;
    font-weight: 800;
}

.hero h1 {
    font-size: 1rem;
    margin-top: 20px;
}

.hero-title {
    white-space: normal;
    font-size: 2.6rem;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -.06em;
    margin: 10px 0 18px;
}

.hero-title span {
    display: block;
}

.hero-description {
    max-width: 440px;
    font-size: .875rem;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    padding: 11px 19px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 700;
}

.dark {
    background: #25333a;
    color: white;
}

.dark:hover {
    background: #40525c;
}

.light {
    background: #ffffffa8;
    border-color: #d4dadd;
    color: var(--ink);
}

.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid #25333a26;
    margin-top: 28px;
    padding-top: 15px;
    font-size: .75rem;
}

.hero-visual {
    position: relative;
    min-width: 0;
    margin: 20px 20px 20px 0;
    border-radius: 13px;
    overflow: hidden;
    background: #52677c;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 370px;
    aspect-ratio: 1.25;
}

.hero-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 70px 28px 25px;
    background: linear-gradient(transparent, #132031ed);
    color: white;
}

.hero-caption span {
    font-size: .75rem;
}

.hero-caption h2 {
    font-size: 2rem;
    margin: 5px 0;
}

.hero-caption p {
    font-size: .875rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.quick-links a {
    padding: 23px 20px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.quick-links a + a {
    border-left: 1px solid var(--line);
}

.quick-links .icon {
    width: 40px;
    height: 40px;
    background: #fff4c9;
    color: #775900;
    border-radius: 12px;
    font-size: 1.6rem;
}

.quick-links h2 {
    font-size: 1rem;
    letter-spacing: 0;
}

.quick-links p {
    font-size: .75rem;
    color: var(--muted);
}

.module {
    margin-top: 60px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 23px;
}

.section-heading p {
    color: var(--muted);
    font-size: .875rem;
    margin-top: 6px;
}

.text-link {
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-grid {
    display: grid;
    gap: 22px;
}

.six {
    grid-template-columns: repeat(6, minmax(0,1fr));
}

.three {
    grid-template-columns: repeat(3, minmax(0,1fr));
}

.cover {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    transition: transform .2s;
}

.card-link:hover img {
    transform: scale(1.035);
}

.cover-label {
    position: absolute;
    left: 9px;
    bottom: 9px;
    background: #ffffffeb;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: .75rem;
}

.card-copy {
    padding-top: 12px;
}

.card-copy h3 {
    font-size: 1rem;
}

.card-copy p {
    color: var(--muted);
    font-size: .75rem;
    margin-top: 4px;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}

.rank-row {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    gap: 18px;
}

.rank-row > .icon {
    margin-left: auto;
}

.rank-number {
    color: #876200;
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
}

.rank-row p {
    color: var(--muted);
    font-size: .875rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.category-card {
    background: white;
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 12px;
}

.category-card:hover {
    border-color: #b29532;
}

.category-card > .icon {
    width: 42px;
    height: 42px;
    background: #eef3f6;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.category-card p {
    font-size: .875rem;
    color: var(--muted);
    margin-top: 7px;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    background: #e4edf4;
}

.feature-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
}

.feature-copy {
    padding: 36px;
}

.feature-copy h2 {
    margin: 12px 0 18px;
    font-size: 2rem;
}

.feature-copy p {
    font-size: .875rem;
    margin-bottom: 18px;
}

.schedule {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.schedule > div {
    padding: 22px 16px;
}

.schedule > div + div {
    border-left: 1px solid var(--line);
}

.day {
    display: block;
    color: #826000;
    font-size: .875rem;
    margin-bottom: 15px;
}

.schedule p {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 8px;
}

.completed-panel {
    background: #263940;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    padding: 34px;
    border-radius: 16px;
}

.completed-panel h2 {
    margin: 13px 0;
}

.completed-panel p {
    color: #cad7db;
    font-size: .875rem;
    margin-bottom: 22px;
}

.completed-panel .button {
    background: var(--yellow);
    color: var(--ink);
}

.completed-panel ol {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 12px;
}

.completed-panel li {
    padding: 14px;
    border: 1px solid #ffffff30;
    border-radius: 8px;
    font-size: .875rem;
}

.completed-panel li span {
    color: #f5ce39;
    margin-right: 12px;
}

.shelf-panel {
    border: 1px dashed #a9b7be;
    padding: 25px;
    border-radius: 12px;
    background: white;
}

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin: 15px 0;
}

.shelf-grid a {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #f4f7f9;
    padding: 18px;
    border-radius: 8px;
}

.shelf-grid p {
    font-size: .875rem;
    color: var(--muted);
}

.muted {
    font-size: .875rem;
    color: var(--muted);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 22px;
}

.guide-grid article {
    border-top: 3px solid #d2b347;
    padding: 21px 0;
}

.pill {
    display: inline-block;
    border-radius: 20px;
    background: #e6edf0;
    padding: 2px 10px;
    font-size: .75rem;
    margin-bottom: 14px;
}

.guide-grid h3 {
    font-size: 1.1rem;
}

.guide-grid p {
    font-size: .875rem;
    color: var(--muted);
    margin: 12px 0 20px;
}

.faq {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    align-items: start;
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 20px;
}

summary {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

details p {
    margin-top: 15px;
    color: var(--muted);
}

.about {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 60px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}

.about h2 {
    margin: 12px 0 20px;
}

.about p {
    margin-top: 15px;
}

.about-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 5px solid var(--yellow);
    padding: 25px;
}

.about-note strong {
    font-size: 2rem;
}

.about-note span {
    font-size: 1.4rem;
}

.about-note p {
    font-size: .75rem;
    color: var(--muted);
    letter-spacing: .05em;
}

.subscribe {
    background: #f8dc63;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 38px;
    border-radius: 16px;
    margin-bottom: 60px;
}

.subscribe h2 {
    margin: 12px 0;
}

.subscribe p {
    max-width: 750px;
    font-size: .875rem;
}

.subscribe .muted {
    margin-top: 14px;
    color: #4d514b;
}

.subscribe-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 20px 27px;
    flex-shrink: 0;
}

.subscribe-brand img {
    background: white;
}

.subscribe-brand span {
    color: var(--muted);
    font-size: .75rem;
}

.site-footer {
    background: white;
    border-top: 1px solid var(--line);
    padding: 28px 0;
    font-size: .875rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .875rem;
    color: var(--muted);
    padding-top: 28px;
}

.collection-hero {
    margin-top: 28px;
    background: #f7dc69;
    border-radius: 16px;
    padding: 36px;
}

.collection-hero h1 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.collection-hero p {
    margin-top: 10px;
}

.reading-note {
    padding: 25px;
    background: #eef3f6;
    border-radius: 12px;
}

.reading-note h2 {
    font-size: 1.1rem;
}

.reading-note p {
    margin-top: 12px;
}

.reading-note .button {
    margin-top: 20px;
}

main > .reading-note {
    margin-bottom: 60px;
}

.reader {
    max-width: 820px;
    margin: 36px auto 60px;
}

.reader-heading {
    margin-bottom: 28px;
}

.reader h1 {
    font-size: 2rem;
    margin: 14px 0;
}

.reader-heading p {
    color: var(--muted);
    font-size: .875rem;
}

.reader-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 25px 0 10px;
}

.story-panel {
    margin-top: 40px;
}

.story-panel h2 {
    font-size: .875rem;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 15px;
}

figure {
    margin: 0;
}

.story-panel img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

figcaption {
    font-size: .75rem;
    color: var(--muted);
    margin: 8px 0 17px;
}

.story-panel p {
    font-size: 1.15rem;
    line-height: 2;
    padding: 20px 25px;
    background: white;
    border-left: 3px solid var(--yellow);
}

.chapter-end {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-block: 1px solid var(--line);
}

.chapter-end p {
    margin-top: 14px;
}

.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

body.reading-soft {
    background: #e5ece1;
}

body.reading-soft .story-panel p {
    background: #f3f6ef;
}

body.large-text .story-panel p {
    font-size: 1.45rem;
}

.image-failed {
    object-fit: contain;
    color: #35454f;
    padding: 25px;
    background: #e5ecf0;
}

@media (max-width: 1050px) {
    .nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .nav a {
        padding: 8px 11px;
    }
    .hero-copy {
        padding: 30px;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .six {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .quick-links {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .quick-links a:nth-child(3) {
        border-left: 0;
    }
    .quick-links a:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }
    .schedule {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .schedule > div:nth-child(4) {
        border-left: 0;
    }
    .schedule > div:nth-child(n+4) {
        border-top: 1px solid var(--line);
    }
    .category-grid, .guide-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .feature-copy {
        padding: 26px;
    }
}

@media (max-width: 700px) {
    .wrap {
        width: calc(100% - 32px);
    }
    .brand-row {
        min-height: 76px;
        justify-content: space-between;
    }
    .brand-note {
        display: none;
    }
    .logo {
        font-size: 1.4rem;
    }
    .menu-toggle {
        display: block;
        background: #f2f5f6;
        border: 1px solid var(--line);
        border-radius: 7px;
        padding: 6px 12px;
    }
    .nav {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 5px;
    }
    .js .nav:not(.is-open) {
        display: none;
    }
    .nav a {
        white-space: normal;
        justify-content: center;
        font-size: .875rem;
        padding: 9px 3px;
    }
    .hero {
        margin-top: 24px;
        grid-template-columns: 1fr;
    }
    .hero-copy {
        padding: 28px 24px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-visual {
        margin: 0 16px 16px;
    }
    .hero-visual img {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
    }
    .hero-caption {
        padding: 50px 20px 18px;
    }
    .hero-caption h2 {
        font-size: 1.6rem;
    }
    .hero-stats {
        gap: 13px;
    }
    .quick-links a {
        padding: 17px 12px;
        gap: 7px;
    }
    .quick-links .icon {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    .quick-links h2 {
        font-size: .875rem;
    }
    .quick-links p {
        font-size: .75rem;
    }
    .module {
        margin-top: 42px;
    }
    h2 {
        font-size: 1.35rem;
    }
    .section-heading {
        align-items: flex-start;
    }
    .section-heading > .text-link {
        font-size: .75rem;
        padding-top: 5px;
    }
    .section-heading p {
        font-size: .875rem;
    }
    .six, .three {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 20px 14px;
    }
    .ranking-grid {
        grid-template-columns: 1fr;
    }
    .rank-row {
        padding: 15px;
    }
    .category-grid {
        gap: 12px;
    }
    .category-card {
        padding: 17px;
    }
    .feature {
        grid-template-columns: 1fr;
    }
    .feature-image img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .feature-copy {
        padding: 25px;
    }
    .schedule {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .schedule > div:nth-child(n) {
        border-left: 0;
    }
    .schedule > div:nth-child(2n) {
        border-left: 1px solid var(--line);
    }
    .schedule > div:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }
    .completed-panel {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 25px;
    }
    .completed-panel li {
        padding: 12px 9px;
    }
    .completed-panel li span {
        margin-right: 5px;
    }
    .shelf-grid, .faq {
        grid-template-columns: 1fr;
    }
    .guide-grid {
        gap: 20px;
    }
    .about {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .about-note {
        padding: 10px 22px;
    }
    .subscribe {
        padding: 25px;
        flex-direction: column;
        align-items: stretch;
    }
    .subscribe-brand {
        align-self: center;
    }
    .collection-hero {
        padding: 25px;
    }
    .collection-hero h1 {
        font-size: 2rem;
    }
    .reader h1 {
        font-size: 1.6rem;
    }
    .reader-controls .button {
        padding: 9px 12px;
    }
    .story-panel p {
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
