/* 赛事筛选按钮样式 - 已整合到tab-list中 */
.match-filter-btn {
    display: none;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f2f2f2;
    color: #333;
    border: none;
    padding: 6px 8px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
    font-size: 12px;
}



.filter-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* 赛事筛选弹窗样式 */
.match-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    justify-content: flex-end;
}

.match-filter-modal.show {
    display: flex !important;
    opacity: 1;
}

.filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.filter-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    max-height: 80%;
    margin: auto;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #CC0303;
    color: #fff;
}

.filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.filter-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.filter-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.filter-search {
    padding:0px 10px;
}

.filter-search input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #E5E5E5;
    border-radius: 25px;
    background-color: #F7F9FC;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-search input:focus {
    border-color: #CC0303;
    background-color: #fff;
}

.filter-search input::placeholder {
    color: #999;
}

.filter-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.filter-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #F7F9FC;
}

.filter-list li:hover {
    background-color: #F7F9FC;
}

.filter-list li.selected {
    background-color: #FFF5F5;
    color: #CC0303;
}

.filter-list li img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.filter-list li span {
    font-size: 15px;
    font-weight: 500;
    color: inherit;
}

/* 响应式显示 */

@media (max-width: 1024px) {
    .left-main {
        display: none;
    }
}

/* 手机端优化 */
@media (max-width: 768px) {
    .filter-content {
        width: 95%;
        max-height: 85%;
    }

    .filter-header {
        padding: 15px 20px;
    }

    .filter-header h3 {
        font-size: 16px;
    }

    .filter-search {
        padding: 5px 5px;
    }

    .filter-search input{
        padding: 0 15px 0 40px;
    }

    .filter-list li {
        padding: 12px 20px;
    }

    .filter-list li span {
        font-size: 14px;
    }

    .filter-btn span {
        position: relative;
        top: 1px;
    }
}

/*
*賽果篩選--------------------------------------------------開始
*/

/* 篩選容器 */
.match-end-tool {
    width: 100%;
    /* margin-bottom: 25px; */
}

.filter-container {
    display: flex;
    gap: 5px;
    align-items: center;
    max-width: 97%;
}

/* 搜尋框樣式 */
.filter-search {
    min-width: 0;
    width: 70%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    cursor: pointer;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 15px 0 45px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* 日期選擇器樣式 */
.filter-date {
    flex-shrink: 0;
    width: 30%;
}

.date-input {
    width: 100%;
    height: 45px;
    padding: 0 35px 0 15px;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M896 128h-96V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v64H288V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v64h-96c-52.8 0-96 43.2-96 96v640c0 52.8 43.2 96 96 96h768c52.8 0 96-43.2 96-96V224c0-52.8-43.2-96-96-96zM128 192h96v32c0 17.6 14.4 32 32 32s32-14.4 32-32v-32h448v32c0 17.6 14.4 32 32 32s32-14.4 32-32v-32h96c17.6 0 32 14.4 32 32v128H96V224c0-17.6 14.4-32 32-32z m768 704H128c-17.6 0-32-14.4-32-32V416h832v448c0 17.6-14.4 32-32 32z' fill='%23999999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.date-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* 平板適配 (768px - 1024px) */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .filter-container {
        gap: 12px;
    }


    .search-input,
    .date-input {
        height: 42px;
        font-size: 13px;
    }
}

/* 手機適配 (小於768px) */
@media screen and (max-width: 767px) {
    .match-end-tool {
        padding: 15px 0;
    }

    .filter-container {
        flex-direction: column;
        gap: 12px;
        margin: 0 auto;
    }

    .filter-search,
    .filter-date {
        width: 100%;
    }

    .filter-date{
        padding: 0 5px;
    }

    .search-input,
    .date-input {
        height: 40px;
        font-size: 14px;
    }

    .search-icon {
        left: 12px;
    }

    .search-input {
        padding: 0 12px 0 40px;
    }

    .date-input {
        padding: 0 35px 0 12px;
    }
}

/* 小屏手機適配 (小於375px) */
@media screen and (max-width: 374px) {
    .search-input,
    .date-input {
        height: 38px;
        font-size: 13px;
    }

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

/* Layui 日期選擇器自定義樣式 */
.layui-laydate {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.layui-laydate-header {
    border-radius: 8px 8px 0 0;
}

.layui-this {
    background-color: #4CAF50 !important;
}

.layui-laydate-content td:hover {
    background-color: rgba(76, 175, 80, 0.1);
}


/*
*賽果篩選結束------------------------------------------結束
*/