/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #0e0e1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    padding-bottom: 40px;
    background-image: radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.05) 0%, transparent 50%);
    min-height: 100vh;
}
::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.6);
}

/* ===== 导航栏 ===== */
.app-nav {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 12px 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    margin-right: 8px;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}
.nav-brand:hover {
    opacity: 0.85;
}
.nav-brand i {
    font-size: 32px;
    color: #f7c948;
    filter: drop-shadow(0 0 12px rgba(247, 201, 72, 0.5));
}
.nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a29bfe;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s;
    margin-left: auto;
}
.nav-back:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.nav-back i {
    font-size: 14px;
}

/* ===== 容器 ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 24px 10px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8888aa;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: #a29bfe;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #fff;
}
.breadcrumb .sep {
    color: #444466;
}
.breadcrumb .current {
    color: #c0c0e0;
    font-weight: 600;
}

/* ===== 游戏详情主体 ===== */
.detail-layout {
    display: block;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
    width: 800px;
    margin: 0px auto;
}

/* 左侧：封面 */
.detail-cover {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #000;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-cover .cover-bg {
    width: 240px;
    position: absolute;
    inset: 0;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-size: 120px;
    transition: opacity 0.3s, transform 0.5s;
    left: calc((100% - 240px) / 2);
    top: calc((100% - 240px) / 2);
}
.detail-cover:hover .cover-bg {
    transform: scale(1.04);
}
.detail-cover .cover-bg .emoji {
    font-size: 140px;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.3));
}
.detail-cover .cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.9));
    z-index: 1;
}
.detail-cover .cover-overlay .cover-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.detail-cover .cover-overlay .cover-sub {
    font-size: 14px;
    color: #c0c0e0;
    margin-top: 4px;
    opacity: 0.8;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.detail-cover .badge-top {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(245, 87, 108, 0.85);
    backdrop-filter: blur(4px);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 右侧：详情信息 */
.detail-info {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.detail-info .info-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.detail-info .info-desc {
    font-size: 16px;
    color: #b0b0d0;
    line-height: 1.7;
    margin-bottom: 4px;
}
.detail-info .info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 6px 0 10px;
}
.detail-info .info-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: #c0c0e0;
    font-weight: 500;
}
.detail-info .info-meta .meta-item i {
    color: #a29bfe;
    font-size: 14px;
}
.detail-info .info-meta .meta-item .highlight {
    color: #f7c948;
}
.detail-info .info-stats {
    display: flex;
    gap: 24px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 4px 0 6px;
}
.detail-info .info-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.detail-info .info-stats .stat .num {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.detail-info .info-stats .stat .label {
    font-size: 12px;
    color: #8888aa;
    margin-top: 2px;
}
.detail-info .info-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.detail-info .info-actions .btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 140px;
}
.detail-info .info-actions .btn-play {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    box-shadow: 0 4px 24px rgba(245, 87, 108, 0.35);
}
.detail-info .info-actions .btn-play:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(245, 87, 108, 0.5);
}
.detail-info .info-actions .btn-fav {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c0c0e0;
    flex: 0.5;
    min-width: 60px;
}
.detail-info .info-actions .btn-fav:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.detail-info .info-actions .btn-fav.active {
    background: rgba(245, 87, 108, 0.15);
    border-color: #f5576c;
    color: #f5576c;
}

/* ===== 相关游戏推荐 ===== */
.related-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.related-section .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.related-section .section-title i {
    color: #a29bfe;
}
.related-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 2px 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 92, 231, 0.3) transparent;
}
.related-scroll::-webkit-scrollbar {
    height: 4px;
}
.related-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}
.related-scroll::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.4);
    border-radius: 4px;
}

.related-card {
    flex: 0 0 160px;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    position: relative;
    background: #1a1a2e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.related-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(108, 92, 231, 0.3);
}
.related-card .card-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    transition: opacity 0.3s;
}
.related-card:hover .card-bg {
    opacity: 0.45;
}
.related-card .card-bg .emoji {
    font-size: 56px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
}
.related-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 12px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65) 30%, rgba(0, 0, 0, 0.92));
    z-index: 1;
}
.related-card .card-content .name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-card .card-content .tag {
    font-size: 10px;
    color: #a29bfe;
    font-weight: 600;
    margin-top: 2px;
    display: inline-block;
    background: rgba(108, 92, 231, 0.2);
    padding: 1px 10px;
    border-radius: 20px;
}

/* ===== 底部 ===== */
.app-footer {
    text-align: center;
    padding: 28px 16px 12px;
    color: #666688;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 20px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .detail-cover {
        aspect-ratio: 16 / 9;
    }
    .detail-cover .cover-bg .emoji {
        font-size: 100px;
    }
    .detail-cover .cover-overlay .cover-title {
        font-size: 22px;
    }
    .detail-info .info-title {
        font-size: 22px;
    }
    .detail-info .info-desc {
        font-size: 15px;
    }
    .detail-info .info-actions .btn {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 100px;
    }
    .detail-info .info-stats {
        gap: 16px;
    }
    .detail-info .info-stats .stat .num {
        font-size: 18px;
    }
    .app-nav {
        padding: 10px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .nav-brand {
        font-size: 20px;
        justify-content: center;
    }
    .nav-back {
        margin-left: 0;
        justify-content: center;
    }
    .container {
        padding: 16px 16px;
    }
    .related-card {
        flex: 0 0 130px;
        height: 170px;
    }
    .related-card .card-bg .emoji {
        font-size: 44px;
    }
    .related-card .card-content .name {
        font-size: 13px;
    }
}
@media (max-width: 400px) {
    .detail-cover .cover-bg .emoji {
        font-size: 72px;
    }
    .detail-cover .cover-overlay .cover-title {
        font-size: 18px;
    }
    .detail-info .info-title {
        font-size: 18px;
    }
    .detail-info .info-desc {
        font-size: 14px;
    }
    .detail-info .info-actions .btn {
        font-size: 12px;
        padding: 8px 14px;
        min-width: 80px;
    }
    .detail-info .info-meta .meta-item {
        font-size: 12px;
        padding: 3px 12px;
    }
    .related-card {
        flex: 0 0 110px;
        height: 150px;
    }
    .related-card .card-bg .emoji {
        font-size: 36px;
    }
    .related-card .card-content .name {
        font-size: 12px;
    }
}
a{
    color: inherit;          /* 继承父级文字颜色 */
    text-decoration: none;   /* 去除下划线 */
    cursor: default;         /* 改为默认箭头（非手型） */
    outline: none;
}