/* 圣诞节主题网站样式 */

:root {
    --christmas-red: #c41e3a;
    --christmas-red-dark: #8b0000;
    --christmas-green: #228b22;
    --christmas-gold: #ffd700;
    --christmas-white: #fffafa;
    --gradient-snow: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --font-primary: 'Noto Sans SC', sans-serif;
    --font-decorative: 'Great Vibes', cursive;
    --nav-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); background: var(--gradient-snow); color: var(--christmas-white); overflow-x: hidden; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 飘雪动画 */
.snowflakes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; overflow: hidden; }
.snowflake { position: absolute; top: -50px; color: rgba(255, 255, 255, 0.8); font-size: 1.5rem; animation: snowfall linear infinite; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; font-size: 1rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; font-size: 1.5rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 2s; font-size: 1.2rem; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 0.5s; font-size: 2rem; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 9s; animation-delay: 1.5s; font-size: 1.8rem; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 2.5s; font-size: 1.3rem; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; font-size: 1.6rem; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 4s; font-size: 1.1rem; }
.snowflake:nth-child(10) { left: 92%; animation-duration: 11s; animation-delay: 1s; font-size: 1.4rem; }
.snowflake:nth-child(11) { left: 10%; animation-duration: 9s; animation-delay: 3.5s; font-size: 1.7rem; }
.snowflake:nth-child(12) { left: 50%; animation-duration: 12s; animation-delay: 2s; font-size: 1.9rem; }
@keyframes snowfall { 0% { transform: translateY(-50px) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(360deg); opacity: 0.3; } }

/* 导航栏 */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); background: rgba(15, 52, 96, 0.95); backdrop-filter: blur(10px); display: flex; justify-content: space-between; align-items: center; padding: 0 50px; z-index: 999; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }
.nav-brand { font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { color: var(--christmas-white); text-decoration: none; font-weight: 500; position: relative; padding: 5px 0; transition: color 0.3s ease; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--christmas-gold); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--christmas-gold); }
.nav-links a:hover::after { width: 100%; }

/* 英雄区域 */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: calc(var(--nav-height) + 40px) 20px 60px; background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #c41e3a 100%); position: relative; overflow: hidden; }
.hero-content { z-index: 1; max-width: 800px; }
.hero-title { font-family: var(--font-decorative); font-size: clamp(3rem, 10vw, 7rem); background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; animation: glow 2s ease-in-out infinite alternate; }
@keyframes glow { from { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); } to { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8)); } }
.hero-subtitle { font-size: clamp(1.5rem, 4vw, 2.5rem); color: var(--christmas-white); margin-bottom: 20px; letter-spacing: 3px; }
.hero-text { font-size: 1.2rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-decorations { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.decoration { position: absolute; font-size: 3rem; animation: float 6s ease-in-out infinite; }
.decoration:nth-child(1) { top: 20%; left: 10%; }
.decoration:nth-child(2) { top: 30%; right: 15%; animation-delay: 1s; }
.decoration:nth-child(3) { bottom: 25%; left: 8%; animation-delay: 2s; }
.decoration:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } }

/* 按钮 */
.btn { padding: 15px 35px; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, #c41e3a 0%, #ff6b6b 100%); color: white; box-shadow: 0 0 30px rgba(196, 30, 58, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(196, 30, 58, 0.6); }
.btn-secondary { background: transparent; color: var(--christmas-gold); border: 2px solid var(--christmas-gold); }
.btn-secondary:hover { background: var(--christmas-gold); color: #1a1a2e; transform: translateY(-3px); }
.btn-full { width: 100%; justify-content: center; }

/* 通用区域样式 */
section { padding: 100px 0; }
.section-title { text-align: center; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 60px; position: relative; }
.section-title::after { content: ''; display: block; width: 100px; height: 4px; background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%); margin: 20px auto 0; border-radius: 2px; }

/* 关于圣诞节区域 */
.about-section { background: linear-gradient(180deg, #0f3460 0%, #16213e 100%); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.about-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 40px 30px; text-align: center; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.about-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 30px rgba(255, 215, 0, 0.4); }
.card-icon { font-size: 4rem; margin-bottom: 20px; display: block; }
.about-card h3 { font-size: 1.5rem; color: var(--christmas-gold); margin-bottom: 15px; }
.about-card p { color: rgba(255, 255, 255, 0.8); line-height: 1.8; }

/* 祝福墙区域 */
.wishes-section { background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%); }
.wishes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.wish-card { background: linear-gradient(135deg, rgba(196, 30, 58, 0.2) 0%, rgba(34, 139, 34, 0.2) 100%); border: 1px solid rgba(255, 215, 0, 0.3); border-radius: 20px; padding: 30px; text-align: center; transition: all 0.3s ease; }
.wish-card:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(255, 215, 0, 0.4); }
.wish-avatar { font-size: 3rem; margin-bottom: 15px; }
.wish-text { font-size: 1.1rem; font-style: italic; color: var(--christmas-white); margin-bottom: 15px; line-height: 1.7; }
.wish-author { color: var(--christmas-gold); font-weight: 600; }

/* 精彩瞬间画廊 */
.gallery-section { background: linear-gradient(180deg, #1a1a2e 0%, #0f3460 100%); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; height: 250px; border-radius: 15px; overflow: hidden; cursor: pointer; background: linear-gradient(135deg, rgba(196, 30, 58, 0.3) 0%, rgba(34, 139, 34, 0.3) 100%); display: flex; align-items: center; justify-content: center; }
.gallery-placeholder { font-size: 5rem; transition: transform 0.3s ease; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); transform: translateY(100%); transition: transform 0.3s ease; }
.gallery-overlay span { color: var(--christmas-white); font-weight: 600; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.2); }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }

/* 倒计时区域 */
.countdown-section { background: linear-gradient(180deg, #0f3460 0%, var(--christmas-red-dark) 100%); text-align: center; }
.countdown-container { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.countdown-item { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 2px solid var(--christmas-gold); border-radius: 15px; padding: 30px 25px; min-width: 120px; text-align: center; }
.countdown-number { display: block; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; color: var(--christmas-gold); line-height: 1; text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
.countdown-label { display: block; font-size: 1rem; color: var(--christmas-white); margin-top: 10px; text-transform: uppercase; letter-spacing: 2px; }
.countdown-separator { font-size: 3rem; color: var(--christmas-gold); font-weight: 700; }
.countdown-message { font-size: 1.3rem; color: var(--christmas-white); }

/* 互动许愿区域 */
.interactive-section { background: linear-gradient(180deg, var(--christmas-red-dark) 0%, #1a1a2e 100%); }
.wish-form-container { max-width: 500px; margin: 0 auto; }
.wish-form { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 40px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--christmas-gold); }
.form-group input, .form-group textarea { width: 100%; padding: 15px 20px; background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 10px; color: var(--christmas-white); font-size: 1rem; font-family: var(--font-primary); transition: all 0.3s ease; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--christmas-gold); box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
.wish-result { text-align: center; }
.wish-result.hidden { display: none; }
.wish-success { background: rgba(34, 139, 34, 0.2); border: 2px solid var(--christmas-green); border-radius: 20px; padding: 40px; }
.success-icon { font-size: 4rem; display: block; margin-bottom: 20px; }
.wish-success h3 { color: var(--christmas-gold); margin-bottom: 15px; font-size: 1.8rem; }
.wish-success p { margin-bottom: 25px; color: rgba(255, 255, 255, 0.8); }

/* 页脚 */
.footer { background: #0a0a14; padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 1.5rem; margin-bottom: 15px; background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); }
.footer-links h4, .footer-social h4 { color: var(--christmas-gold); margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--christmas-white); }
.social-icons { display: flex; gap: 15px; }
.social-icon { width: 45px; height: 45px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; text-decoration: none; transition: all 0.3s ease; }
.social-icon:hover { background: var(--christmas-gold); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { color: rgba(255, 255, 255, 0.5); margin-bottom: 5px; }

/* 音乐播放器 */
.music-player { position: fixed; bottom: 30px; right: 30px; z-index: 998; }
.music-btn { width: 60px; height: 60px; border-radius: 50%; border: none; background: linear-gradient(135deg, #c41e3a 0%, #ff6b6b 100%); color: white; font-size: 1.5rem; cursor: pointer; box-shadow: 0 0 30px rgba(196, 30, 58, 0.4); transition: all 0.3s ease; animation: pulse 2s ease-in-out infinite; }
.music-btn:hover { transform: scale(1.1); }
.music-btn.playing { animation: none; background: linear-gradient(135deg, #228b22 0%, #32cd32 100%); box-shadow: 0 0 30px rgba(34, 139, 34, 0.6); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
    .countdown-item { min-width: 70px; padding: 20px 15px; }
    .countdown-separator { font-size: 2rem; }
    section { padding: 60px 0; }
    .wish-form { padding: 25px; }
    .decoration { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .countdown-item { min-width: 60px; padding: 15px 10px; }
    .countdown-number { font-size: 1.8rem; }
    .countdown-label { font-size: 0.8rem; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: var(--christmas-red); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--christmas-gold); }
