/* ======================================= */
/* 0. 全域變數與基礎設定 */
/* ======================================= */
:root {
  --primary: #4caf50;
  --primary-dark: #2e7d32;
  --accent: #81c784;
  --bg-overlay: rgba(255, 255, 255, 0.4);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.8);
  --text-main: #374151;
  --text-muted: #9ca3af;
  --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  --radius: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0; height: 100vh;
  font-family: 'Quicksand', 'Noto Sans TC', sans-serif;
  background-image: url('assets/background.png'); 
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex; justify-content: center; align-items: center;
  color: var(--text-main);
}

.bg-overlay {
  position: absolute; inset: 0;
  background: rgba(241, 251, 246, 0.2);
  backdrop-filter: blur(2px); z-index: 0;
}

/* ======================================= */
/* 1. 主畫面 UI & Logo */
/* ======================================= */
.logo-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 20; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}
.site-logo { height: 60px; width: auto; object-fit: contain; }
@media (max-width: 768px) {
  .site-logo { height: 40px; }
  .logo-container { top: 15px; }
}

.main-stage {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.status-card {
  background: var(--glass); padding: 16px 24px; border-radius: 20px;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  width: 260px; text-align: center; backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.stage-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 700; }
.points-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.progress-track { width: 100%; height: 12px; background: #e0e0e0; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 10px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

.plant-container { width: 320px; height: 320px; display: flex; justify-content: center; align-items: flex-end; }
.plant-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); transition: opacity 0.6s ease, transform 0.6s ease; opacity: 1; transform: scale(1); }

.reset-link { background: none; border: none; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; text-decoration: underline; opacity: 0.6; }
.reset-link:hover { opacity: 1; color: #ef4444; }

/* ======================================= */
/* 2. 按鈕與選單 */
/* ======================================= */
.floating-btn {
  position: fixed; top: 24px; z-index: 10;
  background: var(--glass); border: 2px solid white; padding: 12px 20px; border-radius: 50px;
  font-size: 1rem; font-weight: 700; color: var(--primary-dark); cursor: pointer;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.floating-btn:hover { transform: scale(1.05); }

.left-btn { top: 80px; left: 24px; }   
.left-btn-2 { top: 140px; left: 24px; } 
.right-btn { right: 24px; top: 24px; }  
.right-btn-2 { top: 80px; right: 24px; } 
.right-btn-3 { top: 136px; right: 24px; } 

.desktop-login-btn {
  position: fixed; top: 24px; left: 24px; z-index: 100;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 0 20px; height: 40px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 700; cursor: pointer; color: #555;
  transition: all 0.3s; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.desktop-login-btn:hover { background: white; color: var(--primary-dark); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.bgm-btn {
  position: fixed; z-index: 100; top: 24px; left: 130px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer; transition: all 0.3s; backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.bgm-btn:hover { background: white; transform: scale(1.1); }
.bgm-btn img { width: 20px; height: 20px; object-fit: contain; }

.bottom-left-btn { top: auto; bottom: 24px; left: 24px; background: #333; color: #fff; border-color: #555; }
.bottom-left-btn:hover { background: #000; transform: scale(1.1) rotate(90deg); }

.hamburger-btn {
  position: fixed; top: 24px; left: 24px; z-index: 50;
  background: var(--glass); border: 2px solid white; width: 50px; height: 50px; border-radius: 16px;
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; cursor: pointer; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.hamburger-btn span { display: block; width: 24px; height: 3px; background-color: var(--primary-dark); border-radius: 3px; transition: 0.3s; }

.mobile-nav {
  position: fixed; top: 0; left: 0; width: 280px; height: 100vh;
  background: rgba(255, 255, 255, 0.95); z-index: 200;
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none; flex-direction: column; backdrop-filter: blur(10px);
}
.mobile-nav.open { transform: translateX(0); display: flex; }
.nav-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #eee; }
.nav-header h2 { margin: 0; color: var(--primary-dark); }
.nav-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.nav-list li { padding: 16px 24px; font-size: 1.1rem; font-weight: 700; color: var(--text-main); cursor: pointer; border-bottom: 1px solid #f5f5f5; transition: background 0.2s; }
.nav-list li:active { background: #e8f5e9; }

@media (max-width: 768px) {
  .desktop-controls, .desktop-login-btn, .right-btn-3 { display: none !important; }
  .hamburger-btn { display: flex !important; }
  .mobile-nav { display: flex; }
  .bottom-left-btn { bottom: 16px; left: 16px; padding: 10px; font-size: 1.2rem; }
  .main-stage { margin-top: -40px; }
  .modal-content { width: 90%; padding: 15px; max-height: 85vh; }
  .report-content-wrapper { padding: 10px; }
  .report-card { transform: none; width: 100%; padding: 20px 15px; }
  .report-actions-group { margin-top: 0; gap: 10px; }
  .bgm-btn { top: 24px; right: 24px; left: auto; width: 46px; height: 46px; }
  .bgm-btn img { width: 24px; height: 24px; }
}

/* ======================================= */
/* 3. Modal 樣式 */
/* ======================================= */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; justify-content: center; align-items: center; z-index: 100; opacity: 0; transition: opacity 0.3s; overflow-y: auto; }
.modal.show { display: flex; opacity: 1; }
.modal-content { background: #fff; width: 90%; max-width: 600px; border-radius: var(--radius); padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s; display: flex; flex-direction: column; max-height: 85vh; position: relative; z-index: 101; }
.modal.show .modal-content { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-header h2 { margin: 0; font-size: 1.4rem; color: var(--primary-dark); }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); z-index: 102; }
.modal-body { flex: 1; overflow-y: auto; padding-right: 4px; padding-bottom: 10px; }
.hint-text { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ✨ 修改：縮減寬度以防 Hover 溢出 */
.primary-btn { 
  background: var(--primary); color: white; border: none; 
  padding: 12px 24px; border-radius: 50px; font-size: 1rem; font-weight: 700; 
  cursor: pointer; margin-top: 10px; 
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3); 
  transition: transform 0.2s; 
  width: 90%; /* 限制寬度 */
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.primary-btn:hover { transform: scale(1.05); background: var(--primary-dark); }

.task-list { list-style: none; padding: 0; margin: 0; }
.task-item { display: flex; align-items: center; padding: 12px; border-bottom: 1px solid #f0f0f0; transition: background 0.2s; }
.task-item:hover { background: #f9fafb; }
.task-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; margin-right: 12px; flex-shrink: 0; }
.task-item label { flex: 1; font-size: 1rem; cursor: pointer; color: var(--text-main); font-weight: 500; line-height: 1.5; }
.task-item.done label { text-decoration: line-through; color: #bdc3c7; }

/* ======================================= */
/* 4. 關於我們 & 團隊輪播 (✨ 重點修改) */
/* ======================================= */
.about-content { max-width: 600px; height: 80vh; display: flex; flex-direction: column; }
.tab-container { display: flex; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 12px; background: none; border: none; border-bottom: 3px solid transparent; font-size: 1rem; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.3s; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover { background: #f9fafb; }
.tab-content { flex: 1; overflow-y: auto; padding-right: 5px; }
.tab-pane { display: none; animation: fadeIn 0.3s; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.feature-box { background: #f0fdf4; padding: 15px; border-radius: 12px; margin-top: 15px; }
.feature-box h4 { margin-top: 0; color: var(--primary-dark); }
.feature-box ul { padding-left: 20px; margin-bottom: 0; }
.feature-box li { margin-bottom: 8px; }

/* ✨ 修改：恢復教學列表樣式 */
.tutorial-list { 
  padding-left: 0; 
  list-style: none; /* 移除預設 1. 2. 3. */
}
.tutorial-list li { 
  margin-bottom: 15px; 
  color: var(--primary-dark); 
  font-weight: 700; 
}
.tutorial-list p { 
  font-weight: normal; 
  color: var(--text-main); 
  margin: 5px 0 0 0; 
  font-size: 0.95rem; 
  line-height: 1.5;
}

/* ✨ 團隊輪播 (樣式重寫) */
.team-carousel-container { 
  display: flex; 
  align-items: center; 
  justify-content: center; /* 置中 */
  gap: 15px; /* 箭頭與卡片距離 */
  width: 100%; 
  position: relative;
}

.team-carousel { 
  flex: 1; 
  max-width: 400px; /* 限制最大寬度，讓它看起來更緊湊 */
  background: #f9fafb; 
  border-radius: 16px; 
  padding: 30px 20px; /* 增加 padding */
  border: 1px solid #eee; 
  text-align: center; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
  min-height: 260px; /* 增加高度 */
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
}

.member-card { animation: fadeIn 0.4s ease-in-out; }
.member-photo { width: 100px; height: 100px; border-radius: 50%; background: #ddd; margin: 0 auto 15px; object-fit: cover; border: 4px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.member-name { font-size: 1.3rem; font-weight: 700; color: var(--text-main); display: block; margin-bottom: 4px; }
.member-title { font-size: 0.9rem; color: var(--primary); font-weight: 700; display: block; margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase; }
.member-quote { font-size: 0.95rem; color: #555; line-height: 1.6; font-style: italic; margin: 0; }

.carousel-btn { 
  background: white; 
  border: 1px solid #ddd; 
  width: 40px; height: 40px; 
  border-radius: 50%; 
  font-size: 1.5rem; 
  cursor: pointer; 
  color: var(--text-muted); 
  transition: all 0.2s; 
  display: flex; justify-content: center; align-items: center; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
  flex-shrink: 0; 
  z-index: 5; /* 確保在最上層 */
}
.carousel-btn:hover { background: var(--primary); color: white; border-color: var(--primary); transform: scale(1.1); }

/* ======================================= */
/* 5. 個人檔案 (PROFILE) & Avatar Selector */
/* ======================================= */
.profile-header-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.avatar-wrapper { position: relative; width: 100px; height: 100px; margin-bottom: 10px; cursor: pointer; display: inline-block; }
.profile-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.15); transition: transform 0.2s, filter 0.2s; }
.avatar-wrapper:hover .profile-avatar { transform: scale(1.05); filter: brightness(0.9); }
.image-icon { position: absolute; bottom: 0; right: 0; width: 32px; height: 32px; background: white; border-radius: 50%; padding: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); pointer-events: none; object-fit: contain; z-index: 2; }
.avatar-content { max-width: 500px; height: 60vh; display: flex; flex-direction: column; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 15px; padding: 15px; overflow-y: auto; justify-items: center; }
.avatar-option { width: 70px; height: 70px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: all 0.2s; object-fit: cover; background: #f0f0f0; }
.avatar-option:hover { transform: scale(1.1); box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-color: var(--primary); }

.profile-name-box { display: flex; align-items: center; justify-content: center; position: relative; }
#profile-nickname { font-family: 'Quicksand', 'Noto Sans TC', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text-main); border: none; background: transparent; text-align: center; width: 180px; border-bottom: 2px solid transparent; transition: 0.3s; }
#profile-nickname:focus { outline: none; border-bottom: 2px solid var(--primary); }
.edit-icon { font-size: 1rem; color: var(--text-muted); cursor: pointer; margin-left: 5px; }

.profile-stats-card { background: #f9fafb; border-radius: 16px; padding: 15px; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; border: 1px solid #eee; }
.level-badge { background: var(--primary); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3); flex-shrink: 0; }
.level-progress-box { flex: 1; }
.level-info { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 5px; font-weight: 700; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.p-stat { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; }
.p-val { font-size: 1.2rem; font-weight: 800; color: var(--text-main); }
.p-label { font-size: 0.75rem; color: var(--text-muted); }

/* DevTools & Report */
.dev-content { border: 2px solid #333; background: #fff; max-width: 800px; } 
.dev-option { margin-bottom: 20px; }
.dev-actions { margin-bottom: 20px; background: #f5f5f5; padding: 15px; border-radius: 12px; }
.dev-actions h3 { margin: 0 0 10px 0; font-size: 1rem; color: #333; }
.action-buttons { display: flex; gap: 10px; }
.dev-btn { flex: 1; padding: 10px; border: none; border-radius: 8px; cursor: pointer; color: white; font-weight: bold; transition: transform 0.2s; text-align: center; }
.dev-btn:hover { transform: scale(1.02); }
.dev-btn.danger { background: #ef4444; }
.dev-btn.success { background: #10b981; }
.log-container { background: #1e1e1e; color: #00ff00; font-family: 'Courier New', Courier, monospace; font-size: 0.85rem; padding: 12px; border-radius: 8px; height: 200px; overflow-y: auto; border: 1px solid #444; margin-bottom: 10px; white-space: pre-wrap; }

/* --- Report Card 優化樣式 --- */

.report-content-wrapper {
  max-width: 450px; /* 稍微加寬給左右欄位空間 */
  width: 95%;
  background: #f7f9f8;
  max-height: 95vh;
  overflow-y: auto;
  padding: 20px;
}

.report-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  border: 4px solid #fff;
  z-index: 1;
}

.report-card::before {
  content: ""; position: absolute; top: -50px; left: -50px; width: 150px; height: 150px;
  background: rgba(255, 255, 255, 0.4); border-radius: 50%; z-index: -1;
}

.report-card::after {
  content: ""; position: absolute; bottom: -30px; right: -30px; width: 100px; height: 100px;
  background: rgba(255, 255, 255, 0.5); border-radius: 50%; z-index: -1;
}

/* 確保內容在裝飾層之上 */
.report-header, .report-title, .report-plant-box, .report-status, .report-stats, .report-footer {
  position: relative; z-index: 2;
}

/* ✨ 新增 Footer 左右分欄佈局 */
.report-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(0,0,0,0.1);
  padding-top: 15px;
  margin-top: 20px;
  text-align: left; /* 左側文字靠左 */
}

.footer-left {
  flex: 1;
  padding-right: 10px;
}

.footer-left p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 4px 0;
}

.footer-right {
  flex-shrink: 0;
}

/* ✨ QR Code 圖片樣式 */
.report-qrcode {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.report-date {
  display: block;
  font-size: 0.7rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-top: 4px;
}

#congrats-modal { pointer-events: auto; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ======================================= */
/* 6. 其他 Modal & DevTools */
/* ======================================= */
.dev-content { border: 2px solid #333; background: #fff; max-width: 800px; } 
.dev-option { margin-bottom: 20px; }
.dev-actions { margin-bottom: 20px; background: #f5f5f5; padding: 15px; border-radius: 12px; }
.dev-actions h3 { margin: 0 0 10px 0; font-size: 1rem; color: #333; }
.action-buttons { display: flex; gap: 10px; }
.dev-btn { flex: 1; padding: 10px; border: none; border-radius: 8px; cursor: pointer; color: white; font-weight: bold; transition: transform 0.2s; text-align: center; }
.dev-btn:hover { transform: scale(1.02); }
.dev-btn.danger { background: #ef4444; }
.dev-btn.success { background: #10b981; }
.log-container { background: #1e1e1e; color: #00ff00; font-family: 'Courier New', Courier, monospace; font-size: 0.85rem; padding: 12px; border-radius: 8px; height: 200px; overflow-y: auto; border: 1px solid #444; margin-bottom: 10px; white-space: pre-wrap; }

/* 其他保留樣式 (Seed, Book, Garden, Report, Congrats, Animations) - 保持原樣 */
.seed-content { max-width: 550px; text-align: center; }
.seed-grid { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-top: 20px; }
.seed-card { width: 100px; cursor: pointer; padding: 10px; border: 2px solid transparent; border-radius: 12px; transition: 0.2s; }
.seed-card:hover { background: #f0fdf4; border-color: var(--primary); transform: scale(1.05); }
.seed-card img { width: 60px; height: 60px; object-fit: contain; }
.seed-card span { display: block; text-align: center; font-weight: 700; margin-top: 5px; color: var(--text-main); }
.book-content { max-width: 650px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; padding: 10px 0; }
.book-item { background: #f9f9f9; border-radius: 16px; border: 2px solid #eee; padding: 15px; text-align: center; transition: all 0.3s; opacity: 0.6; filter: grayscale(100%); }
.book-item.unlocked { opacity: 1; filter: grayscale(0%); border-color: var(--primary); background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.book-img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 8px; }
.book-name { font-weight: 700; color: var(--text-main); font-size: 1rem; }
.book-info { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.book-count { font-size: 0.75rem; color: var(--primary); font-weight: 700; margin-top: 2px; background: #e8f5e9; border-radius: 10px; padding: 2px 8px; display: inline-block; }
.unlock-status { text-align: center; margin-bottom: 15px; font-weight: 700; color: var(--primary-dark); }
.garden-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px; padding: 10px 0; }
.garden-item { text-align: center; background: #f9f9f9; padding: 10px; border-radius: 16px; border: 1px solid #eee; }
.garden-item img { width: 60px; height: 60px; object-fit: contain; }
.garden-date { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }
.congrats-content { text-align: center; align-items: center; max-width: 400px; }
.congrats-img-box { margin: 20px 0; }
.congrats-img { width: 150px; animation: bounce 2s infinite; }

/* 手機版調整 */
@media (max-width: 768px) {
  .report-content-wrapper {
    padding: 10px;
  }
  .report-card {
    transform: none; 
    width: 100%;
    padding: 20px 15px;
  }
  .report-actions-group {
    margin-top: 0;
    gap: 10px;
  }
}

.report-plant-box { width: 180px; height: 180px; margin: 0 auto 10px; display: flex; justify-content: center; align-items: flex-end; background: rgba(255,255,255,0.6); border-radius: 50%; backdrop-filter: blur(4px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.report-plant-box img { max-width: 85%; max-height: 85%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); }
.report-status { font-size: 1.1rem; color: var(--primary); font-weight: 700; margin-bottom: 24px; }
.report-stats { display: flex; justify-content: space-between; gap: 5px; background: rgba(255,255,255,0.8); padding: 15px; border-radius: 16px; margin-bottom: 20px; }
.stat-item { flex: 1; align-items: center; display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.report-footer { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; border-top: 1px dashed rgba(0,0,0,0.1); padding-top: 15px; }
.report-actions-group { width: 100%; display: flex; justify-content: center; gap: 15px; margin-top: 10px; }
.icon-btn { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 10px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; align-items: center; width: 80px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.icon-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); border-color: var(--primary); }
.icon-btn img { width: 32px; height: 32px; margin-bottom: 5px; object-fit: contain; }
.icon-btn span { font-size: 0.75rem; color: var(--text-main); font-weight: 700; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 頭貼容器 (Avatar Wrapper) */
.avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
  cursor: pointer;
  display: inline-block; /* 確保容器大小正確 */
}

/* 頭貼圖片本體 */
.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.2s, filter 0.2s;
}

.avatar-wrapper:hover .profile-avatar {
  transform: scale(1.05);
  filter: brightness(0.9); /* 滑鼠移過去稍微變暗，暗示可點擊 */
}

/* 提示圖示 (Image Icon) */
.image-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  pointer-events: none; /* 讓點擊直接穿透到下方的 wrapper */
  object-fit: contain;
  z-index: 2;
}

/* 頭貼選擇視窗 (Avatar Modal) 內容 */
.avatar-content {
  max-width: 500px;
  height: 60vh;
  display: flex;
  flex-direction: column;
}

/* 圖片網格 */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 15px;
  padding: 15px;
  overflow-y: auto;
  justify-items: center;
}

/* 選單中的選項圖片 */
.avatar-option {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  object-fit: cover;
  background: #f0f0f0;
}

.avatar-option:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-color: var(--primary);
}
