/* 邮箱登录门 - 全站私有化组件
   注意：GitHub Pages 是纯静态托管，无法做真正的服务端鉴权。
   此为前端邮箱门：防君子不防小人，仅做访问提示与轻量隔离。
   如需严格访问控制，请迁移到带后端鉴权的私有环境。 */
#email-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a2540; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#email-gate.hidden { display: none; }
.gate-box {
  background: #fff; border-radius: 12px; padding: 40px 36px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.gate-box h2 { color: #0a2540; margin-bottom: 8px; font-size: 22px; }
.gate-box p { color: #5b6b7f; font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.gate-box input[type="email"] {
  width: 100%; padding: 12px 16px; font-size: 15px; border: 1px solid #d0d9e4;
  border-radius: 8px; margin-bottom: 12px; box-sizing: border-box;
}
.gate-box input[type="email"]:focus { outline: none; border-color: #1a73e8; }
.gate-box .gate-error { color: #d93025; font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.gate-box button.gate-submit {
  width: 100%; padding: 12px; font-size: 15px; background: #1a73e8; color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
}
.gate-box button.gate-submit:hover { background: #1557b0; }
.gate-box .gate-back { display: inline-block; margin-top: 16px; font-size: 13px; color: #5b6b7f; }
