/* 抖漫动漫官网 · 响应式阅读平台 */
:root {
    --ink: #25223a;
    --muted: #77738a;
    --paper: #fffdfb;
    --violet: #7656ea;
    --pink: #ff7c9f;
    --line: #eee9f5;
    --soft: #f6f3ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif; line-height: 1.7; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.shell { width: min(1200px, calc(100% - 40px)); margin-right: auto; margin-left: auto; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 251, .93); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }

.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; flex-shrink: 0; gap: 9px; font-weight: 800; }

.brand-mark { display: grid; width: 36px; height: 36px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--pink)); border-radius: 12px; place-items: center; }

.brand-name { font-size: 18px; letter-spacing: .03em; }

.main-nav { margin-left: auto; }

.main-nav ul { display: flex; padding: 0; margin: 0; list-style: none; }

.main-nav li { border-bottom: 3px solid transparent; }

.main-nav li.is-current { color: var(--violet); border-bottom-color: var(--violet); }

.main-nav a { min-height: 76px; display: flex; align-items: center; padding: 0 10px; gap: 5px; font-size: 13px; font-weight: 700; white-space: nowrap; }

.nav-icon { font-size: 16px; }

.menu-toggle { display: none; padding: 8px; margin-left: auto; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 19px; }

.hero { min-height: 478px; display: grid; align-items: center; grid-template-columns: 1.04fr .96fr; gap: 72px; padding-top: 62px; padding-bottom: 42px; }

.badge, .eyebrow { margin: 0 0 9px; color: var(--violet); font-size: 13px; font-weight: 800; letter-spacing: .08em; }

h1, h2, h3, p { margin-top: 0; }

h1 { margin-bottom: 17px; font-size: clamp(35px, 5vw, 58px); letter-spacing: -.05em; line-height: 1.14; }

h2 { margin-bottom: 10px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; line-height: 1.25; }

h3 { margin-bottom: 6px; font-size: 18px; line-height: 1.35; }

.hero-lead { max-width: 560px; margin-bottom: 28px; color: var(--muted); font-size: 17px; }

.hero-art { position: relative; }

.hero-image { width: 100%; height: 360px; object-fit: cover; border-radius: 30px; box-shadow: 20px 24px 0 #eee8ff; }

.hero-note { position: absolute; right: -24px; bottom: 26px; display: flex; align-items: center; padding: 13px 17px; gap: 10px; background: #fff; border-radius: 15px; box-shadow: 0 11px 28px rgba(66, 42, 121, .16); }

.hero-note p { margin: 0; font-size: 13px; line-height: 1.5; }

.hero-note span { color: var(--pink); font-size: 24px; }

.button { display: inline-block; padding: 11px 18px; border: 1px solid var(--violet); border-radius: 10px; font-weight: 800; transition: transform .2s; }

.button:hover { transform: translateY(-2px); }

.primary { color: #fff; background: var(--violet); }

.ghost { color: var(--violet); background: #fff; }

.dark { color: #fff; background: var(--ink); border-color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { margin-top: 86px; }

.reading-strip { display: grid; padding: 23px 32px; background: var(--soft); border-radius: 18px; grid-template-columns: repeat(4, 1fr); }

.reading-strip div { padding-left: 22px; border-left: 1px solid #ddd4fa; }

.reading-strip div:first-child { padding-left: 0; border: 0; }

.reading-strip strong, .reading-strip span { display: block; }

.reading-strip strong { font-size: 22px; }

.reading-strip span { color: var(--muted); font-size: 13px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }

.section-heading p { margin-bottom: 0; color: var(--muted); }

.text-link { color: var(--violet); font-weight: 800; white-space: nowrap; }

.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }

.comic-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 17px; transition: transform .2s, box-shadow .2s; }

.comic-card:hover { box-shadow: 0 14px 28px rgba(52, 37, 93, .1); transform: translateY(-5px); }

.cover-wrap { display: block; overflow: hidden; }

.cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.card-copy { padding: 15px; }

.card-copy .eyebrow { margin-bottom: 4px; font-size: 11px; }

.card-copy p:not(.eyebrow) { min-height: 42px; margin-bottom: 9px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.card-copy .text-link { font-size: 13px; }

.genre-callout { display: grid; padding: 44px; background: linear-gradient(115deg, #f7f2ff, #fff0f4); border-radius: 25px; grid-template-columns: 1fr 1fr; gap: 40px; }

.genre-callout p { color: var(--muted); }

.tag-cloud { display: flex; align-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }

.tag-cloud a { padding: 8px 15px; background: #fff; border-radius: 99px; box-shadow: 0 4px 12px rgba(71, 42, 111, .06); font-weight: 700; }

.category-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }

.category-card { min-height: 174px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: background .2s, transform .2s; }

.category-card:hover { background: var(--soft); transform: translateY(-3px); }

.category-icon { width: 41px; height: 41px; display: grid; margin-bottom: 16px; color: var(--violet); background: #eee8ff; border-radius: 13px; font-size: 21px; place-items: center; }

.category-card p { margin: 0; color: var(--muted); font-size: 13px; }

.spotlight { display: grid; align-items: center; background: var(--ink); border-radius: 26px; color: #fff; grid-template-columns: 1fr 1fr; overflow: hidden; }

.spotlight-image { min-height: 332px; }

.wide-image { width: 100%; height: 100%; min-height: 332px; object-fit: cover; }

.spotlight-copy { padding: 48px; }

.spotlight-copy p:not(.eyebrow) { color: #d7d2e2; }

.horizontal-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.mini-comic { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }

.mini-cover { width: 100%; height: 174px; object-fit: cover; }

.mini-comic div { padding: 12px; }

.mini-comic span { color: var(--pink); font-size: 12px; font-weight: 800; }

.mini-comic h3 { margin-top: 3px; font-size: 16px; }

.mini-comic p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.korean-banner { display: grid; align-items: center; padding: 40px 54px; background: #ffe8ee; border-radius: 25px; grid-template-columns: 1.1fr .9fr; gap: 40px; }

.korean-banner p:not(.eyebrow) { color: #775c68; }

.banner-image { width: 100%; height: 250px; object-fit: cover; border-radius: 16px; }

.ranking-layout { display: grid; grid-template-columns: 1.5fr .5fr; gap: 22px; }

.rank-panel { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }

.rank-row { display: grid; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); grid-template-columns: 50px 1fr auto; gap: 15px; }

.rank-row strong { color: var(--pink); font-size: 19px; }

.rank-row em { color: var(--muted); font-size: 12px; font-style: normal; }

.quote-card { padding: 35px; color: #fff; background: linear-gradient(145deg, var(--violet), #a66bed); border-radius: 20px; }

.quote-card span { font-size: 55px; line-height: .8; }

.quote-card p { font-size: 19px; line-height: 1.7; }

.quote-card small { opacity: .8; }

.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.timeline-grid div { padding: 19px; border-top: 3px solid var(--pink); background: #fff9fb; }

.timeline-grid time { color: var(--pink); font-weight: 800; }

.timeline-grid h3 { margin-top: 9px; }

.timeline-grid p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.about-section { display: grid; align-items: center; padding: 46px; background: #f7f7fb; border-radius: 25px; grid-template-columns: 155px 1fr; gap: 40px; }

.about-symbol { display: grid; width: 130px; height: 130px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--pink)); border-radius: 42px 42px 42px 8px; font-size: 58px; font-weight: 800; place-items: center; }

.about-section p:not(.eyebrow) { margin: 0; color: var(--muted); }

.app-section { display: grid; align-items: center; padding: 52px 82px; margin-bottom: 86px; color: #fff; background: #342c58; border-radius: 25px; grid-template-columns: 1fr auto; gap: 50px; }

.app-copy p:not(.eyebrow) { max-width: 620px; color: #d5cee8; }

.qr-box { display: grid; width: 150px; height: 150px; padding: 18px; background: #fff; border-radius: 18px; color: var(--ink); place-items: center; text-align: center; }

.qr-box span { display: grid; width: 54px; height: 54px; color: #fff; background: var(--violet); border-radius: 12px; font-size: 26px; font-weight: 800; place-items: center; }

.qr-box p { margin: 0; font-size: 12px; line-height: 1.4; }

.site-footer { padding-top: 45px; background: #211c38; color: #bdb6ce; }

.footer-grid { display: grid; padding-bottom: 38px; grid-template-columns: 1.3fr .8fr 1fr; gap: 60px; }

.footer-brand { color: #fff; font-size: 18px; font-weight: 800; }

.footer-title { color: #fff; font-weight: 800; }

.footer-grid a { display: block; margin-bottom: 7px; }

.footer-grid p { font-size: 13px; }

.copyright { padding: 16px; border-top: 1px solid #3c3459; font-size: 12px; text-align: center; }

.inner-page, .reader-page { padding-top: 48px; }

.page-heading { padding: 35px 0 22px; }

.page-heading h1 { margin-top: 11px; margin-bottom: 10px; font-size: 42px; }

.page-heading > p:last-child { max-width: 720px; color: var(--muted); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }

.breadcrumb a { color: var(--violet); }

.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }

.filter-row span { margin-right: 8px; font-weight: 800; }

.filter-row a { padding: 6px 13px; background: #f6f3fa; border-radius: 99px; font-size: 13px; }

.filter-row .active-filter { color: #fff; background: var(--violet); }

.listing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.seo-copy { padding: 32px; margin-bottom: 78px; background: #f9f7fc; border-left: 4px solid var(--violet); }

.seo-copy p { margin: 0; color: var(--muted); }

.reader-header { padding-bottom: 22px; text-align: center; }

.reader-header .breadcrumb { justify-content: center; margin-bottom: 26px; }

.reader-header h1 { margin: 5px 0 12px; font-size: 38px; }

.reader-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }

.reading-note { max-width: 760px; padding: 15px 18px; margin: 23px auto 0; color: #665a7a; background: #f8f5ff; border-radius: 12px; font-size: 14px; text-align: left; }

.reader-controls { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--violet); font-size: 14px; font-weight: 800; }

.bookmark-button { padding: 7px 13px; color: var(--violet); background: #fff; border: 1px solid #ded5fa; border-radius: 99px; font: inherit; cursor: pointer; }

.comic-pages { width: min(780px, calc(100% - 40px)); margin: 38px auto 0; }

.comic-pages figure { margin: 0 0 26px; }

.reader-image { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }

.comic-pages figcaption { padding-top: 9px; color: var(--muted); font-size: 13px; text-align: center; }

.chapter-end { padding: 45px 20px 82px; text-align: center; }

.chapter-end > span { color: var(--pink); font-size: 28px; }

.chapter-end p { color: var(--muted); }

.chapter-end div { display: flex; justify-content: center; gap: 12px; }

@media (max-width: 980px) {
    .header-inner { gap: 15px; }
    .main-nav a { padding: 0 7px; font-size: 12px; }
    .hero { gap: 42px; }
    .feature-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
    .horizontal-list { grid-template-columns: repeat(3, 1fr); }
    .listing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .shell { width: min(100% - 28px, 1200px); }
    .header-inner { min-height: 64px; flex-wrap: wrap; }
    .main-nav { width: 100%; display: none; margin-left: 0; }
    .main-nav.is-open { display: block; }
    .main-nav ul { display: grid; padding-bottom: 12px; grid-template-columns: repeat(2, 1fr); }
    .main-nav li, .main-nav li.is-current { border: 0; }
    .main-nav a { min-height: 40px; padding: 7px; }
    .menu-toggle { display: block; }
    .hero { min-height: auto; padding-top: 46px; grid-template-columns: 1fr; gap: 30px; }
    .hero-image { height: 280px; }
    .hero-note { right: 12px; }
    .section { margin-top: 58px; }
    .reading-strip { padding: 16px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .reading-strip div:nth-child(3) { padding-left: 0; border-left: 0; }
    .feature-grid, .category-grid, .timeline-grid, .horizontal-list, .listing-grid { grid-template-columns: repeat(2, 1fr); }
    .genre-callout, .spotlight, .korean-banner, .ranking-layout, .about-section, .app-section { padding: 28px; grid-template-columns: 1fr; gap: 24px; }
    .spotlight-image, .wide-image { min-height: 230px; }
    .spotlight-copy { padding: 0; }
    .rank-row { grid-template-columns: 37px 1fr; }
    .rank-row em { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .app-section { margin-bottom: 58px; }
    .qr-box { width: 130px; height: 130px; }
    .page-heading h1, .reader-header h1 { font-size: 32px; }
    .reader-controls { gap: 9px; font-size: 12px; }
}
