/* 游戏详情页面专用样式 - 新版整合布局 */

/* 基础重置 */
.game-hero-banner,
.game-content-main {
    box-sizing: border-box;
}

.game-hero-banner *,
.game-content-main * {
    box-sizing: border-box;
}

/* 游戏头部横幅样式保持不变 */
.game-hero-banner {
    position: relative;
    width: 100%;
    min-height: 300px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.game-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-hero-container {
    position: relative;
    z-index: 2;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    max-width: 650px;
    margin: 0 auto;
}

.game-hero-main {
    display: flex;
    gap: 20px;
    flex: 1;
    align-items: flex-start;
}

.game-icon-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.game-icon-wrapper {
    position: relative;
}

.game-main-icon {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.2);
}

.game-badges {
    position: absolute;
    top: -8px;
    right: -12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-badge-featured,
.game-badge-recommend {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: linear-gradient(45deg, #FFCC00, #FFB400);
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.game-badge-recommend {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.game-qr-section {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.game-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.game-qr-code {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.game-qr-code canvas,
.game-qr-code img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

.game-qr-tip {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.game-info-section-tag {
    flex: 1;
    color: white;
    min-width: 0;
    padding: 20px;
}

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

.game-main-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.game-main-summary {
    font-size: 15px;
    color: rgba(255,255,255,0.95);
    margin: 0 0 18px 0;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.game-meta-info {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.game-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-meta-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.game-meta-value {
    font-size: 13px;
    font-weight: bold;
    color: white;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.game-rating-display {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-stars-row {
    display: inline-flex;
    gap: 3px;
}

.game-star {
    color: #ddd;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.game-star.active {
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255,215,0,0.6);
}

.game-rating-text {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.game-stats-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.game-stat-box {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 5px 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.game-stat-number {
    font-size: 17px;
    font-weight: bold;
    color: white;
    display: block;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.game-stat-text {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.game-download-button-inline {
    flex-shrink: 0;
}

.game-download-button {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(34,197,94,0.4);
    transition: all 0.3s ease;
    justify-content: center;
}

.game-download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.5);
    background: linear-gradient(45deg, #16a34a, #15803d);
}

.game-download-button:active {
    transform: translateY(-1px);
}

/* 内容主体 */
.game-content-main {
    max-width: 650px;
}

/* 通用卡片样式 */
.game-showcase-card,
.game-developer-card,
.game-recommend-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

/* 通用标题样式 */
.game-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #22c55e;
    position: relative;
}

.game-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #FF5151;
    border-radius: 2px;
}

/* 游戏展示卡片样式 */
.game-showcase-card {
    padding: 0;
    overflow: hidden;
}

.game-screenshots-section,
.game-description-section {
    padding: 25px;
}

.game-screenshots-section {
    border-bottom: 1px solid #f0f0f0;
}

.game-description-section {
    border-bottom: 1px solid #f0f0f0;
}

/* 截图展示区域 */
.game-screenshots-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-screenshot-main {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.game-main-screenshot {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.game-main-screenshot:hover {
    transform: scale(1.02);
}

.game-screenshots-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.game-screenshots-thumbs::-webkit-scrollbar {
    height: 6px;
}

.game-screenshots-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.game-screenshots-thumbs::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}

.game-screenshots-thumbs::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.game-thumb-item {
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.game-thumb-item.active {
    border-color: #22c55e;
    transform: scale(1.05);
}

.game-thumb-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 视频展示样式 */
.game-video-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.game-main-video {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
}

.game-video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
}

.game-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    pointer-events: none;
}

.game-thumb-item.video-thumb.active {
    border-color: #007bff;
}

/* 游戏介绍区域 */
.game-description-content {
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
}

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

.game-crack-notice {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    border-left: 5px solid #ffc107;
    box-shadow: 0 2px 10px rgba(255,193,7,0.2);
}

.game-crack-title {
    font-size: 16px;
    font-weight: bold;
    color: #856404;
    margin: 0 0 10px 0;
}

.game-crack-content {
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

/* 游戏信息标签式展示 */
.game-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.game-info-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.game-info-tag:hover {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.game-info-tag i {
    color: #22c55e;
    font-size: 14px;
}

.tag-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.tag-value {
    font-size: 13px;
    color: #2c3e50;
    font-weight: bold;
}

.tag-value {
  word-wrap: break-word;
  word-break: break-all;
  overflow-wrap: break-word;
}


/* 全宽标签 */
.game-tags-full,
.game-md5-full,
.game-package-full {
    flex: 1 1 100%;
    min-width: 100%;
}

.tag-value-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

/* 开发者与相关游戏卡片 */
.developer-content-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

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

.developer-games-section {
    flex: 1;
    min-width: 0;
}

.game-developer-profile {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.game-developer-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 4px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.game-developer-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.game-developer-name a {
    color: #22c55e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-developer-name a:hover {
    color: #16a34a;
    text-decoration: underline;
}

.game-developer-titles {
    margin-bottom: 10px;
}

.game-title-badge {
    display: inline-block;
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 6px;
    margin-bottom: 4px;
    font-weight: bold;
}

.game-developer-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.game-developer-stats {
    display: flex;
    gap: 15px;
}

.game-dev-stat {
    text-align: center;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 12px;
    min-width: 60px;
}

.game-dev-number {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #22c55e;
}

.game-dev-label {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

/* 开发者其他游戏 */
.developer-games-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.game-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.game-related-item {
    border-radius: 8px;
}

.game-related-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid #22c55e;
}

.game-related-link:hover {
    background: rgba(34, 197, 94, 0.05);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.game-related-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

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

.game-related-name {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-related-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 10px;
}

.game-more-games {
    text-align: center;
}

.game-more-link {
    display: inline-block;
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(34,197,94,0.3);
}

.game-more-link:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34,197,94,0.4);
    background: linear-gradient(45deg, #16a34a, #15803d);
}

/* 推荐游戏网格 */
.game-recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.game-recommend-item {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-recommend-item:hover {
    transform: translateY(-4px);
}

.game-recommend-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.game-recommend-link:hover {
    background: rgba(34, 197, 94, 0.05);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.game-recommend-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.game-recommend-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-recommend-stats {
    font-size: 12px;
    color: #666;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 隐藏移动端二维码 */
    .game-qr-section {
        display: none;
    }
    
    /* 头部横幅适配 */
    .game-hero-banner {
        min-height: 360px;
    }
    
    .game-hero-container {
        padding: 15px;
        min-height: 250px;
    }
    
    .game-hero-main {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    
    .game-icon-section {
        align-self: center;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }
    
    .game-main-icon {
        width: 80px;
        height: 80px;
    }
    
    .game-info-section {
        text-align: center;
    }
    
    .game-main-title {
        font-size: 20px;
    }
    
    .game-main-summary {
        font-size: 13px;
    }
    
    .game-meta-info {
        justify-content: center;
        gap: 8px;
    }
    
    .game-rating-display {
        justify-content: center;
    }
    
    .game-stats-row {
        justify-content: center;
        gap: 12px;
    }
    
    .game-download-button {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* 卡片适配 */
    .game-showcase-card,
    .game-developer-card,
    .game-recommend-card {
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    
    .game-section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* 截图展示适配 */
    .game-main-screenshot,
    .game-main-video {
        max-height: 250px; /* 或者你想要的任何高度 */
    }
    
    .game-screenshots-thumbs {
    margin: 0;
    padding: 8px;
}

    
    .game-thumb-item {
        width: 60px;
        height: 45px;
    }
    
    /* 游戏信息标签适配 */
    .game-info-tags {
        gap: 8px;
    }
    
    .game-info-tag {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1 1 auto;
        min-width: calc(50% - 4px);
    }
    
    .game-tags-full,
    .game-md5-full,
    .game-package-full {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    /* 开发者卡片适配 - 关键修复部分 */
    .developer-content-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    /* 开发者信息部分优化 */
    .developer-info-section {
        width: 100%;
        order: 1;
    }
    
    .game-developer-profile {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .game-developer-avatar {
        width: 60px;
        height: 60px;
    }
    
    .game-developer-name {
        font-size: 18px;
    }
    
    .game-developer-desc {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .game-developer-stats {
        gap: 12px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .game-dev-stat {
        padding: 8px 12px;
        min-width: 60px;
        flex: 0 0 auto;
    }
    
    /* 开发者游戏部分 - 重点修复 */
    .developer-games-section {
        width: 100%;
        order: 2;
    }
    
    .developer-games-title {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .game-related-list {
        max-height: none;
        overflow-y: visible;
    }
    
    .game-related-item {
        border-radius: 12px;
        border: 1px solid #f0f0f0;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .game-related-link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
        text-decoration: none;
        color: inherit;
        border-radius: 12px;
        transition: all 0.3s ease;
        min-height: 80px;
        border-left: none;
    }
    
    .game-related-link:hover {
        background: rgba(34, 197, 94, 0.05);
        color: inherit;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
    
    .game-related-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        flex-shrink: 0;
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    }
    
    .game-related-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
    
    .game-related-name {
        font-size: 16px;
        font-weight: bold;
        margin: 0;
        color: #2c3e50;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    
    .game-related-meta {
        font-size: 13px;
        color: #666;
        display: flex;
        gap: 12px;
        line-height: 1.2;
        flex-wrap: wrap;
        margin: 0;
    }
    
    /* 更多游戏按钮优化 */
    .game-more-games {
        text-align: center;
        margin-top: 20px;
    }
    
    .game-more-link {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    /* 推荐游戏适配 */
    .game-recommend-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .game-recommend-item {
        border: 1px solid #f0f0f0;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .game-recommend-link {
        padding: 16px;
        gap: 16px;
        min-height: 80px;
        border: none;
    }
    
    .game-recommend-link:hover {
        transform: translateY(-2px);
    }
    
    .game-recommend-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        border-radius: 10px;
    }
    
    .game-recommend-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
    
    .game-recommend-title {
        font-size: 15px;
        margin: 0;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .game-recommend-stats {
        font-size: 13px;
        line-height: 1.2;
        margin: 0;
    }
}
