/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; overflow: hidden; }

/* ===== 背景 ===== */
body {
    font-family: -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #e8d5f5 0%, #f0d6eb 40%, #f9d0e0 70%, #fce4ec 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* ===== 背景光球装饰 ===== */
body::before {
    content: '';
    position: fixed;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(216,145,239,0.45) 0%, transparent 70%);
    top: -150px; right: -100px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(249,168,212,0.5) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ===== 全局动画 ===== */
@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(200,100,180,0.15); }
    50% { transform: scale(1.04); box-shadow: 0 6px 24px rgba(200,100,180,0.35); }
}

/* ===== 主容器 ===== */
.container {
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ===== 页面切换 ===== */
.screen {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}
.screen.active { display: flex; }
#mainScreen { overflow-y: auto; -webkit-overflow-scrolling: touch; }
#coupleScreen.active { display: block !important; overflow-y: auto; -webkit-overflow-scrolling: touch; }
