/* 详情页专用样式 */

/* 导航栏激活状态 */
.nav-bar .nav-item.active {
    color: #ff6b6b;
    font-weight: 600;
}

.nav-bar .nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #ff6b6b;
    border-radius: 1px;
}

/* 主内容区 */
.detail-main {
    padding-bottom: 60px;
    background-color: #f5f5f5;
}

/* 游戏信息卡片 */
.game-info-card {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.game-header {
    display: flex;
    margin-bottom: 15px;
}

.game-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    overflow: hidden;
    margin-right: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.game-info {
    flex: 1;
    min-width: 0;
}

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

.game-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.meta-label {
    font-size: 12px;
    color: #999;
}

.meta-value {
    font-size: 12px;
    color: #666;
    margin-right: 10px;
}

.meta-link {
    font-size: 12px;
    color: #ff6b6b;
    margin-right: 10px;
    text-decoration: none;
}

.meta-link:active {
    opacity: 0.7;
}

/* 下载按钮 */
.download-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, #00d2a0 0%, #00c48c 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 25px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 210, 160, 0.3);
    transition: all 0.3s ease;
}

.download-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* iOS提示 */
.ios-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background-color: #fff5f5;
    border-left: 3px solid #ff6b6b;
    border-radius: 4px;
    font-size: 12px;
    color: #ff6b6b;
    line-height: 1.5;
}

.ios-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Tab切换 */
.detail-tabs {
    display: flex;
    background-color: #fff;
    padding: 0 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.tab-item {
    flex: 1;
    padding: 14px 0;
    font-size: 15px;
    color: #666;
    text-align: center;
    position: relative;
    transition: color 0.3s ease;
}

.tab-item.active {
    color: #ff6b6b;
    font-weight: 600;
}

.tab-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #ff6b6b;
    border-radius: 2px;
}

/* Tab内容 */
.tab-content {
    background-color: #f5f5f5;
}

.tab-panel {
    display: block;
}

.tab-panel[style*="display: none"] {
    display: none;
}

/* 游戏截图 */
.screenshot-section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    overflow: hidden;
}

.screenshot-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshot-list::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex-shrink: 0;
    width: 180px;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.screenshot-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* 内容区块 */
.content-section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title .title-icon {
    font-size: 18px;
    margin-right: 6px;
}

.section-title h2 {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.refresh-btn {
    font-size: 13px;
    color: #5B7CE6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-content {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.section-content p {
    margin-bottom: 12px;
}

.section-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 16px 0 8px;
}

.section-content strong {
    color: #ff6b6b;
}

/* 游戏信息列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.6;
}

.info-label {
    color: #999;
    min-width: 60px;
}

.info-value {
    flex: 1;
    color: #666;
    word-break: break-all;
}

.info-link {
    color: #5B7CE6;
    text-decoration: underline;
}

/* 推荐游戏 */
.recommend-section {
    background-color: #fff;
    padding: 15px 12px;
    margin-bottom: 10px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
}

.recommend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background-color: #fafafa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.recommend-item:active {
    background-color: #f0f0f0;
    transform: scale(0.95);
}

.recommend-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.recommend-name {
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    min-height: 31px;
    max-height: 31px;
    width: 100%;
}

.recommend-btn {
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    font-size: 11px;
    border-radius: 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.recommend-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* 评论区 */
.comment-section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.comment-input-wrap {
    margin-bottom: 20px;
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.submit-comment-btn {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.submit-comment-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    padding: 12px;
    background-color: #fafafa;
    border-radius: 8px;
}

.comment-user {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 空状态 */
.empty-tip {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* 悬浮客服按钮 */
.float-service-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B7CE6 0%, #4A6FDB 100%);
    box-shadow: 0 4px 12px rgba(91, 124, 230, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.float-service-btn:active {
    transform: scale(0.95);
}

/* 响应式适配 - 小屏幕 */
@media screen and (max-width: 360px) {
    .game-icon {
        width: 80px;
        height: 80px;
    }
    
    .game-title {
        font-size: 16px;
    }
    
    .recommend-icon {
        width: 55px;
        height: 55px;
    }
    
    .recommend-name {
        font-size: 11px;
    }
    
    .recommend-btn {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* 响应式适配 - 大屏幕 */
@media screen and (min-width: 414px) {
    .game-icon {
        width: 100px;
        height: 100px;
    }
    
    .screenshot-item {
        width: 200px;
    }
    
    .recommend-icon {
        width: 70px;
        height: 70px;
    }
    
    .recommend-name {
        font-size: 13px;
    }
}

/* 响应式适配 - 平板 */
@media screen and (min-width: 768px) {
    .detail-main {
        max-width: 750px;
        margin: 0 auto;
    }
}

