/**
 * 软件盒子主题 - SEO 优化相关样式
 * @package Ruanjianshuhe
 */

/* ============================================
   面包屑导航样式
   ============================================ */

.breadcrumbs {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumbs span[itemprop="name"] {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

/* ============================================
   跳转到主要内容链接 - 辅助功能
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    border-radius: 4px;
    font-size: 14px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link.screen-reader-text:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================================
   阅读进度条
   ============================================ */

#reading-progress {
    will-change: width;
}

/* ============================================
   图片懒加载
   ============================================ */

img[loading="lazy"] {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   404 错误页面样式
   ============================================ */

.error-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 16px;
}

.error-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
}

.error-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-actions .btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 28px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-actions .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.error-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
}

.error-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.error-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   移动端适配
   ============================================ */

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 12px;
        padding: 10px 0;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
}

/* ============================================
   打印样式优化
   ============================================ */

@media print {
    .header,
    .search-section,
    .breadcrumbs,
    #reading-progress,
    .skip-link {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .software-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    a {
        text-decoration: underline;
        color: #000 !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 12px;
    }
}
