body {
    margin: 0 auto;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    overflow-x:hidden;
    max-width: 480px;
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.tab-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background-color: #1c1c1e;
    display: flex;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom); /* 在底部添加安全区插入 */
    z-index: 999;
    height:60px;
    display: flex;
    align-items: center;
}

.tab-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8e8e93;
    text-decoration: none;
    font-size: 12px;
    flex: 1;
    z-index:999;
}

.tab-bar a.active {
    color: #fd0252;
}

.tab-bar svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

.content {
    padding-bottom: 60px;
}

.button {
    background-color: #fd0252;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

.button:active {
    opacity: 0.8;
}



#addToHomeScreen,#installPrompt{
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    z-index: 9999;
    top:0;
    left:0;
}
.prompt_container {
    position: absolute; /* 使用绝对定位 */
    top: 50%; /* 从顶部开始偏移50% */
    left: 50%; /* 从左侧开始偏移50% */
    transform: translate(-50%, -50%); /* 向左和向上偏移自身高度和宽度的一半 */
    width: 18.75rem;
    overflow: hidden;
    background-color: #fff;
    border-radius: 15px;    
}
.confirm_title{
    width:100%;
    height:2.5rem;
    line-height:2.5rem;
    background:#fd0252;
}

.prompt_container .confirm_title{
    font-size:1.3rem;
    /* letter-spacing:2px; */
    text-align:left;
    width:100%;
    margin:0;
    padding-left:1rem;
}
.prompt_container .confirm_body{
    background:#fff;
    width:100%;
    height:8.125rem;
    color:#333;
    width:80%;
    /* margin:.625rem auto; */
    line-height:1.5rem;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto;
    /* font-size:1rem; */
    /* padding:0.5rem; */
}
.confirm_footer{
    height:2.5rem;
    line-height:2.5rem;
    text-align:right;
    padding-right:1rem;
    padding-bottom:1rem;
}
.confirm_footer .button{
    width:5rem;
    display:inline-block;
    padding:0;
    text-align:center;
}
.confirm_footer .button:first-child{
    background:#fff !important;
    border:1px solid #dedede;
    height:2.375rem;
    color:#939393;
}
#my-video-0_html5_api {
    pointer-events: auto !important; /* 确保可以收到点击事件 */
}
#ads_mask{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9998;
    display: none;
}
#ads_container{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    max-width: 300x;
    height: 250px;
    background-color: #fff;
    z-index: 9999;
    color: #333;
    text-align: center;
    display:flex;
    align-items:center;
    justify-content:center;
}
.ads_close{
    position:absolute;
    width:30px;
    height:30px;
    top:70px;
    right:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    color:#fff;
    font-size:20px;
    font-weight:bold;
    /* background-color: #fd0252; */
    border-radius: 50%;
}

.toast {  
    visibility: hidden; /* 默认隐藏 */  
    min-width: 250px; /* 最小宽度 */  
    max-width: 500px; /* 最大宽度 */  
    margin: auto; /* 居中 */  
    background-color: #333; /* 背景颜色 */  
    color: #fff; /* 字体颜色 */  
    text-align: center; /* 文本居中 */  
    border-radius: 2px; /* 边框圆角 */  
    padding:8px 16px; /* 内边距 */  
    position: fixed; /* 固定位置 */  
    z-index: 10001; /* 在最上面 */  
    bottom: 30px; /* 向下偏移 30px */  
    font-size: 17px; /* 字体大小 */  
    transition: visibility 0s, opacity 0.5s linear; /* 过渡效果 */  
    opacity: 0; /* 初始透明度 */  
    left: 50%; /* 从左侧开始偏移50% */
    transform: translate(-50%, -50%); 
    border-radius: 30px; /* 边框圆角 */  
}  

.toast.show {  
    visibility: visible; /* 显示 */  
    opacity: 1; /* 不透明 */  
} 

 /* 加载动画样式 */
 #loading {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(0, 0, 0, .3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 4px solid #fd0252;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 隐藏内容的样式 */
#content {
    display: none;
}
.login_container .login_box{
    background-color: rgba(28,28,30,1);
    padding:10px 50px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.login_container .login_box .login_title{
    font-size:1.1rem;
    text-align:center;
    width:100%;
    margin:10px auto 30px auto;
    color:#fd0252;
    padding-top:1rem;
}
.login_container .login_box .login-button{
    width:11.75rem;
    height:2.5rem;
    line-height:2.5rem;
    border-radius:5px;
    margin:0 auto;
    color:#fff;
    text-align:center;
    display:flex;
    border:none;
    cursor:pointer;
    border:1px solid #3d3d3d;
    align-items:center;
    justify-content:flex-start;
    font-size:.9rem;
    margin-bottom:15px;
    padding:0 7px;
}
.login-button svg{
    margin-right:10px;
}
.login_box .close_box{
    position: absolute;
    right: 10px;
    top: 10px;
}
.login-button-hidden{
    display:none;
}
.login-button-show{
    display:block;
}

.login_container{
    position: absolute; /* 使用绝对定位 */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display:none;
}
.container_show{
    display: flex !important; /* 显示时使用flex布局 */
}
.container_hidden{
    display: none !important; /* 显示时使用flex布局 */
}
.bind_method{
    width: 80%;
    display: flex;
    margin-bottom:20px;
    align-items: center;
    justify-content: space-around
}
.ads-container{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: -1;
}
.tips_firstDiscount{ 
    font-size:.9em;
    margin:.625rem 0;
    background:linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    lin-height: 1.5;
}
.tips{
    font-size:.8em;
    margin-top:20px;
    color:#b3b3b3;
}
.tip_title{
    font-size:1rem;
    font-weight:bold;
}
.tips p{
    margin:0;
    margin-bottom:.5rem;
    line-height:1.5em;
}
.ads_close,#wallet_pay_close{
    background: url('./images/close.png') no-repeat center center;
}
.xgplayer{
    width: 100%;
    height:100%;
}
#show_pwa_install{
    position: fixed;
    bottom: 100px;
    right: 10px;
    width: 40px;
    height: 40px;
    color: #fff;
    border-radius: 50%;
    display:none;
}
.show{
    display:block !important;
}