/* 筛选页面样式 */
.filter-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.filter-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.back-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.back-button:active {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: center;
    letter-spacing: 0.5px;
    color: white;
}

.confirm-button {
    background-color: #f97316;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confirm-button:hover {
    background-color: #fb923c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.confirm-button:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 确认按钮活动状态 */
.confirm-button.active {
    background-color: #ea580c;
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 筛选内容区域 */
.filter-content {
    padding: 15px;
    overflow-y: auto;
    height: calc(100vh - 55px);
    background-color: var(--bg-color);
}

/* 筛选部分 */
.filter-section {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
}

/* 仅适用于不在section-header中的section-title */
.filter-section > .section-title {
    margin-bottom: 18px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: var(--accent-color);
    margin-right: 10px;
    border-radius: 2px;
}

.selection-actions {
    display: flex;
    gap: 15px;
}

.selection-button {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
    position: relative;
}

.selection-button:hover {
    color: var(--accent-light);
}

.selection-button::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: right;
}

.selection-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 筛选选项 */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* 体育类型选项 */
.filter-section:first-child .filter-option {
    flex: 1;
    min-width: 120px;
    max-width: calc(50% - 8px);
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.filter-section:first-child .filter-option i {
    font-size: 18px;
}

/* 联赛选项 */
.filter-section:last-child .filter-option {
    width: calc(33.33% - 10px);
    text-align: center;
    box-sizing: border-box;
}

.filter-option {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--option-transition, all 0.25s ease);
    -webkit-user-select: none;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-option:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-width: 2px;
}

.filter-option.selected:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

/* 确保选中状态下图标和文字在深色背景上清晰可见 */
.filter-option.selected i {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-option:active {
    transform: scale(0.97);
}

/* 浅色主题适配 */
body[data-theme="light"] .filter-section {
    background-color: white;
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .section-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .filter-option {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .filter-option:hover {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] .filter-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-light);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .filter-option.selected:hover {
    background-color: var(--primary-light);
}

body[data-theme="light"] .filter-content {
    background-color: #f8fafc;
}

/* 媒体查询适配小屏幕 */
@media (max-width: 380px) {
    .filter-section:last-child .filter-option {
        width: calc(50% - 8px);
    }
}

@media (max-width: 320px) {
    .filter-option {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .filter-options {
        gap: 8px;
    }
    
    .confirm-button {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* 热门联赛标签 */
.hot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 确保选中状态下热门图标更加清晰 */
.filter-option.selected .hot-icon i {
    color: var(--accent-light) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
} 