/* ===== 小乐打卡乐园 样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #e2e8f0;
  min-height: 100vh;
}

/* 导航栏 */
.nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  color: #fbbf24;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}
.nav-links { display: flex; gap: 14px; }
.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav-link:hover, .nav-link.active { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-btn {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}
.nav-btn:hover { filter: brightness(1.1); }
.nav-user { color: #fbbf24; font-size: 14px; font-weight: bold; }

/* 主区域 */
main { max-width: 900px; margin: 0 auto; padding: 40px 20px 60px; }

/* Hero */
.hero { text-align: center; padding: 40px 0 30px; }
.hero h1 {
  font-size: 42px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.hero p { color: #94a3b8; font-size: 17px; margin-bottom: 20px; }
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badges span {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
}

/* 卡片 */
.card {
  background: rgba(30, 27, 75, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
}
.card h2 { color: #fbbf24; font-size: 20px; margin-bottom: 14px; }
.card ul { padding-left: 20px; color: #cbd5e1; font-size: 15px; line-height: 2; }

/* 打卡 */
.checkin-card { text-align: center; }
.checkin-status {
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 16px;
  min-height: 24px;
}
.btn {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn.big { font-size: 18px; padding: 14px 40px; border-radius: 30px; }

/* 我的乐园 */
.me-card p { color: #cbd5e1; font-size: 16px; line-height: 1.8; }

/* 排行榜 */
#rank-list { list-style: none; padding: 0; }
#rank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
  font-size: 15px;
}
#rank-list li:last-child { border-bottom: none; }
.rank-medal { font-size: 18px; margin-right: 8px; }
.rank-points { color: #fbbf24; font-weight: bold; }

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal {
  background: linear-gradient(180deg, #1e1b4b, #0f172a);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 16px;
  padding: 30px 26px;
  width: 92%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}
.modal-title { color: #fbbf24; font-size: 22px; margin-bottom: 6px; }
.modal-sub { color: #94a3b8; font-size: 13px; margin-bottom: 18px; }
.modal input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 11px 12px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}
.modal input:focus { border-color: #fbbf24; }
.modal .btn { width: 100%; margin-top: 4px; }
.modal .code-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.modal .code-row input { width: 100%; margin-bottom: 0; }
.modal .send-btn { width: 100%; padding: 10px 14px; font-size: 13px; margin-top: 0; }
.modal-err { color: #f87171; font-size: 13px; min-height: 20px; margin: 6px 0 8px; }
.modal-switch { color: #94a3b8; font-size: 13px; text-align: center; margin-top: 14px; }
.modal-switch a { color: #fbbf24; text-decoration: none; }

footer {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 24px 20px 40px;
}
