/* 赛博朋克风格全局样式 */

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* 基础颜色定义 */
:root {
    --cyberpunk-black: #0F0F1A;
    --cyberpunk-dark: #1A1A2E;
    --cyberpunk-blue: #3498DB;
    --cyberpunk-purple: #9D4EDD;
    --cyberpunk-pink: #FF2E63;
    --cyberpunk-green: #00F5D4;
    --cyberpunk-gray: #E2E2E2;
}

/* 全局样式 */
body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.7;
    color: var(--cyberpunk-gray);
    background-color: var(--cyberpunk-black);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(157, 78, 221, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* 博客标题样式 */
#Header1_HeaderTitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--cyberpunk-green);
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.7),
                 0 0 20px rgba(0, 245, 212, 0.5),
                 0 0 30px rgba(0, 245, 212, 0.3);
}

#blogTitle h2 {
    font-size: 1.2rem;
    color: var(--cyberpunk-blue);
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* 导航栏样式 */
#navList {
    display: flex;
    justify-content: space-between;
    background-color: rgba(26, 26, 46, 0.8);
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 245, 212, 0.3);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

#navList a {
    color: var(--cyberpunk-gray);
    padding: 12px 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

#navList a:hover {
    color: var(--cyberpunk-green);
    background-color: rgba(0, 245, 212, 0.1);
}

#navList a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cyberpunk-green);
    transition: width 0.3s;
}

#navList a:hover::after {
    width: 100%;
}

/* 文章列表样式 */
.postTitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.postTitle a {
    color: var(--cyberpunk-blue);
    transition: color 0.3s;
    position: relative;
}

.postTitle a:hover {
    color: var(--cyberpunk-purple);
}

.postTitle a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--cyberpunk-purple);
    transition: width 0.3s;
}

.postTitle a:hover::before {
    width: 100%;
}

.postCon {
    padding: 20px;
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 5px;
    border: 1px solid rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.postCon:hover {
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
    transform: translateY(-2px);
}

.postDesc {
    color: rgba(226, 226, 226, 0.7);
    font-size: 0.9rem;
}

/* 侧边栏样式 */
#sidebar {
    padding: 15px;
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 5px;
    border: 1px solid rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.1);
}

.sidebar-block {
    margin-bottom: 20px;
}

.sidebar-block h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--cyberpunk-pink);
    border-bottom: 1px solid rgba(255, 46, 99, 0.3);
    padding-bottom: 5px;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 46, 99, 0.5);
}

/* 文章详情页样式 */
#topics .postTitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--cyberpunk-blue);
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

#cnblogs_post_body {
    font-size: 1.1rem;
}

#cnblogs_post_body h1,
#cnblogs_post_body h2,
#cnblogs_post_body h3,
#cnblogs_post_body h4,
#cnblogs_post_body h5,
#cnblogs_post_body h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--cyberpunk-green);
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 245, 212, 0.3);
}

#cnblogs_post_body h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(0, 245, 212, 0.2);
    padding-bottom: 5px;
}

#cnblogs_post_body p {
    margin-bottom: 15px;
}

#cnblogs_post_body pre {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    font-size: 0.95rem;
    color: var(--cyberpunk-gray);
    position: relative;
}

#cnblogs_post_body pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--cyberpunk-purple);
}

/* 代码高亮样式（赛博朋克风格） */
.hljs {
    display: block;
    overflow-x: auto;
    padding: 0.5em;
    color: #e2e2e2;
    background: rgba(0, 0, 0, 0.7);
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link {
    color: #FF2E63; /* 粉色 */
}

.hljs-function .hljs-keyword {
    color: #9D4EDD; /* 紫色 */
}

.hljs-string,
.hljs-title,
.hljs-name,
.hljs-type,
.hljs-attribute,
.hljs-symbol,
.hljs-bullet,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
    color: #00F5D4; /* 绿色 */
}

.hljs-comment,
.hljs-quote,
.hljs-deletion,
.hljs-meta {
    color: #888; /* 灰色 */
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-title,
.hljs-section,
.hljs-doctag,
.hljs-type,
.hljs-name,
.hljs-strong {
    font-weight: bold;
}

.hljs-emphasis {
    font-style: italic;
}

/* 评论区样式 */
#blog-comments-placeholder {
    margin-top: 40px;
}

.commentform {
    background-color: rgba(26, 26, 46, 0.7);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.1);
}

.commentbox_title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--cyberpunk-blue);
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* 自定义侧边栏公告样式（赛博朋克风格） */
.cyberpunk-sidebar {
    font-family: 'Rajdhani', sans-serif;
    color: var(--cyberpunk-gray);
}

.sidebar-header {
    margin-bottom: 15px;
}

.sidebar-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cyberpunk-green);
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.7),
                 0 0 20px rgba(0, 245, 212, 0.5);
    border-bottom: 1px solid rgba(0, 245, 212, 0.3);
    padding-bottom: 5px;
}

.author-info {
    text-align: center;
    margin-bottom: 20px;
}

.neon-border {
    display: inline-block;
    padding: 3px;
    background: linear-gradient(45deg, #FF2E63, #00F5D4, #9D4EDD);
    border-radius: 50%;
    animation: border-glow 2s linear infinite;
}

@keyframes border-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 46, 99, 0.7),
                    0 0 20px rgba(0, 245, 212, 0.5),
                    0 0 30px rgba(157, 78, 221, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 46, 99, 0.9),
                    0 0 25px rgba(0, 245, 212, 0.7),
                    0 0 35px rgba(157, 78, 221, 0.5);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 46, 99, 0.7),
                    0 0 20px rgba(0, 245, 212, 0.5),
                    0 0 30px rgba(157, 78, 221, 0.3);
    }
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cyberpunk-dark);
}

.author-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--cyberpunk-blue);
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.author-intro {
    font-size: 0.9rem;
    color: rgba(226, 226, 226, 0.7);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(26, 26, 46, 0.7);
    color: var(--cyberpunk-gray);
    margin: 0 5px;
    transition: all 0.3s;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.social-link:hover {
    color: var(--cyberpunk-green);
    border-color: rgba(0, 245, 212, 0.7);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
    transform: translateY(-2px);
}

.blog-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cyberpunk-pink);
    text-shadow: 0 0 5px rgba(255, 46, 99, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(226, 226, 226, 0.7);
}

.featured-posts h5,
.tag-cloud h5 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cyberpunk-blue);
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.glow-sm {
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.glow {
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.7),
                 0 0 20px rgba(0, 245, 212, 0.5);
}

.featured-posts ul {
    list-style-type: none;
    padding-left: 0;
}

.featured-posts li {
    margin-bottom: 8px;
}

.neon-link {
    color: var(--cyberpunk-purple);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.neon-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--cyberpunk-purple);
    transition: width 0.3s;
}

.neon-link:hover {
    color: var(--cyberpunk-green);
}

.neon-link:hover::after {
    width: 100%;
    background-color: var(--cyberpunk-green);
}

.tags {
    display: flex;
    flex-wrap: wrap;
}

.cyberpunk-tag {
    display: inline-block;
    padding: 3px 8px;
    margin: 0 5px 5px 0;
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--cyberpunk-gray);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.cyberpunk-tag:hover {
    background-color: rgba(0, 245, 212, 0.1);
    color: var(--cyberpunk-green);
    border-color: rgba(0, 245, 212, 0.7);
    box-shadow: 0 0 5px rgba(0, 245, 212, 0.3);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    #navList {
        flex-direction: column;
    }
    
    #navList a {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(0, 245, 212, 0.1);
    }
    
    #navList a:last-child {
        border-bottom: none;
    }
    
    #mainContent, #sidebar {
        width: 100%;
    }
}
    