/* ============================================================
   迅游 × BOMBANANA! 组队大厅 —— 样式
   配色：深色底 + 香蕉黄(#FFD23F) + 迅游红(#E63329) + 右上横幅荧光绿
   ============================================================ */

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

:root {
  --bg: #0F1115;
  --bg-soft: #161922;
  --card: #1A1D26;
  --card-border: #262A36;
  --text: #F5F5F7;
  --text-dim: #A0A4B0;
  --banana: #FFD23F;
  --xunyou-red: #E63329;
  --green: #52C41A;
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 背景装饰 ---------- */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.banana-shape {
  position: absolute;
  font-size: 64px;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}
.banana-1 { top: 12%; left: 4%; animation-delay: 0s; }
.banana-2 { top: 62%; right: 5%; animation-delay: 1.5s; }
.banana-3 { top: 30%; right: 12%; font-size: 80px; animation-delay: 3s; }
.banana-4 { bottom: 8%; left: 12%; animation-delay: 2s; }
.banana-5 { top: 80%; left: 45%; font-size: 48px; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

/* ---------- 顶部导航 ---------- */
.navbar {
  position: relative;
  z-index: 2;
  padding: 14px 0;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { display: flex; align-items: baseline; font-family: 'Bangers', 'ZCOOL KuaiLe', sans-serif; }
.logo-bomb { font-size: 24px; }
.logo-text { font-size: 26px; letter-spacing: 1px; color: var(--text); }
.logo-accent { color: var(--banana); }
.brand-tag {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--card-border);
  padding: 2px 8px;
  border-radius: 20px;
}

.nav-acc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.22), rgba(57, 255, 20, 0.05));
  border: 1px solid rgba(57, 255, 20, 0.5);
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.16);
}
.nav-xunyou-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}
.nav-acc-text { display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; }
.nav-acc-eyebrow { font-size: 12px; color: #39FF14; font-weight: 700; letter-spacing: 0.5px; }
.nav-acc-title { font-size: 16px; font-weight: 700; color: #EAFCE8; }
.nav-acc-tag { background: rgba(57, 255, 20, 0.2); color: #39FF14; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.nav-acc-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.nav-acc-mini { font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.tag-zero { background: rgba(57, 255, 20, 0.14); color: #39FF14; }
.tag-red { background: rgba(57, 255, 20, 0.26); color: #7CFF6A; }

.nav-acc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00C853, #39FF14);
  color: #062006;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(57, 255, 20, 0.4);
}
.nav-acc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(57, 255, 20, 0.55); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 48px 0 40px;
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  border-radius: 0 0 22px 22px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15,17,21,0.94) 0%, rgba(15,17,21,0.78) 45%, rgba(15,17,21,0.45) 100%);
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-text { flex: 1 1 340px; min-width: 0; }
.hero-title { font-size: 44px; line-height: 1.15; font-weight: 800; }
.title-line-1 { display: block; }
.title-line-2 { display: block; }
.highlight { color: var(--banana); position: relative; }
.highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: rgba(255, 210, 63, 0.25);
  border-radius: 4px;
  z-index: -1;
}
.hero-subtitle { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--text-dim); font-size: 14px; }
.sub-line-1 b { color: var(--text); }
.hero-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  background: linear-gradient(135deg, var(--xunyou-red), #ff5a4e);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(230, 51, 41, 0.4);
  transition: transform 0.15s ease;
}
.hero-download-btn:hover { transform: translateY(-2px); }
.btn-icon { font-size: 16px; }

.hero-visual {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(15, 17, 21, 0.35);
  border: 1px solid rgba(255, 210, 63, 0.25);
  border-radius: var(--radius);
  padding: 12px;
  backdrop-filter: blur(4px);
}
.game-art {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.hero-banner-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.banner-small { font-size: 13px; color: var(--text-dim); }

/* ---------- 统计条 ---------- */
.stats-bar { position: relative; z-index: 1; padding: 0 0 26px; }
.stats-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.stat-item { display: flex; align-items: center; gap: 12px; flex: 1 1 180px; min-width: 0; }
.stat-emoji { font-size: 30px; }
.stat-emoji-pulse { animation: pulse 1.6s ease-in-out infinite; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--banana); }
.stat-unit { font-size: 13px; color: var(--text-dim); font-weight: 400; }
.stat-label { font-size: 12px; color: var(--text-dim); }
.stat-divider { width: 1px; height: 40px; background: var(--card-border); }

/* ---------- 筛选 ---------- */
.filter-bar { position: relative; z-index: 1; padding: 0 0 18px; }
.filter-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip.active { background: var(--banana); border-color: var(--banana); color: #1A1B1C; }
.filter-chip:hover { border-color: var(--banana); color: var(--text); }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 8px 14px;
  min-width: 220px;
}
.search-box svg { color: var(--text-dim); flex: 0 0 auto; }
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  width: 100%;
}
.search-box input::placeholder { color: var(--text-dim); }

/* ---------- 队伍网格 ---------- */
.lobby-section { position: relative; z-index: 1; padding-bottom: 90px; }
.lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.team-card:hover { border-color: rgba(255, 210, 63, 0.4); transform: translateY(-2px); }
.team-card.mine { border-color: rgba(255, 210, 63, 0.6); }
.team-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-1to2 { background: rgba(255, 210, 63, 0.15); color: var(--banana); }
.badge-2to1 { background: rgba(82, 196, 26, 0.15); color: var(--green); }
.mine-badge { font-size: 11px; background: rgba(255, 210, 63, 0.9); color: #1A1B1C; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.team-nickname { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.team-gender { font-size: 13px; }
.team-need { display: flex; gap: 6px; flex-wrap: wrap; }
.need-tag { font-size: 11px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--card-border); padding: 2px 8px; border-radius: 6px; color: var(--text-dim); }
.team-message { font-size: 13px; color: var(--text-dim); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.team-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); }
.team-online { display: flex; align-items: center; gap: 5px; }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.team-time { font-size: 11px; color: #6E7280; }
.team-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-view {
  flex: 1;
  text-align: center;
  background: rgba(255, 210, 63, 0.12);
  border: 1px solid rgba(255, 210, 63, 0.35);
  color: var(--banana);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-view:hover { background: rgba(255, 210, 63, 0.22); }
.btn-manage {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.btn-manage:hover { color: var(--text); }

.lobby-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-sub { font-size: 13px; margin-top: 6px; }

/* ---------- 浮动发布按钮 ---------- */
.float-post {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--banana);
  color: #1A1B1C;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 210, 63, 0.35);
  transition: transform 0.15s ease;
}
.float-post:hover { transform: translateY(-2px); }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  padding: 22px;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-sub { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.modal-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  flex: 0 0 auto;
}
.modal-close:hover { color: var(--text); }

/* ---------- 表单 ---------- */
.post-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .form-field { flex: 1 1 200px; min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { width: 100%; }
.form-field label { font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.label-text { font-weight: 600; }
.label-optional { font-size: 11px; color: var(--text-dim); }
.label-required { font-size: 11px; color: #FF7A6E; }
.label-hint { font-size: 11px; color: var(--text-dim); }
.form-field input[type="text"], .form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--banana); }
.steam-input { position: relative; }
.steam-hint { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text-dim); }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-group-small { gap: 8px; }
.radio-card { flex: 1 1 130px; min-width: 0; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-content {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.radio-card input:checked + .radio-content { border-color: var(--banana); background: rgba(255, 210, 63, 0.1); }
.radio-title { font-size: 14px; font-weight: 700; }
.radio-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.teammate-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-checkbox { position: relative; }
.tag-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.tag-checkbox span {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tag-checkbox input:checked + span { border-color: var(--banana); background: rgba(255, 210, 63, 0.12); color: var(--banana); }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.btn { border: none; border-radius: 10px; padding: 11px 20px; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s ease; }
.btn-primary { background: var(--xunyou-red); color: #fff; box-shadow: 0 4px 12px rgba(230, 51, 41, 0.3); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text-dim); border: 1px solid var(--card-border); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: rgba(230, 51, 41, 0.12); color: #FF7A6E; border: 1px solid rgba(230, 51, 41, 0.4); }
.btn-danger:hover { background: rgba(230, 51, 41, 0.2); }

/* ---------- 队友列表 ---------- */
.host-list { display: flex; flex-direction: column; gap: 10px; }
.host-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.host-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.host-name { font-size: 14px; font-weight: 700; }
.host-role { font-size: 12px; color: var(--text-dim); }
.host-steam { font-family: 'Inter', monospace; font-size: 15px; font-weight: 700; color: var(--banana); }
.copy-btn {
  background: rgba(255, 210, 63, 0.12);
  border: 1px solid rgba(255, 210, 63, 0.35);
  color: var(--banana);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon { color: var(--green); }

/* ---------- 底部推广区 ---------- */
.promo-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  background: var(--bg-soft);
  padding: 32px 0 20px;
}
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.promo-left { flex: 1 1 320px; min-width: 0; }
.promo-logo { font-size: 20px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.promo-logo-img { height: 36px; width: auto; object-fit: contain; border-radius: 6px; }
.promo-desc { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.6; }
.promo-right { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.promo-btn {
  background: var(--xunyou-red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(230, 51, 41, 0.35);
  transition: transform 0.15s ease;
}
.promo-btn:hover { transform: translateY(-2px); }
.promo-note { font-size: 12px; color: var(--text-dim); }
.promo-copyright {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: #6E7280;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .stats-inner { gap: 12px; }
  .stat-divider { display: none; }
  .promo-right { align-items: flex-start; }
  .lobby-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 8px; }
}
