/* ═══════════════════════════════════════════════════════════════
   Section 9 - Join The Family / Create Account (背景图 + 玻璃卡 CTA)
   自适应高度与宽度
   ═══════════════════════════════════════════════════════════════ */

.section-join {
  position: relative;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  background: #16243f url('../images/bg9-1.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vw, 100px) clamp(20px, 4vw, 64px);
}

/* 左侧加一层渐变遮罩，保证文字可读 */
.section-join::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 25, 45, 0.82) 0%, rgba(15, 25, 45, 0.45) 45%, rgba(15, 25, 45, 0.05) 80%);
  pointer-events: none;
}

.join-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--content-max, 1280px);
  width: 100%;
  margin: 0 auto;
}

/* ───────── 左侧内容 ───────── */
.join-content { max-width: 600px; }

.join-tag {
  margin: 0;
  color: #bc994b;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 4px;
}

.join-title {
  margin: 18px 0 0;
  color: #fff;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.26;
}

.join-intro {
  margin: 22px 0 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.9;
}

/* ───────── 四个权益玻璃卡 ───────── */
.join-benefits {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
}

.join-benefit {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 24px);
  padding: 16px clamp(18px, 1.8vw, 26px);
  background: rgba(47, 70, 98, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.35s ease,
              border-color 0.35s ease;
}
.join-benefit:hover {
  transform: translateX(6px);
  background: rgba(57, 82, 112, 0.85);
  border-color: rgba(188, 153, 75, 0.5);
}

.join-benefit__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
  /* 白色图标染成金色 */
  filter: brightness(0) saturate(100%) invert(64%) sepia(38%) saturate(620%) hue-rotate(2deg) brightness(92%) contrast(86%);
}

.join-benefit__txt { min-width: 0; }

.join-benefit__name {
  display: block;
  color: #d9b878;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
}

.join-benefit__desc {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* ───────── CREATE ACCOUNT 按钮（桌面端定位在右下） ───────── */
.join-btn {
  position: absolute;
  right: 0;
  bottom: clamp(20px, 6vh, 90px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 333px;
  max-width: 100%;
  height: 64px;
  box-sizing: border-box;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid #fff;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.join-btn:hover {
  background: rgba(188, 153, 75, 0.92);
  border-color: #bc994b;
  transform: translateY(-3px);
}

/* 金色菱形图标（替代皇冠/宝石） */
.join-btn__gem {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: #d9b878;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   入场动效
   ═══════════════════════════════════════════════════════════════ */
.js .section-join [data-reveal] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.35s ease,
              border-color 0.35s ease;
}
.js .section-join [data-reveal="left"] { transform: translateX(-40px); }
.js .section-join [data-reveal="up"]   { transform: translateY(36px); }

.section-join [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.section-join .join-benefits .join-benefit:nth-child(1) { transition-delay: 0.12s; }
.section-join .join-benefits .join-benefit:nth-child(2) { transition-delay: 0.22s; }
.section-join .join-benefits .join-benefit:nth-child(3) { transition-delay: 0.32s; }
.section-join .join-benefits .join-benefit:nth-child(4) { transition-delay: 0.42s; }
.section-join .join-btn { transition-delay: 0.3s; }
.section-join .join-benefit:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .section-join [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .join-content { max-width: 100%; }

  /* 按钮回到常规流，跟在权益卡下方 */
  .join-btn {
    position: static;
    margin-top: clamp(28px, 4vw, 40px);
  }
}

@media (max-width: 600px) {
  .join-benefit { padding: 14px 16px; }
  .join-btn { width: 100%; }
}
