:root {
    --ink: #0b1226;
    --ink-soft: #192342;
    --cyan: #63f5da;
    --cyan-dark: #0b9f91;
    --paper: #fff9e8;
    --sun: #ffd85a;
    --coral: #ff7a7a;
    --white: #ffffff;
    --muted: #64708b;
    --line: #dfe5ee;
    --surface: #f5f7fb;
    --shadow: 0 18px 50px rgba(11, 18, 38, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 20px;
    background: rgba(11, 18, 38, 0.94);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    width: min(1200px, 100%);
    min-height: 64px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    flex: 0 0 auto;
}

.brand-mark {
    width: 164px;
    height: 48px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: flex;
    min-height: 42px;
    padding: 7px 10px;
    color: #cbd5e8;
    border-radius: 12px;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
    background: var(--cyan);
}

.ui-icon {
    display: grid;
    width: 22px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 7px;
    place-items: center;
    font-size: 12px;
}

.nav-toggle {
    display: none;
    padding: 9px 13px;
    color: var(--white);
    background: transparent;
    border: 1px solid #52607d;
    border-radius: 10px;
    align-items: center;
    gap: 8px;
}

.hero {
    position: relative;
    display: grid;
    min-height: 520px;
    margin-top: 48px;
    padding: 44px;
    color: var(--white);
    background: var(--ink);
    border-radius: 36px;
    overflow: hidden;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 42px;
    align-items: center;
    box-shadow: var(--shadow);
}

.hero::before {
    position: absolute;
    top: -140px;
    left: -90px;
    width: 360px;
    height: 360px;
    content: "";
    background: radial-gradient(circle, rgba(99, 245, 218, 0.24), transparent 68%);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow,
.kicker {
    margin: 0 0 10px;
    color: var(--cyan-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--cyan);
}

.hero h1 {
    margin: 0;
    font-size: clamp(64px, 8vw, 112px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero h1 a {
    display: inline-block;
}

.hero-lead {
    max-width: 600px;
    margin: 26px 0;
    color: #d5dced;
    font-size: 19px;
}

.search-box {
    display: flex;
    max-width: 590px;
    padding: 6px;
    background: var(--white);
    border-radius: 16px;
    gap: 8px;
}

.search-box input {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: none;
}

.search-box button,
.button {
    display: inline-flex;
    padding: 12px 20px;
    color: var(--ink);
    background: var(--cyan);
    border: 0;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.search-feedback {
    margin: 8px 0 0;
    color: #9eabc5;
    font-size: 14px;
}

.hero-visual {
    position: relative;
    min-height: 420px;
}

.hero-visual > img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px 28px 110px 28px;
}

.hero-orbit {
    position: absolute;
    top: -28px;
    right: -18px;
    z-index: 3;
    display: grid;
    width: 96px;
    height: 96px;
    color: var(--ink);
    background: var(--sun);
    border: 8px solid var(--ink);
    border-radius: 50%;
    place-items: center;
    font-size: 35px;
    font-weight: 900;
    transform: rotate(8deg);
}

.hero-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    padding: 16px 18px;
    background: rgba(11, 18, 38, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px 16px 58px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-caption span {
    color: var(--cyan);
    font-size: 13px;
}

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

.section {
    margin-top: 92px;
}

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

.section-heading h2,
.topic-intro h2,
.about-copy h2,
.app-copy h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading > p {
    max-width: 510px;
    margin: 0;
    color: var(--muted);
}

.section-more {
    padding-bottom: 4px;
    color: var(--cyan-dark);
    border-bottom: 2px solid currentColor;
    font-weight: 800;
}

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

.category-tile {
    display: flex;
    min-height: 250px;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    flex-direction: column;
    transition: 0.2s ease;
}

.category-tile:nth-child(3n + 1) {
    border-top: 5px solid var(--cyan-dark);
}

.category-tile:nth-child(3n + 2) {
    border-top: 5px solid var(--sun);
}

.category-tile:nth-child(3n) {
    border-top: 5px solid var(--coral);
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-icon,
.channel-icon {
    display: grid;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: var(--ink);
    border-radius: 15px;
    place-items: center;
    font-size: 22px;
}

.category-tile h3 {
    margin: 20px 0 6px;
    font-size: 21px;
}

.category-tile p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    margin-top: auto;
    color: var(--cyan-dark);
    font-weight: 800;
}

.comic-grid,
.channel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

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

.comic-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.2s ease;
}

.comic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

.comic-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.comic-card:hover .comic-cover {
    transform: scale(1.04);
}

.cover-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 9px;
    color: var(--ink);
    background: var(--cyan);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

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

.card-body p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta {
    display: flex;
    padding-top: 12px;
    color: #7c87a0;
    border-top: 1px dashed var(--line);
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.schedule-section,
.hanman-stage {
    padding: 42px;
    color: var(--white);
    background: var(--ink-soft);
    border-radius: 32px;
}

.inverse-heading h2,
.inverse-heading p {
    color: var(--white);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.timeline-item {
    display: grid;
    padding: 19px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    align-items: start;
}

.timeline-item time {
    color: var(--cyan);
    font-weight: 900;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    margin-top: 9px;
    background: var(--sun);
    border-radius: 50%;
}

.timeline-item h3,
.timeline-item p {
    margin: 0;
}

.timeline-item h3 {
    font-size: 17px;
}

.timeline-item p {
    color: #aeb9d2;
    font-size: 13px;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
}

.feature-cover {
    position: relative;
    min-height: 530px;
    border-radius: 28px;
    overflow: hidden;
}

.feature-cover > img {
    width: 100%;
    height: 100%;
    min-height: 530px;
    object-fit: cover;
}

.feature-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 70px 28px 28px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(11, 18, 38, 0.96));
}

.feature-overlay span {
    color: var(--cyan);
    font-weight: 800;
}

.feature-overlay h3 {
    margin: 5px 0;
    font-size: 32px;
}

.feature-overlay p {
    margin: 0;
}

.hot-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 12px;
}

.hot-list li {
    display: grid;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
}

.rank-number {
    color: var(--cyan-dark);
    font-size: 25px;
    font-weight: 900;
}

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

.hot-list p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.heat {
    color: var(--coral);
    font-weight: 900;
}

.hanman-stage {
    background: #182748;
}

.light-link {
    color: var(--cyan);
}

.portrait-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.portrait-card {
    position: relative;
    padding-bottom: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
}

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

.portrait-card span {
    display: inline-block;
    margin: 14px 14px 0;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
}

.portrait-card h3 {
    margin: 2px 14px 0;
    font-size: 16px;
}

.review-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.review-row {
    display: grid;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    grid-template-columns: 92px 1fr;
    gap: 22px;
    align-items: center;
}

.review-score {
    display: flex;
    width: 92px;
    height: 92px;
    color: var(--white);
    background: var(--ink);
    border-radius: 50% 50% 16% 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.review-score strong {
    font-size: 29px;
    line-height: 1;
}

.review-score span {
    color: var(--cyan);
    font-size: 11px;
}

.review-tag {
    color: var(--cyan-dark);
    font-size: 13px;
    font-weight: 800;
}

.review-copy h3,
.review-copy p {
    margin: 0;
}

.review-copy h3 {
    font-size: 20px;
}

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

.paper-section {
    padding: 42px;
    background: var(--paper);
    border: 1px solid #f0dfad;
    border-radius: 32px;
}

.completed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.completed-item {
    display: grid;
    padding: 20px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid #e8d8aa;
    border-radius: 18px;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
}

.completed-index {
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
}

.completed-item h3,
.completed-item p {
    margin: 0;
}

.completed-item p {
    color: var(--muted);
    font-size: 13px;
}

.completed-item a {
    font-weight: 800;
}

.ranking-table {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}

.ranking-row {
    display: grid;
    min-height: 72px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 70px 1.5fr 1fr 70px;
    gap: 16px;
    align-items: center;
}

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

.ranking-row:hover {
    background: #effdf9;
}

.ranking-row strong {
    color: var(--cyan-dark);
    font-size: 24px;
}

.topic-section {
    display: grid;
    padding: 46px;
    color: var(--white);
    background: var(--ink);
    border-radius: 34px;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: center;
}

.topic-intro p:not(.kicker) {
    color: #b9c3d8;
}

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

.topic-section .secondary-button {
    color: var(--ink);
    background: var(--cyan);
}

.topic-cloud {
    display: flex;
    min-height: 290px;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.topic-pill {
    display: inline-flex;
    padding: 14px 20px;
    color: var(--ink);
    background: var(--white);
    border-radius: 999px;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    transform: rotate(-2deg);
}

.topic-pill:nth-child(2n) {
    background: var(--cyan);
    transform: rotate(2deg);
}

.topic-pill:nth-child(3n) {
    background: var(--sun);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.guide-steps article {
    position: relative;
    min-height: 220px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}

.guide-steps article > span {
    position: absolute;
    top: -12px;
    right: 12px;
    color: #e8edf5;
    font-size: 75px;
    font-weight: 900;
}

.guide-steps h3 {
    position: relative;
    margin: 80px 0 8px;
    font-size: 22px;
}

.guide-steps p {
    position: relative;
    margin: 0;
    color: var(--muted);
}

.about-section {
    display: grid;
    min-height: 420px;
    padding: 46px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 34px;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 50px;
    align-items: center;
}

.about-mark {
    display: grid;
    aspect-ratio: 1;
    color: var(--ink);
    background: var(--cyan);
    border: 18px solid var(--ink);
    border-radius: 50% 50% 18% 50%;
    place-items: center;
}

.about-mark span {
    font-size: clamp(70px, 12vw, 150px);
    font-weight: 900;
    letter-spacing: -0.1em;
}

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

.about-stats {
    display: grid;
    margin-top: 26px;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.about-stats div {
    padding: 16px;
    background: var(--surface);
    border-radius: 16px;
}

.about-stats strong,
.about-stats span {
    display: block;
}

.about-stats strong {
    font-size: 28px;
}

.about-stats span {
    color: var(--muted);
    font-size: 13px;
}

.app-section {
    display: grid;
    margin-bottom: 92px;
    padding: 48px;
    color: var(--white);
    background: linear-gradient(135deg, #13203d, #24385e);
    border-radius: 34px;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: center;
}

.app-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 11px;
    color: var(--ink);
    background: var(--sun);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.app-copy p {
    max-width: 700px;
    color: #c0c9dc;
}

.subscribe-note {
    margin-bottom: 0;
    font-size: 13px;
}

.qr-wrap {
    display: flex;
    padding: 20px;
    color: var(--ink);
    background: var(--white);
    border-radius: 24px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
}

.qr-wrap img {
    width: 160px;
    height: 160px;
}

.site-footer {
    padding: 54px 20px;
    color: #b8c2d6;
    background: #070c19;
}

.footer-inner {
    display: grid;
    width: min(1200px, 100%);
    margin: 0 auto;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.footer-brand p {
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--cyan);
}

.copyright {
    margin: 0;
    grid-column: 1 / -1;
    color: #75819a;
    font-size: 13px;
}

.breadcrumbs {
    display: flex;
    margin-top: 38px;
    color: var(--muted);
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--cyan-dark);
    font-weight: 800;
}

.channel-hero {
    display: grid;
    margin-top: 24px;
    padding: 42px;
    color: var(--white);
    background: var(--ink);
    border-radius: 30px;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
}

.channel-hero h1 {
    margin: 10px 0;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1;
}

.channel-hero p:not(.kicker) {
    max-width: 720px;
    margin: 0;
    color: #c4cde0;
}

.channel-note {
    display: flex;
    min-width: 230px;
    padding: 20px;
    color: var(--ink);
    background: var(--cyan);
    border-radius: 18px;
    flex-direction: column;
}

.channel-note strong {
    font-size: 23px;
}

.channel-note span {
    font-size: 13px;
}

.channel-grid .comic-cover {
    aspect-ratio: 3 / 4;
}

.channel-editorial {
    display: grid;
    margin-bottom: 92px;
    padding: 34px;
    background: var(--paper);
    border: 1px solid #efdfb4;
    border-radius: 24px;
    grid-template-columns: 0.7fr 1.3fr auto;
    gap: 30px;
    align-items: center;
}

.channel-editorial h2,
.channel-editorial p {
    margin: 0;
}

.reader {
    margin-top: 26px;
    margin-bottom: 92px;
}

.reader-header {
    padding: 46px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 30px;
}

.reader-labels {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.reader-labels span {
    padding: 5px 11px;
    color: var(--ink);
    background: var(--cyan);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.reader-labels span:last-child {
    background: var(--sun);
}

.reader-header h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.reader-meta {
    display: flex;
    margin: 0;
    color: var(--muted);
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.reading-notice {
    display: flex;
    max-width: 900px;
    margin: 28px auto 46px;
    padding: 22px;
    color: var(--white);
    background: var(--ink-soft);
    border-radius: 18px;
    gap: 16px;
    align-items: start;
}

.reading-notice > span {
    display: grid;
    width: 38px;
    height: 38px;
    color: var(--ink);
    background: var(--cyan);
    border-radius: 50%;
    place-items: center;
    flex: 0 0 auto;
}

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

.reading-notice h2 {
    font-size: 18px;
}

.reading-notice p {
    color: #c0cadf;
    font-size: 14px;
}

.comic-chapter {
    max-width: 900px;
    margin: 0 auto;
}

.comic-chapter > h2 {
    margin-bottom: 24px;
    text-align: center;
    font-size: 28px;
}

.comic-panel {
    margin: 0 0 34px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comic-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #dbe2ec;
}

.comic-panel figcaption {
    display: grid;
    padding: 22px;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.comic-panel figcaption span {
    color: var(--cyan-dark);
    font-size: 20px;
    font-weight: 900;
}

.comic-panel figcaption p {
    margin: 0;
}

.chapter-end {
    max-width: 900px;
    margin: 52px auto 28px;
    padding: 42px;
    text-align: center;
    background: var(--paper);
    border: 1px solid #ead9aa;
    border-radius: 24px;
}

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

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

.chapter-end p {
    margin: 0;
    color: var(--muted);
}

.chapter-nav {
    display: grid;
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
}

.chapter-button,
.back-button {
    display: flex;
    min-height: 86px;
    padding: 15px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chapter-button {
    flex-wrap: wrap;
}

.chapter-button strong {
    width: 100%;
    text-align: center;
    font-size: 13px;
}

.back-button {
    color: var(--ink);
    background: var(--cyan);
    border-color: var(--cyan);
    font-weight: 900;
}

.disabled-button {
    color: #9ba5b8;
    background: #eef1f6;
}

.error-page {
    display: flex;
    min-height: 65vh;
    padding: 90px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page > span {
    color: var(--cyan-dark);
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
}

.error-page h1 {
    margin: 10px 0;
}

.error-page p {
    margin: 0 0 24px;
    color: var(--muted);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .nav-toggle {
        display: inline-flex;
    }

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

    .site-nav.is-open {
        display: grid;
    }

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

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

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

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

    .channel-editorial {
        grid-template-columns: 1fr 2fr;
    }

    .channel-editorial .button {
        grid-column: 1 / -1;
    }
}

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

    .site-header {
        padding: 10px 12px;
    }

    .brand-mark {
        width: 140px;
        height: auto;
    }

    .site-nav {
        right: 12px;
        left: 12px;
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero h1 {
        font-size: 62px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-visual,
    .hero-visual > img {
        min-height: 310px;
        height: 310px;
    }

    .search-box button span:last-child {
        display: none;
    }

    .section {
        margin-top: 66px;
    }

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

    .category-grid,
    .comic-grid,
    .channel-grid,
    .timeline,
    .review-board,
    .completed-grid,
    .guide-steps,
    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-tile {
        min-height: 230px;
        padding: 20px;
    }

    .six-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-section,
    .hanman-stage,
    .paper-section,
    .topic-section,
    .about-section,
    .app-section {
        padding: 28px 20px;
        border-radius: 25px;
    }

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

    .feature-layout,
    .topic-section,
    .about-section,
    .app-section,
    .channel-hero,
    .channel-editorial {
        grid-template-columns: 1fr;
    }

    .feature-cover,
    .feature-cover > img {
        min-height: 420px;
    }

    .hot-list li {
        grid-template-columns: auto 1fr;
    }

    .hot-list .heat {
        grid-column: 2;
    }

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

    .portrait-card:last-child {
        grid-column: 1 / -1;
    }

    .review-row {
        padding: 18px;
        grid-template-columns: 68px 1fr;
        gap: 14px;
    }

    .review-score {
        width: 68px;
        height: 68px;
    }

    .completed-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ranking-row {
        grid-template-columns: 48px 1fr auto;
    }

    .ranking-row span:nth-child(3) {
        display: none;
    }

    .about-mark {
        width: min(260px, 100%);
        margin: 0 auto;
    }

    .qr-wrap {
        width: 100%;
    }

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

    .channel-hero {
        padding: 28px 22px;
        align-items: start;
    }

    .channel-note {
        min-width: 0;
    }

    .reader-header {
        padding: 32px 18px;
    }

    .reader-meta {
        flex-direction: column;
        gap: 4px;
    }

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

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

    .back-button {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (max-width: 480px) {
    .nav-link {
        justify-content: flex-start;
    }

    .category-grid,
    .review-board,
    .completed-grid,
    .guide-steps {
        grid-template-columns: 1fr;
    }

    .comic-grid,
    .channel-grid,
    .six-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .card-body {
        padding: 13px;
    }

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

    .card-body p {
        display: none;
    }

    .card-meta {
        flex-direction: column;
    }

    .portrait-card h3 {
        font-size: 14px;
    }

    .ranking-row {
        padding: 14px;
        font-size: 14px;
    }

    .chapter-button {
        font-size: 13px;
    }
}
