/* 全局样式 */
html,
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 全屏模式下隐藏滚动条 */
:fullscreen {
    overflow: hidden !important;
}

/* 兼容Webkit浏览器 */
:-webkit-full-screen {
    overflow: hidden !important;
}

/* 兼容Firefox浏览器 */
:-moz-full-screen {
    overflow: hidden !important;
}

/* 兼容IE浏览器 */
:-ms-fullscreen {
    overflow: hidden !important;
}
.hero-section{
    display: block;
}
/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1030;
}

/* 移除导航栏折叠按钮点击时的描边 */
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

/* 滚动时导航栏样式 */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    backdrop-filter: saturate(180%) blur(20px);
}

.navbar-brand img {
    max-height: 30px;
}

/* 导航菜单居中显示 */
.navbar-nav {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: #0070cc !important;
}

.nav-link.active {
    color: #0070cc !important;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #0070cc;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 联系销售顾问按钮样式 */
.contact-sales .btn {
    border-radius: 20px;
    padding: 6px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-sales .btn:focus,
.contact-sales .btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.contact-sales .btn:hover {
    background-color: #0070cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 112, 204, 0.2);
}

/* 移动端按钮组样式 */
.btn-group.d-lg-none {
    margin-left: auto;
    margin-right: 0;
}

/* 移动端联系按钮样式 */
#contactSalesBtnMobile {
    border-radius: 0.375rem 0 0 0.375rem;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-width: 1px;
    border-right: 0;
}

#contactSalesBtnMobile:focus,
#contactSalesBtnMobile:active {
    outline: none !important;
    box-shadow: none !important;
}

#contactSalesBtnMobile i {
    font-size: 16px;
}

/* 导航栏折叠按钮样式调整 */
.btn-group .navbar-toggler {
    border-radius: 0 0.375rem 0.375rem 0;
    height: 36px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* 联系销售顾问按钮响应式样式 */
@media (max-width: 991.98px) {
    .contact-sales {
        margin-top: 15px;
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .contact-sales .btn {
        width: 100%;
        max-width: 250px;
    }
}

.carousel-item {
    height: 500px;
    overflow: hidden;
}

.video-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.video-container video {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* 视频文字覆盖层 */
.video-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-item.active .video-text-overlay {
    opacity: 1;
}

.video-text-content {
    max-width: 800px;
    padding: 30px;
    color: #fff;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.8s ease;
}

.carousel-item.active .video-text-content {
    transform: translateY(0);
}

.video-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-text-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 轮播图控制容器 */
.carousel-controls-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* 自定义指示器 */
.custom-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
    position: static;
}

.indicator-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    /* 确保是完美的圆形 */
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.indicator-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 圆形控制按钮 */
.carousel-control-prev,
.carousel-control-next {
    width: auto;
    opacity: 1;
    position: static;
}

.control-circle {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.control-circle:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
    filter: invert(1) grayscale(100%);
}

/* 视频进度条 */
.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.video-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 5px;
    background-color: #003697;
    transition: width 0.1s linear;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

/* 应用卡片样式 */
.app-cards {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.app-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    height: 100%;
    position: relative;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.app-card .card-img-top {
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.app-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 160px);
}

.app-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.app-card .card-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .app-card .card-img-top {
        height: 120px;
    }

    /* 响应式文字内容 */
    .video-text-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .video-text-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .video-text-content {
        padding: 15px;
        max-width: 90%;
    }

    /* 平板尺寸下的控制按钮 */
    .control-circle {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }

    /* 调整控制容器位置 */
    .carousel-controls-container {
        bottom: 15px;
    }

    .content-iframe {
        width: 95%;
        max-height: calc(100vh - 90px);
    }

    .iframe-container {
        padding-top: 50px;
    }
}

@media (max-width: 575.98px) {

    /* 手机尺寸下的文字内容 */
    .video-text-content h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .video-text-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .video-text-content {
        padding: 10px;
        max-width: 90%;
    }

    /* 手机尺寸下的控制按钮 */
    .control-circle {
        width: 30px;
        height: 30px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }

    /* 调整指示器间距 */
    .indicator-dot {
        margin: 0 5px;
    }

    /* 调整控制容器位置 */
    .carousel-controls-container {
        bottom: 10px;
    }

    .iframe-container {
        top: 0;
        height: 100%;
        padding-top: 45px;
        padding-bottom: 10px;
    }

    .return-button {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .content-iframe {
        width: 100%;
        max-height: calc(100vh - 70px);
    }

    .iframe-header {
        padding: 8px 10px;
    }
}

/* iframe容器样式 */
.iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* 防止容器出现滚动条 */
    box-sizing: border-box;
    /* 确保padding不会增加元素总宽高 */
}

.iframe-header {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    /* 添加背景模糊效果 */
    padding: 10px 15px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1051;
}

.return-button {
    background-color: #0070cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.return-button:hover {
    background-color: #005aa3;
}

/* 加载指示器样式 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 30px;
    border-radius: 10px;
    z-index: 1052;
    min-width: 300px;
}

.loading-text {
    margin: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-progress {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* 手机端模态框优化样式 */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10vw;
    }
    
    .modal-content {
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .modal-header {
        border-bottom: 1px solid #e9ecef;
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .modal-footer {
        border-top: 1px solid #e9ecef;
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
        font-weight: 600;
    }
}

.content-iframe {
    flex: 1;
    max-width: 1920px;
    border: none;
    margin: 0 auto;
    display: block;
    max-height: 1080px;
    overflow: hidden;
    /* 隐藏滚动条 */
}

/* 页面跳转全局加载遮罩（index 点击应用卡片后显示） */
.nav-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.nav-loading-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.app-card .card-title {
    font-size: 1rem;
}

.app-card .card-text {
    font-size: 0.8rem;
}

.section-title {
    font-size: 1.5rem;
}


@media (max-width: 575.98px) {
    .app-card .card-img-top {
        height: 120px;
    }

    .app-card .card-body {
        padding: 1rem;
    }

    .app-card .card-title {
        font-size: 0.9rem;
    }

    .app-card .card-text {
        display: none; /* 在移动端隐藏卡片描述文本 */
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* 页脚样式 */
footer {
    background-color: #0070cc !important;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.2rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .carousel-item {
        height: 300px;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .game-cards .row {
        margin: 0 -5px;
    }

    .game-cards .col {
        padding: 0 5px;
        margin-bottom: 10px;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 200px;
    }

    .card-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .game-card {
        border-radius: 5px;
    }

    .card-body {
        padding: 1rem 0.5rem;
    }
}
/* --- Filter Bar (Sketchfab-like) visual tuning --- */
.filterbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 1020; 
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid #eee;
}

.filterbar-toggle {
    padding: .375rem .75rem;
}

.filterbar-collapse {
    padding: .5rem;
    border: 1px solid #eee;
    border-radius: .5rem;
    background: #f8f9fa; /* subtle gray like Sketchfab panel */
}

.filterbar-bar {
    gap: .5rem; /* ensure consistent spacing even without Bootstrap gap */
}

.filterbar-dropdown {
    /* ensure dropdowns pack nicely when wrapping */
}

.filterbar-btn {
    background-color: #fff;
    border-color: #dcdcdc;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.filterbar-btn:hover, .filterbar-btn:focus {
    background-color: #f7f7f7;
    border-color: #cfcfcf;
    color: #222;
}

.filterbar-menu {
    min-width: 12rem;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

.filterbar-menu .dropdown-item.active,
.filterbar-menu .dropdown-item:active {
    background-color: #0d6efd; /* Bootstrap primary */
    color: #fff;
}

@media (min-width: 768px) {
    /* desktop refinements */
    .filterbar-wrapper {
        border-bottom-color: #e9ecef;
    }
    .filterbar-collapse {
        padding: 0;
        border: none;
        background: transparent;
    }
}