/* ============================================================
   情绪记录 emotion.s1.css
   橙黄渐变主题 + 玻璃拟态，移动端自适应
   ============================================================ */

.emo-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(255,251,235,0.92));
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.10);
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.emo-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(251,191,36,0.12), transparent 70%);
    pointer-events: none;
}
.emo-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(245,158,11,0.10), transparent 70%);
    pointer-events: none;
}
.emo-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
    animation: emo-breath 3s ease-in-out infinite;
}
@keyframes emo-breath {
    0%, 100% { box-shadow: 0 6px 18px rgba(245,158,11,0.35); }
    50% { box-shadow: 0 6px 26px rgba(251,191,36,0.55); }
}

/* ---------- 登录引导 ---------- */
.emo-login-guide { text-align: center; padding: 34px 16px 26px; position: relative; z-index: 1; }
.emo-login-guide i { font-size: 40px; background: linear-gradient(135deg,#f59e0b,#fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.emo-login-guide h3 { margin: 12px 0 6px; font-size: 1.05rem; color: #1e293b; }
.emo-login-guide p { margin: 0 0 18px; font-size: 0.85rem; color: #64748b; }
.emo-login-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.emo-login-btns a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 26px; border-radius: 999px; text-decoration: none;
    font-size: 0.9rem; font-weight: 600; transition: all .25s ease;
}
.emo-login-btns a.main { background: linear-gradient(135deg,#f59e0b,#fbbf24); color: #fff; box-shadow: 0 6px 16px rgba(245,158,11,0.35); }
.emo-login-btns a.main:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(251,191,36,0.45); }
.emo-login-btns a.ghost { border: 1.5px solid rgba(245,158,11,0.45); color: #b45309; background: rgba(255,255,255,0.7); }
.emo-login-btns a.ghost:hover { background: rgba(245,158,11,0.08); }

/* ---------- Tabs ---------- */
.emo-tabs {
    display: flex; gap: 5px; margin: 6px 0 16px;
    background: rgba(254,243,199,0.55); border: 1px solid rgba(251,191,36,0.28);
    padding: 5px; border-radius: 14px;
    position: relative; z-index: 1;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.emo-tabs::-webkit-scrollbar { display: none; }
.emo-tab {
    flex: 1 0 auto; border: none; background: transparent; cursor: pointer;
    padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
    color: #94a3b8; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    transition: all .22s ease; white-space: nowrap;
}
.emo-tab i { font-size: 0.8rem; }
.emo-tab:hover { color: #b45309; }
.emo-tab.active {
    background: linear-gradient(135deg,#f59e0b,#fbbf24); color: #fff;
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.emo-pane { display: none; animation: emo-slide-in .3s ease; position: relative; z-index: 1; }
.emo-pane.active { display: block; }
@keyframes emo-slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 概览卡 ---------- */
.emo-overview-card {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px; padding: 18px 20px;
    border: 1px solid rgba(251,191,36,0.4);
    box-shadow: 0 6px 20px rgba(245,158,11,0.10);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.emo-overview-main { flex: 1; min-width: 0; }
.emo-overview-label { font-size: 0.78rem; color: #92400e; font-weight: 600; letter-spacing: 0.5px; }
.emo-overview-emoji { font-size: 2.2rem; margin: 4px 0 2px; line-height: 1; }
.emo-overview-sub { font-size: 0.82rem; color: #92400e; }
.emo-overview-side { display: flex; flex-direction: column; gap: 6px; }
.emo-overview-side-item { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: #78350f; font-weight: 500; }
.emo-ov-ico { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.5); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; }

/* ---------- 表单 ---------- */
.emo-form-card {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(251,191,36,0.22);
    border-radius: 16px; padding: 18px;
}
.emo-form-title { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: #92400e; margin-bottom: 16px; }
.emo-form-title i { color: #f59e0b; }

.emo-field { margin-bottom: 14px; }
.emo-field label { display: block; font-size: 0.82rem; font-weight: 600; color: #475569; margin-bottom: 7px; }
.emo-field label i { color: #f59e0b; margin-right: 4px; }
.emo-field input[type="date"], .emo-field input[type="text"] {
    width: 100%; padding: 10px 12px; border: 1.5px solid rgba(251,191,36,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.emo-field input:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }

.emo-notes-input {
    width: 100%; box-sizing: border-box;
    padding: 11px 12px; border: 1.5px solid rgba(251,191,36,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; resize: vertical; min-height: 70px; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.emo-notes-input:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }

/* 情绪选择 */
.emo-mood-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.emo-mood-item {
    flex: 1; min-width: 52px; text-align: center; padding: 10px 4px;
    border: 1.5px solid rgba(251,191,36,0.25); border-radius: 12px;
    cursor: pointer; transition: all .2s; background: #fff;
}
.emo-mood-item .emo-mood-em { font-size: 1.4rem; display: block; }
.emo-mood-item .emo-mood-nm { font-size: 0.72rem; color: #94a3b8; margin-top: 3px; }
.emo-mood-item.active { border-color: #f59e0b; background: rgba(245,158,11,0.08); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245,158,11,0.15); }
.emo-mood-item.active .emo-mood-nm { color: #92400e; font-weight: 600; }

/* 强度选择 */
.emo-intensity-grid { display: flex; gap: 8px; }
.emo-int-item {
    flex: 1; text-align: center; padding: 10px 0;
    border: 1.5px solid rgba(251,191,36,0.25); border-radius: 12px;
    cursor: pointer; transition: all .2s; background: #fff;
    font-size: 0.9rem; font-weight: 600; color: #94a3b8;
}
.emo-int-item.active { border-color: #f59e0b; background: linear-gradient(135deg,#f59e0b,#fbbf24); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }

/* 保存按钮 */
.emo-save-row { display: flex; gap: 10px; margin-top: 6px; }
.emo-save-btn {
    flex: 1; border: none; cursor: pointer;
    padding: 12px 20px; border-radius: 12px;
    font-size: 0.92rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg,#f59e0b,#fbbf24);
    box-shadow: 0 6px 16px rgba(245,158,11,0.35);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .25s ease;
}
.emo-save-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(251,191,36,0.45); }
.emo-cancel-btn {
    border: 1.5px solid rgba(245,158,11,0.4); cursor: pointer;
    padding: 12px 20px; border-radius: 12px;
    font-size: 0.92rem; font-weight: 600; color: #b45309; background: rgba(255,255,255,0.7);
    transition: all .2s;
}
.emo-cancel-btn:hover { background: rgba(245,158,11,0.08); }

/* ---------- 统计页 ---------- */
.emo-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.emo-stat-card {
    background: rgba(255,255,255,0.8); border-radius: 14px; padding: 14px;
    border: 1px solid rgba(251,191,36,0.18);
}
.emo-stat-card.c1 { background: linear-gradient(135deg, #fef3c7, #fff); }
.emo-stat-card.c2 { background: linear-gradient(135deg, #fed7aa, #fff); }
.emo-stat-label { font-size: 0.78rem; color: #64748b; margin-bottom: 6px; }
.emo-stat-label i { margin-right: 4px; }
.emo-stat-value { font-size: 1.5rem; font-weight: 800; color: #1e293b; }
.emo-stat-value small { font-size: 0.8rem; font-weight: 500; color: #64748b; }

.emo-top-title { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: #92400e; margin: 18px 0 12px; }
.emo-top-title i { color: #f59e0b; }

.emo-mood-dist { display: flex; flex-direction: column; gap: 8px; }
.emo-mood-bar { display: flex; align-items: center; gap: 10px; }
.emo-mood-bar .emo-mood-emoji { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(251,191,36,0.12); font-size: 1.1rem; flex-shrink: 0; }
.emo-mood-bar .emo-mood-info { flex: 1; min-width: 0; }
.emo-mood-bar .emo-mood-head { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 4px; }
.emo-mood-bar .emo-mood-head .emo-mood-nm { color: #475569; font-weight: 500; }
.emo-mood-bar .emo-mood-head .emo-mood-pct { color: #94a3b8; }
.emo-mood-bar .emo-mood-track { height: 7px; background: rgba(251,191,36,0.12); border-radius: 999px; overflow: hidden; }
.emo-mood-bar .emo-mood-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }

/* ---------- 历史页 ---------- */
.emo-history-list { display: flex; flex-direction: column; gap: 10px; }
.emo-history-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(251,191,36,0.18);
    border-radius: 12px; padding: 12px 14px;
}
.emo-hist-emoji { font-size: 1.6rem; flex-shrink: 0; }
.emo-hist-info { flex: 1; min-width: 0; }
.emo-hist-date { font-size: 0.85rem; font-weight: 600; color: #1e293b; }
.emo-hist-meta { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.emo-hist-trigger { font-size: 0.78rem; color: #64748b; margin-top: 3px; }
.emo-hist-actions { display: flex; gap: 6px; }
.emo-hist-btn { border: none; background: rgba(245,158,11,0.08); color: #b45309; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; transition: all .2s; }
.emo-hist-btn:hover { background: rgba(245,158,11,0.18); }
.emo-hist-btn.del { color: #ef4444; background: rgba(239,68,68,0.08); }
.emo-hist-btn.del:hover { background: rgba(239,68,68,0.18); }

.emo-empty { text-align: center; padding: 28px 16px; color: #94a3b8; }
.emo-empty i { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; }
.emo-empty div { font-size: 0.85rem; }

/* 分页 */
.emo-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.emo-page-btn {
    border: 1.5px solid rgba(245,158,11,0.3); background: rgba(255,255,255,0.7);
    color: #b45309; width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
    font-size: 0.8rem; transition: all .2s;
}
.emo-page-btn:hover { background: rgba(245,158,11,0.12); }
.emo-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.emo-page-info { font-size: 0.82rem; color: #64748b; font-weight: 600; }

/* ---------- Toast ---------- */
.emo-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #fff; padding: 12px 20px; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; font-weight: 500; z-index: 999999;
    border-left: 4px solid #f59e0b;
    animation: emo-toast-in .3s ease;
    max-width: 90vw;
}
.emo-toast.success { border-left-color: #10b981; }
.emo-toast.error { border-left-color: #ef4444; }
.emo-toast.warning { border-left-color: #f59e0b; }
.emo-toast.info { border-left-color: #3b82f6; }
.emo-toast i { font-size: 1rem; }
.emo-toast.success i { color: #10b981; }
.emo-toast.error i { color: #ef4444; }
.emo-toast.warning i { color: #f59e0b; }
.emo-toast.info i { color: #3b82f6; }
@keyframes emo-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-15px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .emo-card { padding: 14px; border-radius: 16px; }
    .emo-tab { padding: 8px 10px; font-size: 0.78rem; }
    .emo-tab i { display: none; }
    .emo-overview-card { padding: 14px; }
    .emo-overview-emoji { font-size: 1.8rem; }
    .emo-form-card { padding: 14px; }
    .emo-mood-item { min-width: 46px; padding: 8px 2px; }
    .emo-mood-item .emo-mood-em { font-size: 1.2rem; }
    .emo-stat-grid { gap: 8px; }
    .emo-stat-card { padding: 12px; }
    .emo-stat-value { font-size: 1.25rem; }
}
