/* ==================================================================
   加入我们 v2 —— 总览 / 团播 / 个播 三页共用样式
   ================================================================== */

/* ---------- 总览：两张卡 ---------- */
.join-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  max-width: 1080px;
  margin: 0 auto;
}

.join-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 42px);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(30, 30, 60, 0.5), rgba(14, 14, 32, 0.72));
  border: 1px solid var(--border-color);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.join-path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.join-path-team::before {
  background: radial-gradient(circle at 15% 10%, rgba(108, 92, 231, 0.22), transparent 62%);
}
.join-path-solo::before {
  background: radial-gradient(circle at 15% 10%, rgba(0, 210, 255, 0.18), transparent 62%);
}

.join-path-card:hover {
  transform: translateY(-5px);
  border-color: rgba(150, 130, 255, 0.36);
  box-shadow: 0 24px 64px -22px rgba(0, 0, 0, 0.8);
}
.join-path-card:hover::before { opacity: 1; }

.join-path-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.join-path-team .join-path-badge { color: var(--color-primary-light); }
.join-path-solo .join-path-badge { color: var(--color-accent); }

.join-path-card h2 {
  font-size: clamp(21px, 2.2vw, 27px);
  margin: 0 0 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.join-path-desc {
  margin: 0 0 22px;
  font-size: clamp(13.5px, 1.15vw, 15px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.62);
}

/* 子类型标签：团播（萌妹团/国乙团）、个播（COSER/Vtuber） */
.join-path-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.join-kind-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.join-path-card:hover .join-kind-tag {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* 团播卡片：标签用紫调 */
.join-path-team .join-kind-tag {
  border-color: rgba(162, 155, 254, 0.32);
  color: rgba(200, 195, 255, 0.9);
}

.join-path-team:hover .join-kind-tag {
  border-color: rgba(162, 155, 254, 0.6);
  background: rgba(108, 92, 231, 0.12);
}

/* 个播卡片：标签用青调 */
.join-path-solo .join-kind-tag {
  border-color: rgba(0, 210, 255, 0.3);
  color: rgba(150, 220, 255, 0.9);
}

.join-path-solo:hover .join-kind-tag {
  border-color: rgba(0, 210, 255, 0.55);
  background: rgba(0, 180, 240, 0.12);
}

.join-path-points {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.join-path-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.join-path-points i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.join-path-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-light);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.join-path-solo .join-path-cta { color: var(--color-accent); }
.join-path-cta i { transition: transform 0.3s ease; }
.join-path-card:hover .join-path-cta i { transform: translateX(5px); }

/* ---------- FAQ ---------- */
.join-faq-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(24px, 3vw, 40px);
}
.join-faq-head h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 12px 0 10px;
  color: #fff;
}
.join-faq-head p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
}

.join-faq {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.join-faq-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.join-faq-item[open] {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(150, 130, 255, 0.2);
}

.join-faq-item summary {
  cursor: pointer;
  padding: 17px 22px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.25s ease;
}
.join-faq-item summary::-webkit-details-marker { display: none; }
.join-faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  transition: transform 0.3s ease;
  flex: 0 0 auto;
}
.join-faq-item[open] summary::after { transform: rotate(180deg); }
.join-faq-item summary:hover { color: #fff; }

.join-faq-a {
  padding: 0 22px 19px;
  font-size: 14px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 分支页：返回 + 头部 ---------- */
.join-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 0.25s ease, gap 0.25s ease;
}
.join-back:hover { color: #fff; gap: 12px; }

.join-branch-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(30px, 4vw, 54px);
}
.join-branch-head h1 {
  font-size: clamp(26px, 3.2vw, 42px);
  margin: 14px 0 14px;
  line-height: 1.3;
}
.join-branch-head p {
  margin: 0;
  font-size: clamp(14px, 1.25vw, 15.5px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 分支页：主区两栏（表单 + 星探） ---------- */
.join-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- 表单 ---------- */
.join-form-card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(28, 28, 58, 0.5), rgba(12, 12, 30, 0.75));
  border: 1px solid var(--border-color);
}

.join-form-title {
  margin: 0 0 6px;
  font-size: 19px;
  color: #fff;
  font-weight: 700;
}
.join-form-note {
  margin: 0 0 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
}

.join-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.join-field label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.join-field label .req { color: var(--color-accent2); margin-left: 3px; }
.join-field .hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.34);
  font-weight: 400;
}

.join-field input[type="text"],
.join-field input[type="tel"],
.join-field input[type="number"],
.join-field select,
.join-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
  outline: none;
  border-color: rgba(150, 130, 255, 0.5);
  background: rgba(20, 20, 46, 0.6);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.join-field input::placeholder,
.join-field textarea::placeholder { color: rgba(255, 255, 255, 0.26); }

.join-field textarea { resize: vertical; min-height: 88px; line-height: 1.7; }

.join-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.35)' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px;
  padding-right: 38px;
  cursor: pointer;
}
.join-field select option { background: #14142e; color: #fff; }

.join-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.join-radio {
  position: relative;
  cursor: pointer;
}
.join-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.join-radio span {
  display: inline-block;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}
.join-radio input:checked + span {
  color: #fff;
  background: rgba(108, 92, 231, 0.24);
  border-color: rgba(150, 130, 255, 0.55);
}
.join-radio:hover span { border-color: rgba(255, 255, 255, 0.22); }

.join-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(120deg, #6c5ce7, #8b7bff);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.join-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(108, 92, 231, 0.75);
}
.join-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.join-form-msg {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  min-height: 20px;
}
.join-form-msg.is-ok { color: #4ade80; }
.join-form-msg.is-err { color: #f87171; }

.join-field.has-error input,
.join-field.has-error select,
.join-field.has-error textarea {
  border-color: rgba(248, 113, 113, 0.55);
}

/* ---------- 星探侧栏 ---------- */
.join-scout {
  position: sticky;
  top: 96px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(30, 30, 62, 0.5), rgba(12, 12, 30, 0.78));
  border: 1px solid rgba(150, 130, 255, 0.14);
  text-align: center;
}

.join-scout h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
}
.join-scout > p {
  margin: 0 0 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.join-scout-qr {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.join-scout-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.join-scout-qr .ph {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}
.join-scout-qr .ph i { display: block; font-size: 22px; margin-bottom: 8px; opacity: 0.5; }

.join-scout-hint {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.75;
  margin: 0 0 16px;
}

.join-scout-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--color-primary-light);
  background: rgba(108, 92, 231, 0.14);
  border: 1px solid rgba(150, 130, 255, 0.24);
}

/* ---------- 成功态 ---------- */
.join-done {
  display: none;
  padding: 34px 26px;
  text-align: center;
}
.join-done.is-show { display: block; }
.join-done .ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.join-done h4 { margin: 0 0 10px; font-size: 18px; color: #fff; }
.join-done p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
}
.join-done strong { color: var(--color-primary-light); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .join-paths { grid-template-columns: 1fr; gap: 16px; }
  .join-path-card { padding: 24px 22px; border-radius: 18px; }
  .join-path-card h2 { font-size: 20px; }
  .join-path-points { margin-bottom: 20px; }

  .join-main { grid-template-columns: 1fr; gap: 20px; }
  .join-scout { position: static; order: -1; padding: 20px; }
  .join-scout-qr { max-width: 150px; }
  .join-scout h3 { font-size: 15.5px; }

  .join-form-card { padding: 22px 18px; border-radius: 16px; }
  .join-faq-item summary { padding: 15px 17px; font-size: 14px; }
  .join-faq-a { padding: 0 17px 16px; font-size: 13.5px; }
}

/* ---------- 成功后二维码（第二次给码） ---------- */
.join-done-qr {
  width: 176px;
  height: 176px;
  margin: 20px auto 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-done-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.join-done-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.32);
}
.join-done-ph i { font-size: 22px; opacity: 0.5; }
.join-done-hint {
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .join-done-qr { width: 150px; height: 150px; }
  .join-done { padding: 26px 18px; }
}

/* ==================================================
   V405 加入页：标题区不该撑满整屏
   ================================================== */
.join-page .page-header-section {
  min-height: auto !important;
  height: auto !important;
  padding-top: clamp(28px, 4vw, 52px) !important;
  padding-bottom: clamp(20px, 3vw, 36px) !important;
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
}

.join-page .page-header-section .container {
  min-height: auto !important;
}

/* 分支页：返回键 + 标题区紧凑 */
.join-page .join-branch-head {
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* 总览页 hero 后紧跟卡片，去掉多余间距 */
.join-hero + .section {
  padding-top: 0 !important;
}

@media (max-width: 900px) {
  .join-page .page-header-section {
    padding-top: 24px !important;
    padding-bottom: 16px !important;
  }
}

/* ==========================================================
   V406 加入页标题区：不要撑满一整屏
   全站规则 body.sub-page .section.page-header-section 有
   min-height:100vh !important，这里用更高权重压回去
   ========================================================== */
html body.sub-page.join-page main.sub-page-main > section.page-header-section {
  min-height: 0 !important;
  height: auto !important;
  padding-top: clamp(84px, 9vw, 116px) !important;
  padding-bottom: clamp(18px, 2.4vw, 30px) !important;
  display: block !important;
  align-items: initial !important;
}

html body.sub-page.join-page main.sub-page-main > section.page-header-section > .container {
  max-width: 1320px !important;
}

/* 标题区内的文字居中、限制宽度 */
html body.sub-page.join-page .join-page .section-header,
html body.sub-page.join-page section.page-header-section .section-header {
  text-align: center !important;
  align-items: center !important;
  max-width: 780px !important;
  margin: 0 auto !important;
}

html body.sub-page.join-page section.page-header-section .hero-h1 {
  text-align: center !important;
}

html body.sub-page.join-page section.page-header-section .section-divider {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 分支页的返回键靠左，不跟着居中 */
html body.sub-page.join-page .join-back {
  display: inline-flex !important;
  margin-bottom: 14px;
}

/* 后面紧跟的内容区不要额外大留白 */
html body.sub-page.join-page main.sub-page-main > section.section:not(.page-header-section) {
  padding-top: clamp(10px, 1.6vw, 22px) !important;
}

@media (max-width: 900px) {
  html body.sub-page.join-page main.sub-page-main > section.page-header-section {
    padding-top: 76px !important;
    padding-bottom: 14px !important;
  }
  html body.sub-page.join-page section.page-header-section .section-header {
    max-width: 100% !important;
  }
}

/* ==========================================================
   V407 修：二维码框塌陷、侧栏高度不齐
   ========================================================== */

/* 二维码外框：强制方形尺寸，别被 flex 压扁 */
#scoutQr {
  display: block !important;
}
#scoutQr .join-scout-qr {
  width: 200px !important;
  height: 200px !important;
  min-height: 200px !important;
  max-width: 200px !important;
  aspect-ratio: auto !important;
  margin: 0 auto 18px !important;
  box-sizing: border-box;
}

/* 侧栏：跟表单等高，内部竖向分布 */
html body.sub-page.join-page .join-main {
  align-items: stretch !important;
}

html body.sub-page.join-page .join-scout {
  position: sticky;
  top: 96px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start;
  min-height: 0;
  height: auto;
}

/* 侧栏底部把提示 + 徽章压到底 */
html body.sub-page.join-page .join-scout-badge {
  margin-top: auto;
}

/* 占位文字垂直居中 */
.join-scout-qr .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  #scoutQr .join-scout-qr {
    width: 150px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
  }
  html body.sub-page.join-page .join-main { align-items: start !important; }
}

/* ==========================================================
   V408 成功区二维码：白底只在真有图时用
   ========================================================== */
.join-done-qr.is-pending {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px dashed rgba(255, 255, 255, 0.18) !important;
}

.join-done-qr.is-pending .join-done-ph {
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  border: none;
}
.join-done-qr.is-pending .join-done-ph i {
  font-size: 26px;
  opacity: 0.6;
  margin-bottom: 10px;
}

/* 二维码真图：白底留白，保证可扫 */
.join-done-qr:not(.is-pending) {
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
