:root {
    --bg: #0b0d12;
    --panel: #121621;
    --panel-2: #181e2b;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f4f6fb;
    --muted: #9da7bb;
    --lime: #d9ff67;
    --cyan: #6de7ff;
    --orange: #ff9d6c;
    --purple: #9d86ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

button {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 13, 18, 0.88);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(217, 255, 103, 0.6);
    border-radius: 12px;
    color: var(--bg);
    background: var(--lime);
    font: 24px/1 Georgia, serif;
    transform: rotate(-6deg);
}

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

.brand-copy strong {
    color: var(--text);
    font-size: 16px;
    letter-spacing: 0.08em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.12em;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--lime);
    background: rgba(217, 255, 103, 0.08);
}

.nav-icon {
    color: var(--cyan);
    font-size: 15px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--lime);
    background: transparent;
    cursor: pointer;
}

.hero-section {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 80% 18%, rgba(109, 231, 255, 0.12), transparent 32%),
        radial-gradient(circle at 16% 80%, rgba(157, 134, 255, 0.16), transparent 30%),
        var(--bg);
}

.hero-grid {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    color: var(--lime);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 680px;
    margin: 18px 0 18px;
    color: var(--text);
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(54px, 8vw, 104px);
    font-weight: 500;
    letter-spacing: -0.08em;
    line-height: 0.98;
}

.hero-copy h1 a {
    text-decoration: none;
}

.hero-lead {
    max-width: 540px;
    margin-bottom: 14px;
    color: var(--cyan);
    font: 25px/1.45 Georgia, "Songti SC", serif;
}

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

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

.button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    transition: 0.2s ease;
}

.button-primary {
    border-color: var(--lime);
    color: var(--bg);
    background: var(--lime);
}

.button-primary:hover {
    box-shadow: 0 0 30px rgba(217, 255, 103, 0.25);
    transform: translateY(-2px);
}

.button-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.button-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.hero-stats {
    display: flex;
    gap: 34px;
}

.hero-stats span {
    display: grid;
}

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

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

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

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(109, 231, 255, 0.24);
    border-radius: 50%;
}

.orbit-one {
    width: 430px;
    height: 300px;
    top: 100px;
    left: 30px;
    transform: rotate(-20deg);
}

.orbit-two {
    width: 310px;
    height: 440px;
    top: 18px;
    left: 100px;
    transform: rotate(34deg);
}

.hero-card {
    position: absolute;
    top: 55px;
    left: 105px;
    width: 270px;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px 24px 80px 24px;
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(11, 13, 18, 0.15), rgba(11, 13, 18, 0.84)),
        linear-gradient(145deg, #39547a, #9b587a 56%, #ff9d6c);
    box-shadow: var(--shadow);
    transform: rotate(-7deg);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px 16px 60px 16px;
}

.hero-card span,
.hero-card strong,
.hero-card small {
    position: relative;
    z-index: 1;
}

.hero-card span {
    position: absolute;
    top: 27px;
    left: 30px;
    color: var(--lime);
    font-size: 10px;
    letter-spacing: 0.2em;
}

.hero-card strong {
    font: 34px/1.18 Georgia, "Songti SC", serif;
}

.hero-card small {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.hero-note {
    position: absolute;
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: rgba(18, 22, 33, 0.9);
    box-shadow: var(--shadow);
    font-size: 11px;
    line-height: 1.4;
}

.hero-note b {
    color: var(--lime);
}

.note-one {
    top: 38px;
    right: 4px;
    transform: rotate(8deg);
}

.note-two {
    right: 12px;
    bottom: 48px;
    transform: rotate(-8deg);
}

.section-block {
    padding: 96px 0 0;
    scroll-margin-top: 95px;
}

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

h2 {
    margin: 8px 0 0;
    color: var(--text);
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
}

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

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

.category-card {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    transition: 0.2s ease;
}

.category-card:hover {
    border-color: rgba(217, 255, 103, 0.5);
    background: var(--panel-2);
    transform: translateY(-4px);
}

.category-card span:nth-child(2) {
    display: grid;
    flex: 1;
}

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

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

.category-icon {
    color: var(--orange);
    font-size: 28px;
}

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    transition: 0.2s ease;
}

.comic-card:hover {
    border-color: rgba(109, 231, 255, 0.55);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

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

.comic-cover img {
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: 0.3s ease;
}

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

.card-index {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 8px;
    border: 1px solid rgba(217, 255, 103, 0.45);
    border-radius: 99px;
    color: var(--lime);
    background: rgba(11, 13, 18, 0.8);
    font-size: 10px;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 5px 0 8px;
    color: var(--text);
    font-family: Georgia, "Songti SC", serif;
    font-size: 20px;
    font-weight: 500;
}

.card-body p {
    min-height: 48px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 12px;
}

.read-link {
    color: var(--lime);
    font-size: 12px;
}

.tinted-section {
    max-width: none;
    padding-right: max(22px, calc((100% - 1180px) / 2));
    padding-left: max(22px, calc((100% - 1180px) / 2));
    background: #0f131c;
}

.feature-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 20px;
}

.feature-quote {
    min-height: 320px;
    padding: 35px;
    border: 1px solid rgba(217, 255, 103, 0.22);
    border-radius: 20px;
    background: linear-gradient(145deg, #202a3a, #34274b);
}

.quote-mark {
    color: var(--lime);
    font: 74px/0.6 Georgia, serif;
}

.feature-quote p {
    max-width: 310px;
    color: var(--text);
    font: 28px/1.45 Georgia, "Songti SC", serif;
}

.list-panel,
.ranking-box {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
}

.list-panel {
    padding: 12px 22px;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

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

.rank-number,
.big-rank {
    color: var(--orange);
    font-family: Georgia, serif;
    font-size: 27px;
}

.list-row span:nth-child(2),
.ranking-list a span:nth-child(2) {
    display: grid;
    flex: 1;
}

.list-row small,
.ranking-list small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.split-intro,
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.split-intro p,
.about-copy p {
    max-width: 580px;
    color: var(--muted);
    font-size: 14px;
}

.dark-section {
    max-width: none;
    padding-right: max(22px, calc((100% - 1180px) / 2));
    padding-bottom: 96px;
    padding-left: max(22px, calc((100% - 1180px) / 2));
    background: #080a0e;
}

.completed-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
}

.completed-strip a {
    min-height: 175px;
    display: grid;
    gap: 15px;
    padding: 22px;
    background: var(--panel);
}

.completed-strip a:hover {
    background: var(--panel-2);
}

.completed-strip span {
    color: var(--lime);
    font: 24px Georgia, serif;
}

.completed-strip strong {
    color: var(--text);
    font: 20px Georgia, "Songti SC", serif;
}

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

.ranking-box {
    overflow: hidden;
}

.ranking-tabs {
    display: flex;
    gap: 4px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.ranking-tabs button {
    border: 0;
    border-radius: 9px;
    padding: 10px 14px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
}

.ranking-tabs button.active {
    color: var(--bg);
    background: var(--lime);
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 36px;
    padding: 15px 24px 22px;
}

.ranking-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.big-rank {
    width: 34px;
}

.trend {
    color: var(--lime);
}

.hidden {
    display: none;
}

.app-card {
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: center;
    gap: 40px;
    padding: 48px 54px;
    border: 1px solid rgba(109, 231, 255, 0.25);
    border-radius: 24px;
    background: linear-gradient(135deg, #172938, #211b31);
}

.app-card p {
    max-width: 560px;
    color: var(--muted);
    font-size: 14px;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-tags span {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--cyan);
    font-size: 11px;
}

.app-code {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    margin: auto;
    border: 8px solid #111723;
    border-radius: 20px;
    color: var(--bg);
    background: var(--lime);
    box-shadow: 8px 8px 0 rgba(109, 231, 255, 0.2);
    text-align: center;
}

.app-code strong {
    font-size: 14px;
    line-height: 1.3;
}

.app-code small {
    font-size: 9px;
}

.about-section {
    padding-bottom: 110px;
}

.about-list {
    display: grid;
    gap: 12px;
}

.about-list div {
    display: grid;
    grid-template-columns: 35px 1fr;
    column-gap: 16px;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.about-list span {
    color: var(--lime);
    font: 16px Georgia, serif;
}

.about-list p {
    grid-column: 2;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    padding: 58px 0 25px;
    color: var(--muted);
    background: #080a0e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 65px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--text);
    font: 24px Georgia, "Songti SC", serif;
}

.footer-grid p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.footer-grid h2 {
    margin-bottom: 15px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 25px;
    margin-top: 38px;
    border-top: 1px solid var(--line);
    color: #687286;
    font-size: 11px;
}

.page-hero {
    padding: 74px 0 86px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 80% 10%, rgba(109, 231, 255, 0.14), transparent 30%),
        #0f131c;
}

.page-hero h1 {
    margin: 14px 0;
    color: var(--text);
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 500;
}

.page-hero p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 38px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs a:hover {
    color: var(--lime);
}

.article-wrap {
    padding: 52px 0 110px;
}

.article-page {
    max-width: 820px;
    margin: 0 auto;
}

.article-header {
    padding: 20px 0 42px;
    border-bottom: 1px solid var(--line);
}

.article-header h1 {
    margin: 12px 0;
    color: var(--text);
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(38px, 6vw, 66px);
    font-weight: 500;
}

.article-lead {
    color: var(--muted);
    font-size: 17px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #687286;
    font-size: 11px;
}

.article-content {
    padding: 42px 0;
}

.article-content > p {
    color: #c7cfdd;
    font-size: 16px;
    line-height: 2;
}

.article-content h2 {
    margin: 38px 0 20px;
    color: var(--cyan);
    font-size: 26px;
}

.chapter-panel {
    margin: 34px 0;
}

.chapter-panel img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #20283a;
}

.chapter-panel figcaption {
    margin-top: 10px;
    color: #687286;
    font-size: 11px;
}

.chapter-end {
    margin-top: 44px;
    padding: 18px;
    border: 1px dashed rgba(217, 255, 103, 0.5);
    border-radius: 14px;
    color: var(--lime);
    background: rgba(217, 255, 103, 0.06);
    font-size: 13px;
    text-align: center;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.article-nav a {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.article-nav a:hover {
    border-color: var(--lime);
}

.article-nav a:nth-child(2) {
    text-align: center;
}

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

.article-nav span {
    color: var(--muted);
    font-size: 11px;
}

.article-nav strong {
    color: var(--text);
    font-size: 13px;
}

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

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

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

    .footer-grid {
        gap: 30px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 560px);
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 14px;
        right: 14px;
        flex-wrap: wrap;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #121621f5;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        flex: 1 1 30%;
        justify-content: center;
        padding: 10px 4px;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 70px 0 50px;
    }

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

    .hero-art {
        min-height: 380px;
        margin-bottom: -40px;
        transform: scale(0.84);
        transform-origin: center top;
    }

    .section-block {
        padding-top: 66px;
    }

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

    .category-grid,
    .comic-grid,
    .feature-grid,
    .split-intro,
    .about-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .tinted-section,
    .dark-section {
        padding-right: 14px;
        padding-left: 14px;
    }

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

    .app-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }

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

    .article-nav a:nth-child(2),
    .article-nav a:last-child {
        text-align: left;
    }
}
