/* ==========================================================================
   HeoWeb Design System - Dual Capsule Navigation
   ========================================================================== */

:root {
    --heo-theme: #425AEF;
    --heo-theme-op: rgba(66, 90, 239, 0.14);
    --heo-fontcolor: #00001e;
    --heo-background: #f5f5f7;
    --heo-card-bg: rgba(255, 255, 255, 0.8);
    --heo-shadow-border: 0 8px 16px -4px rgba(44, 45, 48, 0.05);
    --heo-shadow-theme: 0 8px 12px -3px var(--heo-theme-op);
    --heo-shadow-glow: 0 0 20px rgba(66, 90, 239, 0.3);
    --style-border: 1px solid rgba(255, 255, 255, 0.3);
    --style-radius: 12px;
}

[data-theme='dark'] {
    --heo-card-bg: rgba(0, 0, 0, 0.6);
    --style-border: 1px solid rgba(255, 255, 255, 0.1);
    --heo-shadow-border: 0 8px 16px -4px rgba(0, 0, 0, 0.4);
}

body {
    background: #000000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Lato, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

/* ==========================================================================
   Simplified Navigation - Always at Top (No Dual-Capsule)
   ========================================================================== */

#nav {
    will-change: transform, opacity;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 30px !important;
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove all nav-fixed related styles - no longer needed */

/* ==========================================================================
   Mobile Responsive: Hide Navigation Completely
   ========================================================================== */

@media screen and (max-width: 768px) {
    #nav {
        display: none !important;
    }

    /* 移除顶部间距以避免空白 */
    #page-header,
    #web_bg {
        padding-top: 0 !important;
    }
}

/* ==========================================================================
   Premium Sidebar Card - HeoWeb Inspired Design
   ========================================================================== */

#aside-content .card-widget.card-info {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 30, 0.9) 100%) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    padding: 0 !important;
    border: 1px solid rgba(66, 90, 239, 0.25) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(66, 90, 239, 0.08) inset,
        0 0 60px rgba(66, 90, 239, 0.15) !important;
    position: relative;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 动态发光边缘 - 鼠标悬停时激活 */
#aside-content .card-widget.card-info::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
            rgba(66, 90, 239, 0.5) 0%,
            rgba(147, 51, 234, 0.3) 50%,
            rgba(66, 90, 239, 0.5) 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

#aside-content .card-widget.card-info:hover::before {
    opacity: 1;
}

#aside-content .card-widget.card-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(66, 90, 239, 0.15) inset,
        0 0 80px rgba(66, 90, 239, 0.25) !important;
}

/* 欢迎气泡 - 精致版 */
.welcome-bubble {
    position: relative;
    background: linear-gradient(135deg, rgba(66, 90, 239, 0.15) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px solid rgba(66, 90, 239, 0.3);
    border-radius: 16px;
    padding: 14px 20px;
    margin: 20px 20px 0 20px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(66, 90, 239, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: bubble-fade-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s ease;
}

.welcome-bubble::before {
    content: '👋';
    margin-right: 6px;
    font-size: 14px;
    animation: wave 2s infinite ease-in-out;
}

@keyframes bubble-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    75% {
        transform: rotate(-20deg);
    }
}

.welcome-bubble:hover {
    background: linear-gradient(135deg, rgba(66, 90, 239, 0.2) 0%, rgba(147, 51, 234, 0.15) 100%);
    border-color: rgba(66, 90, 239, 0.5);
    box-shadow: 0 6px 16px rgba(66, 90, 239, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* 头像区域 - 更大更夸张 */
.card-widget.card-info .avatar-img {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    border: 5px solid rgba(66, 90, 239, 0.4) !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    margin: 25px auto 15px auto !important;
    display: block;
    box-shadow: 0 0 30px rgba(66, 90, 239, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.card-widget.card-info:hover .avatar-img {
    transform: rotate(360deg) scale(1.15);
    border-color: rgba(147, 51, 234, 0.8) !important;
    box-shadow: 0 0 50px rgba(66, 90, 239, 0.8),
        0 0 80px rgba(147, 51, 234, 0.4),
        0 12px 30px rgba(0, 0, 0, 0.4);
}

/* 用户名 - 更醒目 */
.card-widget.card-info .author-info__name {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 12px 0 8px 0;
    text-shadow: 0 2px 12px rgba(66, 90, 239, 0.5),
        0 0 30px rgba(66, 90, 239, 0.3);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 描述文本 */
.card-widget.card-info .author-info__description {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

/* 数据统计区域 - 添加分隔线 */
.card-info-data {
    display: flex;
    justify-content: space-around;
    padding: 18px 0;
    margin: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-info-data-item {
    text-align: center;
    transition: all 0.3s ease;
}

.card-info-data-item:hover {
    transform: translateY(-2px);
}

.card-info-data-item .headline {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-info-data-item .length-num {
    color: var(--heo-theme) !important;
    font-weight: 800;
    font-size: 24px;
    text-shadow: 0 0 15px rgba(66, 90, 239, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #425AEF 0%, #9333EA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 社交按钮 - 更有质感 */
.card-info-social-icons {
    display: flex !important;
    justify-content: center;
    gap: 12px;
    margin: 24px 20px 28px 20px !important;
}

.card-info-social-icons .social-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    line-height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(66, 90, 239, 0.15) 0%, rgba(147, 51, 234, 0.1) 100%) !important;
    border: 1px solid rgba(66, 90, 239, 0.3) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(66, 90, 239, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
}

/* 按钮发光效果 */
.card-info-social-icons .social-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-info-social-icons .social-icon:hover::before {
    opacity: 1;
}

.card-info-social-icons .social-icon:hover {
    background: linear-gradient(135deg, var(--heo-theme) 0%, #9333EA 100%) !important;
    border-color: rgba(147, 51, 234, 0.6) !important;
    transform: scale(1.2) translateY(-3px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(66, 90, 239, 0.5),
        0 0 30px rgba(147, 51, 234, 0.4);
}

.card-info-social-icons .social-icon:active {
    transform: scale(1.1) translateY(-1px);
}

.card-info-social-icons .social-icon i {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    position: relative;
    z-index: 1;
}

.card-info-social-icons .social-icon::after {
    content: none !important;
}

/* ==========================================================================
   Global Card Styles
   ========================================================================== */

#aside-content .card-widget:not(.card-info),
#content-inner .layout>div:first-child:not(.recent-posts),
.recent-posts>.recent-post-item,
.layout_post>#post,
.layout_page>#page {
    border-radius: var(--style-radius) !important;
    background: var(--heo-card-bg) !important;
    border: var(--style-border);
    box-shadow: var(--heo-shadow-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

#aside-content .card-widget:not(.card-info):hover,
.recent-posts>.recent-post-item:hover,
.layout_post>#post:hover {
    transform: translateY(-5px);
    box-shadow: var(--heo-shadow-theme), var(--heo-shadow-glow) !important;
    border-color: var(--heo-theme) !important;
}

/* ==========================================================================
   Scrollbar & Selection
   ========================================================================== */

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

::-webkit-scrollbar-thumb {
    background: var(--heo-theme);
    border-radius: 4px;
}

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

::selection {
    background: var(--heo-theme);
    color: #fff;
}