/* 基础样式 */
.game-main {
    min-height: 80vh;
}

.game-box-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.game-box-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 150px;
    width: 100%;
}

/* 隐藏移动端元素 */
.mobile-header,
.mobile-buttons {
    display: none;
}

/* PC端三栏布局 */
.pc-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.pc-left {
    flex: 0 0 60px; /* 导航栏宽度 */
    display: flex;
    justify-content: center;
}

.pc-center {
    flex: 0 0 232px; /* iPhone模拟器宽度 */
    display: flex;
    justify-content: center;
}

.pc-right {
    flex: 1;
    max-width: 400px;
    padding: 0 20px;
}

/* 移动端布局 */
.mobile-layout {
    display: none;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 20px 0;
    min-height: 500px;
}

.mobile-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
}

.mobile-center {
    flex: 0 0 232px;
    display: flex;
    justify-content: center;
}

/* iPhone 模拟器 */
.iphone-mockup {
    width: 100%;
    display: flex;
    justify-content: center;
}

.iphone-frame {
    position: relative;
    width: 100%;
    max-width: 232px;
    background: #000000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 8px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid #333333;
}

.iphone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background: #000;
    border-radius: 0 0 15px 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iphone-speaker {
    width: 45px;
    height: 5px;
    background: #333;
    border-radius: 3px;
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 200%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-carousel.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 108px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    z-index: 10;
}

/* PC端中间区域样式 */
.pc-game-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pc-game-logo img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: cover;
}

.pc-game-title-area {
    flex: 1;
    text-align: left;
}

/* 标题与标签容器 */
.title-with-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pc-game-title {
    font-size: 1.8rem;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1;
    height: auto;
    display: block;
}

.pc-game-description {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    line-height: 0.8;
}

.pc-game-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

/* 按钮样式 */
.download-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-align: center;
    flex: 1;
    min-width: 120px;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: #1a1a1a;
    color: white;
}

.primary-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.secondary-btn {
    background: #f5f5f5;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
}

.secondary-btn:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

/* 游戏标签基础样式 */
.game-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.0;
    white-space: nowrap;
}

/* 官方标签样式 - 蓝色 */
.official-tag {
    background: #1890ff;
    color: white;
    border: 1px solid #1890ff;
}

/* 合作标签样式 - 绿色 */
.cooperation-tag {
    background: #52c41a;
    color: white;
    border: 1px solid #52c41a;
}

/* 竖向导航栏 - 修改后的样式 */
.vertical-nav {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px; /* 两头完全圆化 */
    padding: 15px 8px; /* 减少左右内边距 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px; /* 减少间距 */
    padding: 8px 4px; /* 减少内边距 */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 6px; /* 减少间距 */
}

.nav-item:last-child {
    margin-bottom: 0;
}

/* 移除悬停和选中背景色 */
.nav-item:hover {
    /* 移除背景色 */
}

.nav-item.active {
    /* 移除背景色 */
}

.nav-icon {
    width: 36px; /* 缩小图标 */
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.nav-item.active .nav-icon {
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-name {
    color: white;
    font-weight: 500;
    font-size: 0.95rem; /* 缩小字体 */
    text-align: center;
    line-height: 1.2;
}

/* 移动端导航栏特殊样式 */
.mobile-nav {
    background: rgba(0, 0, 0, 0.5);
}

.mobile-nav .nav-icon {
    width: 32px;
    height: 32px;
}

.mobile-nav .nav-name {
    font-size: 0.8rem;
}

/* ============ 移动端样式 ============ */
@media (max-width: 768px) {
    .pc-layout {
        display: none !important;
    }
    
    .mobile-layout {
        display: flex !important;
        order: 2;
        margin: 15px 0;
        min-height: 400px;
    }
    
    .game-box-container {
        padding: 0px 15px;
        min-height: auto;
    }
    
    .game-box-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .mobile-header {
        display: block;
        order: 1;
        width: 100%;
        align-self: flex-start;
        margin-top: 0;
        padding: 0 10px;
    }
    
    .mobile-buttons {
        display: block;
        order: 3;
        width: 100%;
        max-width: 300px;
    }
    
    .mobile-header .game-header {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 0;
        background: #ffffff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .mobile-header .game-logo img {
        width: 34px;
        height: 34px;
        border-radius: 7px;
        object-fit: cover;
    }
    
    .mobile-header .game-title-area {
        flex: 1;
        text-align: left;
    }
    
    .mobile-header .game-title-area .title-with-tag {
        align-items: flex-end;
    }
    
    .mobile-header .game-title {
        font-size: 1.8rem;
        margin: 0;
        color: #1a1a1a;
        font-weight: 700;
        line-height: 1;
        height: auto;
        display: block;
    }
    
    .game-description {
        font-size: 1.1rem;
        color: #666;
        font-weight: 500;
        line-height: 1.0;
    }
    
    .mobile-game-buttons {
        display: flex;
        gap: 12px;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .mobile-game-buttons .download-btn {
        padding: 12px 10px;
        font-size: 1.2rem;
        font-weight: 700;
        flex: 1;
        min-width: 0;
        border-radius: 12px;
    }
    
    .mobile-left {
        left: 10px;
    }
    
    /* 移动端标签调整 */
    .game-tag {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .game-box-container {
        padding: 0px 10px;
    }
    
    .game-box-content {
        gap: 15px;
    }
    
    .mobile-layout {
        min-height: 350px;
    }
    
    .mobile-left {
        left: 5px;
        width: 55px;
    }
    
    .mobile-nav .nav-icon {
        width: 30px;
        height: 30px;
    }
    
    .mobile-nav .nav-name {
        font-size: 0.75rem;
    }
    
    .mobile-header .game-header {
        padding: 12px;
    }
    
    .mobile-header .game-title {
        font-size: 1.6rem;
    }
    
    .game-description {
        font-size: 1.0rem;
    }
    
    .mobile-game-buttons .download-btn {
        padding: 10px 8px;
        font-size: 1.1rem;
    }
    
    .game-tag {
        padding: 3px 6px;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .mobile-header .game-title {
        font-size: 1.5rem;
    }
    
    .game-description {
        font-size: 0.95rem;
    }
    
    .mobile-game-buttons .download-btn {
        padding: 8px 6px;
        font-size: 1rem;
    }
    
    .mobile-left {
        left: 0;
        width: 50px;
    }
}

/* PC端显示 */
@media (min-width: 769px) {
    .pc-layout {
        display: flex;
    }
    
    .mobile-layout {
        display: none !important;
    }
    
    .mobile-header,
    .mobile-buttons {
        display: none;
    }
}