/* ========== 社区头部样式 ========== */
.community-header {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 4px;
}

.community-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
}

.community-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  font-size: 22px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.community-title a:hover {
  text-decoration: underline;
}

/* ========== 地点卡片样式 ========== */
.place-item {
  padding: 10px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.place-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.place-description {
  font-size: 13px;
  margin-bottom: 10px;
}

.place-image img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
}

.no-images {
  width: 100px;
  height: 100px;
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

/* ========== 公告样式 ========== */

.notice-board {
  margin: 15px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid #4285f4;
}

.notice-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.notice-header i {
  color: #ff6b6b;
  margin-right: 8px;
}

.notice-header h3 {
  margin: 0;
  font-size: 16px;
  flex-grow: 1;
}

.notice-more {
  color: #666;
  font-size: 13px;
}

/* 公告列表 */
.notice-list {
  padding: 0 15px;
}

.notice-item {
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}

.notice-item:last-child {
  border-bottom: none;
}

/* 公告内容 */
.notice-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 15px;
}

.notice-content {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* 内容截断效果 */
.notice-content.truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3em;
}

/* 展开/收起按钮 */
.toggle-more {
  display: inline-block;
  color: #4285f4;
  font-size: 12px;
  margin-top: 5px;
}

/* ========== 快速导航栏 ========== */
.quick-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-item {
  padding: 5px 0;
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item i {
  margin-bottom: 3px;
  color: #4285f4;
  font-size: 18px;
}

.nav-item.active {
  color: red;
  font-weight: bold;
}

.nav-item.active i {
  color: red;
}

/* ========== 通用板块样式 ========== */
.section-block {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.section-title {
  padding: 12px 15px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title .more {
  font-size: 12px;
  font-weight: normal;
  color: #666;
}

.section-content {
  padding: 15px;
}

/* ========== 活动卡片样式 ========== */
.activity-card {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.activity-cover {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.activity-info {
  padding: 10px;
}

.activity-title {
  font-size: 15px;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.activity-reward {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #ff9800;
}

.activity-reward i {
  margin-right: 3px;
}

/* ========== 互助信息样式 ========== */
.help-item {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.help-item:last-child {
  border-bottom: none;
}

.help-title {
  font-size: 14px;
  margin-bottom: 5px;
}

.help-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  justify-content: space-between;
}

/* ========== 祝福卡片样式 ========== */
.bless-card {
  padding: 10px;
  margin-bottom: 10px;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #ff9800;
}

.bless-user {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.bless-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
}

.bless-content {
  font-size: 14px;
  line-height: 1.5;
}

.bless-time {
  font-size: 12px;
  color: #999;
  text-align: right;
}

/* ========== 祝福飘落动画 ========== */
.blessing-fall {
  position: fixed;
  top: -50px;
  z-index: 9999;
  font-size: 20px;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
  animation: falling 5s linear forwards;
  transform: translateX(-50%);
  left: 50%;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  padding: 8px 15px;
  border-radius: 20px;
}

@keyframes falling {
  0% {
    transform: translate(-50%, 0);
  }
  100% {
    transform: translate(-50%, calc(100vh - 100px));
  }
}

/* 祝福飘落颜色变体 */
.blessing-fall.style1 { background: linear-gradient(135deg, #ff6b6b, #ff8e8e); color: white; }
.blessing-fall.style2 { background: linear-gradient(135deg, #48dbfb, #6ae0fb); color: white; }
.blessing-fall.style3 { background: linear-gradient(135deg, #1dd1a1, #2ecc71); color: white; }
.blessing-fall.style4 { background: linear-gradient(135deg, #feca57, #ff9f43); color: white; }
.blessing-fall.style5 { background: linear-gradient(135deg, #5f27cd, #341f97); color: white; }

.blessing-fall.stopped {
  animation: none;
  bottom: 30px;
  top: auto;
  transform: translateX(-50%);
}

/* ========== 分享按钮 ========== */
.share-btn-fixed {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #09bb07, #34a853);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn-fixed:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.share-btn-fixed i {
  font-size: 20px;
}

/* ========== 响应式调整 ========== */
@media (max-width: 767px) {
  /* 模态框底部弹出 */
  .modal-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .modal-bottom .modal-content {
    border-radius: 10px 10px 0 0 !important;
    border: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }

  .modal.fade .modal-bottom {
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
  }

  .modal.in .modal-bottom {
    transform: translateY(0);
  }

  /* 分享按钮调整 */
  .share-btn-fixed {
    width: 44px;
    height: 44px;
    right: 10px;
  }

  .share-btn-fixed i {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  /* 社区头部调整 */
  .community-header {
    height: 150px;
  }

  .community-title {
    font-size: 18px;
  }

  .community-title a {
    font-size: 0.7em;
  }

  .community-cover .jdenticon-avatar {
    width: 30px !important;
    height: 30px !important;
  }

  /* 导航栏调整 */
  .nav-item {
    font-size: 12px;
  }

  .nav-item i {
    font-size: 16px;
  }

  .notice-header {
    padding: 10px;
  }

  .notice-title {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  /* 网格布局 */
  .activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .bless-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
/* 浏览相关任务通知样式 */
.task-notification {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 12px;
  width: 260px;
  border-left: 4px solid #5cb85c;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.task-timer {
  background: #f0f7ff;
  color: #4285f4;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.task-description {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.task-completed-alert {
  margin: 0;
  padding: 10px;
  text-align: center;
}

/* 升级动画样式 */
.level-up-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s;
}

.level-up-content {
  background: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  animation: zoomIn 0.5s;
}

.level-up-icon {
  font-size: 48px;
  color: #ffcc00;
  margin-bottom: 15px;
}

.level-up-text {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.new-level {
  font-size: 18px;
  color: #4285f4;
}

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

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}