*{
    margin: 0;
    padding: 0;
}
@media screen and (min-width: 700px){
   .container{
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
   }
   .box{
    position: relative;
    width: 408px;
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: #fff;
   }
   .content{
    background-color: #fff;
   }
   .header{
    width: 408px;
    position: relative;
    background-color: #fff;
   }
   .header-img{
    width: 408px;
    display: block;
   }
   .header-box{
    position: relative;
    
   }
   .header-button{
    width: 100px;
    height: 30px;
    background-color: transparent;
    border: none;
    position: absolute;
    top: 13px;
    right: 10px;
    

   }
   .body{
    position: relative;
   }
   .body-button{
    width: 135px;
    height: 45px;
    background-color: transparent;
    position: absolute;
    top: 345px;
    right: 16px;
    border: none;
   }
   .body-img{
    width: 408px;
    display: block;
   }
   .footer{
    width: 408px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 8px 0;
    position: sticky;
    bottom: 0;
    background-color: #fff;
   }
   .footer-img{
    width: 61px;
   }
   .title{
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 2px;
   }
   .span{
    color: rgb(230, 50,46);
    font-size: 12px;
    border: 1px solid rgb(230, 50,46) ;
    padding: 3px;
    border-radius: 2px;
   }
   .footer-button{
    width: 120px;
    height: 51px;
    color: #fff;
    border-radius: 41px;
    border: none;
    background-color:rgb(230, 50,46) ;
    font-weight: bold;
    font-size: 16px;
   }
   .code{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -200px;
    margin-left: 20px;
    padding: 10px;
    background-color: #fff;
    height: 224px;
   }
   .code-img{
    width: 204px;
   }
   .code-span{
    font-size: 12px;
    color: #a599b2;
    padding-top: 4px;
   }
}

@media screen and (max-width:700px){
    .container{
        display: flex;
        justify-content: center;
        width: 100vw;
        margin: 0 auto;
        background-color: #fff;
        min-height: 100vh;
    }
    .box{
        width: 100vw;
        box-sizing: border-box;
        background-color: #fff;
    }
    .content{
    background-color: #fff;
    }
    .header{
    width: 100vw;
    position: relative;
    background-color: #fff;
    }
    .header-img{
    width: 100vw;
    display: block;
    }
    .header-box{
    position: relative;
    }
    .header-button{
        width: 28vw;
        height: 9vw;
        background-color: transparent;
        border: none;
        position: absolute;
        top: 3.2vw;
        right: 4.5vw;
    }
    .body{
        position: relative;
       }
    .body-button{
    width: 33vw;
    height: 10vw;
    background-color: transparent;
    position: absolute;
    top: 85vw;
    right: 4vw;
    border: none;
    }
    .body-img{
    width: 100vw;
    display: block;
    }
    .footer{
    width: 100vw;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 2vw 0;
    position: sticky;
    bottom: 0;
    background-color: #fff;
    }
    .footer-img{
    width: 15vw;
    }
    .title{
    font-size: 5vw;
    font-weight: bold;
    padding-bottom: 0.1vw;
    }
    .span{
    color: rgb(230, 50,46);
    font-size: 2.5vw;
    border: 1px solid rgb(230, 50,46) ;
    padding: 3px;
    border-radius: 0.5vw;
    }
    .footer-button{
    width: 28vw;
    height: 11vw;
    color: #fff;
    border-radius: 15vw;
    border: none;
    background-color:rgb(230, 50,46) ;
    font-weight: bold;
    font-size: 4vw;
    }
    .code{
    display: none;
    }
}

.share-page {
    background: #0f172a;
}

.share-page .container {
    background:
        radial-gradient(circle at 50% 18%, rgba(38, 93, 141, 0.32), transparent 42%),
        linear-gradient(180deg, #111c33 0%, #0b1325 100%);
}

.share-page .box,
.share-page .content,
.share-page .header {
    background: transparent;
}

.share-page .header-button {
    z-index: 3;
}

.share-page .code {
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.share-page #qrcode {
    padding: 10px;
    border-radius: 10px;
    background: rgba(245, 248, 252, 0.94);
}

.share-page #qrcode canvas,
.share-page #qrcode img {
    display: block;
}

.share-page .code-span {
    color: #b8c8dc;
    padding-top: 8px;
}

.share-page #register-modal {
    background: rgba(6, 12, 24, 0.74);
    backdrop-filter: blur(2px);
    z-index: 1000;
}

.share-page .register-container {
    width: min(86vw, 420px);
    padding: 30px 28px 28px;
    border-radius: 14px;
    border: 1px solid rgba(110, 156, 236, 0.55);
    background: linear-gradient(180deg, rgba(12, 27, 58, 0.96) 0%, rgba(8, 18, 40, 0.96) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.58), inset 0 0 22px rgba(86, 142, 235, 0.18);
    box-sizing: border-box;
    color: #e9d9b6;
}

.share-page .register-container h2 {
    margin: 0 0 22px;
    font-size: 24px;
    color: #f3d49a;
}

.share-page .close-btn {
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e7d7b2;
    font-size: 28px;
    line-height: 34px;
    text-align: center;
}

.share-page .close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.share-page .form-group {
    margin-bottom: 14px;
    padding: 0 12px;
    border: 1px solid rgba(110, 156, 236, 0.32);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.share-page .form-group input {
    min-width: 0;
    height: 44px;
    color: #f3ead5;
    font-size: 16px;
}

.share-page .form-group input::placeholder {
    color: rgba(231, 215, 178, 0.62);
}

.share-page .form-group button {
    flex-shrink: 0;
    height: 34px;
    margin-left: 10px;
    padding: 0 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f6dcab 0%, #cb9a54 100%);
    color: #2b1600;
    font-size: 13px;
    font-weight: 700;
}

.share-page .form-group--code {
    position: relative;
    overflow: hidden;
    padding-right: 8px;
}

.share-page .form-group--code input {
    width: 100%;
    padding-right: 128px;
    box-sizing: border-box;
}

.share-page .form-group--code button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 112px;
    max-width: calc(100% - 16px);
    margin-left: 0;
    padding: 0;
    box-sizing: border-box;
    transform: translateY(-50%);
    white-space: nowrap;
}

.share-page .form-group button:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.share-page .submit-btn {
    height: 44px;
    padding: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #f6dcab 0%, #cb9a54 100%);
    color: #2b1600;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(198, 139, 50, 0.35);
}

.share-page .submit-btn:hover {
    filter: brightness(1.08);
}




#register-modal {
    display: none; /* 默认隐藏模态框 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.register-container {
    width: 80%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    position: relative;
}

.register-container h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

/* 表单样式 */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px 10px;
    background: #f9f9f9;
}

.form-group input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
}

.form-group button {
    margin-left: -50px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.form-group button:hover {
    background: #0056b3;
}

/* 注册按钮 */
.submit-btn {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #218838;
}




/* 魔力宝贝6.0下载模态框样式 */
.magic6-modal {
    display: none; /* 隐藏模态框 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 12, 24, 0.74);
    backdrop-filter: blur(2px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.magic6-modal__content {
    width: min(86vw, 420px);
    padding: 30px 28px 28px;
    border-radius: 14px;
    border: 1px solid rgba(110, 156, 236, 0.55);
    background: linear-gradient(180deg, rgba(12, 27, 58, 0.96) 0%, rgba(8, 18, 40, 0.96) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.58), inset 0 0 22px rgba(86, 142, 235, 0.18);
    color: #e9d9b6;
    text-align: center;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out; /* 添加简单的淡入动画 */
}

.magic6-modal__content-title {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 24px;
    font-weight: bold;
    color: #f3d49a;
}

/* 按钮样式 */
.magic6-modal__button {
    display: inline-block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0;
    margin: 9px 0;
    background: linear-gradient(180deg, #f6dcab 0%, #cb9a54 100%);
    color: #2b1600;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(198, 139, 50, 0.35);
}

.magic6-modal__button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.magic6-modal__button--close {
    color: #fff;
    background: linear-gradient(180deg, #ff8aa5 0%, #e94d73 100%);
    box-shadow: 0 4px 14px rgba(233, 77, 115, 0.35);
}

.magic6-modal__button--close:hover {
    background: linear-gradient(180deg, #ff9ab1 0%, #f05a80 100%);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
