* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    position: relative;
}

.bg-icon {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.13;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.06));
    animation: floatAround 22s infinite ease-in-out alternate;
}

.bg-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.alipay-float {
    font-weight: 700;
    line-height: 1;
}

.bg-icon:nth-child(1) { color: #07C160; font-size: 14vw; left: 5%; top: 8%; animation-duration: 26s; }
.bg-icon:nth-child(2) { color: #1296DB; font-size: 12vw; right: 6%; bottom: 12%; animation-duration: 28s; animation-delay: 1.5s; }
.bg-icon:nth-child(3) { color: #07C160; font-size: 10vw; left: 22%; bottom: 18%; animation-duration: 24s; animation-delay: 3s; }
.bg-icon:nth-child(4) { color: #1296DB; font-size: 11vw; right: 20%; top: 15%; animation-duration: 30s; animation-delay: 4.5s; }
.bg-icon:nth-child(5) { color: #07C160; font-size: 16vw; left: 70%; top: 5%; animation-duration: 32s; animation-delay: 2s; opacity: 0.10; }
.bg-icon:nth-child(6) { color: #1296DB; font-size: 15vw; right: 72%; bottom: 6%; animation-duration: 27s; animation-delay: 5.5s; opacity: 0.10; }
.bg-icon:nth-child(7) { color: #07C160; font-size: 9vw; left: 45%; top: 45%; animation-duration: 29s; animation-delay: 1s; opacity: 0.08; }
.bg-icon:nth-child(8) { color: #1296DB; font-size: 8vw; right: 40%; bottom: 40%; animation-duration: 31s; animation-delay: 3.8s; opacity: 0.08; }

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    20% { transform: translate(6vw, -5vh) rotate(6deg) scale(1.05); }
    40% { transform: translate(-5vw, 7vh) rotate(-4deg) scale(0.95); }
    60% { transform: translate(9vw, 3vh) rotate(5deg) scale(1.02); }
    80% { transform: translate(-7vw, -6vh) rotate(-3deg) scale(0.98); }
    100% { transform: translate(4vw, 4vh) rotate(2deg) scale(1); }
}

.nav-card {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 30px 24px 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-title {
    text-align: center;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, #07C160, #1296DB);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
    padding: 6px 0;
    word-break: break-word;
    line-height: 1.25;
}

.swap-area {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 80px;
    padding: 24px 10px;
    margin: 6px 0 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
}

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.icon-circle {
    width: clamp(80px, 20vw, 110px);
    height: clamp(80px, 20vw, 110px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.icon-circle svg {
    width: 64%;
    height: 64%;
    display: block;
}

.wechat-bg { background: linear-gradient(145deg, #07c160, #2ad173); }
.alipay-bg { background: linear-gradient(145deg, #1296db, #3cb4ef); }

.alipay-mark {
    color: #fff;
    font-weight: 700;
    font-size: clamp(38px, 10vw, 54px);
    line-height: 1;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.swap-symbol svg {
    width: 1.15em;
    height: 0.86em;
    display: block;
}

.swap-animation {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 50px;
    padding: 0 4px;
}

.swap-symbol {
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    font-weight: 300;
    color: #f59e0b;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
    animation: pulseRotate 2.6s ease-in-out infinite;
    display: inline-block;
    background: rgba(255, 215, 0, 0.06);
    padding: 8px 14px;
    border-radius: 60px;
    border: 1px solid rgba(245, 158, 11, 0.10);
    line-height: 1;
}

@keyframes pulseRotate {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.15) rotate(8deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
}

.action-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 6px;
}

.action-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 24px;
    padding: 18px 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-icon-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrap svg {
    width: 26px;
    height: 26px;
    display: block;
}

.action-card:nth-child(1) .card-icon-wrap {
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    color: #b45309;
}
.action-card:nth-child(2) .card-icon-wrap {
    background: linear-gradient(145deg, #fce4ec, #f8bbd0);
    color: #9a2c4a;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.card-desc {
    font-weight: 700;
    font-size: clamp(0.95rem, 3.4vw, 1.1rem);
    color: #1e293b;
    letter-spacing: 0.3px;
}

.card-sub {
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

.action-card:nth-child(1) .card-sub {
    color: #d97706;
    background: rgba(217, 119, 6, 0.08);
}
.action-card:nth-child(2) .card-sub {
    color: #db2777;
    background: rgba(219, 39, 119, 0.08);
}

.qq-line {
    white-space: nowrap;
    letter-spacing: 0;
    font-size: 0.82rem;
}

.card-mini .card-icon-wrap {
    background: linear-gradient(145deg, #dcfce7, #bbf7d0);
    color: #15803d;
}

.card-mini .card-sub {
    color: #15803d;
    background: rgba(21, 128, 61, 0.08);
}

.card-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    cursor: pointer;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.action-card:nth-child(2) .card-btn {
    background: linear-gradient(145deg, #ec4899, #db2777);
    color: #fff;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.30);
    text-decoration: none;
}

.card-mini .card-btn {
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}

.action-card:nth-child(1) .card-btn {
    background-image: linear-gradient(145deg, #f59e0b, #ea580c);
    color: #ffffff;
    box-shadow: 0 6px 0 #c2410c;
    padding: 16px 32px;
    font-size: clamp(1.1rem, 4.2vw, 1.4rem);
    font-weight: 700;
    border-radius: 60px;
    letter-spacing: 1px;
    border: 3px solid #ffffff;
    min-width: 140px;
    gap: 10px;
}

.action-card:nth-child(1) .card-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #c2410c;
}

.video-overlay,
.qr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.video-overlay { background: rgba(0, 0, 0, 0.88); z-index: 9999; }
.qr-overlay { background: rgba(0, 0, 0, 0.8); z-index: 10000; padding: 20px; }

.video-overlay.active,
.qr-overlay.active { display: flex; }

.video-box {
    width: 100%;
    max-width: 400px;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    aspect-ratio: 9 / 16;
    position: relative;
}

.video-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #0a0a0a;
    object-fit: contain;
}

.close-video {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    z-index: 20;
}

.qr-box {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 36px;
    padding: 24px 20px 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-box img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    background: #f5f5f5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.qr-hint {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    background: #f1f5f9;
    padding: 8px 20px;
    border-radius: 40px;
    letter-spacing: 0.5px;
}

.close-qr {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fff;
    color: #1e293b;
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

@media (max-width: 480px) {
    .nav-card { padding: 20px 16px 28px; border-radius: 32px; }
    .custom-title { margin-bottom: 14px; }
    .swap-area { padding: 16px 6px; border-radius: 50px; }
    .icon-circle { width: 64px; height: 64px; }
    .swap-symbol { font-size: 1.8rem; padding: 4px 10px; }
    .action-card { padding: 14px 16px 16px; gap: 12px; border-radius: 20px; }
    .card-icon-wrap { width: 46px; height: 46px; border-radius: 14px; }
    .card-icon-wrap svg { width: 20px; height: 20px; }
    .action-card:nth-child(1) .card-btn {
        padding: 14px 24px;
        font-size: clamp(1rem, 4vw, 1.2rem);
        min-width: 110px;
        border-radius: 50px;
        border-width: 2px;
        box-shadow: 0 5px 0 #c2410c;
    }
    .qr-box { max-width: 280px; padding: 18px 14px 16px; border-radius: 28px; }
}

@media (max-width: 380px) {
    .icon-circle { width: 52px; height: 52px; }
    .swap-symbol { font-size: 1.4rem; padding: 4px 8px; }
    .card-icon-wrap { width: 40px; height: 40px; }
    .action-card:nth-child(1) .card-btn {
        padding: 12px 18px;
        font-size: 0.95rem;
        min-width: 90px;
        box-shadow: 0 4px 0 #c2410c;
    }
}
