/* ========== 全局基础 ========== */

html { 
    width: 100%; 
    height: 100%;
    background: #e9f3fe;              /* 全局浅蓝背景 */
    display: flex;
    justify-content: center;          /* 水平居中主容器 */
}

body { 
    margin: 0;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

::-webkit-scrollbar { 
    width: 0; 
    height: 0; 
}

* { 
    -webkit-box-sizing: border-box; 
    -moz-box-sizing: border-box; 
    box-sizing: border-box; 
}

/* ========== 主容器 ========== */

.mobile-wrap { 
    position: relative; 
    min-height: 100vh; 
    width: 100%; 
    max-width: 750px;
    margin: 0 auto;
    background-color: #ffffff;
}

/* ========== 顶部区域 ========== */

.head { 
    width: 100%;
    margin: 0 auto;
}

.head img { 
    width: 7.5rem;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
}

/* 固定顶部栏：APP / LOGO / 客服 */

.headbg {
    width: 7.5rem; 
    height: 1rem; 
    position: fixed; 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffffff, #cce6fd);  /* 渐变蓝 */
    box-shadow: 0 2px 8px rgba(76, 157, 236, 0.35);
    z-index: 999;
    opacity: 0.98;
}

.head .logo { 
    height: 1rem; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.head .logo img { 
    width: 2.6rem;
}

/* 顶部按钮通用样式 */

.head .lbtn,
.head .rbtn { 
    padding: 0.1rem 0.18rem; 
    background-color: #1254fd; 
    border-radius: 0.12rem; 
    font-size: 0.24rem;
    color: #ffffff; 
    height: 0.56rem; 
    display: flex; 
    align-items: center;
    border: 1px solid #bcd8f5;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(76, 157, 236, 0.35);
    transition: all 0.2s ease-out;
}

.head .lbtn:hover,
.head .rbtn:hover { 
    background-color: #76b8f5;
    box-shadow: 0 3px 6px rgba(76, 157, 236, 0.45);
    transform: translateY(-1px);
}

.lbtn img { 
    width: 0.26rem; 
    height: 0.26rem; 
    margin-right: 0.1rem; 
}

.rbtn img { 
    width: 0.26rem; 
    height: 0.28rem; 
    margin-right: 0.1rem; 
}

/* ========== Banner + 图标区 ========== */

.banner { 
    width: 100%; 
    margin: 0 auto;
}

.iconlist {
    width: 100%;
}

.iconbg {
    width: 7.5rem;
    height: 2.4rem;
    position: relative;
}

.iconbg > img {
    width: 100%;
    height: 100%;
    display: block;
    margin-top: -1.5rem;              /* 与头部 banner 重叠 */
}

/* 图标容器 */

.icon-items {
    list-style: none;
    padding: 0 0.2rem;
    margin: -0.1rem 0 0 0;
    position: absolute;
    top: 4px;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.icon-items li {
    width: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: iconFloat 2.6s ease-in-out infinite;   /* 默认上下浮动 */
}

/* 错峰动画，让每个图标时间不同 */

.icon-items li:nth-child(1) { animation-delay: 0s; }
.icon-items li:nth-child(2) { animation-delay: 0.15s; }
.icon-items li:nth-child(3) { animation-delay: 0.3s; }
.icon-items li:nth-child(4) { animation-delay: 0.45s; }
.icon-items li:nth-child(5) { animation-delay: 0.6s; }
.icon-items li:nth-child(6) { animation-delay: 0.75s; }

.icon-items li img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out, filter 0.25s ease-out;
    transform-origin: center center;
}

/* 悬浮高亮（移动端长按也会有稍许效果） */

.icon-items li img:hover {
    opacity: 0.9;
    transform: scale(1.06);
    filter: drop-shadow(0 0 6px rgba(76, 157, 236, 0.5));
}

/* 按下时缩小，增加反馈 */

.icon-items li:active img {
    transform: scale(0.9);
}

/* 图标上下浮动动画 */

@keyframes iconFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* ========== 游戏入口图片区 ========== */

.web { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    width: 90%;
    margin: 0.2rem auto 0.4rem auto;
}

.weblist { 
    width: 7.10rem;
    height: 1.50rem;
    display: block;
    background-color: transparent;
    border-radius: 0.16rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(76, 157, 236, 0.18);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.weblist img {     
    width: 100%;
    height: 100%;
    display: block;
}

.weblist:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 14px rgba(76, 157, 236, 0.28);
}

.weblist img:hover {
    opacity: 0.98;
}

/* ========== 页脚提示区 ========== */

.ft {
    width: 100%;
    max-width: 750px;
    margin: 0.5rem auto 0.6rem auto;
    padding: 0.5rem 0.6rem;
    background: #d9e9fa;                 /* 底部浅蓝块 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    border-radius: 0.18rem;
    box-shadow: 0 4px 10px rgba(76, 157, 236, 0.16);
}

.ft img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 0.4rem;
}

.ft ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.ft ul li {
    color: #2a4e6f;
    line-height: 1.4;
    margin-bottom: 0.18rem;
    position: relative;
    font-size: 0.23rem;
}

/* ========== 自适应小屏稍微优化 ========== */

@media screen and (max-width: 360px) {
    .head .lbtn,
    .head .rbtn {
        font-size: 0.22rem;
        padding: 0.08rem 0.14rem;
        height: 0.5rem;
    }

    .head .logo img {
        width: 2.3rem;
    }

    .ft {
        padding: 0.4rem 0.4rem;
    }
}
