/* Alipay Promo Lite Styles - High-End Version (Refined) */

/* Variables */
:root {
    --apl-primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF2E2E 100%);
    --apl-blue-gradient: linear-gradient(135deg, #1677FF 0%, #0050B3 100%);
    --apl-surface: rgba(255, 255, 255, 0.95);
    --apl-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.05);
    --apl-radius: 24px;
    --apl-text-main: #1F1F1F;
    --apl-text-sub: #666666;
}

/* Container */
.apl-container {
    width: 100%;
    max-width: 620px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0 10px;
}

/* Card Base */
.apl-card {
    background: var(--apl-surface);
    border-radius: var(--apl-radius);
    padding: 30px 24px;
    box-shadow: var(--apl-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.apl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
}

/* Decorative Background Blobs */
.apl-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.apl-card-b::before {
    background: radial-gradient(circle, rgba(22, 119, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Card Header */
.apl-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.apl-icon {
    font-size: 24px;
    animation: bounce 2s infinite;
}

.apl-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--apl-text-main);
    margin: 0;
    letter-spacing: -0.5px;
}

.apl-desc {
    font-size: 13px;
    color: var(--apl-text-sub);
    margin: 0 0 24px 0;
    font-weight: 500;
}

/* QR Code Section */
.apl-qr-wrapper {
    position: relative;
    z-index: 1;
}

.apl-qr-border {
    width: 320px;

    margin: 0 auto 12px;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.apl-qr-border img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.apl-tip {
    font-size: 12px;
    color: #999;
    background: #f8f8f8;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 0;
}

/* Divider */
.apl-divider {
    position: relative;
    margin: 24px 0;
    height: 1px;
    background: #eee;
}

.apl-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 10px;
    color: #ccc;
    font-size: 12px;
}

/* Code Section */
.apl-code-section {
    position: relative;
    z-index: 1;
}

.apl-code-guide {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    font-weight: 500;
}

.apl-code-box {
    background: #e6f7ff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 24px;
    border: 1px dashed #91caff;
}

.apl-code-val {
    font-family: monospace;
    font-size: 18px;
    font-weight: 500;
    color: #003a8c;
    letter-spacing: 1px;
    word-break: break-all;
    white-space: pre-wrap;
    display: block;
}

/* Buttons */
.apl-btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 14px;
    background: var(--apl-primary-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px -6px rgba(255, 46, 46, 0.4);
}

.apl-btn-blue {
    background: var(--apl-blue-gradient);
    box-shadow: 0 8px 20px -6px rgba(22, 119, 255, 0.4);
}

.apl-btn-copy:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.apl-btn-copy:active {
    transform: scale(0.98);
}

.apl-btn-icon {
    font-size: 18px;
}

/* Animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Toast */
.apl-toast {
    visibility: hidden;
    min-width: 280px;
    background-color: rgba(30, 30, 30, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 16px 24px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.apl-toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Usage Steps */
.apl-usage-steps {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    padding-left: 10px;
    text-align: left;
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}

.apl-usage-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 6px !important;
    font-size: 14px;
}

.apl-usage-steps p {
    margin: 0;
    position: relative;
}