/* 首页首屏 Hero v2 — 左对齐，白底胶囊输入 + 青色注册按钮（对齐设计稿） */

.home_bnner_wrapper .inner {
  max-width: 1720px;
  margin: 0 auto;
  padding-left: clamp(28px, 6vw, 100px);
  padding-right: clamp(28px, 6vw, 100px);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.home_bnner_wrapper .home_banner_content.hero-v2-active {
  padding: clamp(120px, 18vh, 200px) 0 clamp(100px, 14vh, 160px);
  padding-inline: clamp(4px, 1.2vw, 16px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  width: 100%;
  max-width: 980px;
  position: relative;
  z-index: 2;
}

.home_bnner_wrapper .home_banner_content.hero-v2-active .text_box {
  max-width: 720px;
  width: 100%;
  margin: 0 0 32px;
  text-align: left;
}

.home_bnner_wrapper .hero-v2 .hero {
  margin: 0;
}

.home_bnner_wrapper .hero-v2 .hero-line-cyan {
  display: block;
  color: #00f0ff;
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 1.08;
  font-family: "Roboto-Bold", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.home_bnner_wrapper .hero-v2 .hero-line-white {
  display: block;
  color: #fff;
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 1.08;
  font-family: "Roboto-Bold", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home_bnner_wrapper .hero-v2-subtitle {
  margin: 24px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.7;
  font-family: "Roboto-Regular", sans-serif;
}

.home_bnner_wrapper .form_box.hero-v2-form {
  display: grid;
  grid-template-columns: minmax(280px, 520px) auto;
  align-items: center;
  justify-content: start;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  position: relative;
  z-index: 3;
}

.home_bnner_wrapper .form_box.hero-v2-form .register_section {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: 520px;
}

.home_bnner_wrapper .hero-phone-field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  background: #fff;
  border-radius: 999px;
  padding: 0 18px 0 12px;
  gap: 8px;
  box-sizing: border-box;
}

.home_bnner_wrapper .hero-area {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-right: 1px solid #d1d5db;
  padding-right: 10px;
  margin-right: 0;
  height: 28px;
  min-width: 72px;
}

.home_bnner_wrapper .hero-area-plus {
  color: #374151;
  font-size: 15px;
  margin-right: 1px;
  font-family: "Roboto-Regular", sans-serif;
}

.home_bnner_wrapper .hero-area-inp {
  width: 36px;
  min-width: 36px;
  border: none;
  background: transparent;
  color: #111;
  font-size: 14px;
  text-align: left;
  outline: none;
  padding: 0;
  box-sizing: content-box;
  font-family: "Roboto-Regular", sans-serif;
}

/* 覆盖 home.css @768px 对 register_section input 的大 padding */
.home_bnner_wrapper .form_box.hero-v2-form .register_section .hero-phone-field input {
  padding: 0;
  box-sizing: border-box;
}

.home_bnner_wrapper .form_box.hero-v2-form .register_section .hero-phone-field input.hero-area-inp {
  width: 36px;
  min-width: 36px;
  flex-shrink: 0;
}

.home_bnner_wrapper .form_box.hero-v2-form .register_section .hero-phone-field input.hero-phone-inp {
  flex: 1;
  min-width: 0;
}

.home_bnner_wrapper .hero-area-toggle {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 9px;
  cursor: pointer;
  padding: 2px 0 2px 4px;
  line-height: 1;
}

.home_bnner_wrapper .hero-area-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  min-width: 120px;
  max-height: 240px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-y: auto;
  background: #1a2230;
  border: 1px solid rgba(53, 71, 100, 0.85);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.home_bnner_wrapper .hero-area-dropdown li {
  padding: 8px 14px;
  font-size: 13px;
  color: #c2c7d0;
  cursor: pointer;
  white-space: nowrap;
}

.home_bnner_wrapper .hero-area-dropdown li:hover,
.home_bnner_wrapper .hero-area-dropdown li.active {
  background: rgba(1, 102, 252, 0.18);
  color: #fff;
}

.home_bnner_wrapper .hero-phone-inp {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #111;
  font-size: 15px;
  outline: none;
  font-family: "Roboto-Regular", sans-serif;
}

.home_bnner_wrapper .hero-phone-inp::placeholder {
  color: #9ca3af;
}

.home_bnner_wrapper .hero-phone-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: #111;
  opacity: 0.75;
  margin-left: 4px;
}

.home_bnner_wrapper .hero_register_button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0 36px;
  height: 52px;
  min-width: 152px;
  background: #00f0ff;
  color: #000;
  font-size: 18px;
  line-height: 1;
  font-family: "Roboto-Bold", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 4;
}

.home_bnner_wrapper .hero_register_button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 覆盖 home.css 平板/手机首屏旧样式 */
@media (max-width: 980px) {
  .home_bnner_wrapper .home_banner_content.hero-v2-active {
    padding: clamp(100px, 16vh, 140px) 0 clamp(64px, 10vh, 100px) !important;
  }

  .home_bnner_wrapper .home_banner_content.hero-v2-active .text_box {
    max-width: 100% !important;
    margin: 0 0 28px !important;
  }

  .home_bnner_wrapper .form_box.hero-v2-form .register_section {
    width: 100% !important;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .home_bnner_wrapper .form_box.hero-v2-form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: clamp(6px, 2vw, 10px);
  }

  .home_bnner_wrapper .form_box.hero-v2-form .register_section {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .home_bnner_wrapper .hero_register_button {
    flex: 0 0 auto;
    width: auto;
    min-width: clamp(72px, 22vw, 96px);
    max-width: clamp(88px, 26vw, 108px);
    padding: 0 clamp(10px, 3vw, 16px);
    height: clamp(42px, 11.5vw, 46px);
    font-size: clamp(13px, 3.6vw, 15px);
    align-self: center;
    z-index: 1;
  }
}

/* 平板 / 手机 */
@media (max-width: 768px) {
  .home_bnner_wrapper .inner {
    padding-left: max(24px, env(safe-area-inset-left)) !important;
    padding-right: max(24px, env(safe-area-inset-right)) !important;
  }

  .home_bnner_wrapper .home_banner_content.hero-v2-active {
    padding: max(96px, calc(72px + env(safe-area-inset-top))) 0 48px !important;
    padding-inline: 0;
    max-width: 100%;
    min-height: auto;
  }

  .home_bnner_wrapper .home_banner_content.hero-v2-active .text_box {
    max-width: 100%;
    margin: 0 0 24px !important;
    text-align: left;
  }

  .home_bnner_wrapper .hero-v2 .hero-line-cyan,
  .home_bnner_wrapper .hero-v2 .hero-line-white {
    font-size: clamp(28px, 8.2vw, 40px);
    line-height: 1.12;
  }

  .home_bnner_wrapper .hero-v2-subtitle {
    max-width: 100%;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .home_bnner_wrapper .hero-phone-field {
    height: clamp(42px, 11.5vw, 46px);
    padding: 0 12px 0 10px;
  }

  .home_bnner_wrapper .hero-phone-inp {
    font-size: 16px;
  }

  .home_bnner_wrapper .hero-phone-inp::placeholder {
    font-size: clamp(12px, 3.2vw, 14px);
  }

  .home_bnner_wrapper .hero_register_button {
    height: clamp(42px, 11.5vw, 46px);
    font-size: clamp(13px, 3.6vw, 15px);
  }

  /* 手机端下拉向上展开，避免挡住右侧注册按钮 */
  .home_bnner_wrapper .hero-area-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    max-height: min(180px, 32dvh);
    z-index: 5;
  }

  .home_bnner_wrapper .hero-area {
    z-index: 6;
  }
}

/* 小屏手机 */
@media (max-width: 500px) {
  .home_bnner_wrapper .home_banner_content.hero-v2-active {
    padding: max(88px, calc(64px + env(safe-area-inset-top))) 0 40px !important;
  }

  .home_bnner_wrapper .hero-v2 .hero-line-cyan,
  .home_bnner_wrapper .hero-v2 .hero-line-white {
    font-size: clamp(26px, 7.5vw, 34px);
  }

  .home_bnner_wrapper .hero-v2-subtitle {
    font-size: 13px;
  }

  .home_bnner_wrapper .hero-area-inp {
    width: 34px;
    min-width: 34px;
    font-size: 14px;
  }

  .home_bnner_wrapper .form_box.hero-v2-form .register_section .hero-phone-field input.hero-area-inp {
    width: 34px;
    min-width: 34px;
  }

  .home_bnner_wrapper .hero-area {
    min-width: 68px;
  }

  .home_bnner_wrapper .hero-area-plus {
    font-size: 14px;
  }

  .home_bnner_wrapper .hero-phone-icon svg {
    width: 16px;
    height: 16px;
  }

  .home_bnner_wrapper .hero-phone-icon {
    margin-left: 2px;
  }
}

/* 极窄屏：缩短 placeholder 由 JS 处理，此处再压按钮 */
@media (max-width: 360px) {
  .home_bnner_wrapper .form_box.hero-v2-form {
    gap: 6px;
  }

  .home_bnner_wrapper .hero_register_button {
    min-width: 68px;
    max-width: 80px;
    padding: 0 8px;
    font-size: 13px;
  }

  .home_bnner_wrapper .hero-area {
    min-width: 62px;
    padding-right: 8px;
  }
}
