@media screen and (max-width: 1024px) {
    body {
        background-color: #fff;
        font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
        margin: 0 auto;
        padding: 0;
        max-width: 480px;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .container {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding-bottom: 60px;
    }
}
.profile-header {
    display: flex;
    align-items: center;
    padding: 20px 10px;
}
.profile-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 10px; 
    object-fit: cover;
    line-height: 60px;
    font-size: 12px;
    
}
.profile-info {
    flex: 1;
}
.profile-info .username {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}
.profile-info .user-id {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
}
.profile-info .user-id span {
    margin-left: 5px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
}
.login-button {
    font-size: 16px;
    color: #333;
    cursor: pointer;
}
.watch-history-title {
    padding: 20px 10px 10px 10px;
    font-size: 20px;
    font-weight: bold;
}
.watch-history {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 10px;
}
.history-item {
    aspect-ratio: 2/3;
    position: relative;
}
.history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.history-item .status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 4px;
    border-radius: 0 0 10px 10px;
}
.menu-list {
    margin: 20px 10px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom:60px;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.menu-item svg {
    width: 24px;
    height: 24px;
    fill: #333;
    margin-right: 15px;
}
.menu-item .menu-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}
.menu-item .version {
    color: #8e8e93;
    font-size: 14px;
    margin-right: 10px;
}
.menu-item .menu-arrow {
    width: 16px;
    height: 16px;
    fill: #8e8e93;
}
.my-wallet{
    width:95%;
    margin:0 auto;
    height:140px;
    background-color:#d7dbf0;
    border-radius:10px;
    display:block;
    position:relative;
    /* padding:16px; */
    padding:10px 0;
}
.expiredTime{
    padding-left:10px;
}
.wallet-title{
    padding:10px 16px;
    font-size:1.3rem;
}
#wallet-amount{
    padding-left:10px;
}
.wallet-button{
    line-height: 30px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    cursor: pointer;
    border-radius: 30px;
    width: 80px;
    height: 30px;
    background: rgb(253,2,82);
    display: block;
    text-align: center;
    color:#fff;
    background-color:#3C66F5;
}

#wallet_pay_mask{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9998;
    display: none;
}
#wallet_pay_container{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -10%);
    /* width: 300px;
    max-width: 300px; */
    background-color: #fff;
    z-index: 9999;
    color: #333;
    text-align: center;
    display:flex;
    align-items:center;
    justify-content:center;
}
.wallet_pay_close{
    position:absolute;
    width:30px;
    height:30px;
    top:40px;
    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%;
}
#add-history{
    background-color: #1C1C1E;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wallet-icon{
    position: absolute;
    right:16px;
    top:40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:8px;
    gap:10px;
}
.goMyWallet{
    position: absolute;
    right: 10px;
    top: 10px;
    height:20px;
    display:flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size:12px;
    color:#adabab;
    
}
#coin-expensivest-option:after{
    display:none !important;
}
.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
}
.purchase-popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 24px;
    height: 24px;
}
.purchase-popup {
    position: fixed;
    top: 0;
    left: 0;
    /* transform: translate(-50%, -50%); */
    background-color: #1c1c1e;
    padding:60px 35px;
    width:100%;
    z-index: 1000;
    display: none;
    height:100vh;
    overflow-y:scroll;
}

.purchase-popup.open {
    display: block;
}
.price-options {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.price-option {
    /* flex: 1; */
    padding: 15px 0;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid transparent;
    width:45%;
}

.price-option.best-value {
    border: 1px solid;
    border-image: linear-gradient(45deg, #FFD700, #FFA500) 1;
}

.price-option .coin-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 8px;
}

.price-option .bonus {
    font-size: 16px;
    color: #FFA500;
}

.price-option .price {
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-option .tag {
   position: absolute;
   top: -8px;
   right: -8px;
   left: auto;
   transform: none;
   background: linear-gradient(45deg, #FFD700, #FFA500);
   padding: 2px 8px;
   border-radius: 10px;
   font-size: 10px;
   font-weight: bold;
   white-space: nowrap;
}

.membership-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.membership-option {
    background-color: #1c1c1e;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid;
    border-image: linear-gradient(45deg, #FFD700, #FFA500) 1;
    position: relative;
}
.selected{
    border-image: linear-gradient(45deg, #e534d6, #fd0252) 1 !important;
}
.selected:after{
    content: "Active";
    position: absolute;
    top: 0;
    right: 0;
    width:40px;
    height:20px;
    background: linear-gradient(45deg, #e534d6, #fd0252);
    color: #fff;
    font-size: .8rem;
    padding:0 4px;
    text-align: center;
    line-height: 20px;
}
.selected  .tag{
    background: linear-gradient(45deg, #e534d6, #fd0252) !important;
}
#coin-cheapest-option:after,#coin-cheap-option:after{
    display:none !important;
}
.membership-option .title {
    text-align: left;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}
.selected .title,.selected .price .result_price,.selected .features,.selected .terms,.selected .coin-cheapest-number,.selected .coin-cheap-number,.selected .tips_firstDiscount{
    background: linear-gradient(45deg, #e534d6, #fd0252) !important;
    text-fill-color: transparent !important;;
    -webkit-background-clip: text !important;;
}
.prve_price{
    text-decoration: line-through;
}
.membership-option .price .result_price{
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #fd0252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.membership-option .price span {
    font-size: 16px;
    opacity: 0.7;
}

.membership-option .features {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-size: 1em;
}

.membership-option .terms {
    font-size: 12px;
    opacity: 0.6;
}

.coin-price {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: #FFD700;
}

.coin-img {
    width: 20px;
    height: 20px;
}
.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;
}
#close-purchase-popup{
    color: #fff;
}
@media only screen and (min-width:1025px) {
    body {
        background-color: #fff;
        font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
        margin: 0 auto !important;
        padding: 0;
        max-width: 1200px;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding-bottom: 60px;
    }
    .content{
        max-width: 800px;
        margin:0 auto;
    }
}