/* ==================== 全局变量 ==================== */
:root {
    --primary-gold: #ffd700;
    --light-gold: #ffe066;
    --soft-gold: #fff3cd;
    --deep-pink: #ff6b9d;
    --light-pink: #ffc0cb;
    --soft-pink: #ffe4ec;
    --night-blue: #0a0a1a;
    --night-purple: #1a1a3e;
    --night-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 50%, #ffd700 100%);
    --pink-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --romantic-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --white: #ffffff;
    --text-light: rgba(255,255,255,0.9);
    --text-muted: rgba(255,255,255,0.6);
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: var(--night-gradient);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ==================== 音乐控制按钮 ==================== */
.music-control {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 4px 20px rgba(255,215,0,0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.music-control:hover { transform: scale(1.1); }
.music-control.active { background: var(--gold-gradient); }
.music-control.paused { opacity: 0.7; }

.music-icon {
    width: 24px;
    height: 24px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.music-waves {
    position: absolute;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.music-control.active .music-waves { opacity: 1; }

.music-waves span {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}

.music-waves span:nth-child(1) { animation-delay: 0s; height: 8px; }
.music-waves span:nth-child(2) { animation-delay: 0.1s; height: 12px; }
.music-waves span:nth-child(3) { animation-delay: 0.2s; height: 6px; }
.music-waves span:nth-child(4) { animation-delay: 0.3s; height: 15px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* ==================== 全局特效容器 ==================== */
#effects-container, #hearts-container, #fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
}

#danmu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 997;
    overflow: hidden;
}

/* 飘落元素 */
.falling-item {
    position: absolute;
    animation: fall linear forwards;
    text-shadow: 0 0 10px currentColor;
}

@keyframes fall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* 弹幕 */
.danmu {
    position: absolute;
    white-space: nowrap;
    font-size: 1.2rem;
    animation: danmuMove 8s linear forwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes danmuMove {
    0% { transform: translateX(100vw); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0.7; }
}

/* ==================== 图片查看器 ==================== */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.image-viewer.active { display: flex; }

.viewer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
}

#viewerImage {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(255,215,0,0.4);
    animation: viewerIn 0.4s ease;
    object-fit: contain;
}

@keyframes viewerIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.viewer-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.viewer-close:hover {
    background: var(--deep-pink);
    transform: rotate(90deg);
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s;
    user-select: none;
}

.viewer-nav:hover { color: var(--primary-gold); transform: translateY(-50%) scale(1.2); }
.viewer-nav.prev { left: 10px; }
.viewer-nav.next { right: 10px; }

.viewer-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    padding: 12px 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 90%;
}

.viewer-counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-gold);
    font-size: 0.9rem;
}

/* ==================== 页面通用 ==================== */
.page {
    min-height: 100vh;
    padding: 80px 20px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.header-icon {
    font-size: 1.8rem;
    animation: iconBounce 2s ease-in-out infinite;
}

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

.section-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* ==================== 页面1：封面 ==================== */
.cover-page {
    background: var(--night-gradient);
    justify-content: flex-start;
    padding-top: 0;
}

.cover-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, white, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 350px 200px, white, transparent),
        radial-gradient(2px 2px at 420px 60px, rgba(255,255,255,0.8), transparent);
    background-size: 450px 250px;
    animation: twinkleStars 4s ease-in-out infinite;
}

@keyframes twinkleStars {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.cover-moon {
    position: absolute;
    top: 30px;
    right: 10%;
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255,215,0,0.6), 0 0 80px rgba(255,215,0,0.3);
    animation: moonGlow 3s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(255,215,0,0.6), 0 0 80px rgba(255,215,0,0.3); }
    50% { box-shadow: 0 0 60px rgba(255,215,0,0.8), 0 0 120px rgba(255,215,0,0.5); }
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, transparent 0%, rgba(10,10,26,0.8) 100%);
}

.cover-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 60px 20px 40px;
}

.cover-badge {
    display: inline-block;
    background: rgba(255,215,0,0.2);
    border: 1px solid var(--primary-gold);
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    margin-bottom: 30px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.main-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.title-line {
    font-size: 1.5rem;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.title-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255,215,0,0.5));
}

.subtitle-box {
    margin-bottom: 40px;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.subtitle-small {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

.cover-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 40px;
    cursor: pointer;
    border-radius: 50%;
}

.image-rotate-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px dashed var(--primary-gold);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cover-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 0 40px rgba(255,215,0,0.4);
    transition: transform 0.5s ease;
}

.cover-image-container:hover .cover-photo { transform: scale(1.05); }

.photo-glow {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.photo-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    border-radius: 50%;
    animation: shineMove 3s ease-in-out infinite;
}

@keyframes shineMove {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.photo-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: var(--primary-gold);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cover-image-container:hover .photo-hint { opacity: 1; }

.cover-date {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.date-item {
    text-align: center;
}

.date-number {
    display: block;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5rem;
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.date-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.date-divider { font-size: 1.5rem; }

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    margin: 10px auto 0;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* 流星 */
.meteor-shower {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.meteor {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
    animation: meteorFly 3s linear infinite;
    opacity: 0;
}

.meteor:nth-child(1) { top: 10%; left: -100px; animation-delay: 0s; }
.meteor:nth-child(2) { top: 25%; left: -100px; animation-delay: 1s; }
.meteor:nth-child(3) { top: 40%; left: -100px; animation-delay: 2s; }
.meteor:nth-child(4) { top: 55%; left: -100px; animation-delay: 0.5s; }
.meteor:nth-child(5) { top: 70%; left: -100px; animation-delay: 1.5s; }

@keyframes meteorFly {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(calc(100vw + 200px)); opacity: 0; }
}

/* ==================== 页面2：时光印记 ==================== */
.timeline-page {
    background: linear-gradient(180deg, var(--night-gradient) 0%, var(--night-purple) 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    width: 100%;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 30px;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold-gradient);
    border-radius: 50%;
    top: 25px;
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

.timeline-item.left .timeline-dot { right: -10px; }
.timeline-item.right .timeline-dot { left: -10px; }

.timeline-content {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255,215,0,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.2);
}

.timeline-date {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.timeline-text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.timeline-image {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}

.timeline-image:hover img { transform: scale(1.1); }

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.timeline-image:hover .img-overlay { opacity: 1; }

.timeline-hearts {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    animation: heartsFloat 2s ease-in-out infinite;
}

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

/* ==================== 页面3：相遇时刻 ==================== */
.encounter-page {
    background: linear-gradient(180deg, var(--night-purple) 0%, var(--romantic-gradient) 100%);
}

.encounter-content {
    max-width: 900px;
    width: 100%;
}

.encounter-poem {
    position: relative;
    padding: 50px 30px;
    margin-bottom: 50px;
}

.poem-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid rgba(255,215,0,0.2);
}

.poem-text {
    position: relative;
    text-align: center;
}

.poem-text p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 12px 0;
    line-height: 2;
}

.poem-highlight {
    color: var(--primary-gold) !important;
    font-weight: 600;
    font-size: 1.4rem !important;
}

.encounter-story {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.story-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,215,0,0.2);
    transition: all 0.4s;
}

.story-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.08);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: iconBounce 2s ease-in-out infinite;
}

.story-card h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.story-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.encounter-photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.photo-stack {
    position: relative;
    width: 180px;
    height: 180px;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s;
}

.photo-stack:nth-child(2) { transform: rotate(3deg); }
.photo-stack:nth-child(3) { transform: rotate(-2deg); }

.photo-stack:hover {
    transform: scale(1.1) rotate(0deg);
    box-shadow: 0 15px 40px rgba(255,215,0,0.3);
}

.photo-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 10px 10px;
    font-size: 0.85rem;
    text-align: center;
}

/* ==================== 页面4：情书 ==================== */
.letter-page {
    background: linear-gradient(180deg, var(--romantic-gradient) 0%, var(--night-purple) 100%);
}

.letter-container {
    max-width: 700px;
    width: 100%;
}

.letter-paper {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    padding: 50px 40px;
    border-radius: 25px;
    border: 2px solid rgba(255,215,0,0.3);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.letter-decorations {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    font-size: 1rem;
}

.letter-decorations span {
    animation: heartBounce 1.5s ease-in-out infinite;
}

.letter-decorations span:nth-child(2) { animation-delay: 0.3s; }
.letter-decorations span:nth-child(4) { animation-delay: 0.6s; }

@keyframes heartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.letter-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.stamp {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    animation: stampRotate 3s ease-in-out infinite;
}

@keyframes stampRotate {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.letter-header h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--primary-gold);
    font-style: italic;
}

.letter-body {
    color: var(--text-light);
}

.letter-greeting {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
}

.letter-paragraph {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.letter-paragraph.visible {
    opacity: 1;
    transform: translateY(0);
}

.letter-highlight-box {
    background: rgba(255,215,0,0.1);
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.highlight-text {
    font-size: 1.2rem !important;
    color: var(--primary-gold) !important;
    line-height: 2.2 !important;
    text-align: center !important;
}

.letter-footer {
    text-align: right;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px dashed rgba(255,215,0,0.3);
}

.letter-footer p {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.signature-hearts {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.heart-bounce {
    font-size: 1.5rem;
    animation: heartBounce 1s ease-in-out infinite;
}

.signature-hearts span:nth-child(1) { animation-delay: 0s; }
.signature-hearts span:nth-child(2) { animation-delay: 0.2s; }
.signature-hearts span:nth-child(3) { animation-delay: 0.4s; }

/* ==================== 页面5：相册 ==================== */
.gallery-page {
    background: linear-gradient(180deg, var(--night-purple) 0%, var(--night-gradient) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.4s;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 15px 15px;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.auto-carousel {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: carouselScroll 30s linear infinite;
}

.carousel-track:hover { animation-play-state: paused; }

@keyframes carouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.carousel-track img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.carousel-track img:hover {
    transform: scale(1.1);
    border-color: var(--primary-gold);
}

/* ==================== 页面6：游戏 ==================== */
.game-page {
    background: linear-gradient(180deg, var(--night-gradient) 0%, var(--night-purple) 50%, var(--romantic-gradient) 100%);
}

.game-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 900px;
    width: 100%;
}

.game-card {
    position: relative;
    background: rgba(255,255,255,0.05);
    padding: 35px 25px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.4s;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    background: rgba(255,255,255,0.08);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .card-glow { opacity: 1; }

.game-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: gameIconBounce 2s ease-in-out infinite;
}

@keyframes gameIconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

.game-card h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.game-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-btn {
    background: var(--gold-gradient);
    color: var(--night-blue);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255,215,0,0.5);
}

.game-stars {
    margin-top: 15px;
    color: var(--primary-gold);
    font-size: 0.9rem;
}

.game-area {
    width: 100%;
    max-width: 700px;
}

.game-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.game-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label { color: var(--text-muted); font-size: 0.9rem; }
.info-value { color: var(--primary-gold); font-size: 1.3rem; font-weight: bold; }

.back-btn {
    background: var(--deep-pink);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover { transform: scale(1.05); }

#gameCanvas {
    width: 100%;
    height: 450px;
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    display: block;
}

/* 许愿池 */
.wish-pool {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.pond-scene {
    position: relative;
    height: 200px;
    margin-bottom: 30px;
}

.pond-water {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 80px;
    background: linear-gradient(180deg, rgba(100,150,255,0.3), rgba(50,100,200,0.5));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(100,150,255,0.3);
}

.wish-coin {
    position: absolute;
    bottom: 50px;
    width: 70px;
    height: 70px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,215,0,0.5);
    transition: all 0.3s;
    animation: coinFloat 3s ease-in-out infinite;
}

.wish-coin:nth-child(2) { left: calc(50% - 120px); animation-delay: 0s; }
.wish-coin:nth-child(3) { left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }
.wish-coin:nth-child(4) { right: calc(50% - 120px); animation-delay: 1s; }

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

.wish-coin:hover { transform: scale(1.2) rotate(360deg); }

.wish-input-area {
    margin-bottom: 30px;
}

#wishInput {
    width: 100%;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    padding: 20px;
    color: white;
    font-size: 1.1rem;
    resize: none;
    font-family: inherit;
}

#wishInput::placeholder { color: var(--text-muted); }

.wish-submit {
    background: var(--gold-gradient);
    color: var(--night-blue);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.wish-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,215,0,0.5);
}

.wish-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.wish-list p {
    background: rgba(255,215,0,0.1);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    color: var(--primary-gold);
    animation: wishIn 0.5s ease;
}

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

/* 默契问答 */
.quiz-area {
    max-width: 600px;
    width: 100%;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    width: 20%;
    transition: width 0.5s ease;
}

.quiz-question {
    background: rgba(255,255,255,0.08);
    padding: 30px;
    border-radius: 20px;
    font-size: 1.3rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 25px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quiz-option {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    color: var(--text-light);
}

.quiz-option:hover {
    border-color: var(--primary-gold);
    background: rgba(255,215,0,0.1);
}

.quiz-option.correct {
    background: rgba(0,255,0,0.2);
    border-color: #00ff00;
}

.quiz-option.wrong {
    background: rgba(255,0,0,0.2);
    border-color: #ff0000;
}

.quiz-result {
    text-align: center;
    padding: 30px;
    background: rgba(255,215,0,0.1);
    border-radius: 20px;
}

.quiz-result h3 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

/* ==================== 页面7：爱情测试 ==================== */
.test-page {
    background: linear-gradient(180deg, var(--romantic-gradient) 0%, var(--night-purple) 100%);
}

.test-container {
    max-width: 700px;
    width: 100%;
}

.love-meter {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid rgba(255,215,0,0.2);
}

.meter-label {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.meter-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 25px;
}

.meter-number {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 5rem;
    color: var(--primary-gold);
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
}

.meter-symbol {
    font-size: 2rem;
    color: var(--primary-gold);
}

.meter-bar {
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: var(--gold-gradient);
    width: 100%;
    border-radius: 10px;
    transition: width 2s ease;
}

.meter-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: meterGlow 2s ease-in-out infinite;
}

@keyframes meterGlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.meter-hearts {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
}

.meter-hearts span {
    animation: heartBeat 1.5s ease-in-out infinite;
}

.meter-hearts span:nth-child(1) { animation-delay: 0s; }
.meter-hearts span:nth-child(2) { animation-delay: 0.2s; }
.meter-hearts span:nth-child(3) { animation-delay: 0.4s; }
.meter-hearts span:nth-child(4) { animation-delay: 0.6s; }
.meter-hearts span:nth-child(5) { animation-delay: 0.8s; }

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.confession-box {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 40px;
}

.confession-bubble {
    background: rgba(255,215,0,0.1);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px dashed rgba(255,215,0,0.3);
}

.confession-bubble p {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
}

.confession-btn {
    background: var(--deep-pink);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.confession-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,107,157,0.5);
}

.love-quiz h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-align: center;
}

.quiz-item {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quiz-item:hover {
    border-color: var(--primary-gold);
}

.quiz-item.selected {
    background: rgba(255,215,0,0.1);
    border-color: var(--primary-gold);
}

.quiz-item > span {
    display: block;
    color: var(--text-light);
    margin-bottom: 12px;
}

.quiz-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-choices span {
    background: rgba(255,255,255,0.1);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== 页面8：约定 ==================== */
.promise-page {
    background: linear-gradient(180deg, var(--night-purple) 0%, var(--night-gradient) 100%);
}

.bridge-scene {
    position: relative;
    height: 180px;
    margin-bottom: 50px;
}

.sky {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
}

.bridge {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.bridge-side { font-size: 2rem; }

.bridge-side.left { animation: birdFly 3s ease-in-out infinite; }
.bridge-side.right { animation: birdFly 3s ease-in-out infinite reverse; }

@keyframes birdFly {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(10px); }
}

.bridge-path {
    width: 150px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
    position: relative;
}

.cowherd, .weaver {
    position: absolute;
    font-size: 1.8rem;
    top: -25px;
}

.cowherd { left: -20px; animation: cowherdWalk 4s ease-in-out infinite; }
.weaver { right: -20px; animation: weaverWalk 4s ease-in-out infinite reverse; }

@keyframes cowherdWalk {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

@keyframes weaverWalk {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-15px); }
}

.water {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.6;
}

.promise-container {
    max-width: 800px;
    width: 100%;
}

.promise-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,215,0,0.2);
}

.promise-card h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 25px;
}

.promise-list {
    list-style: none;
}

.promise-list li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    color: var(--text-light);
}

.promise-list li:hover { background: rgba(255,255,255,0.03); }

.promise-list li.checked {
    color: var(--primary-gold);
}

.promise-list li.checked .check-icon {
    color: #00ff00;
    content: '☑';
}

.check-icon {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.promise-list li.checked .check-icon::before {
    content: '☑';
}

.qixi-section h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 25px;
}

.poem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.poem-card {
    background: rgba(255,215,0,0.08);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,215,0,0.2);
}

.poem-card p {
    color: var(--text-light);
    margin: 8px 0;
    font-style: italic;
}

/* ==================== 页面9：未来 ==================== */
.future-page {
    background: linear-gradient(180deg, var(--night-gradient) 0%, var(--romantic-gradient) 100%);
}

.future-content {
    max-width: 700px;
    width: 100%;
}

.future-timeline {
    margin-bottom: 50px;
}

.future-item {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border-left: 4px solid var(--primary-gold);
    transition: all 0.3s;
}

.future-item:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.08);
}

.future-item.special {
    background: rgba(255,215,0,0.15);
    border-left-color: var(--deep-pink);
}

.future-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
}

.future-details h4 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.future-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.future-connector {
    width: 3px;
    height: 30px;
    background: var(--gold-gradient);
    margin-left: 48px;
}

.future-wish {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(255,215,0,0.2);
}

.wish-bubble {
    background: rgba(255,215,0,0.1);
    padding: 30px;
    border-radius: 20px;
}

.wish-bubble p {
    color: var(--text-light);
    margin: 10px 0;
    font-size: 1.2rem;
}

.wish-bubble p:first-child {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-family: 'Ma Shan Zheng', cursive;
}

/* ==================== 页面10：留言 ==================== */
.message-page {
    background: linear-gradient(180deg, var(--romantic-gradient) 0%, var(--night-purple) 100%);
}

.message-area {
    max-width: 600px;
    width: 100%;
}

.message-input {
    margin-bottom: 30px;
}

.message-input textarea {
    width: 100%;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    padding: 20px;
    color: white;
    font-size: 1.1rem;
    resize: none;
    font-family: inherit;
    margin-bottom: 15px;
}

.message-input textarea::placeholder { color: var(--text-muted); }

.send-btn {
    width: 100%;
    background: var(--deep-pink);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255,107,157,0.5);
}

.messages-display {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 25px;
}

.message-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.message-item.mine { align-items: flex-end; }

.message-bubble {
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 80%;
    color: var(--text-light);
}

.message-item.mine .message-bubble {
    background: var(--deep-pink);
}

.message-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.emoji-reactions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.emoji-reactions span {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.emoji-reactions span:hover {
    transform: scale(1.3);
}

/* ==================== 页面11：结尾 ==================== */
.ending-page {
    background: var(--night-gradient);
    padding-bottom: 100px;
}

.ending-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,215,0,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,107,157,0.1) 0%, transparent 50%);
}

.fireflies {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-gold);
    animation: fireflyFloat 8s ease-in-out infinite;
}

.firefly:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.firefly:nth-child(2) { top: 25%; right: 25%; animation-delay: 1s; }
.firefly:nth-child(3) { top: 45%; left: 15%; animation-delay: 2s; }
.firefly:nth-child(4) { top: 55%; right: 30%; animation-delay: 3s; }
.firefly:nth-child(5) { bottom: 25%; left: 30%; animation-delay: 4s; }
.firefly:nth-child(6) { bottom: 35%; right: 20%; animation-delay: 5s; }

@keyframes fireflyFloat {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    25% { opacity: 1; transform: translate(20px, -30px); }
    50% { opacity: 0.5; transform: translate(-10px, -50px); }
    75% { opacity: 1; transform: translate(30px, -20px); }
}

.ending-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
}

.ending-badge {
    display: inline-block;
    background: rgba(255,215,0,0.2);
    border: 2px solid var(--primary-gold);
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    margin-bottom: 40px;
    animation: badgePulse 2s ease-in-out infinite;
}

.ending-hearts {
    margin-bottom: 30px;
}

.heart-float {
    font-size: 3rem;
    display: inline-block;
    animation: heartFloat 3s ease-in-out infinite;
}

.heart-float:nth-child(1) { animation-delay: 0s; }
.heart-float:nth-child(2) { animation-delay: 0.3s; font-size: 4rem; }
.heart-float:nth-child(3) { animation-delay: 0.6s; }

@keyframes heartFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.ending-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.8rem;
    color: white;
    margin-bottom: 10px;
}

.ending-title.highlight {
    color: var(--primary-gold);
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
}

.ending-poem {
    margin: 40px 0;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border-left: 4px solid var(--primary-gold);
}

.ending-poem p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 8px 0;
    font-style: italic;
}

.ending-message {
    margin-bottom: 40px;
}

.ending-message p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 12px 0;
}

.final-wish {
    background: rgba(255,215,0,0.1);
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 40px;
    border: 2px solid rgba(255,215,0,0.3);
}

.final-wish p {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin: 10px 0;
}

.wish-star {
    font-size: 2rem;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

.ending-signature {
    margin-bottom: 40px;
}

.ending-signature > p {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.signature-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sig-heart {
    font-size: 2rem;
    animation: heartBounce 1.5s ease-in-out infinite;
}

.sig-heart:nth-child(1) { animation-delay: 0s; }
.sig-heart:nth-child(2) { animation-delay: 0.2s; }
.sig-heart:nth-child(3) { animation-delay: 0.4s; }
.sig-heart:nth-child(4) { animation-delay: 0.6s; }
.sig-heart:nth-child(5) { animation-delay: 0.8s; }

.qixi-badge {
    background: var(--gold-gradient);
    padding: 15px 40px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 30px;
}

.qixi-badge span {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--night-blue);
}

.share-btn {
    background: var(--deep-pink);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,107,157,0.5);
}

/* ==================== 底部导航 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,26,0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 999;
    border-top: 1px solid rgba(255,215,0,0.2);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s;
    padding: 5px 15px;
}

.nav-item span { font-size: 1.5rem; }
.nav-item small { font-size: 0.7rem; }

.nav-item.active, .nav-item:hover {
    color: var(--primary-gold);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    
    .main-title { font-size: 2.5rem; }
    
    .cover-image-container {
        width: 200px;
        height: 200px;
    }
    
    .timeline-line { left: 20px; }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
    }
    
    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }
    
    .letter-paper { padding: 30px 20px; }
    
    .letter-paragraph { font-size: 1rem; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 2; }
    
    .game-selection { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    .quiz-options { grid-template-columns: 1fr; }
    
    .cover-date { flex-direction: column; gap: 15px; }
    
    .date-divider { display: none; }
    
    .meter-number { font-size: 4rem; }
    
    .future-item { flex-direction: column; text-align: center; }
    
    .future-connector { margin-left: 0; }
    
    .nav-item span { font-size: 1.3rem; }
    
    .viewer-nav { font-size: 35px; padding: 10px; }
    
    #gameCanvas { height: 350px; }
}

@media (max-width: 480px) {
    .page { padding: 70px 15px 100px; }
    
    .section-title { font-size: 1.8rem; }
    
    .main-title { font-size: 2rem; gap: 10px; }
    
    .title-line { display: none; }
    
    .cover-image-container {
        width: 180px;
        height: 180px;
    }
    
    .cover-badge { font-size: 0.85rem; padding: 6px 18px; }
    
    .subtitle { font-size: 1.1rem; }
    
    .date-number { font-size: 2rem; }
    
    .letter-paper { padding: 25px 15px; }
    
    .letter-greeting { font-size: 1.4rem; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
    
    .game-selection { grid-template-columns: 1fr; }
    
    .game-icon { font-size: 3rem; }
    
    .promise-list li { font-size: 0.95rem; }
    
    .ending-title { font-size: 2rem; }
    
    .ending-poem p { font-size: 1rem; }
    
    .final-wish p { font-size: 1.3rem; }
    
    .bottom-nav { padding: 8px 0; }
    
    .nav-item { padding: 5px 10px; }
    .nav-item span { font-size: 1.2rem; }
    .nav-item small { font-size: 0.65rem; }
    
    #gameCanvas { height: 300px; }
    
    .viewer-nav { font-size: 30px; padding: 8px; }
    .viewer-close { font-size: 30px; }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
::-webkit-scrollbar-thumb { background: var(--primary-gold); border-radius: 3px; }

/* 触摸反馈 */
@media (hover: none) {
    .game-card:active,
    .game-btn:active,
    .back-btn:active,
    .send-btn:active,
    .wish-submit:active {
        transform: scale(0.95);
    }
}
