/* ===== 星语暖心屋 —— 匹配护眼小灯塔的一体化布局 ===== */

/* 内容区（导航栏下方） */
.emotion-page {
  background: #FAF7F2;
  min-height: calc(100vh - 60px);
}

/* 居中容器（对齐参考图） */
.emotion-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

/* ===== 二级主题导航 - 高质量美化版 ===== */
.emotion-hero-banner {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,230,190,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(200,220,255,0.2) 0%, transparent 45%),
    linear-gradient(160deg, #FFF9F2 0%, #FDF5EC 30%, #FAF0E4 55%, #F6E9D8 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(232, 168, 66, 0.1);
}

/* 浮动粒子装饰层 */
.emotion-hero-banner .particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.emotion-hero-banner .particles span {
  position: absolute;
  display: block;
  width: 4px; height: 4px;
  background: rgba(240,168,66,0.25);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}
.emotion-hero-banner .particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.emotion-hero-banner .particles span:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; animation-duration: 9s; width: 3px; height: 3px; }
.emotion-hero-banner .particles span:nth-child(3) { left: 40%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.emotion-hero-banner .particles span:nth-child(4) { left: 55%; top: 70%; animation-delay: 0.5s; animation-duration: 8s; width: 5px; height: 5px; background: rgba(107,158,240,0.2); }
.emotion-hero-banner .particles span:nth-child(5) { left: 70%; top: 25%; animation-delay: 3s; animation-duration: 10s; }
.emotion-hero-banner .particles span:nth-child(6) { left: 85%; top: 55%; animation-delay: 1.5s; animation-duration: 7s; width: 3px; height: 3px; background: rgba(240,168,66,0.18); }
.emotion-hero-banner .particles span:nth-child(7) { left: 15%; top: 80%; animation-delay: 4s; animation-duration: 9s; }
.emotion-hero-banner .particles span:nth-child(8) { left: 90%; top: 15%; animation-delay: 2.5s; animation-duration: 8s; width: 4px; height: 4px; background: rgba(107,158,240,0.15); }
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
  50% { transform: translateY(-10px) translateX(-5px); opacity: 0.5; }
  75% { transform: translateY(-30px) translateX(8px); opacity: 0.7; }
}

.emotion-hero-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,168,66,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.emotion-hero-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 5%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,158,240,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.ebanner-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* 标题区 - 增强质感 */
.ebanner-title-wrap {
  text-align: center;
  margin-bottom: 56px;
}
.ebanner-star {
  font-size: 3.4rem;
  margin-bottom: 16px;
  animation: starTwinkle 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 12px rgba(240,168,66,0.35));
}
@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.7; transform: scale(1.15) rotate(5deg); }
}
.ebanner-title {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 3.2rem;
  font-weight: 500;
  color: #5A4036;
  margin: 0 0 18px;
  letter-spacing: 10px;
  text-shadow: 0 2px 16px rgba(90,64,54,0.1);
}
.ebanner-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #E8A838, #F0C060, #E8A838, transparent);
  margin: 0 auto 18px;
  border-radius: 2px;
}
.ebanner-subtitle {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 1.15rem;
  color: #B8A898;
  margin: 0;
  letter-spacing: 4px;
  font-weight: 300;
}

/* ===== 三大入口 - 高质量卡片 ===== */
.ebanner-entries {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}
.ebanner-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 44px 32px;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFFDF9 50%, #FFF8F0 100%);
  border-radius: 26px;
  border: 2px solid transparent;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.8);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  min-width: 240px;
  overflow: hidden;
}
.ebanner-entry::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(240,168,66,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.ebanner-entry:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.08),
    0 20px 48px rgba(240,168,66,0.1),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.ebanner-entry:hover::before {
  opacity: 1;
}

/* 活动卡片 - 金色光晕 */
.ebanner-entry.active {
  border-color: rgba(240,168,66,0.35);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFFBF5 40%, #FFF5E6 100%);
  box-shadow:
    0 4px 16px rgba(240,168,66,0.12),
    0 12px 32px rgba(240,168,66,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.ebanner-entry.active::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,168,66,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ebanner-entry.active:hover {
  box-shadow:
    0 8px 24px rgba(240,168,66,0.18),
    0 20px 48px rgba(240,168,66,0.12),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

/* 图标区域 */
.ebanner-entry .ebe-icon-wrap {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.ebanner-entry:hover .ebe-icon-wrap {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.ebanner-entry .ebe-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ebanner-entry:hover .ebe-icon-img {
  transform: scale(1.1);
}

.ebanner-entry .ebe-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4A4036;
  margin-top: 4px;
}
.ebanner-entry .ebe-desc {
  font-size: 0.9rem;
  color: #B0A8A0;
  letter-spacing: 0.5px;
}

/* 活动角标 - 脉冲星 */
.ebanner-entry .ebe-badge {
  position: absolute;
  top: -6px; right: -6px;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #F0A842, #E8953A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  box-shadow: 0 2px 10px rgba(240,168,66,0.4);
  animation: badgePulse 2.5s ease-in-out infinite;
  z-index: 3;
}
.ebanner-entry .ebe-badge::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(240,168,66,0.25);
  animation: badgeRing 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
@keyframes badgeRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0; }
}

/* 即将上线 - 精致丝带 */
.ebanner-entry .ebe-soon {
  position: absolute;
  top: 0; right: 0;
  font-size: 0.68rem;
  color: #C89540;
  background: linear-gradient(135deg, #FFF5E0, #FFEFD0);
  padding: 4px 12px 4px 14px;
  border-radius: 0 20px 0 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(200,149,64,0.15);
  border-left: 2px solid rgba(200,149,64,0.2);
  border-bottom: 2px solid rgba(200,149,64,0.15);
  z-index: 2;
}

/* 即将上线：禁用态 - 优雅灰度 */
.ebanner-entry.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: linear-gradient(145deg, #FDFCFA 0%, #FAF8F5 100%);
}
.ebanner-entry.disabled .ebe-icon-wrap {
  filter: saturate(0.6) brightness(0.95);
}
.ebanner-entry.disabled:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.ebanner-entry.disabled:hover .ebe-icon-wrap {
  filter: saturate(0.75) brightness(0.98);
}

/* ===== 主布局 ===== */
.emotion-main {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: 100%;
  flex: 1;
  min-height: 0;
  padding: 20px 0;
  box-sizing: border-box;
}

/* ====== 左侧大图 62% ====== */
.main-visual {
  flex: 0 0 62%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  align-self: stretch;
  min-height: 0;
}
.visual-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.6s ease;
}

/* 底部渐变遮罩 */
.visual-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 40%,
    transparent 100%
  );
  pointer-events: none;
}

/* 品牌色光晕（参考图红色光晕改为暖橙色） */
.visual-brand-glow {
  position: absolute;
  top: 20%; left: 0;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at 0% 50%, rgba(240,168,66,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== 叠加文字 - 创意排版 ===== */
.visual-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  pointer-events: none;
}
.visual-overlay > * {
  pointer-events: auto;
}

/* 顶部信息栏 - 极简风格 */
.visual-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.vt-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.vt-greeting {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  letter-spacing: 1px;
  flex: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* 图片返回按钮 */
.img-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.img-reset-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== 创意标题区 - 左上悬浮 ===== */
.visual-title-area {
  position: absolute;
  top: 60px;
  left: 24px;
  max-width: none;
  white-space: nowrap;
}

.vh-title {
  font-family: 'STKaiti', 'KaiTi', 'FangSong', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 6px;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.35),
    0 0 30px rgba(240,168,66,0.15);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

/* 标题装饰星 */
.vh-title::after {
  content: '\u2726';
  position: absolute;
  top: -6px;
  right: -18px;
  font-size: 0.9rem;
  color: #F0C060;
  text-shadow: 0 0 12px rgba(240,192,96,0.6);
  animation: titleStarFloat 2.5s ease-in-out infinite;
}
@keyframes titleStarFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-5px) scale(1.15); opacity: 1; }
}

/* 标题下划线 - 渐变 */
.vh-title-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #F0A842, rgba(240,168,66,0.3), transparent);
  border-radius: 2px;
  margin-bottom: 12px;
  position: relative;
}
.vh-title-line::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -2px;
  width: 7px;
  height: 7px;
  background: #F0A842;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(240,168,66,0.5);
}

/* ===== 底部寄语区 - 杂志风排版 ===== */
.visual-message-area {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 18px 22px 18px 28px;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border-left: 3px solid rgba(240,168,66,0.5);
}

/* 大引号装饰 */
.visual-message-area::before {
  content: '\u201C';
  position: absolute;
  top: -8px;
  left: 14px;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 3.2rem;
  color: rgba(240,168,66,0.35);
  line-height: 1;
  font-weight: 700;
}

.vh-message {
  position: relative;
  padding-left: 4px;
}
.vh-message p {
  margin: 0;
  font-family: 'STKaiti', 'KaiTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* 寄语末尾小装饰 */
.vh-message p::after {
  content: '\u2726';
  margin-left: 6px;
  font-size: 0.7rem;
  color: rgba(240,168,66,0.5);
  vertical-align: middle;
}

/* ====== 右侧数据面板 38% - 高质量美化 ===== */
.main-sidebar {
  flex: 0 0 36%;
  background: linear-gradient(180deg, rgba(255,249,240,0.3) 0%, rgba(255,255,255,0) 20%);
  border-radius: 16px;
}

/* 右侧分节间距 */
.sidebar-section {
  margin-bottom: 14px;
}
.sidebar-section:last-child {
  margin-bottom: 0;
}

/* ===== 数据卡片 - 精致质感 ===== */
.data-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFFCF8 100%);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 12px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(240,168,66,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.data-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240,168,66,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.data-card:hover::before {
  opacity: 1;
}
.data-card:hover {
  box-shadow:
    0 4px 12px rgba(0,0,0,0.06),
    0 12px 32px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-1px);
}
/* 分组间距：组内紧凑，组间留白 */
.data-card.dc-last { margin-bottom: 18px; }
.dc-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #4A4036;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}
.dc-icon { font-size: 1.1rem; }
.dc-icon-warm { color: #E8A838; }
.dc-icon-blue { color: #6B9EF0; }
.dc-icon-cool { color: #90CAF9; }

/* ===== 心情选择 - 高质感 ===== */
.mood-grid {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 10px;
  border: 2px solid rgba(0,0,0,0.04);
  border-radius: 14px;
  background: linear-gradient(145deg, #FAFAF8, #F5F2ED);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  flex: 1;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.mood-btn::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px; height: 3px;
  border-radius: 2px;
  background: #B0A8A0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.mood-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.mood-btn .mood-icon-img {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  object-fit: cover;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.mood-btn .m-label { font-size: 0.72rem; color: #8A8278; font-weight: 500; transition: color 0.3s; margin-top: 2px; }
.mood-btn.selected {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.mood-btn.selected::after {
  transform: translateX(-50%) scaleX(1);
}
.mood-btn.selected .mood-icon-img { animation: moodBounce 0.5s ease; }
@keyframes moodBounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.25) rotate(-5deg); }
  60% { transform: scale(1.1) rotate(3deg); }
}
.mood-btn[data-mood="happy"] { color: #E8A838; }
.mood-btn[data-mood="happy"].selected { border-color: #E8A838; background: linear-gradient(145deg, #FFF8F0, #FFF2E0); }
.mood-btn[data-mood="happy"].selected::after { background: #E8A838; }
.mood-btn[data-mood="happy"].selected .m-label { color: #E8A838; }
.mood-btn[data-mood="calm"] { color: #6BBF8A; }
.mood-btn[data-mood="calm"].selected { border-color: #6BBF8A; background: linear-gradient(145deg, #F0FFF5, #E5F9ED); }
.mood-btn[data-mood="calm"].selected::after { background: #6BBF8A; }
.mood-btn[data-mood="calm"].selected .m-label { color: #6BBF8A; }
.mood-btn[data-mood="sad"] { color: #6B9EF0; }
.mood-btn[data-mood="sad"].selected { border-color: #6B9EF0; background: linear-gradient(145deg, #F0F7FF, #E5F0FF); }
.mood-btn[data-mood="sad"].selected::after { background: #6B9EF0; }
.mood-btn[data-mood="sad"].selected .m-label { color: #6B9EF0; }
.mood-btn[data-mood="angry"] { color: #E07A6E; }
.mood-btn[data-mood="angry"].selected { border-color: #E07A6E; background: linear-gradient(145deg, #FFF5F3, #FFEDEA); }
.mood-btn[data-mood="angry"].selected::after { background: #E07A6E; }
.mood-btn[data-mood="angry"].selected .m-label { color: #E07A6E; }
.mood-btn[data-mood="bored"] { color: #B0A8A0; }
.mood-btn[data-mood="bored"].selected { border-color: #B0A8A0; background: linear-gradient(145deg, #FAFAF8, #F5F2ED); }
.mood-btn[data-mood="bored"].selected::after { background: #B0A8A0; }
.mood-btn[data-mood="bored"].selected .m-label { color: #B0A8A0; }
.mood-btn[data-mood="custom"] { color: #B388FF; }
.mood-btn[data-mood="custom"].selected { border-color: #B388FF; background: linear-gradient(145deg, #F8F0FF, #F0E5FF); }
.mood-btn[data-mood="custom"].selected::after { background: #B388FF; }
.mood-btn[data-mood="custom"].selected .m-label { color: #B388FF; }

.mood-guide {
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #7A756E;
  background: linear-gradient(135deg, #FFF9F0, #FFF5EA);
  border: 1px solid rgba(240,168,66,0.08);
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

/* ===== 输入区 - 高质感 ===== */
.em-textarea {
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  background: linear-gradient(145deg, #FAFAF8, #F7F5F2);
  font-size: 0.88rem;
  color: #4A4036;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  transition: all 0.3s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}
.em-textarea:focus {
  outline: none;
  border-color: #E8A838;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02), 0 0 0 3px rgba(240,168,66,0.1);
}
.char-count { text-align: right; font-size: 0.72rem; color: #B0A8A0; margin-top: 4px; }
.char-count.warn { color: #E07A6E; }

/* 快速填行 - 与自由写合并展示 */
.quick-fill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.qf-label {
  font-size: 0.78rem;
  color: #A89888;
  white-space: nowrap;
  font-weight: 500;
}
.qf-input {
  flex: 1;
  min-width: 80px;
  padding: 8px 12px;
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  background: linear-gradient(145deg, #FAFAF8, #F7F5F2);
  font-size: 0.82rem;
  color: #4A4036;
  font-family: inherit;
  transition: all 0.3s;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.qf-input::placeholder { color: #C8C0B8; }
.qf-input:focus {
  outline: none;
  border-color: #E8A838;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02), 0 0 0 3px rgba(240,168,66,0.1);
}

/* 打卡按钮 - 高质感 */
.checkin-btn {
  width: 100%;
  padding: 13px;
  margin-top: 12px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #D4CFC7, #C8C2BA);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  pointer-events: none;
  letter-spacing: 0.5px;
}
/* 准备就绪：橙色+呼吸动画 */
.checkin-btn.ready {
  background: linear-gradient(135deg, #F0A842, #E8953A);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(240, 168, 66, 0.35);
  animation: btnBreath 2s ease-in-out infinite;
}
.checkin-btn.ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 168, 66, 0.45);
}
.checkin-btn.ready:active {
  transform: translateY(0);
}
@keyframes btnBreath {
  0%, 100% { box-shadow: 0 4px 16px rgba(240, 168, 66, 0.35); }
  50% { box-shadow: 0 4px 24px rgba(240, 168, 66, 0.55); }
}
/* 已打卡：绿色 */
.checkin-btn.done {
  background: linear-gradient(135deg, #6BBF8A, #4CAF7A);
  color: #fff;
  cursor: default;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(76, 175, 122, 0.3);
}

/* ===== 今日统计 ===== */
.today-stats { display: flex; flex-direction: column; gap: 7px; }
.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.stat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-name { color: #7A756E; flex: 1; min-width: 32px; }
.stat-bar-wrap {
  flex: 1;
  height: 6px;
  background: #F5F2ED;
  border-radius: 3px;
  overflow: hidden;
}
.stat-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}
.stat-val { color: #4A4036; font-weight: 600; min-width: 18px; text-align: right; }

.stats-empty {
  text-align: center;
  padding: 16px 0 8px;
  color: #C8C0B6;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ===== 成长树 - 精致质感 ===== */
.tree-wrap { text-align: center; }
.tree-img-wrap {
  width: 100%;
  max-width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.tree-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tree-streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #FFF9F0, #E3F2FD);
  border-radius: 18px;
  font-size: 0.82rem;
  color: #5A554E;
  border: 1px solid rgba(232,168,66,0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.tree-streak .streak-num { font-weight: 700; color: #E8A838; font-size: 1rem; }
.tree-legend {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: #8A8278;
}

/* ===== 趋势图 - 精致质感 ===== */
.chart-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.chart-tab {
  padding: 5px 14px;
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  background: linear-gradient(145deg, #FAFAF8, #F5F2ED);
  color: #8A8278;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.chart-tab:hover { border-color: rgba(0,0,0,0.1); color: #5A554E; }
.chart-tab.active {
  background: linear-gradient(135deg, #4A4036, #3A3530);
  color: #fff;
  border-color: #4A4036;
  box-shadow: 0 2px 8px rgba(74,64,54,0.2);
}
.chart-box { height: 170px; }
.trend-insight {
  margin-top: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #F0F7FF, #EDF5FF);
  border-radius: 12px;
  font-size: 0.78rem;
  color: #5A554E;
  line-height: 1.6;
  border: 1px solid rgba(107,158,240,0.08);
}
.insight-label { font-weight: 600; color: #6B9EF0; }

/* ===== 情绪树洞（信封风格，淡蓝调区分） ===== */
.dc-treehole-card {
  background: linear-gradient(135deg, #F5F9FF, #F0F4FF);
  border-color: #D8E4F4;
}
.dc-treehole-card .dc-title { color: #4A6FA5; }
.th-desc-text {
  font-size: 0.8rem;
  color: #8A8278;
  margin: 0 0 8px;
}
.th-textarea {
  width: 100%;
  min-height: 68px;
  padding: 10px;
  border: 1.5px solid #E8E2DA;
  border-radius: 10px;
  background: #FAFAF8;
  font-size: 0.82rem;
  color: #4A4036;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s;
}
.th-textarea:focus { outline: none; border-color: #A0C4FF; background: #fff; }
.privacy-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  color: #6BBF8A;
  margin: 5px 0 6px;
  padding: 3px 8px;
  background: #E8F5E9;
  border-radius: 14px;
}
.th-submit {
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6B9EF0, #90CAF9);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.th-submit:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(107,158,240,0.3); }

/* 树洞精灵 */
.fairy-reply {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #E8F5E9, #F0F7FF);
  border: 1px solid #C8E6C9;
  animation: fadeUp 0.4s ease;
}
.fairy-reply .fairy-icon { font-size: 1.2rem; margin-bottom: 2px; }
.fairy-reply .fairy-name { font-size: 0.68rem; color: #6BBF8A; margin-bottom: 2px; }
.fairy-reply .fairy-text { font-size: 0.8rem; color: #4A4036; line-height: 1.5; }

/* 树洞历史 */
.th-history { margin-top: 8px; }
.th-item {
  background: #FAFAF8;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  position: relative;
  font-size: 0.8rem;
}
.th-item .th-content { color: #5A554E; line-height: 1.4; }
.th-item .th-time { font-size: 0.65rem; color: #B0A8A0; margin-top: 3px; }
.th-item .th-fairy { margin-top: 5px; padding: 6px; background: #E8F5E9; border-radius: 6px; font-size: 0.75rem; color: #4A4036; }
.th-item .th-delete {
  position: absolute; top: 6px; right: 6px;
  background: none; border: none; color: #B0A8A0;
  cursor: pointer; font-size: 0.8rem; padding: 2px;
  border-radius: 4px; transition: all 0.2s;
}
.th-item .th-delete:hover { background: #FFEBEE; color: #E07A6E; }

/* ===== 打卡历史 ===== */
.checkin-history { max-height: 200px; overflow-y: auto; }
.history-empty { text-align: center; padding: 16px 0; color: #B0A8A0; font-size: 0.8rem; }
.h-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: #FAFAF8;
  border-radius: 8px;
  margin-bottom: 6px;
}
.h-item .h-emoji { font-size: 1.2rem; flex-shrink: 0; }
.h-item .h-body { flex: 1; }
.h-item .h-mood { font-size: 0.68rem; font-weight: 600; margin-bottom: 1px; }
.h-item .h-text { font-size: 0.78rem; color: #5A554E; line-height: 1.4; }
.h-item .h-date { font-size: 0.65rem; color: #B0A8A0; white-space: nowrap; flex-shrink: 0; }

/* ===== 动画 ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 锚点快速导航 ===== */
.sidebar-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 12px;
  background: #FAF7F2;
  border-bottom: 1px solid #F0EBE4;
  margin-bottom: 14px;
}
.sn-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #fff;
  border: 1.5px solid #E8E2DA;
  color: #B0A8A0;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sn-dot:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  color: #4A4036;
}
.sn-dot.active {
  background: #4A4036;
  border-color: #4A4036;
  color: #fff;
  box-shadow: 0 2px 8px rgba(74,64,54,0.2);
}

/* 卡片在 sidebar-section 中垂直排列 */
.sidebar-section .data-card {
  margin-bottom: 14px;
}
.sidebar-section .data-card:last-child {
  margin-bottom: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .emotion-container { padding: 0 24px; }
  .emotion-hero-banner { padding: 36px 0 30px; }
  .ebanner-title { font-size: 2rem; letter-spacing: 3px; }
  .ebanner-subtitle { font-size: 0.95rem; }
  .ebanner-entry { padding: 20px 32px; min-width: 140px; gap: 8px; border-radius: 18px; }
  .ebanner-entry .ebe-icon { font-size: 2rem; }
  .ebanner-entry .ebe-name { font-size: 1rem; }
  .ebanner-entry .ebe-desc { font-size: 0.78rem; }
  .emotion-main {
    flex-direction: column;
    height: auto;
  }
  .main-visual {
    flex: none;
    width: 100%;
    height: 55vh;
    min-height: 380px;
  }
  .main-sidebar {
    flex: none;
    width: 100%;
  }
}
@media (max-width: 520px) {
  .emotion-container { padding: 0 16px; }
  .emotion-hero-banner { padding: 28px 0 24px; }
  .ebanner-title { font-size: 1.6rem; letter-spacing: 2px; }
  .ebanner-subtitle { font-size: 0.85rem; }
  .ebanner-entries { gap: 12px; }
  .ebanner-entry { padding: 16px 20px; min-width: 100px; border-radius: 16px; gap: 6px; }
  .ebanner-entry .ebe-icon { font-size: 1.8rem; }
  .ebanner-entry .ebe-name { font-size: 0.9rem; }
  .ebanner-entry .ebe-desc { font-size: 0.7rem; }
  .emotion-main { padding: 12px 14px; }
  .mood-btn { padding: 8px 4px; }
  .mood-btn .m-emoji { font-size: 1.3rem; }
  .data-card { padding: 14px 16px; }
  .tree-canvas-wrap { height: 180px; }
  .vh-title { font-size: 1.45rem; letter-spacing: 2px; }
}
