@charset "utf-8";
/* ==================== 游戏详情页 改版样式 ==================== */

/* ---------- 主图 Hero ---------- */
.xd-hero {
    position: relative;
    width: 100%;
    height: 580px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin-top: 3px;
}
.xd-hero-mask {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(to bottom, rgba(239,239,239,0) 60%, rgba(239,239,239,1) 97%, rgba(239,239,239,1) 100%);
}

/* ---------- 主体容器 ---------- */
.xd-wrap {
    position: relative;
    width: 1200px;
    margin: -545px auto 0;
    z-index: 5;
}

/* ---------- 面包屑 ---------- */
.xd-bread {
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
    opacity: .9;
}
.xd-bread a { color: #fff; }
.xd-bread a:hover { color: #fbc41b; }

/* ---------- 游戏信息卡片 ---------- */
.xd-game-card {
    position: relative;
    width: 1200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(30,30,40,.55);
    backdrop-filter: blur(6px);
}
.xd-game-card .xd-bgimg {
    position: absolute;
    left: 0; top: -500px;
    width: 100%;
    filter: blur(10px);
    z-index: 1;
}
.xd-game-card .xd-bgcov {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(35,35,45,.72);
    z-index: 2;
}
.xd-game-card .xd-inner {
    position: relative;
    z-index: 3;
    padding: 24px 30px;
    height: 100%;
    box-sizing: border-box;
}
.xd-game-card .xd-icon {
    float: left;
    width: 148px; height: 148px;
    margin-right: 24px;
    border-radius: 24px;
    overflow: hidden;
}
.xd-game-card .xd-icon img { width: 100%; height: 100%; display: block; }

.xd-game-card .xd-info { float: left; width: 620px; }
.xd-game-card .xd-info h1 {
    float: left;
    font-size: 22px;
    color: #fff;
    font-weight: bold;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    line-height: 36px;
    word-break: break-all;
}
.xd-game-card .xd-tags { float: left; margin-left: 16px; margin-top: 8px; }
.xd-game-card .xd-tags a {
    display: inline-block;
    padding: 2px 12px;
    margin-right: 8px;
    border: 1px solid #fbc41b;
    border-radius: 4px;
    color: #fbc41b;
    font-size: 13px;
    line-height: 22px;
}
.xd-game-card .xd-meta {
    clear: both;
    margin-top: 12px;
    overflow: hidden;
}
.xd-game-card .xd-meta li {
    float: left;
    width: auto;
    color: #ddd;
    font-size: 14px;
    line-height: 26px;
    margin-right: 24px;
    white-space: nowrap;
}
.xd-game-card .xd-meta li i { color: #fff; font-style: normal; }

.xd-game-card .xd-btns { margin-top: 14px; overflow: hidden; }
.xd-game-card .xd-btns a {
    display: inline-block;
    min-width: 150px;
    width: auto;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 22px;
    color: #fff;
    font-size: 16px;
    margin-right: 16px;
    padding: 0 20px;
    white-space: nowrap;
}
.xd-game-card .xd-btns a.ios { background: linear-gradient(to right, #31d6a2, #2bb673); }
.xd-game-card .xd-btns a.and { background: linear-gradient(to right, #fb4b4c, #fb7b32); }

.xd-game-card .xd-qrcode {
    position: absolute;
    right: 40px; top: 24px;
    width: 130px; text-align: center;
}
.xd-game-card .xd-qrcode .qr-box {
    width: 110px; height: 110px;
    margin: 0 auto;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
}
.xd-game-card .xd-qrcode .qr-box img { width: 100%; height: 100%; display: block; }
.xd-game-card .xd-qrcode p { color: #fff; font-size: 13px; margin-top: 8px; }

.xd-game-card .xd-rank {
    position: absolute;
    right: 60px; top: 30px;
    width: 110px; text-align: center;
}
.xd-game-card .xd-rank .medal {
    width: 100px; height: 100px;
    margin: 0 auto;
    background: radial-gradient(circle at 50% 40%, #ffd76a, #f5a623);
    border-radius: 50%;
    line-height: 100px;
    font-size: 40px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(245,166,35,.5);
}
.xd-game-card .xd-rank .medal span { font-size: 18px; }
.xd-game-card .xd-rank p { color: #ffd76a; font-size: 14px; margin-top: 6px; }

/* ---------- 主体两栏 ---------- */
.xd-main { margin-top: 20px; overflow: hidden; }
.xd-left {
    float: left;
    width: 830px;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
}
.xd-right {
    float: right;
    width: 340px;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
}

/* ---------- 区块标题 ---------- */
.xd-block {
    border: 1px solid #99ccff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(153,204,255,.3);
}
.xd-sec-title {
    position: relative;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    background: linear-gradient(to bottom, #99ccff, #6699ff);
    margin-bottom: 0;
}
.xd-sec-title::before {
    content: "";
    position: absolute;
    left: 12px; top: 11px;
    width: 18px; height: 18px;
    background: url(../images/tit1.png) no-repeat;
    background-size: 18px 18px;
}
.xd-sec-title { padding-left: 36px; }
.xd-sec-title .more {
    float: right;
    font-size: 14px;
    color: #fff;
    font-weight: normal;
}
.xd-sec-title .more:hover { color: #ffe; }
.xd-block .xd-text,
.xd-block .xd-tags,
.xd-block .xd-gift-list,
.xd-block .xd-like,
.xd-block .xd-comment-list {
    padding: 15px 20px;
}

/* ---------- 小编评语 ---------- */
.xd-comment {
    background: linear-gradient(135deg, #b9caf7 0%, #7e9df0 100%);
    border-radius: 10px;
    padding: 12px 18px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}
.xd-comment span { font-size: 14px; font-weight: normal; margin-left: 8px; }

/* ---------- 游戏截图 横向滚动 ---------- */
.xd-screens {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    cursor: grab;
}
.xd-screens:active { cursor: grabbing; }
.xd-screens::-webkit-scrollbar { height: 6px; }
.xd-screens::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.xd-screens::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.xd-screens::-webkit-scrollbar-thumb:hover { background: #999; }
.xd-screens img {
    flex: 0 0 auto;
    width: 320px;
    height: 560px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

/* ---------- 文字区块 ---------- */
.xd-block .xd-text {
    color: #666;
    font-size: 14px;
    line-height: 180%;
    text-indent: 2em;
    word-wrap: break-word;
}
.xd-block .xd-text pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    margin: 0;
}
.xd-block .xd-tags {
    margin-top: 15px;
    overflow: hidden;
}
.xd-block .xd-tags label {
    color: #50a14f;
    font-size: 15px;
    margin-right: 15px;
}
.xd-block .xd-tags input { vertical-align: middle; margin-right: 4px; }

/* ---------- 礼包/活动列表 ---------- */
.xd-gift-list { overflow: hidden; }
.xd-gift-list li {
    float: left;
    width: 345px;
    margin-right: 20px;
    margin-bottom: 15px;
}
.xd-gift-list li:nth-child(2n) { margin-right: 0; }
.xd-gift-list a { display: block; overflow: hidden; }
.xd-gift-list img {
    float: left;
    width: 90px; height: 90px;
    border-radius: 12px;
    margin-right: 12px;
}
.xd-gift-list .g-info { float: left; width: 230px; }
.xd-gift-list .g-tit {
    font-size: 15px;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 24px;
}
.xd-gift-list .g-cfg { font-size: 13px; color: #999; line-height: 22px; }
.xd-gift-list .g-cfg i { color: #f7a934; font-style: normal; }
.xd-gift-list .g-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 18px;
    background: #f7a934;
    color: #fff;
    border-radius: 14px;
    font-size: 13px;
}

/* ---------- 猜你喜欢 ---------- */
.xd-like { overflow: hidden; }
.xd-like li {
    float: left;
    width: 80px;
    margin-right: 25px;
    text-align: center;
}
.xd-like li:last-child { margin-right: 0; }
.xd-like img { width: 80px; height: 80px; border-radius: 16px; }
.xd-like p {
    font-size: 13px;
    color: #6666cc;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 30px;
}

/* ---------- 游戏评论 ---------- */
.xd-comment-list {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
}
.xd-comment-list li {
    display: flex;
    align-items: flex-start;
    width: 50%;
    padding: 15px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
}
.xd-comment-list li:nth-child(odd) { border-right: 1px solid #eee; }
.xd-comment-list .c-avatar {
    flex-shrink: 0;
    width: 50px; height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}
.xd-comment-list .c-body { flex: 1; min-width: 0; }
.xd-comment-list .c-name {
    font-size: 14px;
    color: #333;
    line-height: 22px;
    white-space: nowrap;
}
.xd-comment-list .c-name span { color: #999; font-size: 12px; margin-left: 6px; }
.xd-comment-list .c-text {
    font-size: 14px;
    color: #666;
    line-height: 22px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.xd-comment-list .c-like {
    flex-shrink: 0;
    margin-left: 10px;
    margin-top: 8px;
    padding: 2px 10px;
    background: #f7a934;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
}

/* ---------- 右栏 ---------- */
.xd-right .xd-box { margin-bottom: 20px; }
.xd-right .xd-box-img { width: 100%; border-radius: 10px; }

.xd-quick { overflow: hidden; }
.xd-quick a { float: left; width: 32.2%; margin-right: 1.7%; }
.xd-quick a:last-child { margin-right: 0; }
.xd-quick img { width: 100%; border-radius: 8px; }

.xd-topic li {
    float: left;
    width: 48%;
    height: 26px;
    line-height: 26px;
    margin-right: 3%;
    margin-top: 5px;
    text-align: center;
    border: 1px solid #7f9ef0;
    border-radius: 4px;
    font-size: 13px;
}
.xd-topic li:nth-child(2n) { margin-right: 0; }
.xd-topic li a { color: #7f9ef0; display: block; }
.xd-topic li a:hover { background: #7f9ef0; color: #fff; }

.xd-gl-list li { margin-bottom: 12px; }
.xd-gl-list a { display: block; position: relative; }
.xd-gl-list img { width: 100%; height: 155px; border-radius: 8px; object-fit: cover; }
.xd-gl-list p {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: #6666cc;
    background: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 0 0 8px 8px;
}

.xd-hot-list li {
    overflow: hidden;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.xd-hot-list .h-icon {
    float: left;
    width: 60px; height: 60px;
    border-radius: 12px;
    margin-right: 10px;
}
.xd-hot-list .h-info { float: left; width: 150px; }
.xd-hot-list .h-info p {
    font-size: 13px;
    color: #6666cc;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.xd-hot-list .h-info .h-type { color: #ff6633; }
.xd-hot-list .h-btn {
    float: right;
    margin-top: 18px;
    padding: 3px 14px;
    background: #6666cc;
    color: #fff;
    border-radius: 14px;
    font-size: 13px;
}

/* ---------- 相关推荐 ---------- */
.xd-about {
    clear: both;
    width: 1200px;
    margin: 20px auto 0;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
}
.xd-about .xd-games { overflow: hidden; white-space: nowrap; }
.xd-about .xd-games li {
    display: inline-block;
    width: 100px;
    margin-right: 20px;
    text-align: center;
    vertical-align: top;
}
.xd-about .xd-games li:last-child { margin-right: 0; }
.xd-about .xd-games img { width: 90px; height: 90px; border-radius: 18px; }
.xd-about .xd-games p {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 28px;
}
