/* ==========================================
   移动端响应式适配 - 极简版
   ========================================== */

@media (max-width: 768px) {
    :root {
        --hero-height: 172px;
    }

    /* 导航栏折叠 */
    .sidebar { 
        width: 50px; 
        top: var(--hero-height);
    }
    
    .nav-item { 
        padding: 12px 0; 
        justify-content: center; 
    }
    
    .nav-icon { 
        margin-right: 0;
    }
    
    .nav-text { 
        display: none; 
    }
    
    /* 内容区 */
    .content { 
        margin-left: 50px;
        padding: 15px;
    }
    
    /* 网格容器 - 关键修复 */
    .resource-grid { 
        grid-template-columns: 1fr !important;
        gap: 15px;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* 卡片 - 关键修复三件套 */
    .resource-card { 
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .seo-content {
        margin-top: 18px;
        padding: 18px;
    }

    .seo-content h2 {
        font-size: 16px;
    }

    .seo-content p {
        font-size: 13px;
    }

    .seo-keywords {
        gap: 6px;
    }

    .seo-keywords span {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* 顶部栏 */
    .header { 
        height: var(--hero-height);
        padding: 14px 12px 18px;
        gap: 10px;
    }
    
    .main-container { 
        margin-top: var(--hero-height);
        height: calc(100vh - var(--hero-height));
    }

    .header-actions {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .hero-action-btn span {
        display: none;
    }

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

    .site-subtitle {
        font-size: 12px;
        margin-top: 4px;
        text-align: center;
    }

    .hero-search-wrap {
        width: 100%;
    }

    .header-search {
        height: 44px;
        border-radius: 8px;
    }
    
    .search-input { 
        width: 100%;
        font-size: 13px; 
        padding: 0 12px;
    }

    .search-input::placeholder {
        font-size: 12px;
    }

    .search-btn {
        width: 82px;
        font-size: 13px;
    }

    .admin-btn { 
        width: 30px;
        height: 30px;
        padding: 0;
    }
    
    .admin-btn svg { 
        width: 14px; 
        height: 14px; 
    }
    
    /* 固定按钮 */
    .fixed-contribute-btn { 
        width: 36px; 
        height: 36px; 
    }
    
    .fixed-contribute-btn svg { 
        width: 16px; 
        height: 16px; 
    }
    
    /* Toast */
    .toast-container { 
        bottom: 60px; 
        right: 10px; 
        left: 60px; 
    }
    
    .toast {
        min-width: auto;
    }
    
    /* 弹窗 */
    .modal-content { 
        width: 95%;
    }
}
