/* 储值页面样式 */

[x-cloak] {
    display: none !important;
}

body {
    background: #e8d9a8;
    min-height: 100vh;
}

.recharge-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px 40px;
    position: relative;
}

/* 储值步骤容器 */
.recharge-step {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 步骤1 - 页头 */
.recharge-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header-content {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.recharge-logo {
    width: 60px;
    height: 60px;
}

.recharge-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.customer-service-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.customer-service-btn:hover {
    transform: scale(1.1);
}

/* 警告提示 */
.recharge-warning {
    display: flex;
    align-items: flex-start;
    background: #fef5e0;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 30px;
    color: #8b6914;
    font-size: 14px;
    line-height: 1.7;
    gap: 12px;
}

.recharge-warning .warning-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.recharge-warning p {
    margin: 0;
}

/* 表单容器 */
.recharge-form {
    background: #fef5e0;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: #7a7a7a;
    margin: 0 0 32px 0;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
    color: #999;
}

.form-input:focus {
    color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ffe44d 0%, #b8e986 100%);
    border: none;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 500;
    color: #5a5a5a;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.submit-button.inactive {
    background: linear-gradient(135deg, rgba(255, 228, 77, 0.4) 0%, rgba(184, 233, 134, 0.4) 100%);
    color: rgba(90, 90, 90, 0.5);
}

.submit-button:not(.inactive):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 233, 134, 0.4);
}

/* 全屏加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.loading-content {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 140px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
    white-space: pre-line;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-footer {
    text-align: center;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #7a7a7a;
    cursor: pointer;
    margin-bottom: 20px;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #ff8c42;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: #ff8c42;
    border-color: #ff8c42;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    display: block;
}

.checkbox-label a {
    color: #3b82f6;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.footer-tips {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    margin: 20px 0 0 0;
}

/* 步骤2 - 简洁页头 */
.recharge-header-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.back-button {
    position: absolute;
    left: 10px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateX(-3px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 充值内容 */
.recharge-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 25px;
    gap: 12px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.user-info > div {
    flex: 1;
}

.user-id {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin-bottom: 4px;
}

.user-name {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* 充值金额选择 */
.amount-section {
    margin-bottom: 30px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amount-card {
    position: relative;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-card:hover {
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.amount-card.selected {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8df 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.badge-recommend,
.badge-vip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 500;
}

.badge-vip {
    background: linear-gradient(135deg, #333 0%, #555 100%);
}

.amount-value {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.coin-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.amount-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.amount-price {
    font-size: 14px;
    color: #666;
}

/* 支付方式 */
.payment-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
}

.payment-options {
    display: flex;
    gap: 12px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #1677ff;
}

.payment-option.selected {
    border-color: #1677ff;
    background: #f0f8ff;
}

.payment-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* 应付金额 */
.total-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.total-label {
    font-size: 16px;
    color: #666;
    margin-right: 10px;
}

.total-amount {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b35;
}

/* 支付按钮 */
.pay-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    body {
        background: #f2cd68;
    }

    .recharge-container {
        padding: 0;
        max-width: 100%;
    }

    .recharge-step {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* 移动端顶部 logo 和文字单行显示 */
    .recharge-header {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 70px;
        background: linear-gradient(180deg, #f5d97f 0%, #f0c75e 100%);
        margin: 0;
        padding: 0 20px;
        box-shadow: none;
        position: relative;
        text-align: center;
        flex-shrink: 0;
    }

    .header-content {
        gap: 10px;
        display: flex;
    }

    .recharge-logo {
        width: 36px;
        height: 36px;
    }

    .recharge-title {
        font-size: 20px;
        margin: 0;
    }

    .customer-service-btn {
        display: none !important;
    }

    /* 移动端主体部分 - 白色圆角容器 */
    .recharge-warning {
        margin: 0;
        border-radius: 24px 24px 0 0;
        padding: 16px 20px;
        font-size: 12px;
        background: #fef5e0;
        gap: 10px;
        color: #8b6914;
    }

    .recharge-warning .warning-icon {
        width: 20px;
        height: 20px;
    }

    .recharge-form {
        background: #fef5e0;
        border-radius: 0;
        padding: 24px 20px 40px 20px;
        box-shadow: none;
        margin: 0;
        flex: 1;
    }

    .form-title {
        font-size: 22px;
        text-align: left;
    }

    .form-subtitle {
        font-size: 13px;
        text-align: left;
        color: #7a7a7a;
    }

    .form-input {
        padding: 16px 45px 16px 18px;
        font-size: 14px;
        background: white;
    }

    .submit-button {
        padding: 16px;
        font-size: 16px;
        border-radius: 25px;
    }
    
    .submit-button.inactive {
        background: linear-gradient(135deg, rgba(255, 228, 77, 0.4) 0%, rgba(184, 233, 134, 0.4) 100%);
        color: rgba(90, 90, 90, 0.5);
    }

    .checkbox-label {
        font-size: 12px;
        align-items: flex-start;
    }

    .footer-tips {
        font-size: 11px;
    }

    /* 移动端加载动画优化 */
    .loading-content {
        padding: 25px 35px;
        min-width: 120px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }

    .loading-text {
        font-size: 14px;
    }

    /* 步骤2的移动端样式 */
    .recharge-header-simple {
        height: 90px;
        background: linear-gradient(180deg, #f5d97f 0%, #f0c75e 100%);
        margin: 0;
        padding: 0 20px;
    }

    .recharge-content {
        background: #fef5e0;
        border-radius: 24px 24px 0 0;
        padding: 20px;
        flex: 1;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .amount-card {
        padding: 15px 10px;
    }

    .amount-number {
        font-size: 20px;
    }

    .amount-price {
        font-size: 13px;
    }

    .badge-recommend,
    .badge-vip {
        font-size: 10px;
        padding: 3px 10px;
    }

    .total-amount {
        font-size: 24px;
    }

    .payment-option {
        padding: 12px;
    }

    .payment-icon {
        width: 32px;
        height: 32px;
    }

    .payment-name {
        font-size: 14px;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coin-icon {
        width: 16px;
        height: 16px;
    }

    .amount-number {
        font-size: 18px;
    }

    .recharge-warning {
        font-size: 13px;
        padding: 20px 12px 12px;
    }

    .form-input {
        padding: 14px 36px 14px 14px;
        font-size: 15px;
    }
}

/* 支付二维码弹窗 */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.payment-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.payment-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.payment-modal-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.payment-modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0 0 25px 0;
}

.payment-qrcode-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.payment-qrcode {
    display: inline-block;
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
}

.payment-amount {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.payment-amount-value {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b35;
    margin-left: 5px;
}

.payment-tips {
    background: #f9fafb;
    border-radius: 10px;
    padding: 15px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.payment-checking {
    text-align: center;
    padding: 15px;
    color: #3b82f6;
    font-size: 14px;
}

.payment-checking::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #3b82f6;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* 支付成功弹窗 - 美观大气 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.4s ease-in-out;
}

.success-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successIconPulse 0.8s ease-out;
}

@keyframes successIconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon-inner {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-checkmark {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-checkmark svg {
    width: 40px;
    height: 40px;
}

.success-checkmark path {
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: checkmarkDraw 0.5s ease-out 0.3s forwards;
}

@keyframes checkmarkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.success-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.success-details {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.success-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: white;
    font-size: 15px;
}

.success-detail-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.success-detail-label {
    opacity: 0.9;
}

.success-detail-value {
    font-weight: bold;
}

.success-button {
    width: 100%;
    padding: 16px;
    background: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.success-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.success-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 30px;
}

/* 移动端支付弹窗优化 */
@media (max-width: 768px) {
    .payment-modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .payment-qrcode {
        padding: 15px;
    }

    .success-modal-content {
        padding: 40px 30px;
        border-radius: 25px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon-inner {
        width: 60px;
        height: 60px;
    }

    .success-title {
        font-size: 26px;
    }

    .success-message {
        font-size: 14px;
    }

    .success-details {
        padding: 15px;
    }

    .success-detail-item {
        font-size: 14px;
    }
}

