/* ============ 作者的话（Halo风格+打字机+呼吸+统一卡片尺寸） ============ */
#daily-say {
  margin: 1.5rem auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 主卡片（与 .card 尺寸匹配） */
.daily-say-main {
  max-width: 600px;
  width: 100%;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
  box-shadow:
    5px 5px 15px rgba(0, 0, 0, 0.05),
    -5px -5px 15px rgba(255, 255, 255, 0.8);
  color: var(--heo-text, #222);
  text-align: center;
  font-family: 'HarmonyOS Sans', 'Noto Sans SC', sans-serif;
  backdrop-filter: blur(12px);
  animation: card-breath 4s ease-in-out infinite;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.daily-say-main:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.08),
    0 0 15px rgba(255, 255, 255, 0.5);
}

/* 呼吸渐变动画 */
@keyframes card-breath {
  0%, 100% { background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.45)); }
  50% { background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.3)); }
}

/* 文字部分 */
.daily-say-text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.6rem;
  font-weight: 500;
  white-space: pre-wrap;
  overflow: hidden;
  border-right: 3px solid var(--heo-main, #6a5acd);
  animation: blink-caret 0.9s step-end infinite;

   /* 防止闪动高度变化 */
  min-height: 3.6em;
  display: inline-block;
  vertical-align: top;
}

/* 光标闪烁 */
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--heo-main, #6a5acd); }
}

/* 作者署名 */
.daily-say-meta {
  font-size: 0.9rem;
  color: var(--heo-white-op, #666);
  margin-bottom: 0.6rem;
  font-style: italic;
}

/* 点赞按钮 */
.like-btn {
  background: linear-gradient(145deg, #6a5acd, #00c6ff);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.like-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.like-btn.liked {
  animation: heart-pop 0.6s ease;
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* 淡入淡出动画 */
.fade-in {
  opacity: 1;
  transition: opacity 0.6s ease;
}
.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 夜间模式 */
[data-theme="dark"] .daily-say-main {
  background: linear-gradient(135deg, rgba(40,40,40,0.85), rgba(60,60,60,0.6));
  box-shadow:
    5px 5px 15px rgba(0, 0, 0, 0.5),
    -5px -5px 15px rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}

[data-theme="dark"] .daily-say-text {
  border-color: #00c6ff;
}

[data-theme="dark"] .like-btn {
  background: linear-gradient(145deg, #00c6ff, #6a5acd);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* 响应式 */
@media (max-width: 768px) {
  .daily-say-main { padding: 16px; }
  .daily-say-text { font-size: 1rem; }
}
@media (max-width: 480px) {
  .daily-say-text { font-size: 0.95rem; }
  .like-btn { font-size: 0.85rem; padding: 0.35rem 0.9rem; }
}
