* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #f78fb3;
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
    --text-color: #eee;
    --gold: #ffd700;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 70px;
}
#fireworksCanvas, #heartsCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* 顶部导航栏 - 可滑动 */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 10px;
    z-index: 10000;
    border-bottom: 2px solid var(--primary-color);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    display: flex;
    align-items: center;
}
.top-nav::-webkit-scrollbar { height: 4px; }
.top-nav::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 2px; }
.nav-scroll {
    display: inline-flex;
    gap: 8px;
    padding: 2px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}
.nav-btn {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(196, 69, 105, 0.3));
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-btn:hover, .nav-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}
.cute-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 107, 157, 0.3));
    border-color: var(--gold);
    animation: cutePulse 2s ease-in-out infinite;
    padding: 8px 12px;
}
.left-fixed {
    position: sticky; left: 0;
    z-index: 2;
    margin-right: 5px;
}
.right-fixed {
    position: sticky; right: 0;
    z-index: 2;
    margin-left: 5px;
}
@keyframes cutePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 弹窗样式 */
.popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20000;
    display: flex; align-items: center; justify-content: center;
}
.popup.hidden { display: none; }
.popup-content {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.95), rgba(26, 26, 46, 0.95));
    border: 3px solid var(--gold);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    animation: zoomIn 0.4s ease;
}
.popup-content h2 { color: var(--gold); font-size: 2em; margin-bottom: 20px; }
.popup-content p { font-size: 1.3em; color: var(--accent-color); margin-bottom: 30px; }

/* 音乐控制 */
.music-control { position: fixed; top: 75px; right: 20px; z-index: 9999; display: flex; align-items: center; gap: 4px; }
.music-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none; border-radius: 50px; padding: 5px 10px;
    color: white; cursor: pointer;
    display: flex; align-items: center; gap: 4px;
    font-size: 0.75em;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.4);
    transition: all 0.8s ease;
}
.music-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.6);
}
.music-btn.playing {
    background: linear-gradient(135deg, var(--gold), var(--primary-color));
}
.music-nav-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none; border-radius: 50%; width: 26px; height: 26px;
    color: white; cursor: pointer; font-size: 0.7em;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.music-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.6);
}

/* 主容器 */
.container {
    position: relative; z-index: 1;
    width: 95%; max-width: 1400px;
    margin: 0 auto; padding: 20px;
}

/* 页面切换 */
.page { display: none; animation: fadeInUp 0.5s ease; }
.page.active { display: block; }

/* 英雄区 */
.hero {
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 40px 20px;
}
.hero-content { animation: fadeInUp 1s ease; width: 100%; }
.love-title {
    display: flex; align-items: center; justify-content: center;
    gap: 15px; margin-bottom: 20px;
}
.heart { font-size: 2.5em; animation: heartbeat 1.5s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.hero-title {
    font-size: clamp(0.9em, 3.2vw, 1.8em);
    background: linear-gradient(45deg, var(--primary-color), var(--gold), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite;
    display: inline-block;
    line-height: 1.3;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}
.hero-subtitle { font-size: clamp(1em, 2.5vw, 1.4em); color: var(--accent-color); margin-bottom: 15px; }
.love-quote { font-size: clamp(1em, 2vw, 1.2em); color: var(--gold); margin-bottom: 30px; font-style: italic; }

/* 倒计时 - 响应式适配 */
.countdown-container {
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    backdrop-filter: blur(10px);
    width: 100%;
    position: relative;
    z-index: 100;
}
.countdown-title { font-size: clamp(1em, 3vw, 1.4em); color: var(--gold); margin-bottom: 15px; }
.countdown-timer {
    display: flex; justify-content: center; align-items: center;
    gap: 5px; flex-wrap: nowrap;
}
.countdown-item {
    display: flex; flex-direction: column; align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 10px 8px;
    border-radius: 12px;
    min-width: 55px;
}
.countdown-number {
    font-size: clamp(1.2em, 3.5vw, 2em);
    font-weight: bold;
    color: white;
    line-height: 1.2;
}
.countdown-label { font-size: 0.7em; color: rgba(255, 255, 255, 0.8); margin-top: 3px; }
.countdown-separator { font-size: clamp(1.2em, 2.5vw, 1.5em); color: var(--gold); font-weight: bold; }
.countdown-message { margin-top: 15px; font-size: clamp(0.9em, 2.5vw, 1.2em); color: var(--accent-color); animation: pulse 2s ease-in-out infinite; }
.birthday-image { margin-top: 15px; text-align: center; animation: fadeIn 0.5s ease-in; }
.birthday-image img { max-width: 100%; height: auto; max-height: 300px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* 蛋糕 */
.cake-container { margin: 25px auto; width: clamp(120px, 35vw, 180px); height: clamp(180px, 50vw, 250px); position: relative; background: transparent; }
.cake { position: relative; width: 100%; height: 100%; margin: 0 auto; bottom: 30px; overflow: visible !important; background: transparent; }
.cake-layer { position: absolute; border-radius: 10px; animation: bounce 2s ease-in-out infinite; }
.layer-1 { width: 100%; height: 25%; background: linear-gradient(to bottom, #ff9a9e, #fecfef); bottom: 0; }
.layer-2 { width: 80%; height: 25%; background: linear-gradient(to bottom, #a18cd1, #fbc2eb); bottom: 25%; left: 10%; animation-delay: 0.2s; }
.layer-3 { width: 60%; height: 25%; background: linear-gradient(to bottom, #fad0c4, #ffd1ff); bottom: 50%; left: 20%; animation-delay: 0.4s; }
.candle { position: absolute; width: 12%; height: 35%; background: linear-gradient(to right, #fff5c3, #ffd700, #ffed80); bottom: 75%; left: 44%; border-radius: 4px; box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); z-index: 10; }
.flame {
    position: absolute !important;
    width: 18px !important;
    height: 30px !important;
    background: radial-gradient(ellipse at center bottom, rgba(255,255,0,1) 0%, rgba(255,215,0,0.9) 20%, rgba(247,147,30,0.7) 50%, rgba(255,107,53,0.4) 80%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    bottom: 105% !important;
    left: 50% !important;
    transform: translateX(-50%);
    animation: flicker 0.12s ease-in-out infinite;
    box-shadow: 
        0 -8px 20px rgba(255, 107, 53, 1),
        0 -15px 35px rgba(247, 147, 30, 0.9),
        0 -25px 50px rgba(255, 215, 0, 0.7),
        0 0 70px rgba(255, 215, 0, 0.5),
        0 -30px 90px rgba(255, 107, 53, 0.4);
    filter: blur(0.3px);
    z-index: 1000 !important;
    pointer-events: none;
}
@keyframes flicker { 
    0% { transform: translateX(-50%) scale(1) rotate(-1deg); opacity: 1; }
    20% { transform: translateX(-50%) scale(1.08) rotate(2deg); opacity: 0.97; }
    40% { transform: translateX(-50%) scale(1.12) rotate(-2deg); opacity: 0.93; }
    60% { transform: translateX(-50%) scale(1.06) rotate(1deg); opacity: 0.97; }
    80% { transform: translateX(-50%) scale(1.1) rotate(-1deg); opacity: 0.95; }
    100% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
}

/* 按钮 */
.btn {
    padding: 14px 35px;
    font-size: clamp(0.95em, 2.5vw, 1.2em);
    border: none; border-radius: 50px;
    cursor: pointer; transition: all 0.3s ease;
    margin: 10px; font-weight: bold;
}
.btn-primary { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white; box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 107, 157, 0.6); }
.btn-secondary { background: linear-gradient(45deg, var(--accent-color), var(--primary-color)); color: white; }

/* 章节 */
.section {
    background: rgba(22, 33, 62, 0.8);
    border-radius: 20px;
    padding: clamp(20px, 5vw, 40px);
    margin: 30px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.section-title { font-size: clamp(1.5em, 4vw, 2.2em); text-align: center; margin-bottom: 25px; color: var(--gold); }

/* 上传区 */
.upload-section { text-align: center; margin-bottom: 25px; padding: 20px; background: rgba(255, 107, 157, 0.1); border-radius: 15px; border: 2px dashed var(--primary-color); }
.upload-btn { display: inline-block; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; padding: 12px 30px; border-radius: 50px; cursor: pointer; font-size: 1em; }

/* 相册网格 */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 25px; }
.love-message { text-align: center; font-size: clamp(1em, 2.5vw, 1.2em); color: var(--accent-color); margin-bottom: 15px; font-style: italic; }
.photo-card { background: var(--card-bg); border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; transition: all 0.3s ease; overflow: hidden; }
.photo-card:hover { transform: scale(1.05) rotate(2deg); border: 2px solid var(--primary-color); }
.photo-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; display: block; }
.photo-placeholder { font-size: 2.5em; margin-bottom: 8px; display: none; }

/* 输入框 */
.input-field {
    padding: 12px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    background: rgba(22, 33, 62, 0.9);
    color: var(--text-color);
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
}
.input-field:focus { outline: none; border-color: var(--primary-color); }

/* 心愿/日记/留言列表 */
.wish-form, .diary-form, .message-form { display: flex; flex-direction: column; gap: 12px; max-width: 550px; margin: 0 auto 25px; }
.wishes-list, .diary-list, .messages-list { max-height: 450px; overflow-y: auto; padding: 15px; }
.wish-item, .diary-item, .message-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(196, 69, 105, 0.2));
    border-radius: 12px; padding: 15px; margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
}
.wish-item:hover { 
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(196, 69, 105, 0.25)); 
    transform: translateY(-2px);
}
.wish-text { 
    color: var(--text-color); 
    line-height: 1.6; 
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
}
.wish-text input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff6b9d;
}
.wish-text span {
    flex: 1;
}
.wish-text.completed {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
}
.wish-time, .diary-info, .message-time { font-size: 0.8em; color: var(--accent-color); margin-top: 8px; }

/* 游戏卡片 */
.game-card { background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: clamp(15px, 4vw, 25px); margin: 15px 0; border: 1px solid rgba(255, 215, 0, 0.3); }
.game-card h3 { color: var(--gold); margin-bottom: 12px; font-size: 1.2em; }
.game-result { font-weight: bold; font-size: 1em; margin: 8px 0; }
.game-info { color: var(--accent-color); font-size: 0.85em; }

/* 记忆游戏 */
.memory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; max-width: 350px; margin: 15px auto; }
.memory-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px; cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    overflow: hidden;
}
.memory-card::before {
    content: '❓';
    font-size: 1.3em;
    transition: opacity 0.3s;
}
.memory-card.flipped {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #fff5f8, #ffe6ee);
    border: 2px solid var(--primary-color);
}
.memory-card.flipped::before {
    content: '';
    opacity: 0;
}
.memory-card.flipped span {
    display: flex;
}
.memory-card span {
    display: none;
}
.memory-card.matched { 
    opacity: 0.6; 
    background: linear-gradient(135deg, var(--gold), #ffd700);
}

/* 星星游戏 */
.star-game { width: 100%; height: 200px; background: rgba(0, 0, 0, 0.3); border-radius: 12px; position: relative; overflow: hidden; margin: 15px 0; }
.star { position: absolute; font-size: 1.8em; cursor: pointer; transition: transform 0.2s ease; }

/* 游戏选项按钮 */
.game-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 15px 0; }

/* 游戏卡片响应式 */
@media (max-width: 768px) {
    .game-card { padding: 12px; }
    .game-card h3 { font-size: 1em; }
    .memory-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 游戏按钮悬停效果 */
.game-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

/* 游戏应用卡片 - 精美游戏中心样式 */
.game-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    padding: 15px;
}

.game-app-card {
    background: linear-gradient(145deg, rgba(255, 107, 157, 0.15), rgba(196, 69, 105, 0.15));
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.game-app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    z-index: 0;
}

.game-app-card:hover::before {
    opacity: 0.9;
}

.game-app-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.5);
    border-color: var(--gold);
}

.game-app-card > * {
    position: relative;
    z-index: 1;
}

.game-app-icon {
    font-size: 2.8em;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.game-app-name {
    font-size: 0.9em;
    color: var(--text-color);
    font-weight: bold;
    line-height: 1.3;
    display: block;
    word-wrap: break-word;
}

.game-app-card:hover .game-app-name {
    color: white;
}
    font-weight: bold;
}

/* 游戏窗口 */
.game-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 50000;
    display: flex;
    flex-direction: column;
}

.game-window-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.game-window-title {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.game-window-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 8px;
    padding: 8px 20px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.game-window-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

#gameFrame {
    flex: 1;
    width: 100%;
    border: none;
    background: white;
}

/* 灯箱 */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 20000; align-items: center; justify-content: center; padding: 20px; }
.lightbox.active { display: flex; }
.lightbox-content { text-align: center; animation: zoomIn 0.3s ease; max-width: 100%; max-height: 100%; overflow: auto; }
.lightbox-photo { font-size: clamp(4em, 15vw, 8em); margin-bottom: 15px; }
.lightbox-photo img { max-width: 92vw; max-height: 78vh; border-radius: 15px; object-fit: contain; }
.lightbox-close { position: fixed; top: 15px; right: 25px; font-size: 2.5em; color: white; cursor: pointer; z-index: 20001; }

/* 页脚 */
.footer { 
    text-align: center; 
    padding: 30px 20px; 
    margin-top: 35px; 
    color: var(--accent-color);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border-top: 1px solid rgba(255, 107, 157, 0.2);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--gold), var(--primary-color), transparent);
    animation: shimmer 3s ease-in-out infinite;
}
.footer-note { 
    font-size: 0.8em; 
    margin-top: 8px; 
    opacity: 0.7;
    letter-spacing: 0.5px;
}
.footer-icons { 
    font-size: 1.3em; 
    margin-top: 15px; 
    letter-spacing: 12px; 
    animation: heartbeat 2s ease-in-out infinite, float 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}
.footer-icon {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}
.footer-icon.rabbit {
    animation: heartbeat 2s ease-in-out infinite, float 3s ease-in-out infinite;
}
.footer-icon.rabbit:hover {
    transform: scale(1.3) rotate(10deg);
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
}
.footer-icon.sheep {
    animation: heartbeat 2s ease-in-out infinite, float 3s ease-in-out infinite 0.5s;
}
.footer-icon.sheep:hover {
    transform: scale(1.3) rotate(-10deg);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* 小羊比心动画 */
@keyframes sheepHeart {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.5) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    75% { transform: scale(1.4) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.sheep-hearts {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    z-index: 10000;
    pointer-events: none;
    animation: sheepHeart 0.8s ease-out forwards;
}

/* 隐藏界面 */
.hidden-surface {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #ffd700 100%);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}
.hidden-surface.active {
    display: flex;
    animation: zoomIn 0.5s ease-out;
}
.hidden-surface h1 {
    font-size: clamp(2em, 8vw, 4em);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}
.hidden-surface p {
    font-size: clamp(1.2em, 4vw, 2em);
    opacity: 0.9;
}

/* 中国地图样式 */
.map-container { width: 100%; max-width: 700px; margin: 20px auto; }
.china-map { width: 100%; height: auto; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); }
.province { 
    fill: #1a1a1a; 
    stroke: #ff6b9d; 
    stroke-width: 1.5; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}
.province:hover { 
    fill: var(--accent-color); 
    stroke: var(--gold);
    stroke-width: 2;
}
.province.visited { 
    fill: var(--primary-color); 
}
.province.visited:hover { 
    fill: var(--gold); 
    stroke: white;
}

/* 旅行地点列表 */
.places-list { max-height: 300px; overflow-y: auto; padding: 15px; margin-top: 20px; }
.place-item {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(196, 69, 105, 0.2));
    border-radius: 10px; padding: 12px; margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
}
.place-name { color: var(--gold); font-weight: bold; }
.place-date { color: var(--accent-color); font-size: 0.85em; }

/* 动画 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { 0%, 100% { text-shadow: 0 0 20px rgba(255, 107, 157, 0.5); } 50% { text-shadow: 0 0 40px rgba(255, 107, 157, 0.8); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes zoomIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 响应式 */
@media (max-width: 768px) {
    body { padding-top: 75px; }
    .top-nav { padding: 6px 8px; }
    .nav-btn { padding: 6px 12px; font-size: 0.8em; }
    .hero { min-height: 60vh; padding: 25px 15px; }
    .heart { font-size: 2em; }
    .section { padding: 18px 12px; margin: 20px 0; }
    .countdown-item { min-width: 48px; padding: 8px 6px; }
    .countdown-number { font-size: 1.2em; }
    .countdown-label { font-size: 0.65em; }
    .countdown-separator { font-size: 1em; }
    .cake-container { width: 100px; height: 130px; }
    .btn { padding: 12px 25px; width: 100%; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .memory-grid { grid-template-columns: repeat(3, 1fr); }
    .popup-content { padding: 25px 15px; }
    .popup-content h2 { font-size: 1.4em; }
    .popup-content p { font-size: 1em; }
}

@media (max-width: 480px) {
    .top-nav { gap: 4px; }
    .nav-scroll { gap: 5px; }
    .nav-btn { padding: 5px 10px; font-size: 0.75em; }
    .cute-btn { padding: 5px 10px; }
    .left-fixed, .right-fixed { position: static; }
    .hero-title { font-size: 1.3em; }
    .section { padding: 15px 10px; }
    .section-title { font-size: 1.3em; margin-bottom: 18px; }
    .countdown-container { padding: 15px 10px; }
    .countdown-item { min-width: 42px; padding: 6px 5px; }
    .countdown-number { font-size: 1em; }
    .countdown-label { font-size: 0.6em; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-placeholder { font-size: 2em; }
    .memory-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .memory-card { font-size: 1em; }
    .star-game { height: 160px; }
    .footer-icons { font-size: 0.9em; letter-spacing: 8px; }
}

/* ========== 开场动画页面样式 ========== */
.intro-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #ffd700 100%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.intro-page.hidden {
    animation: fadeOutPage 0.8s ease forwards;
}

@keyframes fadeOutPage {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.intro-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.intro-image-container {
    position: relative;
    display: inline-block;
    animation: imagePop 2s ease-in-out infinite;
}

.intro-image {
    max-width: 60vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: imageGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

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

@keyframes imageGlow {
    0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.6); }
    50% { box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.9); }
}

/* 礼花特效 - 优化版 */
.intro-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    animation: confettiFall 2.5s linear forwards;
    opacity: 0;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* 烟花特效 - 优化版 */
.intro-firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 1.2s ease-out forwards;
    pointer-events: none;
}

@keyframes fireworkExplode {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        opacity: 0.8;
        transform: scale(15);
        box-shadow: 0 0 20px 8px currentColor;
    }
    100% {
        opacity: 0;
        transform: scale(25);
        box-shadow: 0 0 40px 15px currentColor;
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .intro-image {
        max-width: 80vw;
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .intro-image {
        max-width: 90vw;
        max-height: 40vh;
    }
    .intro-timer {
        font-size: 2em;
        bottom: 8%;
    }
}

/* ========== 首页样式 ========== */
.home-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* 首页背景图片（覆盖在渐变之上） */
.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url('pics/sy.jpg') center/cover no-repeat;
    opacity: 0.55;
    filter: blur(1px);
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.home-title-container {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1.2s ease;
}

.home-title {
    font-size: clamp(2.5em, 10vw, 6em);
    font-weight: bold;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffd700 50%, #ff6b9d 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite, glow 2s ease-in-out infinite;
    line-height: 1.2;
}

.home-heart {
    background: linear-gradient(135deg, #ff6b9d, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.home-subtitle {
    font-size: clamp(1em, 3vw, 1.5em);
    color: rgba(255, 215, 0, 0.7);
    margin-top: 15px;
    letter-spacing: 0.1em;
    animation: fadeIn 1.5s ease 0.5s both;
}

@keyframes titleShimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.home-days {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(196, 69, 105, 0.25));
    border: 1.5px solid rgba(255, 107, 157, 0.5);
    border-radius: 15px;
    padding: 12px 20px;
    backdrop-filter: blur(8px);
    animation: fadeIn 1s ease 0.3s both;
}

.home-days-number {
    font-size: clamp(1.5em, 5vw, 2.5em);
    font-weight: bold;
    color: #ffd700;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.home-days-label {
    font-size: clamp(0.7em, 2vw, 0.9em);
    color: #f78fb3;
    margin-top: 4px;
}

.home-weather {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 157, 0.2));
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    border-radius: 15px;
    padding: 10px 14px;
    backdrop-filter: blur(8px);
    text-align: left;
    animation: fadeIn 1s ease 0.6s both;
    min-width: 140px;
    max-width: 240px;
    font-size: clamp(0.75em, 2.5vw, 0.9em);
}

.weather-loading {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.weather-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.weather-temp {
    font-size: clamp(1.2em, 3vw, 1.5em);
    font-weight: bold;
    color: #ffd700;
}

.weather-desc {
    font-size: clamp(0.7em, 2vw, 0.85em);
    color: #f78fb3;
    margin-top: 2px;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: clamp(0.6em, 1.5vw, 0.75em);
    line-height: 1.4;
}

.weather-detail-label {
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    min-width: 48px;
}

.weather-detail-value {
    color: rgba(255, 255, 255, 0.9);
}

.weather-clothing .weather-detail-value {
    color: #ffd54f;
}

.weather-location {
    font-size: clamp(0.6em, 1.5vw, 0.7em);
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    text-align: right;
}

/* 首页响应式 */
@media (max-width: 768px) {
    .home-section {
        min-height: 70vh;
    }
    .home-days {
        top: 12px;
        left: 12px;
        padding: 8px 14px;
        border-radius: 12px;
    }
    .home-weather {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
        border-radius: 12px;
        min-width: 130px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .home-section {
        min-height: 60vh;
    }
    .home-days {
        top: 8px;
        left: 8px;
        padding: 6px 10px;
    }
    .home-weather {
        top: 8px;
        right: 8px;
        padding: 6px 10px;
        min-width: 110px;
        max-width: 170px;
        font-size: 0.75em;
    }
    .weather-icon {
        font-size: 1.3em;
    }
    .weather-main {
        gap: 4px;
        margin-bottom: 4px;
    }
    .weather-details {
        padding: 4px 0;
        gap: 2px;
    }
    .home-days-number {
        font-size: 1.3em;
    }
}

/* ========== 日记功能增强样式 ========== */

/* 日记工具栏 */
.diary-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 107, 157, 0.08);
    border-radius: 15px;
    border: 1.5px dashed rgba(255, 107, 157, 0.4);
}

.diary-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    transition: all 0.3s ease;
    color: white;
    border: none;
}

.diary-toolbar-btn.import-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 3px 12px rgba(255, 107, 157, 0.3);
}

.diary-toolbar-btn.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 157, 0.5);
}

.diary-toolbar-btn.export-btn {
    background: linear-gradient(135deg, var(--gold), #ff9800);
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
}

.diary-toolbar-btn.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.5);
}

.diary-toolbar-btn.refresh-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 3px 12px rgba(118, 75, 162, 0.3);
}

.diary-toolbar-btn.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(118, 75, 162, 0.5);
}

/* 日记表单名字+天气并排 */
.diary-form-row {
    display: flex;
    gap: 12px;
}

.diary-name-input {
    flex: 1;
    min-width: 0;
}

.diary-weather-input {
    flex: 1;
    min-width: 0;
}

/* 日记条目增强 */
.diary-item {
    position: relative;
}

.diary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.diary-author {
    font-weight: bold;
    color: var(--gold);
    font-size: 1.05em;
}

.diary-date {
    color: var(--accent-color);
    font-size: 0.85em;
}

.diary-weather {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.diary-item .diary-content {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.diary-image {
    margin: 10px 0;
    text-align: center;
}

.diary-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 157, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: contain;
}

.diary-image img:hover {
    transform: scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.diary-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.diary-action-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.diary-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.diary-action-btn.delete:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #ff4757;
}

/* 日记照片上传预览 */
.diary-photo-upload {
    margin: 8px 0;
}

.photo-preview {
    margin-top: 10px;
}

.preview-image-container {
    position: relative;
    display: inline-block;
    max-width: 200px;
}

.preview-image-container img {
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid #ff6b9d;
}

.remove-photo-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s;
}

.remove-photo-btn:hover {
    background: #ff3344;
    transform: scale(1.1);
}

/* 日记保存弹窗 */
.diary-save-dialog-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.diary-save-dialog {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.98), rgba(26, 26, 46, 0.98));
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: zoomIn 0.4s ease;
}

.diary-save-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.diary-save-dialog h3 {
    color: var(--gold);
    font-size: 1.5em;
    margin-bottom: 12px;
}

.diary-save-filename {
    background: rgba(255, 107, 157, 0.15);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9em;
    color: var(--accent-color);
    word-break: break-all;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.diary-save-hint {
    color: var(--text-color);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.diary-save-buttons {
    display: flex;
    justify-content: center;
}

/* 日记图片放大查看 */
.diary-image-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.diary-image-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 12px;
    object-fit: contain;
}

/* 日记响应式 */
@media (max-width: 480px) {
    .diary-form-row {
        flex-direction: column;
        gap: 12px;
    }
    .diary-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    .diary-toolbar-divider {
        display: none;
    }
    .diary-toolbar-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== 兔子跳跃动画 ========== */
/* ========== 小兔跳跃动画（从左往中央，碰撞用）========== */
@keyframes rabbitJump {
    0%   { left: -60px; bottom: 60px; transform: scaleX(1); }
    20%  { bottom: 100px; }
    40%  { bottom: 60px; }
    55%  { bottom: 110px; }
    70%  { bottom: 60px; }
    85%  { bottom: 90px; }
    100% { left: calc(50% - 30px); bottom: 90px; transform: scaleX(1); }
}

.jumping-rabbit {
    position: fixed;
    bottom: 60px;
    left: -60px;
    font-size: 2.5em;
    z-index: 99999;
    pointer-events: none;
    display: none;
    filter: drop-shadow(0 4px 8px rgba(255,107,157,0.6));
}

.jumping-rabbit.active {
    display: block;
    animation: rabbitJump 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ========== 密码弹窗 ========== */
.secret-password-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 50000;
    /* display 由 JS 控制，不在 CSS 里写死 */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(6px);
}

.secret-password-dialog {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.98), rgba(15, 52, 96, 0.98));
    border: 2px solid rgba(255, 107, 157, 0.5);
    border-radius: 24px;
    padding: 40px 36px;
    text-align: center;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.secret-pw-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.secret-pw-title {
    color: var(--gold);
    font-size: 1.4em;
    margin-bottom: 8px;
}

.secret-pw-hint {
    color: rgba(255,255,255,0.5);
    font-size: 0.85em;
    margin-bottom: 20px;
}

.secret-pw-input {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255, 107, 157, 0.4);
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-size: 1.2em;
    text-align: center;
    letter-spacing: 4px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.secret-pw-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.secret-pw-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.secret-pw-btn {
    padding: 10px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    transition: all 0.3s;
}

.secret-pw-btn.confirm {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.secret-pw-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.6);
}

.secret-pw-btn.cancel {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.15);
}

.secret-pw-btn.cancel:hover {
    background: rgba(255,255,255,0.15);
}

.secret-pw-error {
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: 12px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-8px); }
    40%       { transform: translateX(8px); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}

/* ========== 在一起隐藏页 ========== */
.secret-love-page {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 40000;
    background: #0a0a1a;
    /* display 由 JS 控制，不在 CSS 里写死 */
    flex-direction: column;
    overflow-y: auto;
    animation: fadeIn 0.6s ease;
}

.secret-close-btn {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 40001;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.secret-close-btn:hover {
    background: rgba(255, 107, 157, 0.3);
    border-color: var(--primary-color);
    color: white;
}

/* 图片轮播区 */
.secret-gallery {
    width: 100%;
    height: 65vh;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.secret-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.secret-gallery-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    background: #0a0a1a;
}

/* 单张图片时居中显示 */
.secret-gallery.single .secret-gallery-track img {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

/* 文章区 */
.secret-article {
    flex: 1;
    padding: 50px 20px 60px;
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, #0a0a1a 0%, #0f0a1e 100%);
}

.secret-article-inner {
    max-width: 600px;
    width: 100%;
}

.secret-article-inner p {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.95em, 2.5vw, 1.1em);
    line-height: 2;
    margin-bottom: 1.4em;
    text-align: justify;
}

.secret-article-lead {
    color: var(--gold) !important;
    font-size: clamp(1.1em, 3vw, 1.35em) !important;
    font-weight: bold;
    font-style: italic;
    text-align: center !important;
    margin-bottom: 2em !important;
    letter-spacing: 0.05em;
}

.secret-article-end {
    text-align: center;
    font-size: 2em;
    margin-top: 30px;
    animation: heartBeat 1.2s ease infinite;
}

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

/* ========== 小羊跳跃动画（从右往中央，碰撞用）========== */
@keyframes sheepJump {
    0%   { right: -60px; bottom: 60px; }
    20%  { bottom: 100px; }
    40%  { bottom: 60px; }
    55%  { bottom: 110px; }
    70%  { bottom: 60px; }
    85%  { bottom: 90px; }
    100% { right: calc(50% - 30px); bottom: 90px; }
}

.jumping-sheep {
    position: fixed;
    bottom: 60px;
    right: -60px;
    font-size: 2.5em;
    z-index: 99999;
    pointer-events: none;
    display: none;
    filter: drop-shadow(0 4px 8px rgba(255,215,0,0.6));
}

.jumping-sheep.active {
    display: block;
    animation: sheepJump 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ========== 小羊爱心弹窗 ========== */
.sheep-love-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 50000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

.sheep-love-dialog {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.98), rgba(60, 20, 60, 0.98));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 28px;
    padding: 44px 36px;
    text-align: center;
    width: 340px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.25);
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sheep-love-icon {
    font-size: 3em;
    margin-bottom: 18px;
    animation: heartBeat 1.2s ease infinite;
}

.sheep-love-text {
    color: white;
    font-size: clamp(1em, 3.5vw, 1.25em);
    line-height: 1.9;
    margin-bottom: 28px;
    text-shadow: 0 0 12px rgba(255,215,0,0.4);
}

.sheep-love-btn {
    background: linear-gradient(135deg, #ffd700, #ff6b9d);
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    color: white;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.sheep-love-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.6);
}

/* ========== 页尾小羊气泡弹出动画（屏幕中央）========== */
@keyframes sheepHeartPop {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    30%  { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    50%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    70%  { transform: translate(-50%, -55%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -70%) scale(1.2); opacity: 0; }
}

/* ========== 兔羊碰撞爆炸 ========== */
@keyframes explodeHeart {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50%  { transform: translate(var(--tx), var(--ty)) scale(1.2); opacity: 1; }
    100% { transform: translate(var(--tx2), var(--ty2)) scale(0.6); opacity: 0; }
}

@keyframes explodeFlash {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.collision-particle {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 2em;
    pointer-events: none;
    z-index: 100000;
    animation: explodeHeart 1.6s ease-out forwards;
}

.collision-flash {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.9), rgba(255,107,157,0.6), transparent);
    pointer-events: none;
    z-index: 99999;
    animation: explodeFlash 0.8s ease-out forwards;
}

/* ========== tym的小小日记 隐藏页 ========== */
.tym-diary-page {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 80000;
    background: linear-gradient(160deg, #0f0c29, #302b63, #24243e);
    flex-direction: column;
    overflow-y: auto;
    animation: fadeIn 0.6s ease;
}

.tym-diary-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.tym-diary-title {
    color: #ffd700;
    font-size: clamp(1.1em, 3.5vw, 1.5em);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

.tym-diary-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3em;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tym-diary-close:hover {
    background: rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.4);
    color: #ff6b9d;
}

.tym-diary-body {
    flex: 1;
    padding: 30px 24px 60px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.tym-diary-content {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95em, 2.8vw, 1.1em);
    line-height: 2;
    text-align: justify;
    text-indent: 2em;
}

.tym-diary-content p {
    margin-bottom: 1.4em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 日记页装饰：漂浮光点 */
.tym-diary-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255,215,0,0.3), transparent),
        radial-gradient(2px 2px at 80% 15%, rgba(255,107,157,0.3), transparent),
        radial-gradient(2px 2px at 50% 70%, rgba(255,215,0,0.2), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255,107,157,0.2), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255,215,0,0.25), transparent);
    pointer-events: none;
    z-index: 1;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ==================== 生日隐藏页（密码 20260419）==================== */
.birthday-secret-page {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    z-index: 70000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.birthday-secret-close {
    position: absolute;
    top: 16px; right: 20px;
    background: rgba(255,107,157,0.25);
    border: 2px solid var(--primary-color);
    color: white;
    font-size: 1.3em;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.birthday-secret-close:hover {
    background: var(--primary-color);
}

.birthday-secret-gallery {
    position: relative;
    width: min(96vw, 900px);
    height: min(72vh, 680px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px;
}

.birthday-secret-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(255,107,157,0.35), 0 0 80px rgba(255,215,0,0.1);
    transition: opacity 0.4s ease;
    display: block;
}

.birthday-secret-counter {
    position: absolute;
    bottom: 10px; right: 14px;
    font-size: 0.8em;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 10px;
}

.birthday-secret-text {
    margin-top: clamp(12px, 3vh, 28px);
    text-align: center;
    padding: 0 clamp(12px, 4vw, 24px);
}

.birthday-secret-text p {
    font-size: clamp(1.2em, 6vw, 2.6em);
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 18px rgba(255,215,0,0.7), 0 0 36px rgba(255,215,0,0.3);
    letter-spacing: 0.08em;
    animation: bdSecretPulse 2.5s ease-in-out infinite;
    margin-bottom: clamp(8px, 2vh, 14px);
}

.birthday-secret-hearts {
    font-size: clamp(1.2em, 5vw, 2.2em);
    animation: bdSecretFloat 3s ease-in-out infinite;
    letter-spacing: 0.2em;
}

@keyframes bdSecretPulse {
    0%, 100% { text-shadow: 0 0 18px rgba(255,215,0,0.7), 0 0 36px rgba(255,215,0,0.3); }
    50%       { text-shadow: 0 0 30px rgba(255,215,0,1),   0 0 60px rgba(255,107,157,0.5); }
}

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

/* 生日隐藏页响应式 */
@media (max-width: 768px) {
    .birthday-secret-gallery {
        width: min(98vw, 100%);
        height: min(60vh, 500px);
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .birthday-secret-gallery {
        width: 100vw;
        height: min(55vh, 400px);
        padding: 2px;
        border-radius: 0;
    }
    .birthday-secret-img {
        border-radius: 12px;
    }
    .birthday-secret-close {
        top: 10px; right: 10px;
        width: 34px; height: 34px;
        font-size: 1.1em;
    }
}