/* 资讯详情页特有样式 */
.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    gap: 2rem;
    position: relative;
}

/* 头部信息区 */
.news-header {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
    margin-top: 100px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.news-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #333;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.meta-info i {
    margin-right: 0.3rem;
    color: #999;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #0066cc;
    color: white;
}

.share-btn.wechat .wechat-qr {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 160px;
    text-align: center;
}

.share-btn.wechat:hover .wechat-qr {
    opacity: 1;
    visibility: visible;
    margin-bottom: 1rem;
}

.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-btn.link:hover .copy-tooltip {
    opacity: 1;
    visibility: visible;
    margin-bottom: 0.5rem;
}

/* 正文内容区 */
.news-content {
    grid-column: 1;
}

.cover-image {
    margin-bottom: 2rem;
}

.cover-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cover-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.article-body {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1.5rem;
    color: #0066cc;
    position: relative;
    padding-left: 1rem;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    height: 1em;
    width: 4px;
    background: #0066cc;
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: #333;
}

.article-body .lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
}

.article-body mark {
    background: #fff9c4;
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

.highlight-box {
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h3 {
    margin-top: 0;
    color: #0066cc;
}

.highlight-box ul {
    padding-left: 1.5rem;
}

.highlight-box li {
    margin-bottom: 0.5rem;
}

/* 图片集 */
.image-gallery {
    margin: 2rem 0;
    position: relative;
}

.gallery-container {
    display: flex;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-container img {
    width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
    max-height: 500px;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-prev,
.gallery-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #0066cc;
    color: white;
}

.gallery-counter {
    font-size: 0.9rem;
    color: #666;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0052a3;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-detail-container {
        padding: 1rem;
    }

    .news-header h1 {
        font-size: 1.8rem;
    }

    .gallery-container img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .news-header h1 {
        font-size: 1.5rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 0.8rem;
    }

    .gallery-container img {
        max-height: 250px;
    }
}