/* ========================================
   Emergency Escape · 自留地
   墨绿色系 · 阳光树影 · 温暖纸白
   ======================================== */

:root {
  --green-deep: #2D5A3F;
  --green-mid: #3A6B4C;
  --green-soft: #5C8D6F;
  --green-wash: #E8F0EB;
  --green-pale: #F0F5F1;
  --paper: #F9F8F4;
  --paper-warm: #FDFBF7;
  --text: #2D3436;
  --text-light: #636E72;
  --text-muted: #9CA3A0;
  --gold: #C4A35A;
  --gold-light: #F0E4C8;
  --shadow: 0 2px 16px rgba(45, 90, 63, 0.06);
  --shadow-hover: 0 4px 24px rgba(45, 90, 63, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-en: "DM Serif Display", "Georgia", "Times New Roman", serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cn);
  background: var(--paper);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext x='16' y='22' text-anchor='middle' font-size='24'%3E🍟%3C/text%3E%3C/svg%3E") 16 16, auto;
}

/* 全站🍟光标 */
a, button, .card, .essay-item, .photo-bubble, .card-photos img,
.essay-photo, .nav-links a, .lightbox, .brand, .home-block,
[onclick], input[type="submit"], input[type="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext x='16' y='22' text-anchor='middle' font-size='24'%3E🍟%3C/text%3E%3C/svg%3E") 16 16, auto;
}

/* 全页梨花图半透背景 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../images/leaf-blossom.jpg') center/cover no-repeat;
  background-attachment: fixed;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

/* 中心渐变蒙版 — 引导视线聚焦内容，边缘更透 */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(249,248,244,0.65) 0%, rgba(249,248,244,0.35) 60%, rgba(249,248,244,0.15) 100%);
  z-index: 0;
  pointer-events: none;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(58, 107, 76, 0.08);
  padding: 0 2rem;
  transition: var(--transition);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.brand-en {
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--green-deep);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.brand-cn {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-mid);
  background: var(--green-wash);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--green-mid);
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== 主内容区 ===== */
.main-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  min-height: calc(100vh - 180px);
  position: relative;
  z-index: 1;
}

/* ===== 页面标题 ===== */
.page-title {
  font-family: var(--font-en);
  font-size: 2rem;
  color: var(--green-deep);
  margin-bottom: 0.35rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

/* ===== 卡片 ===== */
.card {
  background: var(--paper-warm);
  border: 1px solid rgba(58, 107, 76, 0.07);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-category {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: var(--green-wash);
  color: var(--green-mid);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.card-title {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.5;
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.card-photos img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.card-photos img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* ===== 随笔碎片 ===== */
.essay-feed {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.essay-item {
  background: var(--paper-warm);
  border-left: 3px solid var(--green-soft);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  position: relative;
  transition: var(--transition);
}

.essay-item:hover {
  border-left-color: var(--green-mid);
  background: #fff;
}

.essay-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.essay-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.essay-photo {
  margin-top: 0.8rem;
  max-width: 100%;
  border-radius: var(--radius-sm);
  max-height: 400px;
  object-fit: contain;
}

/* ===== 文章页 ===== */
.article-full {
  max-width: 680px;
  margin: 0 auto;
}

.article-full h1 {
  font-size: 1.8rem;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-full .article-body {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 2;
  white-space: pre-wrap;
  color: var(--text);
}

/* ===== 相册 ===== */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.photo-bubble {
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  box-shadow: 0 4px 20px rgba(45,90,63,0.12);
}

.photo-bubble:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 36px rgba(45,90,63,0.22);
}

.photo-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 留言板 ===== */
.guestbook-form {
  margin-bottom: 2rem;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(58, 107, 76, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-cn);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  background: white;
  transition: var(--transition);
  outline: none;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(58, 107, 76, 0.08);
}

.guestbook-form textarea {
  min-height: 80px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  background: var(--green-mid);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font-cn);
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn:hover {
  background: var(--green-deep);
  box-shadow: 0 4px 12px rgba(45, 90, 63, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--green-mid);
  border: 1.5px solid var(--green-mid);
}

.btn-outline:hover {
  background: var(--green-wash);
  box-shadow: none;
}

.btn-sm {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
}

.message-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(58, 107, 76, 0.06);
  box-shadow: var(--shadow);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.message-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-mid);
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.message-body {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* ===== 关于页 ===== */
.about-section {
  text-align: center;
  padding-top: 2rem;
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,90,63,0.15);
  animation: breathe 3s ease-in-out infinite;
}

.about-name {
  font-family: var(--font-en);
  font-size: 1.6rem;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}

.about-bio {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.about-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-links a {
  color: var(--green-mid);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(58, 107, 76, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.about-links a:hover {
  background: var(--green-wash);
  border-color: var(--green-mid);
}

/* 首页区块 */
.home-block {
  margin-bottom: 2.5rem;
}
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(58, 107, 76, 0.06);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.site-footer .footer-leaf {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--green-soft);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
  cursor: pointer;
}
.site-footer .footer-leaf:hover {
  opacity: 0.8;
}

/* ===== 图片灯箱 ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--green-soft);
}

.empty-state p {
  font-size: 0.95rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--green-mid);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(45, 90, 63, 0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(45, 90, 63, 0.35);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 1rem; }
  .header-inner { height: 56px; }

  .mobile-nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(58, 107, 76, 0.08);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .main-content { padding: 2rem 1rem 4rem; }

  .page-title { font-size: 1.6rem; }

  .photo-grid { gap: 0.75rem; }

  .card-photos {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .photo-grid { gap: 0.6rem; }
  .brand-en { font-size: 1.1rem; }
}

/* ===== 页面过渡动画 ===== */

/* 退出：上浮缩小模糊 */
@keyframes pageExit {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to   { opacity: 0; transform: translateY(-12px) scale(0.97); filter: blur(2px); }
}

/* 进入：从下弹入，微弱过冲回弹 */
@keyframes pageEnter {
  0%   { opacity: 0; transform: translateY(28px) scale(0.96); }
  65%  { opacity: 1; transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.page-section {
  animation: pageEnter 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.page-section.exiting {
  animation: pageExit 0.2s ease forwards;
  pointer-events: none;
}

/* 内容项交错入场 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 导航链接点击波纹 */
.nav-links a {
  position: relative;
  overflow: hidden;
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--green-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.nav-links a:active::after {
  opacity: 0.12;
}

.essay-item:nth-child(1) { animation-delay: 0.05s; }
.essay-item:nth-child(2) { animation-delay: 0.10s; }
.essay-item:nth-child(3) { animation-delay: 0.15s; }

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }

/* ===== 加载页 ===== */
.loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--paper);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-leaf {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  animation: breathe 2.4s ease-in-out infinite;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(45,90,63,0.15);
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.loader-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ========================================
   音乐播放器 — 网易云歌单 · 浮动面板
   ======================================== */

/* 浮动按钮 */
.music-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--green-deep);
  color: var(--gold-light);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(45, 90, 63, 0.25);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.music-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(45, 90, 63, 0.35);
}

.music-btn:active {
  transform: scale(0.95);
}

.music-btn .music-btn-icon {
  display: block;
  line-height: 1;
  transition: transform var(--transition);
}

/* 播放中按钮跳动 */
.music-btn.active {
  background: var(--green-mid);
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(45, 90, 63, 0.25); }
  50%      { box-shadow: 0 4px 32px rgba(58, 107, 76, 0.45); }
}

/* 播放面板 */
.music-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 199;
  width: 320px;
  background: var(--paper-warm);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(45, 90, 63, 0.12);
  border: 1px solid rgba(58, 107, 76, 0.1);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.music-panel.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.music-panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* 唱片封面 */
.music-cover-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.music-cover {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-wash);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: border-color var(--transition);
}

.music-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.9);
  border: 2px solid var(--green-soft);
  pointer-events: none;
}

/* 封面旋转动画 — 播放中 */
@keyframes musicSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 歌曲信息 */
.music-info {
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.music-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  margin: 0 auto;
}

.music-artist {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  margin: 2px auto 0;
}

/* 控制按钮 */
.music-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.music-ctrl {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--green-wash);
  background: transparent;
  color: var(--green-deep);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  outline: none;
  line-height: 1;
}

.music-ctrl:hover {
  background: var(--green-wash);
  border-color: var(--green-soft);
}

.music-ctrl:active {
  transform: scale(0.9);
}

.music-play {
  width: 44px;
  height: 44px;
  font-size: 0.9rem;
  background: var(--green-deep);
  color: var(--paper-warm);
  border: none;
  box-shadow: 0 2px 10px rgba(45, 90, 63, 0.2);
}

.music-play:hover {
  background: var(--green-mid);
  color: var(--paper-warm);
}

/* 进度条容器 */
.music-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.music-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* 可拖动的进度条轨道 */
.music-progress {
  flex: 1;
  height: 6px;
  background: var(--green-wash);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}

.music-progress:hover {
  height: 8px;
  border-radius: 4px;
}

.music-progress-bar {
  height: 100%;
  background: var(--green-soft);
  border-radius: inherit;
  width: 0%;
  transition: width 0.3s linear;
  position: relative;
}

/* 拖动滑块 */
.music-progress-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translate(50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--green-deep);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(45, 90, 63, 0.3);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.music-progress:hover .music-progress-thumb,
.music-progress:active .music-progress-thumb {
  opacity: 1;
}

/* ========================================
   音乐分享卡片
   ======================================== */

.music-share-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.music-share-card {
  display: flex;
  gap: 1rem;
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(58, 107, 76, 0.08);
  box-shadow: var(--shadow);
  transition: var(--transition);
  align-items: flex-start;
}

.music-share-card:hover {
  box-shadow: var(--shadow-hover);
}

.music-share-cover {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.music-share-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-share-cover-fallback {
  width: 100%;
  height: 100%;
  background: var(--green-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: var(--radius-sm);
}

.music-share-info {
  flex: 1;
  min-width: 0;
}

.music-share-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-share-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-share-meta {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.music-share-platform {
  color: var(--green-mid);
}

.music-share-date {
  color: var(--text-muted);
}

.music-share-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.music-share-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--green-mid);
  text-decoration: none;
  transition: var(--transition);
}

.music-share-link:hover {
  color: var(--green-deep);
  text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .music-btn {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .music-panel {
    bottom: 76px;
    right: 10px;
    width: calc(100vw - 20px);
    max-width: 320px;
  }
}

/* ===== 玩玩 · 小玩具 ===== */
.fun-card {
  background: var(--paper-warm);
  border: 1px solid rgba(58, 107, 76, 0.08);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.5s ease forwards;
}
.fun-card:nth-child(2) { animation-delay: 0.08s; }
.fun-card:nth-child(3) { animation-delay: 0.16s; }
.fun-card:nth-child(4) { animation-delay: 0.24s; }
.fun-card:nth-child(5) { animation-delay: 0.32s; }

.fun-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.fun-icon { font-size: 1.4rem; }

.fun-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.5px;
}

.fun-card-body {
  min-height: 60px;
  margin-bottom: 1.2rem;
}

.fun-btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.95rem;
}

.fun-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(58, 107, 76, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-cn);
  font-size: 0.9rem;
  line-height: 1.8;
  background: var(--paper);
  color: var(--text);
  resize: vertical;
  transition: var(--transition);
}
.fun-textarea:focus {
  outline: none;
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(92, 141, 111, 0.1);
}

/* 今日运势 */
.fortune-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.5rem 0;
}

.fortune-drawing {
  text-align: center;
  font-size: 1.1rem;
  color: var(--green-mid);
  padding: 1.5rem 0;
  animation: pulse 0.6s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.6; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.03); }
}

.fortune-result {
  text-align: center;
  animation: fadeInUp 0.4s ease forwards;
}

.fortune-score {
  margin-bottom: 1rem;
}

.fortune-fry {
  font-size: 2rem;
  text-align: center;
  line-height: 1.4;
  animation: fryBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fryBounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.fortune-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  letter-spacing: 1px;
}

.fortune-text {
  font-size: 1rem;
  color: var(--text);
  margin: 0.8rem 0 1rem;
  font-weight: 500;
}

.fortune-detail {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0.4rem 0;
  text-align: left;
  padding-left: 1rem;
}

.fortune-tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 0.4rem;
}
.fortune-yi { background: rgba(92, 141, 111, 0.15); color: var(--green-mid); }
.fortune-ji { background: rgba(196, 100, 80, 0.15); color: #c46450; }

.fortune-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  letter-spacing: 1px;
}

/* 吃什么 */
.food-display {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-deep);
  padding: 1.8rem 0;
  transition: var(--transition);
}

.food-spinning {
  color: var(--green-soft);
  animation: shake 0.08s linear infinite alternate;
}

@keyframes shake {
  from { transform: translateX(-2px); }
  to   { transform: translateX(2px); }
}

.food-picked {
  animation: foodReveal 0.6s ease;
}

@keyframes foodReveal {
  0%   { transform: scale(0.8); opacity: 0.3; }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* 选择困难症 */
.choice-result {
  margin-top: 0.8rem;
  min-height: 40px;
}

.choice-warn {
  color: var(--gold);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}

.choice-rolling {
  text-align: center;
  font-size: 1.1rem;
  color: var(--green-soft);
  font-weight: 600;
  animation: shake 0.07s linear infinite alternate;
}

.choice-final {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text);
  padding: 0.8rem;
  background: var(--green-wash);
  border-radius: var(--radius-sm);
  animation: fadeInUp 0.4s ease forwards;
}
.choice-final strong {
  color: var(--green-deep);
  font-size: 1.25rem;
}

/* 每日一言 */
.quote-display {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-light);
  padding: 1rem 0.5rem;
  text-align: center;
  font-style: italic;
  transition: opacity 0.3s ease;
}

.quote-fade-out { opacity: 0; }
.quote-fade-in { animation: fadeInUp 0.5s ease forwards; }

/* ===== 问卷弹窗 ===== */
.survey-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.survey-overlay.active { opacity: 1; }

.survey-modal {
  background: #fdfcf8;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: surveyIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes surveyIn {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.survey-header {
  padding: 2rem 2rem 0.5rem;
  text-align: center;
}
.survey-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.survey-header h2 {
  font-size: 1.3rem;
  color: var(--green-deep);
  margin: 0 0 0.3rem;
}
.survey-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.survey-body { padding: 1rem 2rem; }

.survey-field {
  margin-bottom: 1.2rem;
}
.survey-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.survey-required { color: #e74c3c; }
.survey-field input[type="text"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #d4cfc4;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.survey-field input[type="text"]:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(58,107,76,0.08);
}
.survey-field textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #d4cfc4;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
  line-height: 1.6;
}
.survey-field textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(58,107,76,0.08);
}
.survey-last {
  background: #fdf6ee;
  border-radius: 12px;
  padding: 1rem;
  border: 1px dashed #e8c97a;
}
.survey-last label { color: #8b6914; }

.survey-footer {
  padding: 1rem 2rem 2rem;
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}
.survey-btn-skip {
  padding: 0.6rem 1.5rem;
  border: 1px solid #ccc;
  background: transparent;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.survey-btn-skip:hover { border-color: #999; color: #666; }
.survey-btn-submit {
  padding: 0.6rem 1.8rem;
  border: none;
  background: var(--green-mid);
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.survey-btn-submit:hover { background: var(--green-deep); transform: translateY(-1px); }
.survey-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}
