/*!
 * 程序圆 · 明亮换肤（B2 子主题）
 * ------------------------------------------------------------
 * 仅覆盖视觉层：暖白画布 + #dd3333 主色 + 圆角卡片。
 * 不修改 B2 核心、模板结构与任何数据。
 * 加载顺序：child-style → 各页面样式 → skin.css
 * 修改时间：2026-11-24
 */

/* ========== 1. 设计变量 ========== */
:root {
    --skin-bg: #f7f5f2;
    --skin-bg-soft: #f1eeea;
    --skin-surface: #ffffff;
    --skin-surface-2: #faf8f5;
    --skin-surface-3: #f4f1ed;

    --skin-line: #e8e2db;
    --skin-line-strong: #d8d0c7;

    --skin-ink: #17151a;
    --skin-text: #2b282e;
    --skin-soft: #47434b;
    --skin-muted: #6f6a73;
    --skin-muted-2: #9a949d;

    --skin-brand: #dd3333;
    --skin-brand-2: #f05a45;
    --skin-brand-dark: #b31f1f;
    --skin-brand-soft: #fff2f0;
    --skin-brand-line: rgba(221, 51, 51, 0.2);

    --skin-shadow-sm: 0 1px 2px rgba(60, 42, 30, 0.04), 0 12px 26px -24px rgba(60, 42, 30, 0.34);
    --skin-shadow: 0 2px 6px rgba(60, 42, 30, 0.04), 0 24px 48px -36px rgba(60, 42, 30, 0.38);

    --skin-radius-sm: 10px;
    --skin-radius: 14px;
    --skin-radius-lg: 18px;
}

/* ========== 2. 全局画布 ========== */
html body {
    background-color: var(--skin-bg) !important;
    color: var(--skin-text);
}

body.home,
body.blog,
body.archive,
body.single,
body.page,
body.search,
body.error404,
body.tags {
    background-color: var(--skin-bg) !important;
    background-image:
        radial-gradient(900px 430px at 88% -8%, rgba(221, 51, 51, 0.055), transparent 70%),
        radial-gradient(720px 380px at 2% 0%, rgba(183, 121, 31, 0.035), transparent 72%) !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* 原站背景大图在明亮皮肤下不再显示 */
.b2-page-bg {
    display: none !important;
}

/* 让暖白画布贯穿全站，而不是 B2 默认的冷灰底 */
#page.site {
    background-color: transparent !important;
}

::selection {
    background: var(--skin-brand);
    color: #fff;
}

/* ========== 3. 顶部导航（页眉） ========== */
/* 允许 sticky 生效：overflow-x: clip 不会创建滚动容器 */
html body {
    overflow-x: clip !important;
}

.site-header,
.site-header.social-top {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 253, 252, 0.94) !important;
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: #fff !important;
    border-bottom-color: var(--skin-line);
    box-shadow: 0 10px 30px -26px rgba(60, 42, 30, 0.6);
}

.site-header-in,
.header-banner,
.social-top .header,
.social-top .site.up .header {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.site .site-header-in > div:last-child {
    box-shadow: none !important;
}

.header-banner .ym-menu a,
.header-banner-left .menu li a,
.social-top .top-menu ul li.depth-0 > a {
    color: var(--skin-muted) !important;
}

.header-banner-left .menu li a:hover,
.header-banner .ym-menu a:hover {
    color: var(--skin-ink) !important;
}

.header-banner-left .menu li.current-menu-item > a,
.header-banner-left .menu li.current-menu-ancestor > a,
.social-top .top-menu ul li.current-menu-item.depth-0 > a {
    color: var(--skin-ink) !important;
}

.b2-menu-4 .sub-menu-0 li ul a:hover {
    color: var(--skin-brand) !important;
}

/* 桌面页眉：74px 玻璃条 + 胶囊导航 + 搜索胶囊 */
@media screen and (min-width: 769px) {
    .site-header,
    .site-header.social-top,
    .site-header.social-top.social-no-sub {
        height: 74px !important;
        margin-bottom: 0 !important;
    }

    .site .site-header-in,
    .header-banner,
    .header-banner-content.wrapper {
        height: 74px !important;
    }

    /* 关闭 B2 滚动时收缩/隐藏页眉的行为，保持玻璃条常驻 */
    .site-header .header-banner {
        transform: none !important;
    }

    .site-header .header-banner-left,
    .site-header .header-banner-left.hidden {
        opacity: 1 !important;
    }

    /* 页眉不再保留 16px 外边距，分类工具条需去掉原来的 -16px 上移 */
    .tax-header,
    .tax-header.mg-t- {
        margin-top: 0 !important;
    }

    .header-banner-left {
        gap: 22px;
    }

    .social-top .header-logo {
        margin-right: 0 !important;
        padding: 0 !important;
    }

    .header-logo img {
        display: block;
        height: 32px;
        width: auto;
    }

    .header-banner-left ul,
    .ym-menu > ul.menu {
        gap: 2px;
    }

    .header-banner-left .menu li {
        margin-right: 0 !important;
    }

    .header-banner-left .menu li a {
        padding: 8px 11px !important;
        border-radius: 8px;
        font-size: 13.5px !important;
        font-weight: 500;
        line-height: 1.2;
        transition: color 0.18s ease, background-color 0.18s ease;
    }

    .header-banner-left .menu li a:hover {
        background: rgba(23, 21, 26, 0.05);
    }

    .header-banner-left .menu li.current-menu-item > a,
    .header-banner-left .menu li.current-menu-ancestor > a {
        font-weight: 600;
        background: transparent;
    }

    .header-banner-left .menu > li.current-menu-item > a::after {
        bottom: 2px;
        width: 12px;
        height: 2px;
        border-radius: 2px;
        background: var(--skin-brand);
    }

    /* 子菜单 */
    .ym-menu .sub-menu {
        top: 58px !important;
        padding: 6px !important;
        border: 1px solid var(--skin-line);
        border-radius: 12px !important;
        background: #fff;
        box-shadow: var(--skin-shadow) !important;
    }

    .ym-menu .sub-menu li a {
        padding: 9px 12px !important;
        border-radius: 7px;
        font-size: 13px !important;
        color: var(--skin-soft) !important;
    }

    .ym-menu .sub-menu li a:hover {
        background: var(--skin-surface-2) !important;
        color: var(--skin-brand) !important;
    }

    /* 搜索 */
    .social-top .top-search {
        margin-right: 0 !important;
    }

    .top-search form {
        width: 250px;
        height: 38px;
        padding: 0 4px;
        align-items: center;
        background: var(--skin-surface-2) !important;
        border: 1px solid var(--skin-line) !important;
        border-radius: 10px !important;
        transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    }

    .top-search form:focus-within {
        background: #fff !important;
        border-color: var(--skin-brand-line) !important;
        box-shadow: 0 12px 28px -24px rgba(221, 51, 51, 0.75);
    }

    .top-search-button {
        padding: 0;
    }

    .top-search-select {
        height: auto;
        padding: 0 9px 0 10px;
        border-right: 1px solid var(--skin-line);
        font-size: 12px;
        color: var(--skin-muted) !important;
    }

    .top-search-select i {
        font-size: 12px;
        margin-left: 1px;
    }

    .top-search .search-input,
    .header-banner .top-search .search-input {
        width: 142px;
        height: 36px !important;
        padding: 0 8px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        font-size: 12.5px;
        color: var(--skin-text) !important;
    }

    .search-button-action {
        position: static !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        color: var(--skin-muted-2) !important;
        transition: color 0.18s ease, background-color 0.18s ease;
    }

    .search-button-action:hover {
        background: var(--skin-brand-soft);
        color: var(--skin-brand) !important;
    }

    .search-button-action i {
        font-size: 15px;
    }

    .header-search-select {
        border: 1px solid var(--skin-line) !important;
        border-radius: 10px !important;
        background: #fff !important;
        box-shadow: var(--skin-shadow);
    }

    .header-search-select a {
        color: var(--skin-soft) !important;
    }

    .header-search-select a.select {
        background: var(--skin-brand-soft) !important;
        color: var(--skin-brand) !important;
    }
}

@media screen and (max-width: 768px) {
    .top-search input,
    .header-banner .top-search input {
        background: var(--skin-surface-2) !important;
        border-color: var(--skin-line) !important;
        border-radius: var(--skin-radius-sm) !important;
        color: var(--skin-text) !important;
    }
}

/* 右侧悬浮工具条 */
.aside-container .bar-item {
    color: var(--skin-muted);
}

.aside-container .bar-item:hover {
    color: var(--skin-brand);
}

/* ========== 4. 首页模块 ========== */
.sort.b2-radius {
    border: 1px solid var(--skin-line) !important;
    border-radius: var(--skin-radius-lg) !important;
    background: #fff !important;
    box-shadow: var(--skin-shadow) !important;
}

.sort-config-title {
    color: var(--skin-ink) !important;
}

.sort-config-desc {
    color: var(--skin-muted) !important;
}

/* 分类角标统一使用主题红 */
.sort-config-title .go {
    background-color: var(--skin-brand) !important;
    color: #fff !important;
    border-radius: 999px;
}

.sort-blocks-item {
    background: var(--skin-surface-2) !important;
    border-radius: var(--skin-radius) !important;
}

/* ========== 4b. 首页 Hero（替换 banner，与 .sort 频道融合） ========== */
/* hero 由 functions.php 服务端直出，首屏即渲染；这里只负责隐藏原 banner */
.b2-hero-on #home-row-banner {
    display: none !important;
}

.b2-hero {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 698px;
    padding: 54px 0 160px;
    background: linear-gradient(180deg, #fffdfc 0%, #f8f3ec 100%);

    border-bottom: 1px solid var(--skin-line);
}

.b2-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.b2-hero-bg .bh-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(23, 21, 26, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 21, 26, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.b2-hero-bg .bh-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.b2-hero-bg .a1 {
    width: 560px;
    height: 560px;
    background: rgba(221, 51, 51, 0.16);
    top: -250px;
    right: 3%;
}

.b2-hero-bg .a2 {
    width: 380px;
    height: 380px;
    background: rgba(240, 90, 69, 0.12);
    bottom: -210px;
    left: -80px;
}

.b2-hero-bg .a3 {
    width: 300px;
    height: 300px;
    background: rgba(120, 113, 108, 0.1);
    top: 22%;
    left: 38%;
}

.b2-hero-inner {
    position: relative;
    z-index: 2;
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.b2-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 12px 54px;
    align-items: center;
}

.b2-hero-copy {
    max-width: 660px;
}

.b2-hero-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.bh-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border: 1px solid var(--skin-brand-line);
    border-radius: 999px;
    background: var(--skin-brand-soft);
    color: var(--skin-brand);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bh-chip i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--skin-brand);
    box-shadow: 0 0 0 3px rgba(221, 51, 51, 0.14);
    animation: bhPulse 2s ease-in-out infinite;
}

.bh-kicker {
    font-family: var(--skin-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: var(--skin-muted-2);
}

.b2-hero h1 {
    margin: 0;
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: var(--skin-ink);
}

.b2-hero h1 .line {
    display: block;
    overflow: hidden;
    padding-bottom: 2px;
}

.b2-hero h1 .line span {
    display: inline-block;
    animation: bhLine 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.b2-hero h1 .line:nth-child(2) span {
    animation-delay: 0.1s;
}

.b2-hero h1 .grad {
    background: linear-gradient(100deg, var(--skin-brand) 0%, var(--skin-brand-2) 78%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.b2-hero-sub {
    max-width: 540px;
    margin: 18px 0 0;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--skin-muted);
}

.b2-hero-sub b {
    color: var(--skin-ink);
    font-weight: 650;
}

/* 搜索 */
.b2-hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 540px;
    margin-top: 22px;
    padding: 7px 7px 7px 16px;
    background: #fff;
    border: 1px solid var(--skin-line);
    border-radius: 13px;
    box-shadow: var(--skin-shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.b2-hero-search:focus-within {
    border-color: var(--skin-brand-line);
    box-shadow: 0 16px 44px rgba(221, 51, 51, 0.1);
}

.b2-hero-search svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--skin-brand);
}

.b2-hero-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 13px;
    color: var(--skin-ink);
}

.b2-hero-search input::placeholder {
    color: var(--skin-muted-2);
}

.bh-kbd {
    flex: none;
    padding: 2px 5px;
    border: 1px solid var(--skin-line);
    border-radius: 4px;
    background: var(--skin-surface-2);
    color: var(--skin-muted-2);
    font-family: var(--skin-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 9px;
}

.bh-go {
    flex: none;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: var(--skin-brand);
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.bh-go:hover {
    background: var(--skin-brand-dark);
    transform: translateY(-1px);
}

/* 站点数据 */
.b2-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 24px;
}

.bh-stat b {
    display: block;
    font-family: var(--skin-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--skin-ink);
}

.bh-stat span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--skin-muted);
}

/* 今日热榜 */
.b2-hero-board {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 18px;
    background: #fff;
    border: 1px solid var(--skin-line);
    border-radius: 18px;
    box-shadow: var(--skin-shadow);
    overflow: hidden;
}

.b2-hero-board::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--skin-brand), var(--skin-brand-2), #f7b267);
}

.bh-board-glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(221, 51, 51, 0.14), transparent 70%);
    pointer-events: none;
}

.bh-board-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bh-board-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--skin-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    color: var(--skin-brand);
}

.bh-board-kicker i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--skin-brand);
    box-shadow: 0 0 8px rgba(221, 51, 51, 0.8);
    animation: bhPulse 2s infinite;
}

.bh-board-head h2 {
    margin: 5px 0 2px;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--skin-ink);
}

.bh-board-meta {
    margin: 0;
    font-family: var(--skin-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 10px;
    letter-spacing: 0.02em;
    color: var(--skin-muted);
}

.bh-board-link {
    flex: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--skin-brand-line);
    font-size: 11px;
    color: var(--skin-brand);
}

.bh-board-link:hover {
    border-color: var(--skin-brand);
}

.bh-board-list {
    position: relative;
    margin-top: 14px;
    border-top: 1px solid var(--skin-line);
}

.bh-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--skin-line);
    transition: background-color 0.2s, padding 0.2s;
}

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

.bh-row:hover {
    margin-inline: -7px;
    padding-inline: 7px;
    border-radius: 8px;
    background: var(--skin-surface-2);
}

.bh-rank {
    font-family: var(--skin-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
    text-align: center;
    color: var(--skin-brand);
}

.bh-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bh-source {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--skin-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 8.5px;
    letter-spacing: 0.08em;
    color: var(--skin-muted);
}

.bh-source::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--src, #999);
}

.bh-title {
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--skin-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bh-heat {
    font-family: var(--skin-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 9.5px;
    color: var(--skin-muted-2);
}

.bh-row.is-skeleton {
    pointer-events: none;
}

.bh-row.is-skeleton .bh-title {
    width: 70%;
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f1eeea, #faf8f5, #f1eeea);
    background-size: 200% 100%;
    animation: bhShimmer 1.4s linear infinite;
}

.bh-board-foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 10px 14px;
    border: 1px solid var(--skin-line);
    border-radius: 10px;
    background: var(--skin-surface-2);
    font-size: 11.5px;
    color: var(--skin-soft);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.bh-board-foot span {
    color: var(--skin-brand);
    transition: transform 0.2s;
}

.bh-board-foot:hover {
    background: var(--skin-brand-soft);
    border-color: var(--skin-brand-line);
    color: var(--skin-brand);
}

.bh-board-foot:hover span {
    transform: translateX(3px);
}

.bh-board-list + .bh-board-foot {
    margin-top: 14px;
}

/* 原 .sort 频道卡：保留横向结构与封面条，整卡压在 hero 背景上 */
#home-row-guide {
    position: relative;
    z-index: 3;
}

#home-row-guide .sort.b2-radius {
    padding: 28px 30px 26px;
    background: #fff !important;
    border: 1px solid var(--skin-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 6px rgba(60, 42, 30, 0.04), 0 32px 64px -40px rgba(60, 42, 30, 0.42) !important;
}

#home-row-guide .sort-config {
    gap: 10px;
}

#home-row-guide .sort-config > li {
    padding: 6px 8px;
    border-radius: 12px;
    transition: background-color 0.2s;
}

#home-row-guide .sort-config > li:hover {
    background: var(--skin-surface-2);
}

#home-row-guide .sort-config-item img {
    width: 58px;
    height: 58px;
    margin-right: 12px;
}

#home-row-guide .sort-config-title {
    font-size: 17px;
    line-height: 32px;
    color: var(--skin-ink) !important;
}

#home-row-guide .sort-config-desc {
    font-size: 13px;
    line-height: 21px;
    color: var(--skin-muted) !important;
}

#home-row-guide .sort-config-title .go {
    border-radius: 999px;
}

/* 封面条：沿用 .sort-blocks / .card_ZQsT- 结构，换成 5 张频道封面 */
#home-row-guide .sort-blocks {
    height: auto;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--skin-line);
}

#home-row-guide .sort-blocks .containerrr {
    width: 100% !important;
}

/* .bt-body 是 .sort-blocks 的 flex 子项，默认按内容宽度收缩。
   首屏占位图还是 1px 时内容只有 568px，child.js 换成封面图后才撑到 1138px，
   卡片因此会从 104px 宽“长”到 218px。这里让它一开始就占满整行。 */
#home-row-guide .sort-blocks .bt-body {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

#home-row-guide .sort-blocks .onecad-quk-carousel,
#home-row-guide .sort-blocks .itemss {
    width: 100%;
}

#home-row-guide .sort-blocks .onecad-quk-carousel .itemss {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    white-space: normal;
}

/* 频道封面改用 CSS 背景直接显示：首屏就是实拍图，不再依赖 JS 换图，
   也就不会再出现“先闪旧占位图、再变成新图”的过程 */
#home-row-guide .sort-blocks .itemss a.card_ZQsT- {
    width: 100% !important;
    height: 104px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--skin-line);
    border-radius: 12px !important;
    background-color: var(--skin-surface-2) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: none !important;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

#home-row-guide .sort-blocks .itemss a.card_ZQsT-:nth-child(1) { background-image: url("covers/java.jpg"); }
#home-row-guide .sort-blocks .itemss a.card_ZQsT-:nth-child(2) { background-image: url("covers/mysql.jpg"); }
#home-row-guide .sort-blocks .itemss a.card_ZQsT-:nth-child(3) { background-image: url("covers/tools.jpg"); }
#home-row-guide .sort-blocks .itemss a.card_ZQsT-:nth-child(4) { background-image: url("covers/links.jpg"); }
#home-row-guide .sort-blocks .itemss a.card_ZQsT-:nth-child(5) { background-image: url("covers/leetcode.jpg"); }

#home-row-guide .sort-blocks .itemss a.card_ZQsT-:hover {
    transform: translateY(-2px);
    border-color: var(--skin-brand-line);
    box-shadow: var(--skin-shadow-sm) !important;
}

#home-row-guide .sort-blocks .card_ZQsT- img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    /* 视觉由父级背景图承担，隐藏原占位 <img>，避免换图瞬间闪现旧图 */
    visibility: hidden;
}

@keyframes bhLine {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}

@keyframes bhPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes bhShimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.card_ZQsT- {
    border-radius: var(--skin-radius) !important;
    box-shadow: var(--skin-shadow-sm) !important;
}

.card_ZQsT-:hover {
    box-shadow: var(--skin-shadow) !important;
}

/* ========== 5. 文章卡片与列表 ========== */
.item-in.box.b2-radius,
.single-article.box.b2-radius,
.load-more.box.b2-radius,
.b2-pagenav.b2-radius {
    border-radius: var(--skin-radius) !important;
}

.item-in.box {
    border: 1px solid var(--skin-line) !important;
    background: #fff !important;
    box-shadow: var(--skin-shadow-sm) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.item-in.box:hover {
    transform: translateY(-3px);
    border-color: rgba(221, 51, 51, 0.22) !important;
    box-shadow: var(--skin-shadow) !important;
}

.post-info h2,
.post-info h2 a {
    color: var(--skin-ink);
}

.item-in.box:hover .post-info h2 a {
    color: var(--skin-brand);
}

.post-excerpt {
    color: var(--skin-muted) !important;
}

/* 分类标签：去掉主题输出的蓝灰色，统一成红色 */
.post-list-cat-item {
    color: var(--skin-brand) !important;
    font-weight: 600;
}

.post-list-meta,
.post-list-meta li span,
.list-footer,
.list-footer a {
    color: var(--skin-muted-2) !important;
}

.list-footer {
    border-top-color: var(--skin-line) !important;
}

.load-more.box {
    border: 1px solid var(--skin-line) !important;
    border-radius: var(--skin-radius) !important;
    background: #fff !important;
    box-shadow: none !important;
}

.load-more .post-load-button span {
    color: var(--skin-brand);
    font-weight: 600;
}

/* 排序 / 标签筛选条 */
.fliter-button {
    border: 1px solid var(--skin-line) !important;
    border-radius: var(--skin-radius-sm) !important;
    background: #fff !important;
    color: var(--skin-soft) !important;
}

.fliter-button:hover {
    border-color: var(--skin-brand-line) !important;
    color: var(--skin-brand) !important;
}

.search-input {
    border-color: var(--skin-line) !important;
    border-radius: var(--skin-radius-sm) !important;
}

/* ========== 6. 文章详情 ========== */
.single-article.box {
    border: 1px solid var(--skin-line) !important;
    border-radius: var(--skin-radius) !important;
    background: #fff !important;
    box-shadow: var(--skin-shadow-sm) !important;
}

.entry-header h1,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--skin-ink);
}

.entry-content {
    color: var(--skin-text);
}

.entry-content a:not(.button):not(.btn):not([class*="button"]):not([class*="btn"]) {
    color: var(--skin-brand);
}

.entry-content a:not(.button):not(.btn):not([class*="button"]):not([class*="btn"]):hover {
    color: var(--skin-brand-dark);
}

.content-excerpt {
    background: var(--skin-surface-2) !important;
    border-radius: var(--skin-radius) !important;
    color: var(--skin-muted) !important;
}

.entry-content blockquote {
    border-left: 3px solid var(--skin-brand) !important;
    border-radius: 0 var(--skin-radius-sm) var(--skin-radius-sm) 0;
    background: var(--skin-surface-2) !important;
    color: var(--skin-soft);
}

/* ========== 7. 侧栏与通用组件 ========== */
.widget.box,
.sidebar .widget {
    border: 1px solid var(--skin-line);
    border-radius: var(--skin-radius) !important;
    background: #fff !important;
    box-shadow: var(--skin-shadow-sm) !important;
}

.widget-title {
    color: var(--skin-ink) !important;
    border-bottom-color: var(--skin-line) !important;
}

.widget a {
    color: var(--skin-soft);
}

.widget a:hover {
    color: var(--skin-brand);
}

.wp-block-search__input {
    border: 1px solid var(--skin-line) !important;
    border-radius: var(--skin-radius-sm) !important;
    background: var(--skin-surface-2) !important;
    color: var(--skin-text) !important;
}

.wp-block-search__button {
    border-radius: var(--skin-radius-sm) !important;
    background: var(--skin-brand) !important;
    color: #fff !important;
    border-color: var(--skin-brand) !important;
}

.wp-block-search__button:hover {
    background: var(--skin-brand-dark) !important;
    border-color: var(--skin-brand-dark) !important;
}

.tag-cloud-link {
    border-radius: 8px !important;
    background: var(--skin-surface-3) !important;
    color: var(--skin-soft) !important;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.tag-cloud-link:hover {
    background: var(--skin-brand-soft) !important;
    color: var(--skin-brand) !important;
}

/* ========== 8. 页脚 ========== */
/* 页脚上方波浪（结构参照 90lhd.com，填充色改为品牌红） */
.bf-wave {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 40px;
    overflow: hidden;
    background: transparent;
}

.bf-wave svg {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
}

.bf-wave-parallax > use {
    animation: bf-wave-move 12s linear infinite;
}

.bf-wave-parallax > use:nth-child(1) {
    animation-delay: -2s;
}

.bf-wave-parallax > use:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 5s;
}

.bf-wave-parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 3s;
}

@keyframes bf-wave-move {
    0% {
        transform: translate(-90px, 0%);
    }
    100% {
        transform: translate(85px, 0%);
    }
}

/* 结构见 b2child/footer.php：博客简介 / 权益说明 / 联系与合作 / 扫码访问
   视觉参照 90lhd.com 的 .site-footer：白底、20px 留白、四栏等宽、标题 16px/600 */
.site-footer {
    background: #fff !important;
    border-top: 1px solid var(--skin-line);
    padding: 20px 0 !important;
    font-size: 13px;
}

.site-footer-nav {
    background: #fff !important;
    border-top: 1px solid var(--skin-line);
}

/* 四栏等宽，左右各留 16px（父主题原来的 -16px 外边距正好抵消） */
.site-footer .site-footer-widget-in {
    display: flex !important;
    align-items: flex-start;
    margin: 0 -16px !important;
}

.site-footer .bf-col {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 16px;
    box-sizing: border-box;
}

.site-footer .bf-title {
    position: static;
    margin: 0;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.01em;
    color: var(--skin-ink) !important;
}

.site-footer .bf-title::before {
    display: none !important;
}

/* 第一栏：居中字标 + 简介 */
.site-footer .bf-wordmark {
    padding: 12px 0 16px;
    text-align: center;
}

/* 字标：浅灰底 + 品牌红色带缓慢扫过（参照 90lhd.com 的 aitf 动画） */
.site-footer .bf-wordmark span {
    display: block;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    font-style: normal;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background-image: repeating-linear-gradient(
        90deg,
        #e3ddd4 0,
        #e3ddd4 135px,
        #dd3333 135px,
        #dd3333 270px
    );
    background-size: 270px 100%;
    background-position: 0 50%;
    background-repeat: repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: bf-wordmark-shine 4s linear infinite;
}

@keyframes bf-wordmark-shine {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 270px 50%;
    }
}

.site-footer .bf-about p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    color: var(--skin-muted) !important;
}

/* 第二、三栏：图标 + 标题 + 说明 */
.site-footer .bf-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .bf-links li {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 0;
}

/* 整行可点：链接铺满条目，不改变图标与文字的排版 */
.site-footer .bf-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.site-footer .bf-icon {
    flex: none;
    display: block;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 5px;
    background: #fff;
}

.site-footer .bf-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-footer .bf-text {
    min-width: 0;
}

.site-footer .bf-text h2 {
    margin: 0 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: var(--skin-ink);
    transition: color 0.18s ease;
}

.site-footer .bf-text p {
    margin: 0 !important;
    font-size: 12px;
    line-height: 17px;
    color: var(--skin-muted);
}

.site-footer .bf-links li:hover .bf-text h2 {
    color: var(--skin-brand);
}

/* 第四栏：二维码 */
.site-footer .bf-qr {
    display: block;
    width: 120px;
    height: 120px;
    margin: 20px auto 40px;
    border-radius: 6px;
    background: #fff;
}

/* 底部版权条 */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 12.5px;
    color: var(--skin-muted) !important;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-bottom a {
    color: var(--skin-soft);
}

.footer-bottom a:hover {
    color: var(--skin-brand);
}

@media screen and (max-width: 1024px) {
    /* 平板宽度下四栏变两栏两行，避免字标和说明被挤到换行 */
    .site-footer .site-footer-widget-in {
        flex-wrap: wrap;
    }

    .site-footer .bf-col {
        flex: 0 0 50%;
    }

    .site-footer .bf-wordmark span {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    /* 四栏都带 mobile-hidden，移动端由父主题隐藏；整块收起，避免留下空白条 */
    .site-footer {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .bf-wordmark span,
    .bf-wave-parallax > use {
        animation: none !important;
    }
}

/* ========== 9. 全网热榜 ========== */
body.b2child-hot-page {
    background: var(--skin-bg) !important;
}

.hot-page {
    --hot-accent: var(--skin-brand);
    --hot-accent-deep: var(--skin-brand-dark);
    --hot-soft: var(--skin-brand-soft);
    --hot-heading: var(--skin-ink);
    --hot-text: var(--skin-text);
    --hot-muted: var(--skin-muted);
    --hot-muted-2: var(--skin-muted-2);
    --hot-line: var(--skin-line);
    --hot-line-soft: var(--skin-surface-3);
    --hot-card: #fff;
    --hot-shadow-sm: var(--skin-shadow-sm);
    --hot-shadow: var(--skin-shadow);

    background-color: var(--skin-bg) !important;
    background-image:
        radial-gradient(900px 460px at 88% -10%, rgba(221, 51, 51, 0.055), transparent 70%),
        radial-gradient(720px 400px at 2% 0%, rgba(183, 121, 31, 0.03), transparent 72%) !important;
    background-attachment: scroll !important;
}

/* 紧凑页头：去掉胶囊标签，收紧标题与说明 */
.hot-kicker {
    display: none;
}

.hot-hero {
    padding: 0 2px 2px;
}

.hot-title {
    font-size: 28px;
    letter-spacing: -0.4px;
}

.hot-desc {
    margin-top: 6px;
}

.hot-toolbar,
.hot-card {
    border-color: var(--skin-line) !important;
    border-radius: var(--skin-radius) !important;
}

/* ========== 10. 网址导航 ========== */
body.b2child-ws-nav-page {
    background-color: var(--skin-bg) !important;
    background-image:
        radial-gradient(1000px 500px at 88% -8%, rgba(221, 51, 51, 0.07), transparent 70%),
        radial-gradient(760px 400px at 0% 0%, rgba(183, 121, 31, 0.04), transparent 72%) !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* 把蓝紫主色整体换成主题红 */
.ws-nav {
    --ws-accent: #dd3333;
    --ws-accent-2: #f05a45;
    --ws-accent-rgb: 221, 51, 51;
    --ws-accent-strong: #b31f1f;

    --ws-text: var(--skin-text);
    --ws-heading: var(--skin-ink);
    --ws-muted: var(--skin-muted);
    --ws-muted-2: var(--skin-muted-2);

    --ws-surface: rgba(255, 255, 255, 0.82);
    --ws-surface-solid: #ffffff;
    --ws-border: var(--skin-line);
    --ws-border-strong: var(--skin-line-strong);

    --ws-shadow-sm: var(--skin-shadow-sm);
    --ws-shadow: var(--skin-shadow);
    --ws-shadow-hover: var(--skin-shadow);
}

.ws-sidebar-nav a {
    color: var(--skin-soft);
}

.ws-sidebar-nav li.active > a {
    background: linear-gradient(135deg, rgba(221, 51, 51, 0.12), rgba(240, 90, 69, 0.1)) !important;
    color: var(--skin-brand-dark) !important;
}

.ws-menu-count {
    background: var(--skin-surface-3);
    color: var(--skin-muted);
}

.ws-sidebar-nav li.active .ws-menu-count {
    background: #fff;
    color: var(--skin-brand-dark);
}

.ws-section-head {
    border-bottom-color: var(--skin-line);
}

.ws-section-title > i {
    background: var(--skin-brand);
    box-shadow: 0 10px 20px -14px rgba(221, 51, 51, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ws-section-count,
.ws-child-cat {
    border-color: var(--skin-line);
    background: rgba(255, 255, 255, 0.7);
}

.ws-card {
    border-color: var(--skin-line);
    border-radius: var(--skin-radius);
    background: #fff;
}

.ws-card-icon {
    border-radius: 12px;
    background: var(--skin-surface-2);
}

.ws-nav .ws-search-submit {
    background: var(--skin-brand);
}

.ws-nav .ws-search-submit:hover {
    background: var(--skin-brand-dark);
}

/* 滚动到底部时，让页脚盖住粘性导航侧栏，避免遮挡页脚文字 */
body.b2child-ws-nav-page .site-footer {
    position: relative;
    z-index: 40;
}

/* ========== 11. 关于页 ========== */
body.b2child-profile-page {
    background: var(--skin-bg) !important;
}

.pf-page {
    --pf-accent: #dd3333;
    --pf-accent-deep: #b31f1f;
    --pf-soft: #fff2f0;
    --pf-heading: var(--skin-ink);
    --pf-text: var(--skin-text);
    --pf-muted: var(--skin-muted);
    --pf-line: var(--skin-line);
    --pf-card: #ffffff;

    background-color: var(--skin-bg) !important;
    background-image:
        radial-gradient(820px 420px at 88% -6%, rgba(221, 51, 51, 0.055), transparent 70%),
        linear-gradient(180deg, var(--skin-bg) 0%, var(--skin-bg-soft) 100%) !important;
}

.pf-card {
    border-color: var(--skin-line) !important;
}

.pf-stats {
    background: var(--skin-surface-2) !important;
}

.pf-principles li {
    background: var(--skin-surface-2) !important;
}

.pf-tags li {
    background: var(--skin-surface-3) !important;
    color: var(--skin-soft) !important;
}

/* ========== 12. 标签页 ========== */
body.tags .tags-page .site-main h1 {
    color: var(--skin-ink) !important;
}

body.tags .tags-page .site-main ul li a.box {
    border: 1px solid var(--skin-line) !important;
    border-radius: var(--skin-radius) !important;
    background: #fff !important;
    box-shadow: var(--skin-shadow-sm) !important;
    color: var(--skin-ink) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.tags .tags-page .site-main ul li a.box h2 {
    color: var(--skin-ink) !important;
}

body.tags .tags-page .site-main ul li a.box p {
    color: var(--skin-muted) !important;
}

body.tags .tags-page .site-main ul li a.box:hover {
    transform: translateY(-2px);
    border-color: rgba(221, 51, 51, 0.22) !important;
    box-shadow: var(--skin-shadow) !important;
}

body.tags .tags-page .site-main ul li a.box:hover h2 {
    color: var(--skin-brand) !important;
}

/* ========== 13. 响应式与移动端微调 ========== */
@media screen and (max-width: 1240px) {
    .b2-hero-inner {
        width: 100%;
        max-width: none;
        padding: 0 24px;
    }

    .b2-hero-grid {
        gap: 12px 36px;
    }
}

@media screen and (max-width: 960px) {
    .b2-hero {
        min-height: 1054px;
    }

    .b2-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .b2-hero-copy {
        max-width: 100%;
    }

    .b2-hero-board {
        align-self: auto;
    }

    #home-row-guide .sort-config {
        flex-wrap: wrap;
    }

    #home-row-guide .sort-config > li {
        flex: 0 0 50%;
    }

    #home-row-guide .sort-blocks .onecad-quk-carousel .itemss {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    /* 移动端首页暂不改动 */
    .b2-hero {
        display: none !important;
    }

    .sort.b2-radius {
        border-radius: var(--skin-radius) !important;
    }

    .hot-title {
        font-size: 25px;
    }

    .hot-hero {
        padding: 0 0 2px;
    }

    .hot-desc {
        font-size: 12.5px;
        line-height: 1.7;
    }

    .ws-nav .ws-search-submit {
        background: var(--skin-brand);
    }
}

/* ========== 14. 全站视觉打磨（只改样式，不改结构） ========== */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(23, 21, 26, 0.18);
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(23, 21, 26, 0.32);
    background-clip: content-box;
}

:focus-visible {
    outline: 2px solid var(--skin-brand);
    outline-offset: 2px;
}

/* 归档 / 分类工具条 */
.tax-header .tax-info {
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--skin-line);
    border-radius: var(--skin-radius);
    box-shadow: var(--skin-shadow-sm);
}

.tax-info-item {
    margin-right: 0;
}

.tax-info-item .fliter-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--skin-line) !important;
    border-radius: 9px;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--skin-soft) !important;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.tax-info-item .fliter-button:hover {
    border-color: var(--skin-brand-line) !important;
    background: var(--skin-brand-soft) !important;
    color: var(--skin-brand) !important;
}

.tax-search {
    width: 250px;
}

.tax-search input {
    height: 38px;
    padding: 0 38px 0 12px;
    border: 1px solid var(--skin-line) !important;
    border-radius: 10px !important;
    background: var(--skin-surface-2) !important;
    font-size: 12.5px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tax-search input:focus {
    background: #fff !important;
    border-color: var(--skin-brand-line) !important;
    box-shadow: 0 0 0 3px rgba(221, 51, 51, 0.06);
}

.tax-search button {
    padding: 8px 11px;
}

.tax-search button i {
    font-size: 16px;
    color: var(--skin-muted-2) !important;
}

/* 分类标题：去掉蓝色图片底，统一成品牌红胶囊 */
.tax-title h1 {
    padding: 8px 14px;
    border-radius: 999px;
    background-image: none !important;
    background: linear-gradient(135deg, var(--skin-brand) 0%, var(--skin-brand-2) 100%) !important;
    box-shadow: 0 10px 22px -18px rgba(221, 51, 51, 0.9);
    font-size: 12.5px;
    letter-spacing: 0.02em;
}

.tax-title h1::after {
    display: none;
}

/* 文章卡片 */
.item-in.box {
    overflow: hidden;
}

.item-in.box .post-module-thumb {
    background: var(--skin-surface-3);
}

.item-in.box .post-module-thumb img {
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.item-in.box:hover .post-module-thumb img {
    transform: scale(1.05);
}

.post-info h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.post-info h2 a {
    transition: color 0.18s ease;
}

.post-excerpt {
    font-size: 12.5px;
    line-height: 1.75;
}

.post-list-meta li span,
.list-footer {
    font-size: 11.5px;
}

/* 分页 */
.ajax-pager .button {
    border-radius: 8px !important;
    background: var(--skin-surface-3) !important;
    color: var(--skin-soft) !important;
    font-weight: 500 !important;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.ajax-pager .button:hover {
    background: var(--skin-brand-soft) !important;
    color: var(--skin-brand) !important;
}

.ajax-pager .button.selected,
.ajax-pager .button[disabled] {
    background: var(--skin-brand) !important;
    color: #fff !important;
}

.pager-center {
    height: 38px;
    border: 1px solid var(--skin-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: var(--skin-muted);
    line-height: 38px;
}

.pager-center input {
    background: transparent;
}

/* 文章正文排版 */
.entry-header h1 {
    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.entry-content {
    font-size: 16px;
    line-height: 1.9;
}

.entry-content p {
    margin-bottom: 1.15em;
}

.entry-content h2 {
    margin: 2em 0 0.75em;
    padding-left: 12px;
    border-left: 3px solid var(--skin-brand);
    font-size: 23px;
    line-height: 1.45;
    letter-spacing: -0.02em;
    scroll-margin-top: 92px;
}

.entry-content h3 {
    margin: 1.7em 0 0.6em;
    font-size: 19px;
    letter-spacing: -0.01em;
    scroll-margin-top: 92px;
}

.entry-content h2:first-child,
.entry-content h3:first-child {
    margin-top: 0;
}

.entry-content img {
    border-radius: 10px;
}

.entry-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--skin-surface-3);
    color: var(--skin-brand-dark);
    font-size: 0.88em;
}

.entry-content pre {
    border-radius: 12px;
    background: #1b191d;
}

.entry-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.entry-content blockquote {
    padding: 14px 18px;
}

/* 侧栏小标题 */
.widget-title {
    position: relative;
    padding-left: 12px;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 14px;
    margin-top: -7px;
    border-radius: 2px;
    background: var(--skin-brand);
}

/* 页脚 */
.site-footer,
.site-footer-nav {
    background: linear-gradient(180deg, #fff 0%, var(--skin-surface-2) 100%) !important;
}

@media screen and (max-width: 768px) {
    /* 移动端保持原有的滚动隐藏逻辑，避免 sticky 与父主题收缩冲突 */
    .site-header,
    .site-header.social-top {
        position: relative;
    }

    .tax-header .tax-info {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .tax-search {
        width: 100%;
    }

    .tax-title {
        justify-content: flex-start;
    }

    .entry-content {
        font-size: 15.5px;
    }
}
