/* --- 基础设定与纸张质感 --- */
body {
    margin: 0; padding: 0; 
    background-color: #f6f5f0; 
    color: #33322e;
    font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif; 
    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)' opacity='0.04'/%3E%3C/svg%3E"); 
    overflow: hidden; 
    -webkit-tap-highlight-color: transparent;
}

/* 墨浸选区效果 */
::selection { background: rgba(51, 50, 46, 0.85); color: #f6f5f0; text-shadow: none; }
::-moz-selection { background: rgba(51, 50, 46, 0.85); color: #f6f5f0; text-shadow: none; }

/* 全局纸张呼吸感 */
body::after {
    content: ""; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(26, 24, 20, 0.07) 100%);
    opacity: 0; pointer-events: none; z-index: 9999; transition: opacity 2s ease;
}
body.music-on::after { animation: paperBreathe 6s ease-in-out infinite alternate; }

/* 物理折痕 */
.crease-vertical {
    position: fixed; top: 0; left: 50%; width: 1px; height: 100vh;
    background: linear-gradient(to right, rgba(0,0,0,0.015), rgba(255,255,255,0.03), transparent);
    pointer-events: none; z-index: 0;
}
.crease-horizontal {
    position: fixed; top: 50%; left: 0; width: 100vw; height: 1px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.015), rgba(255,255,255,0.03), transparent);
    pointer-events: none; z-index: 0;
}

/* --- 布局与容器 --- */
.scroll-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
    overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; 
    display: flex; flex-direction: column; z-index: 5;
}
.scroll-wrapper::-webkit-scrollbar { display: none; }
.scroll-wrapper { -ms-overflow-style: none; scrollbar-width: none; }
.spacer { flex-grow: 1; min-height: 20px; }

.container {
    width: 100%; max-width: 600px; margin: 0 auto;
    padding: 40px 20px 120px 20px; box-sizing: border-box; position: relative;
    display: flex; flex-direction: column; align-items: center; 
}

/* --- 交互元素 --- */
.time-greeting {
    position: fixed; top: 30px; left: 35px;
    font-family: "Times New Roman", Times, serif; font-size: 0.65rem;
    letter-spacing: 4px; color: #33322e; opacity: 0;
    z-index: 100; pointer-events: none; transition: opacity 2.5s ease;
}

.ink-wrapper {
    display: flex; flex-direction: column; align-items: center;
    height: 130px; margin: 0 auto; justify-content: flex-start; z-index: 10;
}
.ink-line {
    width: 1px; background: linear-gradient(to bottom, transparent, rgba(51,50,46,0.3) 15%, rgba(51,50,46,0.5) 85%, transparent);
    animation: drawLine 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; transform-origin: top center; transition: height 0.8s ease; 
}
body.music-on .ink-line { animation: drawLine 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, linePulse 6s ease-in-out infinite alternate; }

.click-area {
    position: relative; width: 80px; height: 80px; display: flex; justify-content: center; align-items: center;
    cursor: pointer; margin-top: -20px; 
}
.ink-dot {
    width: 4px; height: 4px; border-radius: 50%; background-color: #33322e; opacity: 0;
    position: relative; z-index: 2;
    animation: dropDot 1.5s ease-out 1.5s forwards, breathDot 6s ease-in-out 3s infinite;
    transition: transform 0.4s ease, background-color 0.4s ease;
}
body.music-on .ink-dot { animation: dropDot 1.5s ease-out 0s forwards, musicDotBreathe 4s ease-in-out infinite alternate; }

.ripple {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 2px; height: 2px; border-radius: 50%; border: 1px solid rgba(51, 50, 46, 0.2); 
    opacity: 0; z-index: 1; pointer-events: none; animation: rippleEffect 3s ease-out 2.5s infinite;
}

.read-hint {
    position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
    font-family: "Times New Roman", Times, serif; font-size: 0.65rem;
    letter-spacing: 4px; text-indent: 4px; color: #33322e; opacity: 0;
    pointer-events: none; transition: opacity 0.5s ease;
}
.read-hint.show { opacity: 0.35; animation: floatHint 3s ease-in-out infinite alternate; }

.divider {
    width: 30px; height: 1px; margin: 15px 0 35px 0; 
    background-image: radial-gradient(circle, rgba(51,50,46,0.3) 1px, transparent 1px);
    background-size: 4px 1px; opacity: 0; animation: fadeInHint 2s ease-out 3.5s forwards; 
}

/* --- 内容样式 --- */
.intro-section { text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro-title { font-size: 1.8rem; font-weight: 300; letter-spacing: 20px; margin: 0 0 15px 20px; color: #222; }
.intro-subtitle { font-family: "Times New Roman", Times, serif; font-size: 0.65rem; letter-spacing: 8px; text-transform: uppercase; opacity: 0.35; margin: 0; margin-left: 8px; }

.long-text { text-align: justify; font-size: 1rem; line-height: 2.3; letter-spacing: 2px; max-width: 520px; margin: 0 auto; position: relative; z-index: 10;}
.long-text p { 
    margin-bottom: 2em; text-indent: 2em; 
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
    opacity: 0.3; filter: blur(1.5px); transform: scale(0.98);
}
.long-text p.focus { opacity: 0.9; filter: blur(0px); transform: scale(1); }
.long-text p:first-child { text-indent: 0; text-align: center; }

.bold-text {
    font-weight: 900 !important; color: #111 !important; letter-spacing: 1.5px;
    text-shadow: 0px 0px 10px rgba(0,0,0,0.1), 0px 0px 2px rgba(0,0,0,0.25);
    border-bottom: 1px dashed rgba(51, 50, 46, 0.4); padding-bottom: 3px;
}
.highlight-quote { 
    margin-top: 50px; font-size: 1.15rem; font-weight: 800; color: #000; 
    letter-spacing: 3px; text-align: center; text-indent: 0; 
    opacity: 1 !important; filter: none !important; transform: none !important;
}
.marker { background: linear-gradient(transparent 65%, rgba(130, 160, 220, 0.4) 65%); padding: 0 4px; }

/* --- 音乐控件 --- */
.music-player {
    position: fixed; bottom: 30px; right: 35px; display: flex; align-items: flex-end; gap: 10px;
    cursor: pointer; opacity: 0.25; transition: opacity 0.4s ease; z-index: 100;
}
.music-player:hover { opacity: 0.7; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 12px; margin-bottom: 2px; }
.bar { width: 1px; background-color: #33322e; height: 3px; transition: height 0.3s ease; }
.music-player.playing .bar { animation: soundBounce 0.8s infinite alternate ease-in-out; }
.music-player.playing .bar:nth-child(1) { animation-delay: 0s; }
.music-player.playing .bar:nth-child(2) { animation-delay: 0.2s; }
.music-player.playing .bar:nth-child(3) { animation-delay: 0.4s; }
.music-text { font-family: "Times New Roman", Times, serif; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; }

/* --- 动画帧 --- */
.fade-element { transition: opacity 0.8s ease, transform 0.8s ease; width: 100%; }
.fade-out { opacity: 0 !important; transform: translateY(15px); pointer-events: none; }
.fade-in { opacity: 1 !important; transform: translateY(0); pointer-events: auto; }

@keyframes drawLine { 0% { height: 0; opacity: 0; } 100% { height: 60px; opacity: 1; } }
@keyframes rippleEffect { 0% { width: 2px; height: 2px; opacity: 0; } 20% { opacity: 1; } 100% { width: 55px; height: 55px; opacity: 0; } }
@keyframes fadeInHint { 0% { opacity: 0; transform: translateY(5px); } 100% { opacity: 0.35; transform: translateY(0); } }
@keyframes floatHint { 0% { transform: translateX(-50%) translateY(0); } 100% { transform: translateX(-50%) translateY(4px); } }
@keyframes linePulse { 0% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(1.04); opacity: 0.8; } 100% { transform: scaleY(0.96); opacity: 1; } }
@keyframes dropDot { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 0.4; transform: translateY(0); } }
@keyframes breathDot { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.15; transform: scale(0.7); } }
@keyframes paperBreathe { 0% { opacity: 0.1; } 100% { opacity: 0.9; } }
@keyframes musicDotBreathe { 0% { opacity: 0.4; box-shadow: 0 0 0px rgba(51,50,46,0); } 100% { opacity: 0.65; box-shadow: 0 0 6px rgba(51,50,46,0.3); } }
@keyframes soundBounce { 0% { height: 3px; } 100% { height: 12px; } }

/* --- 移动端 --- */
@media (max-width: 600px) {
    .container { padding: 40px 20px 100px 20px; }
    .intro-title { font-size: 1.5rem; letter-spacing: 16px; margin-left: 16px; }
    .long-text { font-size: 0.95rem; line-height: 2.2; letter-spacing: 1.5px; }
    .music-player { bottom: 25px; right: 25px; }
    @keyframes drawLine { 0% { height: 0; opacity: 0; } 100% { height: 50px; opacity: 1; } }
    .ink-wrapper { height: 110px; }
}