/* ============================================================
   eiai.club 门户主页样式
   复用 style.css 的配色变量（--bg / --card / --accent …），
   这里只加主页独有的部分。
   ============================================================ */

body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(900px 460px at 50% -140px, rgba(61, 220, 151, .13), transparent 70%),
    radial-gradient(700px 380px at 12% 8%, rgba(88, 166, 255, .07), transparent 65%),
    var(--bg);
}

/* ---------- 顶栏 ---------- */
.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 30px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  letter-spacing: .6px;
  font-weight: 700;
  color: var(--text);
}
.home-brand:hover { text-decoration: none; }
.home-brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.home-top-right { display: flex; align-items: center; gap: 10px; }
.hlink {
  color: var(--muted);
  font-size: 13.5px;
  padding: 7px 12px;
  border-radius: 8px;
}
.hlink:hover { color: var(--text); background: var(--card); text-decoration: none; }
.hbtn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
  background: var(--accent); color: #08130e;
}
.hbtn:hover { text-decoration: none; filter: brightness(1.08); }
.hbtn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); font-weight: 400;
}
.hbtn.ghost:hover { border-color: var(--accent-dim); background: var(--card); }
.who {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.who b { color: var(--text); font-weight: 600; }

/* ---------- 主区 ---------- */
.home-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 30px 60px;
}

/* ---------- 大 logo（中间靠上） ---------- */
.hero {
  text-align: center;
  padding: 44px 0 40px;
}
.logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.logo-main {
  font-size: clamp(64px, 12vw, 132px);
  font-weight: 800;
  letter-spacing: clamp(4px, 1.4vw, 14px);
  background: linear-gradient(168deg, #f2fff9 6%, var(--accent) 52%, #1f9e6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(61, 220, 151, .22);
  padding-left: clamp(4px, 1.4vw, 14px);   /* 抵消字间距造成的视觉右偏 */
}
.logo-sub {
  margin-top: 16px;
  font-size: clamp(15px, 2.1vw, 22px);
  font-weight: 400;
  letter-spacing: clamp(3px, .9vw, 9px);
  color: var(--muted);
  text-transform: none;
}
.hero-line {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 卡片区 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.card-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 16px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  transition: .18s;
  min-height: 186px;
}
a.card-entry:hover {
  text-decoration: none;
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .38);
}
.card-entry.soon { opacity: .58; }
.card-entry.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.ce-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ce-icon { font-size: 26px; line-height: 1; }
.ce-badge {
  font-size: 11px; padding: 2px 9px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted);
}
.ce-badge.live {
  color: var(--accent); border-color: var(--accent-dim);
  background: rgba(61, 220, 151, .1);
}
.ce-title { margin: 0; font-size: 18px; font-weight: 700; }
.ce-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1; }
.ce-foot { display: flex; align-items: center; justify-content: flex-end; }
.ce-go { font-size: 13px; font-weight: 600; color: var(--accent); }
.ce-go.muted { color: var(--muted); font-weight: 400; }

/* ---------- 页脚 ---------- */
.home-foot {
  padding: 22px 30px 30px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.home-foot a { color: var(--muted); }
.home-foot a:hover { color: var(--accent); }
.home-foot .sep { margin: 0 8px; opacity: .5; }

/* ---------- 认证弹窗 ---------- */
.auth-modal { max-width: 430px; }
.auth-tabs { display: flex; gap: 4px; }
.auth-tab {
  background: transparent; border-color: transparent;
  color: var(--muted); font-size: 15px; font-weight: 600;
  padding: 5px 12px; border-radius: 8px;
}
.auth-tab:hover { background: var(--card-hi); }
.auth-tab.active { background: var(--card-hi); color: var(--text); border-color: var(--line); }
.auth-pane[hidden] { display: none; }
.auth-submit {
  width: 100%; padding: 11px; font-size: 15px; margin-top: 6px;
}
.auth-tip {
  margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center;
}
.check-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--text); margin: 2px 0 14px;
  cursor: pointer;
}
.check-line input { width: auto; margin-top: 3px; flex: none; }
.check-line span { line-height: 1.6; }

.code-row, .captcha-row {
  display: flex; gap: 8px; align-items: stretch;
}
.code-row input, .captcha-row input { flex: 1; }
.code-row button { flex: none; white-space: nowrap; min-width: 104px; }
.captcha-img {
  flex: none; display: inline-flex; align-items: center;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: #eef3f8;
  line-height: 0;
}
.captcha-img svg { display: block; }

.token-box {
  background: var(--bg-soft); border: 1px dashed var(--accent-dim);
  border-radius: 10px; padding: 12px 14px; overflow-x: auto;
}
.token-box code {
  background: none; color: var(--accent);
  font-size: 13px; word-break: break-all;
}
.auth-msg {
  margin-top: 14px; padding: 10px 12px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.6;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted);
}
.auth-msg.err { border-color: #5c2b2b; color: var(--danger); }
.auth-msg.ok { border-color: var(--accent-dim); color: var(--accent); }

@media (max-width: 720px) {
  .home-top { padding: 14px 16px; }
  .home-main { padding: 10px 16px 44px; }
  .hero { padding: 30px 0 30px; }
  .hero-line { font-size: 13px; }
}

/* ============================================================
   注册成功落地页 /welcome
   ============================================================ */
.welcome-main { max-width: 780px; }

.w-hero { text-align: center; padding: 18px 0 30px; }
.w-check {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #08130e;
  background: var(--accent);
  box-shadow: 0 0 40px rgba(61, 220, 151, .45);
}
.w-hero h1 { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 30px); }
.w-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.w-steps { display: flex; flex-direction: column; gap: 14px; }
.w-step {
  display: flex; gap: 16px;
  padding: 20px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: .2s;
}
.w-step.hl {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 14px 40px rgba(0, 0, 0, .35);
}
.w-num {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: rgba(61, 220, 151, .08);
}
.w-body { flex: 1; min-width: 0; }
.w-body h2 { margin: 2px 0 8px; font-size: 17px; }
.w-desc { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.w-note {
  margin: 10px 0 0; padding: 10px 12px;
  font-size: 12.5px; color: var(--muted); line-height: 1.7;
  background: var(--bg-soft); border-radius: 9px;
  border-left: 2px solid var(--line);
}

/* 大按钮：无脑点 */
.w-big-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin: 14px 0 0;
  padding: 16px 20px;
  font-size: 16px; font-weight: 700;
  color: #08130e; background: var(--accent);
  border: none; border-radius: 12px;
  cursor: pointer; transition: .18s;
}
.w-big-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.w-big-btn:disabled { opacity: .5; cursor: not-allowed; }
.w-big-btn.copied {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent-dim);
}
.w-ico { font-size: 18px; }
.w-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); min-height: 18px; }

.w-preview { margin-top: 12px; }
.w-preview summary {
  cursor: pointer; font-size: 12.5px; color: var(--muted);
  padding: 4px 0;
}
.w-preview summary:hover { color: var(--text); }
.w-preview pre {
  margin: 8px 0 0; max-height: 42vh; overflow: auto;
  white-space: pre-wrap; font-size: 12px; line-height: 1.6;
}

/* 接入码 */
.w-token-box {
  margin-top: 16px; padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px dashed var(--line); border-radius: 12px;
}
.w-token-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--muted); margin-bottom: 8px;
}
.w-token {
  display: block; font-size: 13px; word-break: break-all;
  background: none; color: var(--accent); padding: 0;
}
.w-token.masked { color: var(--muted); letter-spacing: 2px; }

.w-foot-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.w-foot-actions .hlink { font-size: 12.5px; }

@media (max-width: 620px) {
  .w-step { flex-direction: column; gap: 10px; padding: 16px; }
  .w-num { width: 26px; height: 26px; font-size: 13px; }
  .w-foot-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .w-foot-actions > * { text-align: center; justify-content: center; }
}
