/* 文章详情页样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
}

/* 文章容器 */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 文章内容区 */
.article-content {
    background: #fff;
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 文章头部 */
.article-content header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.article-content time {
    color: #999;
    font-size: 14px;
}

.article-author {
    color: #FF6A00;
    font-weight: 500;
}

.article-views::before {
    content: '👁 ';
}

/* 文章封面图 */
.article-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin: 30px 0;
}

/* 文章正文 */
.article-content section {
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #FF6A00;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin: 25px 0 12px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

/* 列表样式 */
.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content li strong {
    color: #FF6A00;
    font-weight: 600;
}

/* 引用块 */
.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #FF6A00;
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    color: #666;
}

/* 代码块 */
.article-content code {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.article-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    display: block;
}

.article-image {
    text-align: center;
    margin: 30px 0;
}

.article-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
}

.article-content th,
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.article-content th {
    background: #FF6A00;
    color: #fff;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background: #f8f9fa;
}

/* 提示框 */
.tip-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.tip-box.info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.tip-box.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.tip-box.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.tip-box.danger {
    background: #f8d7da;
    border-left-color: #dc3545;
}

/* 文章底部 */
.article-content footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.article-content footer a {
    color: #FF6A00;
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s;
}

.article-content footer a:hover {
    color: #E55D00;
    text-decoration: underline;
}

/* 相关文章推荐 */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-articles h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.related-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.related-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.related-item a:hover {
    color: #FF6A00;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-content {
        padding: 30px 20px;
    }
    
    .article-content h1 {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
}

/* 打印样式 */
@media print {
    body {
        background: #fff;
    }
    
    .article-content {
        box-shadow: none;
        padding: 0;
    }
    
    .article-content footer {
        display: none;
    }
}
