/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    padding-bottom: 80px;
}

/* 顶部导航栏 */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid #e9ecef;
    z-index: 1000;
}

.back-btn, .share-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    flex: 1;
    margin: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主内容区域 */
.main-content {
    margin-top: 50px;
    background: #ffffff;
}

/* 视频播放器区域 */
.video-section {
    width: 100%;
    background: #000;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.game-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.video-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
}

/* 游戏信息区域 */
.game-info-section {
    padding: 15px;
    background: #ffffff;
}

.game-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.game-icon {
    flex-shrink: 0;
    position: relative;
}

.game-icon-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.discount-tag {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

.price-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 0;
    border-radius: 0 0 12px 12px;
}

.game-details {
    flex: 1;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.game-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.tag.discount {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.tag.monthly {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.discount-info {
    font-size: 12px;
    color: #666;
}

.action-button {
    flex-shrink: 0;
}

.discount-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.discount-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.arrow {
    font-size: 16px;
}

/* 服务器信息栏 */
.server-info {
    background: #f8f9fa;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.server-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.separator {
    color: #e74c3c;
    font-weight: bold;
}

.server-arrow {
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 16px;
    cursor: pointer;
}

/* 功能图标栏 */
.feature-icons {
    background: #ffffff;
    padding: 20px 15px;
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #e9ecef;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon-item:hover {
    transform: translateY(-2px);
}

.icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid #e9ecef;
}

.icon-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 活动区域 */
.activity-section {
    margin-bottom: 1px;
}

.activity-header {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-section.exclusive .activity-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.header-icon {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.header-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.activity-content {
    background: #ffffff;
    padding: 15px;
}

.activity-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.table-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8f9fa;
}

.table-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.table-cell {
    font-size: 13px;
    line-height: 1.4;
}

.activity-name {
    font-weight: 600;
    color: #333;
}

.activity-desc {
    color: #666;
}

/* 底部固定导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.nav-btn.secondary {
    color: #666;
    font-size: 12px;
}

.nav-btn.secondary:hover {
    color: #333;
}

.nav-btn.primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    min-width: 80px;
}

.nav-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.nav-btn.start-game {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.nav-btn.start-game:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.nav-btn.download-game {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.nav-btn.download-game:hover {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.nav-icon {
    font-size: 18px;
}

.nav-text {
    font-size: 12px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .page-title {
        font-size: 12px;
    }
    
    .game-title {
        font-size: 14px;
    }
    
    .game-icon-img {
        width: 50px;
        height: 50px;
    }
    
    .discount-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .feature-icons {
        padding: 15px 10px;
    }
    
    .icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .icon-text {
        font-size: 11px;
    }
    
    .nav-btn.primary {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 70px;
    }
}