@import "card.css";

/* 頁面標題區域樣式 */
.page-title-section {
    padding: 50px 0 0px;
    position: relative;
}

.page-title-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #fff;
}

.page-subtitle {
    font-size: 18px;
    color: #fff;
    line-height: 1.5;
}

.index-boxs {

    background: url("../images/bg-3.jpg") no-repeat center bottom;
    position: relative;

}

.index-boxs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.main-container {
    position: relative;

}


.boxs-main {

    width: 100%;

}



.row1 {

    display: flex;
    justify-content: space-between;
    align-items: center;

}



.top-list ul {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 0;

}



.top-list ul li {

    list-style: none;

    background-color: #fff;

    border-radius: 5px;

    padding: 10px 22px;

    flex: 1 auto;

    cursor: pointer;

    display: flex;

    justify-content: center;

    align-items: center;

    border: 1px solid transparent;

    transition: all 0.3s ease;

}



.top-list ul li:hover {

    /* background-color: #CC0303; */

    border: 1px solid #CC0303;

}



/*

.top-list ul li:hover a img{

    filter: invert(1);

} */



.top-list ul li a {

    display: flex;

    align-items: center;

    gap: 5px;



}



.top-list ul li a span {

    font-size: 17px;

    color: #000;

    font-weight: 500;

    padding-top: 5px;

}



.top-list ul li a img {

    width: 40px;

    height: 40px;

}



.search-main-box {

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

}



.input-boxs {

    background: white;
    position: relative;

    padding: 5px 7px;
    border-radius: 5px;
    display: flex;

    align-items: center;

}



.input-boxs input.input-txt {

    height: 46px;
    outline: none;
    border: none;
    width: 100%;
    padding: 5px 12px;
    width: 280px;

}



.input-boxs button {

    background: #CC0303;
    color: white;
    height: 40px;
    line-height: 40px;
    outline: none;
    border: none;
    margin: 0 0;
    padding: 0 15px;

    border-radius: 5px;

}

.tips-empty{
    line-height: 280px; text-align: center; font-size: 30px; color: white;
}


.menu-btn {
    background: white;
    position: relative;
    padding: 7px;
    border-radius: 5px;
    width: 56px;
    height: 56px;

}

.menu-btn img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.tab-box {
    margin-top: 20px;
    border-radius: 20px 20px 0 0;
}



.tab-list {
    background-color: #fff;
    border-radius: 20px 20px 0 0;
}



.tab-list ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    overflow-x: auto;
}



.tab-list ul li {
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    flex: 1 auto;
    text-align: center;
    cursor: pointer;
    position: relative;
    min-width: 80px;
    justify-content: center;
}



.tab-list ul li.active {
    background-color: #CC0303;
    color: #fff;
}

.tab-content .tab-item {
    display: none;
}

.tab-content .tab-item.active {
    display: block;
}



.tab-content {
    margin-top: 20px;
    padding-bottom: 55px;
    min-height: 500px;
}



.tips-card-header {
    background: white;
}



/* 篩選面板樣式 */

.tips-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.filter-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

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

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

.filter-close:hover {
    background: #f0f0f0;
    color: #666;
}

.filter-body {
    padding: 20px;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}



.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.league-options {
    gap: 6px;
}



.filter-option {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;

}



.league-options .filter-option {
    padding: 6px 12px;
    font-size: 13px;
}



.filter-option:hover {

    background: #CC0303;

    border-color: #CC0303;

    color: #fff;

}



.filter-option.active {

    background: #CC0303;

    border-color: #CC0303;

    color: #fff;

}



.filter-footer {

    display: flex;

    gap: 12px;

    padding: 20px;

    border-top: 1px solid #eee;

    background: #f8f9fa;

    border-radius: 0 0 12px 12px;

}



.filter-reset-btn,

.filter-confirm-btn {

    flex: 1;

    padding: 12px 20px;

    border: none;

    border-radius: 6px;

    font-size: 16px;

    cursor: pointer;

    transition: all 0.3s ease;

}



.filter-reset-btn {

    background: #f5f5f5;

    color: #666;

}



.filter-reset-btn:hover {

    background: #e8e8e8;

}



.filter-confirm-btn {

    background: #CC0303;

    color: #fff;

}



.filter-confirm-btn:hover {

    background: #40a9ff;

}



/* 響應式設計 */

@media (max-width: 768px) {

    .filter-content {

        width: 95%;

        max-height: 85vh;

    }



    .filter-header {

        padding: 15px;

    }



    .filter-header h3 {

        font-size: 16px;

    }



    .filter-body {

        padding: 15px;

    }



    .filter-section {

        margin-bottom: 20px;

    }



    .filter-title {

        font-size: 15px;

        margin-bottom: 10px;

    }



    .filter-option {

        padding: 6px 12px;

        font-size: 13px;

    }



    .league-options .filter-option {

        padding: 5px 10px;

        font-size: 12px;

    }



    .filter-footer {

        padding: 15px;

        gap: 10px;

    }



    .filter-reset-btn,

    .filter-confirm-btn {

        padding: 10px 16px;

        font-size: 14px;

    }

}



@media (max-width: 480px) {

    .filter-content {

        width: 98%;

        max-height: 90vh;

    }



    .filter-options {

        gap: 6px;

    }



    .league-options {

        gap: 4px;

    }



    .filter-option {

        padding: 5px 10px;

        font-size: 12px;

    }



    .league-options .filter-option {

        padding: 4px 8px;

        font-size: 11px;

    }

}



/* 動畫效果 */

.tips-filter-panel {

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}



.tips-filter-panel.show {

    opacity: 1;

    visibility: visible;

}



.filter-content {

    transform: translate(-50%, -50%) scale(0.8);

    transition: all 0.3s ease;

}



.tips-filter-panel.show .filter-content {

    transform: translate(-50%, -50%) scale(1);

}



@media screen and (min-width: 1381px) {

    .tab-list ul li {

        padding: 15px 15px;

    }





}







@media screen and (min-width: 1081px) and (max-width: 1268px) {



    .top-list ul li {

        padding: 10px 12px;

    }



    .top-list ul li a img {

        width: 25px;
        height: 25px;

    }





}



@media screen and (max-width: 1080px) and (min-width: 768px) {



    .input-boxs input.input-txt {

        width: 170px;

    }



    .top-list ul li a img {

        width: 20px;
        height: 20px;

    }



    .top-list ul li {

        padding: 11px 10px;

    }



    .top-list ul li a {

        gap: 2px;

    }



    .top-list ul li a span {

        font-size: 14px;

    }



    .top-list ul {

        gap: 13px;

    }



    .input-boxs input.input-txt {

        height: 36px;

    }







    .main-container {

        padding-left: 16px;
        padding-right: 16px;

    }





}



@media screen and (max-width: 567px) {

    .tab-list ul li {

        min-height: 48px;

        align-items: center;

        display: flex;

        min-width: 80px;
        justify-content: center;

    }

}



@media screen and (max-width: 767px) {

    .top-list ul li a span {

        font-size: 14px;

    }

    .index-boxs {
        /* background: url('/static/images/bg-7.jpg') no-repeat; */
        background-size: cover;
    }


    .index-boxs::before {
        background-color: rgba(0, 0, 0, 0.05);
    }


    .top-list ul li a {

        flex-direction: column;

    }



    .row1 {

        flex-direction: column-reverse;
        gap: 20px;

        padding: 0 10px;
    }



    .tab-list{
        margin: 0 10px;
    }

    .top-list{
        width: 100%;
    }

    .search-main-box{
        width: 100%;
        justify-content: space-between;
    }

    .input-boxs{
        width: 100%;
        justify-content: space-between;
    }

    .input-boxs input.input-txt{
        flex: 1;
    }




}



@media screen and (max-width: 467px) {

    .top-list ul li a span {

        font-size: 13px;

    }



    .top-list ul {

        gap: 13px;
        flex-wrap: wrap;

    }



    .top-list ul li {

        padding: 8px 5px;
        min-width: 18vw;
        flex: 1;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }



    .input-boxs input.input-txt {

        width: 45vw;
        height: 40px;

    }

    .menu-btn{
        width: 50px;
        height: 50px;
    }

    /* 頁面標題區域響應式 */
    .page-title-section {
        padding: 40px 0 0px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .breadcrumb {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {

    /* 頁面標題區域手機響應式 */
    .page-title-section {
        padding: 30px 0 0px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .tips-empty{
        line-height: 160px; font-size: 23px;
    }
}