/* 响应式设计 */

/* 平板设备 */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .video-items {
        grid-template-columns: 1fr;
    }
    
    .mode-switcher {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .mode-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .quality-selector {
        top: 10px;
        right: 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
    
    .settings-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .announcement {
        width: 90%;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .category-card {
        padding: 20px;
    }
    
    .category-card .icon {
        font-size: 36px;
    }
    
    .category-card h3 {
        font-size: 18px;
    }
    
    .video-item {
        padding: 15px;
    }
    
    .video-settings-panel {
        width: 220px;
        right: 20px;
        top: 70px;
    }
    
    .bg-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 240px;
        max-height: none;
    }
    
    .announcement {
        width: 95%;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* 超小屏幕 */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    header {
        padding: 20px 0;
    }
    
    .mode-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .video-settings-panel {
        width: 200px;
    }
}
