:root {
  --primary-color: #1a73e8;
  --background-color: #f5f8fa;
  --card-background: #ffffff;
  --text-color: #202124;
  --border-color: #dadce0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin: 0;
}

#cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card-item {
  background: var(--card-background);
  padding: 20px;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.masked {
  filter: blur(4px);
}

/* 验证码模态框 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.verify-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-sizing: border-box;
}

.verify-modal h3 {
  margin: 0 0 15px 0;
  color: var(--text-color);
}

#captchaText {
  width: 94%;
  font-size: 24px;
  font-family: monospace;
  letter-spacing: 4px;
  margin: 15px 0;
  padding: 10px;
  background: var(--background-color);
  border-radius: 4px;
  user-select: none;
}

.verify-modal input {
  width: calc(100% - 24px);
  padding: 12px;
  margin: 10px 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 18px;
  text-align: center;
  letter-spacing: 4px;
  box-sizing: border-box;
}

.verify-modal button {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
  margin-top: 10px;
  box-sizing: border-box;
}

.verify-modal button:hover {
  background: var(--accent-color);
}

.hint {
  font-size: 14px;
  color: var(--hint-color);
  margin: 5px 0 15px;
}

button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

button:hover {
  background: #1557b0;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a {
  padding: 0.5rem 1rem;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--primary-color);
  color: white;
}

.pagination a.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  z-index: 1002;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.card-item {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-item.masked:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-content {
  font-size: 16px;
  margin-bottom: 8px;
}

.card-hint {
  font-size: 14px;
  color: var(--primary-color);
  opacity: 0.8;
}
