:root {
    --ink: #1f2230;
    --muted: #707487;
    --line: #e6e8f0;
    --paper: #fbfbfd;
    --lavender: #eceaff;
    --purple: #7269e7;
    --deep: #292842;
    --coral: #ff8f7a;
    --mint: #aee5d5;
    --shadow: 0 22px 60px rgba(44, 39, 80, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.75;
}

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

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

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(251, 251, 253, .88);
    border-bottom: 1px solid rgba(230, 232, 240, .8);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--purple);
    border-radius: 12px 12px 12px 3px;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    transform: rotate(-5deg);
}

.brand-text {
    color: var(--deep);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .08em;
}

.brand-text span {
    color: var(--purple);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    color: var(--muted);
    border-radius: 10px;
    font-size: 13px;
    transition: .2s ease;
}

.nav-link span {
    color: var(--purple);
    font-size: 16px;
}

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

.menu-toggle {
    display: none;
    padding: 7px 10px;
    border: 0;
    color: var(--deep);
    background: var(--lavender);
    border-radius: 8px;
    font-size: 20px;
}

.hero-section {
    overflow: hidden;
    background: linear-gradient(135deg, #f3f1ff 0%, #fbfbfd 52%, #fff4ef 100%);
}

.hero-grid {
    display: grid;
    min-height: 620px;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

.hero-copy h1 {
    margin-bottom: 20px;
    font-size: clamp(46px, 7vw, 88px);
    letter-spacing: -.06em;
}

.hero-copy h1 a {
    background: linear-gradient(110deg, var(--deep), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 450px;
    margin-bottom: 10px;
    color: var(--deep);
    font-size: 25px;
    font-weight: 700;
}

.hero-desc {
    max-width: 510px;
    color: var(--muted);
    font-size: 15px;
}

.hero-actions,
.app-buttons,
.article-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 39, 80, .12);
}

.button-primary {
    color: #fff;
    background: var(--purple);
}

.button-dark {
    color: #fff;
    background: var(--deep);
}

.button-light {
    color: var(--deep);
    background: #fff;
}

.button-ghost {
    border-color: var(--line);
    color: var(--deep);
    background: #fff;
}

.hero-stats {
    display: flex;
    gap: 24px;
    color: var(--muted);
    font-size: 12px;
}

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

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

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.orb-a {
    top: 24px;
    right: 5%;
    width: 340px;
    height: 340px;
    background: #d8d5ff;
}

.orb-b {
    bottom: 20px;
    left: 15%;
    width: 170px;
    height: 170px;
    background: #ffd3c8;
}

.hero-card {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.hero-card-main {
    top: 86px;
    left: 15%;
    display: flex;
    width: 275px;
    min-height: 250px;
    padding: 26px;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: linear-gradient(155deg, rgba(44, 40, 76, .94), rgba(114, 105, 231, .78)), url("https://tse-mm.bing.com/th?q=雾港来信+漫画");
    background-position: center;
    background-size: cover;
    border-radius: 26px;
}

.hero-card-main strong {
    margin: 7px 0;
    font-size: 28px;
}

.hero-card-main small {
    color: #e6e3ff;
}

.hero-card-label {
    color: #c5c0ff;
    font-size: 10px;
    letter-spacing: .16em;
}

.hero-card-note {
    right: 2%;
    bottom: 58px;
    padding: 16px 20px;
    color: var(--deep);
    background: rgba(255, 255, 255, .76);
    border-radius: 15px;
    font-size: 12px;
}

.hero-card-note strong {
    display: block;
    margin-top: 3px;
}

.hero-spark {
    position: absolute;
    top: 38px;
    right: 13%;
    color: var(--coral);
    font-size: 56px;
}

.section {
    padding: 100px 0;
}

.section-tint {
    background: #f4f3fb;
}

.section-dark {
    color: #fff;
    background: var(--deep);
}

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

.section-head h2,
.split-feature h2,
.original-layout h2,
.ranking-layout h2,
.app-card h2,
.about-grid h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -.04em;
}

.section-head > p,
.section-intro,
.ranking-layout > div > p,
.about-grid p,
.split-feature p,
.original-layout p,
.app-card p {
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
}

.text-link span {
    margin-left: 8px;
}

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

.category-card {
    min-height: 152px;
    padding: 22px 16px;
    border-radius: 18px;
    transition: transform .2s ease;
}

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

.category-card span {
    display: block;
    margin-bottom: 17px;
    color: var(--purple);
    font-size: 24px;
}

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

.category-card strong {
    color: var(--deep);
    font-size: 14px;
}

.category-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.category-sun { background: #fff0c9; }
.category-night { background: #e1e0ff; }
.category-mint { background: #d8f3e9; }
.category-rose { background: #ffe1db; }
.category-lilac { background: #eee2fa; }
.category-blue { background: #dceef7; }

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

.comic-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(44, 39, 80, .03);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--lavender);
}

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

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 9px;
    color: var(--deep);
    background: rgba(255, 255, 255, .87);
    border-radius: 99px;
    font-size: 10px;
}

.card-body {
    padding: 17px 17px 19px;
}

.card-meta {
    margin-bottom: 7px;
    color: var(--purple);
    font-size: 10px;
}

.card-body h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.card-body > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.split-feature,
.original-layout,
.ranking-layout,
.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 90px;
}

.split-feature em,
.original-layout em,
.app-card em {
    color: var(--purple);
    font-style: normal;
}

.split-feature p,
.original-layout p {
    max-width: 390px;
    margin-top: 25px;
}

.feature-list,
.ranking-panel {
    padding: 9px 25px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.feature-row,
.rank-row {
    display: grid;
    align-items: center;
    grid-template-columns: 42px 1fr 28px;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.feature-row:last-child,
.rank-row:last-child {
    border-bottom: 0;
}

.feature-row > span:last-child {
    color: var(--purple);
}

.feature-number {
    color: #bbb9c7;
    font-size: 13px;
}

.feature-row strong,
.feature-row small,
.rank-row span,
.rank-row small {
    display: block;
}

.feature-row strong {
    font-size: 15px;
}

.feature-row small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.original-layout p {
    color: #b7b5c8;
}

.original-poster {
    position: relative;
    display: flex;
    min-height: 340px;
    padding: 38px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #6860c7, #f28b82);
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.original-poster::before {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, .08), 0 0 0 60px rgba(255, 255, 255, .06);
    content: "";
}

.original-poster span,
.original-poster small {
    letter-spacing: .19em;
    font-size: 10px;
}

.original-poster strong {
    margin: 12px 0 15px;
    font-size: 42px;
    line-height: 1.08;
}

.original-poster i {
    position: absolute;
    top: 32px;
    right: 38px;
    color: #ffd8a8;
    font-size: 40px;
}

.ranking-layout {
    grid-template-columns: .7fr 1.3fr;
}

.ranking-tabs {
    display: flex;
    gap: 7px;
    padding: 14px 0 5px;
}

.ranking-tab {
    padding: 5px 13px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.ranking-tab.is-active {
    color: var(--purple);
    background: var(--lavender);
    font-weight: 700;
}

.rank-row {
    grid-template-columns: 32px 1fr auto;
    padding: 16px 0;
}

.rank-row b {
    color: var(--purple);
}

.rank-row small {
    color: var(--muted);
    font-size: 11px;
}

.rank-row em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
}

.app-section {
    padding-bottom: 40px;
}

.app-card {
    display: grid;
    min-height: 380px;
    padding: 58px 75px;
    grid-template-columns: 1fr 260px;
    align-items: center;
    overflow: hidden;
    background: var(--lavender);
    border-radius: 28px;
}

.app-card p {
    max-width: 470px;
    margin-top: 20px;
}

.app-buttons {
    margin-bottom: 0;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    color: #fff;
    background: var(--deep);
    border-radius: 11px;
}

.store-button > span {
    font-size: 22px;
}

.store-button strong,
.store-button small {
    display: block;
}

.store-button strong {
    font-size: 12px;
}

.store-button small {
    color: #cbc9df;
    font-size: 9px;
    font-weight: 400;
}

.phone-mockup {
    justify-self: center;
    padding: 12px;
    background: var(--deep);
    border: 4px solid #fff;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transform: rotate(8deg);
}

.phone-screen {
    display: flex;
    width: 150px;
    height: 255px;
    padding: 22px 18px;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(180deg, #8077ed, #ff9b89);
    border-radius: 19px;
}

.phone-screen span {
    font-size: 11px;
}

.phone-screen strong {
    margin-top: 30px;
    font-size: 22px;
}

.phone-line {
    width: 90%;
    height: 5px;
    margin-top: 30px;
    background: rgba(255, 255, 255, .55);
    border-radius: 99px;
}

.phone-line.short {
    width: 58%;
    margin-top: 9px;
}

.phone-dot {
    margin-top: auto;
    color: #ffe0b1;
    font-size: 34px;
    text-align: right;
}

.about-section {
    padding-top: 58px;
    background: #fff;
}

.about-grid {
    grid-template-columns: .75fr 1.25fr;
    align-items: start;
}

.about-grid p {
    margin-bottom: 18px;
}

.site-footer {
    padding: 65px 0 20px;
    color: #c3c2d1;
    background: var(--deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 80px;
    padding-bottom: 50px;
}

.footer-brand .brand-text {
    color: #fff;
}

.footer-grid p {
    max-width: 330px;
    margin-top: 20px;
    font-size: 12px;
}

.footer-grid h2 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 14px;
}

.footer-links {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    gap: 8px;
    font-size: 12px;
}

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

.copyright {
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #89889d;
    font-size: 11px;
}

.page-heading {
    padding: 78px 0 36px;
}

.page-heading h1 {
    margin-bottom: 0;
    font-size: clamp(34px, 5vw, 58px);
}

.section-first {
    padding-top: 30px;
}

.section-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 35px;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.section-intro > p:first-child {
    max-width: 610px;
    margin-bottom: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.tag-list span {
    padding: 3px 9px;
    color: var(--purple);
    background: var(--lavender);
    border-radius: 99px;
    white-space: nowrap;
    font-size: 10px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 12px;
}

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

.breadcrumb strong {
    color: var(--deep);
}

.article-grid {
    padding-bottom: 25px;
}

.reading-page {
    padding: 55px 0 100px;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.article-header h2 {
    margin-bottom: 17px;
    font-size: clamp(32px, 5vw, 56px);
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--muted);
    font-size: 12px;
}

.article-lead {
    margin: 25px auto 0;
    color: var(--muted);
    font-size: 14px;
}

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

.chapter-content h3 {
    margin: 42px 0 13px;
    color: var(--deep);
    font-size: 23px;
}

.chapter-content p {
    color: #5d6070;
    font-size: 15px;
}

.comic-frame {
    margin: 25px 0;
    overflow: hidden;
    background: #f0eff8;
    border-radius: 16px;
}

.comic-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.comic-frame figcaption {
    padding: 8px 14px;
    color: var(--muted);
    font-size: 11px;
}

.chapter-end {
    margin: 50px 0;
    padding: 28px;
    color: var(--deep);
    background: var(--lavender);
    border-radius: 17px;
    text-align: center;
}

.chapter-end span {
    display: block;
    color: var(--purple);
    font-size: 25px;
}

.chapter-end strong {
    display: block;
    margin: 5px 0;
    font-size: 18px;
}

.chapter-end p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.article-actions {
    max-width: 820px;
    margin: 35px auto 0;
    justify-content: space-between;
}

.chapter-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
}

.is-disabled {
    color: #b9bac5;
}

@media (max-width: 980px) {
    .main-nav {
        gap: 0;
    }

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

    .hero-grid,
    .split-feature,
    .original-layout,
    .ranking-layout,
    .about-grid {
        gap: 45px;
    }

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

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

@media (max-width: 700px) {
    .container {
        width: min(100% - 32px, 520px);
    }

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

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 66px;
        right: 16px;
        left: 16px;
        display: none;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 15px;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero-grid,
    .split-feature,
    .original-layout,
    .ranking-layout,
    .about-grid,
    .app-card,
    .footer-grid {
        display: block;
    }

    .hero-grid {
        padding-top: 70px;
        padding-bottom: 50px;
    }

    .hero-copy h1 {
        font-size: 58px;
    }

    .hero-art {
        min-height: 350px;
        margin-top: 25px;
    }

    .hero-card-main {
        left: 8%;
    }

    .hero-card-note {
        right: 0;
    }

    .section {
        padding: 70px 0;
    }

    .section-head {
        display: block;
    }

    .section-head > p {
        margin-top: 17px;
    }

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

    .category-card {
        min-height: 135px;
    }

    .split-feature > div + div,
    .original-poster,
    .ranking-panel {
        margin-top: 35px;
    }

    .app-card {
        padding: 38px 25px;
    }

    .phone-mockup {
        width: max-content;
        margin: 45px auto 0;
    }

    .footer-grid > div + div {
        margin-top: 35px;
    }

    .section-intro {
        display: block;
    }

    .tag-list {
        justify-content: flex-start;
        margin-top: 15px;
    }

    .article-actions {
        display: block;
    }

    .chapter-nav {
        justify-content: space-between;
        margin-top: 18px;
    }
}

@media (max-width: 420px) {
    .category-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 49px;
    }

    .hero-stats {
        gap: 12px;
    }
}
