﻿ * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 16px;
            position: relative;
        }
        .payment-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 480px;
            width: 100%;
            padding: 28px 20px 24px;
            backdrop-filter: blur(10px);
            animation: slideUp 0.5s ease;
            position: relative;
            z-index: 1;
        }
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        h1 {
            text-align: center;
            color: #333;
            margin-bottom: 24px;
            font-size: 26px;
            font-weight: 600;
            letter-spacing: 1px;
        }
        h1::after {
            content: '';
            display: block;
            width: 200px;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            margin: 10px auto 0;
            border-radius: 3px;
        }
        
        
        .amount-section {
            background: linear-gradient(145deg, #ffffff, #f5f7fa);
            border-radius: 16px;
            padding: 22px 16px;
            margin-bottom: 24px;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.02), 0 8px 16px rgba(0,0,0,0.05);
            border: 1px solid rgba(255,255,255,0.8);
        }
        .amount-label {
            text-align: center;
            color: #6b7280;
            font-size: 14px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
        }
        .amount-input-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        .currency-symbol {
            font-size: 32px;
            font-weight: 600;
            color: #4b5563;
            line-height: 1;
        }
        .amount-input {
            font-size: 48px;
            font-weight: 700;
            color: #1f2937;
            background: transparent;
            border: none;
            text-align: center;
            width: 200px;
            padding: 0;
            outline: none;
            font-family: 'Helvetica Neue', Arial, sans-serif;
        }
        .amount-input:focus {
            color: #4338ca;
        }
        .amount-input::placeholder {
            color: #d1d5db;
            font-weight: 400;
            font-size: 32px;
        }
        /* 移除number输入框的默认箭头 */
        .amount-input::-webkit-outer-spin-button,
        .amount-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .amount-input[type=number] {
            -moz-appearance: textfield;
        }
        .amount-unit {
            font-size: 16px;
            color: #9ca3af;
            font-weight: 500;
            align-self: flex-end;
            margin-bottom: 10px;
        }
        .amount-hint {
            text-align: center;
            color: #9ca3af;
            font-size: 13px;
            margin-top: 10px;
        }
        .warning-message {
            color: #dc2626;
            font-size: 14px;
            text-align: center;
            margin-top: 8px;
            display: none;
            font-weight: 500;
            background: #fee2e2;
            padding: 6px 12px;
            border-radius: 30px;
        }
        .warning-message.show {
            display: block;
        }

        /* 支付选项 - 调整高度 */
        .payment-options {
            display: flex;
            gap: 15px;
            margin: 20px 0 16px;
            flex-wrap: wrap;
        }
        .payment-option {
            flex: 1;
            min-width: 120px;
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 20px;
            padding: 16px 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .payment-option:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        }
        .payment-option.selected {
            border-color: #007bff;
            background: #f0f7ff;
        }
        .payment-option.wechat.selected {
            border-color: #07C160;
            background: #e8f7ef;
        }
        .payment-option.alipay.selected {
            border-color: #1677FF;
            background: #e6f0ff;
        }
        .payment-icon {
            width: 44px;
            height: 44px;
            margin: 0 auto 8px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }
        .wechat-icon {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2307C160"><path d="M12 2C6.48 2 2 5.58 2 10c0 2.13 1.07 4.03 2.8 5.39L4 20l4.2-2.5c1.08.3 2.21.5 3.8.5 5.52 0 10-3.58 10-8s-4.48-8-10-8zm0 2c4.41 0 8 2.69 8 6s-3.59 6-8 6c-1.5 0-2.9-.3-4.2-.8L6 18l1.3-2.5C5.9 14.4 4 12.7 4 10c0-3.31 3.59-6 8-6z"/></svg>');
        }
        .alipay-icon {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231677FF"><path d="M21.5 9.5c-.5-2.5-2-4.5-4-5.5-2-.9-4.5-1-7.5-.5-2.5.5-4.5 1.5-5.5 3-1 1.5-1.5 3.5-1 5.5.5 2 2 4 4 5 2 1 4.5 1.5 7.5 1 2.5-.5 4.5-1.5 5.5-3 .5-.8.8-1.7.8-2.7 0-.5 0-1-.2-1.5-1.5-.5-3-1-4.5-1.5-1.5-.5-3-1-4.5-1.5-1 .5-2 1-3 1.5-1 .5-2 1-3 1.5 1 2 2.5 3.5 4 4.5 1.5 1 3.5 1.5 5.5 1 2-.5 4-1.5 5.5-3 .5-.5.9-1.1 1.2-1.8.3-.7.5-1.5.5-2.3 0-1.3-.4-2.5-1.2-3.5z"/></svg>');
        }
        .payment-name {
            font-weight: 600;
            margin-bottom: 4px;
            font-size: 16px;
        }
        .payment-desc {
            font-size: 12px;
            color: #6c757d;
        }
        .pay-button {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 20px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            color: white;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 16px;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        .pay-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
        }
        .pay-button:disabled {
            background: #d1d5db;
            box-shadow: none;
            cursor: not-allowed;
            opacity: 0.7;
        }
        .pay-button.wechat-bg {
            background: linear-gradient(90deg, #07C160, #05944c);
            box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
        }
        .pay-button.alipay-bg {
            background: linear-gradient(90deg, #1677FF, #0b5ed7);
            box-shadow: 0 4px 12px rgba(22, 119, 255, 0.4);
        }
        .tip-message {
            text-align: center;
            color: #6c757d;
            margin: 8px 0 4px;
            font-size: 14px;
            padding: 8px;
            background: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e9ecef;
        }
        
        .amount-input:placeholder-shown {
            color: #d1d5db;
        }
        
        /* 为按钮添加焦点样式，提升视觉反馈 */
        .pay-button:focus {
            outline: 3px solid rgba(255, 255, 255, 0.5);
            outline-offset: 2px;
        }
        
        /* 遮罩层样式 - 独立于payment-container，在整个页面的最顶部 */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            justify-content: center;
            align-items: flex-start;
            backdrop-filter: blur(5px);
            cursor: pointer;
        }
        .overlay.active {
            display: flex;
        }
        .overlay-content {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 320px;
            background: transparent;
            text-align: center;
            animation: slideFromTop 0.3s ease;
            cursor: default;
        }
        @keyframes slideFromTop {
            from {
                opacity: 0;
                transform: translate(-50%, -100%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, 0);
            }
        }
        .overlay-content img {
            width: 100%;
            height: auto;
            border-radius: 0;
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
            border: none;
            pointer-events: none;
            display: block;
        }
        .overlay-tip {
            color: white;
            margin-top: 20px;
            font-size: 16px;
            font-weight: 500;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            background: rgba(255,255,255,0.1);
            padding: 12px 20px;
            border-radius: 40px;
            backdrop-filter: blur(5px);
            display: inline-block;
            border: 1px solid rgba(255,255,255,0.15);
            pointer-events: none;
        }
        .overlay::after {
            content: '点击任意位置关闭';
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
            background: rgba(0, 0, 0, 0.3);
            padding: 8px 16px;
            border-radius: 20px;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            pointer-events: none;
        }
        
        @media (max-width: 480px) {
            .payment-container {
                padding: 20px 16px;
            }
            .amount-input {
                font-size: 42px;
                width: 170px;
            }
            .currency-symbol {
                font-size: 28px;
            }
            .payment-options {
                flex-direction: row;
                gap: 10px;
            }
            .payment-option {
                min-width: 0;
                padding: 14px 4px;
            }
            .payment-icon {
                width: 40px;
                height: 40px;
                margin-bottom: 6px;
            }
            .payment-name {
                font-size: 15px;
            }
            .payment-desc {
                font-size: 11px;
            }
            .pay-button {
                margin-top: 12px;
                padding: 14px;
            }
            .overlay-content img {
                border-radius: 0;
            }
            .overlay::after {
                bottom: 20px;
                font-size: 12px;
                padding: 6px 12px;
            }
        }