/* 文章详情页面样式 */

/* 主容器 */
.article-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 200px);
}

/* 加载状态 */
.loading-container {
    text-align: center;
    padding: 4rem 0;
    color: #9ca3af;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(83, 255, 138, 0.3);
    border-top: 3px solid #53ff8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.error-container {
    text-align: center;
    padding: 4rem 0;
    color: #ff6b6b;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-container h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #53ff8a;
    color: #000000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #45e078;
    transform: translateY(-2px);
}

/* 文章内容 */
.article-content {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* 文章头部 */
.article-header {
    margin-bottom: 2rem;
}

.article-breadcrumb {
    margin-bottom: 1.5rem;
}

.back-to-list {
    color: #53ff8a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-to-list:hover {
    color: #45e078;
    text-decoration: underline;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #53ff8a;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: left;
}

/* 文章元信息 */
.article-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.article-meta-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-meta-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 返回按钮（重用video-player的样式） */
.back-btn {
    background: #53ff8a;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background: #45e078;
    transform: translateY(-2px);
}

.article-author-info,
.article-date-info {
    font-size: 0.9rem;
    color: #9ca3af;
}

.author-name,
.publish-date {
    color: #ffffff;
    font-weight: 500;
}

.article-category {
    background: rgba(83, 255, 138, 0.2);
    color: #53ff8a;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-views-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* 特色图片 - 已禁用顶部显示 */
.featured-image-container {
    display: none !important; /* 强制隐藏封面图片 */
    margin: 2rem 0;
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 文章摘要 */
.article-excerpt-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(83, 255, 138, 0.05);
    border-left: 4px solid #53ff8a;
    border-radius: 0 8px 8px 0;
}

.excerpt-label {
    font-size: 0.9rem;
    color: #53ff8a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-excerpt {
    color: #d1d5db;
    line-height: 1.6;
    font-style: italic;
}

/* 文章正文 */
.article-body {
    margin: 2.5rem 0;
}

.article-body-content {
    color: #e5e7eb;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

/* 正文内容样式 */
.article-body-content h1,
.article-body-content h2,
.article-body-content h3,
.article-body-content h4,
.article-body-content h5,
.article-body-content h6 {
    color: #ffffff;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.article-body-content h1 { font-size: 2.2rem; color: #53ff8a; }
.article-body-content h2 { font-size: 1.8rem; color: #53ff8a; }
.article-body-content h3 { font-size: 1.5rem; }
.article-body-content h4 { font-size: 1.3rem; }
.article-body-content h5 { font-size: 1.1rem; }
.article-body-content h6 { font-size: 1rem; }

.article-body-content p {
    margin: 1.2rem 0;
    text-indent: 2em;
}

.article-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-body-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
}

.article-body-content blockquote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #53ff8a;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #d1d5db;
}

.article-body-content code {
    background: rgba(255, 255, 255, 0.1);
    color: #53ff8a;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.article-body-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body-content pre code {
    background: none;
    padding: 0;
    color: #e5e7eb;
}

.article-body-content ul,
.article-body-content ol {
    margin: 1.2rem 0;
    padding-left: 2rem;
}

.article-body-content li {
    margin: 0.5rem 0;
    color: #e5e7eb;
}

.article-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.article-body-content th,
.article-body-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body-content th {
    background: rgba(83, 255, 138, 0.1);
    color: #53ff8a;
    font-weight: 600;
}

.article-body-content a {
    color: #53ff8a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-body-content a:hover {
    color: #45e078;
    text-decoration: underline;
}

/* 文章标签 */
.article-tags-container {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tags-label {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 文章底部 */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
}

.article-footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(83, 255, 138, 0.3) 50%, transparent 100%);
    margin-bottom: 2rem;
}

.article-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-footer-left p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.back-to-top-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #53ff8a;
    border: 1px solid rgba(83, 255, 138, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-top-btn:hover {
    background: #53ff8a;
    color: #000000;
    transform: translateY(-2px);
}

/* 浮动返回顶部按钮 */
.floating-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #53ff8a;
    color: #000000;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(83, 255, 138, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-back-to-top:hover {
    background: #45e078;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(83, 255, 138, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-detail-container {
        padding: 1rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-meta-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .article-meta-right {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .article-body-content {
        font-size: 1rem;
    }
    
    .article-body-content h1 { font-size: 1.8rem; }
    .article-body-content h2 { font-size: 1.5rem; }
    .article-body-content h3 { font-size: 1.3rem; }
    
    .article-footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-body-content p {
        text-indent: 1em;
    }
    
    .article-meta-left {
        width: 100%;
    }
    
    .back-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}