* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    /* 微信小程序优化：启用硬件加速 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 背景与雪花 --- */
.simple-world {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.snow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
}

.snowflake {
    position: absolute;
    top: -30px;
    color: #ffffff;
    font-size: 24px;
    user-select: none;
    animation: fall linear infinite;
    /* 简化text-shadow，微信小程序优化 */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout style paint;
}

@keyframes fall {
    0% { transform: translateY(-30px) rotate(0deg) translateZ(0); }
    100% { transform: translateY(110vh) rotate(360deg) translateZ(0); }
}

/* --- 简约弹窗极致优化 (纤薄款) - 微信小程序优化 --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    /* 移除backdrop-filter，微信小程序性能较差 */
    /* backdrop-filter: blur(6px); */
    z-index: 1000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.simple-popup {
    position: relative;
    width: 320px; /* 略微放大弹窗 */
    background: rgba(255, 255, 255, 0.98);
    /* 移除backdrop-filter，微信小程序性能较差 */
    /* backdrop-filter: blur(12px); */
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 20px 30px 35px 30px; /* 减少顶部内边距 */
    text-align: center;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.06),
        0 0 40px rgba(162, 210, 255, 0.1);
    animation:
        ultraPopIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        floatPopup 5s ease-in-out 0.8s infinite;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

@keyframes ultraPopIn {
    0% { transform: scale(0.7) translateY(30px) rotate(-3deg) translateZ(0); opacity: 0; }
    100% { transform: scale(1) translateY(0) rotate(0deg) translateZ(0); opacity: 1; }
}

@keyframes floatPopup {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-10px) translateZ(0); }
}

.icon-container {
    margin-bottom: 10px; /* 减少底部间距 */
    margin-top: -5px; /* 向上移动图标 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px; /* 缩短高度 */
    animation: subtleFloat 3s ease-in-out infinite;
}

.icon-container svg {
    width: 90px !important; /* 缩小图标，更精致 */
    height: 90px !important;
    display: block !important;
}

.icon-container .icon-gif {
    width: 120px;
    height: 120px;
    display: block;
    object-fit: contain;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 内容交错入场 */
.popup-title, .popup-msg, .simple-btn {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.popup-title { 
    animation-delay: 0.3s; 
    font-size: 20px; /* 缩小字号 */
    color: #1a1a1a;
    margin-bottom: 8px; /* 压缩间距 */
    font-weight: 700;
}

.popup-msg { 
    animation-delay: 0.5s; 
    font-size: 14px; /* 缩小字号 */
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px; /* 压缩间距 */
}

.simple-btn { 
    animation-delay: 0.7s; 
}

@keyframes fadeInUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 精致流光按钮 (纤细款) */
.simple-btn {
    position: relative;
    padding: 12px 45px; /* 减小按钮高度 */
    background: linear-gradient(135deg, #007aff, #0051ff);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

.simple-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    30%, 100% { left: 100%; }
}

.simple-btn:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 12px 25px rgba(0, 122, 255, 0.35);
    /* 移除filter，微信小程序性能较差 */
    /* filter: brightness(1.1); */
    background: linear-gradient(135deg, #0088ff, #0055ff);
}

/* --- 主内容区域 - 微信小程序优化 --- */
.main-content {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 500;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease forwards;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.main-content.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease forwards;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(-40px) translateZ(0); /* 整体位置往上移动一点 */
    -webkit-transform: translateY(-40px) translateZ(0);
    will-change: transform;
}

.gif-img {
    max-width: 1242pxpx;
    max-height: 2208px;
   /*    max-width: 1242px;      280px */
   /*    max-height: 2208px;   */
    
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* 微信小程序优化：图片懒加载 */
    loading: lazy;
}

.final-text {
    font-size: 28px; /* 字号大幅调大，更有冲击力 */
    font-weight: 900;
    color: #ff4757; /* 更有活力的橙红色 */
    margin-top: 30px;
    letter-spacing: 4px;
    /* 简化文字阴影，微信小程序优化 */
    text-shadow: 
        2px 2px 0px #ffffff, 
        4px 4px 0px rgba(0, 0, 0, 0.08);
    /* 组合动画：入场砸向屏幕 + 持续高频颤抖（降低频率） */
    animation: 
        textSmash 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        funnyShout 0.15s infinite;
    display: inline-block;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* 文字入场砸向屏幕的动画 - 移除filter优化性能 */
@keyframes textSmash {
    0% { transform: scale(5) translateZ(0); opacity: 0; }
    100% { transform: scale(1) translateZ(0); opacity: 1; }
}

/* 极致逗趣的"咆哮颤抖"动画 - 微信小程序优化 */
@keyframes funnyShout {
    0%, 100% { transform: rotate(-1deg) translate(1px, 1px) translateZ(0); }
    25% { transform: rotate(1deg) translate(-1px, -1px) translateZ(0); }
    50% { transform: rotate(-1.5deg) translate(-2px, 0) translateZ(0); }
    75% { transform: rotate(1.5deg) translate(2px, -1px) translateZ(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- 右下角透明小球 --- */
#float-balls {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
}

.float-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(240, 240, 240, 0.9);
    /* 移除backdrop-filter，微信小程序性能较差 */
    /* backdrop-filter: blur(10px); */
    border: 2px solid rgba(180, 180, 180, 0.8); /* 加深边框颜色，增强轮廓 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.25), /* 加深外阴影 */
        inset 0 1px 0 rgba(255, 255, 255, 0.5); /* 添加内部高光 */
    pointer-events: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.float-ball span {
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.float-ball:hover {
    background: rgba(230, 230, 230, 0.9);
    border-color: rgba(160, 160, 160, 0.9); /* 悬停时边框更深 */
    transform: scale(1.1) translateZ(0);
    box-shadow: 
        0 6px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.float-ball:active {
    transform: scale(0.95) translateZ(0);
}

/* 小球出现动画 */
@keyframes ball-appear {
    0% {
        opacity: 0;
        transform: scale(0) translateX(100px);
    }
    60% {
        opacity: 1;
        transform: scale(1.15) translateX(0);
    }
    80% {
        transform: scale(0.9) translateX(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

#float-balls.show .float-ball {
    animation: ball-appear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#float-balls.show .float-ball:nth-child(2) {
    animation-delay: 0.15s;
}

@media (max-width: 640px) {
    #float-balls {
        right: 20px;
        bottom: 20px;
        gap: 10px;
    }
    
    .float-ball {
        width: 40px;
        height: 40px;
    }
    
    .float-ball span {
        font-size: 11px;
    }
}


