/* Home页面样式 */

#home-top {
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-top-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo-container {
    margin-right: 12px;
    position: relative;
}

.main-logo {
    height: 45px;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-domain {
    font-size: 11px;
    color: #718096;
    font-weight: 500;
    line-height: 1;
}

.home-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.domain-info {
    font-size: 12px;
    color: #4a5568;
    font-weight: 500;
}

.action-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-icons i {
    font-size: 18px;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.3s ease;
}

.action-icons i:hover {
    color: #2d3748;
}

/* 公告栏样式 */
.notice-container {
    margin: 16px 15px 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.notice-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.notice-icon img {
    width: 20px;
    height: 20px;
}

.notice-content {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.notice-content .notice-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    position: absolute;
    right: 0;
    animation: scroll-notice 15s linear infinite;
    white-space: nowrap;
}

.notice-navs {
    display: flex;
    gap: 8px;
    margin-left: 12px;
    flex-shrink: 0;
}

.notice-navs a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-navs img {
    width: auto;
    height: auto;
    max-height: 24px;
}

@keyframes scroll-notice {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 导航区样式 */
.navs-container {
    margin: 16px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navs-left {
    flex: 1;
}

.navs-left a {
    text-decoration: none;
    color: #333;
}

.navs-left a div:first-child {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
}

.navs-left a div:last-child {
    font-size: 12px;
    color: #999;
}

.navs-right {
    display: flex;
    gap: 4px;
    align-items: center;
}

.navs-right > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navs-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navs-right a:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.navs-right img {
    height: 45px;
}

/* navs-right 禁用状态样式 */
.navs-right.disable {
    opacity: 0.5;
    pointer-events: none;
}

.navs-right.disable img {
    filter: grayscale(100%);
}

.navs-right.disable a {
    cursor: not-allowed;
}

/* 游戏选择区域样式 */
.game-selection-container {
    margin: 16px 15px;
    display: flex;
    gap: 16px;
    min-height: 400px;
}

.game-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tab-item {
    width: 11.282051vw;
    height: 13.333333vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-image: url('/static/apps/front/site/images/home_tab_item_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.tab-item.active {
    background-image: url('/static/apps/front/site/images/home_tab_item_bg_chk.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.tab-item img {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.tab-item.active img {
    filter: brightness(1.2);
}

.tab-item span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-item.active span {
    color: #fff;
    font-weight: 600;
}

.tab-item:hover:not(.active) {
    transform: translateY(-2px);
}

.game-content {
    
}

.game-content p {
    color: #999;
    font-size: 16px;
    margin: 0;
}

/* Tab切换动画 */
.tab-item {
    user-select: none;
}

.tab-item:active {
    transform: scale(0.95);
}

/* 轮播图样式 */
.carousel-container {
    margin-left: 15px;
    margin-right: 15px;
}

#carouselExample {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0;
}

#carouselExample .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

#carouselExample .carousel-item {
    height: 160px;
}

#carouselExample .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0;
    padding: 0;
}

#carouselExample .carousel-control-prev,
#carouselExample .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#carouselExample .carousel-control-prev:hover,
#carouselExample .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

#carouselExample .carousel-control-prev {
    left: 10px;
}

#carouselExample .carousel-control-next {
    right: 10px;
}

#carouselExample .carousel-control-prev-icon,
#carouselExample .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* 轮播图指示器 */
#carouselExample .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

#carouselExample .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
}

#carouselExample .carousel-indicators button.active {
    background-color: #007AFF;
    transform: scale(1.2);
}

.game-content {
    width: 78vw;
    height: 105vw;
    overflow-y: scroll;
}

.game-item {
    width: 100%;
    height: 28.44vw;
    display: none;
}

.game-item-bg-1 {
    background-image: url('/static/apps/front/site/images/game_card_bg.png');
    background-size: auto 70%;
    background-repeat: no-repeat;
    background-position: left bottom;
    height: 100%;
    background-position-x: 6vw;
}

.game-item {
    background: #f3faff;
    box-shadow: 0 .512821vw 2.051282vw rgba(121, 129, 164, .1);
    border-radius: 3.076923vw;
    margin-bottom: 3vw;
}

.game-item-bg-2 {
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto 100%;
    height: 100%;
}

.game-item-bg-2 > div {
    font-size: 4.102564vw;
    font-weight: 600;
    color: #303442;
    font-family: PingFang SC;
    padding-top: 4vw;
    padding-left: 6vw;
}

.game-item-bg-2 .game-item-bg-2-supplier-name {
    font-weight: 500;
    font-size: 2.051282vw;
    color: #949ab6;
    font-family: PingFang SC;
}

.game-item-bg-2 .game-item-bg-2-desc-unit {
    font-weight: 500;
    font-size: 2.051282vw;
    color: #949ab6;
    font-family: PingFang SC;
}

.game-item-bg-2 .game-item-subinfo {
    margin-top: 2vw;
}