/* WP SEO Manager 前端样式 */

/* 隐藏默认的WordPress标题（如果设置了自定义SEO标题） */
.wp-seo-custom-title {
    display: none;
}

/* SEO优化相关样式 */
.wp-seo-meta {
    display: none; /* 隐藏SEO元数据容器 */
}

/* 结构化数据样式 */
.wp-seo-structured-data {
    display: none;
}

/* 社交媒体分享优化 */
.wp-seo-social-share {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.wp-seo-social-share h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.wp-seo-social-share .share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wp-seo-social-share .share-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wp-seo-social-share .share-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wp-seo-social-share .share-facebook {
    background: #3b5998;
}

.wp-seo-social-share .share-twitter {
    background: #1da1f2;
}

.wp-seo-social-share .share-linkedin {
    background: #0077b5;
}

.wp-seo-social-share .share-whatsapp {
    background: #25d366;
}

/* 面包屑导航样式 */
.wp-seo-breadcrumb {
    margin: 10px 0 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.wp-seo-breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

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

.wp-seo-breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

/* 相关文章样式 */
.wp-seo-related-posts {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wp-seo-related-posts h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.wp-seo-related-posts .related-post {
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.wp-seo-related-posts .related-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wp-seo-related-posts .related-post-thumbnail {
    width: 80px;
    height: 60px;
    margin-right: 15px;
    border-radius: 4px;
    object-fit: cover;
}

.wp-seo-related-posts .related-post-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.wp-seo-related-posts .related-post-content h4 a {
    color: #333;
    text-decoration: none;
}

.wp-seo-related-posts .related-post-content h4 a:hover {
    color: #007cba;
}

.wp-seo-related-posts .related-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 内部链接优化 */
.wp-seo-internal-links {
    margin: 20px 0;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.wp-seo-internal-links h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.wp-seo-internal-links ul {
    margin: 0;
    padding-left: 20px;
}

.wp-seo-internal-links li {
    margin-bottom: 5px;
}

.wp-seo-internal-links a {
    color: #007cba;
    text-decoration: none;
}

.wp-seo-internal-links a:hover {
    text-decoration: underline;
}

/* 页面加载优化 */
.wp-seo-lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-seo-lazy-load.loaded {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wp-seo-social-share .share-buttons {
        justify-content: center;
    }
    
    .wp-seo-related-posts .related-post {
        flex-direction: column;
    }
    
    .wp-seo-related-posts .related-post-thumbnail {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .wp-seo-social-share .share-button {
        flex: 1;
        text-align: center;
    }
    
    .wp-seo-related-posts {
        padding: 15px;
    }
}

/* 打印样式 */
@media print {
    .wp-seo-social-share,
    .wp-seo-related-posts,
    .wp-seo-internal-links {
        display: none;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .wp-seo-social-share,
    .wp-seo-related-posts,
    .wp-seo-internal-links {
        border: 2px solid #000;
    }
    
    .wp-seo-social-share .share-button {
        border: 1px solid #000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .wp-seo-social-share .share-button,
    .wp-seo-related-posts .related-post,
    .wp-seo-lazy-load {
        transition: none;
    }
} 