/* ==================== 大包子工作站 · 马卡龙主题 v4 ==================== */

:root {
  /* 马卡龙主色调 - 加深版 */
  --charge: #E76F87;          /* 玫瑰粉 - 充电 */
  --charge-bg: #FDE6EC;
  --charge-light: #F5C4D0;
  --charge-dark: #D85A75;
  --entertainment: #9B6FD9;   /* 薰衣草紫 - 娱乐 */
  --entertainment-bg: #F0E6FA;
  --entertainment-light: #D4BEF0;
  --entertainment-dark: #8559C4;
  --parenting: #3DBE8E;       /* 翡翠绿 - 育儿 */
  --parenting-bg: #E0F5EC;
  --parenting-light: #A8DFC8;
  --parenting-dark: #2BA577;
  --profile: #5AA3D8;         /* 海洋蓝 - 我的 */
  --profile-bg: #E8F3FC;
  --profile-light: #B0D5EF;
  --profile-dark: #4488C0;

  /* 全局 */
  --bg: #FFF5F0;
  --bg-soft: #FFF9F5;
  --surface: #FFFFFF;
  --surface-alt: #FAF6F2;
  --border: #E8D8D0;
  --border-light: #F2E8E2;
  --text: #4A3838;
  --text-secondary: #7A6868;
  --text-muted: #AA9898;
  --star: #F0B820;
  --star-bg: #FFF5D6;

  /* 圆角 */
  --r-sm: 8px;
  --r: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;

  /* 阴影 */
  --shadow-xs: 0 1px 3px rgba(120,80,80,0.06);
  --shadow-sm: 0 2px 8px rgba(120,80,80,0.07);
  --shadow: 0 4px 14px rgba(120,80,80,0.09);
  --shadow-md: 0 6px 22px rgba(120,80,80,0.1);
  --shadow-lg: 0 10px 40px rgba(120,80,80,0.12);

  --t: 0.25s cubic-bezier(0.4,0,0.2,1);
  --nav-h: 62px;
}

/* ==================== 全局重置 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
#app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input { font-family: inherit; border: none; outline: none; }
a { color: inherit; text-decoration: none; }

/* ==================== 页面容器 ==================== */
.page {
  flex: 1; overflow: hidden; display: none; flex-direction: column;
  padding-bottom: var(--nav-h);
}
.page.active { display: flex; }

/* ==================== 页头 ==================== */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 8px; flex-shrink: 0; background: var(--surface);
}
.header-left { display: flex; flex-direction: column; gap: 2px; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.3px; }
.update-time { font-size: 0.72rem; color: var(--text-muted); }
.header-refresh {
  width: 38px; height: 38px; border-radius: var(--r);
  background: var(--bg); color: var(--text-secondary);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: var(--t); border: 1px solid var(--border);
}
.header-refresh:active { transform: scale(0.9); }

.page-charge .page-header h1 { color: var(--charge-dark); }
.page-entertainment .page-header h1 { color: var(--entertainment-dark); }
.page-parenting .page-header h1 { color: var(--parenting-dark); }
.page-profile .page-header h1 { color: var(--profile-dark); }

/* ==================== 搜索框 ==================== */
.search-box {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.search-input-wrap {
  flex: 1; position: relative; display: flex; align-items: center;
}
.search-input-wrap i {
  position: absolute; left: 14px;
  font-size: 0.85rem; color: var(--text-muted); pointer-events: none;
}
.search-input {
  width: 100%; height: 38px;
  padding: 0 14px 0 38px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem; color: var(--text);
  transition: var(--t);
}
.search-input::placeholder { color: var(--text-muted); }
.page-charge .search-input:focus { border-color: var(--charge); background: var(--surface); }
.page-entertainment .search-input:focus { border-color: var(--entertainment); background: var(--surface); }
.page-parenting .search-input:focus { border-color: var(--parenting); background: var(--surface); }

/* ==================== 筛选行（下拉+分类tab） ==================== */
.filter-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* ==================== 下拉式日期筛选器 ==================== */
.date-dropdown-wrap { flex-shrink: 0; }
.date-dropdown {
  position: relative;
  user-select: none;
}
.date-dropdown-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.8rem; font-weight: 600;
  background: var(--bg);
  color: var(--text-secondary);
  transition: var(--t);
  white-space: nowrap;
}
.date-dropdown-trigger:active { transform: scale(0.95); }
.date-dropdown-trigger i { font-size: 0.75rem; transition: var(--t); }
.date-dropdown.open .date-dropdown-trigger i { transform: rotate(180deg); }

.page-charge .date-dropdown.open .date-dropdown-trigger { background: var(--charge); color: white; }
.page-entertainment .date-dropdown.open .date-dropdown-trigger { background: var(--entertainment); color: white; }
.page-parenting .date-dropdown.open .date-dropdown-trigger { background: var(--parenting); color: white; }

.date-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  z-index: 100;
  padding: 4px;
}
.date-dropdown.open .date-dropdown-menu { display: block; animation: fadeIn 0.15s ease; }
.date-dropdown-menu::-webkit-scrollbar { width: 4px; }
.date-dropdown-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.date-dropdown-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary);
  transition: var(--t);
  white-space: nowrap;
}
.date-dropdown-option:hover { background: var(--bg); }
.date-dropdown-option.active {
  font-weight: 700;
}
.page-charge .date-dropdown-option.active { background: var(--charge-bg); color: var(--charge-dark); }
.page-entertainment .date-dropdown-option.active { background: var(--entertainment-bg); color: var(--entertainment-dark); }
.page-parenting .date-dropdown-option.active { background: var(--parenting-bg); color: var(--parenting-dark); }
.date-dropdown-option i { font-size: 0.7rem; opacity: 0; }
.date-dropdown-option.active i { opacity: 1; }

/* ==================== 筛选栏 ==================== */
.filter-bar {
  display: flex; gap: 8px;
  flex: 1;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 6px 14px; border-radius: 18px;
  font-size: 0.8rem; color: var(--text-muted);
  background: var(--bg); transition: var(--t);
  font-weight: 500; white-space: nowrap; flex-shrink: 0;
}
.filter-tab:hover { color: var(--text-secondary); }
.page-charge .filter-tab.active { background: var(--charge); color: white; font-weight: 700; }
.page-entertainment .filter-tab.active { background: var(--entertainment); color: white; font-weight: 700; }
.page-parenting .filter-tab.active { background: var(--parenting); color: white; font-weight: 700; }

/* ==================== 内容区 ==================== */
.page-content {
  flex: 1; overflow-y: auto; padding: 14px 14px;
  -webkit-overflow-scrolling: touch;
}
.page-content::-webkit-scrollbar { width: 4px; }
.page-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.content-list { display: flex; flex-direction: column; gap: 12px; }

/* ==================== 内容卡片 ==================== */
.content-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 16px;
  transition: var(--t);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  cursor: pointer;
  position: relative;
}
.content-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border); }
.content-card:active { transform: scale(0.98); transition: 0.1s; }

.card-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.card-tag {
  font-size: 0.65rem; padding: 3px 10px; border-radius: 12px; font-weight: 700;
}
.card-source { font-size: 0.7rem; color: var(--text-muted); margin-left: auto; }
.card-type-badge {
  font-size: 0.62rem; padding: 2px 7px; border-radius: 8px;
  font-weight: 600; display: inline-flex; align-items: center; gap: 3px;
}
.card-type-badge.video { background: #FDE6EC; color: var(--charge-dark); }
.card-type-badge.text { background: var(--profile-bg); color: var(--profile-dark); }

/* 充电 tag 颜色 */
.page-charge .card-tag.hot { background: var(--charge-bg); color: var(--charge-dark); }
.page-charge .card-tag.policy { background: var(--profile-bg); color: var(--profile-dark); }
.page-charge .card-tag.ai { background: var(--parenting-bg); color: var(--parenting-dark); }

/* 娱乐 tag 颜色 */
.page-entertainment .card-tag { background: var(--entertainment-bg); color: var(--entertainment-dark); }
.page-entertainment .card-type { background: var(--entertainment-bg); color: var(--entertainment-dark); font-size: 0.65rem; padding: 3px 10px; border-radius: 12px; font-weight: 700; }

.card-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  line-height: 1.5; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-summary {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-light);
}
.card-time { font-size: 0.7rem; color: var(--text-muted); }
.card-link {
  font-size: 0.75rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; transition: var(--t);
}
.page-charge .card-link { color: var(--charge-dark); }
.page-entertainment .card-link { color: var(--entertainment-dark); }

/* 娱乐明星标签 */
.celebrity-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 12px;
}
.celebrity-tag.赵丽颖 { background: var(--charge-bg); color: var(--charge-dark); }
.celebrity-tag.王安宇 { background: var(--profile-bg); color: var(--profile-dark); }
.celebrity-tag.陈哲远 { background: var(--parenting-bg); color: var(--parenting-dark); }

/* ==================== 育儿页 - 左右tab ==================== */
.parenting-main-tabs {
  display: flex; gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.parenting-main-tab {
  flex: 1; padding: 12px 8px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  transition: var(--t); position: relative;
}
.parenting-main-tab i { font-size: 0.95rem; }
.parenting-main-tab .tab-count {
  font-size: 0.68rem; background: var(--bg); color: var(--text-muted);
  padding: 1px 8px; border-radius: 10px; font-weight: 700;
}
.parenting-main-tab.active {
  color: var(--parenting-dark); font-weight: 800;
}
.parenting-main-tab.active .tab-count {
  background: var(--parenting-bg); color: var(--parenting-dark);
}
.parenting-main-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 3px; background: var(--parenting); border-radius: 2px 2px 0 0;
}
.parenting-main-tab:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 25%; bottom: 25%;
  width: 1px; background: var(--border-light);
}
.parenting-panel { display: none; }
.parenting-panel.active { display: block; }

/* 脑筋急转弯卡片 */
.riddle-list { display: flex; flex-direction: column; gap: 10px; }
.riddle-card {
  background: var(--surface); border-radius: var(--r-md); padding: 16px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-xs); transition: var(--t);
}
.riddle-card:active { transform: scale(0.98); transition: 0.1s; }
.riddle-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.riddle-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--parenting-bg); color: var(--parenting-dark);
  font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.riddle-difficulty {
  font-size: 0.62rem; padding: 2px 8px; border-radius: 8px; font-weight: 700;
}
.riddle-difficulty.hard { background: #FFF0D6; color: #C48820; }
.riddle-difficulty.expert { background: #FDE6EC; color: var(--charge-dark); }
.riddle-question {
  font-size: 0.92rem; color: var(--text); font-weight: 600; line-height: 1.6; margin-bottom: 10px;
}
.riddle-answer {
  display: none; padding: 10px 14px; background: var(--parenting-bg);
  border-radius: var(--r-sm); font-size: 0.85rem; color: var(--parenting-dark);
  font-weight: 600; line-height: 1.5;
}
.riddle-answer.show { display: block; animation: fadeIn 0.2s ease; }
.riddle-toggle {
  font-size: 0.78rem; color: var(--parenting-dark); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.riddle-toggle .arrow { transition: var(--t); display: inline-block; }
.riddle-toggle.open .arrow { transform: rotate(180deg); }

/* 睡前故事 - 故事间tab切换 */
.story-tabs {
  display: flex; gap: 0; background: var(--surface);
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--border-light);
  margin-bottom: 12px;
}
.story-tab {
  flex: 1; padding: 10px 8px; text-align: center;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  transition: var(--t); position: relative;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.story-tab.active { color: var(--parenting-dark); background: var(--parenting-bg); font-weight: 800; }
.story-tab:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--border-light);
}
.story-panel {
  display: none; background: var(--surface);
  border-radius: var(--r-md); padding: 20px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-xs);
  animation: fadeIn 0.25s ease;
}
.story-panel.active { display: block; }
.story-panel-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.story-panel-title i { color: var(--parenting); }
.story-panel-content {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 14px;
}
.story-panel-moral {
  padding: 12px 16px; background: var(--parenting-bg); border-radius: var(--r-sm);
  font-size: 0.82rem; color: var(--parenting-dark); font-weight: 600; line-height: 1.6;
  display: flex; align-items: flex-start; gap: 8px;
}
.story-panel-moral i { flex-shrink: 0; margin-top: 2px; }
.story-nav {
  display: flex; justify-content: space-between; margin-top: 14px; gap: 10px;
}
.story-nav-btn {
  padding: 8px 18px; border-radius: var(--r); font-size: 0.78rem; font-weight: 600;
  background: var(--bg); color: var(--text-secondary); transition: var(--t);
  display: inline-flex; align-items: center; gap: 6px;
}
.story-nav-btn:hover { background: var(--parenting-bg); color: var(--parenting-dark); }
.story-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ==================== 我的页 ==================== */
.profile-content { padding: 16px 20px; }
.profile-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border-radius: var(--r-lg); padding: 20px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.profile-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--charge) 0%, var(--entertainment) 100%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.profile-avatar i { font-size: 1.5rem; color: white; }
.profile-info { display: flex; flex-direction: column; gap: 4px; }
.profile-name { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.profile-tag { font-size: 0.75rem; color: var(--text-muted); }

.profile-section { margin-bottom: 20px; }
.profile-section-title {
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px; padding-left: 4px;
}
.profile-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface);
  border-radius: var(--r); margin-bottom: 6px;
  transition: var(--t); border: 1px solid var(--border-light);
}
.profile-item.clickable { cursor: pointer; }
.profile-item.clickable:active { background: var(--bg); }
.profile-item-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.profile-item-left i { font-size: 1rem; width: 24px; text-align: center; }
.charge-icon { color: var(--charge-dark); }
.parenting-icon { color: var(--parenting-dark); }
.profile-item-value { font-size: 0.78rem; color: var(--text-muted); }
.chevron { font-size: 0.75rem; color: var(--text-muted); }

.profile-footer {
  text-align: center; padding: 30px 0 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.profile-footer span { font-size: 0.82rem; color: var(--text-muted); }
.footer-sub { font-size: 0.7rem !important; }

/* ==================== 空状态 ==================== */
.empty-hint {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center; color: var(--text-muted);
}
.empty-illustration {
  width: 72px; height: 72px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.empty-illustration i { font-size: 1.8rem; color: var(--text-muted); opacity: 0.5; }
.empty-hint p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 4px; }
.empty-hint span { font-size: 0.8rem; }

/* ==================== 底部导航 ==================== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--surface); border-top: 1px solid var(--border-light);
  display: flex; align-items: center; z-index: 200;
  box-shadow: 0 -2px 12px rgba(120,80,80,0.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  font-size: 0.65rem; color: var(--text-muted);
  padding: 8px 0; transition: var(--t); font-weight: 500;
}
.nav-item i { font-size: 1.2rem; transition: var(--t); }
.nav-item.active[data-page="charge"] { color: var(--charge); font-weight: 700; }
.nav-item.active[data-page="entertainment"] { color: var(--entertainment); font-weight: 700; }
.nav-item.active[data-page="parenting"] { color: var(--parenting); font-weight: 700; }
.nav-item.active[data-page="profile"] { color: var(--profile); font-weight: 700; }

/* ==================== 弹窗 ==================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 1000; backdrop-filter: blur(3px);
}
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%; max-width: 680px; max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.32,0.72,0,1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.modal-top-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-title { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-muted); transition: var(--t);
}
.modal-close:active { background: var(--bg); }
.modal-body { padding: 16px 20px; overflow-y: auto; flex: 1; }

/* 详情弹窗内容 */
.detail-modal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-modal-title { font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.detail-modal-summary { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }

/* 详情弹窗 - 视频区域 */
.detail-modal-video {
  margin-bottom: 16px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg);
}
.detail-modal-video-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--charge-bg) 0%, var(--entertainment-bg) 100%);
  border-radius: var(--r);
  transition: var(--t);
}
.detail-modal-video-link:active { transform: scale(0.98); }
.detail-modal-video-link .video-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--charge); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.detail-modal-video-link .video-info { flex: 1; min-width: 0; }
.detail-modal-video-link .video-label { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.detail-modal-video-link .video-source { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.detail-modal-video-link .video-arrow { font-size: 0.85rem; color: var(--text-muted); }

/* 详情弹窗 - 完整内容 */
.detail-modal-content {
  font-size: 0.88rem; color: var(--text); line-height: 1.9;
  padding: 14px 16px; background: var(--surface-alt);
  border-radius: var(--r); margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.detail-modal-meta {
  display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.detail-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-muted); }
.detail-meta-item i { font-size: 0.85rem; }
.detail-modal-actions { display: flex; gap: 10px; }
.detail-action-btn {
  flex: 1; padding: 12px; border-radius: var(--r); font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px; transition: var(--t);
}
.detail-action-btn.fav { background: var(--bg); color: var(--text-secondary); }
.detail-action-btn.fav.faved { background: var(--star-bg); color: var(--star); }
.detail-action-btn.link { background: var(--charge); color: white; }
.detail-action-btn.link.entertainment { background: var(--entertainment); }
.detail-action-btn:active { transform: scale(0.97); }
.detail-action-btn:disabled { opacity: 0.4; }

/* 收藏列表 */
.fav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg);
  border-radius: var(--r); margin-bottom: 8px; cursor: pointer; transition: var(--t);
}
.fav-item:active { transform: scale(0.98); }
.fav-item-type {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.fav-item-type.charge { background: var(--charge-bg); color: var(--charge-dark); }
.fav-item-type.entertainment { background: var(--entertainment-bg); color: var(--entertainment-dark); }
.fav-item-type.parenting { background: var(--parenting-bg); color: var(--parenting-dark); }
.fav-item-info { flex: 1; min-width: 0; }
.fav-item-title {
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fav-item-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.fav-item-del { color: var(--text-muted); font-size: 0.9rem; padding: 4px; }

/* ==================== 动画 ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.content-card, .riddle-card { animation: fadeInUp 0.3s ease both; }
.content-card:nth-child(1) { animation-delay: 0s; }
.content-card:nth-child(2) { animation-delay: 0.04s; }
.content-card:nth-child(3) { animation-delay: 0.08s; }
.content-card:nth-child(4) { animation-delay: 0.12s; }
.content-card:nth-child(5) { animation-delay: 0.16s; }
.content-card:nth-child(6) { animation-delay: 0.2s; }
.content-card:nth-child(7) { animation-delay: 0.24s; }
.content-card:nth-child(8) { animation-delay: 0.28s; }

/* ==================== 响应式 ==================== */
@media (min-width: 768px) {
  .page-content { padding: 20px 24px; }
  .content-list, .riddle-list, .story-tabs, .story-panel { max-width: 680px; margin-left: auto; margin-right: auto; }
  .story-panel { margin-left: auto; margin-right: auto; }
  .profile-content { max-width: 680px; margin: 0 auto; }
  .bottom-nav { max-width: 680px; left: 50%; transform: translateX(-50%); border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal { max-width: 680px; }
}
@media (max-width: 380px) {
  html { font-size: 14px; }
  .page-header { padding: 12px 14px 6px; }
  .filter-row, .search-box { padding-left: 14px; padding-right: 14px; }
  .page-content { padding: 12px 12px; }
  .profile-content { padding: 14px; }
  .story-tab { font-size: 0.76rem; padding: 8px 4px; }
}
