:root {
    --cream-bg: #F9F7F5;
    --soft-pink: #F8E8EE;
    --pale-gold: #E8D0A9;
    --accent-gold: #D4AF37;
    --deep-text: #5D4D4A;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --font-main: 'Noto Sans SC', sans-serif;
    --font-title: 'ZCOOL XiaoWei', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--cream-bg);
    color: var(--deep-text);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* 粒子背景 */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 预加载 */
#loading {
    position: fixed;
    inset: 0;
    background: var(--cream-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
}

.cake-loader {
    font-size: 4rem;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    to { transform: translateY(-20px) scale(1.1); }
}

/* 音乐控制 */
.music-control {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.music-bar-container {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.bar {
    width: 3px;
    background: var(--pale-gold);
    border-radius: 2px;
    height: 20%;
}

.playing .bar {
    animation: music-flow 1s infinite alternate;
}

.playing .bar:nth-child(2) { animation-delay: 0.2s; }
.playing .bar:nth-child(3) { animation-delay: 0.4s; }
.playing .bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes music-flow {
    to { height: 100%; }
}

/* 页面通用样式 */
.container {
    position: relative;
    width: 100%;
    height: 100%;
}

.page {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
}

/* 玻璃卡片 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 第1页：解锁 */
.main-card {
    text-align: center;
    max-width: 550px;
}

.title-gradient {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--deep-text), var(--pale-gold));
    background-clip: text; /* 标准属性 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.cake-illustration {
    margin-bottom: 30px;
    position: relative;
}

.cake-symbol {
    font-size: 5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(232, 208, 169, 0.5));
}

.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid var(--pale-gold);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.input-hint {
    font-size: 0.9rem;
    color: var(--deep-text);
    margin-bottom: 5px;
    opacity: 0.8;
}

.input-hint span {
    color: var(--accent-gold);
    font-weight: bold;
    padding: 0 4px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

input {
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid var(--pale-gold);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    font-size: 1rem;
    color: var(--deep-text);
    outline: none;
    transition: 0.3s;
    width: 100%;
}

input:focus {
    background: white;
    box-shadow: 0 0 15px var(--soft-pink);
}

.error-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: bold;
    height: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 愿望输入区域 */
.wish-container {
    width: 80%;
    margin: 20px 0;
    transition: all 1.5s ease;
}

.wish-input {
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px dashed var(--pale-gold);
    border-radius: 12px;
    padding: 10px;
    font-family: var(--font-main);
    color: var(--deep-text);
    resize: none;
    outline: none;
    text-align: center;
    transition: 0.3s;
}

.wish-input:focus {
    background: rgba(255, 255, 255, 0.6);
    border-style: solid;
}

.privacy-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
}

.wish-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 20;
}

.dream-text {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0;
    transform: scale(0.8);
    animation: dreamAppear 2s forwards 0.5s;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@keyframes dreamAppear {
    to { opacity: 1; transform: scale(1); }
}

/* 愿望消失动画 */
.wish-fading {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    filter: blur(10px);
}

/* 愿望提示弹窗 (Toast) */
.wish-toast {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
    z-index: 50;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: toastPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.wish-toast .sub-hint {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

@keyframes toastPop {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.glow-btn {
    background: var(--pale-gold);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 208, 169, 0.4);
    transition: 0.3s;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 208, 169, 0.6);
}

.hidden-link {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.5;
}

/* 第2页：互动 */
.split-container {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    z-index: 5;
}

.interaction-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    cursor: pointer;
    transition: transform 0.3s;
}

.interaction-card:hover {
    transform: translateY(-5px);
}

.cake-preview {
    font-size: 8rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(232, 208, 169, 0.4));
    animation: bounce 2s infinite alternate;
}

/* 全屏许愿仪式弹层 */
.ceremony-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(249, 247, 245, 0.95);
    transition: background-color 2s ease;
}

.ceremony-layer.lights-off {
    background-color: #0d0d15;
}

.starry-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
}

.lights-off .starry-bg {
    opacity: 0.8;
}

.ceremony-content {
    width: 95%;
    max-width: 500px;
    height: 90vh; /* 增加高度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around; /* 改为 space-around 增加灵活性 */
    padding: 20px;
    position: relative;
    overflow: hidden; /* 强制隐藏滚轮 */
    transition: all 0.5s ease;
}

.lights-off .ceremony-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

.ceremony-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.ceremony-header h2 {
    font-family: var(--font-title);
    color: var(--deep-text);
    transition: all 1s;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.lights-off .ceremony-header h2 {
    color: var(--pale-gold);
    text-shadow: 0 0 10px rgba(232, 208, 169, 0.5);
}

.close-ceremony {
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    padding: 5px;
}

/* 抽签卡片 */
.fortune-card-wrapper {
    perspective: 1000px;
    cursor: default; /* 父容器不点击 */
}

.fortune-card-inner {
    width: 220px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin: 0 auto 20px;
}

.fortune-card-inner.flipped {
    transform: rotateY(180deg);
}

.card-side {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 18px;
    border: 2px solid var(--pale-gold);
    background: white;
    box-shadow: var(--shadow-sm);
}

.card-side.front {
    background: linear-gradient(135deg, var(--pale-gold), var(--soft-pink));
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.card-side.front .pattern {
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(255,255,255,0.5);
    border-radius: 12px;
}

.card-side.back {
    transform: rotateY(180deg);
    text-align: center;
    line-height: 1.8;
    color: var(--deep-text);
    font-size: 1.1rem;
    font-family: var(--font-title);
    background: #fff;
}

.secondary-btn {
    background: none;
    border: 1.5px solid var(--pale-gold);
    color: var(--pale-gold);
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.secondary-btn:hover {
    background: var(--pale-gold);
    color: white;
}

/* 豪华 3D 蛋糕样式 (修正版) */
.cake-grand-wrapper {
    position: relative;
    margin: 80px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cake-grand {
    position: relative;
    width: 250px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 蛋糕层通用结构 */
.cake-tier {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tier-top-surface {
    width: 100%;
    height: 60px;
    border-radius: 50%;
    background: #fff; /* 默认奶油顶 */
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0,0,0,0.05);
}

.tier-side {
    width: 100%;
    height: 50px;
    margin-top: -30px; /* 使侧边连接到顶面中线 */
    z-index: 1;
    border-radius: 0 0 50% 50% / 0 0 30px 30px;
}

/* 顶层 */
.tier-top {
    width: 120px;
    top: 0;
    z-index: 30;
}
.tier-top .tier-top-surface { background: #FFF0F5; }
.tier-top .tier-side { background: #FDE2E9; height: 40px; }

/* 中层 */
.tier-middle {
    width: 180px;
    top: 45px;
    z-index: 20;
}
.tier-middle .tier-top-surface { background: #FFD1DC; }
.tier-middle .tier-side { background: #FBB6C6; height: 50px; }

/* 底层 */
.tier-bottom {
    width: 240px;
    top: 95px;
    z-index: 10;
}
.tier-bottom .tier-top-surface { background: #F8E8EE; }
.tier-bottom .tier-side { background: #EBCFD6; height: 60px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* 草莓装饰 */
.cake-decoration-top {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    font-size: 1.8rem;
    z-index: 5;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

/* 蜡烛容器 - 精准定位在顶层中心 */
.candles-container-grand {
    position: absolute;
    top: -35px; /* 蜡烛高度的一部分，使其插在顶面 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    z-index: 100; /* 确保在所有蛋糕层之上 */
}

.candle-refined {
    width: 10px;
    height: 45px;
    background: linear-gradient(to right, #E8D0A9, #fff, #E8D0A9);
    border-radius: 5px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.candle-refined::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
}

.candle-refined .flame {
    width: 16px;
    height: 28px;
    background: radial-gradient(circle at center, #fff, #ffecb3, #ff9d00, #ff5e00);
    border-radius: 50% 50% 20% 20%;
    position: absolute;
    top: -28px;
    left: -3px;
    box-shadow: 0 0 20px #ff9d00, 0 0 40px #ff5e00;
    animation: flicker 0.1s infinite alternate;
}

@keyframes flicker {
    from { transform: scale(1) rotate(-1deg); opacity: 0.9; }
    to { transform: scale(1.1) rotate(1deg); opacity: 1; }
}

/* 优化许愿仪式弹窗高度和布局 */
.ceremony-content {
    width: 95%;
    max-width: 500px;
    height: auto;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border-radius: 40px;
    border: 8px solid white; /* 奶油风厚边框 */
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.1),
        inset 0 0 20px rgba(232, 208, 169, 0.2);
}

/* 打火机动画容器 */
.lighter-container {
    position: absolute;
    width: 30px;
    height: 60px;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, -100%);
}

.lighter-container.active {
    opacity: 1;
}

.lighter-body {
    width: 25px;
    height: 40px;
    background: linear-gradient(to right, #D4AF37, #E8D0A9, #D4AF37);
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    left: 2.5px;
}

.lighter-cap {
    width: 25px;
    height: 15px;
    background: #D4AF37;
    border-radius: 4px 4px 0 0;
    position: absolute;
    bottom: 40px;
    left: 2.5px;
    transform-origin: left bottom;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lighter-container.open .lighter-cap {
    transform: rotate(-110deg);
}

.lighter-flame-source {
    width: 8px;
    height: 15px;
    background: radial-gradient(circle at center, #fff, #ffecb3, #ff9d00, #ff5e00);
    border-radius: 50% 50% 20% 20%;
    position: absolute;
    bottom: 45px;
    left: 11px;
    opacity: 0;
    filter: drop-shadow(0 0 10px #ff9d00);
}

.lighter-container.open .lighter-flame-source {
    opacity: 1;
    animation: flicker 0.1s infinite alternate;
}

/* 吹气动效 (风) - 优化版 */
.wind-stream {
    position: absolute;
    pointer-events: none;
    z-index: 120;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
    border-radius: 10px;
    height: 2px;
}

@keyframes windBlow {
    0% { transform: scaleX(0); opacity: 0; }
    30% { opacity: 0.8; }
    100% { transform: scaleX(1.5) translateX(200px); opacity: 0; }
}

/* 许愿阶段 */
.wish-stage {
    width: 100%;
    margin-top: 30px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wish-input-grand {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid var(--pale-gold);
    border-radius: 20px;
    padding: 20px;
    color: var(--deep-text);
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    margin-bottom: 10px;
    resize: none;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.lights-off .wish-input-grand {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.privacy-hint-grand {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    text-align: center;
}

.lights-off .privacy-hint-grand {
    color: rgba(255, 255, 255, 0.6);
}

/* 优化“许好了”按钮 */
.glow-btn-small {
    background: linear-gradient(135deg, var(--pale-gold), var(--accent-gold));
    color: white;
    border: none;
    padding: 16px 50px;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    margin: 0 auto;
}

.glow-btn-small:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

.glow-btn-small:active {
    transform: translateY(0) scale(0.95);
}

/* 解决 linter 警告 */
.shimmer-text-large {
    font-family: var(--font-title);
    font-size: 3.5rem;
    background: linear-gradient(90deg, #FFD700, #FFF, #FFD700);
    background-clip: text; /* 标准属性 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
}

/* 愿望球动画 */
.wish-ball-container {
    width: 100%;
    position: relative;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wish-ball-container.shrinking {
    width: 20px;
    height: 20px;
    background: var(--pale-gold);
    border-radius: 50%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 20px var(--pale-gold);
}

.wish-ball-container.shrinking textarea {
    opacity: 0;
}

.wish-ball-container.rising {
    transform: translateY(-400px);
    opacity: 0;
}

/* 烟花容器 */
.fireworks-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 150;
}

.firework-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
}

/* 自定义提示 Toast */
.ceremony-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    text-align: center;
    z-index: 200;
    backdrop-filter: blur(5px);
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.secondary-btn-light {
    margin-top: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.secondary-btn-light:hover {
    background: rgba(255,255,255,0.2);
}

/* 第3页：礼盒 */
.gift-scene {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-box-3d {
    width: 160px;
    height: 160px;
    background: var(--soft-pink);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: 0.5s;
    transform-style: preserve-3d;
}

.gift-box-3d:hover { transform: scale(1.05) rotate(2deg); }

.box-lid {
    position: absolute;
    top: -10px;
    left: -5px;
    width: 170px;
    height: 40px;
    background: #F2D5E0;
    z-index: 10;
    transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-box-3d.open .box-lid {
    transform: translateY(-100px) rotateX(90deg) scale(0.8);
    opacity: 0;
}

.ribbon-v, .ribbon-h {
    position: absolute;
    background: var(--pale-gold);
    z-index: 5;
}

.ribbon-v { width: 30px; height: 100%; left: 65px; top: 0; }
.ribbon-h { width: 100%; height: 30px; left: 0; top: 65px; }

.wishes-panel {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: 1s 0.5s;
    text-align: left;
}

.wishes-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.typing-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--deep-text);
    min-height: 100px;
}

.wish-footer {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.icon-btn {
    flex: 1;
    background: white;
    border: 1.5px solid var(--soft-pink);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.icon-btn:hover { background: var(--soft-pink); }

/* 第4页：纪念册 */
.memory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.grid-item {
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.countdown-box { grid-column: span 2; }

.timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--pale-gold);
    font-family: var(--font-title);
}

.timer small { font-size: 1rem; margin-left: 5px; color: var(--deep-text); }

.preview-area {
    width: 100%;
    height: 120px;
    background: #fff;
    border-radius: 12px;
    margin: 10px 0;
    overflow: hidden;
}

.mini-btn {
    background: none;
    border: 1px solid var(--pale-gold);
    color: var(--pale-gold);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
}

.shimmer-text {
    font-family: var(--font-title);
    font-size: 3rem;
    text-align: center;
    background: linear-gradient(90deg, #E8D0A9, #F8E8EE, #E8D0A9);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .split-container { flex-direction: column; }
    .glass-card { padding: 25px; }
    .title-gradient { font-size: 1.8rem; }
    .memory-grid { grid-template-columns: 1fr; }
    .countdown-box { grid-column: span 1; }
}

.hidden { display: none; }
