/* ============================================================
   css/welcome-celebration.css — 首次进入庆祝动效
   韩系法式唯美：暖米纸底 / 玫瑰色 / 金色细线 / 花瓣与光点粒子
   零 emoji，衬线花字，精致缓动，防闪
   ============================================================ */

.wc-overlay {
    position: absolute;
    inset: 0;
    z-index: 2800;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 50% 8%, rgba(196, 168, 106, 0.18), rgba(196, 168, 106, 0) 55%),
        radial-gradient(140% 120% at 50% 100%, rgba(201, 168, 168, 0.16), rgba(201, 168, 168, 0) 60%),
        var(--bg-primary, #F8F4EF);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.wc-overlay.show {
    opacity: 1;
    transition: none; /* open 方向 animation 独占 */
    animation: wcFadeIn 0.5s ease;
}
.wc-overlay.show .wc-card {
    animation: wcCardIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wc-overlay:not(.show) {
    pointer-events: none;
}
/* 关闭方向：.closing 里 animation:none + transition 独占，柔和淡出不闪现 */
.wc-overlay.closing {
    opacity: 0;
    animation: none;
    transition: opacity 0.4s ease;
}

/* 粒子天空 */
.wc-sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.wc-p {
    position: absolute;
    top: -20px;
    border-radius: 50%;
    background: var(--c, var(--rose, #C9A8A8));
    opacity: 0;
    animation: wcFall var(--dur, 6s) linear var(--delay, 0s) forwards;
    will-change: transform, opacity;
}

/* 欢迎卡 */
.wc-card {
    position: relative;
    width: min(300px, 88%);
    text-align: center;
    padding: 30px 24px 26px;
    background: var(--bg-primary, #F8F4EF);
    border: 0.5px solid var(--border, rgba(180, 170, 155, 0.22));
    border-radius: 22px;
    box-shadow: 0 24px 56px rgba(70, 60, 50, 0.18), 0 2px 0 rgba(255, 255, 255, 0.55) inset;
}

.wc-en {
    font-family: var(--font-script, 'Great Vibes', cursive);
    font-size: 26px;
    line-height: 1.1;
    color: var(--rose, #C9A8A8);
    opacity: 0.85;
}

.wc-rule {
    width: 40px;
    height: 1px;
    margin: 12px auto 14px;
    background: var(--gold, #C4A86A);
    opacity: 0.55;
}

.wc-title {
    font-family: var(--font-body, 'Noto Serif SC', 'PingFang SC', 'STSong', 'Georgia', serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary, #1E1C1A);
    margin-bottom: 12px;
}

.wc-sub {
    font-family: var(--font-body, 'Noto Serif SC', 'PingFang SC', 'STSong', 'Georgia', serif);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary, #8A8278);
    margin-bottom: 24px;
}

.wc-btn {
    font-family: var(--font-body, 'Noto Serif SC', 'PingFang SC', 'STSong', 'Georgia', serif);
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--rose, #C9A8A8);
    border: none;
    border-radius: 999px;
    padding: 11px 36px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(200, 160, 160, 0.35), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.wc-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 8px rgba(200, 160, 160, 0.3);
}

/* 点击提示：轻触屏幕继续（柔和呼吸，提示这块可点） */
.wc-hint {
    margin-top: 18px;
    font-family: var(--font-body, 'Noto Serif SC', 'PingFang SC', 'STSong', 'Georgia', serif);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--text-muted, #B5A59A);
    animation: wcHintPulse 2.2s ease-in-out infinite;
}
@keyframes wcHintPulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 0.95; transform: translateY(2px); }
}

@keyframes wcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes wcCardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wcFall {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.85; }
    50%  { transform: translateY(42vh) translateX(18px) rotate(90deg); }
    100% { transform: translateY(96vh) translateX(-14px) rotate(180deg); opacity: 0; }
}
