/* ==================== 文章详情页专用样式 ==================== */

/* 文章容器 */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* 返回导航 */
.back-nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(20, 10, 40, 0.6), rgba(30, 20, 50, 0.5));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.back-link:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(59, 130, 246, 0.3));
    border-color: var(--neon-cyan);
    transform: translateX(-5px);
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.4);
}

.back-link svg {
    width: 18px;
    height: 18px;
    stroke: var(--neon-cyan);
}

/* 文章头部 */
.article-header {
    padding: 8rem 0 3rem;
    text-align: center;
}

.article-header .article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-header .article-date,
.article-header .article-category {
    font-size: 0.95rem;
}

.article-header .article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

.article-summary {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 文章内容 */
.article-content {
    padding: 3rem;
    margin-bottom: 4rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--neon-purple);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--neon-cyan);
}

.article-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.article-content li::marker {
    color: var(--neon-purple);
}

/* 代码块 */
.article-content pre {
    background: rgba(10, 5, 20, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
}

.article-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.article-content code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: var(--neon-cyan);
    line-height: 1.6;
}

.article-content p code {
    background: rgba(168, 85, 247, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 引用块 */
.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
    border-left: 4px solid var(--neon-pink);
    border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-primary);
}

/* 强调文本 */
.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content em {
    color: var(--neon-purple);
    font-style: italic;
}

/* 分隔线 */
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-cyan), transparent);
    margin: 3rem 0;
}

/* 文章底部 */
.article-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(168, 85, 247, 0.3);
}

.article-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.article-tag {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid var(--neon-purple);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    border: none;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.back-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

/* 响应式 */
@media (max-width: 768px) {
    .article-container {
        padding: 0 1.5rem;
    }

    .back-nav {
        top: 1rem;
        left: 1rem;
    }

    .back-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .article-header {
        padding: 6rem 0 2rem;
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }
}
