[Asm] 纯文本查看 复制代码
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<!-- Favicon -->
<link rel="icon" type="image/png" href="gift.png">
<meta name="description" content="一份带有音乐、烟花、爱心爆炸和浪漫弹窗的电子礼物">
<title>浪漫告白礼物 · 烟花与心意</title>
<!-- 检查是否已登录,未登录则跳转 -->
<!-- 礼物页访问检查:必须先从登录页输入正确密码 -->
<script>
if (!sessionStorage.getItem('loggedIn')) {
window.location.href = 'index.html';
}
</script>
<!-- 礼物页全部样式:烟花、弹窗、控制栏、爱心和赞赏弹窗 -->
<style>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<!-- Favicon -->
<link rel="icon" type="image/png" href="gift.png">
<meta name="description" content="一份带有音乐、烟花、爱心爆炸和浪漫弹窗的电子礼物">
<title>浪漫告白礼物 · 烟花与心意</title>
<!-- 检查是否已登录,未登录则跳转 -->
<!-- 礼物页访问检查:必须先从登录页输入正确密码 -->
<script>
if (!sessionStorage.getItem('loggedIn')) {
window.location.href = 'index.html';
}
</script>
<!-- 礼物页全部样式:烟花、弹窗、控制栏、爱心和赞赏弹窗 -->
<style>
/* 页面主题色和通用玻璃效果参数 */
:root {
--ios-glass: rgba(255, 255, 255, 0.65);
--ios-blur: blur(25px);
--accent-color: #ff4d88;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
background: #000;
color: #fff;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
overflow: hidden;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
/* Fireworks Canvas */
#fireworks {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
pointer-events: auto;
}
/* Overlay for interaction */
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.85);
backdrop-filter: blur(15px);
z-index: 9999;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: opacity 0.8s ease;
pointer-events: auto;
}
.gift-box {
font-size: 80px;
animation: bounce 2s infinite;
cursor: pointer;
margin-bottom: 20px;
}
.tap-hint {
font-size: 18px;
font-weight: 500;
opacity: 0.8;
letter-spacing: 1px;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
/* Container for Popups - Full Screen */
.notification-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
pointer-events: none;
}
/* Apple Style Frosted Glass Popup */
.popup {
position: absolute;
width: auto;
min-width: 150px;
max-width: 300px;
min-height: 80px;
/* Enhanced Apple Glass Effect */
background: rgba(255, 255, 255, 0.75);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.4);
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.1),
0 2px 10px rgba(255, 77, 136, 0.05);
border-radius: 20px;
opacity: 0;
transform: scale(0.92) translateY(8px);
transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
pointer-events: auto;
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
}
.popup-content {
width: 100%;
padding: 18px 20px;
color: #1d1d1f;
font-size: 14px;
font-weight: 500;
line-height: 1.5;
letter-spacing: -0.01em;
text-align: center;
white-space: normal;
word-wrap: break-word;
overflow: hidden;
}
.popup.show {
opacity: 1;
transform: scale(1) translateY(0);
}
/* Heart Popup Styles - Bigger and better looking */
.heart-popup {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
border-radius: 18px;
box-shadow: 0 4px 20px rgba(255, 105, 180, 0.5);
border: 2px solid rgba(255, 255, 255, 0.8);
padding: 12px 10px;
opacity: 0;
transition: all 0.5s;
z-index: 1001;
background: linear-gradient(135deg, #ff9a9e, #fecfef);
font-size: 13px;
color: #d23669;
font-weight: bold;
transform: translate(-50%, -50%) scale(0.8);
animation: heartPulse 1.5s infinite;
min-width: 100px;
min-height: 55px;
text-align: center;
white-space: nowrap;
}
@keyframes heartPulse {
0% { transform: translate(-50%, -50%) scale(0.8); }
50% { transform: translate(-50%, -50%) scale(0.95); }
100% { transform: translate(-50%, -50%) scale(0.8); }
}
.heart-popup.show {
opacity: 1;
}