.article-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.video-container {
    width: 100%;
    margin-bottom: 40px;
}

.video-player {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 30px;
}

.video-header {
    padding: 15px 20px;
    background: #3498db;
    color: white;
    font-weight: 600;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background: #000;

}

/* 通用视频元素样式（B站 / AcFun / 本地MP4） */
.bilibili-iframe,
.acfun-iframe,
.local-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: contain;
}

.bilibili-iframe,
.acfun-iframe,
.local-video {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border: none;
    display: block;
    object-fit: contain;
}

.video-note {
    padding: 10px 15px;
    background: #e9ecef;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #dee2e6;
}

/* 文章内容区域优化  */
.article-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    width: 100%;
    line-height: 1.8;
}

/* Markdown内容样式优化 */
.markdown-content {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
}

.markdown-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
}

.markdown-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.markdown-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.markdown-content li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.markdown-content code {
    background: #f5f7fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.markdown-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.95rem;
}

.markdown-content blockquote {
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    color: #555;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.markdown-content a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.markdown-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .article-content {
        padding: 25px;
    }

    .markdown-content {
        font-size: 1rem;
    }

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

    .markdown-content h3 {
        font-size: 1.3rem;
    }
}