/**
 * 二维码安装和快速安装按钮样式
 * 基于 Boipix 项目的样式设计
 */

/* 二维码安装区域 */
.qrcode {
    width: 100%;
    padding: 20px 0;
    margin: 40px 0;
}

.up_qrcode {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 60px 0;
    transform: scale(1.3);
    width: 100%;
}

.up_qrcode__hand {
    height: 142px;
    position: relative;
    width: 233px;
}

.up_qrcode__hand-bg {
    height: 100%;
    width: 100%;
}

.up_qrcode__hand-light {
    animation: moveUpDown 3s infinite;
    height: 44px;
    position: absolute;
    top: 15px;
    width: 63px;
    left: 78px;
}

@keyframes moveUpDown {
    0% {
        top: 15px;
    }
    50% {
        top: 53px;
    }
    100% {
        top: 15px;
    }
}

.up_qrcode__code {
    height: 135px;
    width: 135px;
}

.up_qrcode__prop {
    flex-direction: column;
    align-items: center;
    display: flex;
    width: 150px;
}

.up_qrcode__prop-code {
    width: 150px;
    height: 150px;
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
}

.up_qrcode__prop-bg {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.up_qrcode__prop-title {
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
    color: #333;
}

.up_qrcode__arrowhead {
    height: 51px;
    margin: 0 10px;
    width: 51px;
}

.up_qrcode__phone {
    align-items: center;
    border: 2px solid #1e1c24;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    height: 145px;
    padding: 10px 5px;
    width: 75px;
}

.up_qrcode__phone-icon {
    border-radius: 5px;
    height: 34px;
    margin-top: 10px;
    width: 34px;
}

.up_qrcode__phone-name {
    display: -webkit-box;
    font-size: 7px;
    font-weight: 500;
    height: 20px;
    margin-top: 10px;
    width: 100%;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-align: center;
}

.up_qrcode__phone-btn {
    align-items: center;
    background: #028760;
    border-radius: 3px;
    color: #ffe336;
    display: flex;
    font-size: 6px;
    justify-content: center;
    margin-top: 20px;
    padding: 5px 0;
    width: 100%;
}

/* 快速安装按钮容器 */
.installbtn-box {
    display: block !important;
    width: calc(100% - 48px);
    height: auto;
    line-height: 48px;
    font-size: 16px;
    border-radius: 10px;
    margin: 15px 24px;
    color: #ffffff;
}

.installbtn-box .install-btn__ing {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 8px;
    width: 100%;
    background-color: var(--c-grean, #01875f);
    border-color: var(--c-grean, #01875f);
    color: #ffffff;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.installbtn-box .install-btn__ing:hover {
    background-color: #016b4a;
}

.installbtn-box .install-btn__ing .install-btn__ing__rapid {
    align-items: center;
    color: #ffe336;
    display: flex;
    font-size: 15px;
    font-weight: 500;
    justify-content: center;
    line-height: 21px;
    gap: 6px;
}

.installbtn-box .install-btn__ing .install-btn__ing__rapid img {
    display: block;
    width: 12px;
    height: 18px;
}

.installbtn-box .install-btn__ing .install-btn__ing__countdown {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    margin-top: 4px;
}

/* 普通安装按钮 */
.installbtn {
    width: 90%;
    max-width: 300px;
    height: 40px;
    font-size: 14px;
    border-radius: 10px;
    margin: 15px auto;
    padding: 8px;
    background-color: var(--c-grean, #01875f);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.installbtn:hover {
    background-color: #016b4a;
}

.installbtn:active {
    transform: scale(0.98);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .up_qrcode {
        transform: scale(1);
        margin: 40px 0;
    }
    
    .up_qrcode__hand {
        height: 100px;
        width: 165px;
    }
    
    .up_qrcode__hand-light {
        height: 31px;
        width: 45px;
        left: 55px;
    }
    
    .up_qrcode__code {
        height: 100px;
        width: 100px;
    }
    
    .up_qrcode__prop {
        width: 110px;
    }
    
    .up_qrcode__prop-code {
        width: 110px;
        height: 110px;
    }
    
    .up_qrcode__arrowhead {
        height: 36px;
        width: 36px;
        margin: 0 8px;
    }
    
    .up_qrcode__phone {
        height: 110px;
        width: 60px;
        padding: 8px 4px;
    }
    
    .up_qrcode__phone-icon {
        height: 28px;
        width: 28px;
    }
    
    .installbtn-box {
        width: calc(100% - 30px);
        margin: 15px;
    }
}

/* 隐藏图片加载失败时的占位 */
.up_qrcode__hand-bg[style*="display: none"],
.up_qrcode__hand-light[style*="display: none"],
.up_qrcode__prop-bg[style*="display: none"],
.up_qrcode__arrowhead[style*="display: none"] {
    display: none !important;
}

/* 分享和收藏按钮样式 */
.share-row {
    margin-bottom: 10px;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.share-row .share-row__item {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 12px;
    max-width: 220px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.share-row .share-row__item:hover {
    opacity: 0.8;
}

.share-row .share-row__item:active {
    opacity: 0.6;
}

.share-row .share-row__item img {
    flex: 0 0 17px;
    height: 20px;
    width: 17px;
    margin-right: 10px;
}

.share-row .share-row__item div {
    color: #00a173;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-align: left;
}

/* 倒计时完成后的弹窗样式 */
.rb-install-now-layer {
    background: rgba(0, 0, 0, 0.5);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.rb-install-now-layer .layer__body {
    position: absolute;
    top: 30%;
    left: 5%;
    right: 5%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    align-items: center;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 24px 24px;
    max-width: 400px;
    margin: 0 auto;
}

.rb-install-now-layer .layer__body .install-now__header {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 37px;
}

.rb-install-now-layer .layer__body .install-now__header__title {
    align-items: center;
    display: flex;
    margin-bottom: 8px;
}

.rb-install-now-layer .layer__body .install-now__header__title img {
    width: 28px;
    margin-right: 7px;
}

.rb-install-now-layer .layer__body .install-now__header__title span {
    color: #666;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 33px;
}

.rb-install-now-layer .layer__body .install-now__header__msg {
    align-items: center;
    border: 1px solid #747475;
    border-radius: 3px;
    color: #666;
    display: flex;
    font-size: 18px;
    font-weight: 400;
    height: 25px;
    padding: 0 10px;
}

.rb-install-now-layer .layer__body .install-now__main {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 108px;
    justify-content: center;
    width: 100%;
}

.rb-install-now-layer .layer__body .install-now__loading {
    align-items: center;
    color: var(--c-grean, #01875f);
    display: flex;
    height: 100px;
    justify-content: center;
    position: relative;
    width: 100px;
}

.rb-install-now-layer .layer__body .install-now__loading svg {
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.rb-install-now-layer .layer__body .install-now__loading svg circle {
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    animation: loading-circular 1s ease-in-out infinite;
}

.rb-install-now-layer .layer__body .install-now__loading p {
    align-items: center;
    color: var(--c-grean, #01875f);
    display: flex;
    font-size: 16px;
    font-weight: 600;
}

.rb-install-now-layer .layer__body .install-now__actived {
    align-items: center;
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.rb-install-now-layer .layer__body .install-now__actived__tag {
    align-items: center;
    background: rgba(2, 135, 96, .1);
    border: 1px solid var(--c-grean, #01875f);
    border-radius: 14px;
    display: flex;
    height: 28px;
    justify-content: center;
    margin-bottom: 34px;
    padding: 0 11px;
}

.rb-install-now-layer .layer__body .install-now__actived__tag img {
    height: 20px;
    width: 20px;
    margin-right: 5px;
}

.rb-install-now-layer .layer__body .install-now__actived__tag span {
    color: var(--c-grean, #01875f);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
}

.rb-install-now-layer .layer__body .install-now__actived__btn {
    align-items: center;
    background: var(--c-grean, #01875f);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 500;
    height: 45px;
    justify-content: center;
    width: 100%;
    transition: background-color 0.3s ease;
}

.rb-install-now-layer .layer__body .install-now__actived__btn:hover {
    background: #016b4a;
}

@keyframes loading-circular {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -40;
    }
    100% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: -125;
    }
}

/* 转盘抽奖弹窗样式 */
.wh-lottery-layer {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.wh-lottery-layer .lottery__mask {
    animation-duration: .35s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
    background-color: rgba(0, 0, 0, .8);
    border-radius: 10px 10px 0 0;
    bottom: 0;
    height: 100%;
    max-width: 750px;
    opacity: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    visibility: hidden;
    width: 100%;
    z-index: 12;
}

.wh-lottery-layer .lottery__content {
    align-items: center;
    animation-duration: .5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
    display: flex;
    flex-direction: column;
    opacity: 0;
    padding: 20px 0;
    position: relative;
    visibility: hidden;
    width: 100%;
    z-index: 13;
}

.wh-lottery-layer .lottery__close-icon {
    cursor: pointer;
    height: 24px;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    z-index: 14;
}

.wh-lottery-layer .lottery__title {
    background: url(https://res.upapp.cc/turntable/title.webp) no-repeat 50%;
    background-size: 100% 100%;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    height: auto;
    margin-top: 30px;
    padding: 14px 10px 10px;
    text-align: center;
    width: 90%;
}

.wh-lottery-layer .lottery__wheel {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: -10% 0 -5%;
    padding-top: 100%;
    position: relative;
    width: 100%;
}

.wh-lottery-layer .lottery__wheel-light {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.wh-lottery-layer .lottery__wheel-disc {
    height: 65%;
    position: absolute;
    top: 23%;
    width: 65%;
    z-index: 2;
}

.wh-lottery-layer .lottery__wheel-gold1 {
    bottom: 10%;
    height: 24%;
    position: absolute;
    right: 10%;
    width: 24%;
    z-index: 1;
}

.wh-lottery-layer .lottery__wheel-gold2 {
    bottom: 10%;
    height: 24%;
    left: 10%;
    position: absolute;
    width: 24%;
    z-index: 1;
}

.wh-lottery-layer .lottery__wheel-gold3 {
    bottom: 10%;
    height: 12%;
    position: absolute;
    right: 24%;
    width: 12%;
    z-index: 4;
}

.wh-lottery-layer .lottery__wheel-needle {
    height: auto;
    position: absolute;
    top: 18%;
    width: 22%;
    z-index: 4;
}

.wh-lottery-layer .lottery__wheel-prize {
    height: 57%;
    position: absolute;
    top: 27%;
    width: 57%;
    z-index: 3;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wh-lottery-layer .lottery__wheel-circle {
    height: 61%;
    position: absolute;
    top: 25%;
    width: 61%;
    z-index: 3;
}

.wh-lottery-layer .lottery__wheel-go {
    cursor: pointer;
    height: 20%;
    position: absolute;
    top: 45%;
    width: 20%;
    z-index: 4;
    transition: transform 0.2s ease;
}

.wh-lottery-layer .lottery__wheel-go:hover {
    transform: scale(1.1);
}

.wh-lottery-layer .lottery__wheel-go:active {
    transform: scale(0.95);
}

.wh-lottery-layer .lottery__app-name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    width: 90%;
}

.wh-lottery-layer .lottery__app-desc {
    color: #fff;
    font-size: 13px;
    text-align: center;
    width: 90%;
    line-height: 1.6;
}

.lottery__container.lottery--visible .lottery__content,
.lottery__container.lottery--visible .lottery__mask {
    animation-name: lottery-fade-in;
}

.lottery__container.lottery--hidden .lottery__content {
    animation-duration: .15s;
}

.lottery__container.lottery--hidden .lottery__content,
.lottery__container.lottery--hidden .lottery__mask {
    animation-name: lottery-fade-out;
}

@keyframes lottery-fade-in {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes lottery-fade-out {
    0% {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .share-row {
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    .share-row .share-row__item {
        margin: 8px;
        max-width: 180px;
    }
    
    .rb-install-now-layer .layer__body {
        left: 10%;
        right: 10%;
        padding: 24px 20px 20px;
    }
    
    .wh-lottery-layer .lottery__title {
        font-size: 10px;
        padding: 12px 8px 8px;
    }
    
    .wh-lottery-layer .lottery__app-name {
        font-size: 14px;
    }
    
    .wh-lottery-layer .lottery__app-desc {
        font-size: 11px;
    }
}

