/* ========================================
   三亩地 - 新闻详情页样式
   ======================================== */

/* 文章详情容器 */
.article-detail {
    padding: 60px 0;
}

.article-main {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* 文章头部 */
.article-detail-header {
    padding: 40px 50px;
    border-bottom: 1px solid #eee;
}

.article-detail-title {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.5;
}

.article-detail-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    color: #999;
    font-size: 14px;
}

.article-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 文章内容 */
.article-detail-content {
    padding: 50px;
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.article-detail-content p {
    margin-bottom: 25px;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-detail-content h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #8b2e2e;
}

.article-detail-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.article-detail-content ul,
.article-detail-content ol {
    margin: 20px 0 20px 30px;
}

.article-detail-content li {
    margin-bottom: 10px;
}

.article-detail-content a {
    color: #8b2e2e;
    text-decoration: underline;
}

.article-detail-content a:hover {
    color: #6b2222;
}

.article-detail-content blockquote {
    padding: 20px 30px;
    background: #f5f0e6;
    border-left: 4px solid #8b2e2e;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.article-detail-content code {
    display: inline-block;
    padding: 3px 10px;
    background: #f5f0e6;
    color: #8b2e2e;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 14px;
    border-radius: 3px;
}

.article-detail-content pre {
    background: #1a1a1a;
    color: #f5f0e6;
    padding: 25px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-detail-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* 文章标签 */
.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 50px 30px;
}

.article-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #f5f0e6;
    color: #666;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: #8b2e2e;
    color: #f5f0e6;
}

/* 相关文章 */
.related-articles {
    padding: 50px;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8b2e2e;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-item {
    background: #f5f0e6;
    padding: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #faf6ed;
    transform: translateY(-5px);
}

.related-item h4 {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item h4 a:hover {
    color: #8b2e2e;
}

.related-date {
    color: #999;
    font-size: 12px;
}

/* 更多新闻区块 */
.more-news-section {
    padding: 50px;
    border-top: 1px solid #eee;
}

.more-news-section h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8b2e2e;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .article-detail-header,
    .article-detail-content,
    .article-tags,
    .related-articles,
    .more-news-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .article-detail-title {
        font-size: 24px;
    }

    .article-detail-content {
        font-size: 15px;
        padding: 30px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
