:root {
    --bg: linear-gradient(135deg, #f9f5e7 0%, #f7efe2 50%, #f3e7d1 100%);
    --card-bg: #fff8ee;
    --accent: #d97706; /* 琥珀 */
    --text: #2b2a28;   /* 深棕“墨色” */
    --shadow: 0 10px 28px -10px rgba(139, 94, 52, .25);
    --gradient-btn: linear-gradient(90deg, #d97706, #b91c1c); /* 琥珀→砖红 */
    --gradient-btn-hover: linear-gradient(90deg, #b91c1c, #d97706);
    --skeleton: #efe6d5;  /* 淡米色骨架 */
    --heading-gradient: linear-gradient(90deg, #8b5e34, #d97706);
    font-family: "Segoe UI", "PingFang SC", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.logo.small {
    font-size: 22px;
}

.logo,
.logo.small {
    text-decoration: none;
    cursor: pointer;
}

.categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-btn {
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 30px;
    background: rgba(0, 0, 0, .06);
    color: var(--text);
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.cat-btn:hover {
    background: rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

.cat-btn.active {
    background: var(--accent);
    color: #222;
}

.main-area {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px 60px;
    flex: 1;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.more-link {
    color: #fff;
    text-decoration: none;
    background: var(--gradient-btn);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    letter-spacing: .5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.more-link:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-2px);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    isolation: isolate;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    animation: fadeIn .6s ease;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6);
}

.game-card .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
    position: relative;
}

.game-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .5s ease;
}

.game-card:hover img {
    transform: scale(1.08);
}

.game-card .meta {
    padding: 10px 12px 12px;
    display: flex;
    align-items: center;
    min-height: 54px;
}

.game-card .title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

.state-bar {
    margin-top: 18px;
    font-size: 13px;
    min-height: 20px;
}

.error {
    background: rgba(255, 0, 72, .18);
    padding: 10px 14px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.error button {
    margin-left: 10px;
    background: #ff2d55;
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

.pager {
    text-align: center;
    margin: 28px 0 10px;
}

.btn-load {
    border: none;
    background: var(--gradient-btn);
    color: #fff;
    padding: 12px 34px;
    font-size: 14px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-load:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-3px);
}

.btn-load:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.back-home {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    background: rgba(0, 0, 0, .06);
    padding: 6px 14px;
    border-radius: 30px;
    transition: var(--transition);
}

.back-home:hover {
    background: rgba(0, 0, 0, .12);
}

.site-footer {
    text-align: center;
    padding: 24px 0 34px;
    font-size: 12px;
    opacity: .8;
}

.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton .thumb {
    background: var(--skeleton);
}

.skeleton .meta .title {
    height: 14px;
    width: 70%;
    background: var(--skeleton);
    border-radius: 6px;
}

.skeleton:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .categories {
        justify-content: flex-start;
    }
}

.detail-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.game-hero {
    display: flex;
    gap: 34px;
    background: var(--card-bg);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn .5s ease;
}

.game-hero .thumb {
    flex: 0 0 360px;
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-hero .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-hero .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-hero .title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.game-hero .desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: .9;
}

.game-hero .instructions {
    margin: 0;
    font-size: 13px;
    opacity: .85;
}

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

.tag {
    background: rgba(139, 94, 52, .12);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: .5px;
}

.play-btn {
    display: inline-block;
    background: var(--gradient-btn);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    white-space: nowrap;
}


.play-btn p {
    margin: 0;
    display: inline;
}

.play-btn .label,
.play-btn .arrow {
    display: inline-flex;
    align-items: center;
}

.play-btn .arrow {
    margin-left: 6px;
}


.play-btn:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-3px);
}

.play-btn.overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-btn);
    padding: 25px 80px;
    font-size: 16px;
    border-radius: 40px;
    animation: pulse 2.8s ease-in-out infinite;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1), box-shadow .45s;
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .5);
}

.play-btn.overlay:before,
.play-btn.overlay:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    pointer-events: none;
}

.play-btn.overlay:before {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .35);
    animation: ripple 2.8s ease-out infinite;
}

.play-btn.overlay:after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0));
    mix-blend-mode: overlay;
    opacity: .35;
    animation: shine 3.2s linear infinite;
}

.play-btn.overlay:hover {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .65), 0 0 0 12px rgba(255, 255, 255, .12);
    animation: pulse-hover 1.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes pulse-hover {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1.12);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.18);
    }
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .35);
    }

    70% {
        box-shadow: 0 0 0 24px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes shine {
    0% {
        opacity: .35;
    }

    50% {
        opacity: .15;
    }

    100% {
        opacity: .35;
    }
}

@media (max-width: 560px) {
    .play-btn.overlay {
        padding: 10px 24px;
        font-size: 14px;
    }

    .play-btn.overlay:hover {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.page-detail .state-bar {
    margin-top: 22px;
}

@media (max-width:960px) {
    .game-hero {
        flex-direction: column;
    }

    .game-hero .thumb {
        width: 100%;
        flex: none;
    }
}

.series-section {
    margin: 10px 0 34px;
}

.series-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
}

.series-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    background: rgba(139, 94, 52, .10);
    padding: 18px 20px;
    border-radius: 24px;
    backdrop-filter: blur(8px);
}

.series-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(139, 94, 52, .14);
    border-radius: 20px;
    padding: 14px 10px;
    height: 110px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.series-item:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
}

.cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .4);
    color: #fff;
    flex-shrink: 0;
}

.cat-name {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.15;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width:520px) {
    .series-bar {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
        padding: 14px 16px;
    }

    .series-item {
        height: 96px;
        padding: 12px 8px;
    }

    .cat-icon {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }

    .cat-name {
        font-size: 12px;
    }

    .series-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .series-bar {
        gap: 8px;
        padding: 10px 12px;
    }

    .series-item {
        height: 72px;
        padding: 8px 6px;
        gap: 6px;
        font-size: 12px;
    }

    .cat-icon {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .cat-name {
        font-size: 11px;
        padding: 0 2px;
    }
}

/* Further shrink for mobile */
@media (max-width:520px) {
    .series-bar {
        gap: 6px;
        padding: 8px 10px;
    }

    .series-item {
        height: 60px;
        padding: 6px 4px;
        gap: 4px;
        font-size: 11px;
        border-radius: 16px;
    }

    .cat-icon {
        width: 26px;
        height: 26px;
        font-size: 9px;
        box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .4);
    }

    .cat-name {
        font-size: 10px;
        letter-spacing: .3px;
        padding: 0 2px;
    }

    .series-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
}

/* Block layout */
.mosaic-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 28px;
}

.game-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    position: relative;
}

.game-block .game-card {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.game-block .game-card.large {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.game-block .small-grid {
    grid-column: 3 / span 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

.game-block .game-card.small {
    aspect-ratio: 1/1;
}

.game-block .game-card .thumb {
    position: absolute;
    inset: 0;
    background: #111;
}

.game-block .game-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-block .game-card .title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    font-size: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
    color: #fff;
    font-weight: 500;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .6);
    max-height: 50%;
    overflow: hidden;
    pointer-events: none;
}

.game-block .game-card.large .title-overlay {
    font-size: 16px;
    padding: 12px 14px;
}

.game-block .game-card:hover {
    transform: translateY(-6px) scale(1.03);
}

.game-block .game-card.skeleton .thumb {
    background: var(--skeleton);
}

.game-block .game-card.skeleton .title-overlay {
    background: linear-gradient(to top, rgba(50, 50, 50, .55), rgba(50, 50, 50, 0));
}

.game-block .game-card.skeleton .title-overlay:before {
    content: "";
    display: block;
    width: 60%;
    height: 14px;
    background: rgba(255, 255, 255, .18);
    border-radius: 6px;
}

/* Square image fill override for block layout */
.mosaic-blocks .game-card {
    display: block;
}

.mosaic-blocks .game-card .thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    background: #111;
    overflow: hidden;
}

.mosaic-blocks .game-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mosaic-blocks .game-card .title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 500;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .6);
    max-height: 50%;
    overflow: hidden;
    pointer-events: none;
}

.mosaic-blocks .game-card.large .title-overlay {
    font-size: 16px;
    padding: 12px 14px;
}

/* Skeleton consistency */
.mosaic-blocks .game-card.skeleton .thumb {
    background: var(--skeleton);
}

.mosaic-blocks .game-card.skeleton .title-overlay {
    background: linear-gradient(to top, rgba(50, 50, 50, .55), rgba(50, 50, 50, 0));
}

.mosaic-blocks .game-card.skeleton .title-overlay:before {
    content: "";
    display: block;
    width: 60%;
    height: 14px;
    background: rgba(255, 255, 255, .18);
    border-radius: 6px;
}

/* Remove old mosaic square layout (no longer used) */
.mosaic-grid,
.mosaic-grid .game-card,
.mosaic-grid .game-card.large {}

/* Remove old mobile block override and apply new shrink-on-mobile */
@media (max-width:520px) {
    .mosaic-blocks {
        grid-template-columns: 1fr;
    }

    .game-block {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 6px;
    }

    .game-block .game-card.large {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }

    .game-block .small-grid {
        grid-column: 3 / span 2;
        grid-row: 1 / span 2;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 6px;
    }

    .game-block .game-card .title-overlay {
        font-size: 10px;
        padding: 5px 6px;
    }

    .game-block .game-card.large .title-overlay {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* Hero Swiper */
.hero-swiper {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 30px;
    aspect-ratio: 16/7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 38px -12px rgba(0, 0, 0, .55);
    background: linear-gradient(135deg, #f5eddc, #faf4e6);
    isolation: isolate;
}

.hero-swiper .swiper-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .7s ease;
    display: block;
    text-decoration: none;
    color: #fff;
}

.swiper-slide.active {
    opacity: 1;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1);
    transition: transform 6s linear;
}

.swiper-slide.active img {
    transform: scale(1.08);
}

.slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 34px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .6);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.badge {
    display: none !important;
}

.swiper-dots {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: flex;
    gap: 8px;
}

.swiper-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    padding: 0;
    transition: .3s;
}

.swiper-dots .dot.active {
    background: var(--accent);
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .25);
}

@media (max-width:880px) {
    .hero-swiper {
        aspect-ratio: 16/8;
    }

    .slide-title {
        font-size: 18px;
        -webkit-line-clamp: 3;
    }
}

@media (max-width:560px) {
    .hero-swiper {
        aspect-ratio: 16/9;
        border-radius: 20px;
    }

    .slide-title {
        font-size: 16px;
    }

    .slide-overlay {
        padding: 16px 18px 20px;
    }
}


/* Detail section */
.detail-section {
    margin: 28px 0 34px;
    background: rgba(255, 255, 255, .75);
    padding: 20px 24px 26px;
    border-radius: 22px;
    backdrop-filter: blur(10px);
}

.detail-subtitle {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .5px;
}

#gameDesc {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    opacity: .9;
    white-space: pre-wrap;
}

#gameDesc.clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.toggle-desc {
    border: none;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 18px;
    cursor: pointer;
    letter-spacing: .5px;
    transition: var(--transition);
}

.toggle-desc:hover {
    background: var(--gradient-btn-hover);
}

.howto-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    opacity: .9;
}

.popular-section .games-grid {
    margin-top: 8px;
}

.popular-section .state-bar {
    margin-top: 12px;
    min-height: 18px;
    font-size: 12px;
    opacity: .85;
}

/* small adjust for mobile */
@media (max-width:560px) {
    .detail-section {
        padding: 16px 18px 22px;
    }

    .detail-subtitle {
        font-size: 16px;
        margin-bottom: 10px;
    }

    #gameDesc,
    .howto-text {
        font-size: 13px;
    }

    .play-btn.overlay {
        padding: 8px 18px;
        font-size: 12px;
    }
}

/* Horizontal scroll section */
.top-games-section {
    margin: 40px 0 50px;
}

.top-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 6px 4px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.top-scroll::-webkit-scrollbar {
    height: 8px;
}

.top-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .08);
    border-radius: 6px;
}

.top-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border-radius: 6px;
}

.top-block {
    flex: 0 0 280px;
    background: rgba(0, 0, 0, .22);
    border-radius: 20px;
    padding: 16px 18px 18px;
    box-shadow: var(--shadow);
    position: relative;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(6px);
    animation: fadeIn .5s ease;
}

.top-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.top-list {
    list-style: decimal;
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-list li {
    position: relative;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    line-height: 1.25;
    transition: .3s;
}

.top-link:hover {
    transform: translateX(4px);
}

.top-link .num {
    width: 20px;
    font-weight: 600;
    text-align: right;
    opacity: .8;
}

.thumb-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #111;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-link .label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-block.skeleton .top-title {
    height: 16px;
    width: 60%;
    background: var(--skeleton);
    border-radius: 6px;
}

.top-block.skeleton ol {
    padding-left: 0;
    list-style: none;
}

.top-block.skeleton li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-block.skeleton .thumb-wrap {
    background: var(--skeleton);
}

.top-block.skeleton .txt-line {
    flex: 1;
    height: 12px;
    background: var(--skeleton);
    border-radius: 6px;
}

.top-error,
.top-empty {
    flex: 0 0 100%;
    background: rgba(0, 0, 0, .06);
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 13px;
}

.top-error button {
    margin-left: 10px;
    background: var(--gradient-btn);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

@media (max-width: 560px) {
    .top-block {
        flex: 0 0 220px;
        padding: 14px 16px 16px;
    }

    .thumb-wrap {
        width: 40px;
        height: 40px;
    }

    .top-title {
        font-size: 14px;
    }
}

/* Site Info Section */
.site-info {
    background: rgba(255, 255, 255, .75);
    padding: 26px 30px 30px;
    border-radius: 24px;
    backdrop-filter: blur(8px);
    margin: 10px 0 30px;
    font-size: 13px;
    line-height: 1.55;
    letter-spacing: .3px;
}

.site-info h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .6px;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.site-info p {
    margin: 0 0 12px;
}

.site-info p:last-child {
    margin-bottom: 0;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    font-size: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: .85;
    transition: .3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Static Page */
.static-page {
    background: rgba(255, 255, 255, .75);
    padding: 34px 40px 46px;
    border-radius: 28px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    margin: 20px 0 50px;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: .3px;
}

.static-page h1 {
    margin: 0 0 26px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .8px;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    color: transparent;
    scroll-margin-top: 90px;
}

.static-page h2 {
    margin: 40px 0 16px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .6px;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    color: transparent;
    scroll-margin-top: 90px;
}

.static-page h3 {
    margin: 26px 0 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .5px;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    color: transparent;
    scroll-margin-top: 90px;
}

.static-page p {
    margin: 0 0 14px;
}

.static-page ul,
.static-page ol {
    margin: 0 0 18px 0;
    padding-left: 22px;
}

.static-page code {
    background: rgba(255, 255, 255, .12);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

.static-page :target {
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
    border-radius: 10px;
    animation: targetPulse 1.2s ease;
}

@keyframes targetPulse {
    0% {
        background: rgba(255, 255, 255, .16);
    }

    60% {
        background: rgba(255, 255, 255, .05);
    }

    100% {
        background: transparent;
    }
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 24px;
    padding: 14px 18px 6px;
    background: rgba(255, 255, 255, .08);
    border-radius: 18px;
}

.toc a {
    text-decoration: none;
    font-size: 13px;
    color: #fff;
    opacity: .85;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    transition: .3s;
}

.toc a:hover {
    opacity: 1;
    background: var(--accent);
    color: #222;
}

.page-updated {
    margin-top: 34px;
    font-size: 12px;
    opacity: .7;
}

@media (max-width:760px) {
    .static-page {
        padding: 26px 26px 36px;
        border-radius: 24px;
    }

    .static-page h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .static-page h2 {
        font-size: 18px;
        margin-top: 34px;
    }

    .toc {
        flex-direction: column;
        gap: 8px;
    }

    .toc a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width:520px) {
    .static-page {
        padding: 22px 20px 32px;
        font-size: 13px;
    }

    .static-page h1 {
        font-size: 24px;
    }

    .static-page h2 {
        font-size: 17px;
    }

    .static-page h3 {
        font-size: 15px;
    }
}