.header_nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0; /* 使用left和right来确保宽度为100% */
    z-index: 9999; /* 确保导航栏保持在最上层 */
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.app_tou {
    height: 45px;
    background: #6656a7; /* 设置背景颜色 */
    display: flex; /* 使用Flexbox布局 */
    justify-content: space-between; /* 水平分布子元素 */
    align-items: center; /* 垂直居中对齐 */
    padding: 0 20px; /* 内边距以防止内容紧贴边缘 */
}

.app_tou ul {
    list-style-type: none; /* 移除默认列表样式 */
    margin: 0;
    padding: 0;
    width: 100%; /* 确保ul占满整个容器 */
    display: flex; /* 使用Flexbox布局 */
    justify-content: space-between; /* 水平分布子元素 */
    align-items: center; /* 垂直居中对齐 */
}

.app_tou ul li {
    color: #fff; /* 文字颜色 */
    font-weight: bold;
    font-size: .25rem;
}

.app_tou ul .title {
    flex-grow: 1; /* 让标题占用剩余空间 */
    text-align: center; /* 文本居中 */
}

.app_tou ul .actions {
    text-align: right; /* 右对齐文本 */
}
.app_tou ul li.actions {
    text-align: right; /* 右对齐文本 */
    line-height: 1.2;  /* 调整行高以适应两行文字 */
}

.app_tou ul li.actions span {
    display: block; /* 每个<span>占据一行 */
}

.app_tou ul li.actions .domain {
    font-size: .27rem; /* 可选：调整第二行字体大小 */
}
.app_tou ul li#ip-title {
    font-size: .35rem; /* 可选：调整第二行字体大小 */
}
.app_tou ul li.logo {
    width: 45px; /* 固定Logo的宽度 */
    height: 45px; /* 如果需要，可以同时设置高度 */
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    justify-content: center; /* 水平居中对齐 */
}

.app_tou ul li.logo img {
    padding-top: 5px;
    max-width: 100%; /* 确保图片不会超出容器宽度 */
    max-height: 100%; /* 确保图片不会超出容器高度 */
    object-fit: contain; /* 保持图片比例并适应容器 */
}
.cm-search .row{
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cm-search .row .col1{
    flex: 1;
    background: #f5f5f5;
    border-radius: 100px;
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 15px;
    box-sizing: border-box;
    margin-right: 10px;
}
.cm-search .row .col1 img{
    height: 20px;
    margin-right: 10px;
}
.cm-search .row .col1 input{
        outline: 0!important;
    -webkit-font-smoothing: antialiased;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(51, 51, 53, .3);
    word-break: break-all;
    -webkit-text-size-adjust: 100%;
    font-size: 14px;
    color: #333;
    appearance: none;
    border-radius: 0;
    font-family: Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
    caret-color: #dab464;
    line-height: 1;
    background: none;
    border: navajowhite;
    flex: 1;
}
.cm-search .row .col2 img{
    height: 24px;
    margin: 0 5px;
}
.cm-search .row .col2 button{
    border: none;
    cursor: pointer;
}
.cm-search .row .col2 span{
    position: absolute;
    width: 8px;
    height: 8px;
    background: #f00;
    border-radius: 10px;
}
/* 确保福利列表容器使用Flexbox布局 */
.welfare-list.box {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0 10px 5px;
    justify-content: center; /* 水平居中对齐 */
}

/* 每个福利项的样式 */
.welfare-item {
    padding-top: 10px;
    flex: 0 0 calc(25% - 10px); /* 每个元素占25%，减去间距的一半 */
    min-width: calc(25% - 5px);
    max-width: calc(25% - 10px);
    text-align: center;
}

/* 应用于app-vertical类，确保内部元素垂直居中对齐 */
.app-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 链接样式，确保文本不会被装饰线影响 */
.app-vertical a {
    text-decoration: none;
    color: inherit;
}

/* 图标样式，确保图片适应容器 */
.icon img {
    max-width: 100%;
    height: auto;
}

/* 名称和标签样式 */
.name.hide-text.one,
.label.hide-text.one {
    font-weight: bolder;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* 标签字体稍小 */
.label.hide-text.one {
    font-size: 12px;
}

.cm-search{
    height: 45px;
    background: #6656a7;
    /*background: linear-gradient(150deg, #15c5ce, #FF0000 );*//* 结束颜色 */
    padding: 0 20px;
}



/* 页面底部样式 */
 .footer_diy {
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 52px;
    background: #ffffff;
    max-width: 500px;
    border-top: 0.0625rem solid #e5e5e7;
    color: #333333;
    box-sizing: border-box;
    font: inherit;
    vertical-align: baseline;
    margin-top: 50px;
    z-index: 9999;
}

 .footer_diy ul {
    display: flex; /* 使用标准的flex布局 */
    vertical-align: baseline;
    box-sizing: border-box;
}

 .footer_diy ul li {
    flex: 1; /* 等同于之前的-ms-flex: 1等*/
    color: #888888;
    box-sizing: border-box;
    position: relative;
}

 .footer_diy ul li .tips {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    background: #f00;
    border-radius: 10px;
    margin-top: -17px;
    margin-left: 9px;
}

 .footer_diy ul li a {
    display: block;
    text-align: center;
    color: black;
    padding: 0.5rem 0;
    box-sizing: border-box;
    text-decoration: none;
}

 .footer_diy ul li a span {
    font-weight: bold;
    display: block;
    font-size: 12px;
    box-sizing: border-box;
}


 .icon {
    text-decoration: none;
    border-bottom: none;
    position: relative;
}

 .icon::before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-transform: none !important;
}

 .fa-gamepad::before {
    content: "\f11b";
}

 .footer_diy .active {
    color: #fe3535;
    font-size: 700px;
}

 .icon img {
    width: 100%;
    border-radius: 10px;
}

 .content-html p {
    margin: 10px 0;
}

 .content-html img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
}

/*<!-- === 放大查看 + 滑动切换 + 点击关闭 === -->*/
/* 图片模态框样式 */
    .image-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        animation: fadeIn 0.3s ease-out;
    }

    .image-modal-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .image-modal-content img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
        border-radius: 8px;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }

    .image-modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        font-size: 24px;
        line-height: 40px;
        text-align: center;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        transition: background-color 0.2s;
        user-select: none;
    }

    .image-modal-close:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .image-modal-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background-color: #301891;
        color: white;
        font-size: 24px;
        line-height: 50px;
        text-align: center;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        user-select: none;
        opacity: 0.7;
        transition: all 0.2s;
    }

    .image-modal-nav-btn:hover {
        background-color: rgba(0, 0, 0, 0.8);
        opacity: 1;
    }

    .image-modal-nav-left {
        left: 15px;
    }

    .image-modal-nav-right {
        right: 15px;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* 移动端优化：避免页面滚动 */
    .image-modal-open {
        overflow: hidden;
    }