/* --- 基础重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body, html { width: 100%; height: 100%; overflow: hidden; background-color: #050404; color: #e6cbb3; font-family: 'Cormorant Garamond', 'Noto Serif SC', serif; user-select: none; -webkit-user-select: none; touch-action: none; }

/* --- 环境层 --- */
.bg-base {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 60%, #1a1212 0%, #080606 55%, #000000 100%);
    z-index: 0;
}

.bg-noise {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.05; pointer-events: none; z-index: 1;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#canvas-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

.vignette {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%);
    z-index: 3; pointer-events: none;
}

/* --- 内容层 --- */
#app {
    position: relative; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    z-index: 10; cursor: pointer;
}

/* 神圣光韵 */
.text-aura {
    position: absolute;
    top: 50%; left: 50%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 220, 180, 0.12) 0%, rgba(200, 150, 100, 0.03) 45%, transparent 70%);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none; z-index: 15;
    border-radius: 50%; filter: blur(35px);
    transition: opacity 4s ease-out, transform 4s ease-out;
}

body.is-holding .text-aura {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2.8);
    transition: opacity 7s cubic-bezier(0.25, 0.1, 0.25, 1), transform 7s ease-out;
}

.poem-wrapper {
    max-width: 85%; width: 640px;
    text-align: center;
    opacity: 0; transform: scale(0.96); filter: blur(12px);
    transition: opacity 4s ease-out, filter 4s ease-out, transform 4s ease-out;
    position: relative; z-index: 20;
}

body.is-holding .poem-wrapper {
    opacity: 1; filter: blur(0px); transform: scale(1);
    transition: opacity 7s cubic-bezier(0.25, 0.1, 0.25, 1), 
                filter 7s cubic-bezier(0.25, 0.1, 0.25, 1), 
                transform 7s ease-out;
}

.poem-en {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem; line-height: 1.3; margin-bottom: 2rem;
    font-weight: 400; font-style: italic;
    color: #fff5eb;
    text-shadow: 0 0 20px rgba(255, 210, 160, 0.3); 
}

.poem-cn {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.05rem; line-height: 1.8;
    color: #dccbb5;
    margin-bottom: 2.5rem; font-weight: 300; letter-spacing: 0.12em;
}

.meta-info {
    border-top: 1px solid rgba(140, 110, 100, 0.2);
    padding-top: 20px; display: flex; flex-direction: column; gap: 5px;
    font-family: 'Cormorant Garamond', serif; color: #8f7e75;
    font-size: 0.8rem; letter-spacing: 0.05em;
    transition: color 7s ease;
}
body.is-holding .meta-info { color: #c4b6ad; }
.meta-author { text-transform: uppercase; font-weight: 600; letter-spacing: 0.15em; }
.meta-source { font-style: italic; opacity: 0.8; }

/* --- 提示语 --- */
.hint-container {
    position: absolute; bottom: 12%;
    text-align: center; pointer-events: none;
    opacity: 0.7;
    /* 放开后：等待2.5秒，然后用2.5秒缓慢出现 */
    transition: opacity 2.5s ease-in-out 2.5s; 
    animation: breathe-hint 4s ease-in-out infinite;
}

body.is-holding .hint-container {
    opacity: 0;
    transition: opacity 0.6s ease-out 0s;
    animation: none;
}

.hint-text {
    font-family: 'Noto Serif SC', serif; font-size: 0.8rem;
    color: #756666; letter-spacing: 0.4em; text-transform: uppercase;
    margin-bottom: 10px;
}
.hint-sub {
    font-family: 'Cormorant Garamond', serif; font-size: 0.75rem;
    color: #5c4f4f; letter-spacing: 0.1em; font-style: italic;
}

@keyframes breathe-hint {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

/* 诗句出现后的呼吸感 */
body.is-holding .poem-wrapper {
    opacity: 1; filter: blur(0px); transform: scale(1);
    transition: opacity 7s cubic-bezier(0.25, 0.1, 0.25, 1), 
                filter 7s cubic-bezier(0.25, 0.1, 0.25, 1), 
                transform 7s ease-out;
    animation: breathe-poem 6s ease-in-out infinite 2s; /* 延迟一点开始呼吸 */
}

@keyframes breathe-poem {
    0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(255, 210, 160, 0.3); }
    50% { transform: scale(1.01); text-shadow: 0 0 25px rgba(255, 220, 180, 0.5); }
}

@media (max-width: 768px) {
    .poem-en { font-size: 1.7rem; }
    .poem-cn { font-size: 1rem; }
    .text-aura { transform: translate(-50%, -50%) scale(0.6); }
}

