/* 支付页面样式 */
.zhifu-container {
    background: #F9F9F9;
    min-height: 100vh;
    padding: 140px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.zhifu-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.page-header .subtitle {
    font-size: 16px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* 订单信息卡片 */
.order-info-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #EEEEEE;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EEEEEE;
}

.order-number .label {
    font-size: 14px;
    color: #666666;
    margin-right: 8px;
}

.order-number .value {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #FFF3E0;
    color: #F57C00;
    border: 1px solid #FFE0B2;
}

.order-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px 0;
}

.product-desc {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.price-info {
    min-width: 200px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row.total {
    padding-top: 12px;
    border-top: 1px solid #EEEEEE;
    font-size: 16px;
    font-weight: 600;
}

.price {
    font-weight: 500;
    color: #333333;
}

.total-price {
    color: #2196F3;
    font-size: 18px;
}

/* 支付方式卡片 */
.payment-methods-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #EEEEEE;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.payment-methods-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 24px 0;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #EEEEEE;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
}
.payment-option.crypto-option{
    flex-direction: column;
    align-items: flex-start;

}
.crypto-option-top{
    display: flex;
    align-items: center;
    width: 100%;
}
.crypto-type-container{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.crypto-type-container>p{
    padding: 0 12px;
    max-width: max-content;
    height: 34px;
    line-height: 34px;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #CCCCCC;
    font-size: 14px;
    color: #333333;
}
.crypto-type-container>p.active{
    border: 1px solid #2196F3;
    color: #2196F3;
}

.payment-option:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.payment-option.selected {
    border-color: #2196F3;
    background: #F3F9FF;
}

.payment-radio {
    margin-right: 16px;
}

.payment-radio input[type="radio"] {
    display: none;
}

.payment-radio label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #CCCCCC;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.payment-radio input[type="radio"]:checked + label {
    border-color: #2196F3;
    background: #2196F3;
}

.payment-radio input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
}

.payment-info {
    display: flex;
    align-items: center;
    flex: 1;
    background: transparent; /* 设置透明背景 */
    border: none; /* 取消边框 */
}

.payment-logo {
    width: 60px;
    height: 40px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9F9F9;
    border-radius: 8px;
    border: 1px solid #EEEEEE;
}

.payment-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 4px 0;
}

.payment-details p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

/* 支付按钮区域 */
.payment-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-secondary {
    padding: 14px 24px;
    border: 2px solid #EEEEEE;
    background: #FFFFFF;
    color: #666666;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #CCCCCC;
    color: #333333;
}

.btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.amount {
    font-weight: 700;
    margin-left: 8px;
}




/* 安全提示 */
.security-notice {
    text-align: center;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 8px;
    border: 1px solid #E9ECEF;
}

.security-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.security-icons i {
    width: 24px;
    height: 24px;
    background: #4CAF50;
    border-radius: 4px;
    display: block;
}

.security-notice p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* 支付处理模态框 */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.payment-processing h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 20px 0 12px 0;
}

.payment-processing p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #F3F3F3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}


.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  display: none;
}
.modal-mask.show{
    display: flex;
}
.pay-success-pop .modal-content,.pay-fail-pop .modal-content{
    height: 300px;
    box-sizing: border-box;
}
.pay-success-pop.show,.pay-fail-pop.show{
    display: flex;
}
.pay-success-text{
    font-weight: 500;
    font-size: 20px;
    color: #333333;
    line-height: 28px;
    margin: 8px 0 16px;
}
.pay-success-pop a{
    display: block;
    padding: 0 20px;
    max-width: max-content;
    height: 34px;
    line-height: 34px;
    font-size: 14px;
    color: #333333;
    border-radius: 50px 50px 50px 50px;
    border: 1px solid #E3E3E3;
}
.modal-content {
  width: 400px;
  height: 300px;
  background: #ffffff;
  border-radius: 12px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 24px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  &:hover {
    color: #333;
  }
}

.countdown {
  color: #ff4d4f;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.qrcode-box {
  width: 152px;
  height: 152px;
  /* border: 1px solid #eee; */
  padding: 10px;
  margin-bottom: 12px;
  background: url(../img/pay_code_inco.png) no-repeat center;
  background-size: cover;
  
}
.qrcode-box .qrcode {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.tip-text {
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tip-text span{
    display: inline-block;
    width: 77px;
    height: 1px;
    background:#E6E6E6;
}
.pay-text {
    font-size: 20px;
    color: #333333;
    line-height: 28px;
    font-weight: 500;
}

.tip-wxpay{
    display: none;
}

.crypto-container {
    max-width: 650px;
    width: 100%;
    background: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20%;
    border-radius: 7px;
    padding: 24px;
    padding-bottom: 30px;
    box-sizing: border-box
}

.crypto-container>i {
    position: absolute;
    top: 12px;
    right: 12px;
    display: block;
    background: url(../img/close_icon.png) no-repeat center center;
    width: 20px;
    height: 20px;
    cursor: pointer
}

.crypto-container>h2 {
    font-size: 16px;
    display: flex;
    align-items: center;
    column-gap: 4px
}
.crypto-container>h2>img{
    width: 24px;
    height: 24px;
}
.crypto-container>.code {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px
}

.crypto-container>.code>p {
    width: 148px;
    height: 148px;
    border-radius: 4px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px
}

.crypto-container>.code>p>img {
    width: 140px;
    height: 140px
}

.crypto-container>.code>div {
    max-width: 440px;
    width: 100%;
}

.crypto-container>.code>div>div {
    padding: 10px
}

.crypto-container>.code>div>div>p {
    display: flex;
    justify-content: space-between
}

.crypto-container>.code>div>div>p>i {
    display: inline-block;
    width: 50px;
    height: 100%;
    background: #F3F3F3;
    border-radius: 0px 0px 0px 0px;
    text-align: center;
    position: relative;
    font-style: normal;
    cursor: pointer
}

.crypto-container>.code>div>div>p>i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../img/copy_icon.png) no-repeat center center;
    background-size: cover;
    width: 24px;
    height: 24px
}

.crypto-container>.code>div>div>p:nth-of-type(1) {
    font-size: 14px;
    color: #999;
    margin-bottom: 6px
}

.crypto-container>.code>div>div>p:nth-of-type(2) {
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    color: #333333;
    padding-left: 11px;
    box-sizing: border-box;
    border-radius: 0px 0px 0px 0px;
    border: 1px solid #D9D9D9
}

.crypto-container>.code>div>div:nth-of-type(1) {
    padding-bottom: 10px
}

.crypto-container>.tips {
    font-size: 16px;
    color: #999999;
    margin-top: 16px
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhifu-container {
        padding: 80px 16px 40px;
    }
    
    .zhifu-content {
        max-width: 100%;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .order-info-card,
    .payment-methods-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .price-info {
        min-width: auto;
    }
    
    .payment-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-secondary,
    .btn-primary {
        justify-content: center;
        width: 100%;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .payment-option {
        padding: 16px;
    }
    
    .payment-logo {
        width: 50px;
        height: 32px;
    }
}