:root {
    --ink: #09141f;
    --ink-soft: #132333;
    --paper: #f5f7f4;
    --white: #ffffff;
    --muted: #637080;
    --line: #dce3df;
    --mint: #48e6b1;
    --mint-dark: #12a77a;
    --coral: #ff6b6b;
    --yellow: #ffd166;
    --shadow: 0 20px 60px rgba(9, 20, 31, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button {
    font: inherit;
}

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

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 100;
    padding: 10px 18px;
    color: var(--ink);
    background: var(--mint);
    border-radius: 10px;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(220, 227, 223, 0.9);
    background: rgba(245, 247, 244, 0.94);
    backdrop-filter: blur(16px);
}

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

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

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--ink);
    background: var(--mint);
    border: 2px solid var(--ink);
    border-radius: 14px 6px 14px 6px;
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 22px;
    font-weight: 900;
}

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

.brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.12em;
}

.brand-copy small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

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

.main-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #44515e;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(9, 20, 31, 0.08);
}

.main-nav a.is-active {
    box-shadow: inset 0 -3px 0 var(--mint), 0 8px 24px rgba(9, 20, 31, 0.08);
}

.ui-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.ui-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-toggle {
    display: none;
    padding: 9px 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    min-height: 580px;
    margin-top: 48px;
    padding: 72px;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
    border-radius: 36px;
    box-shadow: var(--shadow);
}

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

.hero-kicker,
.eyebrow {
    display: inline-block;
    color: var(--mint-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--mint);
}

.hero h1 {
    max-width: 620px;
    margin: 18px 0 22px;
    font-size: clamp(48px, 7vw, 86px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero h1 a {
    background: linear-gradient(120deg, var(--white) 28%, var(--mint) 72%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy > p {
    max-width: 590px;
    margin: 0;
    color: #b9c5cc;
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    color: var(--ink);
    background: var(--mint);
}

.button-ghost {
    color: inherit;
    background: transparent;
    border-color: currentColor;
}

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

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 52px;
}

.hero-stats div {
    display: grid;
}

.hero-stats strong {
    color: var(--white);
    font-size: 18px;
}

.hero-stats span {
    color: #7f909c;
    font-size: 13px;
}

.hero-art {
    position: relative;
    min-height: 430px;
}

.hero-art::before {
    position: absolute;
    width: 390px;
    height: 390px;
    right: -80px;
    top: -60px;
    background: var(--coral);
    border-radius: 50%;
    content: "";
}

.hero-cover {
    position: absolute;
    right: 20px;
    top: 0;
    width: min(330px, 78%);
    overflow: hidden;
    border: 8px solid var(--white);
    border-radius: 28px;
    box-shadow: 22px 26px 0 rgba(72, 230, 177, 0.9);
    transform: rotate(4deg);
}

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

.hero-cover > span {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 12px;
    color: var(--ink);
    background: var(--yellow);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.hero-note {
    position: absolute;
    right: 245px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    width: 230px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    color: var(--ink);
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero-note .ui-icon {
    width: 36px;
    height: 36px;
    padding: 8px;
    background: #dff9ef;
    border-radius: 10px;
}

.hero-note div {
    display: grid;
}

.hero-note small {
    color: var(--muted);
}

.signal-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding: 17px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.signal-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--coral);
    font-weight: 900;
}

.signal-bar p {
    margin: 0;
    color: var(--muted);
}

.signal-bar > a,
.text-link {
    color: var(--mint-dark);
    font-weight: 900;
}

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

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

.section-heading h2,
.ranking-intro h2,
.feature-copy h2,
.mood-inner h2,
.about-title h2,
.app-copy h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

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

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

.spotlight-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(9, 20, 31, 0.06);
}

.spotlight-image {
    position: relative;
    display: block;
    overflow: hidden;
}

.spotlight-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.spotlight-card:hover img,
.catalog-card:hover img {
    transform: scale(1.04);
}

.spotlight-number {
    position: absolute;
    right: 16px;
    bottom: -8px;
    color: var(--white);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.38);
}

.spotlight-body {
    padding: 24px;
}

.tag {
    display: inline-flex;
    padding: 4px 10px;
    color: #087455;
    background: #dbf8ed;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.spotlight-body h3,
.catalog-body h2 {
    margin: 12px 0 8px;
    font-size: 22px;
    line-height: 1.3;
}

.spotlight-body p,
.catalog-body p {
    margin: 0;
    color: var(--muted);
}

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

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

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

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

.update-row {
    display: grid;
    grid-template-columns: 48px 58px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid #263745;
}

.update-time,
.update-copy span {
    color: #7e919d;
    font-size: 13px;
}

.update-thumb {
    overflow: hidden;
    border-radius: 12px;
}

.update-thumb img {
    width: 58px;
    height: 58px;
    object-fit: cover;
}

.update-copy h3 {
    margin: 3px 0 0;
    font-size: 17px;
}

.update-row > strong {
    color: var(--mint);
    font-size: 14px;
}

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

.category-card {
    position: relative;
    min-height: 258px;
    padding: 26px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: 0.25s ease;
}

.category-card::after {
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 110px;
    height: 110px;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 50%;
    content: "";
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: 0 18px 48px rgba(9, 20, 31, 0.1);
    transform: translateY(-4px);
}

.category-card > .ui-icon {
    width: 46px;
    height: 46px;
    padding: 11px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, white);
    border-radius: 14px;
}

.category-count {
    position: absolute;
    top: 26px;
    right: 26px;
    color: #b4bec4;
    font-weight: 900;
}

.category-card h3 {
    margin: 24px 0 8px;
    font-size: 22px;
}

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

.category-arrow {
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
}

.ranking-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 72px;
    align-items: start;
}

.ranking-intro {
    position: sticky;
    top: 120px;
}

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

.ranking-tabs {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.ranking-tabs button {
    padding: 8px 14px;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.ranking-tabs button[aria-selected="true"] {
    color: var(--ink);
    background: var(--mint);
    border-color: var(--mint);
}

.ranking-list {
    display: grid;
}

.ranking-list > a {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px 8px;
    border-bottom: 1px solid var(--line);
}

.rank-number {
    color: var(--coral);
    font-size: 30px;
    font-weight: 900;
}

.rank-name {
    display: grid;
}

.rank-name strong {
    font-size: 18px;
}

.rank-name small {
    color: var(--muted);
}

.rank-rise {
    color: var(--mint-dark);
    font-weight: 900;
}

.editor-feature {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
    background: var(--yellow);
    border-radius: 30px;
}

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

.feature-copy {
    align-self: center;
    padding: 56px;
}

.feature-copy .eyebrow {
    color: #8f5c00;
}

.feature-copy p {
    margin: 20px 0 30px;
}

.completed-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.completed-strip article {
    min-height: 180px;
    padding: 26px 20px;
    border-right: 1px solid var(--line);
}

.completed-strip article:last-child {
    border-right: 0;
}

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

.completed-strip h3 {
    margin: 30px 0 6px;
    font-size: 18px;
}

.completed-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.mood-section {
    padding: 82px 0;
    background: #dff9ef;
}

.mood-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.mood-inner p {
    color: var(--muted);
}

.mood-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mood-controls button {
    padding: 13px 18px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #a8dfcc;
    border-radius: 14px;
    cursor: pointer;
}

.mood-controls button.is-active {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.mood-result {
    grid-column: 2;
    display: grid;
    padding: 24px;
    background: var(--white);
    border-left: 5px solid var(--coral);
    border-radius: 6px 18px 18px 6px;
}

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

.reading-path ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    list-style: none;
}

.reading-path li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding-top: 24px;
    border-top: 3px solid var(--ink);
}

.reading-path li > span {
    color: var(--coral);
    font-weight: 900;
}

.reading-path h3 {
    margin: 0 0 8px;
}

.reading-path p {
    margin: 0;
    color: var(--muted);
}

.shelf-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 52px;
    color: var(--white);
    background: linear-gradient(135deg, #111f2c, #17384a);
    border-radius: 28px;
}

.shelf-card > div:first-child {
    max-width: 720px;
}

.shelf-card .ui-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    color: var(--ink);
    background: var(--mint);
    border-radius: 14px;
}

.shelf-card .eyebrow {
    margin-left: 10px;
    color: var(--mint);
    vertical-align: middle;
}

.shelf-card h2 {
    margin: 16px 0 10px;
    font-size: 34px;
}

.shelf-card p {
    margin: 0;
    color: #aab7bf;
}

.shelf-demo {
    display: grid;
    min-width: 150px;
    text-align: center;
}

.shelf-demo span,
.shelf-demo small {
    color: #95a6b0;
}

.shelf-demo strong {
    color: var(--mint);
    font-size: 64px;
    line-height: 1.1;
}

.about-section {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 72px;
    padding-top: 70px;
    border-top: 1px solid var(--line);
}

.about-copy {
    columns: 2;
    column-gap: 34px;
}

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

.about-copy p + p {
    margin-top: 18px;
}

.app-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 70px;
    align-items: center;
    padding: 64px 72px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.app-copy p {
    max-width: 700px;
    color: var(--muted);
}

.app-copy small {
    display: block;
    margin-top: 14px;
    color: var(--muted);
}

.qr-graphic {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 24px;
    color: var(--white);
    background: var(--ink);
    border-radius: 24px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(5, 22px);
    gap: 4px;
    padding: 15px;
    background: var(--white);
    border-radius: 14px;
}

.qr-grid span {
    width: 22px;
    height: 22px;
    background: #e6ece9;
    border-radius: 4px;
}

.qr-grid span.filled {
    background: var(--ink);
}

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

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

.category-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
    padding: 52px;
    background: var(--white);
    border-top: 8px solid var(--accent);
    border-radius: 28px;
}

.category-hero-icon {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    color: var(--white);
    background: var(--accent);
    border-radius: 24px;
}

.category-hero-icon .ui-icon {
    width: 42px;
    height: 42px;
}

.category-hero h1 {
    margin: 8px 0 8px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

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

.category-hero-stat {
    display: grid;
    min-width: 110px;
    text-align: center;
}

.category-hero-stat strong {
    color: var(--accent);
    font-size: 46px;
    line-height: 1;
}

.category-hero-stat span {
    color: var(--muted);
    font-size: 13px;
}

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

.catalog-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
}

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

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

.catalog-cover span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    color: var(--white);
    background: rgba(9, 20, 31, 0.82);
    border-radius: 8px;
    font-size: 12px;
}

.catalog-body {
    padding: 18px;
}

.catalog-body h2 {
    font-size: 18px;
}

.catalog-body p {
    font-size: 14px;
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.category-seo {
    margin-top: 0;
    margin-bottom: 96px;
    padding: 36px 40px;
    background: #e9efec;
    border-radius: 22px;
}

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

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

.reader-main {
    padding-bottom: 96px;
}

.reader {
    max-width: 960px;
}

.reader-header {
    margin-top: 24px;
    padding: 54px;
    text-align: center;
    background: var(--white);
    border-radius: 28px;
}

.reader-header h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15;
}

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

.reader-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reader-summary {
    max-width: 720px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 18px;
}

.reading-note {
    margin-top: 30px;
    padding: 20px 22px;
    text-align: left;
    background: #ecf7f3;
    border-left: 4px solid var(--mint-dark);
    border-radius: 5px 14px 14px 5px;
}

.reading-note p {
    margin: 5px 0 0;
    color: var(--muted);
}

.reader-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.comic-panels {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.comic-panels figure {
    margin: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(9, 20, 31, 0.08);
}

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

.comic-panels figcaption {
    padding: 14px 18px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

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

.chapter-end > span {
    color: var(--mint);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

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

.chapter-end > p {
    color: #a6b4bc;
}

.chapter-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 30px;
    text-align: left;
}

.chapter-nav a {
    display: grid;
    padding: 18px;
    background: var(--ink-soft);
    border: 1px solid #2a3b49;
    border-radius: 14px;
}

.chapter-nav a:last-child {
    text-align: right;
}

.chapter-nav span {
    color: var(--mint);
    font-size: 13px;
}

.site-footer {
    padding-top: 64px;
    color: #b0bdc5;
    background: #071019;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 70px;
}

.footer-brand strong {
    color: var(--white);
}

.site-footer h2 {
    margin-top: 0;
    color: var(--white);
    font-size: 16px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.copyright {
    margin-top: 50px;
    padding: 22px 0;
    border-top: 1px solid #1d2a35;
    font-size: 13px;
}

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

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav.is-collapsed {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr 0.8fr;
        padding: 52px;
    }

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

    .catalog-card:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 220px 1fr;
    }

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

    .completed-strip article:nth-child(3) {
        border-right: 0;
    }

    .completed-strip article:nth-child(n + 4) {
        border-top: 1px solid var(--line);
    }
}

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

    .header-inner {
        gap: 12px;
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 28px;
        padding: 36px 24px;
        border-radius: 24px;
    }

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

    .hero-art {
        min-height: 390px;
        margin-top: 46px;
    }

    .hero-cover {
        right: 24px;
        width: 250px;
    }

    .hero-note {
        right: auto;
        left: 0;
        bottom: 0;
    }

    .signal-bar {
        grid-template-columns: 1fr auto;
    }

    .signal-bar p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

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

    .section-heading {
        display: grid;
        gap: 14px;
    }

    .spotlight-grid,
    .update-list,
    .ranking-section,
    .editor-feature,
    .mood-inner,
    .reading-path ol,
    .about-section,
    .app-section,
    .footer-grid,
    .chapter-nav {
        grid-template-columns: 1fr;
    }

    .section-ink {
        padding: 64px 0;
    }

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

    .category-card {
        min-height: 245px;
        padding: 20px;
    }

    .category-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .ranking-intro {
        position: static;
    }

    .feature-image img {
        min-height: 340px;
    }

    .feature-copy {
        padding: 34px 24px;
    }

    .completed-strip {
        grid-template-columns: 1fr;
    }

    .completed-strip article,
    .completed-strip article:nth-child(3) {
        border-right: 0;
        border-top: 1px solid var(--line);
    }

    .completed-strip article:first-child {
        border-top: 0;
    }

    .mood-result {
        grid-column: 1;
    }

    .shelf-card {
        display: grid;
        padding: 34px 24px;
    }

    .shelf-demo {
        justify-self: start;
        text-align: left;
    }

    .about-copy {
        columns: 1;
    }

    .app-section {
        gap: 36px;
        padding: 40px 24px;
    }

    .qr-graphic {
        width: 100%;
    }

    .category-hero {
        grid-template-columns: auto 1fr;
        padding: 32px 24px;
    }

    .category-hero-stat {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .catalog-card:last-child {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

    .reader-header,
    .chapter-end {
        padding: 34px 20px;
    }

    .comic-panels {
        gap: 20px;
    }

    .chapter-nav a:last-child {
        text-align: left;
    }
}

@media (max-width: 460px) {
    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .nav-toggle {
        padding: 7px 10px;
        font-size: 14px;
    }

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

    .hero-stats {
        gap: 16px;
    }

    .category-card {
        min-height: 220px;
        padding: 16px;
    }

    .category-card > .ui-icon {
        width: 40px;
        height: 40px;
    }

    .category-card h3 {
        margin-top: 18px;
        font-size: 18px;
    }

    .category-card p {
        font-size: 13px;
    }

    .category-count {
        top: 18px;
        right: 18px;
    }

    .catalog-body {
        padding: 14px;
    }

    .catalog-body h2 {
        font-size: 16px;
    }

    .catalog-body p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 13px;
    }

    .catalog-meta {
        display: grid;
    }

    .update-row {
        grid-template-columns: 42px 50px 1fr;
    }

    .update-row > strong {
        grid-column: 3;
    }
}
