* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; justify-content: center; padding: 40px 20px; } .container { max-width: 500px; width: 100%; } h1 { text-align: center; color: #fff; margin-bottom: 30px; font-size: 28px; } /* Product List */ .product-list { display: flex; flex-direction: column; gap: 16px; } .product-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .product-card h2 { font-size: 20px; color: #333; margin-bottom: 8px; } .price { font-size: 28px; color: #e74c3c; font-weight: bold; margin-bottom: 8px; } .desc { color: #888; font-size: 14px; margin-bottom: 16px; } .btn { display: inline-block; background: #07c160; color: #fff; padding: 10px 24px; border-radius: 6px; text-decoration: none; font-size: 16px; border: none; cursor: pointer; text-align: center; } .btn:hover { background: #06ad56; } .btn-back { background: #666; margin-top: 16px; display: block; } .btn-back:hover { background: #555; } /* Pay */ .pay-card, .error-card, .success-card { background: #fff; border-radius: 12px; padding: 32px 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center; } .order-info { margin: 20px 0; text-align: left; background: #f9f9f9; padding: 16px; border-radius: 8px; } .order-info p { margin: 6px 0; color: #555; font-size: 14px; } .order-info p span { float: right; color: #333; font-weight: 500; } .qrcode-wrapper { margin: 24px 0; } .qrcode-wrapper img { width: 260px; height: 260px; } .hint { color: #888; font-size: 14px; margin-top: 12px; } .status { padding: 12px; border-radius: 6px; font-size: 16px; margin: 16px 0; } .status.pending { background: #fff3cd; color: #856404; } .status.success { background: #d4edda; color: #155724; } .status.failed { background: #f8d7da; color: #721c24; } /* Error */ .error-card h1 { color: #e74c3c; } .error-card p { color: #666; margin: 16px 0; } /* Success */ .success-card h1 { color: #07c160; } /* Navigation */ .nav-btn { display: block; margin-top: 20px; background: rgba(255,255,255,0.2); text-align: center; } .nav-btn:hover { background: rgba(255,255,255,0.3); } /* Orders */ .orders-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow-x: auto; } .container:has(.orders-card) { max-width: 700px; } .orders-table { width: 100%; border-collapse: collapse; font-size: 13px; } .orders-table th { background: #f5f5f5; padding: 10px 8px; text-align: left; font-weight: 600; color: #555; border-bottom: 2px solid #eee; } .orders-table td { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; color: #333; } .orders-table tbody tr:hover { background: #fafafa; } .order-id { font-family: monospace; color: #888; font-size: 12px; } .empty { text-align: center; color: #999; padding: 40px 0; font-size: 16px; } .badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; } .badge-creating { background: #e8e8e8; color: #666; } .badge-pending { background: #fff3cd; color: #856404; } .badge-success { background: #d4edda; color: #155724; } .badge-failed { background: #f8d7da; color: #721c24; }