@charset "utf-8";
.wrapper-main{
    position: relative;
    z-index: 4;
}
.win-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    z-index: 1;
}

.section-cata {
    position: relative;
    z-index: 999;
    width: 280px;
    border-radius: 5px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

#magcata {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    background-color: #F3D9F1;
    color: #925E8F;
    font-weight: 400;
    position: relative;
    width: 100%;


}

#magcata:after {  
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #925E8F;
    position: absolute;
    right: 10px;
    top:15px
}

.nav-cata {
    display: none;
    background-color: rgba(243, 217, 241, 0.5);
    padding: 0.2rem;
}
.nav-cata a{
    text-decoration: none;
}
.nav-cata.active {
    display: block;
}

.cata-list li {
    color: #1d1d1d;
    background-color: rgba(237, 203, 157, 0);
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    padding: 0.2rem 0.5rem;
    position: relative;
}

.cata-list li:hover {
    background-color: #F3D9F1;
}

.cata-list li.active {
    color: #925E8F;
}

.section-win__main {
    margin-top: calc(var(--sectionpd) * 0.5);
    margin-bottom: var(--sectionpd);
}

.box-msg {
    color: #333333;
    font-size: 1rem;
    font-weight: 400;
    margin-top: var(--rowpd);
    margin-bottom: var(--rowpd);
    padding-right: 0%;
    position: relative;
}

.table {
    border: 1px solid #CFA7CD ;
    text-align: center;
}


.table tbody tr:first-child {
    font-weight: 700 !important;
    background-color: #CFA7CD !important;
}
.table tbody tr:first-child td:nth-child(-n+9999) {
    background-color: #CFA7CD;
    border-right: 1px solid #FFFFFF;
}
.table tbody tr:first-child td:last-child {
    border-right: none; /* 移除最後一個 th 的右邊線 */
}
.table tbody tr{
    font-weight: 400;
    background-color: #fff;
}

.table tbody tr td{
    border: 1px solid #CFA7CD;
}

@media screen and (min-width: 1024px) {
    .section-cata {
        width: 100%;
    }

    #magcata {
        display: none;
    }

    .nav-cata {
        display: block;
        background-color: rgba(237, 203, 157, 0);
    }

    .cata-list li {
        color: #925E8F;
        background-color: transparent;
        border-radius: 20px;
        border: 2px solid #925E8F;
    }

    .cata-list li.active {
        background-color: #F3D9F1;
        color: #925E8F;
        border-radius: 20px;
        border: 2px solid #925E8F;
    }

   
}

@media screen and (min-width: 1520px) {
    .win-container {
        max-width: 1200px;
        padding-left: 2rem;
        padding-right: 2rem;
    }

}

/*--------------------------------
-----------------------------works*/
.worklist{
    position: relative;
    z-index: 4;
}
.worklist a{
    text-decoration: none;
}

.worklist li {
    margin-bottom: 2rem;
}

.box-work__li {
    background-color: rgba(255, 255, 255, 1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid #CFA7CD;
    border-radius: 20px;
}

.box-work__li:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.box-pic {
    background-repeat: no-repeat;
    background-position: top center;
    overflow: hidden;
}

.box-pic img {
    object-fit: cover;
}

.box-work__des {
    padding: 1rem 2rem 2rem 2rem;
    text-align: center;
}

.box-range {
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    color: #ffffff;
    position: relative;
    z-index: 1;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: -30px;
    background-size: contain;
    background-repeat: no-repeat;
    left: 5px;
    top: -15px;
}

.box-range.rang1 {
    background-image: url(../img/page/win/degree1.svg);
}

.box-range.rang2 {
    background-image: url(../img/page/win/degree2.svg);
}

.box-range.rang3 {
    background-image: url(../img/page/win/degree3.svg);
}

.box-range.rang4 {
    background-image: url(../img/page/win/degree4.svg);
}

.box-range.rang5 {
    background-image: url(../img/page/win/degree5.svg);
}

.box-work__des--cata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #CFA7CD;
    color: #000000;
    gap:clamp(8px,2vw,16px);
}
.box-work__des--cata .rank{
    font-size:clamp(18px,1.5vw,20px);
    font-weight: 900;
    border-radius: 20px;
    background-color: #CF5843;
    color: #FFFFFF;
    padding: 0.2rem 1rem;
}
.box-work__des--cata .cata{
    font-size:clamp(16px,1.5vw,18px);
    font-weight: 400;
}
.box-work__des--worknameArea {
    font-size:clamp(18px,1.5vw,20px);
    color: #000000;
    font-weight: 300;

}

.box-work__des--workname {
    color: #925E8F;
    letter-spacing: 0em;
    font-weight: 400;
}

.box-work__li:hover .box-pic img {
    scale: 1.1
}

