/* Post 组件 - 赛博朋克风格 - 完整版，避免重复定义 */

/* 基础容器 - 只保留背景和边框样式，其他由Tailwind处理 */
.article-content-detail {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.article-content-detail:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 255, 136, 0.4);
}

/* 全息背景效果 - 这是自定义的，Tailwind没有 */
.article-content-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.05) 50%, transparent 70%);
    background-size: 20px 20px;
    animation: hologramShift 4s linear infinite;
    pointer-events: none;
}

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

/* 文章标题 - 自定义 */
.article-title-detail {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    }
}

/* 文章元信息 - 自定义 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.article-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: metaLineGlow 3s ease-in-out infinite;
}

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

.author,
time {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author::before {
    content: '👤';
    color: var(--primary);
    font-size: 1rem;
}

time::before {
    content: '🕐';
    color: var(--primary);
    font-size: 1rem;
}

/* 文章内容 - 自定义 */
.article-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
}

.article-body p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 2rem;
}

/* 内容图片 - 自定义 */
.content-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 255, 136, 0.4);
}

.content-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.1) 50%, transparent 70%);
    animation: imageHologramScan 3s linear infinite;
    pointer-events: none;
}

@keyframes imageHologramScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 段落间距和格式 - 自定义 */
.article-body p {
    position: relative;
    z-index: 1;
}

.article-body p::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-body p:hover::before {
    opacity: 0.3;
}

/* 强调文本 - 自定义 */
.article-body strong {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.article-body em {
    color: var(--text-primary);
    font-style: italic;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
}

/* 链接 - 自定义 */
.article-body a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.article-body a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.article-body a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.article-body a:hover::before {
    width: 100%;
}

/* 列表 - 自定义 */
.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    position: relative;
    z-index: 1;
}

.article-body li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1rem;
}

.article-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* 引用 - 自定义 */
.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
    overflow: hidden;
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-weight: 900;
}

.article-body blockquote p {
    color: var(--text-primary);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 代码块 - 自定义 */
.article-body code {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.article-body pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    position: relative;
}

.article-body pre::before {
    content: 'CODE';
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0.7;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 霓虹发光效果 - 自定义 */
.article-content-detail .neon-glow {
    animation: postNeonGlow 2s ease-in-out infinite;
}

@keyframes postNeonGlow {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(0, 255, 136, 0.3),
            0 0 10px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(0, 255, 136, 0.5),
            0 0 25px rgba(0, 255, 136, 0.3);
    }
}

/* 全息效果 - 自定义 */
.article-content-detail .hologram {
    position: relative;
    overflow: hidden;
}

.article-content-detail .hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.1) 50%, transparent 70%);
    animation: postHologramScan 2s linear infinite;
    pointer-events: none;
}

@keyframes postHologramScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 玻璃态效果 - 自定义 */
.article-content-detail .glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 - 自定义 */
@media (max-width: 768px) {
    .article-content-detail {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .article-title-detail {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body p:first-of-type {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .content-img {
        margin: 1.5rem 0;
    }
    
    .article-body blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .article-body pre {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .article-content-detail {
        padding: 1rem;
    }
    
    .article-title-detail {
        font-size: 1.8rem;
    }
    
    .article-body {
        font-size: 0.95rem;
    }
    
    .article-body p:first-of-type {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .article-body p {
        margin-bottom: 1rem;
    }
    
    .article-body ul,
    .article-body ol {
        margin: 1rem 0;
        padding-left: 1.5rem;
    }
    
    .article-body li {
        margin-bottom: 0.5rem;
    }
    
    .article-body blockquote {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .article-body blockquote::before {
        font-size: 3rem;
        top: -0.5rem;
        left: 0.5rem;
    }
    
    .article-body pre {
        padding: 0.75rem;
        margin: 1rem 0;
    }
}

/* 深色模式支持 - 自定义 */
@media (prefers-color-scheme: dark) {
    .article-content-detail {
        background: rgba(0, 0, 0, 0.5);
        border-color: rgba(0, 255, 136, 0.3);
    }
    
    .article-meta {
        background: rgba(0, 0, 0, 0.4);
        border-color: rgba(0, 255, 136, 0.25);
    }
    
    .article-body blockquote {
        background: rgba(0, 0, 0, 0.4);
        border-color: rgba(0, 255, 136, 0.25);
    }
    
    .article-body pre {
        background: rgba(0, 0, 0, 0.6);
        border-color: rgba(0, 255, 136, 0.25);
    }
}