/* 内容单页样式 */

/* 页面横幅 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 内容容器 */
.content-container {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.content-wrapper {
    flex: 1;
    min-width: 0;
}

.content-sidebar {
    width: 300px;
}

/* 文章样式 */
.content-article {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

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

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #777;
    font-size: 0.9rem;
}

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

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 文章内容样式 */
.article-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

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

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

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

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

.notice-box {
    background-color: #fff8e6;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

.notice-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-signature {
    font-style: italic;
    text-align: right;
    margin-top: 30px;
    color: #777;
}

.article-signature p {
    margin-bottom: 5px;
}

/* 文章底部 */
.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags, .article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags span, .article-share span {
    color: #777;
}

.article-tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.share-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 相关文章 */
.content-related {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.related-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.related-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.related-item {
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.related-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: #444;
    transition: color 0.3s ease;
}

.related-item a:hover {
    color: var(--primary-color);
}

.related-item-title {
    flex-grow: 1;
    margin-right: 15px;
}

.related-item-date {
    color: #999;
    font-size: 0.85rem;
    white-space: nowrap;
}

.related-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 侧边栏样式 */
.sidebar-widget {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

/* 分类列表 */
.category-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #444;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-list a:hover, .category-list a.active {
    background-color: var(--primary-color);
    color: white;
}

.category-list a span {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.8rem;
    color: #666;
    transition: all 0.3s ease;
}

.category-list a:hover span, .category-list a.active span {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 热门列表 */
.popular-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.popular-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-index {
    width: 28px;
    height: 28px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-right: 12px;
    flex-shrink: 0;
}

.popular-item:nth-child(1) .popular-index {
    background-color: #ffcc00;
    color: white;
}

.popular-item:nth-child(2) .popular-index {
    background-color: #c0c0c0;
    color: white;
}

.popular-item:nth-child(3) .popular-index {
    background-color: #cd7f32;
    color: white;
}

.popular-item a {
    text-decoration: none;
    color: #444;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.popular-item a:hover {
    color: var(--primary-color);
}

/* 联系客服 */
.contact-info {
    color: #666;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 30px;
    height: 30px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-qr {
    text-align: center;
    margin-top: 20px;
}

.contact-qr img {
    width: 150px;
    height: 150px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.contact-qr p {
    font-size: 0.9rem;
    color: #777;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .content-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content-article {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-footer {
        flex-direction: column;
    }
    
    .notice-box {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .content-container {
        padding: 30px 0;
    }
    
    .content-article, .content-related, .sidebar-widget {
        padding: 15px;
    }
    
    .related-item a {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-item-date {
        margin-top: 5px;
    }
}

/* 阅读进度条 */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--primary-color);
    width: 0;
    z-index: 1000;
    transition: width 0.1s ease, opacity 0.3s ease;
    opacity: 0;
}

.reading-progress-bar.visible {
    opacity: 1;
}

/* 微信分享弹窗 */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-overlay.show {
    opacity: 1;
}

.wechat-qr-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 300px;
    width: 100%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.wechat-qr-container.show {
    transform: scale(1);
}

.wechat-qr-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--text-color);
}

.wechat-qr-container .qr-code {
    margin-bottom: 20px;
}

.wechat-qr-container .qr-code img {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wechat-qr-container p {
    margin-bottom: 20px;
    color: #666;
}

.wechat-qr-container .close-qr {
    padding: 10px 25px;
} 