:root {
    --ink: #11172b;
    --ink-soft: #202945;
    --paper: #f7f8fc;
    --white: #ffffff;
    --coral: #ff5c5c;
    --coral-dark: #de3f49;
    --teal: #20c6b7;
    --yellow: #ffd95a;
    --blue: #5688ff;
    --muted: #69708a;
    --line: #dfe3ee;
    --shadow: 0 18px 50px rgba(17, 23, 43, 0.12);
    --radius: 22px;
}

* {
    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: -1;
    content: "";
    pointer-events: none;
    background-image: linear-gradient(rgba(17, 23, 43, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 23, 43, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.shell {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(17, 23, 43, 0.08);
    background: rgba(247, 248, 252, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 82px;
    gap: 24px;
}

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

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--white);
    border: 3px solid var(--ink);
    border-radius: 14px 14px 14px 4px;
    background: var(--coral);
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 1.35rem;
    font-weight: 900;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.75rem;
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 4px;
    list-style: none;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 9px 10px;
    gap: 5px;
    border-radius: 12px;
    color: #3d4560;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--white);
    background: var(--ink);
    transform: translateY(-2px);
}

.ui-icon {
    display: inline-grid;
    min-width: 1.15rem;
    place-items: center;
    font-weight: 900;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 9px 14px;
    color: var(--white);
    border: 0;
    border-radius: 12px;
    background: var(--ink);
    font: inherit;
    font-weight: 800;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 580px;
    margin-top: 44px;
    padding: 54px;
    gap: 56px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 34px;
    background: var(--white);
    box-shadow: 10px 10px 0 var(--ink);
}

.hero-copy {
    align-self: center;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    color: var(--coral-dark);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero h1 a {
    background: linear-gradient(100deg, var(--ink) 40%, var(--coral) 40%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-copy > p {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    gap: 8px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    font-weight: 900;
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 4px 4px 0 var(--ink);
}

.button-primary {
    color: var(--white);
    background: var(--coral);
}

.button-ghost {
    background: var(--white);
}

.button-dark {
    color: var(--white);
    background: var(--ink);
}

.button-light {
    color: var(--ink);
    border-color: var(--white);
    background: var(--white);
}

.hero-notes {
    display: flex;
    margin: 24px 0 0;
    padding: 0;
    gap: 20px;
    color: var(--muted);
    font-size: 0.86rem;
    list-style: none;
}

.hero-notes li::before {
    margin-right: 7px;
    color: var(--teal);
    content: "●";
}

.hero-stage {
    position: relative;
    min-height: 470px;
}

.hero-cover {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 3px solid var(--ink);
    background: #e7eaf2;
    box-shadow: 8px 8px 0 var(--ink);
}

.hero-cover img {
    height: 100%;
}

.hero-cover-main {
    inset: 0 18% 8% 2%;
    transform: rotate(-2deg);
}

.hero-cover-side {
    right: 0;
    bottom: 0;
    width: 42%;
    height: 58%;
    transform: rotate(4deg);
}

.hero-caption {
    position: absolute;
    top: 8%;
    right: -2%;
    display: flex;
    flex-direction: column;
    width: 190px;
    padding: 18px;
    color: var(--ink);
    border: 3px solid var(--ink);
    border-radius: 28px 28px 4px 28px;
    background: var(--yellow);
    transform: rotate(3deg);
}

.hero-caption span,
.hero-caption small {
    font-size: 0.78rem;
}

.hero-caption strong {
    margin: 4px 0;
    font-size: 1.12rem;
}

.section {
    margin-top: 104px;
    margin-bottom: 104px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: end;
    margin-bottom: 34px;
    gap: 6px 40px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

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

.quick-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.1fr 0.75fr;
    min-height: 360px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.quick-art {
    margin: 0;
}

.quick-art img {
    height: 100%;
}

.quick-story,
.quick-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
}

.quick-story {
    border-left: 2px solid var(--ink);
}

.quick-story h3 {
    margin: 14px 0;
    font-size: 2rem;
    line-height: 1.25;
}

.pill {
    align-self: flex-start;
    padding: 4px 10px;
    color: var(--white);
    border-radius: 999px;
    background: var(--coral);
    font-size: 0.78rem;
    font-weight: 800;
}

.text-link {
    margin-top: 16px;
    color: var(--coral-dark);
    font-weight: 900;
}

.quick-quote {
    color: var(--white);
    border-left: 2px solid var(--ink);
    background: var(--ink);
}

.quick-quote blockquote {
    margin: 24px 0;
    font-size: 1.28rem;
    font-weight: 700;
}

.quick-quote span {
    color: #adb5cf;
    font-size: 0.82rem;
}

.section-ink {
    padding: 92px 0;
    color: var(--white);
    background: var(--ink);
}

.section-ink .section-heading p {
    color: #aeb6d0;
}

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

.update-track li {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    padding: 24px 0;
    gap: 26px;
    border-top: 1px solid #39425f;
}

.update-track time {
    color: var(--yellow);
    font-size: 1.1rem;
    font-weight: 900;
}

.update-track h3,
.update-track p {
    margin: 0;
}

.update-track h3 {
    font-size: 1.3rem;
}

.update-track p,
.update-track span {
    color: #aeb6d0;
    font-size: 0.88rem;
}

.mini-link {
    padding: 8px 14px;
    color: var(--ink);
    border-radius: 10px;
    background: var(--yellow);
    font-weight: 900;
}

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

.poster-card {
    position: relative;
    padding: 12px 12px 20px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--white);
    transition: 0.25s ease;
}

.poster-card:nth-child(even) {
    margin-top: 38px;
}

.poster-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 8px 8px 0 var(--ink);
}

.poster-art {
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.poster-art img {
    height: 100%;
}

.rank-tag {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 5px 10px;
    color: var(--white);
    border-radius: 8px;
    background: var(--coral);
    font-size: 0.78rem;
    font-weight: 900;
}

.poster-card h3 {
    margin: 16px 4px 4px;
    font-size: 1.1rem;
    line-height: 1.35;
}

.poster-card p,
.poster-card > a {
    margin: 0 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.poster-card > a {
    display: inline-block;
    margin-top: 10px;
    color: var(--coral-dark);
    font-weight: 900;
}

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

.category-card {
    min-height: 250px;
    padding: 28px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: hsl(calc(8 + var(--category-index) * 38) 90% 94%);
    box-shadow: 5px 5px 0 var(--ink);
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translate(-2px, -4px);
    box-shadow: 9px 9px 0 var(--ink);
}

.category-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--white);
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--ink);
    font-weight: 900;
}

.category-card h3 {
    margin: 20px 0 8px;
    font-size: 1.25rem;
}

.category-card p {
    margin: 0 0 14px;
    color: #505873;
    font-size: 0.9rem;
}

.category-card small {
    color: var(--coral-dark);
    font-weight: 800;
}

.korean-strip {
    padding: 92px 0;
    background: #f0eaff;
}

.strip-list {
    display: grid;
    gap: 18px;
}

.strip-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    min-height: 220px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.strip-card:nth-child(even) {
    grid-template-columns: 1fr 220px;
}

.strip-card:nth-child(even) .strip-art {
    grid-column: 2;
    grid-row: 1;
}

.strip-card:nth-child(even) > div {
    grid-column: 1;
    grid-row: 1;
}

.strip-art {
    height: 100%;
    margin: 0;
}

.strip-art img {
    height: 100%;
}

.strip-card > div {
    padding: 32px 40px;
}

.strip-card h3 {
    margin: 6px 0 10px;
    font-size: 1.55rem;
}

.strip-card p {
    margin: 0;
    color: var(--muted);
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
}

.ranking-lead {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
    padding: 48px;
    color: var(--white);
    border: 2px solid var(--ink);
    border-radius: 30px;
    background: var(--coral);
}

.ranking-lead > strong {
    font-size: 6rem;
    line-height: 1;
}

.ranking-lead h3 {
    margin: 16px 0 8px;
    font-size: 1.7rem;
}

.ranking-lead .button {
    align-self: flex-start;
    margin-top: 20px;
}

.ranking-list {
    margin: 0;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 30px;
    overflow: hidden;
    background: var(--white);
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    padding: 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.ranking-list li:last-child {
    border-bottom: 0;
}

.ranking-list li > span {
    color: var(--coral);
    font-size: 1.4rem;
    font-weight: 900;
}

.ranking-list div {
    display: flex;
    flex-direction: column;
}

.ranking-list small {
    color: var(--muted);
}

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

.feature-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: repeat(2, 270px);
    gap: 20px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
}

.mosaic-item-1 {
    grid-row: 1 / 3;
}

.mosaic-art {
    height: 100%;
    margin: 0;
}

.mosaic-art img {
    height: 100%;
    filter: saturate(0.85);
}

.mosaic-item > div {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 20px;
    color: var(--white);
    border-radius: 14px;
    background: rgba(17, 23, 43, 0.88);
}

.mosaic-item h3,
.mosaic-item p {
    margin: 4px 0 0;
}

.mosaic-item p {
    color: #c5cbe0;
    font-size: 0.85rem;
}

.finished-shelf {
    padding: 92px 0;
    background: #fff4d4;
}

.book-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    perspective: 1000px;
}

.book-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    min-height: 270px;
    color: var(--white);
    border: 2px solid var(--ink);
    border-radius: 8px 18px 18px 8px;
    overflow: hidden;
    background: var(--ink-soft);
    box-shadow: 5px 7px 0 rgba(17, 23, 43, 0.35);
    transform: rotateY(-4deg);
    transition: 0.2s ease;
}

.book-item:hover {
    transform: translateY(-8px) rotateY(0);
}

.book-spine {
    display: grid;
    place-items: center;
    background: var(--coral);
    font-size: 0.75rem;
    font-weight: 900;
    writing-mode: vertical-rl;
}

.book-item div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}

.book-item h3 {
    margin: 0;
    font-size: 1.1rem;
}

.book-item p {
    margin: 8px 0 0;
    color: #bec5dd;
    font-size: 0.82rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 38px 24px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.stat-card:last-child {
    border-right: 0;
}

.stat-card strong {
    color: var(--coral);
    font-size: 2.6rem;
    line-height: 1.1;
}

.stat-card span {
    margin-top: 10px;
    color: var(--muted);
}

.guide-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-flow article {
    position: relative;
    padding: 34px;
    border-top: 6px solid var(--coral);
    background: var(--white);
    box-shadow: var(--shadow);
}

.guide-flow article > span {
    color: var(--line);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
}

.guide-flow h3 {
    margin: 18px 0 8px;
}

.guide-flow p {
    margin: 0;
    color: var(--muted);
}

.about-section {
    padding: 96px 0;
    color: var(--white);
    background: var(--ink);
}

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

.about-title h2 {
    margin: 12px 0 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.1;
}

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

.about-copy ul {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.about-copy li {
    padding: 12px 0;
    border-top: 1px solid #3b4562;
}

.about-copy li::before {
    margin-right: 10px;
    color: var(--teal);
    content: "✓";
}

.app-subscribe {
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: center;
    padding: 54px;
    gap: 60px;
    border: 2px solid var(--ink);
    border-radius: 30px;
    background: var(--yellow);
    box-shadow: 10px 10px 0 var(--ink);
}

.app-copy h2 {
    margin: 10px 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.app-copy > p {
    max-width: 700px;
}

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

.brand-qr {
    display: grid;
    min-height: 250px;
    padding: 30px;
    place-items: center;
    color: var(--white);
    border: 3px solid var(--ink);
    border-radius: 24px;
    background: repeating-linear-gradient(45deg, var(--ink) 0 12px, var(--ink-soft) 12px 24px);
    box-shadow: 7px 7px 0 var(--coral);
    text-align: center;
}

.brand-qr span {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 28px 28px 28px 6px;
    background: var(--coral);
    font-size: 2.5rem;
    font-weight: 900;
}

.brand-qr strong {
    letter-spacing: 0.25em;
}

.brand-qr small {
    color: #c7cde0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-top: 34px;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

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

.catalog-hero {
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: center;
    margin-top: 28px;
    padding: 52px;
    gap: 50px;
    color: var(--white);
    border-radius: 30px;
    background: var(--ink);
}

.catalog-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1;
}

.catalog-hero p {
    max-width: 720px;
    margin: 0;
    color: #c7cde0;
}

.catalog-hero aside {
    display: flex;
    flex-direction: column;
    padding: 28px;
    color: var(--ink);
    border-radius: 20px;
    background: var(--yellow);
    transform: rotate(2deg);
}

.catalog-hero aside strong {
    font-size: 4rem;
    line-height: 1;
}

.catalog-intro {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    margin-bottom: 30px;
    gap: 30px;
}

.catalog-intro h2,
.catalog-intro p {
    margin: 0;
}

.catalog-intro h2 {
    font-size: 2.4rem;
}

.catalog-intro p {
    color: var(--muted);
}

.catalog-cards {
    display: grid;
    gap: 24px;
}

.catalog-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 280px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--white);
}

.catalog-card:nth-child(even) {
    grid-template-columns: 1fr 280px;
}

.catalog-card:nth-child(even) .catalog-cover {
    grid-column: 2;
    grid-row: 1;
}

.catalog-card:nth-child(even) .catalog-card-body {
    grid-column: 1;
    grid-row: 1;
}

.catalog-cover {
    height: 100%;
    margin: 0;
}

.catalog-cover img {
    height: 100%;
}

.catalog-card-body {
    padding: 34px 40px;
}

.catalog-card-body h2 {
    margin: 12px 0;
    font-size: 1.7rem;
}

.catalog-card-body p {
    color: var(--muted);
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.82rem;
}

.tag-list {
    display: flex;
    margin: 18px 0;
    padding: 0;
    gap: 8px;
    list-style: none;
}

.tag-list li {
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef0f7;
    font-size: 0.78rem;
    font-weight: 800;
}

.seo-note {
    padding: 40px;
    border-left: 8px solid var(--coral);
    background: var(--white);
}

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

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

.reader {
    max-width: 980px;
    margin-top: 30px;
    margin-bottom: 100px;
}

.reader-header {
    padding: 54px;
    color: var(--white);
    border-radius: 30px;
    background: var(--ink);
    text-align: center;
}

.reader-header h1 {
    margin: 10px 0 22px;
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    line-height: 1.15;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    color: #bfc6dc;
    font-size: 0.9rem;
}

.reading-note {
    display: grid;
    grid-template-columns: 52px 1fr;
    margin: 32px 0 54px;
    padding: 26px 30px;
    gap: 18px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--yellow);
}

.reading-note > .ui-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: var(--white);
}

.reading-note h2,
.reading-note p {
    margin: 0;
}

.chapter-story > h2 {
    margin-bottom: 8px;
    font-size: 2rem;
    text-align: center;
}

.chapter-story > p {
    max-width: 760px;
    margin: 0 auto 38px;
    color: var(--muted);
    text-align: center;
}

.reader-panels {
    display: grid;
    gap: 36px;
}

.reader-panel {
    margin: 0;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 8px 8px 0 var(--ink);
}

.reader-panel img {
    aspect-ratio: 3 / 4;
}

.reader-panel figcaption {
    display: flex;
    padding: 16px 20px;
    gap: 16px;
    border-top: 2px solid var(--ink);
}

.reader-panel figcaption span {
    color: var(--coral-dark);
    font-weight: 900;
}

.chapter-end {
    margin-top: 70px;
    padding: 50px;
    color: var(--white);
    border-radius: 24px;
    background: var(--ink);
    text-align: center;
}

.chapter-end > span {
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: 0.3em;
}

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

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

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

.chapter-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 12px 18px;
    gap: 8px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--white);
    font-weight: 900;
    text-align: center;
}

.chapter-nav a:last-child {
    background: #f0eaff;
}

.chapter-home {
    color: var(--white);
    background: var(--ink) !important;
}

.site-footer {
    padding: 48px 0;
    color: #bcc4db;
    background: #0b1020;
}

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

.footer-grid strong {
    color: var(--white);
    font-size: 1.3rem;
}

.footer-grid p {
    margin: 6px 0 0;
    font-size: 0.86rem;
}

.footer-grid nav {
    display: flex;
    gap: 20px;
}

.footer-grid nav a:hover {
    color: var(--yellow);
}

.footer-grid > p {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid #29314a;
}

@media (max-width: 1080px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin: 0;
    }

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

    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .main-nav a {
        justify-content: center;
        border: 1px solid var(--line);
        background: var(--white);
    }

    .hero {
        grid-template-columns: 1fr 0.9fr;
        padding: 40px;
        gap: 36px;
    }

    .hero-stage {
        min-height: 420px;
    }

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

    .poster-card:nth-child(even) {
        margin-top: 0;
    }

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

@media (max-width: 780px) {
    .shell {
        width: min(100% - 28px, 1200px);
    }

    .brand-copy small {
        display: none;
    }

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

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 26px;
        padding: 32px 24px;
        gap: 30px;
        box-shadow: 6px 6px 0 var(--ink);
    }

    .hero h1 {
        font-size: clamp(3.5rem, 18vw, 5.6rem);
    }

    .hero-stage {
        min-height: 390px;
    }

    .hero-cover-main {
        right: 12%;
    }

    .hero-caption {
        right: 0;
        width: 160px;
    }

    .section {
        margin-top: 72px;
        margin-bottom: 72px;
    }

    .section-heading,
    .catalog-intro {
        grid-template-columns: 1fr;
    }

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

    .quick-art {
        max-height: 340px;
    }

    .quick-story,
    .quick-quote {
        padding: 28px;
        border-top: 2px solid var(--ink);
        border-left: 0;
    }

    .update-track li {
        grid-template-columns: 74px 1fr;
    }

    .update-track .mini-link {
        grid-column: 2;
        justify-self: start;
    }

    .strip-card,
    .strip-card:nth-child(even),
    .catalog-card,
    .catalog-card:nth-child(even) {
        grid-template-columns: 150px 1fr;
    }

    .strip-card:nth-child(even) .strip-art,
    .catalog-card:nth-child(even) .catalog-cover {
        grid-column: 1;
    }

    .strip-card:nth-child(even) > div,
    .catalog-card:nth-child(even) .catalog-card-body {
        grid-column: 2;
    }

    .strip-card > div,
    .catalog-card-body {
        padding: 24px;
    }

    .ranking-layout,
    .about-layout,
    .app-subscribe,
    .catalog-hero {
        grid-template-columns: 1fr;
    }

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

    .mosaic-item-1 {
        grid-row: auto;
    }

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

    .stat-card:nth-child(2) {
        border-right: 0;
    }

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

    .about-layout {
        gap: 34px;
    }

    .app-subscribe {
        padding: 34px 26px;
    }

    .brand-qr {
        min-height: 220px;
    }

    .catalog-hero {
        padding: 36px 28px;
    }

    .catalog-hero aside {
        max-width: 240px;
    }

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

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

    .chapter-home {
        grid-column: 1 / -1;
        grid-row: 1;
    }

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

@media (max-width: 540px) {
    .header-inner {
        min-height: 70px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .main-nav a {
        padding: 9px 6px;
        font-size: 0.78rem;
    }

    .hero-notes {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .hero-stage {
        min-height: 320px;
    }

    .hero-caption {
        top: 4%;
        width: 140px;
        padding: 14px;
    }

    .poster-grid,
    .category-grid,
    .stats-grid,
    .guide-flow,
    .book-row {
        grid-template-columns: 1fr;
    }

    .poster-grid {
        gap: 18px;
    }

    .poster-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        align-items: center;
        min-height: 180px;
        gap: 0 16px;
    }

    .poster-art {
        grid-row: 1 / 5;
        height: 100%;
    }

    .poster-card h3 {
        margin-top: 28px;
    }

    .rank-tag {
        top: 18px;
        left: 142px;
    }

    .category-card {
        min-height: auto;
    }

    .strip-card,
    .strip-card:nth-child(even),
    .catalog-card,
    .catalog-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .strip-card:nth-child(even) .strip-art,
    .catalog-card:nth-child(even) .catalog-cover,
    .strip-card:nth-child(even) > div,
    .catalog-card:nth-child(even) .catalog-card-body {
        grid-column: 1;
        grid-row: auto;
    }

    .strip-art,
    .catalog-cover {
        height: 260px;
    }

    .ranking-list li {
        grid-template-columns: 44px 1fr;
        padding: 20px;
    }

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

    .book-item {
        min-height: 150px;
    }

    .stat-card,
    .stat-card:nth-child(2),
    .stat-card:nth-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat-card:last-child {
        border-bottom: 0;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }

    .catalog-card-body h2 {
        font-size: 1.4rem;
    }

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

    .reader-panel {
        box-shadow: 5px 5px 0 var(--ink);
    }

    .reader-panel figcaption {
        flex-direction: column;
        gap: 2px;
    }

    .chapter-end {
        padding: 36px 22px;
    }

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

    .chapter-home {
        grid-column: auto;
        grid-row: auto;
    }

    .footer-grid nav {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
