body.page-home {
    min-width: 0;
    max-width: none;
    background:
        radial-gradient(circle at top left, rgba(255, 137, 194, 0.24), transparent 32%),
        radial-gradient(circle at top right, rgba(155, 180, 255, 0.2), transparent 28%),
        linear-gradient(180deg, #fff7fb 0%, #f7f9ff 32%, #ffffff 100%);
    color: #2d2340;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.page-home a,
.page-home a:visited {
    color: inherit;
}

.home-shell {
    width: 100%;
}

.home-topbar,
.home-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(236, 220, 241, 0.9);
}

.home-topbar-inner,
.home-mobile-topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.home-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(248, 130, 176, 0.24);
    object-fit: cover;
}

.home-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #322447;
}

.home-nav {
    display: inline-flex;
    gap: 24px;
    font-size: 14px;
    color: #6a587c;
}

.home-topbar-actions,
.home-mobile-actions-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.home-topbar-search,
.home-mobile-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #ebd9f1;
    background: rgba(255, 255, 255, 0.92);
    color: #57466b !important;
    font-size: 14px;
    font-weight: 700;
}

.home-topbar-download,
.home-mobile-download,
.home-hero-primary,
.home-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8dc6 0%, #8a8cff 100%);
    color: #fff !important;
    box-shadow: 0 14px 32px rgba(198, 111, 185, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-topbar-download,
.home-mobile-download {
    height: 42px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
}

.home-topbar-download:hover,
.home-mobile-download:hover,
.home-hero-primary:hover,
.home-download-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(198, 111, 185, 0.35);
}

.home-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.home-channel-switch {
    display: inline-flex;
    gap: 12px;
    margin: 4px 0 24px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(186, 168, 214, 0.14);
}

.home-channel-tab,
.home-rank-tab {
    border: 0;
    cursor: pointer;
    font: inherit;
    transition: all 0.2s ease;
}

.home-channel-tab {
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: transparent;
    color: #7a678c;
    font-size: 14px;
    font-weight: 700;
}

.home-channel-tab.is-active,
.home-rank-tab.is-active {
    background: linear-gradient(135deg, #ff9fd1 0%, #95a7ff 100%);
    color: #fff;
}

.home-channel-panel {
    display: none;
}

.home-channel-panel.is-active {
    display: block;
}

.home-hero,
.home-mobile-hero,
.home-floor-section,
.home-hot-search,
.home-rank-section,
.home-download-cta,
.home-menu-grid,
.home-footer {
    border-radius: 28px;
}

.home-hero,
.home-hot-search,
.home-rank-section,
.home-download-cta {
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 40px rgba(183, 171, 214, 0.14);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
    gap: 28px;
    padding: 36px;
    margin-bottom: 24px;
    align-items: center;
    min-height: 0;
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 8px 0;
}

.home-hero-badge,
.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ff6797;
    text-transform: uppercase;
}

.home-hero-title {
    margin: 12px 0 10px;
    font-size: 44px;
    line-height: 1.08;
    color: #2a1f3c;
}

.home-hero-title-text {
    position: relative;
    display: inline-block;
    padding: 0 12px 8px 0;
    color: #4d2f74;
    text-shadow: 0 10px 24px rgba(255, 149, 203, 0.18);
}

.home-hero-title-text::after {
    content: "";
    position: absolute;
    left: -8px;
    right: 0;
    bottom: 0;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 177, 218, 0.52), rgba(167, 181, 255, 0.42));
    z-index: -1;
}

.home-hero-feature-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #322447;
}

.home-hero-desc,
.home-download-desc,
.home-comic-desc,
.home-rank-desc,
.home-footer-text {
    color: #695a78;
    line-height: 1.75;
}

.home-hero-desc {
    max-width: 460px;
    margin-top: 12px;
}

.home-hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.home-hero-primary,
.home-hero-secondary,
.home-download-button {
    height: 50px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
}

.home-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #ebd9f1;
    background: #fff;
    color: #57466b !important;
}

.home-hero-visual {
    display: grid;
    grid-template-rows: auto auto;
    gap: 16px;
    align-content: start;
}

.home-hero-poster img,
.home-sidecard img,
.home-comic-cover,
.home-rank-cover,
.home-mobile-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-poster,
.home-sidecard,
.home-comic-cover-wrap,
.home-rank-cover,
.home-mobile-poster {
    overflow: hidden;
    border-radius: 24px;
}

.home-hero-poster {
    aspect-ratio: 3 / 2;
    min-height: 0;
    height: auto;
}

.home-hero-sidecards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-sidecard {
    aspect-ratio: 3 / 2;
    min-height: 0;
}

.home-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.home-section-title {
    margin-top: 6px;
    font-size: 30px;
    color: #2c2340;
}

.home-section-more {
    font-size: 14px;
    color: #6c5b84 !important;
}

.home-hot-search,
.home-rank-section,
.home-floor-section,
.home-download-cta {
    padding: 28px;
    margin-bottom: 24px;
}

.home-hot-search-list,
.home-menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hot-word {
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #f0ddee;
    color: #5d4a72 !important;
    font-size: 13px;
    font-weight: 700;
}

.home-empty-hint {
    width: 100%;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed #ead8ef;
    color: #7a698d;
    font-size: 14px;
    line-height: 1.7;
}

.home-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
    gap: 14px;
}

.home-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 104px;
    padding: 18px 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 32px rgba(202, 188, 223, 0.14);
    font-size: 14px;
    font-weight: 700;
    color: #4d3f61;
    text-align: center;
}

.home-menu-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-floor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-comic-card,
.home-rank-item {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fff9fd 100%);
    box-shadow: 0 16px 34px rgba(204, 188, 228, 0.18);
}

.home-comic-card {
    grid-template-columns: 124px minmax(0, 1fr);
}

.home-comic-cover-wrap {
    height: 172px;
}

.home-comic-title,
.home-rank-name {
    font-size: 18px;
    font-weight: 700;
    color: #302444;
}

.home-comic-meta {
    margin-top: 6px;
    font-size: 13px;
    color: #8d7ca2;
}

.home-comic-desc {
    margin-top: 10px;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-comic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.home-comic-tag {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 152, 196, 0.14);
    color: #ff5d95;
    font-size: 12px;
    font-weight: 700;
}

.home-rank-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.home-rank-tab {
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f7eff8;
    color: #6c5d7f;
    font-size: 13px;
    font-weight: 700;
}

.home-rank-panel {
    display: none;
    gap: 12px;
}

.home-rank-panel.is-active {
    display: grid;
}

.home-rank-item {
    grid-template-columns: 44px 110px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 18px;
}

.home-rank-num {
    width: 44px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #ff6ba0;
    line-height: 1;
    padding-top: 52px;
}

.home-rank-cover {
    width: 110px;
    height: 146px;
    border-radius: 20px;
    box-shadow: 0 14px 24px rgba(196, 175, 221, 0.18);
}

.home-rank-content {
    min-width: 0;
    padding-top: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-rank-name {
    font-size: 28px;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(28px * 1.18 * 2);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.home-rank-desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(14px * 1.75 * 4);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.home-download-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.home-footer {
    margin-top: 8px;
    padding: 34px 0 48px;
    background: linear-gradient(180deg, rgba(250, 238, 246, 0.8) 0%, rgba(243, 247, 255, 0.95) 100%);
    border-top: 1px solid rgba(233, 220, 242, 0.9);
}

.home-footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.home-footer-title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #34274a;
}

.home-footer-contact {
    line-height: 1.9;
    color: #675c76;
    text-align: right;
}

.home-shell-mobile .home-main,
body.page-home-mobile .home-main {
    width: min(100%, calc(100% - 24px));
    padding-top: 16px;
}

.home-mobile-topbar {
    width: calc(100% - 24px);
    padding: 12px 0;
}

.home-mobile-hero {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(190, 172, 220, 0.18);
}

.home-mobile-hero-copy {
    position: relative;
    z-index: 1;
}

.home-mobile-title {
    margin: 12px 0 10px;
    font-size: 30px;
    line-height: 1.14;
    color: #4d2f74;
}

.home-mobile-feature-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #322447;
}

.home-mobile-desc {
    margin-top: 10px;
    color: #6c5b82;
    line-height: 1.75;
}

.home-mobile-carousel {
    margin-top: 18px;
}

.home-mobile-carousel-slides {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 242, 248, 0.92), rgba(244, 247, 255, 0.9));
}

.home-mobile-carousel-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.home-mobile-carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.home-mobile-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-mobile-carousel-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(47, 34, 68, 0.16), rgba(47, 34, 68, 0.72));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.home-mobile-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.home-mobile-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(156, 140, 186, 0.35);
}

.home-mobile-carousel-dot.is-active {
    width: 20px;
    background: linear-gradient(135deg, #ff9fd1 0%, #95a7ff 100%);
}

.home-mobile-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 1024px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-floor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-topbar {
        display: none;
    }

    .home-nav {
        display: none;
    }

    .home-topbar-actions {
        display: none;
    }

    .home-channel-switch {
        display: flex;
        width: 100%;
        overflow-x: auto;
    }

    .home-section-title {
        font-size: 24px;
    }

    .home-hero-title {
        font-size: 42px;
    }

    .home-hero-title-text::after {
        height: 18px;
    }

    .home-hero-feature-name {
        font-size: 22px;
    }

    .home-menu-grid,
    .home-menu-grid-mobile {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .home-menu-card {
        min-height: 92px;
        padding: 14px 8px 12px;
        border-radius: 18px;
        gap: 8px;
        font-size: 12px;
    }

    .home-menu-icon {
        width: 40px;
        height: 40px;
    }

    .home-floor-grid {
        grid-template-columns: 1fr;
    }

    .home-comic-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .home-comic-cover-wrap {
        height: 132px;
    }

    .home-download-cta,
    .home-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-rank-item {
        grid-template-columns: 36px 96px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .home-rank-num {
        width: 36px;
        font-size: 18px;
        padding-top: 42px;
    }

    .home-rank-cover {
        width: 96px;
        height: 128px;
    }

    .home-rank-name {
        font-size: 22px;
        max-height: calc(22px * 1.18 * 2);
    }

    .home-rank-desc {
        -webkit-line-clamp: 3;
        font-size: 13px;
        line-height: 1.7;
        max-height: calc(13px * 1.7 * 3);
        margin-top: 8px;
    }

    .home-footer-contact {
        text-align: left;
    }
}
