/* 晶体矿物学习平台 - 社区互动响应式样式 */

/* 桌面端（≥1200px）*/
@media screen and (min-width: 1200px) {
  .community-container {
    max-width: 1600px;
  }
}

/* 平板端（768-1199px）*/
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .community-container {
    padding: 16px;
  }
  
  .post-item {
    padding: 16px;
  }
  
  .editor-container {
    padding: 16px;
  }
  
  .profile-banner {
    height: auto;
    padding: 24px;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .profile-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* 移动端（<768px）*/
@media screen and (max-width: 767px) {
  .community-container {
    padding: 12px;
  }
  
  .post-item {
    padding: 16px;
  }
  
  .post-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .post-avatar {
    margin-bottom: 12px;
  }
  
  .post-footer {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .comment-item {
    flex-direction: column;
    gap: 8px;
  }
  
  .comment-avatar {
    width: 32px;
    height: 32px;
  }
  
  .editor-toolbar {
    flex-wrap: wrap;
  }
  
  .profile-banner {
    height: auto;
    padding: 16px;
  }
  
  .profile-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }
  
  .profile-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .message-item {
    flex-direction: column;
  }
  
  .message-avatar {
    align-self: center;
    margin-bottom: 12px;
  }
  
  /* 移动端导航 */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 100;
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666666;
    font-size: 12px;
  }
  
  .mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
  }
  
  .mobile-nav-item.active {
    color: #2A5DAA;
  }
  
  /* 移动端浮动按钮 */
  .floating-btn {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #2A5DAA;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(42, 93, 170, 0.3);
    z-index: 99;
  }
  
  .floating-btn i {
    font-size: 24px;
  }
}