/**
 * 策略筛选中心 - 分类页面样式（精美版）
 * 筛选侧栏：筛选中心 + 分组筛选
 */

/* 分类页面整体布局 */
.sfc-cat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 筛选侧栏 */
.sfc-cat-sidebar {
    position: sticky;
    top: 20px;
    background: var(--eafxm-bg-light, #141828);
    border-radius: 16px;
    padding: 24px 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid var(--eafxm-border, rgba(255,255,255,0.06));
}

/* 头部 */
.sfc-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
    color: var(--eafxm-text, #fff);
}

.sfc-sidebar-header svg {
    color: var(--eafxm-green, #3b82f6);
    flex-shrink: 0;
}

/* 分组 */
.sfc-filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--eafxm-border, rgba(255,255,255,0.06));
}

.sfc-filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 分组标题 */
.sfc-group-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--eafxm-text-secondary, #8b9bb4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sfc-group-title span {
    color: var(--eafxm-text-muted, #5a6b85);
    margin-left: 4px;
}

/* --- Checkbox style (策略类型) --- */
.sfc-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--eafxm-text-secondary, #a0aec0);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    cursor: pointer;
}

.sfc-check-item:hover {
    background: var(--eafxm-green-glow, rgba(59,130,246,0.08));
    color: var(--eafxm-text, #e2e8f0);
}

.sfc-check-item.active {
    color: var(--eafxm-text, #e2e8f0);
}

.sfc-check-box {
    width: 16px;
    height: 16px;
    border: 2px solid var(--eafxm-border, #475569);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.sfc-check-item.active .sfc-check-box {
    background: var(--eafxm-green, #3b82f6);
    border-color: var(--eafxm-green, #3b82f6);
}

.sfc-check-box svg {
    opacity: 0;
    transition: opacity 0.15s;
    color: #fff;
}

.sfc-check-item.active .sfc-check-box svg {
    opacity: 1;
}

.sfc-check-label {
    line-height: 1.4;
}

/* --- Card style (风险等级) --- */
.sfc-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid var(--eafxm-border, rgba(255,255,255,0.06));
    background: var(--eafxm-green-glow, rgba(255,255,255,0.02));
    color: var(--eafxm-text-secondary, #a0aec0);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    cursor: pointer;
}

.sfc-card-item:hover {
    border-color: var(--eafxm-green, rgba(59,130,246,0.3));
    color: var(--eafxm-text, #e2e8f0);
}

.sfc-card-item.active {
    border-color: var(--eafxm-green, #10b981);
    background: var(--eafxm-green-glow, rgba(16,185,129,0.08));
    color: var(--eafxm-green, #10b981);
}

.sfc-card-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--eafxm-green, #10b981);
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s;
}

.sfc-card-item.active .sfc-card-check {
    opacity: 1;
}

/* --- Pill style (交易周期) --- */
.sfc-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sfc-pill {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid var(--eafxm-border, rgba(255,255,255,0.08));
    background: var(--eafxm-green-glow, rgba(255,255,255,0.02));
    color: var(--eafxm-text-secondary, #94a3b8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.sfc-pill:hover {
    border-color: var(--eafxm-green, rgba(59,130,246,0.4));
    color: var(--eafxm-text, #e2e8f0);
}

.sfc-pill.active {
    background: var(--eafxm-green, #3b82f6);
    border-color: var(--eafxm-green, #3b82f6);
    color: #fff;
}

/* 右侧内容区 */
.sfc-cat-posts {
    min-width: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .sfc-cat-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sfc-cat-sidebar {
        position: static;
        max-height: none;
    }
}
