/**
 * LECMS lwyy模板 - 必应SEO优化样式
 * 为符合必应SEO标准而添加的样式优化
 * 
 * @author 大大的周
 * @version 1.0.0
 */

/* 隐藏的SEO元素 - 用于搜索引擎但不影响视觉效果 */
.seo-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

/* 面包屑导航优化 */
.breadcrumb.entry-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumb.entry-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

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

/* 标题层级优化 */
h1 {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    margin: 20px 0;
    color: #333;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.4;
    margin: 18px 0;
    color: #333;
}

h3 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    margin: 16px 0;
    color: #333;
}

/* 确保语义化标签的正确显示 */
main[role="main"] {
    display: block;
}

section[role="region"] {
    display: block;
}

aside[role="complementary"] {
    display: block;
}

nav[role="navigation"] {
    display: block;
}

/* 时间标签优化 */
time[datetime] {
    color: #666;
    font-size: 14px;
}

/* 图片alt属性优化提示 */
img:not([alt]),
img[alt=""] {
    /* 开发时提醒：确保所有图片都有alt属性 */
    border: 2px dashed #ff6b6b;
    opacity: 0.7;
}

/* 确保手机端不显示幻灯片 */
@media (max-width: 767px) {
    .slider-wrap {
        display: none !important;
    }
}



/* 必应SEO优化：文章页面优化 */
.entry-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    color: #333;
}

.entry-content {
    line-height: 1.6;
    color: #333;
}

.entry-tag a {
    color: #007bff;
    text-decoration: none;
}

.entry-tag a:hover {
    text-decoration: underline;
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .breadcrumb.entry-breadcrumb {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

/* 打印样式优化 */
@media print {
    .seo-hidden {
        position: static !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: normal !important;
    }
    
    nav[role="navigation"],
    aside[role="complementary"] {
        display: none;
    }
    
    main[role="main"] {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    h1, h2, h3 {
        color: #000;
    }
    
    .breadcrumb.entry-breadcrumb {
        color: #000;
    }
    
    .breadcrumb.entry-breadcrumb a {
        color: #0000EE;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    h1, h2, h3 {
        color: #fff;
    }
    
    .breadcrumb.entry-breadcrumb {
        color: #ccc;
    }
    
    .breadcrumb.entry-breadcrumb a {
        color: #007bff;
    }
}
