* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 1100px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}


.header {
  height: 70px;
  line-height: 70px;
  border-bottom: 1px solid #eee;
}

.logo {
  float: left;
  font-size: 22px;
  color: #e74c3c;
  font-weight: bold;
}

.nav {
  float: left;
  margin-left: 50px;
}

.nav-item {
  display: inline-block;
  margin: 0 20px;
  font-size: 16px;
}

.nav-item.active {
  color: #e74c3c;
}

.header-actions {
  float: right;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-left: 10px;
}

.btn-primary {
  background: #e74c3c;
  color: #fff;
  border: none;
}

.btn-outline {
  border: 1px solid #e74c3c;
  color: #e74c3c;
  background: #fff;
}

.btn-white {
  background: #fff;
  color: #333;
  padding: 10px 20px;
  border-radius: 4px;
}

.hero {
  height: 350px;
  text-align: center;
  color: #fff;
}

.hero-slide {
  height: 100%;
  display: none;
  padding-top: 100px;
}

.hero-slide.active {
  display: block;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero-dots {
  text-align: center;
  margin-top: -40px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
}

.dot.active {
  background: #fff;
}

.tongji {
  padding: 40px 0;
  background: #f5f5f5;
  text-align: center;
}

.tongji-grid {
  overflow: hidden;
}

.stat-card {
  width: 25%;
  float: left;
}

.stat-card i {
  font-size: 28px;
  color: #e74c3c;
  margin-bottom: 10px;
}

.stat-num {
  font-size: 24px;
  font-weight: bold;
}

section {
  padding: 50px 0;
}

.section-header {
  overflow: hidden;
  margin-bottom: 30px;
}

.section-header h2 {
  float: left;
  font-size: 24px;
}

.more-link {
  float: right;
  color: #e74c3c;
}

.activities-grid {
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.activity-card {
  width: 24%;
  float: left;
  margin-right: 1%;
  margin-bottom: 25px;
  border: 1px solid #eee;
  padding: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.activity-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.activity-content {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

.activity-info {
  color: #666;
  margin-bottom: 10px;
  font-size: 14px;
}

.categories-grid {
  overflow: hidden;
}

.category-card {
  width: 24%;
  float: left;
  margin-right: 1%;
  text-align: center;
  padding: 10px;
  border: 1px solid #eee;
  min-height: 90px;
}

.volunteers-grid {
  overflow: hidden;
}

.volunteer-card {
  width: 24%;
  float: left;
  margin-right: 1%;
  text-align: center;
  padding: 15px;
  border: 1px solid #eee;
  min-height: 280px;
}

.footer {
  background: #333;
  color: #fff;
  padding: 40px 0;
  margin-top: 30px;
}

.footer-content {
  overflow: hidden;
}

.footer-section {
  width: 33%;
  float: left;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 13px;
}

.form-container {
  width: 400px;
  margin: 50px auto;
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 5px;
}

.form-title {
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.btn-block {
  width: 100%;
}

.form-footer {
  text-align: center;
  margin-top: 10px;
}

.dropdown-menu {
  display: flex !important;
  gap: 15px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: -20px; 
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;   
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.dropdown-menu a i {
  font-size:20px;
}
.profile-avatar img#avatarImg {
  width: 40px ;
  height: 40px ;
  object-fit: cover ;
}