/**
 * 首页（Figma 导出）页面级样式。
 * 若你原先与 index.html 同目录的 style.css 仍在本地，请整文件内容粘贴到本文件末尾，
 * 再按需合并重复选择器。以下仅包含从 HTML 内联样式抽出的补丁与底色彩条。
 */

.news-item--last,
.news-list > .news-item:last-child {
  border-bottom: none;
}

.footer-colorbar {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow: hidden;
}

.footer-colorbar span {
  display: block;
  height: 16px;
  flex-shrink: 0;
}

.footer-colorbar span:nth-child(1) {
  width: 240px;
  background: #dc3e72;
}
.footer-colorbar span:nth-child(2) {
  width: 240px;
  background: #b11e4e;
}
.footer-colorbar span:nth-child(3) {
  width: 240px;
  background: #b11e4e;
}
.footer-colorbar span:nth-child(4) {
  width: 240px;
  background: #ffa390;
}
.footer-colorbar span:nth-child(5) {
  width: 240px;
  background: #dc3e72;
}
.footer-colorbar span:nth-child(6) {
  width: 240px;
  background: #b11e4e;
}
.footer-colorbar span:nth-child(7) {
  width: 73px;
  background: #e92264;
}
.footer-colorbar span:nth-child(8) {
  width: 169px;
  background: #f8d8e3;
}
.footer-colorbar span:nth-child(9) {
  width: 240px;
  background: #dc3e72;
}

/* 首页留言提交提示（对齐 sectors message 行为，无 jQuery） */
.home-toast {
  position: fixed;
  left: 50%;
  top: max(24px, env(safe-area-inset-top, 0px));
  transform: translateX(-50%) translateY(-12px);
  z-index: 10000;
  max-width: min(90vw, 400px);
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.home-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.home-toast--success {
  background: #e8f8f5;
  color: #0a6b5c;
  border: 1px solid #9de0d3;
}
.home-toast--error {
  background: #fff2f0;
  color: #a61b1b;
  border: 1px solid #ffccc7;
}
.home-toast--warning {
  background: #fffbe6;
  color: #8a6d00;
  border: 1px solid #ffe58f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
      background: #fff;
      color: #000;
      /* 勿设 min-width：与 Tailwind 响应式版心冲突，会在手机端造成整页横向溢出 */
      min-width: 0;
    }

    /* ── Top bar ── */
    .topbar {
      background: #f9f9f9;
      height: 32px;
    }
    .topbar .container {
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .topbar-left { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(0,0,0,.7); }
    .topbar-right { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(0,0,0,.7); }
    .topbar-divider { width: 1px; height: 16px; background: rgba(0,0,0,.05); }
    .topbar-icon { width: 16px; height: 16px; object-fit: contain; }

    /* ── Navbar ── */
    .navbar {
      background: #fff;
      height: 64px;
    }
    .navbar .container {
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .navbar-logo { height: 32px; width: 98px; flex-shrink: 0; }
    .navbar-nav { display: flex; gap: 56px; height: 64px; align-items: center; }
    .nav-item {
      height: 64px;
      display: flex;
      align-items: center;
      font-family: 'Poppins', sans-serif;
      font-size: 20px;
      cursor: pointer;
      border-bottom: 4px solid transparent;
      padding-top: 4px;
    }
    .nav-item.active { color: #dc3e72; border-bottom-color: #dc3e72; font-weight: 700; }
    .navbar-search {
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(220, 62, 114, 0.8);
      border-radius: 37px;
      padding: 0 16px;
      height: 36px;
      width: 196px;
    }
    .navbar-search img { width: 20px; height: 20px; }
    .navbar-search span { font-size: 16px; color: rgba(0,0,0,.3); }

    /* ── Hero / 首页 Swiper 轮播（数据 FD_List bo97nbx0ye4g，同 cirs-en-ck）── */
    .home-hero-swiper {
      height: 560px;
    }
    .home-hero-swiper .swiper-slide {
      height: 560px;
    }
    @media (max-width: 1199px) {
      .home-hero-swiper {
        height: auto;
        min-height: 280px;
      }
      .home-hero-swiper .swiper-slide {
        height: auto;
        min-height: 280px;
      }
    }
    .home-hero-swiper .hero-slide-bg {
      display: block;
    }
    .home-hero-swiper .hero-container {
      min-height: inherit;
    }
    .home-hero-swiper .swiper-pagination-bullet {
      background: #fff;
      opacity: 0.45;
      border-radius: 19px 19px 19px 19px !important;
    }
    .home-hero-swiper .swiper-pagination-bullet-active {
      opacity: 1;
      background: #dc3e72;
    }

    .hero {
      position: relative;
      height: 560px;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(96deg, rgba(0,0,0,.46) 22.75%, rgba(0,0,0,.13) 75.31%);
    }
    .hero-container {
      max-width: 1200px;
      margin: 0 auto;
      position: relative;
      height: 100%;
    }
    .hero-content {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;
    }
    .hero-title {
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      font-size: 56px;
      color: #fff;
      line-height: 1.2;
      margin-bottom: 24px;
    }
    .hero-subtitle {
      font-family: 'Poppins', sans-serif;
      font-size: 24px;
      color: #fff;
      line-height: 36px;
      width: 100%;
      max-width: 706px;
      box-sizing: border-box;
      margin-bottom: 32px;
    }
    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(96.44deg, #39d6b2 1.25%, #0dc5bf 100%);
      color: #fff;
      font-size: 18px;
      font-weight: 600;
      padding: 8px 24px;
      border-radius: 2px;
      cursor: pointer;
      border: none;
    }
    .hero-cta img { width: 22px; height: 22px; }

    /* ── Stats bar ── */
    .statsbar {
      height: 64px;
      background: linear-gradient(135deg, rgb(255, 163, 144) 0%, rgb(220, 62, 114) 100%);
    }
    .statsbar .container {
      height: 64px;
      display: flex;
      align-items: center;
    }
    .stat-item {
      display: flex;
      align-items: center;
      gap: 4px;
      color: #fff;
      flex: 1;
    }
    .stat-plus { width: 20px; height: 20px; }
    .stat-num {
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      font-size: 28px;
    }
    .stat-label { font-size: 16px; font-weight: 500; margin-left: 8px; }
    .stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.4); margin: 0 12px; }

    /* 仅首页 statsbar：窄屏四列 flex 会因 min-width:auto 撑破 viewport（其它页无此块） */
    @media (max-width: 1023px) {
      .statsbar {
        height: auto;
        min-height: 64px;
      }
      .statsbar .container {
        flex-wrap: wrap;
        height: auto;
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
        row-gap: 12px;
        column-gap: 8px;
        justify-content: space-between;
      }
      .statsbar .stat-divider {
        display: none;
      }
      .statsbar .stat-item {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        max-width: calc(50% - 4px);
      }
      .statsbar .stat-label {
        margin-left: 4px;
        font-size: 13px;
        line-height: 1.25;
        white-space: normal;
      }
      .statsbar .stat-num {
        font-size: 22px;
      }
    }

    /* ── Section title ── */
    .section-title {
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      font-size: 40px;
      color: #b11e4e;
      text-align: center;
      line-height: 56px;
    }

    /* ── Events & News ── */
    .news {
      background: #f9f9f9;
      padding: 80px 0;
    }
    .news-title-wrap {
      position: relative;
      margin-bottom: 48px;
      text-align: center;
    }
    .news-dot {
      display: block;
      width: 31px;
      margin: 0 auto 16px;
    }
    /* 勿写死 636px 宽：在 container max-width 内会横向溢出；用 max-width + 可换行 flex */
    .news-layout {
      display: flex;
      flex-wrap: wrap;
      gap: 48px;
      align-items: flex-start;
    }
    .news-featured {
      position: relative;
      flex: 0 1 636px;
      max-width: 636px;
      min-width: 0;
      width: 100%;
    }
    .news-featured-img {
      width: 100%;
      max-width: 636px;
      height: auto;
      aspect-ratio: 636 / 478;
      object-fit: cover;
      border-radius: 2px;
      display: block;
    }
    .news-featured-label {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 80px;
      display: flex;
      align-items: center;
      padding: 0 24px;
      color: #fff;
      font-size: 24px;
      font-weight: 600;
      border-radius: 0 0 2px 2px;
      background: linear-gradient(268deg, rgba(104,229,232,0) .36%, rgba(103,229,232,.32) 96.07%),
                  url('assets/bdd5e52b-18eb-4690-8ea7-505a04a2d88f.svg') center/cover no-repeat;
    }
    .news-list {
      flex: 1 1 280px;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .news-item {
      border-bottom: 1px solid rgba(0,0,0,.08);
      padding-bottom: 12px;
    }
    .news-item-title {
      font-size: 24px;
      font-weight: 600;
      color: #000;
      line-height: 34px;
      margin-bottom: 4px;
    }
    .news-item-date { font-size: 16px; color: rgba(0,0,0,.5); line-height: 20px; }
    .news-cta {
      display: flex;
      justify-content: center;
      margin-top: 48px;
    }
    .btn-outline {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(220, 62, 114, 0.8);
      border-radius: 2px;
      padding: 12px 24px;
      color: #dc3e72;
      font-size: 18px;
      font-weight: 600;
      cursor: pointer;
      background: transparent;
    }
    .btn-outline img { width: 24px; height: 24px; }

    /* ── Global / Message Us：已迁至 _home_global.gohtml + Tailwind（src/input.css 图钉槽位）── */

    /* Contact form（若其它页仍引用下列 class 可保留；首页表单已用 Tailwind） */
    .contact-form-wrap {
      background: #fff;
      border-radius: 4px;
      width: 384px;
      flex-shrink: 0;
      padding: 20px 24px;
    }
    .form-title { font-size: 24px; font-weight: 600; margin-bottom: 24px; }
    .form-group { margin-bottom: 16px; }
    .form-label { font-size: 16px; margin-bottom: 8px; display: block; }
    .form-input {
      width: 100%;
      height: 48px;
      border: 1px solid rgba(0,0,0,.15);
      border-radius: 2px;
      padding: 0 16px;
      font-size: 16px;
      color: rgba(0,0,0,.4);
      outline: none;
    }
    .form-textarea {
      width: 100%;
      height: 120px;
      border: 1px solid rgba(0,0,0,.15);
      border-radius: 2px;
      padding: 12px 16px;
      font-size: 16px;
      color: rgba(0,0,0,.4);
      outline: none;
      resize: none;
    }
    .form-submit {
      width: 100%;
      height: 48px;
      background: linear-gradient(93.17deg, #ffa390 .39%, #dc3e72 100%);
      border: none;
      border-radius: 2px;
      color: #fff;
      font-size: 18px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 8px;
    }
    .form-required { color: #dc3e72; }
    .form-captcha-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .form-input--captcha { flex: 1; min-width: 0; }
    .form-code {
      flex-shrink: 0;
      width: auto;
      max-width: 140px;
      object-fit: contain;
      cursor: pointer;
      border-radius: 2px;
      border: 1px solid rgba(0,0,0,.12);
    }

