/* ============================================================
   gate.css — 入口门禁页样式（index.html）
   仿 Cloudflare 官方人机验证拦截页：白底居中，大标题显示
   当前站点地址，下方为 Turnstile 验证组件。
   ============================================================ */

.gate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
}

.gate-shell {
  width: 100%;
  max-width: 460px;
}

.gate-card {
  text-align: center;
  padding: 20px 24px;
}

.gate-logo img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
}

/* 大标题：显示当前访问的网站地址（由 gate.js 动态填充），单行显示不换行 */
.gate-title {
  font-size: clamp(18px, 4.2vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .3px;
  color: #1f2937;
  white-space: nowrap;       /* 单行显示，不换行 */
  overflow: hidden;
  text-overflow: ellipsis;   /* 超长域名安全截断，避免溢出 */
  margin: 0;
}

.gate-subtitle {
  margin: 14px 0 30px;
  font-size: 14px;
  color: #6b7280;
}

/* Turnstile 容器：居中、固定宽度，保证组件渲染稳定 */
.gate-captcha {
  min-height: 68px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.gate-captcha .gate-error,
.gate-captcha .gate-loading {
  width: 100%;
  min-height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  padding: 10px;
}

.gate-error .gate-retry {
  padding: 7px 18px;
  border-radius: 8px;
  background: #f97316;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.gate-error .gate-retry:hover {
  background: #ea580c;
}

.gate-tip {
  margin-top: 28px;
  font-size: 12px;
  color: #9ca3af;
}
