/* ==========================================================================
   从 index.php 提取的内联 CSS
   更新版本号：修改 CSS 后将 v=YYYYMMDD 改为当天日期即可强制浏览器刷新缓存
   当前版本：20260630
   ========================================================================== */

/* 特别鸣谢渐变效果 */
.special-thanks-gradient {
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fad0c4, #a18cd1, #fbc2eb);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-animation 3s ease infinite;
    font-weight: bold;
}

/* 公告按钮文字渐变效果 */
.announcement-gradient {
    background: linear-gradient(90deg, #f19e9e, #f1f58f, #8ef5ad, #81d0f7, #f66fc9);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-animation 3s ease infinite;
    font-weight: bold;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 优化 CLS: 为图片预留空间 */
img {
    max-width: 100%;
    height: auto;
}
.card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* 定义本地/CDN英文字体 */
@font-face {
    font-family: 'Pacifico';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/Pacifico-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Sacramento';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/Sacramento-Regular.woff2') format('woff2');
}

/* 艺术字体样式 */
.artistic-font {
    font-family: 'Pacifico', 'Zhi Mang Xing', 'STKaiti', 'KaiTi', cursive;
    font-weight: normal;
}

/* 向下滚动提示动画 */
.scroll-down-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 圆润的箭头图标 */
.custom-arrow-down {
    display: inline-block;
    width: clamp(15px, 5vw, 30px);
    height: clamp(15px, 5vw, 30px);
    border-bottom: clamp(2px, 1vw, 4px) solid rgba(255, 255, 255, 0.8);
    border-right: clamp(2px, 1vw, 4px) solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    border-radius: 4px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .scroll-down-indicator {
        bottom: 20px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 悬停上浮效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* 导航栏下拉菜单悬停显示（仅在桌面端） */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

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

/* 取消margin 和 padding间隙 */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 透明毛玻璃卡片样式 */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 确保 Hero Section 占据剩余空间 */
.hero-section {
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
    padding-top: 120px !important;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 补充被覆盖的过渡样式 */
#bgImageTransition {
    transition: opacity 1.5s ease-in-out;
}
.fade-in {
    opacity: 1 !important;
}
.fade-out {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-bg-video {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* 图片悬停放大效果 */
.transition-transform {
    transition: transform 0.5s ease;
}
.hover-lift:hover .transition-transform {
    transform: scale(1.05);
}
/* 多行文本截断 */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 深色模式适配 */
[data-bs-theme="dark"] .bg-light {
    background-color: #212529 !important;
}
[data-bs-theme="dark"] .card {
    background-color: #2b3035;
    color: #fff;
}
[data-bs-theme="dark"] .text-dark {
    color: #fff !important;
}

/* 页脚样式调整 */
footer {
    background-color: #212529 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-top: none !important;
    padding: 1rem 0;
    margin-top: 0 !important;
    position: relative;
    z-index: 10;
    font-size: 0.85rem;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-links a:hover {
    color: #fff;
}

footer .footer-info {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem !important;
}

/* Hero Section 新样式 */
.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.4) 0%, rgba(13, 110, 253, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-glow 3s infinite ease-in-out;
}

.hero-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* 视频背景也需要固定 */
.hero-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* 遮罩层也固定 */
.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* 现代加载动画 */
.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.modern-loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(farthest-side, #0d6efd 94%, #0000) top/8px 8px no-repeat,
                conic-gradient(#0000 30%, #0d6efd);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
    animation: loader-spin 1s infinite linear;
}

.loading-text {
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: text-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-spin {
    100% { transform: rotate(1turn); }
}

@keyframes text-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 导航栏登录注册按钮对齐样式 */
.navbar-nav .nav-item .btn {
    height: auto;
    white-space: nowrap;
}

/* 导航栏亚克力板效果 - 改为透明 */
.navbar.fixed-top {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none !important;
}

/* 滚动时导航栏增强效果 */
.navbar.fixed-top.scrolled {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.5; }
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 胶囊样式打字机 */
.intro-capsule {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #0d6efd;
    border-radius: 50px;
    font-size: 1.05rem;
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 0px;
}

.intro-capsule:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.intro-text::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #0d6efd;
    animation: blink 0.7s infinite;
    margin-left: 5px;
    vertical-align: -0.15em;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 主题切换开关样式 */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.theme-switch {
    display: inline-block;
    height: 26px;
    position: relative;
    width: 50px;
    margin-bottom: 0;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 20px;
    border-radius: 50%;
    z-index: 2;
}

input:checked + .slider {
    background-color: #212529;
    border: 1px solid #495057;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider .icon {
    color: #fff;
    font-size: 12px;
    z-index: 1;
    line-height: 1;
}

.slider .sun {
    color: #f39c12;
}

.slider .moon {
    color: #f1c40f;
}

/* 导航栏自定义样式以适配深色/浅色模式 */
.navbar-custom {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* 浅色模式下的导航栏 - 改为透明以匹配深色背景 */
[data-bs-theme="light"] .navbar-custom {
    background: transparent !important;
    box-shadow: none;
}

/* 强制导航栏文字颜色为白色 */
.navbar-custom .nav-link, 
.navbar-custom .navbar-brand,
.navbar-custom .btn-outline-light {
    color: #fff !important;
}

.navbar-custom .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 导航栏尺寸调整 */
.navbar-custom {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* 移动端菜单背景适配 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    [data-bs-theme="dark"] .navbar-collapse {
        background: rgba(33, 37, 41, 0.95);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .navbar-custom .nav-link,
    .navbar-custom .dropdown-item {
        color: #212529 !important;
    }
    
    [data-bs-theme="dark"] .navbar-custom .nav-link,
    [data-bs-theme="dark"] .navbar-custom .dropdown-item {
        color: #fff !important;
    }

    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
}

.navbar-brand {
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin-right: 1rem;
}

.navbar-brand img {
    height: 30px !important;
    width: auto;
}

.navbar-nav .nav-link {
    height: 38px;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 导航栏按钮样式 */
.navbar .btn-sm {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
}

/* 浅色模式下的登录/注册按钮样式 */
[data-bs-theme="light"] .navbar-nav .btn-outline-light {
    color: #6c757d;
    border-color: #6c757d;
}

[data-bs-theme="light"] .navbar-nav .btn-outline-light:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

[data-bs-theme="light"] .navbar-nav .btn-primary {
    background: #6c757d;
    border: none;
    color: #fff;
}

[data-bs-theme="light"] .navbar-nav .btn-primary:hover {
    background: #5a6268;
    opacity: 0.9;
}

/* 深色模式下的导航栏 - 改为透明 */
[data-bs-theme="dark"] .navbar-custom {
    background: transparent !important;
    box-shadow: none;
}

/* 深色模式下的注册按钮也为灰色 */
[data-bs-theme="dark"] .navbar-nav .btn-primary {
    background: #6c757d;
    border: none;
    color: #fff;
}

[data-bs-theme="dark"] .navbar-nav .btn-primary:hover {
    background: #5a6268;
    opacity: 0.9;
}

/* 深色模式下的文字颜色调整 */
[data-bs-theme="dark"] .intro-capsule {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

/* 苹果风格毛玻璃卡片 */
.apple-glass-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 5px 25px 25px;
    margin-top: 0px;
    color: #fff;
    transition: all 0.3s ease;
    max-width: 500px;
    width: 100%;
}

.apple-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.apple-glass-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.apple-glass-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 0;
}

/* About Me 内容样式调整 */
.about-content {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.about-more-btn {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    text-decoration: none;
    display: none;
}

.about-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* About Modal 样式 */
.about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-modal.show {
    display: flex;
    opacity: 1;
}

.about-modal-dialog {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    margin: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.about-modal.show .about-modal-dialog {
    transform: scale(1);
}

[data-bs-theme="dark"] .about-modal-dialog {
    background: #2b3035;
    color: #e9ecef;
    border: 1px solid rgba(255,255,255,0.1);
}

.about-modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-bs-theme="dark"] .about-modal-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.about-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.7;
}

.about-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
}

.about-modal-close:hover {
    opacity: 1;
}

.about-content p {
    margin-bottom: 0.8rem;
}
.about-content p:last-child {
    margin-bottom: 0;
}
.about-content a {
    color: #6ea8fe;
    text-decoration: none;
    border-bottom: 1px dashed rgba(110, 168, 254, 0.5);
}
.about-content a:hover {
    color: #8bb9fe;
    border-bottom-style: solid;
}
.about-content ul, .about-content ol {
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}
.about-content li {
    margin-bottom: 0.3rem;
}
.about-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    color: #e685b5;
}

/* 移动端导航栏下拉菜单样式调整 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 10px;
        width: auto;
        min-width: 200px;
        max-width: 90vw;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        margin-top: 10px;
        z-index: 1050;
        transform-origin: top right;
        animation: dropdown-fade-in 0.2s ease-out;
    }
    
    @keyframes dropdown-fade-in {
        from { opacity: 0; transform: scale(0.95) translateY(-10px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }
    
    [data-bs-theme="light"] .navbar-collapse {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.5);
    }
    
    [data-bs-theme="dark"] .navbar-collapse {
        background: rgba(33, 37, 41, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        border-radius: 0.5rem;
        justify-content: flex-start;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(13, 110, 253, 0.1);
    }
    
    .navbar-nav .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-item.d-flex {
        flex-wrap: wrap;
    }

    .navbar-collapse.animating-in {
        animation: dropdown-fade-in 0.3s ease-out forwards;
        height: auto !important;
    }
    
    .navbar-collapse.animating-out {
        animation: dropdown-fade-out 0.3s ease-in forwards;
        height: auto !important;
    }

    .navbar-collapse.collapsing {
        height: auto !important;
        transition: none !important;
        position: absolute;
        top: 100%;
        right: 10px;
        width: auto;
        min-width: 200px;
        max-width: 90vw;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        margin-top: 10px;
        z-index: 1050;
        transform-origin: top right;
    }
    
    @keyframes dropdown-fade-out {
        from { opacity: 1; transform: scale(1) translateY(0); }
        to { opacity: 0; transform: scale(0.95) translateY(-10px); }
    }
}

/* 社交媒体图标样式 */
.social-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 按钮组样式 */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #fff;
}

.btn-primary-glass {
    background: rgba(13, 110, 253, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary-glass:hover {
    background: rgba(13, 110, 253, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    color: #fff;
}

/* 博客预览气泡样式 */
.blog-preview-popover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    color: #333;
    text-align: left;
}

.blog-preview-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

[data-bs-theme="dark"] .blog-preview-popover {
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

[data-bs-theme="dark"] .blog-preview-popover::after {
    border-color: rgba(33, 37, 41, 0.95) transparent transparent transparent;
}

.btn-with-preview:hover .blog-preview-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

.preview-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: inherit;
    text-decoration: none;
}

.preview-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 8px;
}

[data-bs-theme="dark"] .preview-meta {
    color: #adb5bd;
}

.preview-excerpt {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* 去掉 navbar-toggler 点击时的黑框 */
.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* 响应式卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .cards-grid, .links-grid {
        grid-template-columns: 1fr;
    }
}
