@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.header {
    background-color: #ffffff;
    color: dimgrey;
    height: 80px;
    align-items: center;
    display: flex;
    font-size: 0.7rem;
    border-bottom: 1px solid #eaeaea;
    /* box-shadow: 3px 2px 5px #efefef; */
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}



.logo{
    height: 33px;
    position: absolute;
    left: 24px;
    top: 24px;
    cursor: pointer;
  }

#loading {
    width: 100%;
    height: 100%;
    background-color: #ffffff8f;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    background-image: url(../images/icons/loading.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 10;
}

#loading.show {
    opacity: 1;
}

.container {
    display: flex;
    height: calc(100vh - 55px);
    margin-top: 55px;
}

.sidebar {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.sidebarSelect {
    /* background-color: #f1f3f5; */
    font-weight: bold;
    color: #050505;
    border-bottom: 3px solid #1f1f1f;
}

.footContainer {
    width: 100%;
    height: 64px;
    border-radius: 5px;
    background-color: #f8f8f8;
    justify-content: center;
    display: flex
;
    padding-top: 40px;
}

.copyright{
    font-size: 14px;
    color: #b3b3b3;
}

.contentContainer {
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.content,
.worksContent {
    flex: 1;
    padding: 30px;
    box-sizing: border-box;
    overflow-y: auto;
    justify-content: center;
    align-content: flex-start;
    height: auto;
    min-height: 100vh;
}



.worksContent {
    background-color: #f1f3f5;
}

#product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 30px auto;
    width: 60%;
    overflow-x: hidden;
}

.product:nth-last-child(1) {
    margin-right: auto;
}

.productListFoot {
    width: 98%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -50px;
    margin-bottom: 50px;
    /* border-top: 1px solid #cdcdcd;
    border-bottom: 1px solid #cdcdcd; */
}

.empty-message {
    text-align: center;
    color: #aaaaaa;
    width: 98%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.product-type {
    cursor: pointer;
    padding: 16px;
    display: flex;
    align-items: center;
}

.product-type:hover {
    color: #050505;
    /* background-color: #f1f3f5; */
}


.typeText {
    display: flex;
    justify-content: center;
    font-size: 16px;
    margin-left: 10px;
}

.typeIcon {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typeNum {
    margin-left: 10px;
    color: #484c4f;
}

.product {
    width: 18%;
    margin: 1%;
}

.productImg {
    border-radius: 5px;
    border: 1px solid transparent;
    display: flex;
    cursor: pointer;
    background-color: #e0e4e7;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.productImg::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 7px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

/* .productImg:hover::before {
    border-color: #141414;
    border-width: 3px;
} */

.productImg:hover {
    transform: scale(1.02);
}



.productImg img {
    transition: transform 0.3s ease;
    pointer-events: none;
    width: 100%;
}

.productmask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Smooth transition */
}

.productmask .productIcon {
    color: #1f1f1f;
    margin: 0 10px;
    font-size: 14px;
    width: 50%;
    height: 34px;
    border-radius: 5px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.productmask .productIcon2 {
    color: #1f1f1f;
    margin: 0 10px;
    font-size: 14px;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.productIcon:hover {
    background-color: #eeeeee;
}

.productIcon2:hover {
    background-color: #eeeeee;
}

.productImg:hover .productmask {
    opacity: 1;
    /* Show mask on hover */
}



/* .productImg:hover img {

    transform: translateY(calc(242px - 100%));
} */

.product p {
    text-align: center;
}

.productTitle {
    font-family: "Nunito";
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #3c3c3c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 240px;
}

.productDetail {
    color: #595959;
    font-size: 0.8rem;
    margin-top: 10px;
    font-family: arial;
    display: flex;
    align-items: center;
    font-weight: 400;
    padding-bottom: 20px;
    justify-content: space-between;
}

.product img.lazy {
    opacity: 0;
    transition: opacity 1s;
}

.product img.lazy-loaded {
    opacity: 1;
}

.lock {
    position: absolute;
    left: 10px;
    top: 10px;
}

.payButton {
    width: 60px;
    height: 29px;
    color: #5f5f5f;
    background-color: #e0e4e7;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 19px;
    font-weight: bold;
    cursor: pointer;
}

.payButton:hover {
    background-color: #5477f5;
    color: #ffffff;
}

#frameContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明背景 */
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    /* 默认隐藏 */
}

#frameContainer iframe {
    width: 100%;
    height: 750px;
}



.dialogContainer {
    width: 400px;
    height: 200px;
    background-color: white;
    position: absolute;
    left: calc(50% - 200px);
    top: calc(50% - 100px);
    border-radius: 5px;
    border: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(1px 0px 5px #eeeeee);
}

.dialogMask {
    width: 100%;
    height: 100%;
    background-color: #ffffff7a;
    position: absolute;
    left: 0;
    top: 0;
}

.dialogText {
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialogBtn {
    width: 140px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.dialogCloseBtn {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.dialogBtnPanel {
    display: flex;
    width: 80%;
    justify-content: space-between;
    margin-bottom: 20px;
}

#cancelBtn {
    background-color: #efefef;
}

#confirmBtn {
    background-color: #5477f5;
    color: #ffffff;
}

#cancelBtn:hover {
    background-color: #f8f8f8;
}

#confirmBtn:hover {
    background-color: #6a89fa;
}

.paginationjs .paginationjs-pages li>a {

    height: 30px !important;
    line-height: 30px !important;
}

.paginationjs .paginationjs-pages li.active>a {
    background: #5477f5 !important;
    border-radius: 50px;

    margin-right: 10px;
    margin-left: 10px;
    height: 30px !important;
    line-height: 30px !important;
}

.paginationjs .paginationjs-pages li>a:hover {
    background: #eee;
    border-radius: 50px;

    height: 30px !important;
    line-height: 30px !important;
}

.paginationjs .paginationjs-pages li {
    border: initial !important;
}

.video-banner {
    position: relative;
    width: 100vw; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
  }
  
  .video-banner .video-bg {
    width: 100%;         
    height: auto;        
    object-fit: cover;  
    min-height: 100%;    
  }

  .video-text{
    position: absolute;
  }

  .video_title{
    font-size: 4em;
    font-weight: bold;
  }
  
