/* ============================================
   吃瓜网匿名树洞与情感倾诉社区 - 主样式表
   采用CSS变量管理主题色，支持夜间/晨光模式切换
   ============================================ */

/* === CSS变量（设计令牌） === */
:root {
  --primary: #1A237E;
  --secondary: #FFE082;
  --bg: #0D1B2A;
  --card-bg: #1A2744;
  --accent: #FFC107;
  --text: #F5F5F5;
  --text-muted: #9E9E9E;
  --border: #2C3E50;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 24px rgba(255, 193, 7, 0.15);
  --transition: all 0.3s ease;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-special: 'Ma Shan Zheng', cursive, serif;
  --max-width: 1200px;
}

/* === 晨光模式变量 === */
[data-theme="light"] {
  --bg: #FFF8E1;
  --card-bg: #FFFFFF;
  --text: #212121;
  --text-muted: #757575;
  --border: #E0E0E0;
  --primary: #1565C0;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(21, 101, 192, 0.12);
}

/* === 全局重置 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  transition: background-color 0.5s ease, color 0.5s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === 通用容器 === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}

.section__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

/* === 头部导航 === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.5s ease;
}

[data-theme="light"] .header {
  background: rgba(255, 248, 225, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.header__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 0;
  position: relative;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--accent);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

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

/* === 主题切换按钮 === */
.theme-toggle {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--card-bg);
}

/* === 移动端菜单按钮 === */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
}

/* === Hero Banner === */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 64px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.3) 0%, rgba(13, 27, 42, 0.8) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 40px 20px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #1A237E;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
  color: #1A237E;
}

/* === 星光动效 === */
.stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--secondary);
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* === 情绪气象站 === */
.mood-station {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border: 1px solid var(--border);
}

.mood-station__item {
  text-align: center;
  padding: 16px;
}

.mood-station__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.mood-station__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === 情绪标签云 === */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 24px 0;
}

.tag-cloud__item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.tag-cloud__item:hover {
  background: var(--primary);
  border-color: var(--accent);
  color: var(--secondary);
  transform: translateY(-2px);
}

.tag-cloud__item--hot {
  background: rgba(255, 193, 7, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* === 故事瀑布流卡片 === */
.waterfall {
  column-count: 3;
  column-gap: 20px;
  padding: 20px 0;
}

.story-card {
  break-inside: avoid;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 193, 7, 0.3);
}

.story-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.story-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
}

.story-card__name {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.story-card__content {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.story-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.story-card__tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(255, 224, 130, 0.1);
  color: var(--secondary);
  border-radius: 50px;
}

.story-card__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.story-card__action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

.story-card__action:hover {
  background: rgba(255, 193, 7, 0.1);
  color: var(--accent);
}

.story-card__action.active {
  color: var(--accent);
}

.story-card__temp {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--accent);
}

/* === 温暖传递区（横向滚动） === */
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
  height: 4px;
}

.carousel::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 2px;
}

.carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.carousel__item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.carousel__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

/* === 吃瓜杂谈列表 === */
.gossip-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gossip-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  align-items: center;
}

.gossip-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.gossip-item__img {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.gossip-item__content {
  flex: 1;
}

.gossip-item__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.gossip-item__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === 每日一言 === */
.daily-quote {
  position: relative;
  padding: 48px 40px;
  background: var(--card-bg);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  overflow: hidden;
}

.daily-quote__mark {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: Georgia, serif;
}

.daily-quote__text {
  font-size: 1.25rem;
  line-height: 2;
  color: var(--text);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.daily-quote__author {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* === 匿名投稿编辑框（Whisper Editor） === */
.whisper-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.8);
  backdrop-filter: blur(10px);
}

.whisper-overlay.active {
  display: flex;
}

.whisper-editor {
  width: 90%;
  max-width: 600px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.whisper-editor__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whisper-editor__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.whisper-editor__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(255, 193, 7, 0.05);
  border-radius: 12px;
}

.whisper-editor__identity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.whisper-editor__identity-name {
  font-size: 0.9rem;
  color: var(--secondary);
}

.whisper-editor__identity-btn {
  margin-left: auto;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
}

.whisper-editor__mood {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.whisper-editor__mood-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.whisper-editor__mood-btn.active,
.whisper-editor__mood-btn:hover {
  background: rgba(255, 193, 7, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.whisper-editor__textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  resize: vertical;
  font-family: var(--font-main);
  transition: border-color 0.3s ease;
}

.whisper-editor__textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.whisper-editor__options {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.whisper-editor__option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.whisper-editor__submit {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #1A237E;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.whisper-editor__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.whisper-editor__notice {
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 10px;
  background: rgba(255, 193, 7, 0.03);
  border-radius: 8px;
}

/* === 温暖回复气泡 === */
.reply-bubbles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
}

.reply-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  position: relative;
}

.reply-bubble--author {
  align-self: flex-start;
  background: var(--primary);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.reply-bubble--user {
  align-self: flex-end;
  background: #2C3E50;
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.reply-bubble__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* === 页脚 === */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 12px;
}

.footer__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

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

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__trust {
  margin-top: 12px;
  padding: 16px;
  background: rgba(255, 193, 7, 0.03);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* === 面包屑导航 === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 64px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  color: var(--border);
}

/* === 搜索组件 === */
.search-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-box__input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  min-height: 48px;
}

.search-box__input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-box__btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--accent);
  color: #1A237E;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === 分页 === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.pagination__btn {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.pagination__btn:hover,
.pagination__btn.active {
  background: var(--accent);
  color: #1A237E;
  border-color: var(--accent);
}

/* === 按钮通用 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
}

.btn--primary {
  background: var(--accent);
  color: #1A237E;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === 排序标签 === */
.sort-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sort-tabs__btn {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.sort-tabs__btn.active,
.sort-tabs__btn:hover {
  background: var(--accent);
  color: #1A237E;
  border-color: var(--accent);
}

/* === 侧边栏 === */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar__widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.sidebar__widget-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

/* === 详情页正文 === */
.article-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1.5em;
}

/* === 相关推荐 === */
.related-stories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

/* === 加载动画 === */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === 淡入动画 === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 404页面 === */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  margin-top: 64px;
}

.error-page__img {
  max-width: 400px;
  margin-bottom: 32px;
  border-radius: var(--radius);
}

.error-page__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-page__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* === 合规页面 === */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  margin-top: 64px;
}

.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--accent);
}

.legal-page p {
  margin-bottom: 1em;
  color: var(--text-muted);
  line-height: 1.8;
}

/* === 心理危机弹窗 === */
.crisis-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(10px);
}

.crisis-modal.active {
  display: flex;
}

.crisis-modal__content {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  text-align: center;
  border: 2px solid var(--accent);
}

.crisis-modal__content h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.crisis-modal__content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.crisis-modal__hotline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 16px 0;
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
  .waterfall {
    column-count: 2;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .header__nav.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero__title {
    font-size: 1.75rem;
  }
  .hero {
    min-height: 60vh;
  }
  .waterfall {
    column-count: 1;
  }
  .mood-station {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gossip-item {
    flex-direction: column;
  }
  .gossip-item__img {
    width: 100%;
    height: 160px;
  }
  .carousel__item {
    flex: 0 0 260px;
  }
  .reply-bubble {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 40px 0;
  }
  .hero__title {
    font-size: 1.5rem;
  }
  .story-card {
    padding: 18px;
  }
}

/* === 打印样式 === */
@media print {
  .header, .footer, .whisper-overlay, .theme-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
