/* 自定义样式：用于微调版式以匹配图片布局 */
/* ========== 全局样式 ========== */

/* ========== 导航栏 ========== */
/*.navbar {*/
/*  background: #fff !important;*/
/*  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
/*}*/

/*.navbar-brand {*/
/*  letter-spacing: 2px;*/
/*  font-size: 1.3rem !important;*/
/*  color: var(--dark-text) !important;*/
/*}*/

/*.navbar-nav .nav-link {*/
/*  color: var(--light-text) !important;*/
/*  margin: 0 12px;*/
/*  transition: color 0.3s ease;*/
/*}*/

/*.navbar-nav .nav-link:hover {*/
/*  color: var(--primary-tan) !important;*/
/*}*/

/*.navbar-nav .nav-link.text-danger {*/
/*  color: #d32f2f !important;*/
/*}*/

/* ========== 主视觉区块 ========== */
.hero-section {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-trees-right {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.hero-buildings-left {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--dark-text);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-text);
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .hero-section {
    height: 300px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
}

/* ========== 导航按钮条 ========== */
.nav-buttons-bar {
    height:6.25rem;
    background-color:#E3CBB3;
}

.nav-btn-link {
  display: block;
  padding:0;
  height: 100px;
  line-height:100px;
  color:#FFFFFF;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.nav-btn-link:hover,.nav-buttons-bar .active {
  color:#FFFFFF;
  background-color: rgba(214,171,128,1);
}

/* Offcanvas（移动端左侧弹窗）样式 */
.offcanvas {
  width: 270px;
  background: #fff;
}
.offcanvas .nav-link {
  color: var(--dark-text);
  padding: 10px 0;
}
.offcanvas .offcanvas-header {
  border-bottom: 1px solid #eee;
}
.offcanvas .btn-close {
  filter: grayscale(1);
}
/* 使 offcanvas 打开/关闭时的位移动画更平滑（与 Bootstrap 的 transform 协同） */
.offcanvas {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
}
.offcanvas-backdrop {
  transition: opacity 0.45s ease;
}

/* 在 offcanvas 打开时，为内部内容添加轻微的淡入/上移效果 */
.offcanvas .offcanvas-body > * {
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.offcanvas.show .offcanvas-body > * {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-btn-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* ========== 通用区块标题 ========== */
.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark-text);
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-tan);
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== 加盟优势区块 ========== */
#advantages {
  background: #fff;
}

.advantage-main-image {
  border-radius: 12px;
  overflow: hidden;
}

.advantage-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.advantage-card {
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-8px);
}

.advantage-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ========== 店型支持区块 ========== */
#store-types {
  background-color: #f8f7f5 !important;
}

.store-type-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.store-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.store-type-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.store-type-card .card-body {
  padding: 20px;
}

.store-type-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.store-type-card .card-text {
  font-size: 0.9rem;
  color: var(--light-text);
}

/* ========== 总部支持区块 ========== */
#support {
  background: #fff;
}

.support-box {
  background-color: var(--primary-beige) !important;
  border-radius: 16px;
  padding: 40px !important;
}

.support-title {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--dark-text);
  margin-bottom: 30px !important;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--dark-text);
  font-size: 0.95rem;
}

.support-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  color: var(--primary-tan);
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
}

.support-text {
  flex: 1;
}

/* ========== 加盟流程区块 ========== */
#process {
  background-color: var(--primary-beige) !important;
}

.process-step {
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.step-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-tan);
  margin-bottom: 12px;
}

.step-text {
  font-size: 0.9rem;
  color: var(--dark-text);
  font-weight: 500;
  margin: 0;
}

/* ========== 加盟登记表单 ========== */
#register {
  background: #fff;
}

.register-form-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

.register-form {
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.register-form .form-control {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.register-form .form-control:focus {
  border-color: var(--primary-tan);
  box-shadow: 0 0 0 0.2rem rgba(194, 169, 139, 0.25);
}

.register-form textarea.form-control {
  resize: none;
  min-height: 120px;
}

.btn-submit {
  width: 220px;
    height: 66px;
    line-height: 28px;
    border-radius: 100px;
    background-color: rgba(214,171,128,1);
    color: rgba(255,255,255,1);
    font-size: 20px;
    text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: rgba(214,171,128,0.8);
  color: rgba(255,255,255,1);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ========== 联系我们区块 ========== */
#contact {
  background-color: #f8f7f5 !important;
}

.contact-info {
  padding: 20px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-tan);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  color: var(--dark-text);
  font-weight: 500;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--primary-beige);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-beige-dark);
  transform: scale(1.1);
}


/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.4rem;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .support-box {
    padding: 30px !important;
  }

  .support-title {
    font-size: 1.2rem;
  }

  .register-form {
    padding: 30px 20px;
  }

  .contact-info {
    padding: 0;
  }

  .social-links {
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem !important;
  }

  .hero-section {
    height: 250px;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-title::after {
    width: 40px;
  }

  .process-step {
    padding: 16px 12px;
    min-height: 120px;
  }

  .step-number {
    font-size: 1.5rem;
  }

  .support-box {
    padding: 20px !important;
  }

  .support-item {
    font-size: 0.85rem;
    padding: 8px 0;
  }

  .support-number {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .register-form {
    padding: 20px 15px;
  }

  .contact-item {
    gap: 12px;
  }

  .contact-icon {
    font-size: 1.2rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ========== 动画优化 ========== */
.animate__animated {
  animation-duration: 0.8s;
}

.animate__fadeInLeft,
.animate__fadeInRight {
  animation-duration: 0.9s;
}

.animate__fadeInUp {
  animation-duration: 0.8s;
}
