* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans SC', -apple-system, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f9ff 0%, #eef7ff 40%, #fdfefe 100%);
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.container {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 76, 129, 0.08);
  padding: 24px 20px 20px;
}
.vote-screen {
  display: block;
  animation: fadeIn 0.5s ease;
}
.vote-header {
  text-align: center;
  margin-bottom: 28px;
}
.vote-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.name-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.name-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.name-item:hover {
  background: #f3f4ff;
  border-color: rgba(43, 127, 255, 0.35);
}
.name-item.voted,
.name-item.selected {
  border-color: #2b7fff;
  background: #e0edff;
  box-shadow: 0 0 20px rgba(43, 127, 255, 0.18);
}
.name-item .name-text {
  font-size: 1.2rem;
  font-weight: 600;
}
.name-main {
  flex: 1;
  padding-right: 12px;
}
.name-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.name-desc {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.5;
}
.name-item .vote-count {
  font-size: 0.9rem;
  color: #6b7280;
  min-width: 80px;
  text-align: right;
}
.name-item.voted .vote-count {
  color: #1d4ed8;
  font-weight: 600;
}
.name-item .vote-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.name-item:not(.voted) .vote-btn {
  background: linear-gradient(135deg, #2b7fff, #34c9b6);
  color: white;
}
.name-item.voted .vote-btn {
  background: #bfdbfe;
  color: #1e3a8a;
  cursor: default;
}
.input-group {
  margin-bottom: 24px;
}
.input-group label {
  display: block;
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #6b7280;
}
.input-group input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.1rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input:focus {
  outline: none;
  border-color: #2b7fff;
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.2);
}
.input-group input::placeholder {
  color: #9ca3af;
}
.btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #2b7fff, #34c9b6);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 127, 255, 0.35);
}
.logout-btn {
  margin-top: 24px;
  padding: 10px 20px;
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.logout-btn:hover {
  border-color: #9ca3af;
  color: #4b5563;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 结果页通用样式补充 */
.result-container {
  text-align: center;
}
.result-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #2b7fff, #34c9b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-sub {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 24px;
}
.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.result-name {
  font-size: 1.05rem;
  font-weight: 600;
}
.result-count {
  font-size: 0.95rem;
  color: #1d4ed8;
  font-weight: 600;
}
