/* ---------- 01. font & reset css ---------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, figure, header, nav, section, article, aside, footer, figcaption {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
ul, li {
    padding: 0;
    margin: 0;
    list-style: none;
}
header, nav, section, article, aside, footer, hgroup {
    display: block;
}
* {
    box-sizing: border-box;
}
html, body {
    font-family: 'Poppins', sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal overflow */
}
a {
    text-decoration: none !important;
}
h1, h2, h3, h4, h5, h6 {
    color: #1e1e1e;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 700;
}
p {
    font-size: 14px;
    line-height: 28px;
    color: #4a4a4a;
}
img {
    width: 100%;
    overflow: hidden;
}

/* ---------- 02. global styles ---------- */
::selection {
    background: #0071f8;
    color: #fff;
}
::-moz-selection {
    background: #0071f8;
    color: #fff;
}
.section {
    margin-top: 120px;
}
.section-heading {
    margin-bottom: 70px;
}
.section-heading h2 {
    font-size: 36px;
    font-weight: 700;
    text-transform: capitalize;
    margin-top: 20px;
    line-height: 44px;
}
.section-heading h2 em {
    font-style: normal;
    color: #0071f8;
}
.section-heading h6 {
    color: #ee626b;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 700;
}
.main-button a {
    display: inline-block;
    background: #ee626b;
    text-transform: uppercase;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    height: 50px;
    line-height: 50px;
    padding: 0 30px;
    border-radius: 25px;
    transition: all .3s;
}
.main-button a:hover {
    background: #0071f8;
    color: #fff;
}

/* ---------- 03. preloader ---------- */
.js-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    z-index: 9999;
    transition: opacity .25s ease;
}
.js-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner {
    position: relative;
    width: 142px;
    height: 40px;
    background: transparent;
}
.preloader-inner .dot {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 12px;
    left: 15px;
    background: #0071f8;
    border-radius: 50%;
    transform: translateX(0);
    animation: dot 2.8s infinite;
}
.preloader-inner .dots {
    transform: translateX(0);
    margin-top: 12px;
    margin-left: 31px;
    animation: dots 2.8s infinite;
}
.preloader-inner .dots span {
    display: block;
    float: left;
    width: 16px;
    height: 16px;
    margin-left: 16px;
    background: #0071f8;
    border-radius: 50%;
}
@keyframes dot {
    50% { transform: translateX(96px); }
}
@keyframes dots {
    50% { transform: translateX(-31px); }
}

/* ---------- 04. header ---------- */
.top-nav {
    background: #1e293b;
    padding: 5px 0;
}
.top-nav .social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}
.top-nav .social-icons a {
    color: #f1f5f9;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.top-nav .social-icons a:hover {
    color: #ee626b;
    transform: translateY(-2px);
}
.header-area {
    position: absolute;
    background: transparent;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all .5s ease;
}
.header-area .main-nav {
    background: transparent;
    display: flex;
}
.header-area .main-nav .logo {
    transition: all .3s ease;
    display: inline-block;
}
.header-area .main-nav ul.nav {
    border-radius: 0 0 25px 25px;
    flex-basis: 100%;
    margin-top: 10px;
    justify-content: flex-end;
    transition: all .3s ease;
    position: relative;
    z-index: 999;
}
.header-area .main-nav .nav li {
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
}
.header-area .main-nav .nav li a {
    display: block;
    padding: 0 20px;
    border-radius: 20px;
    font-weight: 300;
    font-size: 15px;
    height: 40px;
    line-height: 40px;
    text-transform: capitalize;
    color: #fff;
    transition: all .4s ease;
    border: transparent;
    letter-spacing: .25px;
}
.header-area .main-nav .nav li:hover a {
    background: rgba(255,255,255,.1);
}
.header-area .main-nav .nav li a.active {
    background: rgba(255,255,255,.1);
}
.header-area .main-nav .menu-trigger {
    cursor: pointer;
    position: absolute;
    top: 33px;
    width: 32px;
    height: 40px;
    text-indent: -9999em;
    z-index: 99;
    right: 20px;
    display: none;
}
.header-area.header-sticky .nav li a.active {
    color: #fff;
}
.background-header {
    background: #0071f8 !important;
    border-radius: 0 0 25px 25px;
    height: 80px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    box-shadow: 0 0 10px rgba(0,0,0,.15) !important;
    transition: all .5s ease 0s;
}
.background-header .main-nav ul.nav {
    margin-top: 20px;
}
.background-header .main-nav .logo {
    margin-top: 18px;
}
.background-header .main-nav .logo img {
    max-width: 110px;
}
.has-sub {
    position: relative;
}
.sub-menu {
    display: none;
    position: absolute;
    background: transparent;
    min-width: 200px;
    border-radius: 10px;
    top: 100%;
    left: 0;
}
.sub-menu li {
    padding: 0;
}
.sub-menu li a {
    color: #fff;
    padding: 10px 20px;
    display: block;
}
.sub-menu li:hover a {
    background: #f1f5f9;
    color: #fff;
}
.sub-menu .has-sub .sub-menu {
    top: 0;
    left: 100%;
}

/* ---------- 05. banner ---------- */
.main-banner {
    background: url(/assets/images/banner-bg.jpg) center bottom/cover no-repeat;
    border-radius: 0 0 150px 150px;
    padding: 225px 0;
}
.main-banner .caption h6 {
    font-size: 20px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 500;
    letter-spacing: .5px;
}
.main-banner .caption h2 {
    font-size: 48px;
    color: #fff;
    margin-top: 20px;
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 40px;
}
.main-banner .caption h2:after {
    position: absolute;
    background: url(/assets/images/caption-dec.png) no-repeat;
    width: 202px;
    height: 12px;
    content: '';
    left: 125px;
    bottom: 0;
}
.main-banner .caption p {
    color: #fff;
    margin-bottom: 70px;
}
.main-banner .caption form {
    position: relative;
    max-width: 450px;
}
.main-banner .caption form input {
    max-width: 450px;
    width: 100%;
    height: 50px;
    outline: none;
    border-radius: 25px;
    background: #fff;
    border: none;
    padding: 0 25px;
    font-size: 14px;
    color: #7a7a7a;
}
.main-banner .caption form button {
    display: inline-block;
    height: 50px;
    line-height: 50px;
    background: #ee626b;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0 25px;
    border: none;
    border-radius: 25px;
    position: absolute;
    right: 0;
    top: 0;
    transition: all .3s;
}
.main-banner .caption form button:hover {
    background: #0071f8;
}
.main-banner .right-image {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
}
.main-banner .swiper-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.main-banner .swiper-slide {
    width: 100%;
    height: 100%;
}
.main-banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* ---------- 06. features ---------- */
.features {
    margin-top: -80px;
}
.features .item {
    padding: 35px;
    box-shadow: 0 0 15px rgba(0,0,0,.15);
    border-radius: 25px;
    background: #fff;
    text-align: center;
}
.features .item h4 {
    font-size: 17px;
    margin-top: 25px;
    text-transform: uppercase;
}
.features .item .image {
    width: 90px;
    height: 90px;
    display: inline-block;
    text-align: center;
    line-height: 90px;
    background: #0071f8;
    border-radius: 50%;
    transition: all .3s;
}
.features .item:hover .image {
    background: #ee626b;
}

/* ---------- 07. trending ---------- */
.trending .main-button {
    margin-top: 32px;
    text-align: right;
}
.trending .item {
    background: #eee;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 30px;
}
.trending .item .thumb {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    width: 100%;
    height: 200px;
}
.trending .item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.trending .item .down-content {
    padding: 25px;
}
.trending .item .down-content span.category {
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 5px;
    display: inline-block;
}
.trending .item .down-content h4 {
    font-size: 17px;
    font-weight: 600;
    transition: all .3s;
}
.trending .item .down-content a {
    position: absolute;
    display: inline-block;
    text-align: center;
    line-height: 40px;
    width: 40px;
    height: 40px;
    background: #ee626b;
    color: #fff;
    border-radius: 50%;
    right: 25px;
    bottom: 25px;
    transition: all .3s;
}
.trending .item:hover .down-content h4 {
    color: #0071f8;
}
.trending .item:hover .down-content a {
    background: #0071f8;
}

/* ---------- 08. most-played ---------- */
.most-played {
    background: #f7f7f7;
    padding: 100px 0;
    border-radius: 150px;
}
.most-played .main-button {
    margin-top: 32px;
    text-align: right;
}
.most-played .item {
    background: #fff;
    position: relative;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 40px;
}
.most-played .item .thumb {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
}
.most-played .swiper-container {
    width: 100%;
    overflow: hidden;
}
.most-played .swiper-slide {
    width: 200px;
}
.most-played .swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ---------- 09. categories ---------- */
.categories .demo-card.horizontal {
    display: flex;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 0 15px rgba(0,0,0,.15);
    margin-bottom: 30px;
    max-width: 1000px; /* 增加最大宽度 */
    width: 100%;
    min-height: 500px;
    overflow: hidden; /* 防止内容溢出圆角 */
}

.categories .demo-video-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 25px 0 0 25px;
}

.categories .demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categories .demo-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.categories .demo-info h3 {
    font-size: 17px;
    font-weight: 600;
}

.categories .demo-description {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 16px;
}

.categories .demo-more-btn {
    padding: 8px 16px;
    font-size: 14px;
    background: #ee626b;
    color: #fff;
    border-radius: 20px;
    transition: all .3s;
    width: 120px;
    text-align: center;
    margin-left: 16px;
}

.categories .demo-more-btn:hover {
    background: #0071f8;
}

/* ---------- 10. cta ---------- */
.cta {
    position: relative;
    padding: 80px 0;
}
.cta .shop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.cta .shop .section-heading {
    margin-bottom: 30px;
}
.cta .shop p {
    font-weight: 600;
    font-size: 16px;
}
.cta .shop .main-button {
    margin-top: 30px;
}
.cta .right-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta .right-image img {
    border-radius: 25px;
    max-width: 100%;
    height: auto;
}

/* ---------- 11. footer ---------- */
footer {
    margin-top: 150px;
    background: #0071f8 url(/assets/images/footer-bg.jpg) no-repeat center/cover;
    padding: 60px 0 20px;
    border-radius: 150px 150px 0 0;
}
.footer-section {
    margin-bottom: 30px;
}
.footer-section h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}
.footer-section p {
    color: #fff;
    font-size: 14px;
}
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.footer-social a {
    color: #fff;
    font-size: 20px;
    transition: all .3s;
}
.footer-social a:hover {
    color: #ee626b;
}
.footer-nav li {
    margin-bottom: 10px;
}
.footer-nav li a {
    color: #fff;
    font-size: 14px;
    transition: all .3s;
}
.footer-nav li a:hover {
    color: #ee626b;
}
.qr-code {
    width: 100px;
    height: 100px;
    margin: 20px 0;
    border-radius: 10px;
}
footer .copyright {
    text-align: center;
    line-height: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    padding-top: 20px;
}
footer .copyright a {
    color: #fff;
    transition: all .3s;
}
footer .copyright a:hover {
    opacity: .75;
}

/* ---------- 12. floating container ---------- */
.floating-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}
.language-container {
    margin-bottom: 10px;
}
.language-btn {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all .3s ease;
}
.language-btn:hover {
    background: #f1f5f9;
}
.language-flag {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    object-fit: cover;
}
.language-text {
    font-size: 14px;
    font-weight: 500;
    color: #1e1e1e;
}
.language-dropdown {
    position: absolute;
    bottom: 50px;
    right: 0;
    width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
}
.language-dropdown.active {
    display: block;
}
.language-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color .2s ease;
}
.language-option:hover {
    background: #f1f5f9;
}
.language-option span {
    font-size: 14px;
    color: #1e1e1e;
    margin-left: 12px;
}
.chat-container {
    position: relative;
}
.chat-btn {
    width: 56px;
    height: 56px;
    background: #ee626b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all .3s ease;
}
.chat-btn:hover {
    background: #0071f8;
    transform: scale(1.1);
}
.chat-box {
    width: 360px;
    height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
}
.chat-box.active {
    display: flex;
}
.chat-header {
    background: #ee626b;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.close-btn {
    font-size: 24px;
    cursor: pointer;
    transition: transform .2s ease;
}
.close-btn:hover {
    transform: scale(1.2);
}
.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
}
.chat-message {
    display: flex;
    margin-bottom: 16px;
    max-width: 80%;
}
.chat-message.agent {
    align-self: flex-start;
}
.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}
.avatar img {
    width: 100%;
    height: 100%;
}
.chat-message.user .avatar {
    margin-right: 0;
    margin-left: 12px;
}
.message-content {
    display: flex;
    flex-direction: column;
}
.message-text {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}
.agent .message-text {
    background: #fff;
    color: #1e1e1e;
    border-top-left-radius: 0;
}
.user .message-text {
    background: #ee626b;
    color: #fff;
    border-top-right-radius: 0;
}
.message-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
    text-align: right;
}
.chat-footer {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}
.attachment-options {
    display: flex;
    margin-right: 12px;
}
.attach-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    transition: color .2s ease;
}
.attach-btn:hover {
    color: #0071f8;
}
.message-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}
.send-btn {
    background: #ee626b;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 12px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .3s ease;
}
.send-btn:hover {
    background: #0071f8;
}

/* ---------- 13. responsive ---------- */
@media (max-width: 1200px) {
    .main-banner .swiper-container {
        height: 350px;
    }
}
@media (max-width: 992px) {
    .header-area .main-nav .logo img {
        max-width: 110px;
    }
    .header-area .main-nav .nav li a {
        padding: 0 10px;
    }
    .main-banner .caption {
        margin-bottom: 45px;
        text-align: center;
    }
    .main-banner .caption form, .main-banner .caption form input {
        max-width: 100%;
    }
    .main-banner .swiper-container {
        height: 300px;
    }
    .features .item {
        margin-bottom: 30px;
    }
    .trending .main-button, .most-played .main-button {
        display: none;
    }
    .most-played .section-heading {
        text-align: center;
    }
    .cta {
        padding: 40px 0;
    }
}
@media (max-width: 767px) {
    .header-area {
        top: 0;
    }
    .header-area .main-nav .menu-trigger {
        display: block !important;
    }
    .header-area .main-nav .nav {
        display: none;
        background: #fff;
        border-radius: 0 0 25px 25px;
    }
    .header-area .main-nav .nav li {
        height: 50px;
        border-top: 1px solid #eee;
        background: #f1f0fe;
    }
    .sub-menu {
        position: static;
        background: #f1f0fe;
        box-shadow: none;
        padding-left: 20px;
    }
    .sub-menu .sub-menu {
        padding-left: 40px;
    }
    .categories .demo-card.horizontal {
        flex-direction: column;
        max-width: 100%;
    }
    .categories .demo-video-container {
        border-radius: 25px 25px 0 0;
        height: 200px;
    }
    .categories .demo-info {
        padding: 16px;
    }
    .cta .shop {
        margin-bottom: 30px;
    }
}
.image-scroller {
    margin-bottom: 20px;
}
.image-scroller:last-child {
    margin-bottom: 0;
}