/* ============================
   一级废话文学大师 - 粉丝树洞
   ============================ */

:root {
  --bg-canvas: #F8F3EC;
  --bg-card: #FFFFFF;
  --text-primary: #2A1F14;
  --text-secondary: #6B5B47;
  --border-color: #E8DCC8;
  --border-input: #E0D3C0;
  --accent-orange: #F4A261;
  --accent-orange-dark: #E07856;
  --tag-green: #B8C8A8;
  --tag-bg: #FAF6EE;
  --shadow-orange: rgba(244, 162, 97, 0.12);
  --shadow-modal: rgba(0, 0, 0, 0.15);
  --overlay-bg: rgba(42, 31, 20, 0.45);
  --sidebar-width: 260px;
  --navbar-height: 64px;
  --mental-accent: #7FB3A8;
  --mental-accent-dark: #5C928B;
  --mental-accent-2: #A7C8C0;
  --mental-soft: #EAF4F2;
}

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

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* 图标 */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================
   顶部导航栏
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #F4A261 0%, #E07856 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(224, 120, 86, 0.35);
  flex-shrink: 0;
}

.logo-mark {
  width: 70%;
  height: 70%;
  display: block;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 移动端短标题：桌面隐藏，手机显示 */
.site-title-short {
  display: none;
}

/* 移动端抽屉开关按钮（桌面隐藏） */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 4px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}
.menu-icon {
  width: 24px;
  height: 24px;
}

.search-bar {
  width: 400px;
  height: 40px;
  background: var(--bg-canvas);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.search-icon {
  width: 20px;
  height: 20px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-button {
  height: 40px;
  padding: 0 20px;
  background: var(--accent-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.post-button:hover {
  background: var(--accent-orange-dark);
}

.plus-icon {
  width: 18px;
  height: 18px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F4A261 0%, #E07856 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-emoji {
  font-size: 18px;
  line-height: 1;
}

/* 顶栏头像按钮 + 账号弹窗 */
.avatar-wrap {
  position: relative;
}

#nav-avatar {
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

#nav-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(224, 120, 86, 0.4);
}

.profile-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 248px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  padding: 18px;
  z-index: 120;
}

.pp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pp-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pp-avatar .avatar-emoji {
  font-size: 24px;
}

.pp-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.pp-id {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pp-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #F4A261 0%, #E07856 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.pp-btn:hover {
  opacity: 0.9;
}

.pp-tip {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* 回复头像里的 emoji 略小 */
.reply-avatar .avatar-emoji {
  font-size: 15px;
}

.avatar-green {
  background: linear-gradient(135deg, #B8D4A2 0%, #8FBF7E 100%);
}

.avatar-purple {
  background: linear-gradient(135deg, #C2A8D9 0%, #9E78B9 100%);
}

.avatar-blue {
  background: linear-gradient(135deg, #A8C4D9 0%, #78A0B9 100%);
}

.avatar-pink {
  background: linear-gradient(135deg, #D9A8B8 0%, #B9788F 100%);
}

.avatar-yellow {
  background: linear-gradient(135deg, #D9C9A8 0%, #B9A078 100%);
}

/* ============================
   主内容区
   ============================ */
.main-area {
  padding-top: var(--navbar-height);
  min-height: 100vh;
}

.page {
  display: flex;
  min-height: calc(100vh - var(--navbar-height));
}

.hidden {
  display: none !important;
}

/* ============================
   帖子列表页
   ============================ */
.page-list {
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.category-item:hover {
  background: var(--tag-bg);
}

.category-item.active {
  background: var(--accent-orange);
  color: #FFFFFF;
}

.category-icon {
  font-size: 16px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0 -8px;
}

.tags-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fire-icon {
  width: 18px;
  height: 18px;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 10px;
  background: var(--tag-bg);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.tag-primary {
  background: var(--tag-green);
  color: var(--text-primary);
}

.content-area {
  flex: 1;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--tag-bg);
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--accent-orange);
  color: #FFFFFF;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px var(--shadow-orange);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-orange);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.post-tag {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-primary);
}

.post-tag.internship,
.post-tag.study,
.post-tag.health {
  background: var(--tag-green);
}

.post-tag.work,
.post-tag.love {
  background: var(--accent-orange-dark);
  color: #FFFFFF;
}

.post-tag.money {
  background: #D4C4E0;
}

.post-tag.mental {
  background: var(--mental-accent);
  color: #FFFFFF;
}

.post-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-item svg {
  width: 16px;
  height: 16px;
}

.post-time {
  font-size: 13px;
  color: var(--text-secondary);
}

.load-more-button {
  width: 100%;
  height: 48px;
  background: var(--tag-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 8px;
  transition: background 0.2s;
}

.load-more-button:hover {
  background: var(--bg-canvas);
}

/* ============================
   帖子详情页
   ============================ */
.page-detail {
  justify-content: center;
  padding: 32px;
}

.detail-container {
  width: 800px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-detail-card,
.reply-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px var(--shadow-orange);
}

.post-detail-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-tag {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--tag-green);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-primary);
}

.detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.detail-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-author-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.detail-author-time {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-divider {
  height: 1px;
  background: var(--border-color);
}

.detail-content {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-action-bar {
  display: flex;
  gap: 16px;
  align-items: center;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--tag-bg);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.action-btn:hover {
  background: var(--bg-canvas);
}

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

.action-btn svg {
  width: 16px;
  height: 16px;
}

/* 点赞高亮状态 */
.action-btn.like-btn.liked {
  background: #FCEBE6;
  color: #E76F51;
}

.action-btn.like-btn.liked svg path {
  fill: #E76F51;
}

/* 收藏高亮状态 */
.action-btn.collected {
  background: #E8DCC8;
  color: #2A1F14;
  font-weight: 600;
}

.action-btn.collected svg path {
  stroke: #F4A261;
  stroke-width: 2.5;
}

/* 评论按钮可点击 */
.comment-jump-btn:hover {
  background: #EDDFD3;
}

.reply-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-header .icon {
  width: 22px;
  height: 22px;
}

.reply-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.reply-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reply-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.reply-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.reply-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.reply-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.reply-content {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

.reply-footer {
  display: flex;
  gap: 16px;
  align-items: center;
}

.reply-like-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.reply-like-row svg {
  width: 14px;
  height: 14px;
}

.reply-like-row.liked {
  color: #E76F51;
  font-weight: 600;
}

.reply-like-row.liked svg path {
  fill: #E76F51;
}

.reply-reply-btn {
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.reply-reply-btn:hover {
  color: var(--accent-orange-dark);
}

.reply-divider {
  height: 1px;
  background: var(--border-color);
}

.reply-input-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reply-input-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.reply-input-box {
  width: 100%;
  height: 120px;
  padding: 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-primary);
  resize: vertical;
}

.reply-input-box::placeholder {
  color: var(--text-secondary);
}

.reply-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reply-input-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.reply-submit-btn {
  height: 40px;
  padding: 0 24px;
  background: var(--accent-orange);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  transition: background 0.2s;
}

.reply-submit-btn:hover {
  background: var(--accent-orange-dark);
}

/* ============================
   独立倾诉页面
   ============================ */
.page-post {
  justify-content: center;
  padding: 32px;
}

.post-page-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
}

.post-page-form-card {
  flex: 1;
  max-width: 720px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 8px var(--shadow-orange);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-page-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.post-page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.post-page-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-page-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-page-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.post-page-input,
.post-page-select,
.post-page-textarea {
  width: 100%;
  padding: 0 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.post-page-input::placeholder,
.post-page-textarea::placeholder {
  color: var(--text-secondary);
}

.post-page-input {
  height: 48px;
}

.post-page-select-wrap {
  position: relative;
}

.post-page-select {
  height: 48px;
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  color: var(--text-secondary);
}

.post-page-select option:checked,
.post-page-select option:not(:disabled) {
  color: var(--text-primary);
}

.post-page-textarea {
  height: 200px;
  padding: 16px;
  resize: vertical;
  line-height: 1.5;
}

.post-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-page-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.post-page-submit-btn {
  height: 48px;
  padding: 0 28px;
  background: var(--accent-orange);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  transition: background 0.2s;
}

.post-page-submit-btn:hover {
  background: var(--accent-orange-dark);
}

.post-page-side-panel {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px var(--shadow-orange);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.quote-author {
  font-size: 12px;
  color: var(--accent-orange);
}

.quote-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-list li {
  font-size: 13px;
  color: var(--text-secondary);
}

.page-welfare {
  flex-direction: column;
  align-items: center;
  padding: 16px 50px 32px;
  gap: 32px;
  min-height: calc(100vh - var(--navbar-height));
}

.welfare-header {
  width: 100%;
  max-width: 860px;
  height: 64px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.welfare-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.welfare-back-btn {
  height: 32px;
  padding: 0 16px;
  background: var(--bg-canvas);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.2s;
}

.welfare-back-btn:hover {
  background: var(--tag-bg);
}

/* 各二级页面：返回主界面按钮 */
.back-home-btn {
  align-self: flex-start;
  height: 34px;
  padding: 0 16px;
  background: #F8F3EC;
  border: 1px solid #E8DCC8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6B5B47;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.back-home-btn:hover {
  background: #E8DCC8;
  color: #2A1F14;
}

.welfare-hero {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welfare-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.welfare-hero-line {
  width: 200px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
  margin: 4px 0;
}

.welfare-hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.welfare-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.welfare-cards {
  width: 100%;
  max-width: 860px;
  display: flex;
  gap: 60px;
  justify-content: center;
}

.welfare-card {
  width: 400px;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.welfare-card-top {
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

/* 顶部柔光装饰，让配图占位更有层次 */
.sponsor-top::before,
.beneficiary-top::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.sponsor-top::after,
.beneficiary-top::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.sponsor-top {
  background: var(--accent-orange);
}

.beneficiary-top {
  background: #D4918B;
}

/* 配图占位：圆角徽标 + emoji，代表后续可替换为真实插画 */
.welfare-card-illus {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
}

.welfare-card-slogan {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: #FFFFFF;
}

.welfare-card-body {
  padding: 20px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.welfare-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.welfare-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.welfare-card-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 0;
}

.welfare-card-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 12px;
  transition: opacity 0.2s;
}

.welfare-card-btn:hover {
  opacity: 0.9;
}

.welfare-card-btn.sponsor-btn {
  background: var(--accent-orange);
  height: 52px;
  box-shadow: 0 4px 14px rgba(244, 162, 97, 0.35);
}

.welfare-card-btn.beneficiary-btn {
  background: #D4918B;
  height: 52px;
  box-shadow: 0 4px 14px rgba(212, 145, 139, 0.35);
}

/* ============================
   女性公益项目示例
   ============================ */
.welfare-projects {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welfare-projects-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.welfare-projects-grid {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.welfare-project-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.welfare-project-tag {
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--accent-orange);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

.welfare-project-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.welfare-project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.welfare-project-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--bg-canvas);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-orange);
  border-radius: 3px;
}

.welfare-project-amount {
  font-size: 12px;
  color: var(--text-secondary);
}

.welfare-project-btn {
  width: 100%;
  height: 36px;
  background: var(--accent-orange);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: 4px;
  transition: opacity 0.2s;
}

.welfare-project-btn:hover {
  opacity: 0.9;
}

.welfare-card-stats {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-canvas);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welfare-card-stats p {
  font-size: 13px;
  color: var(--text-secondary);
}

.welfare-card-stats .stats-accent {
  font-weight: 700;
}

.welfare-card-stats .stats-accent:first-of-type {
  color: var(--accent-orange);
}

.welfare-card-stats .stats-accent {
  color: #D4918B;
}

.welfare-trust-card {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welfare-trust-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.welfare-trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welfare-trust-list li {
  font-size: 13px;
  color: var(--text-secondary);
}

.welfare-trust-list li::before {
  content: "• ";
}

/* ============================
   资助人页面
   ============================ */
.page-sponsor,
.page-beneficiary {
  flex-direction: column;
  align-items: center;
  padding: 16px 50px 32px;
  gap: 24px;
  min-height: calc(100vh - var(--navbar-height));
}

.sponsor-hero,
.beneficiary-hero {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sponsor-hero-title,
.beneficiary-hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.sponsor-hero-desc,
.beneficiary-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.sponsor-filter-bar {
  width: 100%;
  max-width: 860px;
  display: flex;
  gap: 12px;
}

.sponsor-filter {
  height: 34px;
  padding: 0 18px;
  background: var(--bg-card);
  border-radius: 17px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.sponsor-filter.active {
  background: var(--accent-orange);
  color: #FFFFFF;
  font-weight: 600;
}

.sponsor-project-list {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sponsor-project-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.sponsor-project-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sponsor-project-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

.sponsor-project-tag.tag-edu { background: var(--accent-orange); }
.sponsor-project-tag.tag-health { background: #D4918B; }
.sponsor-project-tag.tag-psy { background: var(--tag-green); }
.sponsor-project-tag.tag-career { background: #A8C4D9; }

.sponsor-project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.sponsor-project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sponsor-project-amount {
  font-size: 12px;
  color: var(--text-secondary);
}

.sponsor-project-actions {
  width: 232px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.sponsor-donate-btn {
  width: 100%;
  height: 48px;
  background: var(--accent-orange);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(244, 162, 97, 0.35);
  transition: opacity 0.2s;
}

.sponsor-donate-btn:hover {
  opacity: 0.9;
}

.sponsor-view-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

.sponsor-load-more {
  width: 200px;
  height: 44px;
  background: var(--bg-card);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-top: 8px;
  transition: background 0.2s;
}

.sponsor-load-more:hover {
  background: var(--tag-bg);
}

/* ============================
   被资助人页面
   ============================ */
.beneficiary-steps {
  width: 100%;
  max-width: 860px;
  display: flex;
  gap: 20px;
}

.beneficiary-step-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  font-size: 24px;
  font-weight: 700;
}

.step-num-1 { color: #D4918B; }
.step-num-2 { color: var(--accent-orange); }
.step-num-3 { color: var(--tag-green); }

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.beneficiary-form-card {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.beneficiary-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.beneficiary-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.beneficiary-form-row {
  display: flex;
  gap: 20px;
}

.beneficiary-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.beneficiary-field.full-width {
  width: 100%;
}

.beneficiary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.beneficiary-input,
.beneficiary-select,
.beneficiary-textarea {
  width: 100%;
  padding: 0 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.beneficiary-input::placeholder,
.beneficiary-textarea::placeholder {
  color: #9B8B7B;
}

.beneficiary-input,
.beneficiary-select {
  height: 40px;
}

.beneficiary-select {
  appearance: none;
  cursor: pointer;
  color: var(--text-secondary);
}

.beneficiary-textarea {
  height: 140px;
  padding: 16px;
  resize: vertical;
  line-height: 1.5;
}

.beneficiary-privacy {
  font-size: 12px;
  color: var(--text-secondary);
}

.beneficiary-submit-btn {
  width: 100%;
  height: 52px;
  background: #D4918B;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(212, 145, 139, 0.35);
  transition: opacity 0.2s;
}

.beneficiary-submit-btn:hover {
  opacity: 0.9;
}
.modal-overlay {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 200;
  backdrop-filter: blur(2px);
}

.modal-card {
  width: 640px;
  max-width: 100%;
  max-height: calc(100vh - var(--navbar-height) - 64px);
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 48px var(--shadow-modal);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.modal-input,
.modal-select,
.modal-textarea {
  width: 100%;
  padding: 0 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.modal-input::placeholder,
.modal-textarea::placeholder {
  color: var(--text-secondary);
}

.modal-input {
  height: 48px;
}

.modal-select-wrap {
  position: relative;
}

.modal-select {
  height: 48px;
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  color: var(--text-secondary);
}

.modal-select option:checked,
.modal-select option:not(:disabled) {
  color: var(--text-primary);
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-secondary);
  pointer-events: none;
}

.modal-textarea {
  height: 180px;
  padding: 16px;
  resize: vertical;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-cancel-btn {
  height: 44px;
  padding: 0 24px;
  background: var(--tag-bg);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s;
}

.modal-cancel-btn:hover {
  background: var(--bg-canvas);
}

.modal-submit-btn {
  height: 44px;
  padding: 0 24px;
  background: var(--accent-orange);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  transition: background 0.2s;
}

.modal-submit-btn:hover {
  background: var(--accent-orange-dark);
}

/* ============================
   响应式适配
   ============================ */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  /* 侧边栏改为可滑入的抽屉 */
  .sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 3px 0 18px rgba(0, 0, 0, 0.14);
    overflow-y: auto;
    padding-bottom: 40px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* 抽屉遮罩层 */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 30, 20, 0.42);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .detail-container {
    width: 100%;
  }

  .post-page-container {
    flex-direction: column;
    align-items: center;
  }

  .post-page-side-panel {
    width: 100%;
    max-width: 720px;
  }
}

/* 桌面端：侧栏原地折叠（与移动端抽屉互不干扰） */
@media (min-width: 1025px) {
  .sidebar.collapsed {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
  }

  /* 移动端：标题缩小、搜索栏自适应收缩，避免顶栏挤压溢出 */
  .logo-icon {
    width: 26px;
    height: 26px;
  }
  .site-title {
    font-size: 14px;
  }
  /* 移动端显示短标题「废话树洞」，隐藏完整标题 */
  .site-title-full {
    display: none;
  }
  .site-title-short {
    display: inline;
  }
  .nav-left {
    gap: 8px;
    min-width: 0;
  }
  .search-bar {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .nav-right {
    gap: 8px;
  }

  .post-button span {
    display: none;
  }

  .content-area {
    padding: 16px;
  }

  .page-detail,
  .page-post {
    padding: 16px;
  }

  .post-detail-card,
  .reply-section,
  .post-page-form-card,
  .side-card {
    padding: 20px;
  }

  .detail-title,
  .post-page-title {
    font-size: 22px;
  }

  .post-page-form-card {
    padding: 24px;
  }

  /* 公益 / 赞助 / 受助 页面：去掉过大的左右内边距，标题缩小 */
  .page-welfare,
  .page-sponsor,
  .page-beneficiary {
    padding: 16px 16px 32px;
  }

  .welfare-header {
    padding: 0 16px;
  }

  .welfare-hero-title {
    font-size: 24px;
  }

  /* 公益两张大卡片竖排占满 */
  .welfare-cards {
    flex-direction: column;
    gap: 20px;
  }
  .welfare-card {
    width: 100%;
  }

  /* 公益项目横向网格竖排 */
  .welfare-projects-grid {
    flex-direction: column;
  }

  .sponsor-hero-title,
  .beneficiary-hero-title {
    font-size: 22px;
  }

  /* 筛选标签可换行 */
  .sponsor-filter-bar {
    flex-wrap: wrap;
  }

  /* 赞助项目卡片：内容在上、按钮在下，占满宽度 */
  .sponsor-project-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .sponsor-project-actions {
    width: 100%;
  }

  /* 申请表单：多列改为单列 */
  .beneficiary-form-row {
    flex-direction: column;
    gap: 16px;
  }
}

/* 超小屏：标题进一步缩小、隐藏头像，保证不换行溢出 */
@media (max-width: 480px) {
  .site-title {
    font-size: 13px;
  }
  .logo-icon {
    width: 24px;
    height: 24px;
  }
  .nav-left {
    gap: 6px;
  }
  /* 超小屏隐藏帖子/回复头像以省空间，但保留顶栏账号头像 */
  .post-card .avatar,
  .reply-avatar {
    display: none;
  }
  #nav-avatar {
    display: flex;
  }
  .profile-popover {
    width: auto;
    min-width: 220px;
    max-width: calc(100vw - 24px);
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
    margin-right: 2px;
  }
}

/* ============================
   左侧栏：心理健康入口
   ============================ */
.mental-sidebar {
  margin-top: 0;
}

.mental-promo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mental-soft) 0%, #F4F3EC 100%);
  border: 1px solid rgba(111, 168, 160, 0.35);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mental-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(111, 168, 160, 0.22);
}

.mental-promo-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.mental-promo-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mental-promo-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mental-accent-dark);
}

.mental-promo-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.mental-promo-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================
   心理健康页面
   ============================ */
.page-mental {
  flex-direction: column;
  align-items: center;
  padding: 16px 50px 40px;
  gap: 24px;
  min-height: calc(100vh - var(--navbar-height));
}

.mental-container {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mental-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--mental-soft) 0%, #FFFFFF 100%);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(95, 146, 139, 0.12);
  border-left: 4px solid var(--mental-accent);
}

.mental-hero-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.mental-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.mental-hero-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.mental-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mental-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mental-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 4px solid var(--mental-accent);
  padding-left: 12px;
  line-height: 1.3;
}

.mental-card-tag {
  padding: 4px 12px;
  background: var(--mental-soft);
  color: var(--mental-accent-dark);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* 心情打卡 */
.mood-prompt {
  font-size: 15px;
  color: var(--text-primary);
}

.mood-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mood-btn {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mood-btn:hover {
  background: var(--mental-soft);
  border-color: rgba(111, 168, 160, 0.4);
  transform: translateY(-2px);
}

.mood-btn.selected {
  background: linear-gradient(135deg, var(--mental-accent) 0%, var(--mental-accent-2) 100%);
  border-color: var(--mental-accent);
  box-shadow: 0 4px 12px rgba(95, 146, 139, 0.25);
}

.mood-btn.selected .mood-label {
  color: #FFFFFF;
}

.mood-emoji {
  font-size: 28px;
  line-height: 1;
}

.mood-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mood-feedback {
  font-size: 14px;
  color: var(--mental-accent-dark);
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s, max-height 0.3s;
}

.mood-feedback.show {
  max-height: 80px;
  opacity: 1;
}

/* 呼吸练习 */
.breath-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.breath-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

.breath-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9CC9C2 0%, var(--mental-accent) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(111, 168, 160, 0.3);
  transform: scale(1);
}

.breath-phase {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.breath-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breath-btn {
  height: 44px;
  padding: 0 28px;
  background: var(--mental-accent);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  transition: background 0.2s;
}

.breath-btn:hover {
  background: var(--mental-accent-dark);
}

.breath-round {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 情绪自评 */
.quiz-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-q {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-q-text {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.quiz-opts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-opt:hover {
  border-color: rgba(111, 168, 160, 0.4);
}

.quiz-opt input {
  accent-color: var(--mental-accent);
}

.quiz-submit {
  align-self: flex-start;
  height: 46px;
  padding: 0 28px;
  background: var(--mental-accent);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  transition: background 0.2s;
}

.quiz-submit:hover {
  background: var(--mental-accent-dark);
}

.quiz-result {
  font-size: 14px;
}

.quiz-warn {
  color: var(--accent-orange-dark);
}

.quiz-result-inner {
  background: var(--mental-soft);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-score {
  font-size: 16px;
  font-weight: 600;
  color: var(--mental-accent-dark);
}

.quiz-score strong {
  font-size: 22px;
}

.quiz-level {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.quiz-advice {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

.quiz-disclaimer {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 心理小知识 */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.knowledge-item {
  background: var(--bg-canvas);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.knowledge-emoji {
  font-size: 24px;
}

.knowledge-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.knowledge-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 心理援助热线 */
.hotline-card {
  background: linear-gradient(135deg, var(--mental-soft) 0%, #F4FBFA 100%);
}

.hotline-note {
  font-size: 14px;
  color: var(--text-secondary);
}

.hotline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hotline-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-canvas);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.hotline-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.hotline-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--mental-accent-dark);
  text-decoration: none;
}

.hotline-num:hover {
  text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .page-mental {
    padding: 16px;
  }

  .mental-card,
  .mental-hero {
    padding: 20px;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .mood-btn {
    min-width: 56px;
  }

  .hotline-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
