* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-bottom: 90px; /* 给底部导航栏留出空间 */
    color: #333;
}

.container { width: 100%; max-width: 450px; margin: 0 auto; }

/* ================= 抽屉与导航栏专属特效 ================= */
.page-drawer { display: none; animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.page-drawer.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex; justify-content: space-around;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    z-index: 9999; box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

.nav-item {
    text-align: center; color: #95a5a6; cursor: pointer; flex: 1;
    font-size: 0.8rem; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item.active { color: #e74c3c; font-weight: bold; transform: scale(1.05); }
.nav-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }

/* ================= 卡片基础样式 ================= */
.card {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 20px; padding: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6); text-align: center; margin-bottom: 20px;
}
h1 { font-size: 1.6rem; color: #2c3e50; margin-bottom: 8px; }
h2 { font-size: 1.2rem; color: #34495e; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
p.subtitle { font-size: 0.85rem; color: #7f8c8d; margin-bottom: 15px; line-height: 1.4; }

/* ================= 组件细节样式 ================= */
.timer-box { display: flex; justify-content: space-between; }
.time-item { background: #fff; padding: 10px; border-radius: 12px; width: 23%; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.time-num { font-size: 1.4rem; font-weight: bold; color: #3498db; display: block; }
.time-label { font-size: 0.75rem; color: #95a5a6; }

input, textarea, select { width: 100%; padding: 12px; border: 1px solid #dfe6e9; border-radius: 12px; margin-bottom: 12px; font-size: 0.95rem; outline: none; text-align: center; font-family: inherit; }
textarea { text-align: left; resize: none; }
input:focus, textarea:focus, select:focus { border-color: #3498db; }
.input-group { display: flex; gap: 8px; margin-bottom: 12px; }
.input-group input { margin-bottom: 0; }
.input-group button { width: 80px; padding: 0; border-radius: 12px; background: #3498db; color: white; border: none; font-weight: bold; }

.food-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; justify-content: center; }
.food-tag { background: #edf2f7; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; color: #4a5568; display: flex; align-items: center; gap: 6px; }
.delete-btn { cursor: pointer; color: #a0aec0; font-weight: bold; transition: color 0.2s; }
.delete-btn:hover { color: #e53e3e; }

.btn { width: 100%; background: #3498db; color: white; border: none; padding: 12px; font-size: 1rem; font-weight: bold; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.btn:active { transform: scale(0.98); }
.btn-green { background: #2ecc71; }
.btn-purple { background: #9b59b6; }
.btn-pink { background: #fd79a8; }
.result-display { font-size: 1.3rem; font-weight: bold; color: #e74c3c; margin: 10px 0; min-height: 35px; line-height: 35px; }

.photo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 5px; }
.photo-placeholder { background: rgba(0,0,0,0.03); border: 2px dashed #b2bec3; border-radius: 12px; height: 140px; display: flex; align-items: center; justify-content: center; color: #636e72; font-size: 0.85rem; }

.whisper-history { text-align: left; max-height: 250px; overflow-y: auto; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #dfe6e9; display: flex; flex-direction: column; gap: 10px; }
.whisper-item { background: #fff; padding: 12px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.whisper-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: #95a5a6; margin-bottom: 6px; }
.whisper-sender { font-weight: bold; font-size: 0.8rem; }
.sender-tong { color: #fd79a8; }
.sender-pi { color: #3498db; }
.whisper-content { font-size: 0.95rem; color: #2c3e50; word-break: break-all; line-height: 1.5; }