/* 社区模式样式 - Community Mode Styles */
/* 适用于所有语言版本：简体中文、繁体中文、英文 */

/* 基础布局 */
.community-section {
  position: relative;
  z-index: 2;
  background: #eae3df;
  padding: 6.15vw 12.9875vw 6.875vw 12.9875vw;
}

/* 头部区域 */
.community-section .community-header {
  margin: 0;
  text-align: left;
}

.community-section .community-header .tit {
  margin-bottom: 2.5vw;
  line-height: 56px;
  color: #131e2b;
  position: relative;
  font-family: nm;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.community-section .community-header .tit:after {
  content: "";
  position: absolute;
  bottom: -1.8vw;
  left: 0;
  width: 6.354vw;
  height: 3px;
  background-color: #ff2426;
}

.community-section .community-header .p {
  margin: 3.2vw 0 1.8vw 0;
  color: #131e2b;
  line-height: 40px;
  font-weight: normal;
  font-family: var(--community-body-font, nl);
}

.community-section .community-header .btn {
  display: inline-block;
  width: 215px;
  line-height: 48px;
  text-align: center;
  border: 1px solid #131e2b;
  margin-bottom: 2.2vw;
  font-family: nl;
  transition: all 0.3s;
}

.community-section .community-header .btn:hover {
  background: #131e2b;
  color: #fff;
}

/* 社区模式Banner区域 */
.community-section .community-mode-banner {
  position: relative;
  margin: 0;
  color: #fff;
}

.community-section .community-mode-bg {
  display: none;
}

/* Tab标签页 */
.community-section .community-mode-tabs {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 5.15625vw;
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  width: 74vw;
  justify-content: flex-start;
  gap: 0;
}

.community-section .community-mode-tabs .community-tab-item {
  position: relative;
  margin: 0;
  padding: 0;
  height: 3.6458333vw;
  line-height: 3.6458333vw;
  border-radius: 0;
  border: 2px solid var(--mode-color, rgba(255, 255, 255, 0.85));
  border-bottom: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  color: var(--mode-color, #b06648);
  font-size: 16px;
  font-family: nl;
  text-align: center;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: bold;
}

.community-section
  .community-mode-tabs
  .community-tab-item
  + .community-tab-item {
  margin-left: -2px;
}

.community-section .community-mode-tabs .community-tab-item.on {
  z-index: 1;
}

.community-section .community-mode-tabs .community-tab-item:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.community-section .community-mode-tabs .community-tab-item.on {
  background: var(--mode-color, #b06648);
  color: #fff;
  border-color: var(--mode-color, #b06648);
  height: 5.15625vw;
  line-height: 5.15625vw;
  margin-top: 0;
  flex: 1.5 1 auto;
  font-size: 18px;
}

.community-section .community-mode-tabs .community-tab-item.on:hover {
  transform: translateY(0);
}

/* 项目展示区域 */
.community-section .community-projects {
  margin: 0;
  padding: 0;
}

.community-section .community-projects-list {
  position: relative;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.community-section .community-projects-list.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.community-section .community-projects-list.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* 项目轮播 */
.community-section .community-project-main-swiper {
  position: relative;
  width: 74vw;
  padding-bottom: 31.6vw;
  border-radius: 0;
  overflow: hidden;
}

.community-section .community-project-main-swiper .swiper-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.community-section .community-project-main-swiper .swiper-slide {
  position: relative;
}

.community-section .community-project-main {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  text-decoration: none;
}

.community-section .community-project-main-bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: no-repeat center;
  background-size: cover;
}

.community-section .community-project-main-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.community-section .community-project-main-info {
  position: absolute;
  left: 40px;
  bottom: 34px;
}

.community-section .community-project-main-info .name {
  margin-bottom: 6px;
  font-family: var(--community-body-font, nl);
}

.community-section .community-project-main-info .city {
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.85;
  font-family: var(--community-body-font, nl);
}

/* 轮播导航按钮 */
.community-section .cp-main-prev,
.community-section .cp-main-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  z-index: 10;
  cursor: pointer;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.community-section .cp-main-prev {
  left: 18px;
  background-image: url(../img-en/pjd_prev.png);
}

.community-section .cp-main-next {
  right: 18px;
  background-image: url(../img-en/pjd_next.png);
}

.community-section .community-project-main-swiper {
  width: 74vw;
  padding-bottom: 31.6vw;
  margin: 0;
}

/* 响应式设计 - 移动端 */
@media (max-width: 1024px) {
  .community-section {
    padding: 50px 23px 40px 23px;
  }
  .community-section .community-project-main-swiper {
    width: 100%;
  }
  .community-section .community-project-main-info {
    bottom: 0;
  }
  .community-section .community-header {
    margin: 0;
  }
  .community-section .community-header .tit {
    font-size: 28px;
    line-height: 38px;
    margin-bottom: 35px;
  }

  .community-section .community-header .tit:after {
    bottom: -18px;
    width: 80px;
    height: 2.5px;
  }

  .community-section .community-header .p {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 25px;
  }

  .community-section .community-header .btn {
    font-size: 18px;
  }

 
  .community-section .community-projects {
    padding: 0;
  }

  .community-section .community-header {
    padding: 0;
  }

  .community-section .community-header .tit {
    font-size: 21px;
    line-height: 29px;
    letter-spacing: 1px;
    margin-bottom: 35px;
  }

  .community-section .community-header .tit:after {
    bottom: -17px;
    width: 61px;
    height: 2px;
  }

  .community-section .community-header .p {
    font-size: 17px;
    line-height: 24px;
    margin-bottom: 25px;
    font-family: var(--community-body-font, nl);
  }

  .community-section .community-header .btn {
    width: 207px;
    line-height: 42px;
    font-size: 17px;
    margin-bottom: 40px;
    border-width: 1px;
  }

  .community-section .community-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 0;
    height: auto;
    width: 100%;
  }
  .community-section .community-mode-tabs .community-tab-item {
    padding: 0 8px;
    font-size: 13px;
    height: 48px;
    line-height: 48px;
    border-radius: 6px;
    border-width: 1.5px;
    border-style: solid;
    border-color: var(--mode-color, rgba(0, 0, 0, 0.15));
    border-bottom: 1.5px solid var(--mode-color, rgba(0, 0, 0, 0.15));
    font-weight: normal;
  }
  .community-section .community-mode-tabs .community-tab-item + .community-tab-item {
    margin-left: 0;
  }

  .community-section .community-mode-tabs .community-tab-item:not(.on) {
    background: rgba(255, 255, 255, 0.9);
    color: var(--mode-color, #b06648);
    border-color: var(--mode-color, rgba(255, 255, 255, 0.85));
  }

  .community-section .community-mode-tabs .community-tab-item.on {
    height: 48px;
    line-height: 48px;
    font-size: 14px;
    border-bottom-color: var(--mode-color, #b06648);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  .community-section .community-mode-tabs .community-tab-item:nth-child(n+5) {
    display: none;
  }

}
