/* =====================
   1. 全局基础样式
   ===================== */
:root {
  --bs-primary: #4a90e2;
  --bs-secondary: #ff7b7b;
  --bs-dark: #2c3e50;
  --bs-light: #7f8c8d;
}

/* 标题字体加粗 */
h3,
.h3 {
  font-weight: 600 !important;
}

/* 固定导航栏样式 */
.navbar-custom {
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-custom.scrolled {
  background: rgba(0, 0, 0, 0.9) !important;
}

.navbar-brand img {
  width: 160px;
  height: auto;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  padding-bottom: 8px;
  position: relative;
}

.navbar-nav .nav-link.active {
  border-bottom: none;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: #2196f3;
  border-radius: 2px;
}

/* 全屏滑动容器 */
.section-slide {
  position: absolute;
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100); /* 使用CSS变量，确保移动端正确 */
  top: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(100%); /* 默认位置：屏幕下方 */
  overflow: hidden; /* 确保内容不会溢出到其他section */
  isolation: isolate; /* 创建新的层叠上下文 */
}

/* 激活状态：显示在屏幕中央 */
.section-slide.active {
  transform: translateY(0) !important;
}

/* 向上移动的状态：移到屏幕上方（当向下滑动时，当前页面的状态） */
.section-slide.prev {
  transform: translateY(-100%) !important;
}

/* 向下移动的状态：移到屏幕下方（当向上滑动时，当前页面的状态） */
.section-slide.next {
  transform: translateY(100%) !important;
}

.hero-bg .container {
  position: relative;
  z-index: 2;
}

#section1,
#section2,
#section3,
#section4,
#section5 {
  isolation: isolate;
}

/* 愛的語言图标统一样式 */
.love-icon {
  width: 130px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0; /* 防止图标缩小 */
}

/* 5个图标容器样式，与插图宽度一致 */
.love-icons-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 右侧插图样式 - 与标签宽度一致 */
.love-illustration {
  max-width: 700px;
  height: auto;
}

/* 插图容器样式 - 确保与标签容器宽度一致 */
.love-illustration-container {
  max-width: 700px;
  margin: 0 auto;

  backdrop-filter: blur(10px);
}

/* 导航箭头 */
.nav-arrow {
  position: relative;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 1.5rem;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.nav-arrow.hidden {
  display: none;
}

.nav-arrows-container {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 100;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-delay-1 {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.animate-delay-2 {
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

/* 立即投资按钮hover样式 */
.btn-outline-light:hover {
  background: #ff7a6b !important;
  border-color: #ff7a6b !important;
  color: white !important;
}

/* =====================
   2. 桌面端专用样式
   ===================== */
@media (min-width: 992px) {
  /* 桌面端section内容到导航栏距离、排版、图片尺寸、间距等全部写在这里 */
  .section-slide:not(#section1):not(#section13) .container {
    padding-top: 70px !important;
  }
  .section-slide:not(#section1):not(#section13) h3,
  .section-slide:not(#section1):not(#section13) h2 {
    margin-top: 0 !important;
  }

  #section1 .col-lg-8 h1.display-4 {
    display: block;
    width: 100%;
    max-width: 700px;
  }
  #section1 .col-lg-8 .lead,
  #section1 .col-lg-8 .d-flex {
    display: block;
    width: 100%;
    max-width: 640px;
  }

  /* 桌面端图片、排版、间距、对齐等样式全部写在这里 */
  /* ...如有需要可继续补充... */
  #section11.section-slide,
  #section10.section-slide,
  #section8.section-slide,
  #section6.section-slide {
    align-items: flex-start !important;
  }
}

/* =====================
   3. 移动端专用样式
   ===================== */
@media (max-width: 991.98px) {
  /* 移动端所有section、图片、文字、间距、对齐等样式全部写在这里 */
  /* 包含原有所有@media (max-width: 768px)和更小的媒体查询内容 */
  .navbar-nav .nav-link.active::after {
    left: 0 !important;
    transform: none !important;
  }

  .navbar-nav .nav-link {
    padding-left: 0 !important;
  }
  .nav-arrow {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  .nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: none;
  }
  .nav-arrows-container {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 15px !important;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    border-radius: 30px;
    padding: 8px 16px;
  }
  @supports (height: 100svh) {
    .nav-arrows-container {
      bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }
  }
  @supports (-webkit-touch-callout: none) {
    .nav-arrows-container {
      bottom: 12px !important;
      position: fixed !important;
    }
  }
  @media (max-height: 600px) {
    .nav-arrows-container {
      bottom: 8px !important;
    }
    .nav-arrow {
      width: 40px !important;
      height: 40px !important;
    }
  }
  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .navbar-toggler {
    font-weight: 300 !important;
  }
  .navbar-toggler span {
    font-weight: 300 !important;
    font-family: "Helvetica Neue", Arial, sans-serif !important;
  }
  #section1 {
    background-position: 90% center !important;
  }
  #section2 {
    background-position: 50% center !important;
  }
  #section3 {
    background-position: 60% center !important;
  }
  #section4 {
    background-position: 20% center !important;
  }
  #section5 {
    background-position: 20% center !important;
  }
  #section6 {
    background-position: 55% center !important;
  }
  #section7 {
    background-position: 70% center !important;
  }
  #section8 {
    background-position: 64% center !important;
  }
  #section9 {
    background-position: 70% center !important;
  }
  #section10 {
    background-position: 70% center !important;
  }
  #section11 {
    background-position: 22% center !important;
  }
  #section12 {
    background-position: 25% center !important;
  }
  #section13 .main-content-bg {
    background-position: 65% center !important;
  }
  #section5 .text-start.mb-5 {
    padding-left: 0 !important;
  }
  .display-8 {
    font-size: 1.8rem !important;
  }
  #section3 .container,
  #section4 .container,
  #section5 .container,
  #section6 .container,
  #section7 .container {
    padding-bottom: 100px !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #section13 footer .col-lg-2.d-lg-none {
    display: block !important;
    width: 33.333333% !important;
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    margin-bottom: 0 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    float: left !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  #section13 footer .col-lg-2.d-lg-none ul {
    margin-bottom: 0 !important;
  }
  #section13 footer .col-lg-2.d-lg-none li {
    margin-bottom: 0.3rem !important;
  }
  #section13 footer .col-lg-2.d-lg-none.ps-4 {
    padding-left: 0.5rem !important;
  }
  #section13 footer .row {
    display: block !important;
  }
  #section13 footer .row::after {
    content: "";
    display: table;
    clear: both;
  }
  #section13 .main-content-bg {
    height: 100vh !important;
  }
  #section13 {
    overflow: visible !important;
  }
  #section13 .container {
    min-height: 100vh;
  }
  #section13 footer {
    padding: 3rem 0 150px 0 !important;
    min-height: 200px !important;
  }
  #section13 .container > div:first-child {
    min-height: calc(100vh - 320px) !important;
  }

  #section4 .container {
    margin-top: 5px !important;
  }
  #section4,
  #section3,
  #section2,
  #section5,
  #section6,
  #section7,
  #section8,
  #section9,
  #section10,
  #section11,
  #section12 {
    align-items: flex-start !important;
    padding-top: 65px !important;
  }

  #section8 h2,
  #section8 .h2.mt-4 {
    margin-top: 0.5rem !important;
  }
  #section8 .col-lg-10 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  #section8 .row.align-items-start {
    padding: 1rem !important;
    align-items: center !important;
  }
  #section8 {
    align-items: flex-start !important;
  }
  #section2 .d-flex.justify-content-end,
  #section5 .d-flex.justify-content-end,
  #section6 .d-flex.justify-content-end,
  #section9 .d-flex.justify-content-end,
  #section10 .d-flex.justify-content-end,
  #section11 .d-flex.justify-content-end {
    justify-content: center !important;
  }
  #section3 .d-flex.justify-content-start,
  #section4 .d-flex.justify-content-end,
  #section10 .d-flex.justify-content-start,
  #section7 .d-flex.justify-content-center {
    margin-top: auto !important;
    margin-bottom: 1rem !important;
    justify-content: center !important;
  }
  #section5 .d-flex.justify-content-start {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    justify-content: center !important;
  }
  #section2 .d-flex img,
  #section4 .d-flex img,
  #section5 .d-flex img {
    max-height: 360px !important;
  }
  #section6 .d-flex img {
    max-height: 400px !important;
  }

  #section7 .d-flex img,
  #section8 .d-flex img,
  #section9 .d-flex img {
    max-height: 340px !important;
  }
  #section3 .d-flex img,
  #section10 .d-flex img {
    max-height: 380px !important;
  }
  #section11 .d-flex img {
    max-width: 100% !important;
    height: auto !important;
  }

  #section1 .btn {
    font-size: 1.1rem !important;
    padding: 0.8rem 1.6rem !important;
    width: 85% !important;
    max-width: 340px !important;
  }
  #section1 .btn img {
    width: 18px !important;
    height: 18px !important;
  }
  #section1 .d-flex {
    align-items: center !important;
  }
  #section5 .col-lg-4 {
    order: 4;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    margin-top: 0.5rem !important;
  }
  #section5 .col-lg-8 {
    order: 2;
    text-align: center;
  }

  .love-icon {
    width: 60px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
  }
  #section5 .love-illustration-container {
    max-width: 320px !important;
    margin: 0 auto 1rem auto !important;
  }
  #section5 .love-illustration {
    max-width: 100% !important;
    height: auto !important;
  }
  #section5 .col-lg-4 img {
    max-width: 240px !important;
    height: auto !important;
  }
  #section5 .love-icons-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #section1 .lead {
    text-align: justify;
  }
  #section2 p,
  #section3 p,
  #section4 p,
  #section5 p,
  #section6 p,
  #section7 p,
  #section8 p,
  #section9 p,
  #section10 p,
  #section11 p,
  #section12 p {
    text-align: justify !important;
  }
  .section-slide h3.mt-3.mb-4 {
    margin-top: 0.6rem !important;
    margin-bottom: 1rem !important;
  }
}

/* =====================
   4. 更小屏幕特殊处理
   ===================== */
@media (max-width: 576px) {
  /* 针对超小屏幕的特殊样式 */
  #section2,
  #section3,
  #section4,
  #section5,
  #section6,
  #section7,
  #section8,
  #section9,
  #section10,
  #section11 {
    padding-top: 65px !important;
  }
  #section2 .h2.mt-4,
  #section5 .h2.mt-4,
  #section8 .h2.mt-4 {
    margin-top: 1rem !important;
  }
  #section8 h2,
  #section8 .h2.mt-4 {
    margin-top: 0.5rem !important;
  }
  #section8 .row.align-items-start.mt-5 {
    margin-top: 1rem !important;
    padding-top: 0 !important;
  }
  #section13 footer {
    padding: 2rem 0 160px 0 !important;
    min-height: 220px !important;
  }
  #section13 footer .col-lg-2.d-lg-none {
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
  }
  #section13 footer .col-lg-2.d-lg-none li {
    margin-bottom: 0.5rem !important;
  }
}
@media (max-width: 375px) and (max-height: 667px) {
  /* 针对极小屏幕的页脚优化 */
  #section13 footer {
    padding: 1.5rem 0 170px 0 !important;
    min-height: 240px !important;
  }
}

/* 购买页面样式 */
.purchase-section {
  background: url("../images/purchase-bg.png") center/cover no-repeat;
  min-height: 100vh;
  position: relative;
}

.purchase-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.purchase-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 60px;
}

.feature-card,
.purchase-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-card {
  background: linear-gradient(145deg, #f9faec 0%, #e1c790 100%);
  position: relative;
  z-index: 10;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.purchase-card {
  background: linear-gradient(145deg, #ebd19c 0%, #d4b583 100%);
  position: relative;
  z-index: 5;
}

/* 桌面端卡片重叠效果 */
@media (min-width: 992px) {
  .purchase-card {
    margin-left: -80px;
    padding-left: 60px;
    height: 90%;
    align-self: center;
  }
}

.btn-purchase {
  border-radius: 2rem;
  font-weight: 600;
}

.form-control-custom {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ced4da;
}

.qty-control {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 1px solid #6c757d;
  background: #f8f9fa;
}

/* 移动端 */
@media (max-width: 991.98px) {
  .purchase-content {
    padding-top: 100px;
  }

  .purchase-card {
    margin-left: 0 !important;
  }
  .feature-card .list-group-item {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
  }
}

.feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff7b3f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid white;
}

.feature-title {
  line-height: 28px;
  margin-bottom: 0.5rem;
}

.form-control:focus {
  border-width: 2px !important;
}
.purchase-card .d-flex span.me-3,
.purchase-card .d-flex label.me-3 {
  min-width: 80px !important;
  margin-right: 1rem !important;
}
.form-control:focus {
  border-width: 2px !important;
  border-color: #212529 !important;
  box-shadow: none !important;
}

.form-item  {
  line-height: 40px;
}

/* 支付成功失败弹框 */
.payment-modal .modal-dialog {
  max-width: 420px;
}

.payment-modal .modal-content {
  border-radius: 20px;
  border: none;
  background: linear-gradient(145deg, #f4efda 40%, #ffffff 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.payment-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.btn-close-payment {
  border-radius: 30px;
  min-width: 120px;
  transition: all 0.3s ease;
}

.btn-close-payment:hover {
  transform: translateY(-1px);
}

/* 移动端适配 */
@media (max-width: 576px) {
  .payment-modal .modal-dialog {
    max-width: 90%;
    margin: 1rem auto;
  }

  .payment-icon {
    width: 70px;
    height: 70px;
  }
}


.menu {
  display: none;
  position: fixed;
  background-color: #FFF;
  z-index: 101;
  overflow: scroll;
  transition: all 350ms ease;
  -webkit-overflow-scrolling: touch;
}

.menu .content {
  margin-bottom: 0px !important;
}

.menu-box-modal {
  top: 50%;
  left: 50%;
  width: 330px;
  max-height: 480px;
  transform: translate(-50%, -50%) scale(0, 0);
  opacity: 0;
  pointer-events: none;
  transition: all 350ms ease;
}

.menu-box-modal-full {
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}

.menu-box-detached,
.menu-box-modal {
  border-radius: 15px;
}

.menu-box-modal.menu-active {
  transition: all 350ms ease;
  pointer-events: all !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1, 1);
}

.menu-box-modal.menu-box-modal-full {
  max-height: 100%;
  width: 100%;
  height: 100%;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  transform: translate(0%, 0%);
}

.menu-box-modal.menu-active {
  transition: all 350ms ease;
  pointer-events: all !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1, 1);
}

.menu-title h1 {
  font-size: 20px;
  font-weight: 700;
  padding: 20px 0px 3px 20px;
}

.menu-title p {
  font-size: 11px;
  margin: -15px 0px 10px 20px;
  padding: 0px 0px 0px 0px;
}

.menu-title a {
  font-size: 20px;
  color: #dc3545;
  position: absolute;
  text-align: center;
  width: 55px;
  line-height: 85px;
  right: 0px;
  top: 0px;
}

.pupUpButton {
  font-size: 14px !important;
  text-align: center !important;
  line-height: 21px !important;
  font-weight: 500 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.chlidButtonActive {
  background-image: linear-gradient(-65deg, #276AFF 0%, #539CFC 100%) !important;
  color: #FFFFFF !important;
}

.btn-full {
  display: block;
}

/* 自定义 Loading 样式 */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s linear;
}

#loading.show {
  visibility: visible;
  opacity: 1;
}