/*version:v1 — Storia unified */

/* ---------------------------- reset & tokens ---------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --cover-w: 240px;
    --bg: #0b0b0d;
    --panel: #101014;
    --line: #1f2030;
    --text: #eaeaf1;
    --sub: #9aa0b7;
    --brand: #335cff;
    --radius: 14px;
    --max: 1200px;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto
}

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

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

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px
}

.page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px
}

/* ---------------------------- header ---------------------------- */
:root {
    --hdr-bg: #0b0b0d;
    --hdr-line: #1f2030;
}

.st-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--hdr-bg);
    border-bottom: 1px solid var(--hdr-line);
}

.st-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
}

.st-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.st-nav {
    display: flex;
    gap: 16px;
    margin-left: 8px;
}

.st-nav__item {
    color: #cfd0d9;
    font-weight: 600;
}

.st-nav__item:hover {
    color: #fff;
}

.st-btn {
    border: 1px solid transparent;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    background: transparent;
}

.st-btn--pill {
    margin-left: auto;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    line-height: 36px;
    background: rgba(51, 92, 255, .12);
    color: #6b8bff;
    border-color: rgba(51, 92, 255, .25);
}

.st-btn--pill:hover {
    background: rgba(51, 92, 255, .18);
}

/* mobile header tweak */
@media (max-width: 768px) {
    .st-nav {
        display: none;
    }

    .st-logo span {
        display: none;
    }
}

/* ---------------------------- footer ---------------------------- */
.site-footer {
    background: #0b0b0d;
    border-top: 1px solid var(--line);
    padding: 28px 0;
    text-align: center;
    color: var(--sub)
}

.site-footer .container {
    max-width: var(--max)
}

/* ---------------------------- home: blocks ---------------------------- */
/* 标题条 */
.block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 4px 12px
}

.block-title h2 {
    color: #fff;
    font-size: 18px
}

.block-title .sub {
    color: var(--sub);
    font-size: 12px
}

/* 周排行横滑 */
/* --- Weekly Ranking：纵向/网格平铺，替换原先的横向滑动样式 --- */
.weekly {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

/* 改为网格：手机1列，平板2列，桌面3列 */
.weekly-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    /* 去除横向滚动相关 */
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
}

@media (min-width: 720px) {
    .weekly-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .weekly-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.w-card {
    scroll-snap-align: unset;
    position: relative;
    flex: none;
    width: 100%;
    display: flex;
    gap: 10px;
    background: #0f1020;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    align-items: flex-start;
}

.w-cover {
    width: 72px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.w-title {
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    margin: 2px 0 6px;
    max-height: 3.7em;
    overflow: hidden;
}

.w-desc {
    color: #cfd0d9;
    font-size: 12px;
    line-height: 1.5;
    max-height: 3.2em;
    overflow: hidden;
}

.w-rank {
    position: absolute;
    left: 8px;
    top: 8px;
    background: linear-gradient(90deg, #6b8bff, #335cff);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    border-radius: 999px;
    padding: 2px 8px;
}


.masonry {
    column-count: 2;
    column-gap: 14px;
    margin-top: 18px
}

.b-card {
    display: block;
    break-inside: avoid;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 0 0 14px;
    overflow: hidden
}

.b-cover {
    width: 100%;
    height: 300px;
    object-fit: cover
}

.b-body {
    padding: 12px
}

.b-title {
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    margin: 2px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.b-desc {
    color: #cfd0d9;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden
}

@media (min-width: 600px) {
    .masonry {
        column-count: 3
    }
}

@media (min-width: 1000px) {
    .masonry {
        column-count: 4
    }
}

.empty {
    color: #9aa0b7;
    text-align: center;
    padding: 40px 0
}

/* ---------------------------- book detail ---------------------------- */
@media (max-width: 768px) {
    :root {
        --cover-w: 120px;
    }
}

/* 手机端 */
.head {
    display: grid;
    grid-template-columns: var(--cover-w) 1fr; /* 关键：左列改为变量宽度 */
    gap: 16px;
    padding: 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius)
}

.cover {
    width: var(--cover-w);
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.h-title {
    font-size: 22px;
    line-height: 1.25;
    color: var(--text);
    margin: 2px 0 8px;
    word-break: break-word
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--sub);
    font-size: 13px;
    margin-bottom: 12px
}

.meta .dot::before {
    content: "•";
    margin: 0 8px;
    color: #555
}

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

.tag {
    font-size: 12px;
    color: #c9d1ff;
    background: #181a28;
    border: 1px solid #2a2e45;
    border-radius: 999px;
    padding: 4px 10px
}

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

.btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #181a28;
    color: #fff;
    font-weight: 600;
    cursor: pointer
}

.btn.primary {
    background: var(--brand);
    border-color: var(--brand)
}

.tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding: 0 16px;
    margin-top: 16px
}

.tab {
    padding: 12px 0;
    color: var(--sub);
    font-weight: 600;
    cursor: pointer
}

.tab.active {
    color: #fff;
    border-bottom: 2px solid var(--brand)
}

.panel {
    padding: 16px
}

.section-title {
    font-size: 16px;
    color: #fff;
    margin: 0 0 8px
}

.intro {
    color: #cfd0d9;
    line-height: 1.8;
    white-space: pre-wrap
}

.toc {
    margin-top: 8px
}

.chap-row {
    display: grid;
    grid-template-columns:1fr auto;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.chap-link {
    color: #e7e9ff
}

.chap-link:hover {
    text-decoration: underline
}

.chap-meta {
    color: #8f92a6;
    font-size: 12px
}

/* ========== Related books (inside About) ========== */
.rel {
    margin-top: 8px;
}

.rel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .rel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rel-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.rel-card:hover {
    transform: translateY(-2px);
    border-color: #2a2e45;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.rel-cover {
    width: 64px;
    height: 88px;
    flex: 0 0 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.rel-body {
    min-width: 0;
}

.rel-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.rel-sub {
    color: var(--sub);
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* layout columns for detail */
.grid {
    display: grid;
    grid-template-columns:1fr;
    gap: 16px;
    margin-top: 16px
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns:1fr 320px
    }
}

/* sticky bottom CTA (mobile) */
.sticky-cta {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: none;
    padding: 0 16px
}

@media (max-width: 768px) {
    .sticky-cta {
        display: block
    }

    .head {
        grid-template-columns:88px 1fr
    }

    .cover {
        width: 88px;
        height: 120px
    }
}

.cta-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #6b8bff, #335cff 60%, #1a3bff);
    color: #fff;
    font-weight: 800
}

/* 让顶部导航在 .page.grid 中占一整行 */
.page.grid > .b-topbar {
    grid-column: 1 / -1; /* 横跨所有列 */
    margin: 6px 0 12px; /* 去掉原来的负 margin，避免顶到 sticky header */
    padding: 0 8px;
    border-bottom: 1px solid var(--line); /* 可选：底线分隔 */
}

/* 顶部条本身 */
.b-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px; /* 用 min-height 更稳 */
    color: var(--sub);
}

/* 面包屑内容，不让长标题把布局撑坏 */
.b-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    min-width: 0; /* 允许收缩 */
}

.b-breadcrumb > * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 小屏收紧一点留白 */
@media (max-width: 768px) {
    .page.grid > .b-topbar {
        margin: 4px 0 8px;
        padding: 0 6px;
    }
}

/* ========== Reader page ========== */
.r-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 8px;
    margin: -8px 0 8px 0;
    color: var(--sub);
}

.r-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.r-bc-link {
    color: #cfd0d9
}

.r-bc-link:hover {
    color: #fff
}

.r-bc-sep {
    opacity: .5
}

.r-progress {
    font-size: 12px;
    color: var(--sub)
}

/* ----------------- Chapter Nav (Prev/Next) ----------------- */
.chap-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 8px 0 12px;
}

.chap-nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #181a28;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.chap-nav .btn:hover {
    background: #202336;
}

.chap-nav .btn[disabled],
.chap-nav .btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.chap-nav .btn:focus-visible {
    outline: 2px solid rgba(51, 92, 255, .6);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .chap-nav {
        gap: 8px;
    }

    .chap-nav .btn {
        padding: 0 12px;
    }
}

.reader {
    width: min(900px, 100%);
    margin: 0 auto;
    background: transparent;
    padding-inline: 12px;
}

@media (min-width: 1280px) {
    .reader {
        width: min(1000px, 100%);
    }
}

.r-book-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 12px 0 16px;
}

.r-cover {
    width: 250px;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.r-book-title {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0 6px;
    color: #f3f4f6;
    text-align: center;
}

.r-author {
    font-size: 14px;
    color: var(--sub);
    margin: 0 0 8px;
}

.r-watermark {
    font-size: 12px;
    color: var(--sub);
    opacity: .7;
    margin-top: 2px;
}

.r-divider {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

.r-ch-title {
    font-size: 22px;
    line-height: 1.35;
    margin: 8px 0 8px;
    color: #fff;
}

.r-editor {
    font-size: 12px;
    color: var(--sub);
    margin: -4px 0 14px;
}

.r-content {
    font-size: 18px;
    line-height: 1.9;
    color: #e9eaf1;
    margin-inline: auto;
}

.r-content p {
    margin: 1.05rem 0;
}

.r-content em, .r-content i {
    font-style: italic;
}

.r-content strong, .r-content b {
    font-weight: 700;
}

.r-content h2, .r-content h3 {
    margin: 1.2rem 0 .6rem;
}

.r-more {
    margin: 22px 0 36px;
}

.r-more-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0e101a 0%, #0b0b0d 100%);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

.r-more-title {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

.r-more-sub {
    color: #cfd0d9;
    margin: 6px 0 14px;
    font-size: 14px;
}

.r-more-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.r-more-tip {
    color: var(--sub);
    display: block;
    margin-top: 10px;
}

.btn {
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #181a28;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.btn.primary {
    background: var(--brand);
    border-color: var(--brand)
}

@media (max-width: 720px) {
    .r-ch-title {
        font-size: 20px;
    }

    .r-content {
        font-size: 17px;
    }

    .r-cover {
        width: 140px;
        height: 192px;
    }
}


/* ========== About Page ========== */
.about-page .card {
    background: linear-gradient(180deg, #0e101a 0%, #0b0b0d 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    padding: 20px;
}

.about-page .h-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.about-page .section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 14px 0 6px;
    color: #fff;
}

.about-page .intro {
    font-size: 16px;
    line-height: 1.8;
    color: #cfd0d9;
}

.about-page ul {
    margin: 6px 0 0 1.2em;
    padding: 0;
    color: #e9eaf1;
    line-height: 1.9;
}

.about-page li {
    margin-bottom: 6px;
}

/* 通用章节行 */
.chap-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
}

/* 普通章节 */
.chap-row .chap-link {
    color: #fff;
    text-decoration: none;
}

.chap-row.vip .chap-meta {
    font-size: 12px;
    font-weight: 700;
    color: #ffae00;
    background: rgba(255, 174, 0, 0.15);
    padding: 2px 6px;
    border-radius: 6px;
}

.r-content-wrap {
    position: relative;
}

.r-lock {
    position: absolute;
    inset: 0; /* 占满容器，后续子类决定具体遮挡范围 */
    pointer-events: none; /* 避免挡住滚动到上半段 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.r-content-locked {
    max-height: 600px; /* 限制高度，仅对 VIP 章节生效 */
    overflow: hidden;
}


.r-lock--half {
    top: 55%;
    background: linear-gradient(
            to bottom,
            rgba(11, 11, 13, 0) 0%,
            rgba(11, 11, 13, 0.85) 5%,
            rgba(11, 11, 13, 0.90) 10%,
            rgba(11, 11, 13, 0.95) 20%,
            rgba(11, 11, 13, 0.98) 50%,
            rgba(11, 11, 13, 1) 100%
    );
}

.r-content-wrap .r-content {
    user-select: text;
}

.r-content-wrap .r-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 45%;
    bottom: 0;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}

@media (max-width: 768px) {
    .r-lock--half {
        top: 40%;
    }

    .r-content-wrap .r-content::after {
        top: 40%;
    }
}

/* 分类卡片区域 */
#category_root .cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

#category_root .cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--panel, #1e1f2b);
    border: 1px solid var(--line, #2e3148);
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
}

#category_root .cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

#category_root .cat-card.is-active {
    border-color: #556bda;
    box-shadow: 0 0 0 2px rgba(85, 107, 218, .4);
}

#category_root .cat-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

#category_root .cat-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #556bda;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

#category_root .cat-name {
    font-size: 14px;
    color: var(--text, #e0e0e0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分类 pills */
#category_root .cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

#category_root .pill {
    background: var(--panel, #1e1f2b);
    border: 1px solid var(--line, #2e3148);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--sub, #b0b3c6);
    cursor: pointer;
    transition: all .2s;
}

#category_root .pill:hover {
    color: #fff;
    border-color: #556bda;
}

#category_root .pill.is-active {
    background: #556bda;
    color: #fff;
    border-color: #556bda;
}

/* 瀑布流容器：保持已有的 masonry */
#category_root .masonry {
    column-count: 2;
    column-gap: 16px;
}

@media (min-width: 768px) {
    #category_root .masonry {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    #category_root .masonry {
        column-count: 4;
    }
}

#category_root .b-card {
    display: inline-block;
    margin: 0 0 16px;
    width: 100%;
    break-inside: avoid;
    background: var(--panel, #1e1f2b);
    border: 1px solid var(--line, #2e3148);
    border-radius: 12px;
    overflow: hidden;
    transition: all .25s ease;
}

#category_root .b-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

#category_root .b-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

#category_root .b-body {
    padding: 10px 12px;
}

#category_root .b-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #fff);
    margin: 0 0 4px;
}

#category_root .b-desc {
    font-size: 13px;
    color: var(--sub, #b0b3c6);
    line-height: 1.4;
    max-height: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sharebar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.sharebar-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share_title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.sharebtns {
    display: inline-flex;
    gap: 8px;
}

.sharebtn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    outline: none;
    background: #999; /* fallback */
}

.sharebtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}

/* 平台色 + 图标（用内置 emoji 简洁表示，也可换成 SVG） */
.sharebtn.fb {
    background: #1877F2;
}

.sharebtn.fb::before {
    content: "f";
    font: 600 16px/1 Arial;
}

.sharebtn.tw {
    background: #0F1419;
}

/* X */
.sharebtn.tw::before {
    content: "✖";
    font-size: 16px;
}

.sharebtn.wa {
    background: #25D366;
}

.sharebtn.wa::before {
    content: "✆";
    font-size: 16px;
}

.sharebtn.tg {
    background: #289FD9;
}

.sharebtn.tg::before {
    content: "➤";
    font-size: 16px;
}

.sharebtn.rd {
    background: #FF4500;
}

.sharebtn.rd::before {
    content: "r";
    font: 700 16px/1 Arial;
}

.sharebtn.cp {
    background: #6B7280;
}

.sharebtn.cp::before {
    content: "⧉";
    font-size: 16px;
}

.head > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 顶部信息在上，按钮+分享在下 */
}

.actions {
    margin-top: auto; /* 推到容器底部 */
    display: flex;
    flex-direction: column;
    gap: 8px; /* 按钮和分享之间留空 */
}

/*******footer******/
.st-footer {
    border-top: 1px solid #1f2030;
    background: #151523;
}

.st-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.st-foot__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
}

.st-foot__logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.st-foot__copy {
    color: #9aa0b7;
    font-size: 12px;
    margin-top: 10px;
}

.st-foot__title {
    color: #cfd0d9;
    font-weight: 800;
    margin-bottom: 8px;
}

.st-foot__link {
    color: #9aa0b7;
    text-decoration: none;
    display: block;
    margin: 6px 0;
}

.st-foot__link:hover {
    color: #fff;
}

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