* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
}

.home-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.home-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.25);
  text-align: center;
}

.logo {
  margin-bottom: 12px;
}

h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.subtitle {
  color: #999;
  font-size: 14px;
  margin-bottom: 32px;
}

/* === Version Cards === */
.version-select {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.version-card {
  flex: 1;
  padding: 30px 16px;
  border: 2px solid #eee;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
  background: #fff;
}

.version-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.pc-card:hover {
  border-color: #667eea;
  box-shadow: 0 12px 32px rgba(102,126,234,0.25);
}

.mb-card:hover {
  border-color: #36d1dc;
  box-shadow: 0 12px 32px rgba(54,209,220,0.28);
}

.version-icon {
  margin-bottom: 12px;
}

.version-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.pc-card .version-name { color: #667eea; }
.mb-card .version-name { color: #36a3d8; }

.version-desc {
  font-size: 13px;
  color: #999;
}

.hint {
  margin-top: 24px;
  font-size: 12px;
  color: #bbb;
}

/* === Login Modal === */
.login-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.login-overlay.show {
  display: flex;
}

.login-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 34px 32px 28px;
  width: 400px;
  max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: pop 0.25s ease;
}

@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.login-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 18px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
}

.login-close:hover { color: #333; }

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
  text-align: center;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}

.field input:focus {
  border-color: #667eea;
}

.error-msg {
  color: #e74c3c;
  font-size: 13px;
  margin-bottom: 8px;
  min-height: 20px;
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-btn:hover {
  opacity: 0.9;
}

.login-btn:active {
  transform: scale(0.98);
}

.modal-hint {
  text-align: center;
  margin-top: 16px;
  color: #bbb;
}

@media (max-width: 520px) {
  .home-card { padding: 30px 20px; }
  .version-select { flex-direction: column; gap: 14px; }
  h1 { font-size: 24px; }
}