充电

2026-03-30

充电 - 山暮寒* { margin: 0; padding: 0; box-sizing: border-box;}body { font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif; background: #f5f5f5; color: #333; min-height: 100vh; overflow-x: hidden; margin: 0; padding: 0;}.clr-page-header { position: fixed; top: 0; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e0e0e0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.05); height: 50px; display: flex; align-items: center;}.clr-page-nav { display: flex; align-items: center; justify-content: flex-start; gap: 0; width: 100%; height: 100%; padding: 0 10px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;}.clr-page-nav::-webkit-scrollbar { display: none;}.clr-nav-item { color: #666; text-decoration: none; padding: 0 15px; transition: all 0.3s ease; white-space: nowrap; font-size: 14px; font-weight: 500; flex-shrink: 0; height: 100%; display: flex; align-items: center; justify-content: center; border-bottom: 2px solid transparent;}.clr-nav-item:hover { color: #27d897;}.clr-nav-item.active { color: #27d897; font-weight: 600; border-bottom-color: #27d897;}.clr-page-container { margin: 50px 0 0 0; padding: 0; position: relative; z-index: 1; width: 100%; max-width: 100%;}.clr-page-card { background: #fff; border-radius: 0; padding: 0; margin: 0; width: 100%; max-width: 100%;}.clr-page-title { font-size: 22px; margin-bottom: 15px; color: #333; font-weight: 600; text-align: center; padding-top: 20px;}.clr-amount-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; padding: 0 15px;}.clr-amount-btn { padding: 15px 5px; border-radius: 6px; background: #f8f9fa; border: 1px solid #e0e0e0; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 24px; color: #666; min-height: 80px;}.clr-amount-btn span { font-size: 12px; margin-top: 6px; color: #666; font-weight: 500;}.clr-amount-btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);}.clr-amount-btn.active { background: linear-gradient(135deg, #27d897, #26c3d1); color: white; transform: scale(1.02); border-color: #27d897;}.clr-amount-btn.active span { color: white;}.clr-random-btn { display: flex; align-items: center; justify-content: center; padding: 10px 25px; background: linear-gradient(135deg, #ff6b6b, #feca57); border: none; border-radius: 4px; color: white; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin: 0 auto; margin-bottom: 20px;}.clr-random-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(255, 107, 107, 0.15); background: linear-gradient(135deg, #ff5252, #ff9f43);}.clr-random-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none;}.clr-payment-methods { display: flex; justify-content: center; gap: 10px; margin: 20px 0; padding: 0 15px;}.clr-method-btn { padding: 8px 20px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 4px; color: #666; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; min-width: 80px;}.clr-method-btn:hover { background: #fff; color: #333;}.clr-method-btn.active { background: linear-gradient(135deg, #27d897, #26c3d1); color: white; border-color: transparent;}.clr-qr-section { margin: 20px 0; padding: 15px; background: #f8f9fa; border-radius: 6px; border: 1px solid #e0e0e0;}.clr-qr-code { width: 180px; height: 180px; border-radius: 6px; margin: 0 auto; display: block; border: 2px solid #fff; object-fit: contain;}.clr-payment-tip { font-size: 13px; color: #666; margin-top: 15px; line-height: 1.6; text-align: center; padding: 0 15px;}.clr-thanks-message { margin-top: 20px; padding: 10px 20px; background: linear-gradient(135deg, rgba(39, 216, 151, 0.1), rgba(38, 195, 209, 0.1)); border: 1px solid rgba(39, 216, 151, 0.2); border-radius: 4px; font-size: 13px; color: #27d897; font-weight: 600; display: inline-block; text-align: center;}.clr-center-container { text-align: center; padding: 0 15px;}@media (max-width: 768px) { .clr-page-header { height: 45px; } .clr-nav-item { padding: 0 12px; font-size: 13px; } .clr-amount-options { grid-template-columns: repeat(3, 1fr); gap: 8px; } .clr-amount-btn { padding: 12px 4px; min-height: 70px; font-size: 20px; } .clr-amount-btn span { font-size: 11px; } .clr-qr-code { width: 160px; height: 160px; }}@media (max-width: 600px) { .clr-amount-options { grid-template-columns: repeat(2, 1fr); }}@media (max-width: 480px) { .clr-page-header { height: 40px; } .clr-nav-item { padding: 0 10px; font-size: 12px; } .clr-page-title { font-size: 20px; } .clr-payment-methods { flex-direction: column; align-items: center; } .clr-method-btn { width: 100%; max-width: 150px; }}@media (max-width: 360px) { .clr-nav-item { padding: 0 8px; font-size: 11px; }}

充电

支付宝收款二维码
扫描二维码完成支付
您的支持是我持续创作的最大动力
感谢您的支持!

document.addEventListener("DOMContentLoaded", function() { var title = document.getElementById("clrThanksMessage"); var amountBtns = document.querySelectorAll(".clr-amount-btn"); var methodBtns = document.querySelectorAll(".clr-method-btn"); var qrCode = document.getElementById("clrPaymentQr"); var randomBtn = document.getElementById("clrRandomBtn"); var selectedItem = "西瓜"; var selectedAmount = "8.88"; var paymentMethod = "alipay"; var itemMessages = { "西瓜": "清凉解渴,精神一振!", "咖啡": "提神醒脑,工作更有劲!", "奶茶": "甜蜜滋味,心情美美哒!", "炸鸡": "香酥美味,能量满满!", "汉堡": "美味快餐,满足感爆棚!", "蛋糕": "甜蜜享受,幸福感加倍!" }; // 二维码URL var wechatPayQrUrl = ""; var alipayQrUrl = "https://api.qrserver.com/v1/create-qr-code/?size=180x180&data=https%3A%2F%2Fcaifu.pro%2F&format=png&color=333333&bgcolor=ffffff&margin=10&qzone=2"; function updateDisplay() { if (paymentMethod === "wechat" && wechatPayQrUrl) { qrCode.src = wechatPayQrUrl; qrCode.alt = "微信收款码 - ¥" + selectedAmount; } else { qrCode.src = alipayQrUrl; qrCode.alt = "支付宝收款码 - ¥" + selectedAmount; } title.textContent = "感谢您的支持!" + (itemMessages[selectedItem] || ""); } amountBtns.forEach(function(btn) { btn.addEventListener("click", function() { if (this.classList.contains("active")) return; amountBtns.forEach(function(b) { b.classList.remove("active"); }); btn.classList.add("active"); selectedItem = btn.getAttribute("data-item"); selectedAmount = btn.getAttribute("data-amount"); updateDisplay(); }); }); methodBtns.forEach(function(btn) { btn.addEventListener("click", function() { if (this.classList.contains("active")) return; methodBtns.forEach(function(b) { b.classList.remove("active"); }); btn.classList.add("active"); paymentMethod = btn.getAttribute("data-method"); updateDisplay(); }); }); randomBtn.addEventListener("click", function() { if (this.disabled) return; this.disabled = true; randomBtn.textContent = "转动中..."; var spins = 0; var maxSpins = 15; var spinSpeed = 60; var buttons = Array.from(amountBtns); var currentIndex = 0; amountBtns.forEach(function(b) { b.classList.remove("active"); }); var spinInterval = setInterval(function() { if (currentIndex >= 0) { buttons[currentIndex].classList.remove("active"); } var nextIndex = Math.floor(Math.random() * buttons.length); currentIndex = nextIndex; buttons[currentIndex].classList.add("active"); selectedItem = buttons[currentIndex].getAttribute("data-item"); selectedAmount = buttons[currentIndex].getAttribute("data-amount"); spins++; if (spins > maxSpins * 0.7) { spinSpeed = 120; } if (spins > maxSpins * 0.85) { spinSpeed = 200; } if (spins >= maxSpins) { clearInterval(spinInterval); selectedItem = buttons[currentIndex].getAttribute("data-item"); selectedAmount = buttons[currentIndex].getAttribute("data-amount"); updateDisplay(); randomBtn.disabled = false; randomBtn.textContent = "随机选择"; } }, spinSpeed); }); var navItems = document.querySelectorAll(".clr-nav-item"); navItems.forEach(function(item) { item.addEventListener("click", function(e) { var href = this.getAttribute("href"); if (href) { navItems.forEach(function(i) { i.classList.remove("active"); }); this.classList.add("active"); } }); }); updateDisplay();});

Home 影视 菜单 Time 音悦
×

注册

×

登录