* {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

ul, ol {
    list-style-type: none;
}

input:focus {
    outline: none;
}

html, body {
    max-width: 640px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    /* 新增：设置rem基准，统一适配 */
    font-size: calc(100vw / 375 * 16); 
}

em {
    font-style: normal;
    font-weight: normal;
}

.public_header {
    height: 45px;
    line-height: 45px;
    background: #2a2059;
    width: 100%;
    position: relative;
}

.public_h_logo {
    position: absolute;
    left: 10px;
    height: 44px;
    top: 0;
    display: block
}

.public_h_logo img {
    height: 100%;
    display: block
}

.public_h_con {
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    line-height: 45px;
}

.public_h_home {
    position: absolute;
    width: 45px;
    height: 45px;
    top: 0;
    left: 0;
    cursor: pointer; /* 新增：点击反馈 */
}

.public_h_menu {
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -10px;
    width: 60px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer; /* 新增：点击反馈 */
}

.public_h_home:after {
    content: '';
    display: block;
    width: 25px;
    height: 25px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 10px;
    left: 10px;
    background-image: url("/statics/ffsm/public/images/icon_home_bai.png");
}

/*-----flex（修复：前缀属性在前，移除重复定义）-----*/
.flex-center {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

.flex-row {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.flex-column {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

/*-----flex-----*/

/*更多游戏（修复：补充flex布局，优化适配）*/
div.more-wrap {
    width: 100%;
    margin-top: 0.6rem;
}

div.more-app {
    width: 100%;
}

div.more-app div.title {
    width: 100%;
    height: 1.4rem;
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    background-color: #5d4bbb;
    /* 新增：文字垂直居中 */
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

div.more-app div.apps {
    width: 100%;
    background-color: #3a2d7c;
    padding: 0.6rem 0.3rem;
}

div.more-app ul.line {
    width: 100%;
    /* 新增：横向排列并均分空间 */
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-around;
    justify-content: space-around;
}

div.more-app ul.line:first-child {
    margin-bottom: 0.8rem;
}

div.more-app ul.line li a {
    text-decoration: none;
    width: 2.8rem;
    /* 修复：补充flex布局，确保子元素垂直居中 */
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    cursor: pointer; /* 新增：点击反馈 */
}

div.more-app div.cover {
    position: relative;
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.1rem;
}

div.more-app div.cover img.app-img {
    display: block;
    width: 2rem;
    height: 2rem;
}

div.more-app div.cover img.original {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 0.8rem;
    height: 0.8rem;
}

div.more-app div.app-title {
    width: 2.8rem;
    text-align: center;
    font-size: 15px;
    color: #FFFFFF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 340px) {
    div.more-app div.app-title {
        font-size: 12px;
    }

    div.more-app div.title {
        font-size: 16px;
        font-weight: 400;
    }
}

/*客服（修复：新增溢出滚动，优化布局）*/
div.kefu-wrap {
    width: 100%;
    background-color: #281f58;
}

div.kefu-wrap div.title {
    width: 100%;
    height: 1.8rem;
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-align-items: center;
    align-items: center;
    padding-left: 0.4rem;
    border-bottom: 2px solid #7d7394;
}

div.kefu-wrap div.kefu-content {
    width: 100%;
    max-height: 6rem; /* 修复：替换固定height为max-height */
    height: auto;
    padding: 1rem 0.4rem 2.4rem; /* 修复：补充左右内边距 */
    font-size: 16px;
    color: #FFFFFF;
    overflow-y: auto; /* 新增：内容超出时可滚动 */
}

@media screen and (max-width: 340px) {
    div.kefu-wrap div.title {
        font-size: 16px;
        font-weight: 400;
    }

    div.kefu-wrap div.kefu-content {
        font-size: 12px;
    }
}

div.kefu-wrap p.wx {
    color: #ddad72;
    margin-bottom: 0.3rem;
}