/* 文章详情页样式 */

.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

/* 文章容器 */
.article {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-weight: 500;
}

.article-date,
.article-reading-time {
    color: var(--text-muted);
}

.article-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.article-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文章内容 */
.article-content {
    padding: 2rem;
    line-height: 1.7;
    color: var(--text-color);
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* 特殊内容框 */
.article-summary {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.article-summary h2 {
    color: #0369a1;
    margin-top: 0;
    border: none;
    padding: 0;
}

.info-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box h3 {
    color: #15803d;
    margin-top: 0;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h3 {
    color: #d97706;
    margin-top: 0;
}

.cta-box {
    background: linear-gradient(135deg, #fdf4ff, #f3e8ff);
    border: 1px solid #a855f7;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.cta-box h3 {
    color: #7c3aed;
    margin-top: 0;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
}

/* 平台指南 */
.platform-guide {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}

.platform-guide h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* 应用列表 */
.app-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.app-list h4 {
    margin-top: 0;
    color: var(--dark-color);
}

/* 内部链接 */
.internal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.internal-link:hover {
    text-decoration: underline;
}

/* 文章底部 */
.article-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.article-tags .tag {
    background: var(--light-bg);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background: var(--primary-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article {
        margin: 0 1rem;
    }
    
    .article-header,
    .article-content,
    .article-footer {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .nav-button {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-header,
    .article-content,
    .article-footer {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .article-content h2 {
        font-size: 1.25rem;
    }
    
    .article-image {
        height: 200px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .article {
        background: #1f2937;
        border-color: #374151;
    }
    
    .article-header {
        border-color: #374151;
    }
    
    .article-title {
        color: #f9fafb;
    }
    
    .article-content {
        color: #d1d5db;
    }
    
    .article-content h2,
    .article-content h3,
    .article-content h4 {
        color: #f9fafb;
    }
    
    .article-footer {
        background: #111827;
        border-color: #374151;
    }
    
    .platform-guide,
    .app-list {
        background: #374151;
    }
}