.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("https://oss.allintrip.cn/shanwentou/upfiles/onepage/bannerdj.png?x-oss-process=image/quality,q_85/format,jpg");
}

section {
  height: auto;
  min-height: 50vh;
  flex-direction: column;
  align-items: start;
}

/* ===== 布局组件 ===== */
.content-wrapper {
  gap: 4rem;
  width: 100%;
  position: relative;
}

/* 栏目标题与更多链接 */
.section-title {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.between {
  justify-content: space-between;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #222;
}

.section-title .more {
  color: #999;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-title .more:hover {
  color: #0066ff;
}

.section {
  margin-bottom: 3rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

/* 党群动态卡片 - 复刻站点样式 */
.party-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.party-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.party-card__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.75) 100%
  );
  color: #fff;
}

.party-card__title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.party-card__meta {
  font-size: 12px;
  opacity: 0.85;
}

/* 响应式栅格与卡片尺寸 */
@media (max-width: 1200px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .party-card {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .section-title .more {
    font-size: 13px;
  }

  .party-card {
    height: 180px;
    border-radius: 10px;
  }

  .party-card__bottom {
    padding: 12px 14px;
  }

  .party-card__title {
    font-size: 15px;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }
}
.searchInput {
  position: absolute;
  right: 0px;
  width: 300px;
  top: 2.5rem;
}
#searchInput {
  width: 300px;
  padding: 15px 42px 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  background: #fff;
  color: #000;
  font-size: 1rem;

  box-sizing: border-box;
}

#searchInput:focus {
  border-color: var(--primary-color);
  outline: none;
}

#searchInput::placeholder {
  color: #999;
}
@media (max-width: 530px) {
  .searchInput {
  position: absolute;
  right: 20px;
  width: 230px;
  top: 2.1rem;
}
  #searchInput {
  width: 230px;
  padding: 10px 10px 10px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #000;
  font-size: 1rem;

  box-sizing: border-box;
}
}
@media (max-width:420px) {
  .searchInput {
  position: absolute;
  right: 15px;
  width: 180px;
  top: 2.1rem;
}
  #searchInput {
  width: 180px;
  padding: 8px 8px 8px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #000;
  font-size: 1rem;

  box-sizing: border-box;
}
}
@media (max-width:350px) {
  .searchInput {
  position: absolute;
  right: 15px;
  width: 150px;
  top: 2.1rem;
}
  #searchInput {
  width: 150px;
  padding: 8px 8px 8px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #000;
  font-size: 1rem;

  box-sizing: border-box;
}
}
.search-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2rem;
  pointer-events: none;
  cursor: pointer;
  height: 20px;
}
