/* 页签系统样式 */

/* 页面整体布局调整 */
body {
    padding-bottom: 0; /* container直接紧贴tab-navigation */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.container {
    height: calc(100vh - 140px); /* 减去header(80px)和页签导航的高度(60px) */
    overflow: hidden; /* 防止整体页面滚动 */
    padding: 0 2rem;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

/* 页签内容容器 */
.tab-contents {
    height: 100%;
    position: relative;
}

.tab-content {
    height: 100%;
    overflow-y: auto;
    display: none;
    padding: 0 0 80px 0; /* 增加底部间距避免被页签遮挡 */
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 为除游戏中心外的其他页签添加顶部间距 */
.tab-content:not(#tab-game-center) .games-grid {
    padding-top: 20px;
}

.tab-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-content.active {
    display: block;
}

.tab-content-scroll {
    height: calc(100% - 60px); /* 减去tab-header的高度 */
    overflow-y: auto;
    padding: 0;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tab-content-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 游戏中心页签特定样式 */
#tab-game-center {
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 80px; /* 增加底部间距避免被页签遮挡，同时为分页控件预留空间 */
}

#tab-game-center::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 页签头部 */
.tab-header {
    padding: 1rem 0 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.tab-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.tab-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.8rem;
}

.tab-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.tab-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-range-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.time-range-select option {
    background: #333;
    color: white;
}

/* 页签导航栏 - 固定在底部 */
.tab-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* 调整背景色贴近主页面朝阳渐变 */
    background: linear-gradient(145deg, 
        rgba(74, 105, 189, 0.25) 0%,     /* 蓝紫色基调 */
        rgba(108, 92, 231, 0.30) 25%,    /* 淡紫色 */
        rgba(253, 121, 168, 0.35) 50%,   /* 温暖粉色 */
        rgba(253, 203, 110, 0.30) 75%,   /* 柔和金色 */
        rgba(225, 112, 85, 0.25) 100%    /* 温暖橙色 */
    );
    backdrop-filter: blur(24px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-around;
    padding: 2px 0;
    z-index: 1000;
    box-shadow: 0 -4px 24px rgba(74, 105, 189, 0.12);
    height: auto;
}

.tab-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 4px 8px 4px;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    border-radius: 16px;
    border: none;
    background: transparent;
    position: relative;
}

.tab-nav-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: #4f46e5;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.tab-nav-item.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.tab-nav-item .tab-icon {
    display: block;
    font-size: 26px;
    margin-bottom: 4px;
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.2) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.6));
}

.tab-nav-item:hover .tab-icon {
    opacity: 0.9;
    filter: grayscale(0);
    transform: scale(1.05);
}

.tab-nav-item.active .tab-icon {
    opacity: 1;
    filter: grayscale(0) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transform: scale(1.02);
}

.tab-nav-item .tab-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.95;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.tab-nav-item:hover .tab-label {
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

.tab-nav-item.active .tab-label {
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 255, 255, 0.2);
}

/* 加载状态样式 */
.tab-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.8);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.9rem;
}

/* 勇敢分享样式 */
.brave-share-container {
    padding: 40px 20px 20px 20px; /* 增加顶部间距从20px到40px */
    max-width: 1000px;
    margin: 0 auto;
}

.brave-share-header {
    margin-bottom: 30px;
    text-align: center;
}

.brave-share-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.brave-share-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.brave-share-count {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.brave-share-desc {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.brave-share-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.brave-share-game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.brave-share-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brave-share-game-card .game-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.brave-share-game-card .game-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brave-share-game-card .default-game-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.brave-share-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.brave-share-game-card .game-info {
    padding: 15px;
}

.brave-share-game-card .game-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brave-share-game-card .game-creator,
.brave-share-game-card .game-share-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.brave-share-game-card .game-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.brave-share-game-card .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 0.85rem;
}

.brave-share-game-card .stat-icon {
    font-size: 0.9rem;
}

.no-brave-share-games {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-brave-share-games .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-brave-share-games .empty-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-brave-share-games .empty-hint {
    font-size: 1rem;
    color: #999;
}


.brave-share-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.brave-share-icon {
    font-size: 2.5rem;
}

.brave-share-description {
    font-size: 1.1rem;
    color: #000;
    line-height: 1.6;
    font-weight: 500;
}

.brave-share-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.share-encourage {
    text-align: center;
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid rgba(100, 150, 255, 0.2);
}

.encourage-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.encourage-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.encourage-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.share-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(100, 150, 255, 0.1);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(100, 150, 255, 0.2);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.step-description {
    color: #666;
    line-height: 1.5;
}

.share-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.share-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.share-btn.primary:hover {
    background: linear-gradient(135deg, #45a049, #388E3C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.share-btn.secondary {
    background: white;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.share-btn.secondary:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

.share-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(100, 150, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(100, 150, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
}

@media (max-width: 768px) {
    .brave-share-container {
        padding: 15px;
    }
    
    .brave-share-title {
        font-size: 1.5rem;
    }
    
    .brave-share-icon {
        font-size: 2rem;
    }
    
    .share-steps {
        grid-template-columns: 1fr;
    }
    
    .share-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 空状态样式 */
.tab-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.empty-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.empty-action-btn {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.empty-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 错误状态样式 */
.tab-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ff6b6b;
}

.error-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.error-action-btn {
    background: #ff6b6b;
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.error-action-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* 精品榜特殊样式 */
.featured-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-top: 20px; /* 添加顶部间距 */
}

.featured-game-item {
    position: relative;
}

.featured-game-item.top-rank {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.game-rank {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(45deg, #ffd700, #ffb347);
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 0.8rem;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 5;
}

.rating-stars {
    display: flex;
    gap: 0.1rem;
    margin-bottom: 0.3rem;
}

.star {
    font-size: 0.9rem;
}

.star-full {
    color: #ffd700;
}

.star-half {
    color: #ffd700;
    opacity: 0.6;
}

.star-empty {
    color: rgba(255, 255, 255, 0.3);
}

.rating-score {
    font-weight: bold;
    margin-right: 0.5rem;
}

.rating-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* 新游榜时间线样式 */
.new-games-timeline {
    position: relative;
    padding-top: 20px; /* 添加顶部间距 */
}

.new-game-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.new-game-timeline {
    flex-shrink: 0;
    width: 30px;
    position: relative;
    margin-right: 1.5rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.timeline-dot.new {
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.timeline-line {
    position: absolute;
    left: 5px;
    top: 12px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
}

.new-game-item:last-child .timeline-line {
    display: none;
}

.new-game-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.new-game-item.today .new-game-content {
    background: rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.3);
}

.new-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.new-game-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.new-badge, .today-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.8rem;
    font-weight: bold;
}

.new-badge {
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    color: white;
}

.today-badge {
    background: linear-gradient(45deg, #ff9a56, #ffad56);
    color: white;
}

.new-game-body {
    display: flex;
    gap: 1rem;
}

.new-game-body .game-image-container {
    flex-shrink: 0;
    width: 120px;
}

.new-game-info {
    flex: 1;
}

/* 人气榜样式 */
.popular-games-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 20px; /* 添加顶部间距 */
}

.popular-game-item {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.popular-game-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.popular-game-item.top-rank {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.popular-rank {
    flex-shrink: 0;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

.rank-icon {
    font-size: 1.2rem;
}

.popular-game-content {
    flex: 1;
    display: flex;
    gap: 1rem;
}

.popular-game-content .game-image-container {
    flex-shrink: 0;
    width: 120px;
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 5;
}

.popular-game-info {
    flex: 1;
}

.popularity-stats {
    display: flex;
    gap: 1rem;
    margin: 0.8rem 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.stat-icon {
    font-size: 1rem;
}

.stat-value {
    font-weight: bold;
    color: white;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
}

.stat-item.trend .stat-icon {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        height: calc(100vh - 120px); /* 移动端减去header(60px)和页签导航的高度(60px) */
        padding: 0 1rem;
        margin: 0 auto;
        max-width: 1200px;
        position: relative;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .tab-content {
        padding-bottom: 90px; /* 移动端需要更多底部间距避免被页签遮挡 */
    }
    
    #tab-game-center {
        padding-bottom: 90px; /* 移动端分页控件需要更多空间避免被页签遮挡 */
    }
    
    .featured-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .new-game-body,
    .popular-game-content {
        flex-direction: column;
    }
    
    .new-game-body .game-image-container,
    .popular-game-content .game-image-container {
        width: 100%;
    }
    
    .popularity-stats {
        gap: 0.5rem;
    }
    
    .tab-nav-item .tab-label {
        font-size: 14px;
        max-width: 60px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }
    
    .tab-nav-item .tab-icon {
        font-size: 24px;
    }
    
    .tab-nav-item {
        margin: 0 2px;
        padding: 3px 4px 7px 4px;
        gap: 3px;
        border-radius: 14px;
    }
    
    .tab-navigation {
        padding: 1px 0;
        /* 移动端页签背景调整贴近主页面朝阳渐变 */
        background: linear-gradient(145deg, 
            rgba(74, 105, 189, 0.30) 0%,     /* 蓝紫色基调 */
            rgba(108, 92, 231, 0.35) 25%,    /* 淡紫色 */
            rgba(253, 121, 168, 0.40) 50%,   /* 温暖粉色 */
            rgba(253, 203, 110, 0.35) 75%,   /* 柔和金色 */
            rgba(225, 112, 85, 0.30) 100%    /* 温暖橙色 */
        );
    }
}

/* 更小屏幕的优化 - 开始换行显示 */
@media (max-width: 480px) {
    .tab-nav-item .tab-label {
        font-size: 12px;
        max-width: 44px;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 1.0;
        overflow: visible;
        text-overflow: clip;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }
    
    .tab-nav-item .tab-icon {
        font-size: 22px;
    }
}

/* 极小屏幕的优化 - 强制换行显示 */
@media (max-width: 360px) {
    .tab-nav-item .tab-label {
        font-size: 11px;
        max-width: 40px;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 0.9;
        overflow: visible;
        text-overflow: clip;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }
    
    .tab-nav-item .tab-icon {
        font-size: 20px;
    }
    
    .tab-nav-item {
        margin: 0 1px;
        padding: 2px 2px 6px 2px;
        gap: 2px;
    }
}

/* 未读评价红点样式 */
.unread-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4757;
    color: white;
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    text-align: center;
    line-height: 12px;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.5);
    z-index: 10;
    animation: pulse-badge 2s infinite;
    transform-origin: center;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 71, 87, 0.5);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.8);
    }
}

/* 未读评价气泡提醒样式 */
.unread-comments-notification {
    position: absolute;
    transform: translateX(-50%) translateY(-100%);
    z-index: 10000;
    cursor: pointer;
    animation: bubbleSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

@keyframes bubbleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-100%) scale(0.3);
    }
    70% {
        transform: translateX(-50%) translateY(-100%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(-100%) scale(1);
    }
}

.notification-bubble {
    position: relative;
    background: linear-gradient(145deg, #ff6b6b 0%, #ff5722 50%, #e91e63 100%);
    color: white;
    border-radius: 18px;
    box-shadow: 
        0 12px 40px rgba(255, 107, 107, 0.6),
        0 6px 20px rgba(255, 87, 34, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    min-width: 240px;
    max-width: 320px;
    animation: bubblePulse 3s ease-in-out infinite;
}

@keyframes bubblePulse {
    0%, 100% {
        box-shadow: 
            0 12px 40px rgba(255, 107, 107, 0.6),
            0 6px 20px rgba(255, 87, 34, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 16px 50px rgba(255, 107, 107, 0.8),
            0 8px 25px rgba(255, 87, 34, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.bubble-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    position: relative;
}

.bubble-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%; /* 默认居中，会被JavaScript动态调整 */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #e91e63;
    filter: drop-shadow(0 2px 4px rgba(233, 30, 99, 0.3));
    transition: left 0.3s ease; /* 平滑过渡效果 */
}

.bubble-arrow::after {
    content: '';
    position: absolute;
    top: -14px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.4);
}

/* 当JavaScript设置了具体位置时，移除transform */
.bubble-arrow[style*="left"] {
    transform: translateX(-12px); /* 箭头宽度的一半，使箭头中心对齐 */
}

.notification-icon {
    font-size: 28px;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-4px) rotate(-5deg);
    }
    60% {
        transform: translateY(-2px) rotate(5deg);
    }
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    line-height: 1.2;
}

.notification-subtitle {
    font-size: 13px;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-weight: 500;
}

.notification-close {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.unread-comments-notification:hover .notification-bubble {
    transform: scale(1.02);
    box-shadow: 
        0 16px 50px rgba(255, 107, 107, 0.8),
        0 8px 25px rgba(255, 87, 34, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 未读评价红点和气泡响应式适配 */
@media (max-width: 768px) {
    .unread-badge {
        top: 1px;
        right: 1px;
        font-size: 9px;
        min-width: 14px;
        height: 14px;
        line-height: 10px;
        padding: 2px 4px;
    }

    .notification-bubble {
        min-width: 200px;
        max-width: 260px;
        border-radius: 15px;
    }

    .bubble-content {
        padding: 14px 16px;
        gap: 10px;
    }

    .bubble-arrow {
        bottom: -7px;
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 10px;
    }

    .bubble-arrow::after {
        top: -12px;
        left: -8px;
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 8px;
    }

    /* 移动端箭头的transform调整 */
    .bubble-arrow[style*="left"] {
        transform: translateX(-10px); /* 移动端箭头宽度的一半 */
    }

    .notification-icon {
        font-size: 24px;
    }

    .notification-title {
        font-size: 14px;
    }

    .notification-subtitle {
        font-size: 12px;
    }

    .notification-close {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}