/* SEO优化样式 */

/* 隐藏但保留给屏幕阅读器的内容 */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #6c757d;
}

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

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

.breadcrumb-item:last-child {
    color: #6c757d;
}

/* 网站标题 */
.site-branding {
    margin-bottom: 15px;
}

.site-title {
    margin: 0;
    font-size: 24px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

/* 页面头部 */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
}



/* 视频网格优化 - 一排2个视频 */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.video-title a {
    color: #2c3e50;
    text-decoration: none;
}

.video-title a:hover {
    color: #3498db;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.video-category a {
    color: #3498db;
    text-decoration: none;
}

.video-category a:hover {
    text-decoration: underline;
}

/* 侧边栏内容 */
.sidebar-content {
    margin-top: 40px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* 关键词标签云 */
.keyword-cloud {
    margin-bottom: 30px;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.keyword-tag:hover {
    background: #2980b9;
}

/* 分类导航 */
.category-navigation {
    margin-bottom: 30px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.category-link {
    display: block;
    padding: 12px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.category-link:hover {
    background: #e9ecef;
}

/* 更新说明 */
.update-notice {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.update-notice p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* 底部优化 */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-title {
    color: #3498db;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #34495e;
    padding-bottom: 8px;
}

.footer-sitemap,
.footer-keywords,
.footer-info {
    margin-bottom: 30px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

.random-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.random-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.random-links a:hover {
    background: #34495e;
    color: #3498db;
}

.footer-info p {
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 10px;
}

.copyright {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

.copyright p {
    margin: 5px 0;
    font-size: 14px;
}

/* 播放页优化 */
.video-player-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-header {
    margin-bottom: 20px;
}

.video-player {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.video-player video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 响应式设计 - 所有设备保持一排2个视频 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .breadcrumb {
        font-size: 14px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr 1fr; /* 手机端也保持2列 */
        gap: 8px;
    }
    
    .keyword-list {
        justify-content: center;
    }
    
    .random-links {
        justify-content: center;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
} 