/**
 * 反校园霸凌板块 - 主样式表
 * 版本: 2.0.0
 * 描述: 定义整个应用的颜色方案、布局和组件样式
 */

:root {
  /* 主题颜色 - 温暖安全的色调 */
  --primary-color: #5b8be0;       /* 温柔蓝 - 主色调 */
  --primary-light: #e0e9f7;       /* 主色调浅色 */
  --secondary-color: #76c2af;     /* 浅绿色 - 次要色调 */
  --secondary-light: #e0f2ee;     /* 辅助色调浅色 */
  --accent-color: #ff9d72;        /* 暖橙色 - 强调色 */
  --warm-gray: #f5f7fa;           /* 暖灰色 */
  --background-color: #ffffff;    /* 白色背景 */
  --light-bg-color: #f5f7fa;      /* 浅灰背景 - 卡片、区块等 */
  --text-primary: #333333;        /* 主要文本颜色 */
  --text-secondary: #666666;      /* 次要文本颜色 */
  --text-light: #999999;          /* 浅色文本 - 说明、提示等 */
  --text-on-primary: #ffffff;     /* 主色背景上的文本 */
  --border-color: #e0e0e0;        /* 边框颜色 */
  --success-color: #27ae60;       /* 成功提示色 */
  --warning-color: #ff9800;       /* 警告提示色 */
  --error-color: #e74c3c;          /* 错误提示色 */
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* 字体设置 */
  --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 0.75rem;         /* 12px */
  --font-size-sm: 0.875rem;        /* 14px */
  --font-size-base: 1rem;          /* 16px */
  --font-size-md: 1.125rem;        /* 18px */
  --font-size-lg: 1.25rem;         /* 20px */
  --font-size-xl: 1.5rem;          /* 24px */
  --font-size-xxl: 2rem;           /* 32px */
  --font-size-xxxl: 2.5rem;        /* 40px */
  
  /* 圆角 */
  --border-radius-small: 4px;
  --border-radius-medium: 8px;
  --border-radius-large: 16px;
  
  /* 间距 */
  --spacing-xs: 0.25rem;           /* 4px */
  --spacing-sm: 0.5rem;            /* 8px */
  --spacing-md: 1rem;              /* 16px */
  --spacing-lg: 1.5rem;            /* 24px */
  --spacing-xl: 2rem;              /* 32px */
  --spacing-xxl: 3rem;             /* 48px */
  --spacing-xxs: 4px;
  
  /* 过渡动画 */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* 内容最大宽度 */
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: var(--font-size-xxxl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-md);
}

p {
  margin-bottom: var(--spacing-sm);
}

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

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

button, .button {
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

button:focus, .button:focus, input:focus, textarea:focus {
  outline: none;
}

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

/* 容器布局 */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

main {
  flex: 1;
}

section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

/* 专门为关于我们和联系我们的标题设置一致的样式 */
.about-section .section-title, 
.contact-section .section-title {
  text-align: left;
  margin-bottom: 30px; /* 固定的底部边距 */
  padding-bottom: 10px; /* 固定的底部内边距 */
  border-bottom: 2px solid var(--primary-light); /* 添加底部边框 */
  line-height: 1.3; /* 固定的行高 */
}

/* 网格系统 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--spacing-sm));
}

.col {
  flex: 1 0 0%;
  padding: 0 var(--spacing-sm);
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

/* 卡片组件 */
.card {
  background-color: var(--background-color);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-title {
  font-size: var(--font-size-md);
  margin-bottom: var(--spacing-sm);
}

.card-content {
  color: var(--text-secondary);
}

.card-footer {
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  border-radius: var(--border-radius-small);
  transition: all var(--transition) ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
}

.btn-primary:hover {
  background-color: #4a79c9;
  color: var(--text-on-primary);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-on-primary);
}

.btn-secondary:hover {
  background-color: #5eac99;
  color: var(--text-on-primary);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
}

/* 头部导航 */
.header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  width: 50px;
  height: 50px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: var(--spacing-md);
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  padding: var(--spacing-xs) var(--spacing-sm);
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.cta-button, .nav-tutorial {
  background-color: var(--primary-color);
  color: white !important;
  border-radius: var(--border-radius-medium);
  padding: 0.5rem 1rem !important;
}

.cta-button:hover, .nav-tutorial:hover {
  background-color: #4a7ddb !important;
  color: white !important;
  transform: translateY(-2px);
}

.nav-tutorial {
  background-color: var(--secondary-color);
}

.nav-tutorial:hover {
  background-color: #65b3a0 !important;
}

.language-switch {
  display: flex;
  align-items: center;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.language-switch:hover {
  background-color: var(--warm-gray);
}

.language-icon {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-xs);
}

.current-language {
  font-weight: 500;
}

/* 底部 */
.footer {
  background-color: #eef4ff; /* 改为浅蓝色背景 */
  color: #1e293b;
  padding: 40px 0 20px;
  border-top: 1px solid #d0e0ff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 22px; /* 放大字体 */
  font-weight: 600;
}

.footer-logo img {
  width: 50px; /* 放大logo尺寸 */
  height: auto;
  transition: transform 0.3s ease;
}

.footer-links {
  display: flex;
  gap: 25px; /* 增加间距 */
  align-items: center;
}

.footer-links a {
  color: #456ac0; /* 调整链接颜色 */
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 16px;
}

.footer-links a:hover {
  color: #5b8be0;
}

.github-link img {
  width: 32px; /* 放大GitHub图标 */
  height: 32px;
  transition: transform 0.3s ease;
}

.github-link:hover img {
  transform: scale(1.1);
}

.footer-contact {
  border-top: 1px solid #d0e0ff;
  padding-top: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.footer-contact p {
  margin: 10px 0;
  color: #456ac0;
}

.footer-contact a {
  color: #5b8be0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #3a5db0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #d0e0ff;
  padding-top: 20px;
  font-size: 14px;
  color: #7a8fb7;
}

/* 特色区域 */
.hero {
  position: relative;
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
  background: url('../images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  min-height: 600px;
  display: flex;
  align-items: center;
  --hero-opacity: 1;
  --hero-mask-alpha: 0.6;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right, 
    rgba(91, 139, 224, calc(0.75 * var(--hero-mask-alpha))) 0%, 
    rgba(91, 139, 224, calc(0.6 * var(--hero-mask-alpha))) 40%, 
    rgba(91, 139, 224, calc(0.3 * var(--hero-mask-alpha))) 70%,
    rgba(91, 139, 224, 0) 100%
  );
  z-index: 1;
  transition: background 0.5s ease;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
}

.hero-content {
  max-width: 550px;
  flex: 1;
}

.hero h1 {
  color: var(--text-on-primary);
  margin-bottom: var(--spacing-md);
  font-size: 2.75rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.hero-subtitle {
  color: var(--text-on-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-description {
  color: var(--text-on-primary);
  font-size: var(--font-size-md);
  margin-bottom: var(--spacing-lg);
  max-width: 90%;
  opacity: 0.9;
}

.hero-taglines {
  margin-bottom: var(--spacing-md);
}

.hero-tagline {
  color: var(--text-on-primary);
  font-size: var(--font-size-md);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.hero-tagline::before {
  content: '•';
  display: inline-block;
  color: var(--accent-color);
  margin-right: var(--spacing-sm);
  font-size: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* AI助手搜索框 */
.ai-assistant-search {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
  border: 1px solid #e0e0e0;
  height: auto;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.ai-assistant-search.expanded {
  max-height: 80vh;
  height: auto;
  display: flex;
  flex-direction: column;
}

.ai-assistant-search h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.4rem;
  text-align: center;
}

.ai-search-container {
  display: flex;
  align-items: center;
  position: relative;
}

#ai-search-input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  font-size: 16px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

#ai-search-input:focus {
  outline: none;
  border-color: #4caf50;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.ai-search-button {
  width: 46px;
  height: 46px;
  background-color: #5b8be0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-search-button:hover {
  background-color: #4372c4;
  transform: scale(1.05);
}

.ai-search-button svg {
  width: 22px;
  height: 22px;
  stroke: white;
}

.ai-example-prompts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 10px;
  justify-content: center;
}

.example-prompt {
  font-size: 14px;
  color: #666;
  background-color: #f0f0f0;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.example-prompt:hover {
  background-color: #e0e0e0;
  color: #333;
  transform: translateY(-2px);
}

.example-prompt.clicked {
  background-color: #4caf50;
  color: white;
  transform: scale(0.95);
}

/* 聚焦效果 - 简化版 */
.ai-assistant-search.focused {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #4caf50;
}

/* 聊天容器样式 */
.inline-chat-container {
  width: 100%;
  max-height: calc(80vh - 150px);
  overflow-y: auto;
  transition: all 0.3s ease;
  border-top: 1px solid #f0f0f0;
  display: none;
  padding: 10px;
  flex: 1;
  margin-top: 15px;
  margin-bottom: 45px; /* 为底部按钮留出空间 */
  position: relative;
}

/* 聊天容器滚动条样式 */
.inline-chat-container::-webkit-scrollbar {
  width: 6px;
}

.inline-chat-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.inline-chat-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

/* 显示聊天容器 */
.ai-assistant-search.expanded .inline-chat-container {
  display: block;
}

/* 确保AI助手框有相对定位，以便正确定位新建对话按钮 */
.ai-assistant-search.has-chat-button {
  position: relative;
  padding-bottom: 45px;
}

/* 聊天消息样式 */
.chat-message {
  margin-bottom: 15px;
  animation: fade-in 0.3s ease-in-out;
  position: relative;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
  text-align: right;
}

.chat-message.ai {
  text-align: left;
}

.message-bubble {
  display: inline-block;
  max-width: 85%;
  padding: 10px 15px;
  border-radius: 18px;
  word-wrap: break-word;
}

.chat-message.user .message-bubble {
  background-color: #5b8be0;
  color: white;
  border-top-right-radius: 4px;
}

.chat-message.ai .message-bubble {
  background-color: #e8f5e9;
  color: #333;
  border-top-left-radius: 4px;
}

/* 思考指示器样式 */
.thinking-indicator {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  animation: fadeIn 0.5s ease;
}

.thinking-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 3px;
  background-color: #4CAF50;
  border-radius: 50%;
  animation: dotPulse 1.5s infinite;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 新建对话按钮样式 */
.new-chat-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #5b8be0;
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: absolute;
  left: 15px;
  bottom: 8px;
  z-index: 100;
}

.new-chat-button:hover {
  background-color: #4372c4;
  transform: scale(1.05);
}

.new-chat-button svg {
  width: 16px;
  height: 16px;
}

/* 功能模块区域样式优化 */
.features {
  padding: var(--spacing-xxl) 0;
  background-color: var(--background-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.feature-card {
  position: relative;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  background-color: var(--light-bg-color);
  box-shadow: var(--shadow);
  padding: var(--spacing-xl);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 350px;
  z-index: 1;
}

.feature-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.2; /* 提高背景图片透明度，降低蒙版遮盖 */
  transition: opacity var(--transition), transform var(--transition);
}

.feature-card:hover .feature-card-bg {
  transform: scale(1.1);
  opacity: 0.3; /* 悬停时增加透明度 */
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition), background-color var(--transition);
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(91, 139, 224, 0.2);
}

.feature-icon img, .feature-icon svg {
  width: 40px;
  height: 40px;
  transition: transform var(--transition);
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  transition: color var(--transition);
}

.feature-card p {
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
  flex-grow: 1;
  font-size: var(--font-size-base);
}

.feature-button {
  margin-top: auto;
  padding: var(--spacing-sm) var(--spacing-lg);
  width: auto;
}

.feature-developing {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--secondary-light);
  color: var(--secondary-color);
  border-radius: var(--border-radius-medium);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-top: auto;
  border: 1px solid var(--secondary-color);
}

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

.feature-card.hover .feature-icon {
  transform: scale(1.1);
  background-color: var(--primary-color);
}

.feature-card.hover .feature-icon img, 
.feature-card.hover .feature-icon svg {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

/* 功能模块背景图片 */
.report-bg {
  background-image: url('../images/report-bg.jpg');
}

.evidence-bg {
  background-image: url('../images/evidence-bg.jpg');
}

.helpline-bg {
  background-image: url('../images/helpline-bg.jpg');
}

.knowledge-bg {
  background-image: url('../images/knowledge-bg.jpg');
}

.treehollow-bg {
  background-image: url('../images/treehollow-bg.jpg');
}

.emergency-bg {
  background-image: url('../images/emergency-bg.jpg');
}

/* 视频区域样式优化 */
.video-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--light-bg-color);
}

.video-container {
  margin-top: var(--spacing-xl);
  position: relative;
}

.video-item {
  display: flex;
  background-color: var(--background-color);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.video-item.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.video-item:nth-child(1) { animation-delay: 0.1s; }
.video-item:nth-child(2) { animation-delay: 0.3s; }
.video-item:nth-child(3) { animation-delay: 0.5s; }

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-preview {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--border-radius-large) 0 0 var(--border-radius-large);
  background-color: #f5f7fa; /* 添加背景色，避免图片加载前的空白 */
  min-height: 240px; /* 确保即使图片未加载也有最小高度 */
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  display: block;
  position: absolute; /* 使用绝对定位确保图片填满容器 */
  top: 0;
  left: 0;
}

.video-preview:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.video-preview:hover .video-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.play-icon {
  transition: transform var(--transition);
}

.video-preview:hover .play-icon {
  transform: scale(1.1);
}

.video-info {
  flex: 1;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
}

.video-info h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.video-info p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.video-source, .video-date {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-top: auto;
  display: flex;
  align-items: center;
}

.video-source::before, .video-date::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: var(--spacing-sm);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.video-source::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' stroke='%235b8be0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E");
}

.video-date::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' stroke='%235b8be0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

.video-player {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.video-player.active {
  opacity: 1;
  visibility: visible;
}

.video-player iframe {
  width: 80%;
  height: 80%;
  max-width: 1000px;
  max-height: 600px;
  border: none;
  border-radius: var(--border-radius-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-video {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.close-video:hover {
  background: rgba(255, 255, 255, 0.3);
}

.close-video svg {
  width: 24px;
  height: 24px;
}

/* 关于我们和联系我们样式 */
.about-contact {
  padding: var(--spacing-xxl) 0;
  background-color: var(--background-color);
  position: relative;
}

/* 使用表格布局，确保两列完全对齐 */
.about-contact .container {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-spacing: 30px 0; /* 水平间距30px，垂直间距0 */
}

.about-section, .contact-section {
  display: table-cell;
  vertical-align: top;
  width: 50%;
  position: relative;
}

/* 为联系我们部分单独设置样式 */
.contact-section {
  padding-top: 0;
}

/* 为联系我们的标题设置负的顶部边距，使其向上移动 */
.contact-section .section-title {
  margin-top: -10px !important; /* 微调向上偏移的值 */
}

/* 重设标题样式，确保标题在完全相同的位置 */
.about-section .section-title,
.contact-section .section-title {
  margin-bottom: 30px;
  padding: 0 0 10px 0;
  text-align: left;
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-light);
  line-height: 1.3;
  position: relative;
  height: auto;
}

.about-content, .contact-form {
  margin-top: 0;
  padding-top: 0;
}

.about-content {
  margin-bottom: var(--spacing-lg);
  margin-top: 0;
  padding-top: 0;
}

.about-content p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-content p:first-child {
  margin-top: 0;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: 50%;
  transition: transform var(--transition), background-color var(--transition);
  color: var(--primary-color);
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-5px);
  background-color: var(--primary-color);
}

.social-link:hover img {
  filter: brightness(0) invert(1);
}

.social-link img {
  width: 24px;
  height: 24px;
  transition: filter var(--transition);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-lg);
  max-width: 100%;
  margin: 0;
}

.contact-details {
  margin-bottom: var(--spacing-lg);
}

.contact-details p {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
}

.contact-details strong {
  width: 80px;
  display: inline-block;
  color: var(--primary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: 0;
  padding-top: 0;
}

/* 确保表单组件与文本内容垂直对齐 */
.form-group {
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.form-group:first-child {
  margin-top: 0;
}

.contact-type-container {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-type-select {
  flex: 0 0 120px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  font-size: var(--font-size-base);
  background-color: var(--background-color);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-type-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(91, 139, 224, 0.2);
}

#contact-detail {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  font-size: var(--font-size-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}

#contact-detail:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(91, 139, 224, 0.2);
}

.contact-form input, .contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  background-color: white;
  margin-top: 0;
  font-size: var(--font-size-base);
}

.contact-form input:focus, .contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(91, 139, 224, 0.2);
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.send-button {
  align-self: flex-start;
  padding: var(--spacing-md) var(--spacing-xl);
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-medium);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.send-button::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'%3E%3C/line%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'%3E%3C/polygon%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition);
}

.send-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.send-button:hover::after {
  transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-contact .container {
    flex-direction: column;
  }
}

@media (max-width: 992px) {
  .hero .container {
    padding: var(--spacing-lg) var(--spacing-md);
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: var(--spacing-xl);
  }
  
  .hero-description {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .video-item {
    flex: 0 0 calc(50% - 20px);
  }
  
  .statistics-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
  
  .about-contact .container {
    display: block;
    border-spacing: 0;
  }
  
  .about-section, .contact-section {
    display: block;
    width: 100%;
    margin-bottom: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .contact-type-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .contact-type-select {
    width: 100%;
  }
  
  .send-button {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .about-section, .contact-section {
    padding: 40px 0;
  }
  
  .about-content p {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .hero h1 {
    font-size: var(--font-size-xxl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .video-player iframe {
    width: 90%;
    height: 50%;
  }
  
  .close-video {
    top: 15px;
    right: 15px;
  }
}

/* 辅助类 */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.ml-1 { margin-left: var(--spacing-xs); }
.ml-2 { margin-left: var(--spacing-sm); }
.ml-3 { margin-left: var(--spacing-md); }
.ml-4 { margin-left: var(--spacing-lg); }
.ml-5 { margin-left: var(--spacing-xl); }

.mr-1 { margin-right: var(--spacing-xs); }
.mr-2 { margin-right: var(--spacing-sm); }
.mr-3 { margin-right: var(--spacing-md); }
.mr-4 { margin-right: var(--spacing-lg); }
.mr-5 { margin-right: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* 数据统计区样式优化 */
.statistics {
  background-color: #f5f9f7;
  padding: 60px 0;
}

.statistics h2 {
  text-align: center;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.statistics h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #4caf50;
  border-radius: 3px;
}

.statistics-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 40px;
  justify-content: center;
}

.statistics-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.statistics-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.chart-container {
  width: 100%;
  margin-bottom: 15px;
  position: relative;
  min-height: 350px;
}

.chart-svg {
  width: 100%;
  height: auto;
  max-height: 400px;
}

.chart-title {
  font-size: 16px;
  font-weight: 600;
  fill: #333;
}

.statistics-source {
  font-size: 12px;
  color: #777;
  text-align: right;
  margin-top: 10px;
  font-style: italic;
}

.statistics-source a {
  color: #4caf50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.statistics-source a:hover {
  color: #388e3c;
  text-decoration: underline;
}

/* 图表图例样式 */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-right: 10px;
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 5px;
}

.legend-label {
  margin-right: 5px;
}

/* 热力图相关样式 */
#stat-chart-5 .chart-container {
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 30px;
}

#heatmap-chart {
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 380px;
}

#heatmap-chart:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 统计图表项的响应式调整 */
@media (min-width: 1024px) {
  .statistics-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 让热力图占据整行 */
  #stat-chart-5 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  .statistics-container {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    min-height: 320px;
  }
  
  .chart-svg {
    max-height: 350px;
  }
  
  #stat-chart-5 .chart-container,
  #heatmap-chart {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .chart-container {
    min-height: 300px;
  }
  
  .chart-svg {
    max-height: 320px;
  }
  
  #stat-chart-5 .chart-container,
  #heatmap-chart {
    height: 320px;
  }
}

/* AI助手搜索相关样式扩展 */
.ai-assistant-search.focused {
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px) scale(1.02);
}

.ai-search-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius-large);
  box-shadow: 0 0 0 rgba(91, 139, 224, 0.4);
  animation: pulse 2s infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 139, 224, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(91, 139, 224, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 139, 224, 0);
  }
}

.example-prompt.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: promptFadeIn 0.5s ease forwards;
}

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

.ai-query-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(118, 194, 175, 0.9);
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
}

/* 代码块样式 */
.code-block-container {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Courier New', monospace;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #1e1e2e;
  color: #f8f8f2;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #343541;
  padding: 10px 15px;
  color: white;
  font-size: 14px;
  border-bottom: 1px solid #4a4a5a;
}

.code-language {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #76c2af;
}

.copy-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.code-content {
  background-color: #1e1e2e;
  color: #e4e4e7;
  padding: 15px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre;
  border: none;
  margin: 0;
  min-height: 30px;
}

/* 消息中的代码块调整 */
.message-bubble .code-block-container {
  margin: 10px 0;
}

.message-bubble pre {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.message-bubble code {
  font-family: 'Courier New', monospace;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
}

.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f5f7fa;
  padding: var(--spacing-md);
  text-align: center;
}

.video-fallback-title {
  margin-top: var(--spacing-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--primary-color);
  max-width: 90%;
}

/* 使用条款页面样式 */
.terms-section {
    padding: 60px 0;
    background-color: #fafbff;
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(91, 139, 224, 0.1);
}

.terms-updated {
    color: #8a8f98;
    text-align: right;
    font-style: italic;
    margin-bottom: 30px;
    font-size: 14px;
}

.terms-intro {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f0f5ff;
    border-radius: 8px;
    border-left: 4px solid #5b8be0;
}

.terms-intro p {
    margin-bottom: 15px;
}

.terms-intro p:last-child {
    margin-bottom: 0;
}

.terms-section h2 {
    color: #2a4d7f;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6eeff;
}

.terms-section > div {
    margin-bottom: 30px;
}

.terms-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.terms-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-section ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #444;
}

.terms-section a {
    color: #5b8be0;
    text-decoration: none;
    transition: color 0.3s;
}

.terms-section a:hover {
    color: #3a5db0;
    text-decoration: underline;
}

.terms-final {
    margin-top: 40px;
    padding: 20px;
    background-color: #f0f5ff;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.footer-links a.active {
    color: #3a5db0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .terms-content {
        padding: 25px;
    }
    
    .terms-intro {
        padding: 15px;
    }
    
    .terms-section h2 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .terms-content {
        padding: 20px 15px;
    }
}

/* 情感树洞样式 */
.tree-hole-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.story-publish {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.story-publish textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
}

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

.publish-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.publish-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.publish-button:hover {
    background-color: var(--primary-color-dark);
}

.story-list {
    display: grid;
    gap: 20px;
}

.story-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.story-author {
    font-weight: 500;
    color: #333;
}

.story-time {
    color: #999;
    font-size: 14px;
}

.story-content {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.story-actions {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.story-action {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.3s;
}

.story-action:hover {
    color: var(--primary-color);
}

.ai-analysis {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ai-analysis h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.emotion-chart {
    height: 200px;
    margin-bottom: 20px;
}

.analysis-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    color: #444;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tree-hole-container {
        padding: 10px;
    }
    
    .story-publish textarea {
        min-height: 120px;
    }
    
    .publish-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .story-actions {
        flex-wrap: wrap;
    }
}

/* 鲸歌涟漪动画效果 - 用于举报/求助成功后的反馈 */
.bubble-ripple {
  animation: whale-song 2.6s cubic-bezier(0.19, 0.4, 0.63, 1); 
}

@keyframes whale-song {
  12% { transform: scale(0.96) rotate(-0.8deg); }
  37% { opacity: 0.7; filter: blur(1.2px); }
  64% { background: radial-gradient(#8ab3d633, #fff 72%); }
}

/* 为按钮添加涟漪效果的辅助类 */
.with-ripple-effect {
  position: relative;
  overflow: hidden;
}

.with-ripple-effect::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
}

.with-ripple-effect:active::after {
  transform: scale(2);
  opacity: 1;
  animation: whale-song 2.6s cubic-bezier(0.19, 0.4, 0.63, 1);
} 