.main-container {
  margin: 0 auto;
  max-width: 120rem;
  overflow: hidden;
  position: relative;
}

/* Content Item Visibility 内容切换 */
.main-container .content-item:not(.active) {
  display: none;
}

.main-container .content-item.active {
  display: block;
  position: relative;
}

.title {
  font-size: 1.875rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
}

.title h2 {
  color: var(--text-color-primary);
  display: inline-block;
  margin: 0;
  max-width: 80%;
  padding: 0 0 0.5rem;
  position: relative;
}

.title h2::after {
  background-color: var(--main-color);
  bottom: 0;
  content: "";
  height: 2px;
  position: absolute;
  width: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.team-building {
  margin-top: 2.1875rem;
  display: flex;
  flex-wrap: wrap;
}

.team-building .team-building-item {
  width: 100%;
  padding: 0 0.9375rem;
  margin-bottom: 0.9375rem;
  overflow: hidden;
}

.team-building-item .img-box {
  width: 100%;
}

.team-building-item .img-box img {
  width: 100%;
  display: inline-block;
}

.team-building-item .info {
  padding: 1.56rem 2.25rem;
  background-color: #f8f8f8;
}

.team-building-item .info .info-title {
  max-height: 7.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.875rem;
  margin-bottom: 0.625rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.team-building-item .info .info-meta {
  display: flex;
  height: 2.875rem;
  font-size: 0.875rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.team-building-item .info .info-meta div {
  display: flex;
  align-items: center;
}

.team-building-item .info .info-meta div:last-child {
  margin-left: 0.55rem;
}

.team-building-item .info .info-meta div span {
  margin-right: 0.25rem;
  vertical-align: middle;
  color: #333333;
}

.team-building-item .info .info-summary {
  max-height: 3.375rem;
  color: #666;
  font-size: 0.875rem;
  line-height: 1.6875rem;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.team-building-item:hover .img-box img {
  transform: scale(1.08);
}

.team-building-item .img-box {
  overflow: hidden;
  width: 100%;
  max-height: 15.3125rem;
}

.team-building-item .img-box img {
  width: 100%;
  transition: all 0.5s;
  transform: scale(1.01);
}

.team-building .more {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 3rem;
}

.team-building .more a {
  display: block;
  min-width: 10.625rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  font-size: 0.9375em;
  line-height: 2.5rem;
  text-align: center;
  color: #111;
  border: 1px solid #111;
}

.team-building .more a:hover {
  color: #fff;
  background: #c7000b;
  border: 1px solid #c7000b;
}

.sharing-plan .sharing-plan-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1.875rem;
  padding: 0 0.9375rem;
}

.sharing-plan .sharing-plan-content .sharing-plan-image,
.sharing-plan .sharing-plan-content .sharing-plan-desc {
  width: 46%;
  font-size: 0.9375rem;
}

.sharing-plan .sharing-plan-content .sharing-plan-image img {
  width: 100%;
  display: inline-block;
}

.sharing-plan-dialog {
  display: none;
  position: relative;
}

.sharing-plan-dialog .sharing-plan-dialog-mask {
  width: 100vw;
  height: 100vh;
  background: #000;
  opacity: 0.6;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 8;
}

.sharing-plan-dialog .sharing-plan-dialog-content {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
  background: #fff;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
}

.sharing-plan-dialog .sharing-plan-dialog-content p {
  line-height: 1.8rem;
  vertical-align: middle;
}

.sharing-plan-dialog .sharing-plan-dialog-content p .icon-dianhua {
  display: inline-block;
  margin-right: 0.3rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.groupbuy-section {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 5rem 0.9375rem;
  background-color: #fcfdfc;
}

.groupbuy-container {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  gap: 5rem;
  padding: 0 0.9375rem;
}

.groupbuy-info {
  flex: 1;
  background-color: #c7000b;
  padding: 2rem;
  border-radius: 10px;
  color: #fff;
}

.info-header h2 {
  font-size: 2.25rem;
  margin: 0.9375rem 0;
  line-height: 1.3;
}

.info-header .badge {
  display: inline-block;
  line-height: 1.875rem;
  padding: 0 1rem;
  background-color: #fff;
  letter-spacing: 1px;
  border-radius: 20px;
  color: #c7000b;
}

.info-list {
  margin-top: 2.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9375rem;
  margin-bottom: 1.56rem;
}

.info-icon .iconfont {
  font-size: 1.375rem;
}

.info-text h4 {
  font-size: 1rem;
  margin: 0 0 0.3125rem 0;
}

.info-text p {
  font-size: 0.875rem;
}

.social-qr {
  display: flex;
  gap: 1.875rem;
  margin-top: 3.125rem;
}

.qr-item {
  text-align: center;
  font-size: 0.75rem;
}

.qr-item img {
  width: 6.25rem;
  height: 6.25rem;
  background: #eee;
  margin-bottom: 0.625rem;
  border-radius: 0.5rem;
}

/* 右侧表单样式 */
.groupbuy-form {
  flex: 1;
  background: #ffffff;
  padding: 3.125rem;
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.05);
}

@media screen and (min-width: 1025px) {
  /* 隐藏移动端图片 */
  .image-banner .hidden-sm,
  .divider .hidden-sm {
    display: none;
  }

  .image-banner .content-box .vertical-middle-sm {
    margin: 0 auto;
    max-width: 85.375rem;
    /* 保持原有的最大宽度 */
    width: 80%;
  }

  .divider .bg {
    height: auto;
    width: 100%;
  }

  .divider .content-box .title h2::after {
    content: "";
    width: 30%;
    height: 2px;
    background-color: var(--main-color);
    bottom: 0;
    left: 50%;
    min-width: 2.1875rem;
    transform: translateX(-50%);
  }

  .divider .content-box .row {
    width: 85.652%;
    font-size: 1.1125rem;
    font-weight: 600;
  }

  .divider .content-box .row .row-item {
    width: 19.5%;
    text-align: center;
    padding: 0 0.9375rem;
  }

  .divider .content-box .row .row-item .iconfont {
    font-weight: normal;
  }
}

/* --- Media Queries 媒体查询 (Mobile/Tablet - max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
  .image-banner .hidden-lg,
  .divider .hidden-lg {
    display: none;
  }

  .image-banner .hidden-sm {
    width: 100%;
  }

  .image-banner .content-box .vertical-middle-sm,
  .divider .bg {
    width: 100%;
    height: 100%;
  }

  .content {
    padding: 0 0.9375rem;
  }

  .sharing-plan .sharing-plan-content {
    display: block;
  }

  .sharing-plan .sharing-plan-content .sharing-plan-image,
  .sharing-plan .sharing-plan-content .sharing-plan-desc {
    width: 100%;
  }

  .sharing-plan .sharing-plan-content .sharing-plan-image {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .sharing-plan .sharing-plan-content .sharing-plan-desc .main-button {
    width: 100%;
  }

  .sharing-plan-dialog .sharing-plan-dialog-content {
    max-width: 300px;
  }

  .team-building-item .info .info-meta {
    height: auto;
    display: block;
  }

  .team-building-item .info .info-meta div:last-child {
    margin-left: 0;
  }

  .team-building {
    flex-wrap: wrap;
  }

  .team-building .team-building-item {
    padding: 0;
  }

  .groupbuy-container {
    flex-direction: column;
    gap: 3.125rem;
  }

  .groupbuy-form {
    padding: 1.875rem;
  }

  .social-qr {
    justify-content: center;
  }
}
