:root{
  --bg:#080814;
  --card:rgba(255,255,255,0.04);
  --text:#E8EEF8;
  --sub:#9AA4B2;
  --accent:#60A5FA;
  --radius:14px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
  background:var(--bg); color:var(--text); -webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column;min-height:100vh;
  overflow-x:hidden;
}

/* 主 header */
.header{
  padding:44px 20px 18px; text-align:center; position:relative; z-index:12;
}
h1{font-size:34px; font-weight:700; margin:0}
.subtitle{color:var(--sub); margin-top:6px; font-size:15px}

/* 容器和卡片 */
.container{max-width:1100px;margin:0 auto;padding:18px;width:95%;position:relative;z-index:12}
.grid{
  display:grid; gap:18px;
  grid-template-columns:repeat(2,1fr);
}
@media(min-width:768px){ .grid{grid-template-columns:repeat(3,1fr)} }
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-radius:14px; padding:18px; text-align:center;
  box-shadow:0 6px 30px rgba(0,0,0,0.6); border:1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}
.card img{width:100%;height:120px;object-fit:cover;border-radius:10px;margin-bottom:12px}
.title{font-size:16px;font-weight:700}
.desc{font-size:13px;color:var(--sub);margin-top:6px}

/* 入口按钮 */
.login-btn{
  position:fixed;bottom:28px;left:50%;transform:translateX(-50%);
  background:linear-gradient(90deg,var(--accent),#3b82f6);color:#fff;padding:12px 32px;border-radius:999px;border:none;
  box-shadow:0 12px 40px rgba(0,122,255,0.25);font-weight:700;cursor:pointer;z-index:1500;
}

/* 弹窗样式 */
.overlay{
  position:fixed;inset:0;display:none;align-items:center;justify-content:center;
  background:rgba(0,0,0,0.5);backdrop-filter:blur(5px);z-index:1400;padding:20px;
}
.modal{
  width:100%;max-width:420px;background:linear-gradient(180deg,#0b0c10, #0c0d13);padding:20px;border-radius:12px;box-shadow:0 30px 60px rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.03);
}
.input{width:100%;padding:12px;border-radius:10px;border:1px solid rgba(255,255,255,0.06);margin-top:8px;background:transparent;color:var(--text);font-size:15px}
.btn-primary{background:linear-gradient(90deg,var(--accent),#3b82f6);color:#fff;border:none;padding:10px 16px;border-radius:10px;font-weight:700;cursor:pointer}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.08);color:var(--text);padding:10px 16px;border-radius:10px;cursor:pointer}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:120px;background:#111;color:#fff;padding:10px 16px;border-radius:999px;opacity:0;transition:opacity .25s, bottom .25s;z-index:1600}
.toast.show{opacity:1;bottom:140px}
.small{font-size:13px;color:var(--sub);margin-top:8px}
.link{color:var(--accent);text-decoration:none}

/* small responsive tweaks to keep content above canvas */
@media(max-width:420px){
  h1{font-size:24px}
}
