/* Theme 12: Neon - 霓虹风格 */
/* 霓虹灯效果、鲜艳色彩、夜店风格 */

body {
    font-family: 'Orbitron', 'Arial Black', sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.7;
}

.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #ff00ff;
    padding: 1.5rem 0;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.logo {
    color: #00ffff;
    font-weight: 900;
    font-size: 2rem;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav a {
    color: #ff00ff;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

.nav a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.nav a::after {
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
    height: 3px;
}

.main {
    background: #0a0a0a;
    padding: 3rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.post-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    object-fit: cover;
    border-radius: 6px;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 200% 100%;
    animation: neonFlow 3s ease infinite;
}

@keyframes neonFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: #00ffff;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6), 0 0 60px rgba(255, 0, 255, 0.4);
}

.post-card h3 {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-card h3 a {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
    text-decoration: none !important;
;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-card h3 a:hover {
    color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff;
}

.post-card p {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    background: none !important;
    background-clip: unset !important;
;
}

.category {
    background: rgba(255, 0, 255, 0.2);
    color: #ff00ff;
    border: 2px solid #ff00ff;
    text-shadow: 0 0 8px #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
    color: #0a0a0a;
    border: 3px solid #00ffff;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.3);
    will-change: transform, box-shadow;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.7), 0 0 40px rgba(0, 255, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
}

.post-detail {
    background: rgba(20, 20, 20, 0.95);
    border: 3px solid #ff00ff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.4);
}

.post-header {
    border-bottom: 3px solid #00ffff;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.3);
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.post-content {
    color: #e0e0e0;
    font-size: 1.125rem;
    line-height: 1.9;
}

.post-content h2 {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

.post-content h3 {
    color: #00ffff !important;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4) !important;
}

.post-content p {
    color: #e0e0e0 !important;
}

.post-content blockquote {
    color: #ff00ff !important;
    border-left-color: #00ffff !important;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3) !important;
}

.post-meta {
    color: #ff00ff !important;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3) !important;
}

.post-meta span {
    color: #ff00ff !important;
}

.excerpt {
    color: #e0e0e0 !important;
}

.post-share h3 {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

.post-tags h3 {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

.comments-header h2 {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

.comment-sort label {
    color: #ff00ff !important;
}

.comment-login-prompt {
    color: #e0e0e0 !important;
}

.comment-login-prompt a {
    color: #00ffff !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5) !important;
}

.no-comments {
    color: #ff00ff !important;
}

/* Hero区域适配 */
.hero {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1) 0%, rgba(0, 255, 255, 0.1) 100%);
    border-radius: 12px;
    border: 3px solid #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
}

.hero h1 {
    color: #00ffff !important;
    text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff !important;
    text-transform: uppercase;
    -webkit-text-fill-color: #00ffff !important;
    background: none !important;
    background-clip: unset !important;
}

.hero-subtitle {
    color: #ff00ff !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.5) !important;
}

/* 分享按钮适配 */
.share-btn-inline {
    background: rgba(20, 20, 20, 0.9);
    border: 3px solid #ff00ff;
    color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.share-btn-inline:hover {
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* 评论表单适配 */
.comment-form {
    background: rgba(20, 20, 20, 0.9);
    border: 3px solid #ff00ff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

/* 评论项适配 */
.comment-item {
    background: rgba(20, 20, 20, 0.9);
    border-left: 4px solid #00ffff;
    border: 2px solid #ff00ff;
    border-left: 4px solid #00ffff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

/* 回复指示器适配 - 霓虹主题 */
.comment-reply-indicator {
    color: #00ffff !important;
    background: rgba(0, 255, 255, 0.15) !important;
    border-color: #00ffff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3) !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5) !important;
}

.comment-item:hover {
    transform: translateX(4px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    border-color: #00ffff;
}

/* 标签适配 */
.tag {
    background: rgba(255, 0, 255, 0.2);
    border: 2px solid #ff00ff;
    color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.tag:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* 表单输入框适配 */
.form-group input,
.form-group textarea {
    background: rgba(20, 20, 20, 0.9);
    border: 3px solid #ff00ff;
    color: #00ffff;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    background: rgba(10, 10, 10, 0.95);
}

/* 代码块适配 */
.post-content pre {
    background: #0a0a0a;
    border: 3px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.post-content pre::before {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    height: 4px;
}

.post-content code {
    background: rgba(255, 0, 255, 0.1);
    color: #00ffff;
    border: 2px solid #ff00ff;
    text-shadow: 0 0 8px #00ffff;
}

/* Reading progress bar - Neon theme */
.reading-progress {
    background: rgba(0, 0, 0, 0.5);
}

.reading-progress-bar {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6);
}

/* Reading time - Neon theme */
.reading-time {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Table of contents - Neon theme */
.post-toc {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.post-toc h3 {
    color: #ff00ff;
    border-bottom-color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.toc-link {
    color: #00ffff;
}

.toc-link:hover {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
    border-left-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

.toc-link.active {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.15);
    border-left-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.toc-level-4 .toc-link {
    color: #ffff00;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card {
        padding: 1.5rem;
    }
    
    .post-card h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-detail {
        padding: 2rem 1.5rem;
    }
    
    .header {
        padding: 1.25rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav a {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .post-card {
        padding: 1.25rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}

/* ========================================
   首页文字元素可见性修复 - Neon Theme
   确保所有文字在所有情况下都清晰可见
   ======================================== */

/* Featured Article 标题 */
.featured-post h2 {
    color: #e2e8f0 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
}

/* Latest Articles 标题 */
.posts h2,
.main-content .posts h2 {
    color: #e2e8f0 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 侧边栏标题 */
.sidebar-widget h3 {
    color: #e2e8f0 !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5) !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 文章卡片标题 */
.post-card h3 {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-card h3 a {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
    text-decoration: none !important;
}

.post-card h3 a:hover {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
    background: none !important;
    background-clip: unset !important;
}

/* 文章卡片内容 */
.post-card p {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-card .post-content p {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 文章元数据 */
.post-meta {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-meta span {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 侧边栏链接 */
.sidebar-widget a {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    background: none !important;
    background-clip: unset !important;
    text-decoration: none !important;
}

.sidebar-widget a:hover {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
    background: none !important;
    background-clip: unset !important;
}

/* 侧边栏文本 */
.sidebar-widget p {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 分类标签 */
.category-tag {
    color: #e2e8f0 !important;
    background: #334155 !important;
    border-color: #475569 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

.category-tag:hover {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
}

/* 分类标签 */
.category {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
    background: none !important;
    background-clip: unset !important;
}

/* 特色文章卡片内容 */
.post-card.featured h3,
.post-card.featured h3 a {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-card.featured p {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-card.featured .post-meta {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    background: none !important;
    background-clip: unset !important;
}
