:root {
    --bg-color: #F2F6F5;
    --card-color: #FDFBF7;
    --text-color: #2A3A3F;
    --accent-color: #5A8C87;
    --sub-color: #92B4B3;
    --stamp-color: #C56A6A;
    --shadow-color: rgba(42, 58, 63, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Kaiti SC", STKaiti, "Songti SC", SimSun, serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- 全局背景效果 --- */
.noise-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9999; opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
.global-deco-layer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; overflow: hidden; }
.star-blink { position: absolute; color: var(--sub-color); animation: blink 4s infinite ease-in-out; }
.s1 { top: 15%; left: 10%; font-size: 1.2rem; }
.s2 { top: 25%; right: 15%; font-size: 1.5rem; animation-delay: 1s; }
.s3 { bottom: 30%; left: 20%; font-size: 1rem; animation-delay: 2s; }
.s4 { bottom: 15%; right: 25%; font-size: 1.3rem; animation-delay: 0.5s; }
.s5 { top: 50%; left: 80%; font-size: 0.9rem; animation-delay: 1.5s; }
@keyframes blink { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 0.8; transform: scale(1.2); } }
.floating-obj { position: absolute; opacity: 0.3; animation: float 8s infinite ease-in-out alternate; }
.boat { top: 60%; right: 10%; font-size: 1.5rem; }
@keyframes float { 0% { transform: translateY(0) rotate(-5deg); } 100% { transform: translateY(-20px) rotate(5deg); } }
.dynamic-wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 120px; background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 50" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,25 C50,50 50,0 100,25 C150,50 150,0 200,25 L200,50 L0,50 Z" fill="rgba(90, 140, 135, 0.08)"/></svg>'); background-size: 50% 100%; animation: waveMove 12s linear infinite; }
@keyframes waveMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 页面布局 --- */
.screen { display: none; min-height: 100vh; padding: 20px; align-items: center; justify-content: center; flex-direction: column; position: relative; z-index: 10; }
.screen.active { display: flex; }
.collage-card {
    background-color: var(--card-color);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(90, 140, 135, 0.03) 2px, rgba(90, 140, 135, 0.03) 4px), radial-gradient(circle at center, transparent 60%, rgba(90, 140, 135, 0.08) 100%);
    padding: 35px 25px; border-radius: 2px; box-shadow: 2px 4px 20px var(--shadow-color);
    border: 1px solid rgba(90, 140, 135, 0.2); position: relative; max-width: 500px; width: 100%; text-align: center;
}
.collage-card::before { content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 100px; height: 30px; background-color: rgba(146, 180, 179, 0.5); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(2px); z-index: 20; }
.tilted { transform: rotate(1.5deg); }
.mono-title, .mono-text, .timer { font-family: Consolas, "Courier New", monospace; }
.mono-title { margin-bottom: 15px; font-size: 1.5rem; color: var(--accent-color); position: relative; z-index: 10; }
.mono-text { font-size: 1.2rem; }
.timer { font-size: 2rem; margin: 20px 0; letter-spacing: 2px; color: var(--text-color); position: relative; z-index: 10; }

.stamp { position: absolute; border: 2px dashed var(--stamp-color); color: var(--stamp-color); padding: 5px 12px; border-radius: 50%; font-family: monospace; font-size: 0.85rem; font-weight: bold; opacity: 0.6; pointer-events: none; mix-blend-mode: multiply; z-index: 15; }
.waiting-text { font-size: 1.15rem; letter-spacing: 2px; margin-top: 30px; position: relative; display: inline-block; z-index: 10; }
.waiting-text::after { content: ''; position: absolute; bottom: 2px; left: -5px; width: calc(100% + 10px); height: 8px; background-color: rgba(146, 180, 179, 0.4); z-index: -1; transform: rotate(-1deg); }

.hint { font-size: 0.95rem; color: var(--sub-color); margin-bottom: 15px; position: relative; z-index: 10;}
#password-input { width: 160px; padding: 10px; text-align: center; border: 1px solid var(--sub-color); background: rgba(255,255,255,0.6); border-radius: 2px; font-size: 1.2rem; outline: none; margin-bottom: 20px; position: relative; z-index: 10; }
button { background-color: var(--accent-color); color: white; border: none; padding: 10px 25px; border-radius: 2px; cursor: pointer; font-size: 1rem; transition: 0.3s; position: relative; z-index: 10; font-family: monospace; }
button:hover { background-color: var(--text-color); }
.error-msg { color: var(--stamp-color); font-size: 0.85rem; margin-top: 15px; min-height: 20px; position: relative; z-index: 10;}

.deco { position: absolute; color: var(--sub-color); opacity: 0.5; pointer-events: none; z-index: 1; }
.deco-window { top: -20px; right: -20px; width: 80px; height: 80px; color: var(--accent-color); opacity: 0.2; transform: rotate(15deg); }
.deco-moon { top: -25px; right: -15px; font-size: 2.5rem; filter: drop-shadow(2px 2px 0px var(--card-color)); }
.deco-lighthouse { bottom: 10px; left: 10px; width: 40px; height: 40px; opacity: 0.3; }
.deco-anchor { bottom: 10px; left: -15px; width: 50px; height: 50px; opacity: 0.2; }
.floating { animation: simpleFloat 4s ease-in-out infinite alternate; }
@keyframes simpleFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
.light-beam { position: absolute; top: 5px; left: 15px; width: 40px; height: 4px; background: linear-gradient(90deg, rgba(146, 180, 179, 0.8), transparent); transform-origin: 0 50%; animation: sweep 3s infinite linear; }
@keyframes sweep { 0% { transform: rotate(-45deg); opacity: 0; } 50% { opacity: 1; } 100% { transform: rotate(45deg); opacity: 0; } }

/* 开屏动图 */
#intro-gif {
    display: block;
    max-width: 80%;
    max-height: 40vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

/* ==========================================
   电影级开屏长动画 (Phase 3)
   ========================================== */
#intro-animation-container { position: relative; width: 100%; max-width: 600px; height: 250px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.anim-node { position: absolute; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; opacity: 0; }
.node-left { left: 10%; animation: fadeInNode 1s 0.5s forwards; }
.node-right { right: 10%; animation: fadeInNode 1s 1.5s forwards; }
.node-dot { width: 12px; height: 12px; background-color: var(--accent-color); border-radius: 50%; box-shadow: 0 0 15px var(--accent-color); margin-bottom: 10px; }
.node-text { font-size: 0.85rem; color: var(--text-color); text-align: center; opacity: 0.8; }
@keyframes fadeInNode { 0% { opacity: 0; transform: translateY(-50%) scale(0.8); } 100% { opacity: 1; transform: translateY(-50%) scale(1); } }
.anim-line { position: absolute; top: 50%; left: 15%; width: 70%; height: 50px; transform: translateY(-50%); z-index: 2; }
.line-path { animation: drawLine 2.5s 2.5s linear forwards; }
@keyframes drawLine { 0% { stroke-dashoffset: 200; } 100% { stroke-dashoffset: 0; } }
.anim-moon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 60px; height: 60px; background: var(--accent-color); border-radius: 50%; box-shadow: 0 0 30px var(--accent-color), inset -10px -10px 20px rgba(0,0,0,0.1); opacity: 0; z-index: 3; animation: bloomMoon 2s 5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes bloomMoon { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.anim-texts { position: absolute; bottom: 0%; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.text-step { opacity: 0; font-size: 0.9rem; color: var(--sub-color); }
.t1 { animation: fadeInOutText 2s 1s forwards; }
.t2 { animation: fadeInOutText 2s 2.5s forwards; }
.t3 { animation: fadeInText 2s 6s forwards; font-weight: bold; color: var(--accent-color); font-size: 1.1rem; }
@keyframes fadeInOutText { 0% { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fadeInText { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
.hidden-btn { opacity: 0; pointer-events: none; margin-top: 20px; }
.hidden-btn.show-btn { animation: showBtn 1.5s 7s forwards; pointer-events: auto; }
@keyframes showBtn { 0% { opacity: 0; } 100% { opacity: 1; } }

/* ==========================================
   白鸽、落花、风雪 粒子特效
   ========================================== */
#particle-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; overflow: hidden; }
.snow-particle { position: absolute; background: #fff; border-radius: 50%; box-shadow: 0 0 5px rgba(255,255,255,0.8); opacity: 0.7; animation: snowWindFall linear forwards; }
@keyframes snowWindFall { 0% { transform: translate(0, -10vh) rotate(0deg); } 100% { transform: translate(-20vw, 110vh) rotate(360deg); } }
.flower-particle { position: absolute; background: #F7CAC9; border-radius: 50% 0 50% 50%; opacity: 0.8; box-shadow: inset -2px -2px 5px rgba(219, 112, 147, 0.3); animation: flowerFall linear forwards; }
@keyframes flowerFall { 0% { transform: translate(0, -10vh) rotate(0deg) scale(1); } 50% { transform: translate(10vw, 50vh) rotate(180deg) scale(0.9); } 100% { transform: translate(-5vw, 110vh) rotate(360deg) scale(0.8); } }
.dove-particle { position: absolute; width: 30px; height: 30px; opacity: 0; animation: flyAcross linear forwards; }
.dove-particle svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 0 3px rgba(0,0,0,0.1)); }
@keyframes flyAcross { 0% { transform: translate(-10vw, 50vh) scale(0.5) rotate(-10deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(110vw, 20vh) scale(1) rotate(10deg); opacity: 0; } }

/* --- 导览页、弹窗等 --- */
.radio-icon { position: fixed; top: 20px; left: 20px; background: var(--card-color); padding: 8px 15px; border-radius: 20px; box-shadow: 2px 2px 10px var(--shadow-color); font-family: monospace; font-size: 0.9rem; cursor: pointer; z-index: 100; border: 1px solid var(--sub-color); color: var(--text-color); transition: 0.3s; }
.status-dot { display: inline-block; width: 8px; height: 8px; background-color: var(--sub-color); border-radius: 50%; margin-right: 5px; transition: 0.3s; }
.radio-icon.playing .status-dot { background-color: var(--accent-color); box-shadow: 0 0 6px var(--accent-color); }
.freq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; width: 100%; max-width: 800px; margin-top: 40px; }
.freq-card { background: var(--card-color); padding: 25px; border-radius: 2px; box-shadow: 3px 5px 15px var(--shadow-color); position: relative; cursor: pointer; transition: transform 0.3s; border: 1px dashed var(--sub-color); background-image: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 100%); }
.freq-card:hover { transform: translateY(-5px) !important; box-shadow: 5px 8px 20px var(--shadow-color); }
.freq-card.locked::after { content: '🔒 输入暗号解锁'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(253, 251, 247, 0.95); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 2px; font-family: monospace; color: var(--accent-color); font-weight: bold; border: 1px solid var(--sub-color); }
.freq-card h3 { font-family: monospace; font-size: 1.2rem; margin-bottom: 10px; color: var(--accent-color); }
.freq-card p { font-size: 1rem; }
#final-trigger-container { margin-top: 50px; margin-bottom: 50px; z-index: 10;}
.hidden { display: none !important; }
.pulse-btn { animation: pulse 2s infinite; padding: 15px 30px; font-size: 1.1rem; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(42, 58, 63, 0.7); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-content { background: var(--card-color); padding: 30px; border-radius: 4px; background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(90, 140, 135, 0.03) 2px, rgba(90, 140, 135, 0.03) 4px); width: 100%; max-width: 600px; max-height: 80vh; overflow-y: auto; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 1.8rem; cursor: pointer; color: var(--sub-color); z-index: 50; }

.protocol-log { font-family: monospace; font-size: 0.85rem; margin-bottom: 20px; padding: 12px; background: rgba(146, 180, 179, 0.1); border-left: 3px solid var(--accent-color); }
.protocol-clauses { list-style: none; margin-bottom: 20px; }
.protocol-clauses li { margin-bottom: 10px; font-size: 0.95rem; }

/* 频段1互动 */
.self-check-btn { width: 100%; margin-bottom: 15px; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
.check-item { display: flex; align-items: center; cursor: pointer; font-family: monospace; padding: 8px; border: 1px solid var(--sub-color); background: rgba(255,255,255,0.5); transition: 0.2s; }
.check-item:hover { background: rgba(146, 180, 179, 0.2); }
.check-box { width: 18px; height: 18px; border: 1px solid var(--accent-color); margin-right: 10px; position: relative; }
.check-item.checked .check-box::after { content: '✓'; position: absolute; top: -3px; left: 1px; color: var(--accent-color); font-size: 1.2rem; font-weight: bold; }
.check-item.checked { color: var(--accent-color); border-color: var(--accent-color); }
.check-result { color: var(--accent-color); font-weight: bold; margin-top: 10px; opacity: 0; transition: 0.5s; font-family: monospace; }
.check-result.show { opacity: 1; }

/* 频段2音频 */
.audio-list { display: flex; flex-direction: column; gap: 10px; }
.audio-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px dashed var(--sub-color); background: rgba(255,255,255,0.4); }
.play-btn { padding: 6px 15px; font-size: 0.85rem; }
.play-btn.playing { background-color: var(--text-color); }

/* 频段3拍立得 */
.photo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 20px 0; }
.polaroid-thumb { background: #fff; padding: 12px 12px 45px 12px; box-shadow: 2px 4px 15px rgba(0,0,0,0.15); border: 1px solid #e0e0e0; border-radius: 2px; cursor: pointer; width: 220px; filter: sepia(0.15) contrast(1.05); --rot: 0deg; animation: floatPhoto 4s ease-in-out infinite alternate; }
.polaroid-thumb:nth-child(even) { --rot: 3deg; animation-delay: 0.5s; }
.polaroid-thumb:nth-child(odd) { --rot: -2deg; }
@keyframes floatPhoto { 100% { transform: translateY(-10px) rotate(var(--rot)); } }
.polaroid-thumb:hover { z-index: 10; filter: none; }
.polaroid-thumb img { width: 100%; height: 160px; object-fit: cover; border: 1px solid #ddd; background: #eee; }
.polaroid-thumb .caption { position: absolute; bottom: 10px; left: 0; width: 100%; text-align: center; font-family: "Kaiti SC", serif; font-size: 0.9rem; color: #333; padding: 0 10px; line-height: 1.2; }

#photo-viewer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 2000; display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.viewer-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 40, 45, 0.85); backdrop-filter: blur(5px); }
.viewer-card { position: relative; width: 90%; max-width: 400px; height: 500px; transform-style: preserve-3d; transition: transform 0.6s; cursor: pointer; }
.viewer-card.flipped { transform: rotateY(180deg); }
.viewer-front, .viewer-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; background: #FDFBF7; border-radius: 4px; box-shadow: 0 15px 40px rgba(0,0,0,0.4); padding: 20px; display: flex; flex-direction: column; align-items: center; }
.viewer-front img { width: 100%; height: 70%; object-fit: cover; border: 1px solid #ddd; margin-bottom: 20px; }
.viewer-front p { font-family: "Kaiti SC", serif; font-size: 1.2rem; text-align: center; }
.viewer-back { transform: rotateY(180deg); justify-content: center; border: 2px dashed var(--accent-color); }
.viewer-back p { font-family: "Kaiti SC", serif; font-size: 1.15rem; line-height: 1.8; text-align: center; white-space: pre-wrap; }
.viewer-hint { position: absolute; bottom: 15px; font-family: monospace; font-size: 0.8rem; opacity: 0.6; }

/* ==========================================
   频段4：未来升级公告
   ========================================== */
.future-header { text-align: center; padding: 10px 0 20px 0; }
.progress-bar-container { width: 100%; height: 12px; background: rgba(146,180,179,0.2); border-radius: 6px; overflow: hidden; margin: 15px 0; border: 1px solid var(--sub-color); position: relative; }
.progress-bar-fill { height: 100%; width: 85.7%; background: var(--accent-color); border-radius: 6px; position: relative; }
.progress-bar-fill::after { content: '6000 / 7000'; position: absolute; right: 5px; top: -18px; font-family: monospace; font-size: 0.75rem; color: var(--accent-color); }

.release-notes { background: rgba(255,255,255,0.6); border: 1px dashed var(--sub-color); padding: 15px; margin-bottom: 20px; border-radius: 2px; }
.release-notes h4 { font-family: monospace; color: var(--accent-color); margin-bottom: 10px; border-bottom: 1px solid var(--sub-color); padding-bottom: 5px; }
.release-notes ul { list-style: none; font-size: 0.9rem; line-height: 1.6; }
.release-notes li { margin-bottom: 8px; position: relative; padding-left: 15px; }
.release-notes li::before { content: '▹'; position: absolute; left: 0; color: var(--accent-color); }
.release-notes strong { color: var(--text-color); }

.blind-box-section { text-align: center; margin-top: 20px; }
.blind-box-result { font-family: "Kaiti SC", serif; font-size: 1.1rem; color: var(--stamp-color); min-height: 50px; margin-top: 15px; padding: 10px; border-bottom: 2px dotted var(--stamp-color); display: flex; align-items: center; justify-content: center; }