/**
 * 社区浏览页面 - 仅补充样式
 * 卡片/网格/分页等样式复用 list.css + community.css
 */

/* 页面容器 */
.cb-section {
    padding-top: 32px !important;
    min-height: 60vh;
}

/* 搜索框（Header 右侧） */
.cb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    transition: border-color 0.2s;
}
.cb-search:focus-within {
    border-color: rgba(201,255,133,0.3);
}
.cb-search svg {
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.cb-search-input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary, #fff);
    font-size: 14px;
    width: 180px;
}
.cb-search-input::placeholder {
    color: rgba(255,255,255,0.25);
}

/* 瀑布流加载更多 */
.community-loading-more {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 0;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}
.cb-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: rgba(201,255,133,0.6);
    border-radius: 50%;
    animation: cbSpin 0.7s linear infinite;
}
@keyframes cbSpin {
    to { transform: rotate(360deg); }
}
.community-no-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 0 16px;
    color: rgba(255,255,255,0.2);
    font-size: 13px;
    letter-spacing: 2px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .cb-section .community-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .cb-section .community-tabs {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cb-search-input {
        width: 100%;
    }
    .community-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    .cb-search {
        width: 100%;
    }
    .cb-section .community-tab {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ============================================
   亮色模式覆盖
   ============================================ */
[data-theme="light"] .cb-search {
    border-color: #e5e7eb;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .cb-search:focus-within {
    border-color: #a3d96c;
    box-shadow: 0 0 0 3px rgba(201, 255, 133, 0.2);
}

[data-theme="light"] .cb-search svg {
    color: #94a3b8;
}

[data-theme="light"] .cb-search-input {
    color: #1a1a1a;
}

[data-theme="light"] .cb-search-input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .community-loading-more {
    color: #94a3b8;
}
