/* SEO优化专用样式 */

/* 结构化数据的视觉样式，但不影响实际内容 */
.jsonld {
    display: none;
}

/* 面包屑导航样式（用于SEO结构化数据） */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--border-color);
}

/* 文章内容优化 */
.content-section {
    margin-bottom: 40px;
}

.content-section h1,
.content-section h2,
.content-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.content-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

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

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

.content-section img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

/* 内部链接样式（SEO优化） */
.internal-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: all 0.3s ease;
}

.internal-link:hover {
    text-decoration: underline;
    border-bottom-style: solid;
}

/* 相关产品推荐样式 */
.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-products h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* 作者信息样式 */
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
}

.author-details h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.author-details p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination a {
    padding: 10px 15px;
    border-radius: 4px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

/* 搜索结果高亮 */
.search-highlight {
    background-color: yellow;
    padding: 2px 4px;
    border-radius: 2px;
}

/* 标签样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* FAQ部分样式 */
.faq-section {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: #f8f9fa;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 15px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* 结构化数据样式（保持隐藏但存在） */
.schema-org {
    display: none;
}

/* 社交分享按钮 */
.share-buttons {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.wechat {
    background-color: #07c160;
}

.share-button.weibo {
    background-color: #e6162d;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1e3f1e;
}

/* 优化移动设备上的SEO元素 */
@media screen and (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .author-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}