:root {
    --ink: #172033;
    --muted: #687087;
    --paper: #f7f8fc;
    --surface: #ffffff;
    --line: #e7e9f2;
    --brand: #ff4f72;
    --brand-dark: #e6385d;
    --navy: #17233f;
    --violet: #7455f3;
    --shadow: 0 18px 50px rgba(27, 36, 69, 0.10);
    --soft-shadow: 0 10px 28px rgba(27, 36, 69, 0.07);
    --radius-lg: 28px;
    --radius-md: 18px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    position: fixed;
    z-index: -1;
    top: -180px;
    right: -160px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 79, 114, 0.12), transparent 70%);
    content: "";
}

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

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

button,
input {
    font: inherit;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--navy);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.section-shell,
.header-inner,
.footer-inner {
    width: min(calc(100% - 40px), var(--max-width));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(231, 233, 242, 0.9);
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 190px;
    height: auto;
}

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

.nav-link {
    display: flex;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 12px;
    align-items: center;
    gap: 5px;
    color: #4f586e;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-current="page"] {
    color: var(--brand-dark);
    background: #fff0f3;
}

.nav-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.menu-toggle {
    display: none;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #ffffff;
    cursor: pointer;
}

.hero {
    position: relative;
    display: grid;
    min-height: 620px;
    margin-top: 46px;
    padding: 66px 72px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
    overflow: hidden;
    border-radius: 36px;
    background: linear-gradient(135deg, #fff2f5 0%, #ffffff 48%, #edf1ff 100%);
    box-shadow: var(--shadow);
}

.hero::after {
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(116, 85, 243, 0.18);
    border-radius: 50%;
    content: "";
}

.hero-copy,
.hero-art {
    position: relative;
    z-index: 1;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-label {
    padding: 7px 13px;
    border: 1px solid #ffd0da;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.hero h1 {
    margin: 16px 0 18px;
    font-size: clamp(52px, 7vw, 82px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.hero h1 a {
    background: linear-gradient(90deg, var(--ink), var(--violet) 65%, var(--brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 11px 20px;
    border: 0;
    border-radius: 13px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #ff795e);
    box-shadow: 0 12px 24px rgba(255, 79, 114, 0.25);
}

.button-secondary {
    border: 1px solid var(--line);
    color: var(--ink);
    background: #ffffff;
}

.button-dark {
    color: #ffffff;
    background: var(--navy);
}

.button-light {
    color: var(--navy);
    background: #ffffff;
}

.hero-stats {
    display: flex;
    margin-top: 38px;
    gap: 28px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 24px;
    line-height: 1.2;
}

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

.hero-art {
    min-height: 450px;
}

.hero-poster {
    position: absolute;
    overflow: hidden;
    border: 8px solid #ffffff;
    border-radius: 28px;
    background: #dfe3f4;
    box-shadow: var(--shadow);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster-main {
    top: 0;
    right: 0;
    width: 69%;
    aspect-ratio: 4 / 5;
    transform: rotate(3deg);
}

.hero-poster-small {
    bottom: 0;
    left: 0;
    width: 43%;
    aspect-ratio: 4 / 5;
    transform: rotate(-7deg);
}

.floating-note {
    position: absolute;
    z-index: 3;
    right: -14px;
    bottom: 28px;
    display: flex;
    padding: 12px 17px;
    border-radius: 14px;
    flex-direction: column;
    color: #ffffff;
    background: var(--navy);
    box-shadow: var(--soft-shadow);
}

.floating-note strong {
    color: #ffd469;
    font-size: 12px;
}

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

.section-heading {
    display: grid;
    margin-bottom: 34px;
    grid-template-columns: 1fr minmax(280px, 500px);
    align-items: end;
    gap: 40px;
}

.section-heading h2,
.ranking-intro h2,
.spotlight-copy h2,
.discovery-main h2,
.bookshelf-copy h2,
.about-copy h2,
.app-copy h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

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

.section-heading h2 a:hover {
    color: var(--brand-dark);
}

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

.category-card {
    grid-column: span 2;
    min-height: 230px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    transition: 0.25s ease;
}

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

.category-grid .category-card:nth-last-child(3) {
    grid-column: 2 / span 2;
}

.category-grid .category-card:nth-last-child(2) {
    grid-column: 4 / span 2;
}

.category-grid .category-card:last-child {
    grid-column: 6 / span 2;
}

.category-icon,
.page-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-size: 24px;
    background: var(--navy);
}

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

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

.category-arrow {
    display: block;
    margin-top: 17px;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
}

.category-pink .category-icon {
    background: #ff6c91;
}

.category-green .category-icon {
    background: #2da98c;
}

.category-violet .category-icon {
    background: #7455f3;
}

.category-orange .category-icon {
    background: #f78d43;
}

.category-blue .category-icon {
    background: #4c7df0;
}

.category-red .category-icon {
    background: #e94862;
}

.category-cyan .category-icon {
    background: #219ebc;
}

.comic-grid {
    display: grid;
    gap: 22px;
}

.four-column {
    grid-template-columns: repeat(4, 1fr);
}

.five-column {
    grid-template-columns: repeat(5, 1fr);
}

.comic-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    transition: 0.25s ease;
}

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

.comic-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #e8e9f2;
}

.comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.status-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(23, 32, 51, 0.86);
    font-size: 12px;
    font-weight: 800;
}

.comic-card-body {
    padding: 20px;
}

.card-category {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.comic-card h3 {
    margin: 4px 0 7px;
    font-size: 19px;
    line-height: 1.4;
}

.comic-card h3 a:hover {
    color: var(--brand-dark);
}

.comic-card p {
    display: -webkit-box;
    min-height: 67px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-meta {
    display: flex;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    justify-content: space-between;
    color: #7a8194;
    font-size: 12px;
}

.ranking-section {
    display: grid;
    padding: 48px;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 68px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: var(--navy);
}

.ranking-intro p {
    color: #b7bfd1;
}

.text-link {
    color: #ffd469;
    font-weight: 800;
}

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

.ranking-list li {
    display: grid;
    padding: 16px 0;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.rank-number {
    color: #ffd469;
    font-size: 26px;
    font-weight: 900;
    font-style: italic;
}

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

.ranking-list a span {
    color: #9fa9bf;
    font-size: 13px;
}

.ranking-list em {
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffd5de;
    background: rgba(255, 79, 114, 0.16);
    font-size: 12px;
    font-style: normal;
}

.spotlight-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff0f3;
}

.spotlight-cover {
    min-height: 520px;
}

.spotlight-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-copy {
    padding: 64px;
    align-self: center;
}

.spotlight-copy p {
    color: #5f6474;
}

.spotlight-data {
    display: grid;
    margin: 28px 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.spotlight-data div {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
}

.spotlight-data dt {
    color: var(--muted);
    font-size: 12px;
}

.spotlight-data dd {
    margin: 0;
    font-weight: 800;
}

.update-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 52px;
}

.calendar-card {
    display: flex;
    min-height: 270px;
    border-radius: var(--radius-lg);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #ffffff;
    background: linear-gradient(155deg, var(--violet), #4b3aba);
    box-shadow: var(--shadow);
}

.calendar-card span {
    letter-spacing: 0.3em;
}

.calendar-card strong {
    font-size: 92px;
    line-height: 1.1;
}

.calendar-card em {
    color: #dcd7ff;
    font-style: normal;
}

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

.update-timeline li {
    display: grid;
    min-height: 54px;
    grid-template-columns: 52px 18px 1fr;
    gap: 14px;
}

.update-timeline time {
    color: var(--muted);
    font-size: 13px;
}

.timeline-dot {
    position: relative;
    width: 12px;
    height: 12px;
    margin-top: 8px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 1px #f7a7b8;
}

.timeline-dot::after {
    position: absolute;
    top: 13px;
    left: 2px;
    width: 1px;
    height: 36px;
    background: var(--line);
    content: "";
}

.update-timeline li:last-child .timeline-dot::after {
    display: none;
}

.update-timeline div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.update-timeline div span {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.update-timeline a {
    font-weight: 700;
}

.discovery-section {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 16px;
}

.discovery-main,
.mood-card {
    min-height: 230px;
    padding: 28px;
    border-radius: var(--radius-md);
}

.discovery-main {
    color: #ffffff;
    background: var(--navy);
}

.discovery-main p {
    margin-bottom: 0;
    color: #b7bfd1;
}

.mood-card {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    transition: 0.2s ease;
}

.mood-card:hover {
    transform: translateY(-5px);
}

.mood-card > span {
    font-size: 38px;
}

.mood-card strong {
    font-size: 20px;
}

.mood-card small {
    font-size: 13px;
}

.mood-soft {
    background: #ffe7ee;
}

.mood-bright {
    background: #fff0b8;
}

.mood-bold {
    color: #ffffff;
    background: #754df1;
}

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

.feature-grid article {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.feature-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    color: var(--violet);
    background: #efebff;
    font-size: 24px;
}

.feature-grid h3 {
    margin: 20px 0 8px;
}

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

.bookshelf-section {
    display: grid;
    min-height: 450px;
    padding: 58px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #e8f7f3, #f3fbf9);
}

.bookshelf-copy p {
    color: #566b67;
}

.save-message,
.subscribe-status {
    min-height: 28px;
    margin: 12px 0 0;
    font-weight: 700;
}

.shelf-stack {
    position: relative;
    min-height: 330px;
}

.shelf-stack a {
    position: absolute;
    top: 10px;
    left: 28%;
    width: 38%;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 6px solid #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.shelf-stack a:first-child {
    left: 4%;
    transform: rotate(-10deg);
}

.shelf-stack a:last-child {
    left: 53%;
    transform: rotate(10deg);
}

.shelf-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-section {
    display: grid;
    padding: 58px;
    grid-template-columns: 190px 1fr;
    gap: 54px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.about-mark {
    display: grid;
    width: 180px;
    height: 180px;
    place-items: center;
    border-radius: 48px 16px 48px 16px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--brand), var(--violet));
    box-shadow: 18px 18px 0 #fff0f3;
}

.about-mark span {
    font-family: serif;
    font-size: 88px;
    font-weight: 900;
}

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

.about-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-points span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #287b69;
    background: #e8f7f3;
    font-size: 13px;
    font-weight: 800;
}

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

.faq-list details {
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.faq-list summary {
    font-weight: 800;
    cursor: pointer;
}

.faq-list p {
    margin-bottom: 0;
    color: var(--muted);
}

.app-section {
    display: grid;
    margin-bottom: 94px;
    padding: 58px 70px;
    grid-template-columns: 1fr 220px;
    align-items: center;
    gap: 60px;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(125deg, #17233f, #392b76);
    box-shadow: var(--shadow);
}

.eyebrow.light {
    color: #ffc5d1;
}

.app-copy p {
    max-width: 670px;
    color: #c5cad8;
}

.qr-card {
    padding: 17px;
    border-radius: 18px;
    color: var(--ink);
    background: #ffffff;
    text-align: center;
}

.qr-pattern {
    display: grid;
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    padding: 12px;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    border: 4px solid var(--navy);
}

.qr-pattern span {
    background: var(--navy);
}

.qr-pattern span:nth-child(2),
.qr-pattern span:nth-child(4),
.qr-pattern span:nth-child(8) {
    border: 7px solid var(--brand);
    background: #ffffff;
}

.qr-card strong,
.qr-card small {
    display: block;
}

.qr-card small {
    color: var(--muted);
}

.site-footer {
    padding: 54px 0 28px;
    color: #d5d9e5;
    background: #10182b;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 28px;
}

.footer-brand img {
    margin-bottom: 12px;
}

.footer-brand p {
    max-width: 500px;
    margin: 0;
    color: #8f98ad;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-weight: 700;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    margin: 30px 0 0;
    padding-top: 22px;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #737d93;
    font-size: 13px;
}

.back-top {
    position: fixed;
    z-index: 50;
    right: 24px;
    bottom: 24px;
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: var(--navy);
    box-shadow: var(--soft-shadow);
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

.page-hero {
    display: grid;
    min-height: 340px;
    margin-top: 46px;
    padding: 50px 58px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, #eef1ff);
    box-shadow: var(--soft-shadow);
}

.page-hero-blue {
    background: linear-gradient(135deg, #edf4ff, #ffffff);
}

.page-hero-red,
.page-hero-pink {
    background: linear-gradient(135deg, #fff0f3, #ffffff);
}

.page-hero-green {
    background: linear-gradient(135deg, #e9f8f3, #ffffff);
}

.page-hero-violet {
    background: linear-gradient(135deg, #efebff, #ffffff);
}

.page-hero-orange {
    background: linear-gradient(135deg, #fff1e6, #ffffff);
}

.page-hero-cyan {
    background: linear-gradient(135deg, #e7f7fb, #ffffff);
}

.breadcrumb {
    display: flex;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}

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

.page-hero h1 {
    margin: 18px 0 8px;
    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.1;
}

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

.page-hero-meta {
    display: flex;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
}

.page-hero-meta strong {
    font-size: 48px;
    line-height: 1.1;
}

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

.filter-bar {
    display: flex;
    margin-bottom: 28px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    align-items: center;
    gap: 16px;
    background: #ffffff;
}

.filter-bar label {
    font-weight: 800;
}

.search-box {
    display: flex;
    min-width: 260px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    align-items: center;
    gap: 8px;
    background: var(--paper);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.result-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
}

.empty-result {
    padding: 30px;
    border-radius: var(--radius-md);
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.column-note {
    display: grid;
    margin-bottom: 90px;
    padding: 36px;
    grid-template-columns: 62px 1fr auto;
    align-items: center;
    gap: 24px;
    border-radius: var(--radius-md);
    background: #eef1ff;
}

.note-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    background: var(--violet);
    font-size: 25px;
}

.column-note h2 {
    margin: 0 0 4px;
    font-size: 23px;
}

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

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

.reader-article {
    margin-top: 46px;
}

.reader-breadcrumb {
    margin-bottom: 24px;
}

.reader-header {
    position: relative;
    padding: 44px 48px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    text-align: center;
}

.reader-category {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #fff0f3;
    font-size: 13px;
    font-weight: 800;
}

.reader-header h1 {
    margin: 15px 0 12px;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.25;
}

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

.favorite-button {
    margin-top: 22px;
    padding: 9px 16px;
    border: 1px solid #ffd0da;
    border-radius: 12px;
    color: var(--brand-dark);
    background: #fff7f9;
    font-weight: 800;
    cursor: pointer;
}

.favorite-button.is-saved {
    color: #ffffff;
    background: var(--brand);
}

.reading-note {
    display: flex;
    max-width: 920px;
    margin: 34px auto;
    padding: 22px 26px;
    border: 1px solid #dce1f9;
    border-radius: 16px;
    align-items: flex-start;
    gap: 15px;
    background: #f0f3ff;
}

.reading-note > span {
    color: var(--violet);
    font-size: 24px;
}

.reading-note h2 {
    margin: 0;
    font-size: 18px;
}

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

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

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

.chapter-lead {
    max-width: 680px;
    margin: 0 auto 34px;
    color: var(--muted);
    text-align: center;
}

.reader-panel {
    margin: 0 0 34px;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.reader-panel figcaption {
    padding: 12px 18px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.chapter-end {
    max-width: 900px;
    margin: 54px auto;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    text-align: center;
}

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

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

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

.chapter-navigation {
    display: grid;
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.chapter-link {
    display: flex;
    min-height: 82px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    flex-direction: column;
    background: #ffffff;
}

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

.chapter-link.align-right {
    align-items: flex-end;
    text-align: right;
}

.chapter-link.is-disabled {
    opacity: 0.55;
}

.back-column {
    display: flex;
    padding: 12px 16px;
    border-radius: 12px;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: var(--navy);
    font-weight: 800;
}

@media (max-width: 1100px) {
    .header-inner {
        gap: 12px;
    }

    .brand img {
        width: 155px;
    }

    .nav-link {
        padding: 8px 7px;
        font-size: 12px;
    }

    .nav-icon {
        display: none;
    }

    .hero {
        padding: 50px;
        gap: 38px;
    }

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

    .five-column .comic-card:nth-last-child(-n + 2) {
        grid-column: span 1;
    }

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

    .discovery-main {
        grid-column: 1 / -1;
        min-height: 170px;
    }
}

@media (max-width: 820px) {
    .section-shell,
    .header-inner,
    .footer-inner {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .header-inner {
        min-height: 72px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        right: 14px;
        left: 14px;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .site-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .nav-icon {
        display: grid;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        margin-top: 30px;
        padding: 42px 30px;
        grid-template-columns: 1fr;
    }

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

    .section-heading {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .category-grid .category-card,
    .category-grid .category-card:nth-last-child(3),
    .category-grid .category-card:nth-last-child(2),
    .category-grid .category-card:last-child {
        grid-column: auto;
    }

    .category-grid .category-card:last-child {
        width: calc(50% - 9px);
        justify-self: center;
        grid-column: 1 / -1;
    }

    .ranking-section,
    .spotlight-section,
    .bookshelf-section,
    .about-section {
        grid-template-columns: 1fr;
    }

    .spotlight-cover {
        min-height: 420px;
    }

    .update-layout {
        grid-template-columns: 180px 1fr;
        gap: 28px;
    }

    .calendar-card {
        min-height: 230px;
    }

    .calendar-card strong {
        font-size: 70px;
    }

    .shelf-stack {
        min-height: 290px;
    }

    .about-mark {
        width: 150px;
        height: 150px;
    }

    .app-section {
        padding: 48px;
        grid-template-columns: 1fr 190px;
        gap: 30px;
    }

    .page-hero {
        margin-top: 30px;
        padding: 38px;
    }

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

    .five-column .comic-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 11px);
        justify-self: center;
    }

    .column-note {
        grid-template-columns: 62px 1fr;
    }

    .column-note .button {
        grid-column: 2;
        justify-self: start;
    }

    .reader-header {
        padding: 36px 24px;
    }

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

    .back-column {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

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

    .hero {
        padding: 34px 22px;
        border-radius: 24px;
    }

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

    .hero-copy > p {
        font-size: 16px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .hero-stats {
        justify-content: space-between;
        gap: 10px;
    }

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

    .category-grid,
    .four-column,
    .five-column,
    .feature-grid,
    .faq-list,
    .discovery-section {
        grid-template-columns: 1fr;
    }

    .category-grid .category-card:last-child,
    .five-column .comic-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .comic-card {
        display: grid;
        grid-template-columns: 42% 58%;
    }

    .comic-cover {
        height: 100%;
        min-height: 260px;
    }

    .comic-card-body {
        padding: 16px;
    }

    .comic-card h3 {
        font-size: 17px;
    }

    .ranking-section,
    .spotlight-copy,
    .bookshelf-section,
    .about-section,
    .app-section {
        padding: 30px 22px;
    }

    .ranking-list li {
        grid-template-columns: 38px 1fr;
    }

    .ranking-list em {
        display: none;
    }

    .spotlight-cover {
        min-height: 330px;
    }

    .spotlight-data {
        grid-template-columns: 1fr;
    }

    .update-layout {
        grid-template-columns: 1fr;
    }

    .calendar-card {
        min-height: 180px;
    }

    .update-timeline div {
        flex-direction: column;
        gap: 0;
    }

    .mood-card {
        min-height: 170px;
    }

    .shelf-stack {
        min-height: 230px;
    }

    .about-mark {
        margin: 0 auto;
    }

    .app-section {
        margin-bottom: 70px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .qr-card {
        width: 188px;
        margin: 0 auto;
    }

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

    .page-hero {
        padding: 30px 22px;
        grid-template-columns: 1fr;
    }

    .page-hero-meta {
        display: none;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        min-width: 0;
    }

    .result-count {
        margin-left: 0;
    }

    .column-note {
        padding: 26px 20px;
        grid-template-columns: 1fr;
    }

    .column-note .button {
        grid-column: auto;
    }

    .reader-panel {
        margin-bottom: 22px;
        border-radius: 10px;
    }

    .reading-note {
        padding: 18px;
    }

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

    .chapter-link,
    .chapter-link.align-right {
        align-items: center;
        text-align: center;
    }

    .back-column {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        justify-content: center;
    }
}
