﻿/* 文章详情页专用样式 */
.article-detail-container {
    background: #fff;
}

.article-header {
    position: relative;
    margin-bottom: 40px;
}

.article-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.article-meta-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 40px 0 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

    .article-breadcrumb a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
    }

        .article-breadcrumb a:hover {
            color: white;
        }

.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.publish-date {
    opacity: 0.8;
    font-size: 0.9rem;
}

.article-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tag {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.article-content-container {
    padding: 40px 0;
}

.article-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3436;
}

    .article-body h2 {
        font-size: 1.8rem;
        margin: 2rem 0 1rem;
        color: #2c3e50;
    }

    .article-body h3 {
        font-size: 1.4rem;
        margin: 1.5rem 0 0.8rem;
        color: #34495e;
    }

    .article-body p {
        margin-bottom: 1.5rem;
    }

    .article-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1.5rem 0;
    }

    .article-body blockquote {
        border-left: 4px solid #3498db;
        padding-left: 1.5rem;
        margin: 1.5rem 0;
        font-style: italic;
        color: #7f8c8d;
    }

.article-actions {
    display: flex;
    gap: 15px;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.action-btn {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .action-btn:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
    }

.like-btn.active {
    background: #ffeaea;
    border-color: #e74c3c;
    color: #e74c3c;
}

.author-card {
    display: flex;
    gap: 20px;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.business-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.business-image {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.business-info {
    padding: 1.5rem;
}

    .business-info h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.2rem;
    }

.business-category {
    color: #7f8c8d;
    margin: 0 0 1rem 0;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.view-business-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

    .view-business-btn:hover {
        background: #2980b9;
    }

.related-articles {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

    .related-articles h3 {
        margin: 0 0 1rem 0;
        font-size: 1.2rem;
    }

.related-article-item {
    padding: 1rem 0;
    border-bottom: 1px solid #ecf0f1;
}

    .related-article-item:last-child {
        border-bottom: none;
    }

    .related-article-item h4 {
        margin: 0 0 0.5rem 0;
        font-size: 1rem;
    }

        .related-article-item h4 a {
            color: #2c3e50;
            text-decoration: none;
        }

            .related-article-item h4 a:hover {
                color: #3498db;
            }

.table-of-contents {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

    .table-of-contents h3 {
        margin: 0 0 1rem 0;
        font-size: 1.2rem;
    }

.toc-content {
    max-height: 300px;
    overflow-y: auto;
}

.toc-item {
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

    .toc-item:hover {
        border-left-color: #3498db;
    }

    .toc-item a {
        color: #7f8c8d;
        text-decoration: none;
        font-size: 0.9rem;
    }

        .toc-item a:hover {
            color: #3498db;
        }

    .toc-item.active {
        border-left-color: #3498db;
    }

        .toc-item.active a {
            color: #3498db;
            font-weight: 600;
        }

/* 响应式设计 */
@media (max-width: 992px) {
    .article-content {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: -1;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .article-hero {
        height: 300px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-actions {
        flex-direction: column;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }
}
