/* 文章详情页特有的样式 */

/* 相关文章样式 */
.related-posts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.related-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-post-item:hover {
    transform: translateY(-2px);
}

.related-post-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}

.related-post-item div {
    flex: 1;
}

.related-post-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    font-weight: 500;
}

.related-post-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-post-item:hover .related-post-title {
    color: #007bff;
}
.article-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-category {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-decoration: none;
}

.article-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta span i {
    margin-right: 5px;
}

.article-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
    display: block;
}

/* 下载按钮样式 */
.download-section {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #007bff;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.download-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.download-item span {
    font-size: 14px;
    color: #333;
}

.download-item i {
    color: #007bff;
    margin-right: 5px;
}

.copy-btn {
    margin-left: auto;
    padding: 6px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background-color: #28a745;
}

.download-item span:first-child {
    flex: 1;
    word-break: break-all;
}

.download-item span:nth-child(2) {
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.download-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-right: 15px;
    margin-bottom: 15px;
}

.download-btn:hover {
    background-color: #0056b3;
}

/* 相关文章样式 */
.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.related-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.related-post-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-post-content {
    flex: 1;
}

.related-post-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-post-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 提示信息样式 */
.notice-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* 指南按钮样式 */
.guide-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.guide-button:hover {
    background-color: #0056b3;
}

/* 页脚文本样式 */
.footer-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.download-btn.secondary {
    background-color: #6c757d;
}

.download-btn.secondary:hover {
    background-color: #5a6268;
}

/* 系统要求 */
.system-requirements {
    background-color: #f0f8ff;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.system-requirements h3 {
    margin-top: 0;
    color: #1976d2;
}

/* 安装步骤 */
.installation-steps {
    background-color: #fff8e1;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.installation-steps h3 {
    margin-top: 0;
    color: #f57c00;
}

/* 相关文章 */
.related-posts {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-posts h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-post {
    display: block;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-date {
    font-size: 14px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-container {
        padding: 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}