首页css


/* ============================================
   深度指南 · 全站统一样式（性能优化完整版）
   ============================================ */

/* ========== 全局不变变量 ========== */
:root {
    --theme-1: #8183ff1a;
    --theme-2: #8183ff33;
    --theme-3: #8183ff4d;
    --notice: #8183ff26;
    --bgc-0: #ffffff00;
    --text-keep: #f5f5f5;
    --tr3: all 0.3s;
    --tr6: all 0.6s cubic-bezier(0.28, 0.9, 0.34, 0.99);
}

/* ========== 日间模式 ========== */
[data-color-mode='light'] {
    --body: linear-gradient(135deg, #e8eaf6 0%, #d1c4e9 40%, #e0e6ff 100%);
    --bgc: rgba(255, 255, 255, 0.75);
    --bgc-sub: #f5f5f5;
    --bgc-blur: rgba(255, 255, 255, 0.65);
    --border: #d0d4dc;
    --box: 0 0 10px rgba(28, 31, 35, 0.1);
    --box-s: 0 2px 8px rgba(28, 31, 35, 0.03),
        0 16px 48px 8px rgba(28, 31, 35, 0.08);
    --box-p: 0 6px 14px rgba(0, 0, 0, 0.04);
    --text: #000000;
    --text-sub: #333333;
    --text-info: #666666;
    --theme: #6c5ce7;
    --theme-sub: #a29bfe;
    --radius: 12px;
    --radius-sub: 8px;
    --mask-3: rgba(0, 0, 0, 0.5);
    --mask-5: rgba(0, 0, 0, 0.8);
}

/* ========== 夜间模式 ========== */
[data-color-mode='night'] {
    --body: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a2e);
    --bgc: rgba(20, 18, 40, 0.55);
    --bgc-sub: #34363a;
    --bgc-blur: rgba(20, 18, 40, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --box: 0 0 10px rgba(28, 31, 35, 0.4);
    --box-s: 0 0 20px rgba(28, 31, 35, 0.5);
    --box-p: 0 8px 24px rgba(15, 12, 41, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.2);
    --text: #ffffff;
    --text-sub: #cccccc;
    --text-info: #999999;
    --theme: #b388ff;
    --theme-sub: #d1c4e9;
    --radius: 12px;
    --radius-sub: 8px;
    --mask-3: rgba(0, 0, 0, 0.6);
    --mask-5: rgba(0, 0, 0, 0.8);
}

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
    height: 100%;
}

html {
    scroll-padding-top: 70px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: none;
    color: var(--text);
    position: relative;
    transition: none;
}

/* 固定背景独立层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--body) no-repeat;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

section {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

li {
    list-style: none;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: var(--tr3);
}

a:hover {
    color: var(--theme);
}

img {
    object-fit: cover;
}

.container-small {
    width: 680px;
    margin: 0 auto;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

.container-full {
    width: 100%;
    padding: 0 30px;
}

/* ========== 选中与滚动条 ========== */
::selection {
    background-color: var(--theme-2);
}
::-webkit-selection {
    background-color: var(--theme-2);
}
::-moz-selection {
    background-color: var(--theme-2);
}

body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--theme);
}

/* =====================================================
   导航栏（毛玻璃）
   ===================================================== */
.headroom {
    transition: var(--tr6);
}
.headroom--pinned {
    transform: translateY(0%);
}
.headroom--unpinned {
    transform: translateY(-100%);
}

.nav-bar {
    height: 70px;
    background: var(--bgc-blur);
    backdrop-filter: blur(20px) saturate(110%);
    -webkit-backdrop-filter: blur(20px) saturate(110%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    box-sizing: border-box;
    transition: var(--tr3);
}

[data-color-mode='night'] .nav-bar {
    background: rgba(30, 28, 59, 0.7);
    backdrop-filter: blur(20px) saturate(110%);
    -webkit-backdrop-filter: blur(20px) saturate(110%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar .left,
.nav-bar .right {
    display: flex;
    align-items: center;
}
.nav-bar .left {
    max-width: calc(100% - 100px);
}
.nav-bar .logo {
    margin-right: 20px;
}
.nav-bar .logo img {
    width: 90px;
    vertical-align: middle;
}
.nav-bar .nav-menu {
    display: flex;
}
#nav-menu > ul,
#nav-menu-mb > ul {
    display: none;
}
.nav-bar .nav-menu .current-menu-item > a {
    color: var(--theme) !important;
}
.nav-bar .nav-menu .current-menu-item > a:hover {
    color: var(--text-keep) !important;
}
.nav-bar .nav-menu > .current-menu-item > a:hover {
    color: var(--theme) !important;
}
.nav-bar .nav-menu > li .sub-menu > li .sub-menu > li .sub-menu > li .sub-menu {
    display: none;
}
.nav-bar .nav-menu a {
    font-size: 15px;
}
.nav-bar .nav-menu .menu-item-has-children > a::after {
    content: '▾';
}
.nav-bar .nav-menu > li > a {
    display: block;
    padding: 10px 0;
    margin: 0 10px;
    position: relative;
    transition: var(--tr3);
    overflow: hidden;
}
.nav-bar .nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--theme), var(--theme-sub));
    transition: var(--tr3);
}
.nav-bar .nav-menu > li > a:hover::before {
    left: 0;
}

/* 下拉菜单毛玻璃 */
.nav-bar .nav-menu .sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    width: auto;
    height: auto;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px) saturate(110%);
    -webkit-backdrop-filter: blur(18px) saturate(110%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius);
    padding: 6px 8px;
    transform: translateY(10px);
    transition: var(--tr3);
}
[data-color-mode='night'] .nav-bar .nav-menu .sub-menu {
    background: rgba(30, 28, 59, 0.85);
    backdrop-filter: blur(18px) saturate(110%);
    -webkit-backdrop-filter: blur(18px) saturate(110%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.nav-bar .nav-menu .sub-menu li {
    padding: 2px 0;
}
.nav-bar .nav-menu .sub-menu li a {
    display: block;
    color: var(--text-sub);
    padding: 4px 50px 4px 6px;
    border-radius: var(--radius-sub);
    transition: var(--tr3);
}
.nav-bar .nav-menu .sub-menu li a:hover {
    color: var(--text-keep);
    background: var(--theme);
}
.nav-bar .nav-menu > li:hover > .sub-menu {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}
.nav-bar .nav-menu .sub-menu li > .sub-menu {
    width: 100%;
    position: absolute;
    transform: translateY(2px);
    margin-left: calc(100% - 16px);
    margin-top: -28px;
    transition: var(--tr3);
}
.nav-bar .nav-menu .sub-menu .sub-menu a {
    padding: 4px 0 4px 6px;
}
.nav-bar .nav-menu .sub-menu li:hover > .sub-menu {
    transform: translateY(-8px);
    visibility: visible;
    opacity: 1;
}
.nav-bar .nav-menu .sub-menu li .sub-menu li:hover .sub-menu {
    transform: translateY(-8px);
    visibility: visible;
    opacity: 1;
}

/* 用户区域 */
.nav-bar .admin {
    position: absolute;
    right: 30px;
    border-radius: 50%;
}
.nav-bar .admin img {
    cursor: pointer;
    transition: var(--tr3);
}
.nav-bar .admin:hover img {
    opacity: 0.8;
}
.nav-bar .admin img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
}
.nav-bar .user-set {
    position: absolute;
    right: 0px;
    top: 70px;
    width: auto;
    height: auto;
    padding: 10px 8px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(110%);
    -webkit-backdrop-filter: blur(20px) saturate(110%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transform: translateY(8px);
    visibility: hidden;
    opacity: 0;
    transition: var(--tr3);
    z-index: 2;
}
[data-color-mode='night'] .nav-bar .user-set {
    background: rgba(30, 28, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.nav-bar .user-set a {
    display: block;
    color: var(--text-sub);
    font-size: 15px;
    padding: 4px 6px 4px 6px;
    border-radius: var(--radius-sub);
    margin-bottom: 4px;
    transition: var(--tr3);
}
.nav-bar .user-set a:last-child {
    margin-bottom: 0;
}
.nav-bar .user-set a:hover {
    color: var(--text-keep);
    background: var(--theme);
}
.nav-bar .user-set-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.nav-bar .login {
    color: var(--text-sub);
    cursor: pointer;
    right: 30px;
    position: absolute;
}
.nav-bar .login span {
    font-size: 22px;
    transition: var(--tr3);
}
.nav-bar .login span:hover {
    color: var(--theme);
}

/* 移动端导航 */
.nav-bar-mb,
.menu-mb-mask,
.menu-mb {
    display: none;
}

@media screen and (max-width: 960px) {
    .nav-bar {
        display: none;
    }
    .nav-bar-mb {
        height: 70px;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(20px) saturate(110%);
        -webkit-backdrop-filter: blur(20px) saturate(110%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 8;
        padding: 0 20px;
        box-sizing: border-box;
        transition: var(--tr3);
    }
    [data-color-mode='night'] .nav-bar-mb {
        background: rgba(30, 28, 59, 0.7);
        backdrop-filter: blur(20px) saturate(110%);
        -webkit-backdrop-filter: blur(20px) saturate(110%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-bar-mb .center .logo-mb img {
        height: 32px;
        vertical-align: middle;
    }
    .nav-bar-mb .left,
    .nav-bar-mb .right {
        width: 32px;
    }
    .nav-bar-mb .right {
        text-align: right;
    }
    .nav-bar-mb .left span,
    .nav-bar-mb .login span {
        font-size: 24px;
        color: var(--text-sub);
        cursor: pointer;
        vertical-align: middle;
        transition: var(--tr3);
    }
    .nav-bar-mb .login span {
        font-size: 22px;
    }
    .nav-bar-mb .left span:hover,
    .nav-bar-mb .login span:hover {
        color: var(--theme);
    }
    .nav-bar-mb .admin {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }
    .nav-bar-mb .admin img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        cursor: pointer;
        transition: var(--tr3);
    }
    .nav-bar-mb .admin img:hover {
        opacity: 0.8;
    }
    .nav-bar-mb .user-set {
        position: absolute;
        right: 0px;
        top: 70px;
        width: auto;
        height: auto;
        padding: 10px 8px;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(20px) saturate(110%);
        -webkit-backdrop-filter: blur(20px) saturate(110%);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        transform: translateY(8px);
        visibility: hidden;
        opacity: 0;
        transition: var(--tr3);
        z-index: 2;
    }
    [data-color-mode='night'] .nav-bar-mb .user-set {
        background: rgba(30, 28, 59, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    .nav-bar-mb .user-set-open-mb {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }
    .nav-bar-mb .user-set a {
        display: block;
        color: var(--text-sub);
        font-size: 15px;
        padding: 4px 6px 4px 6px;
        border-radius: var(--radius-sub);
        margin-bottom: 4px;
        transition: var(--tr3);
    }
    .nav-bar-mb .user-set a:last-child {
        margin-bottom: 0;
    }
    .nav-bar-mb .user-set a:hover {
        color: var(--text-keep);
        background: var(--theme);
    }
    .menu-mb {
        display: block;
        position: fixed;
        top: 0;
        left: -70%;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px) saturate(110%);
        -webkit-backdrop-filter: blur(20px) saturate(110%);
        border-right: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
        width: 70%;
        height: 100%;
        overflow: auto;
        transition: var(--tr6);
        z-index: 10;
    }
    [data-color-mode='night'] .menu-mb {
        background: rgba(30, 33, 38, 0.9);
        backdrop-filter: blur(20px) saturate(110%);
        -webkit-backdrop-filter: blur(20px) saturate(110%);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }
    .menu-mb-open {
        left: 0;
        transition: var(--tr6);
    }
    .menu-mb::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    .menu-mb-mask {
        display: block;
        opacity: 0;
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--mask-5);
        transition: var(--tr6);
        z-index: 9;
    }
    .menu-mb-mask-block {
        opacity: 1;
        visibility: visible;
        transition: var(--tr6);
    }
    .menu-mb-top {
        width: 70%;
        height: 70px;
        position: fixed;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0 10px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px) saturate(110%);
        -webkit-backdrop-filter: blur(20px) saturate(110%);
        z-index: 10;
        box-sizing: border-box;
        transition: var(--tr3);
    }
    [data-color-mode='night'] .menu-mb-top {
        background: rgba(30, 33, 38, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .menu-mb-top .menu-mb-box {
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .menu-mb-top .menu-mb-box .user-info {
        display: flex;
        align-items: center;
        width: calc(100% - 50px);
    }
    .menu-mb-top .menu-mb-box .user-info > .visitor {
        display: flex;
        align-items: center;
        width: 100%;
        transition: var(--tr3);
    }
    .menu-mb-top .menu-mb-box .user-info > .visitor p {
        line-height: 40px;
        color: var(--text-sub);
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        transition: var(--tr3);
    }
    .menu-mb-top .menu-mb-box .user-info img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin-right: 8px;
    }
    .menu-mb-top .menu-mb-box .user-info > span {
        font-size: 16px;
    }
    .menu-mb-top .menu-mb-box > span {
        font-size: 22px;
        color: var(--text);
        cursor: pointer;
        transition: var(--tr3);
    }
    .menu-mb-top .menu-mb-box > span:hover {
        color: var(--theme);
    }
    .nav-mb-content {
        padding: 70px 0 80px;
    }
    .nav-mb {
        margin: 10px;
    }
    .nav-mb .nav-menu-mb a {
        transition: var(--tr3);
    }
    .nav-menu-mb .current-menu-item > a {
        color: var(--text-keep) !important;
        background: var(--theme);
    }
    .nav-menu-mb .current-menu-item > a:hover {
        color: var(--text-keep) !important;
    }
    .nav-mb .nav-menu-mb li a {
        font-size: 14px;
        color: var(--text);
        margin-bottom: 0;
    }
    .nav-mb .nav-menu-mb > li {
        margin-bottom: 10px;
    }
    .nav-mb .nav-menu-mb > li a {
        display: block;
        padding: 10px;
        border-radius: var(--radius);
        transition: var(--tr3);
    }
    .nav-mb .nav-menu-mb > li a:hover {
        background: var(--theme);
        color: var(--text-keep);
    }
    .nav-mb .nav-menu-mb > li ul {
        border-left: 2px solid var(--border);
        margin-left: 10px;
        transition: var(--tr3);
    }
    .nav-mb .nav-menu-mb > li ul a {
        margin: 5px 0 5px 10px;
        border-radius: var(--radius);
        color: var(--text-sub);
    }
    .nav-mb .nav-menu-mb > li ul a:hover {
        background: var(--theme);
        color: var(--text-keep);
    }
    .nav-mb .nav-menu-mb > li > ul ul {
        margin-left: 20px;
    }
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* =====================================================
   首页搜索区
   ===================================================== */
.hero-search-wrapper {
    position: relative;
    width: 100%;
    padding: 180px 20px 50px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a2e);
    background-attachment: fixed;
    background-size: cover;
}
[data-color-mode='light'] .hero-search-wrapper {
    background: var(--body);
    background-attachment: fixed;
    background-size: cover;
}

.hero-search-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            ellipse 600px 400px at 20% 30%,
            rgba(108, 92, 231, 0.3) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 500px 350px at 80% 60%,
            rgba(162, 155, 254, 0.25) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 400px 300px at 50% 80%,
            rgba(99, 102, 241, 0.2) 0%,
            transparent 70%
        );
    z-index: 0;
    animation: heroOrbFloat 8s ease-in-out infinite alternate;
}
@keyframes heroOrbFloat {
    0% {
        opacity: 0.6;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-10px, 15px) scale(1.05);
    }
    100% {
        opacity: 0.7;
        transform: translate(10px, -10px) scale(0.98);
    }
}
[data-color-mode='light'] .hero-search-wrapper::before {
    background: radial-gradient(
            ellipse 600px 400px at 20% 30%,
            rgba(108, 92, 231, 0.15) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 500px 350px at 80% 60%,
            rgba(162, 155, 254, 0.12) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 400px 300px at 50% 80%,
            rgba(99, 102, 241, 0.1) 0%,
            transparent 70%
        );
}

.hero-search-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: radial-gradient(
            2px 2px at 10% 20%,
            rgba(255, 255, 255, 0.4),
            transparent
        ),
        radial-gradient(
            2px 2px at 30% 65%,
            rgba(255, 255, 255, 0.3),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 50% 15%,
            rgba(255, 255, 255, 0.35),
            transparent
        ),
        radial-gradient(
            2px 2px at 70% 45%,
            rgba(255, 255, 255, 0.25),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 85% 75%,
            rgba(255, 255, 255, 0.3),
            transparent
        ),
        radial-gradient(
            2px 2px at 15% 85%,
            rgba(255, 255, 255, 0.2),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 60% 90%,
            rgba(255, 255, 255, 0.35),
            transparent
        ),
        radial-gradient(
            2px 2px at 90% 20%,
            rgba(255, 255, 255, 0.25),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 40% 40%,
            rgba(255, 255, 255, 0.3),
            transparent
        ),
        radial-gradient(
            2px 2px at 25% 50%,
            rgba(255, 255, 255, 0.2),
            transparent
        );
    animation: heroParticleDrift 20s linear infinite;
}
[data-color-mode='light'] .hero-search-wrapper::after {
    background-image: radial-gradient(
            2px 2px at 10% 20%,
            rgba(108, 92, 231, 0.25),
            transparent
        ),
        radial-gradient(
            2px 2px at 30% 65%,
            rgba(108, 92, 231, 0.2),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 50% 15%,
            rgba(162, 155, 254, 0.2),
            transparent
        ),
        radial-gradient(
            2px 2px at 70% 45%,
            rgba(99, 102, 241, 0.15),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 85% 75%,
            rgba(108, 92, 231, 0.2),
            transparent
        ),
        radial-gradient(
            2px 2px at 15% 85%,
            rgba(162, 155, 254, 0.15),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 60% 90%,
            rgba(99, 102, 241, 0.2),
            transparent
        ),
        radial-gradient(
            2px 2px at 90% 20%,
            rgba(108, 92, 231, 0.15),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 40% 40%,
            rgba(162, 155, 254, 0.2),
            transparent
        ),
        radial-gradient(
            2px 2px at 25% 50%,
            rgba(99, 102, 241, 0.15),
            transparent
        );
}
@keyframes heroParticleDrift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-30px);
    }
}

.hero-search-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
[data-color-mode='light'] .hero-title {
    color: var(--text);
    text-shadow: none;
}
.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 28px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
[data-color-mode='light'] .hero-desc {
    color: var(--text-sub);
    text-shadow: none;
}
.hero-search-form {
    margin-bottom: 24px;
}
.hero-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
[data-color-mode='light'] .hero-search-box {
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(108, 92, 231, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero-search-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(108, 92, 231, 0.6),
        rgba(162, 155, 254, 0.6),
        transparent
    );
    background-size: 200% 100%;
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: heroBorderGlow 3s linear infinite;
}
.hero-search-box:focus-within::before,
.hero-search-box:hover::before {
    opacity: 1;
}
@keyframes heroBorderGlow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
.hero-search-box:focus-within {
    border-color: rgba(108, 92, 231, 0.8);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.15),
        0 0 60px rgba(162, 155, 254, 0.08);
}
[data-color-mode='light'] .hero-search-box:focus-within {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--theme);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}
.hero-search-box i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
    flex-shrink: 0;
    transition: color 0.3s;
}
[data-color-mode='light'] .hero-search-box i {
    color: var(--text-info);
}
.hero-search-box:focus-within i {
    color: var(--theme);
}
.hero-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #fff;
    padding: 10px 0;
    min-width: 0;
}
[data-color-mode='light'] .hero-search-box input {
    color: var(--text);
}
.hero-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
[data-color-mode='light'] .hero-search-box input::placeholder {
    color: var(--text-info);
    opacity: 0.7;
}
.hero-search-box button {
    background: linear-gradient(to right, var(--theme), var(--theme-sub));
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}
.hero-search-box button:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    transform: translateY(-1px);
}
.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}
[data-color-mode='light'] .hero-stats {
    color: var(--text-info);
}
.hero-stats span {
    white-space: nowrap;
}
.hero-stats span i {
    color: var(--theme-sub);
    margin-right: 4px;
}
[data-color-mode='light'] .hero-stats span i {
    color: var(--theme);
}
.hero-update {
    opacity: 0.8;
}

/* =====================================================
   首页内容区
   ===================================================== */
.wrapper-home {
    margin-top: 100px;
}
.wrapper-home .swiper {
    --swiper-navigation-size: 24px;
    --swiper-navigation-color: var(--bgc);
    border-radius: var(--radius);
    overflow: hidden;
}
.wrapper-home .swiper-pagination {
    bottom: 20px !important;
}
.wrapper-home .swiper-button-prev {
    left: 0;
}
.wrapper-home .swiper-button-next {
    right: 0;
}
.wrapper-home .swiper-button-prev,
.wrapper-home .swiper-button-next {
    transform: translateY(-50%);
    margin-top: 0;
    padding: 25px 20px;
    visibility: hidden;
    opacity: 0;
    color: var(--text-keep);
    transition: var(--tr3);
}
.wrapper-home .swiper-button-prev:hover,
.wrapper-home .swiper-button-next:hover {
    background-color: var(--mask-5);
}
.wrapper-home .swiper:hover .swiper-button-prev,
.wrapper-home .swiper:hover .swiper-button-next {
    visibility: visible;
    opacity: 1;
}
.wrapper-home .swiper-pagination-bullet {
    height: 6px;
    background-color: var(--text-keep);
    padding: 0 10px;
    border-radius: 8px;
    transition: var(--tr3);
}
.wrapper-home .swiper-pagination-bullet-active {
    padding: 0 20px;
}
.wrapper-home .swiper-slide {
    background-color: var(--bgc);
    width: 100%;
    height: 0;
    border-radius: var(--radius);
    padding-bottom: 40%;
    position: relative;
    overflow: hidden;
}
.wrapper-home .swiper-slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    vertical-align: middle;
}
.wrapper-home .swiper-slide .swiper-img-mask {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to top, var(--mask-3), var(--bgc-0));
    border-radius: var(--radius);
}
.wrapper-home .swiper-slide .title {
    width: 100%;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 5px var(--mask-3);
    color: var(--text-keep);
    line-height: 1.5;
    position: absolute;
    bottom: 15%;
    padding: 0 50px;
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.wrapper .banner {
    width: 1200px;
    height: 300px;
    position: absolute;
    left: 50%;
    opacity: 0.5;
    transform: translateX(-50%);
    background-image: url('../static/img/banner.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -10;
    padding: 0 30px;
}
.wrapper {
    margin-top: 70px;
    width: 100%;
    height: 200px;
    border-bottom: 1px solid var(--border);
    transition: var(--tr3);
}
.content-wrapper {
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.content-wrapper .text-wrapper {
    width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.content-wrapper .text-wrapper h2 {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 5px;
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: var(--tr3);
}
.content-wrapper .text-wrapper i {
    color: var(--text-sub);
    line-height: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--tr3);
}
.main-content {
    margin-bottom: 20px;
}
.main-content .notice {
    width: 100%;
    height: 50px;
    margin-top: 30px;
    background: var(--notice);
    border-radius: var(--radius);
    padding: 0 10px;
}
.main-content .notice .notice-box {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.main-content .notice .notice-box::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.main-content .notice .notice-box span {
    font-size: 22px;
    color: var(--text);
    margin-right: 10px;
    transition: var(--tr3);
}
.main-content .notice .notice-box p {
    font-size: 15px;
    color: var(--text-sub);
    transition: var(--tr3);
}

.content .title-part {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}
.content .title-part p {
    max-width: calc(100% - 300px);
    padding-bottom: 5px;
    border-bottom: 3px solid var(--theme);
    font-size: 15px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--tr3);
}
.content .title-part p span {
    color: var(--theme);
    display: flex;
    align-items: center;
}
.content .title-part .cate span::before {
    content: '\eac5';
    font-family: 'iconfont';
    margin-right: 3px;
}
.content .title-part .tag span::before {
    content: '#';
    font-family: 'iconfont';
}
.content .title-part .date span::before {
    content: '\e74b';
    font-family: 'iconfont';
    font-size: 18px;
}
.content .title-part .name span::before {
    content: '\e744';
    font-family: 'iconfont';
    font-size: 18px;
}
.content .title-part .search::before {
    content: '\e752';
    font-family: 'iconfont';
    margin-right: 3px;
}
.content .title-part .cate span,
.content .title-part .tag span,
.content .title-part .date span,
.content .title-part .name span {
    margin-right: 10px;
}

/* 大卡片网格（移除毛玻璃，提升性能） */
.content .main-part {
    width: 100%;
}
.content .main-part > ul {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 1fr;
    align-items: start;
}

/* 卡片本体（优化：移除 backdrop-filter，硬件加速） */
.content .main-part > ul > li.card-item {
    display: block !important;
    position: relative;
    background: var(--bgc);
    /* 已移除 blur 效果 */
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.06),
                0 1px 4px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 6px;
    overflow: hidden;
    min-height: 200px;
    max-height: 220px;
    transition: all 0.25s ease;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: transform;
}
.content .main-part > ul > li.card-item:hover,
.content .main-part > ul > li.card-item:active {
    border-color: rgba(108, 92, 231, 0.6) !important;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.12),
                0 2px 6px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 深色模式大卡片 */
[data-color-mode='night'] .content .main-part > ul > li.card-item {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-color-mode='night'] .content .main-part > ul > li.card-item:hover {
    border-color: var(--theme) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 封面 */
.content .main-part ul li .home-pic {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 10px;
}
.cover-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.cover-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius);
    z-index: 1;
    transition: background 0.3s ease;
    pointer-events: none;
}
[data-color-mode='night'] .cover-link::after {
    background: rgba(0, 0, 0, 0.4);
}
.cover-link:hover::after {
    background: rgba(0, 0, 0, 0.1);
}
[data-color-mode='night'] .cover-link:hover::after {
    background: rgba(0, 0, 0, 0.25);
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}
.cover-link:hover .cover-img {
    transform: scale(1.05);
}

.post-top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8;
    font-size: 12px;
    color: #fff;
    padding: 2px 10px;
    background: linear-gradient(135deg, var(--theme), var(--theme-sub));
    border-radius: var(--radius) 0 var(--radius) 0;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.mask-pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: var(--radius);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s;
    z-index: 5;
}
.cover-link:hover .mask-pic {
    background-color: var(--mask-3);
    opacity: 1;
}
.mask-pic span {
    color: #fff;
    font-size: 32px;
}

/* 六芒星图标（完整SVG） */
.card-site-icon {
    position: absolute;
    bottom: 6px;
    left: -12px;
    z-index: 8;
    width: 60px;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-site-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 511.573 511.573' xml:space='preserve'%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ff0000' /%3E%3Cstop offset='16%25' stop-color='%23ff7f00' /%3E%3Cstop offset='33%25' stop-color='%23ffff00' /%3E%3Cstop offset='50%25' stop-color='%2300ff00' /%3E%3Cstop offset='66%25' stop-color='%230000ff' /%3E%3Cstop offset='83%25' stop-color='%234b0082' /%3E%3Cstop offset='100%25' stop-color='%238b00ff' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(1 1)'%3E%3Cg%3E%3Cpath d='M451.053,348.44H75.587c-3.413,0-5.973-1.707-7.68-4.267c-1.707-2.56-1.707-5.973,0-8.533l187.733-332.8c3.413-5.12,11.947-5.12,14.507,0l187.733,332.8c1.707,2.56,1.707,5.973,0,8.533C457.027,346.733,454.467,348.44,451.053,348.44z M90.093,331.373h346.453L263.32,24.173L90.093,331.373z' fill='none' stroke='url(%23grad)' stroke-width='3' /%3E%3Cpath d='M276.12,462.787c-1.707,0-2.56,0-4.267-0.853c-5.12-3.413-11.093-3.413-17.067,0c-1.707,0.853-4.267,1.707-6.827,0.853s-4.267-1.707-5.12-4.267l-162.133-289.28c-2.56-4.267-0.853-9.387,3.413-11.947c5.12-3.413,8.533-8.533,8.533-14.507c0-5.12,3.413-8.533,8.533-8.533h324.267c5.12,0,8.533,3.413,8.533,8.533c0,5.973,3.413,11.947,8.533,14.507c4.267,2.56,5.973,7.68,3.413,11.947l-162.133,289.28C282.093,461.08,278.68,462.787,276.12,462.787z M263.32,442.307c2.56,0,5.973,0,8.533,0.853L427.16,167.533c-4.267-4.267-7.68-10.24-9.387-16.213H108.867c-1.707,5.973-5.12,11.947-9.387,16.213l155.307,275.627C257.347,442.307,260.76,442.307,263.32,442.307z' fill='none' stroke='url(%23grad)' stroke-width='2' /%3E%3C/g%3E%3Cg%3E%3Cpath d='M468.12,143.64c0-14.507-11.093-25.6-25.6-25.6s-25.6,11.093-25.6,25.6s11.093,25.6,25.6,25.6S468.12,158.147,468.12,143.64z' fill='none' stroke='url(%23grad)' stroke-width='2' /%3E%3Cpath d='M92.653,143.64c0-14.507-11.093-25.6-25.6-25.6s-25.6,11.093-25.6,25.6s11.093,25.6,25.6,25.6S92.653,158.147,92.653,143.64z' fill='none' stroke='url(%23grad)' stroke-width='2' /%3E%3Cpath d='M280.387,476.44c0-14.507-11.093-25.6-25.6-25.6s-25.6,11.093-25.6,25.6c0,14.507,11.093,25.6,25.6,25.6S280.387,490.947,280.387,476.44z' fill='none' stroke='url(%23grad)' stroke-width='2' /%3E%3C/g%3E%3Cpath d='M442.52,348.44H67.053c-3.413,0-5.973-1.707-7.68-4.267c-1.707-2.56-1.707-5.973,0-8.533l187.733-332.8c3.413-5.12,11.947-5.12,14.507,0l187.733,332.8c1.707,2.56,1.707,5.973,0,8.533C448.493,346.733,445.933,348.44,442.52,348.44z M81.56,331.373h346.453l-173.227-307.2L81.56,331.373z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3Cpath d='M442.52,177.773c-18.773,0-34.133-15.36-34.133-34.133s15.36-34.133,34.133-34.133s34.133,15.36,34.133,34.133S461.293,177.773,442.52,177.773z M442.52,126.573c-9.387,0-17.067,7.68-17.067,17.067c0,9.387,7.68,17.067,17.067,17.067s17.067-7.68,17.067-17.067C459.587,134.253,451.907,126.573,442.52,126.573z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3Cpath d='M67.053,177.773c-18.773,0-34.133-15.36-34.133-34.133s15.36-34.133,34.133-34.133s34.133,15.36,34.133,34.133S85.827,177.773,67.053,177.773z M67.053,126.573c-9.387,0-17.067,7.68-17.067,17.067c0,9.387,7.68,17.067,17.067,17.067s17.067-7.68,17.067-17.067C84.12,134.253,76.44,126.573,67.053,126.573z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3Cpath d='M254.787,510.573c-18.773,0-34.133-15.36-34.133-34.133s15.36-34.133,34.133-34.133s34.133,15.36,34.133,34.133S273.56,510.573,254.787,510.573z M254.787,459.373c-9.387,0-17.067,7.68-17.067,17.067s7.68,17.067,17.067,17.067c9.387,0,17.067-7.68,17.067-17.067S264.173,459.373,254.787,459.373z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3Cpath d='M267.587,462.787c-1.707,0-2.56,0-4.267-0.853c-5.12-3.413-11.093-3.413-17.067,0c-1.707,0.853-4.267,1.707-6.827,0.853c-2.56-0.853-4.267-1.707-5.12-4.267l-162.133-289.28c-2.56-4.267-0.853-9.387,3.413-11.947c5.12-3.413,8.533-8.533,8.533-14.507c0-5.12,3.413-8.533,8.533-8.533H416.92c5.12,0,8.533,3.413,8.533,8.533c0,5.973,3.413,11.947,8.533,14.507c4.267,2.56,5.973,7.68,3.413,11.947l-162.133,289.28C273.56,461.08,270.147,462.787,267.587,462.787z M254.787,442.307c2.56,0,5.973,0,8.533,0.853l155.307-275.627c-4.267-4.267-7.68-10.24-9.387-16.213H100.333c-1.707,5.973-5.12,11.947-9.387,16.213l155.307,275.627C248.813,442.307,252.227,442.307,254.787,442.307z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
    pointer-events: none;
}
[data-color-mode='night'] .card-site-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 511.573 511.573' xml:space='preserve'%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ff6ec7' /%3E%3Cstop offset='33%25' stop-color='%237874ff' /%3E%3Cstop offset='66%25' stop-color='%2344a0ff' /%3E%3Cstop offset='100%25' stop-color='%2300e5ff' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(1 1)'%3E%3Cg%3E%3Cpath d='M451.053,348.44H75.587c-3.413,0-5.973-1.707-7.68-4.267c-1.707-2.56-1.707-5.973,0-8.533l187.733-332.8c3.413-5.12,11.947-5.12,14.507,0l187.733,332.8c1.707,2.56,1.707,5.973,0,8.533C457.027,346.733,454.467,348.44,451.053,348.44z M90.093,331.373h346.453L263.32,24.173L90.093,331.373z' fill='none' stroke='url(%23grad)' stroke-width='2' /%3E%3Cpath d='M276.12,462.787c-1.707,0-2.56,0-4.267-0.853c-5.12-3.413-11.093-3.413-17.067,0c-1.707,0.853-4.267,1.707-6.827,0.853s-4.267-1.707-5.12-4.267l-162.133-289.28c-2.56-4.267-0.853-9.387,3.413-11.947c5.12-3.413,8.533-8.533,8.533-14.507c0-5.12,3.413-8.533,8.533-8.533h324.267c5.12,0,8.533,3.413,8.533,8.533c0,5.973,3.413,11.947,8.533,14.507c4.267,2.56,5.973,7.68,3.413,11.947l-162.133,289.28C282.093,461.08,278.68,462.787,276.12,462.787z M263.32,442.307c2.56,0,5.973,0,8.533,0.853L427.16,167.533c-4.267-4.267-7.68-10.24-9.387-16.213H108.867c-1.707,5.973-5.12,11.947-9.387,16.213l155.307,275.627C257.347,442.307,260.76,442.307,263.32,442.307z' fill='none' stroke='url(%23grad)' stroke-width='4' /%3E%3C/g%3E%3Cg%3E%3Cpath d='M468.12,143.64c0-14.507-11.093-25.6-25.6-25.6s-25.6,11.093-25.6,25.6s11.093,25.6,25.6,25.6S468.12,158.147,468.12,143.64z' fill='none' stroke='url(%23grad)' stroke-width='2' /%3E%3Cpath d='M92.653,143.64c0-14.507-11.093-25.6-25.6-25.6s-25.6,11.093-25.6,25.6s11.093,25.6,25.6,25.6S92.653,158.147,92.653,143.64z' fill='none' stroke='url(%23grad)' stroke-width='2' /%3E%3Cpath d='M280.387,476.44c0-14.507-11.093-25.6-25.6-25.6s-25.6,11.093-25.6,25.6c0,14.507,11.093,25.6,25.6,25.6S280.387,490.947,280.387,476.44z' fill='none' stroke='url(%23grad)' stroke-width='2' /%3E%3C/g%3E%3Cpath d='M442.52,348.44H67.053c-3.413,0-5.973-1.707-7.68-4.267c-1.707-2.56-1.707-5.973,0-8.533l187.733-332.8c3.413-5.12,11.947-5.12,14.507,0l187.733,332.8c1.707,2.56,1.707,5.973,0,8.533C448.493,346.733,445.933,348.44,442.52,348.44z M81.56,331.373h346.453l-173.227-307.2L81.56,331.373z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3Cpath d='M442.52,177.773c-18.773,0-34.133-15.36-34.133-34.133s15.36-34.133,34.133-34.133s34.133,15.36,34.133,34.133S461.293,177.773,442.52,177.773z M442.52,126.573c-9.387,0-17.067,7.68-17.067,17.067c0,9.387,7.68,17.067,17.067,17.067s17.067-7.68,17.067-17.067C459.587,134.253,451.907,126.573,442.52,126.573z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3Cpath d='M67.053,177.773c-18.773,0-34.133-15.36-34.133-34.133s15.36-34.133,34.133-34.133s34.133,15.36,34.133,34.133S85.827,177.773,67.053,177.773z M67.053,126.573c-9.387,0-17.067,7.68-17.067,17.067c0,9.387,7.68,17.067,17.067,17.067s17.067-7.68,17.067-17.067C84.12,134.253,76.44,126.573,67.053,126.573z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3Cpath d='M254.787,510.573c-18.773,0-34.133-15.36-34.133-34.133s15.36-34.133,34.133-34.133s34.133,15.36,34.133,34.133S273.56,510.573,254.787,510.573z M254.787,459.373c-9.387,0-17.067,7.68-17.067,17.067s7.68,17.067,17.067,17.067c9.387,0,17.067-7.68,17.067-17.067S264.173,459.373,254.787,459.373z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3Cpath d='M267.587,462.787c-1.707,0-2.56,0-4.267-0.853c-5.12-3.413-11.093-3.413-17.067,0c-1.707,0.853-4.267,1.707-6.827,0.853c-2.56-0.853-4.267-1.707-5.12-4.267l-162.133-289.28c-2.56-4.267-0.853-9.387,3.413-11.947c5.12-3.413,8.533-8.533,8.533-14.507c0-5.12,3.413-8.533,8.533-8.533H416.92c5.12,0,8.533,3.413,8.533,8.533c0,5.973,3.413,11.947,8.533,14.507c4.267,2.56,5.973,7.68,3.413,11.947l-162.133,289.28C273.56,461.08,270.147,462.787,267.587,462.787z M254.787,442.307c2.56,0,5.973,0,8.533,0.853l155.307-275.627c-4.267-4.267-7.68-10.24-9.387-16.213H100.333c-1.707,5.973-5.12,11.947-9.387,16.213l155.307,275.627C248.813,442.307,252.227,442.307,254.787,442.307z' fill='none' stroke='url(%23grad)' stroke-width='6.5' /%3E%3C/g%3E%3C/svg%3E");
}
.card-site-icon img {
    width: 35% !important;
    height: 35% !important;
    object-fit: contain;
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 auto;
    transform: translateY(-2%);
}

@keyframes spinHex {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.card-site-icon::before {
    z-index: 1;
    animation: spinHex 2s linear infinite;
    animation-play-state: paused;
}
.card-item:hover .card-site-icon::before {
    animation-play-state: running;
}

@media screen and (min-width: 1280px) {
    .card-site-icon { width: 32px; height: 32px; bottom: 1px; left: 5px; }
}
@media screen and (max-width: 1279px) and (min-width: 641px) {
    .card-site-icon { width: 36px; height: 36px; bottom: 5px; left: -10px; }
}
@media screen and (max-width: 640px) {
    .card-site-icon { width: 32px; height: 32px; bottom: 4px; left: -8px; }
}

/* 封面底部浮层 */
.cover-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 12px 6px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 6;
    min-height: 36px;
    box-sizing: border-box;
}
.title-area { flex: 1; min-width: 0; margin-bottom: 2px; padding-left: 25px; }
.home-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.home-title a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: opacity 0.2s;
}
.home-title a:hover { opacity: 0.85; }
.card-direct-btn {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, var(--theme), var(--theme-sub));
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
}
.card-item:hover .card-direct-btn { opacity: 1; visibility: visible; }
.card-direct-btn i { font-size: 13px; }
.card-direct-btn:hover { background: var(--theme-sub); transform: scale(1.05); color: #fff; }

@media screen and (min-width: 641px) { .title-area { padding-left: 28px; } }
@media screen and (min-width: 960px) { .title-area { padding-left: 30px; } }
@media screen and (min-width: 1280px) { .title-area { padding-left: 26px; } }
@media screen and (max-width: 640px) { .title-area { padding-left: 22px; } }

.home-detail { padding-top: -1px; }
.home-excerpt {
    font-size: 13px;
    color: var(--text-info);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.home-msg {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-info);
    gap: 10px;
    row-gap: 6px;
}
.home-msg .home-watch,
.home-msg .home-hits,
.home-msg .home-comments { display: flex; align-items: center; gap: 4px; }
.home-msg .home-comments a { color: var(--text-info); transition: 0.2s; }
.home-msg .home-comments a:hover { color: var(--theme); }

/* 推荐指数徽章 */
.home-score-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 3px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}
.card-item:hover .home-score-badge {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.score-star { font-size: 14px; color: #FFD700; text-shadow: 0 1px 3px rgba(0,0,0,0.4); display: inline-block; margin-top: -1px; }
.score-value { font-weight: 700; color: var(--theme); letter-spacing: 0.3px; }
[data-color-mode="night"] .home-score-badge {
    background: rgba(50,55,70,0.7);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* 收藏按钮 */
.card-favorite-absolute { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.home-favorite-wrap { display: inline-flex; align-items: center; gap: 3px; }
.home-favorite-btn {
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bgc);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer; transition: all 0.2s ease; flex-shrink: 0;
}
.home-favorite-btn i { font-size: 11px; color: var(--text-info); transition: all 0.2s ease; width: 11px; text-align: center; }
.home-favorite-btn:hover { border-color: var(--theme); }
.home-favorite-btn:hover i { color: var(--theme); }
.home-favorite-btn.favorited { background: var(--theme); border-color: var(--theme); }
.home-favorite-btn.favorited i { color: #fff; }
.home-favorite-btn.favorited:hover { background: var(--theme-sub); border-color: var(--theme-sub); }
.home-favorite-count { font-size: 11px; color: var(--text-info); min-width: 14px; text-align: center; }

/* 响应式网格列数 */
@media screen and (min-width: 641px) { .content .main-part > ul { grid-template-columns: repeat(1, 1fr); } }
@media screen and (min-width: 960px) { .content .main-part > ul { grid-template-columns: repeat(3, 1fr); } }
@media screen and (min-width: 1280px) { .content .main-part > ul { grid-template-columns: repeat(4, 1fr); } }

/* 桌面端优化 */
@media screen and (min-width: 960px) {
    .content .main-part > ul > li.card-item { min-height: 220px; max-height: 260px; }
    .content .main-part ul li .home-pic { height: 160px; }
    .home-title { font-size: 14px; }
    .home-excerpt { font-size: 13px; -webkit-line-clamp: 2; }
}
@media screen and (min-width: 1280px) {
    .content .main-part > ul > li.card-item { min-height: 200px; max-height: 280px; }
    .content .main-part ul li .home-pic { height: 165px; }
    .home-title { font-size: 14px; }
}

/* ========== 小卡片（home-card2）性能优化版 ========== */
.content .nav-card-list > ul {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: repeat(4, 1fr);
}
@media screen and (max-width: 768px) {
    .content .nav-card-list > ul,
    .content .main-part.nav-card-list > ul {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
.nav-card-list { width: 100%; padding: 0 4px; }

.nav-card-item {
    background: var(--bgc);
    /* 已移除模糊效果 */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 10px 10px;
    position: relative;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 68px !important;
    overflow: hidden;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: transform;
}
.nav-card-item:hover {
    border-color: rgba(108, 92, 231, 0.6);
    box-shadow: 0 8px 22px rgba(108, 92, 231, 0.12),
                0 2px 6px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}
[data-color-mode='night'] .nav-card-item {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-color-mode='night'] .nav-card-item:hover {
    border-color: var(--theme);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-card-inner { display: flex; align-items: center; gap: 10px; flex: 1; height: 100%; }
.nav-card-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.2s;
}
.nav-card-item:hover .nav-card-icon {
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.12);
    background: rgba(255, 255, 255, 0.5);
}
.nav-card-icon img { width: 70%; height: 70%; object-fit: contain; transition: transform 0.2s; }
.nav-card-item:hover .nav-card-icon img { transform: scale(1.08); }
.nav-card-icon .default-icon { color: var(--text-info); opacity: 0.5; width: 70%; height: 70%; }

.nav-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.nav-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.nav-card-title {
    margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4;
    flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: 0.01em;
}
.nav-card-title a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.nav-card-title a:hover { color: var(--theme); }

.nav-card-external {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    color: var(--text-info); text-decoration: none;
    transition: all 0.2s ease; margin-top: 2px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.nav-card-external i { font-size: 11px; }
.nav-card-external:hover {
    background: var(--theme);
    color: #fff;
    border-color: var(--theme);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}
.nav-card-desc {
    font-size: 12px; color: var(--text-sub); line-height: 1.4;
    margin-top: 4px; margin-bottom: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0.9;
}

@media screen and (max-width: 640px) {
    .nav-card-item { height: 58px !important; padding: 8px 8px; }
    .nav-card-inner { gap: 8px; }
    .nav-card-icon { width: 32px; height: 32px; border-radius: 8px; }
    .nav-card-icon img { width: 65%; height: 65%; }
    .nav-card-icon .default-icon { width: 65%; height: 65%; }
    .nav-card-title { font-size: 13px; }
    .nav-card-desc { font-size: 11px; margin-top: 2px; line-height: 1.3; }
    .nav-card-external { width: 20px; height: 20px; }
    .nav-card-external i { font-size: 10px; }
}

/* ========== 子分类/列表容器 ========== */
.nav-category-section,
.nav-list-section {
    background: var(--bgc);
    backdrop-filter: blur(14px) saturate(110%);
    -webkit-backdrop-filter: blur(14px) saturate(110%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--box-p);
    transition: var(--tr3);
}
.nav-category-section:last-child { margin-bottom: 30px; }
[data-color-mode='night'] .nav-category-section,
[data-color-mode='night'] .nav-list-section {
    box-shadow: var(--box-p), inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-color-mode='night'] .nav-category-section:hover,
[data-color-mode='night'] .nav-list-section:hover {
    border-color: var(--theme);
}

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.header-left { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; gap: 15px; overflow: hidden; }
.section-title {
    font-size: 20px; font-weight: 600; color: var(--text); margin: 0;
    padding-left: 14px; border-left: 4px solid var(--theme); line-height: 1.3;
    white-space: nowrap; flex-shrink: 0;
}
.sub-tag-nav { display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; padding: 4px 0; scrollbar-width: none; flex-shrink: 1; min-width: 0; }
.sub-tag-nav::-webkit-scrollbar { display: none; }
.sub-tag-btn {
    padding: 5px 16px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); border-radius: 20px;
    background: var(--bgc);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--text-info);
    cursor: pointer; transition: all 0.25s ease; flex-shrink: 0; outline: none;
}
.sub-tag-btn:hover { border-color: var(--theme); color: var(--theme); background: var(--theme-1); }
.sub-tag-btn.active { background: var(--theme); border-color: var(--theme); color: #fff; box-shadow: 0 2px 6px rgba(108,92,231,0.3); }

.more-link {
    font-size: 13px; color: var(--theme); text-decoration: none;
    padding: 5px 14px; border: 1px solid var(--theme); border-radius: 18px;
    transition: all 0.25s ease; white-space: nowrap; flex-shrink: 0; font-weight: 500;
}
.more-link:hover { background: var(--theme); color: #fff; box-shadow: 0 2px 6px rgba(108,92,231,0.3); }

.tag-content-container { min-height: 50px; }
.tag-content-panel { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0.6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.empty-tip { text-align: center; color: var(--text-info); padding: 30px 0; font-size: 14px; opacity: 0.7; }
.uncategorized-section .section-title { border-left-color: #999; }
.filter-nav .filter-tag { transition: all 0.2s; }
.filter-nav .filter-tag:hover { background: var(--theme) !important; color: #fff !important; }


/* 搜索框 */
.primary-sidebar .widget_search input {
    background-color: var(--body);
    color: var(--text);
}

/* =====================================================
   首页友情链接模块
   ===================================================== */
.home-links-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.home-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.home-link-item {
    background: var(--bgc);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: transform;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.03);
}

[data-color-mode='night'] .home-link-item {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.home-link-item:hover,
.home-link-item:active {
    border-color: rgba(108, 92, 231, 0.6);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.1), 0 2px 4px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.home-link-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.home-link-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}

.home-link-icon .home-link-fallback {
    font-size: 18px;
    line-height: 1;
    display: none;
}

/* 当图片加载失败时，显示后备图标 */
.home-link-item img[src$="favicon.ico"]:not([src]),
.home-link-item img[src$="favicon.ico"][onerror] {
    /* 仅做占位，实际切换由 onerror 控制 */
}
.home-link-item img[style*="display: none"] + .home-link-fallback {
    display: inline;
}

.home-link-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.home-link-desc {
    font-size: 12px;
    color: var(--text-info);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    opacity: 0.8;
}

/* 申请加入按钮（复用 more-link 样式，确保显示） */
.home-links-section .more-link {
    margin-left: auto;
}

/* 响应式调整 */
@media screen and (max-width: 960px) {
    .home-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 640px) {
    .home-links-grid {
        grid-template-columns: 1fr;
    }
    .home-link-item {
        padding: 10px 12px;
    }
    .home-link-name {
        font-size: 13px;
    }
    .home-link-desc {
        display: none; /* 移动端隐藏描述，节省空间 */
    }
}

/* 友情链接标题提示小字 */
.link-referer-tip {
    font-size: 10px;
    font-weight: normal;
    color: var(--text-info);
    margin-left: 8px;
    opacity: 0.7;
    letter-spacing: 0.3px;
}
@media screen and (max-width: 640px) {
    .link-referer-tip {
        display: inline-block;
        margin-left: 6px;
        font-size: 11px;
    }
}

/* ========== 分页 ========== */
.page-nav-bar .page-nav .page-numbers {
    background-color: var(--bgc);
    border: 1px solid var(--border);
    color: var(--text-info);
}
.page-nav-bar .page-nav .page-numbers:hover,
.page-nav-bar .page-nav .current {
    background-color: var(--theme);
    color: #fff;
    border-color: var(--theme);
}

/* ========== 首页+详情页侧边栏（变量统一、毛玻璃） ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0 0 0 / 0);
}
html, body {
    height: 100%;
}
html {
    scroll-padding-top: 70px;
    scroll-behavior: smooth;
}
body {
    background: var(--body);
    background-attachment: fixed;
    background-size: cover;
    transition: var(--tr3);
}
section {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
li {
    list-style: none;
}
a {
    color: var(--text);
    text-decoration: none;
    transition: var(--tr3);
}
a:hover {
    color: var(--theme);
}
img {
    object-fit: cover;
}
.container-small {
    width: 680px;
    margin: 0 auto;
}
.container {
    width: 1200px;
    margin: 0 auto;
}
.container-full {
    width: 100%;
    padding: 0 30px;
}

/* ========== 选中与滚动条 ========== */
::selection {
    background-color: var(--theme-2);
}
::-webkit-selection {
    background-color: var(--theme-2);
}
::-moz-selection {
    background-color: var(--theme-2);
}
body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
body::-webkit-scrollbar-thumb {
    background-color: var(--theme);
}

/* ========== 侧边栏通用卡片（完全使用变量，模式自适应） ========== */
.primary-sidebar,
.author-info-box,
.widget.shadow-theme {
    background: var(--bgc);
    backdrop-filter: blur(14px) saturate(110%);
    -webkit-backdrop-filter: blur(14px) saturate(110%);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--box-p);
    transition: var(--tr3);
}

/* 浅色模式下的玻璃高光（内侧顶部） */
[data-color-mode="light"] .primary-sidebar,
[data-color-mode="light"] .author-info-box,
[data-color-mode="light"] .widget.shadow-theme {
    box-shadow: var(--box-p), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
[data-color-mode="light"] .primary-sidebar:hover,
[data-color-mode="light"] .author-info-box:hover,
[data-color-mode="light"] .widget.shadow-theme:hover {
    border-color: var(--theme);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 深色模式下的玻璃高光（微弱） */
[data-color-mode="night"] .primary-sidebar,
[data-color-mode="night"] .author-info-box,
[data-color-mode="night"] .widget.shadow-theme {
    box-shadow: var(--box-p), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-color-mode="night"] .primary-sidebar:hover,
[data-color-mode="night"] .author-info-box:hover,
[data-color-mode="night"] .widget.shadow-theme:hover {
    border-color: var(--theme);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ========== 标题样式 ========== */
.primary-sidebar > li h2,
.author-info-box .post-author-name,
.widget.shadow-theme .widget-title h3 {
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.primary-sidebar > li h2::before,
.widget.shadow-theme .widget-title h3::before {
    content: '';
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    border-radius: var(--radius);
    background-color: var(--theme);
    box-shadow: 1px 1px 3px -1px var(--theme-sub);
}

/* ========== 列表项重置（flex 布局，图标+文字同行） ========== */
.primary-sidebar .wp-block-latest-posts li,
.primary-sidebar .widget_recent_entries li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}
.primary-sidebar .wp-block-latest-posts li:last-child,
.primary-sidebar .widget_recent_entries li:last-child {
    margin-bottom: 0;
}

/* 图标容器 */
.primary-sidebar .log-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}
.primary-sidebar .log-icon img,
.primary-sidebar .log-icon svg {
    display: block;
}

/* 链接文字 */
.primary-sidebar .wp-block-latest-posts li a,
.primary-sidebar .wp-block-archives li a,
.primary-sidebar .wp-block-categories li a,
.primary-sidebar .widget_recent_entries li a {
    display: inline-block;
    flex: 1;
    padding: 4px 6px;
    border-radius: var(--radius-sub);
    font-size: 14px;
    color: var(--text-sub);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: var(--tr3);
}
/* 移除默认伪元素 */
.primary-sidebar .wp-block-latest-posts li a::before,
.primary-sidebar .wp-block-archives li a::before,
.primary-sidebar .wp-block-categories li a::before,
.primary-sidebar .widget_recent_entries li a::before {
    content: none;
}
.primary-sidebar .wp-block-latest-posts li a:hover,
.primary-sidebar .wp-block-archives li a:hover,
.primary-sidebar .wp-block-categories li a:hover,
.primary-sidebar .widget_recent_entries li a:hover {
    background: var(--theme);
    color: var(--text-keep);
    padding-left: 6px;
}

/* ========== 标签云 ========== */
.primary-sidebar .wp-block-tag-cloud,
.primary-sidebar .widget_tag_cloud {
    max-height: 400px;
    overflow: hidden;
    line-height: 2;
}
.primary-sidebar .wp-block-tag-cloud a,
.primary-sidebar .widget_tag_cloud a {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    font-size: 14px;
    border-radius: var(--radius-sub);
    color: var(--theme);
    background-color: var(--theme-1);
    transition: var(--tr3);
}
.primary-sidebar .wp-block-tag-cloud a::before,
.primary-sidebar .widget_tag_cloud a::before {
    content: '#';
}
.primary-sidebar .wp-block-tag-cloud a:hover,
.primary-sidebar .widget_tag_cloud a:hover {
    background: var(--theme);
    color: var(--text-keep);
}

/* ========== 最新评论 ========== */
.primary-sidebar .wp-block-latest-comments,
.primary-sidebar .widget_recent_comments {
    padding: 0;
}
.primary-sidebar .wp-block-latest-comments li,
.primary-sidebar .widget_recent_comments li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--tr3);
}
.primary-sidebar .wp-block-latest-comments li:last-child,
.primary-sidebar .widget_recent_comments li:last-child {
    margin-bottom: 0;
}
.primary-sidebar .wp-block-latest-comments img,
.primary-sidebar .widget_recent_comments img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.primary-sidebar .wp-block-latest-comments article,
.primary-sidebar .widget_recent_comments article {
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 10px;
    font-size: 14px;
    color: var(--text-info);
    overflow: hidden;
}
.primary-sidebar .wp-block-latest-comments__comment-meta {
    display: flex;
    align-items: center;
}
.primary-sidebar .wp-block-latest-comments__comment-author {
    display: block;
    max-width: 52%;
    color: var(--theme);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.primary-sidebar .wp-block-latest-comments__comment-date {
    display: block;
    font-size: 12px;
    margin-left: 5px;
}
.primary-sidebar .wp-block-latest-comments__comment-date::before {
    content: '\e74b';
    font-family: 'iconfont';
}
.primary-sidebar .wp-block-latest-comments__comment-excerpt {
    width: 100%;
}
.primary-sidebar .wp-block-latest-comments__comment-excerpt a {
    display: inline-grid;
    color: var(--text);
    font-size: 14px;
    transition: var(--tr3);
}
.primary-sidebar .wp-block-latest-comments__comment-excerpt a:hover {
    color: var(--theme);
}
.primary-sidebar .wp-block-latest-comments__comment-excerpt p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 搜索框 ========== */
.primary-sidebar .widget_search .wp-block-search__inside-wrapper {
    position: relative;
}
.primary-sidebar .widget_search input {
    width: 100%;
    height: 40px;
    padding: 0 25px 0 10px;
    outline: none;
    color: var(--text);
    background: var(--body);          /* 跟随页面渐变背景 */
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--tr3);
}
.primary-sidebar .widget_search input:hover,
.primary-sidebar .widget_search input:focus {
    border-color: var(--theme);
}
.primary-sidebar .widget_search button {
    position: absolute;
    right: 1px;
    top: 1px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--radius);
    background-color: transparent;
    cursor: pointer;
    transition: var(--tr3);
}
.primary-sidebar .widget_search button span {
    font-size: 18px;
    color: var(--text-info);
}

/* ========== 个人资料卡片内部 ========== */
.author-info-box .post-author-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid var(--theme);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
}
.author-info-box .post-author-logo a {
    border-radius: 50%;
}
.author-info-box img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    vertical-align: middle;
}
.author-info-box .post-author-name {
    font-weight: 400;
    font-size: 16px;
    color: var(--text);
    text-align: center;
    transition: var(--tr3);
}
.author-info-box .post-author-name a {
    transition: var(--tr3);
}
.author-info-box .post-author-description {
    font-size: 13px;
    color: var(--text-info);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.author-info-box .post-author-description::before {
    content: '\e6f6';
    font-family: 'iconfont';
    font-size: 18px;
}

/* ========== 自定义文本组件 ========== */
.widget.shadow-theme .unstyle-li {
    color: var(--text);
}


/* ========== 404 ========== */

.page-404 {
    width: 100%;
    height: 100%;
    padding-bottom: 50px;
    overflow: hidden;
}
.page-404-detail {
    width: 100%;
    height: auto;
    margin: 0 auto;
    text-align: center;
    padding: 70px 50px 120px 50px ;
}
.page-404-detail img {
    width: 350px;
    max-width: 100%;
}
.page-404-detail p {
    color: var(--text-info);
    margin-bottom: 30px;
}
.page-404-detail a {
    padding: 6px 12px;
    background: var(--theme-sub);
    background: linear-gradient(to right, var(--theme), var(--theme-sub));
    color: var(--text-keep);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--tr3);
}
.page-404-detail a:hover {
    opacity: .8;
}

/* ========== 新版页脚样式（深海 + 星空·变量适配版） ========== */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    transition: var(--tr3);
    position: relative;
    overflow: hidden;

    /* 背景透明，与 body 共用同一渐变，fixed 实现无缝 */
    background: transparent;
    background-attachment: fixed;
    background-size: cover;
}

/* 页脚主内容区（确保在星空之上） */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 40px 0 30px;
    position: relative;
    z-index: 3;
}

/* 品牌信息 – 使用主要文字变量 */
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-brand .footer-logo img {
    width: 28px;
    height: 28px;
}
.footer-brand .footer-logo span {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}
.footer-brand .footer-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 300px;
    opacity: 0.85;
}
.footer-brand .footer-slogan {
    font-size: 12px;
    color: var(--theme);
    font-weight: 500;
    letter-spacing: 1px;
}

/* 页脚链接列 – 使用次级文字与主题色 */
.footer-col .col-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
    opacity: 0.9;
}
.footer-col .col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--theme);
    border-radius: 1px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 13px;
    color: var(--text-sub);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    opacity: 0.8;
}
.footer-col ul li a:hover {
    color: var(--theme);
    opacity: 1;
    transform: translateX(3px);
}

/* 底部栏 */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-sub);
    opacity: 0.85;
    position: relative;
    z-index: 5;
}
.footer-bottom .footer-bottom-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.footer-bottom a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.9;
}
.footer-bottom a:hover {
    color: var(--theme);
    opacity: 1;
}
.footer-bottom .icp-gov {
    display: flex;
    align-items: center;
    gap: 4px;
}
.footer-bottom .icp-gov img {
    width: 16px; height: 16px; vertical-align: middle;
}
.footer-bottom .powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-bottom .powered-by img {
    width: 14px; height: 14px; opacity: 0.8;
}

/* ========== 星空背景（仅星星闪烁，底部渐隐） ========== */
.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;               /* 铺满页脚，通过 mask 控制显示区域 */
    z-index: 0;
    pointer-events: none;
    /* 底部渐隐，自然过渡到波浪 */
    mask: linear-gradient(to bottom, black 0%, black 55%, transparent 95%);
    -webkit-mask: linear-gradient(to bottom, black 0%, black 55%, transparent 95%);
}

.stars-layer {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 10% 15%, #c8dcff, transparent),
        radial-gradient(2px 2px at 25% 25%, #c8dcff, transparent),
        radial-gradient(1px 1px at 40% 10%, #c8dcff, transparent),
        radial-gradient(1.5px 1.5px at 55% 30%, #c8dcff, transparent),
        radial-gradient(2px 2px at 70% 20%, #c8dcff, transparent),
        radial-gradient(1px 1px at 85% 15%, #c8dcff, transparent),
        radial-gradient(1.5px 1.5px at 15% 60%, #c8dcff, transparent),
        radial-gradient(2px 2px at 30% 70%, #c8dcff, transparent),
        radial-gradient(1px 1px at 50% 55%, #c8dcff, transparent),
        radial-gradient(2px 2px at 65% 65%, #c8dcff, transparent),
        radial-gradient(1.5px 1.5px at 80% 50%, #c8dcff, transparent),
        radial-gradient(2px 2px at 90% 70%, #c8dcff, transparent);
    animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ========== 海洋波浪层（透明度随主题微调，保持原有动效） ========== */
.footer-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130px;
    z-index: 2;
    pointer-events: none;
}
.wave {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    opacity: 0.7;
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.35, 0.95);
}
.wave-back {
    background: rgba(0, 40, 80, 0.6);
    border-radius: 48% 52% 0 0 / 100% 100% 0 0;
    animation: waveSwell1 14s infinite alternate ease-in-out;
    bottom: 5px;
}
.wave-middle {
    background: rgba(0, 90, 140, 0.45);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    animation: waveSwell2 12s infinite alternate ease-in-out;
    animation-delay: -4s;
    bottom: 15px;
}
.wave-front {
    background: rgba(30, 140, 190, 0.35);
    border-radius: 49% 51% 0 0 / 100% 100% 0 0;
    animation: waveSwell3 10s infinite alternate ease-in-out;
    animation-delay: -2s;
    bottom: 25px;
}
.wave-foam {
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(160,200,255,0.15) 30%, transparent 80%);
    border-radius: 52% 48% 0 0 / 100% 100% 0 0;
    animation: waveSwell4 9s infinite alternate ease-in-out;
    animation-delay: -6s;
    bottom: 35px;
}

/* 波浪动画关键帧（保持不变） */
@keyframes waveSwell1 {
    0% { transform: translateX(-10px) translateY(0) scaleY(1.02); border-radius: 45% 55% 0 0 / 100% 100% 0 0; }
    50% { transform: translateX(12px) translateY(-6px) scaleY(1.05); border-radius: 52% 48% 0 0 / 100% 100% 0 0; }
    100% { transform: translateX(-5px) translateY(1px) scaleY(1); border-radius: 47% 53% 0 0 / 100% 100% 0 0; }
}
@keyframes waveSwell2 {
    0% { transform: translateX(8px) translateY(-3px) scaleY(1.03); border-radius: 52% 48% 0 0 / 100% 100% 0 0; }
    50% { transform: translateX(-15px) translateY(0) scaleY(1.06); border-radius: 48% 52% 0 0 / 100% 100% 0 0; }
    100% { transform: translateX(3px) translateY(-5px) scaleY(1.01); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
}
@keyframes waveSwell3 {
    0% { transform: translateX(-12px) translateY(0) scaleY(1); border-radius: 48% 52% 0 0 / 100% 100% 0 0; }
    40% { transform: translateX(20px) translateY(-8px) scaleY(1.04); border-radius: 55% 45% 0 0 / 100% 100% 0 0; }
    100% { transform: translateX(-8px) translateY(2px) scaleY(0.97); border-radius: 45% 55% 0 0 / 100% 100% 0 0; }
}
@keyframes waveSwell4 {
    0% { transform: translateX(5px) translateY(-2px) scaleY(0.98); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity:0.5; }
    60% { transform: translateX(-18px) translateY(-4px) scaleY(1.05); border-radius: 47% 53% 0 0 / 100% 100% 0 0; opacity:0.8; }
    100% { transform: translateX(0) translateY(1px) scaleY(1); border-radius: 53% 47% 0 0 / 100% 100% 0 0; opacity:0.4; }
}

/* 海面碎光点（透明度微降） */
.footer-waves::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 60%;
    background:
        radial-gradient(circle at 15% 30%, rgba(255,255,255,0.35) 1px, transparent 2px),
        radial-gradient(circle at 35% 65%, rgba(255,255,255,0.3) 1.5px, transparent 2.5px),
        radial-gradient(circle at 55% 20%, rgba(255,255,255,0.25) 1px, transparent 2px),
        radial-gradient(circle at 75% 70%, rgba(255,255,255,0.35) 1.5px, transparent 2.5px),
        radial-gradient(circle at 90% 40%, rgba(255,255,255,0.2) 1px, transparent 2px);
    animation: sparkles 4s linear infinite;
    opacity: 0.6;
    z-index: 5;
    pointer-events: none;
}
@keyframes sparkles {
    0% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-3px); }
    100% { opacity: 0.3; transform: translateY(0); }
}

/* ========== 居中鱼群动画 ========== */
.footer-fish {
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 80px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    animation-name: fishSwimCycle;
    animation-duration: 16s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.footer-fish img {
    width: 100%;
    height: auto;
    display: block;
}
@keyframes fishSwimCycle {
    0% { transform: translateX(-90px) translateY(0); z-index: 1; }
    15% { transform: translateX(-30px) translateY(-6px); z-index: 1; }
    25% { transform: translateX(20px) translateY(-18px); z-index: 4; }
    35% { transform: translateX(60px) translateY(-70px); z-index: 4; }
    45% { transform: translateX(90px) translateY(-30px); z-index: 1; }
    60% { transform: translateX(70px) translateY(5px); z-index: 1; }
    80% { transform: translateX(-80px) translateY(0); z-index: 1; }
    100% { transform: translateX(-90px) translateY(0); z-index: 1; }
}

/* ========== 响应式调整 ========== */
@media screen and (max-width: 960px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 30px 20px 20px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px 50px;
    }
    .footer-bottom .footer-bottom-left {
        justify-content: center;
    }
    .footer-waves { height: 100px; }
    .footer-fish { width: 65px; }
}

@media screen and (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 15px 15px;
    }
    .footer-col {
        display: none;
    }
    .footer-waves { height: 80px; }
    .footer-bottom { padding: 12px 15px 35px; }
    .footer-fish { width: 50px; bottom: 12px; }
}

/* ========== 全局响应式 ========== */
@media screen and (max-width: 1280px) {
    .container { width: 100%; padding: 0 20px; }
}
@media screen and (max-width: 960px) {
    .container { padding: 0 15px; }
}
@media screen and (max-width: 640px) {
    .container { padding: 0 12px; }
}

/* ========== 失效样式 ========== */
.post-top.disabled-top {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
}
.card-direct-btn.disabled-direct-btn {
    background: linear-gradient(to right, #b91c1c, #ef4444) !important;
    cursor: not-allowed;
    pointer-events: none;
}
.nav-card-disabled {
    background: #b91c1c !important;
    color: #fff !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* 移动端标签栏优化 */
.title-part {
    flex-wrap: wrap;
    row-gap: 8px;
    position: relative;
    z-index: 2;
    overflow: visible;
}
.category-tabs {
    flex: 1 1 100%;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black calc(100% - 30px), transparent);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 30px), transparent);
    padding-bottom: 6px;
}
@media screen and (max-width: 768px) {
    .title-part { gap: 6px 12px; }
    .category-tabs { margin-left: 0; order: 1; }
    .title-part p { order: 0; }
}
@media screen and (max-width: 768px) {
    .sub-tag-btn { padding: 3px 10px; font-size: 11px; border-radius: 16px; white-space: nowrap; }
    .category-tabs { gap: 5px; }
}

/* 主题切换防闪烁 */
.switch-freeze,
.switch-freeze *,
.switch-freeze *::before,
.switch-freeze *::after {
    transition: none !important;
    animation: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* 首页侧边栏悬浮 */
.home-2-sidebar {
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* 移动端取消悬浮 */
@media screen and (max-width: 960px) {
    .home-2-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}