/* 页面基础样式 */
body {
  background: #f8f9fa;
  font-family: Arial, sans-serif;
  padding-bottom: 60px;
}

/* 顶部导航栏 */
.mobile-header {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 头像居中展示 */
.avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* 标签导航样式 */
#tabNav {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
}

#tabNav .nav-item {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

#tabNav .nav-link {
  display: block;
  padding: 0.75rem 0;
  color: #333;
  font-weight: 500;
  border: none;
}

#tabNav .nav-link.active {
  color: #007bff;
  border-bottom: 2px solid #007bff;
  background: none;
}

/* 内容区表单样式 */
#content-area .form-control {
  max-width: 100%;
}

/* 卡片布局统一：每行两个 */
.row > .col-md-3,
.row > .col-6 {
  width: 50%;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .row > .col-md-3 {
    width: 25%;
  }
}

/* 卡片通用结构美化 */
.card {
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: 100%;
  background-color: #fff;
  border: 1px solid #e0e0e0;
}

.card-img-top {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.card-body {
  padding: 0.75rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-text {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card-text.text-truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 社区标签样式 */
.card-tags {
  margin-bottom: 0.4rem;
}

.card-tags .badge {
  margin-right: 4px;
  font-size: 0.7rem;
  background-color: #e9f5ff;
  color: #007bff;
  padding: 3px 6px;
  border-radius: 8px;
}

/* 统计信息 */
.card .small-stats {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #999;
  padding: 0.5rem 0 0;
  border-top: 1px solid #eee;
}

.card-footer .btn,
.card .btn {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Badge 全局样式 */
.badge {
  font-size: 0.75rem;
}
.upload-icon-box {
  width: 100px;
  height: 100px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.upload-icon-box:hover {
  border-color: #007bff;
}