/* 自定义样式，用于覆盖或扩展Bootstrap样式 */

/* 全局样式 */
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

a{
  text-decoration-line: none;
  color: #333;
}

/* 卡片样式 */
.card {
  border-radius: 8px;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
  margin-bottom: 15px;
  overflow: hidden;
}

/* 主题色按钮 */
.btn-primary {
  background-color: #4e6ef2;
  border-color: #4e6ef2;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #3d5ce0;
  border-color: #3d5ce0;
}

.btn-outline-primary {
  color: #4e6ef2;
  border-color: #4e6ef2;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: #4e6ef2;
  border-color: #4e6ef2;
}

/* 标签样式 */
.badge-primary {
  background-color: #f0f4ff;
  color: #4e6ef2;
}

/* 导航栏样式 */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 底部导航 */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.footer-nav .nav-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
}

.footer-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
  font-size: 12px;
}

.footer-nav .nav-link i {
  font-size: 20px;
  margin-bottom: 3px;
}

.footer-nav .nav-link.active {
  color: #4e6ef2;
}

/* 黑色底部导航 - 当parkNo为空时 */
.footer-nav-dark {
  background-color: #333 !important;
}

.footer-nav-dark .nav-link {
  color: #aeaeaa !important;
}

.footer-nav-dark .nav-link.active {
  color: #fff !important;
}

/* 首页大图 */
.banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* 轮播图样式 */
#bannerCarousel {
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

#bannerCarousel .carousel-indicators {
  margin-bottom: 10px;
}

#bannerCarousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
}

#bannerCarousel .carousel-indicators button.active {
  background-color: #fff;
}

#bannerCarousel .carousel-item {
  transition: transform 0.6s ease-in-out;
}

#bannerCarousel .carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

#bannerCarousel .carousel-fade .carousel-item.active {
  opacity: 1;
}

/* 内容留白样式 */
.content-with-margin {
  padding-left: 15px;
  padding-right: 15px;
}

.main-box{
  margin-bottom: 5rem !important;
}

/* 菜单网格 */
.menu-grid .card {
  height: 100%;
  border: none;
}

.menu-grid .card-body {
  display: flex;
  align-items: center;
}

.menu-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: 10px;
  color: white;
  font-size: 20px;
}

.menu-icon.blue {
  background-color: #4e6ef2;
}

.menu-icon.purple {
  background-color: #7e6ef2;
}

.menu-icon.yellow {
  background-color: #f2b06e;
}

/* 图标网格 */
.icon-grid .col {
  text-align: center;
  padding: 10px 0;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 24px;
  color: #4e6ef2;
}

.icon-circle img{
  width: 100%;
  height: 100%;
}

.icon-grid{
  padding-bottom: 0 !important;
}

/* 活动项目 */
.activity-badge {
  position: relative;
  padding: 10px 15px;
  margin-bottom: 10px;
}

.activity-badge img {
  width: 30px;
  margin-right: 10px;
}

/* 房源详情页 */
.property-header {
  position: relative;
  height: 50px;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property-info-grid .info-item {
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.info-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.info-value {
  font-size: 14px;
  color: #333;
  font-weight: bold;
}

/* 房源列表页 */
.filter-bar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
}

.filter-icon {
  font-size: 12px;
  margin-left: 5px;
  color: #999;
}

/* 新闻列表页 */
.news-source {
  display: flex;
  align-items: center;
}

.source-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  font-size: 12px;
  color: #4e6ef2;
}

/* 活动列表页 */
.activity-status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.activity-status.active {
  background-color: #f0f4ff;
  color: #4e6ef2;
}

.activity-status.ended {
  background-color: #f5f5f5;
  color: #999;
}

.activity-status.full {
  background-color: #fff0f0;
  color: #ff6b6b;
}

/* 园区介绍页 */
.contact-section {
  background-color: #fff;
  padding: 15px;
  margin-top: 10px;
}

.contact-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  border-left: 4px solid #4e6ef2;
  padding-left: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #4e6ef2;
  font-size: 20px;
}

/* 加载更多 */
.load-more {
  text-align: center;
  padding: 15px 0;
  color: #999;
  font-size: 14px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 50px 0;
  color: #999;
}

.empty-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.activity-badge img {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
}

.activity-badge span {
  margin-left: 40px;
  font-weight: bold;
}

/* 扁平化导航样式 */
.flat-nav-grid .col {
  padding: 5px;
}

.flat-nav-item {
  display: block;
  text-decoration: none;
  color: #333;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flat-nav-item:hover {
  color: #333;
  transform: translateY(-2px);
  text-decoration: none;
}

.flat-nav-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.flat-nav-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.flat-nav-item:hover .flat-nav-icon {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.flat-nav-item:hover .flat-nav-icon::before {
  opacity: 1;
}

.flat-nav-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  z-index: 2;
  position: relative;
}

.flat-nav-text {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
}

.about-us,.about-us p{
  text-indent: 2rem;
  text-align: justify;
}

/* 响应式设计 */
@media (max-width: 576px) {
  .flat-nav-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  
  .flat-nav-icon img {
    width: 28px;
    height: 28px;
  }
  
  .flat-nav-text {
    font-size: 12px;
  }
}

