/* 主容器样式 */
.main {
    background: #ffffff;
    border-radius: 0.24rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 0.6rem 0.4rem;
    margin: 0.2rem auto;
    max-width: 7rem;
    min-height: calc(100vh - 0.4rem);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 金额显示区域 */
.amount {
    text-align: center;
    margin: 0.4rem 0 0.2rem 0;
    padding: 0.4rem 0;
    position: relative;
}

.amount::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.6rem;
    height: 0.04rem;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.amount {
    font-size: 0.28rem;
    color: #333;
    font-weight: 500;
}

.amount span {
    font-size: 0.64rem;
    font-weight: 700;
    color: #667eea;
    margin-left: 0.08rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 支付描述 */
.pay-desc {
    text-align: center;
    font-size: 0.26rem;
    color: #999;
    margin: 0.2rem 0 0.5rem 0;
    font-weight: 400;
}

/* 支付选择标题 */
.pay-select {
    font-size: 0.32rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0 0.3rem 0;
    padding: 0 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wait2 {
    font-size: 0.24rem;
    color: #52c41a;
    font-weight: 600;
}

/* 支付方式列表 */
.pay-type {
    width: 100%;
    margin: 0.4rem 0;
}

.pay-type ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pay-type li {
    list-style: none;
    height: 1.2rem;
    background: #f8f9fa;
    border-radius: 0.16rem;
    margin-bottom: 0.24rem;
    padding: 0 0.3rem;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.02rem solid transparent;
    overflow: hidden;
}

.pay-type li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0.06rem;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.pay-type li:hover {
    background: #f0f2f5;
    transform: translateX(0.04rem);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.pay-type li:hover::before {
    transform: scaleY(1);
}

.pay-type li img {
    width: 0.8rem;
    height: 0.8rem;
    object-fit: contain;
    margin-right: 0.24rem;
    transition: transform 0.3s ease;
}

.pay-type li:hover img {
    transform: scale(1.1);
}

.pay-type li span {
    font-size: 0.32rem;
    color: #333;
    font-weight: 500;
    flex: 1;
    transition: color 0.3s ease;
}

/* 选中状态 */
.pay-type .check {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 0.02rem solid #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    transform: translateX(0.04rem);
}

.pay-type .check::before {
    transform: scaleY(1);
}

.pay-type .check span {
    color: #667eea;
    font-weight: 600;
}

/* 选择圆圈 */
.pay-type .circle {
    width: 0.36rem;
    height: 0.36rem;
    border: 0.03rem solid #d9d9d9;
    border-radius: 50%;
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.pay-type .check .circle {
    border-color: #667eea;
    background: #667eea;
    box-shadow: 0 0 0 0.04rem rgba(102, 126, 234, 0.2);
}

.pay-type .check .circle::after {
    content: '';
    width: 0.2rem;
    height: 0.2rem;
    background: #fff;
    border-radius: 50%;
    display: block;
}

.pay-type .check .circle {
    background-image: url(../images/check.png);
    background-size: 70% 70%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #667eea;
}

/* 支付按钮 */
.pay-button {
    width: 100%;
    height: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.2rem;
    font-size: 0.36rem;
    font-weight: 600;
    color: #fff;
    line-height: 1rem;
    text-align: center;
    margin: 0.6rem auto 0.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.pay-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pay-button:active::before {
    width: 300px;
    height: 300px;
}

.pay-button:hover {
    transform: translateY(-0.02rem);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.pay-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.pay-button span {
    position: relative;
    z-index: 1;
    padding-left: 0.2rem;
}

.pay-button label {
    font-weight: 600;
}

/* 禁用状态 */
.pay-button-display {
    background: linear-gradient(135deg, #c2c2c2 0%, #a0a0a0 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.pay-button-display:hover {
    transform: none;
    box-shadow: none;
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
    font-size: 0.22rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.4rem;
    padding: 0.2rem 0;
    font-weight: 400;
}

@media only screen and (min-width: 990px) {
    .footer-copyright {
        font-size: 0.24rem;
    }
}

/* 加载遮罩层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 0.6rem;
    height: 0.6rem;
    border: 0.06rem solid rgba(255, 255, 255, 0.3);
    border-top: 0.06rem solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 其他弹窗样式 */
.shawdow {
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
}

.shawdow .msg {
    width: 5.8rem;
    height: auto;
    min-height: 1.6rem;
    background-color: #fff;
    border-radius: 0.2rem;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wait {
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
}

.wait .content {
    width: 6.4rem;
    height: 2.22rem;
    background-color: #fff;
    border-radius: 0.2rem;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0.4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wait .time {
    font-size: 0.72rem;
    font-weight: 700;
    color: #667eea;
    line-height: 0.72rem;
    padding-top: 0.4rem;
}

.wait .msg {
    font-size: 0.4rem;
    color: #666;
    line-height: 0.4rem;
    margin-top: 0.3rem;
}

.success {
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
}

.success .content {
    width: 6.4rem;
    height: 4.22rem;
    background-color: #fff;
    border-radius: 0.2rem;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0.4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success .time {
    font-size: 0.72rem;
    font-weight: 700;
    color: #52c41a;
    line-height: 0.72rem;
    padding-top: 0.4rem;
}

.success .msg {
    font-size: 0.4rem;
    color: #666;
    line-height: 0.4rem;
    margin-top: 0.3rem;
}

/* 响应式优化 */
@media only screen and (min-height: 812px) {
    .main {
        padding: 0.8rem 0.4rem;
    }
}

@media only screen and (max-width: 375px) {
    .main {
        padding: 0.5rem 0.3rem;
    }
    
    .amount span {
        font-size: 0.56rem;
    }
    
    .pay-type li {
        height: 1.1rem;
    }
}

/* 动画增强 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pay-type li {
    animation: slideIn 0.4s ease-out backwards;
}

.pay-type li:nth-child(1) { animation-delay: 0.1s; }
.pay-type li:nth-child(2) { animation-delay: 0.2s; }
.pay-type li:nth-child(3) { animation-delay: 0.3s; }
.pay-type li:nth-child(4) { animation-delay: 0.4s; }
.pay-type li:nth-child(5) { animation-delay: 0.5s; }
