/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
  "Helvetica Neue", sans-serif;
}

body {
  background-color: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
}

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

/* 登录页样式 */
.login-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo {
  margin-bottom: 20px;
}

.logo i {
  font-size: 40px;
  color: #000;
}

h1 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.subtitle {
  color: #6e6e73;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #1d1d1f;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #0071e3;
  outline: none;
}

button {
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #0077ed;
}

button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

.error-message {
  background-color: #ffebee;
  color: #d32f2f;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}

/* 仪表盘样式 */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: white;
  border-right: 1px solid #d2d2d7;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  margin-bottom: 20px;
}

.user-info-card {
  background-color: #f5f5f7;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  width: 24px;
  color: #6e6e73;
  margin-right: 12px;
}

.info-label {
  font-size: 12px;
  color: #6e6e73;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  word-break: break-all;
}

.logout-button {
  margin-top: auto;
  background-color: white;
  color: #d32f2f;
  border: 1px solid #d32f2f;
}

.logout-button:hover {
  background-color: #ffebee;
}

.main-content {
  flex: 1;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.dialer-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 100%;
  max-width: 500px;
}

.dialer-header {
  text-align: center;
  margin-bottom: 24px;
}

.dialer-header i {
  font-size: 32px;
  color: #0071e3;
  margin-bottom: 8px;
}

.call-label {
  font-size: 12px;
  color: #6e6e73;
  margin-bottom: 12px;
}

.call-number {
  font-size: 20px;
  font-weight: 500;
  margin: 8px 0;
}

.cancel-button {
  background-color: white;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  padding: 8px 16px;
  font-size: 14px;
  width: auto;
  display: inline-flex;
  align-items: center;
}

.cancel-button i {
  margin-right: 6px;
}

.phone-input-container {
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-size: 14px;
  color: #6e6e73;
  margin-bottom: 8px;
}

/* 多号码输入框样式 */
.phone-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.2s;
  font-family: inherit;
  line-height: 1.6;
}

.phone-textarea:focus {
  border-color: #0071e3;
  outline: none;
}

/* 号码列表容器样式 */
.phone-list-container {
  background-color: #f5f5f7;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.list-label {
  font-size: 12px;
  color: #6e6e73;
  margin-bottom: 12px;
}

.phone-list {
  max-height: 250px;
  overflow-y: auto;
}

.phone-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.phone-list-item:last-child {
  margin-bottom: 0;
}

.phone-list-item-number {
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
}

.phone-list-item-cancel {
  background-color: transparent;
  color: #d32f2f;
  border: 1px solid #d32f2f;
  padding: 6px 12px;
  font-size: 12px;
  width: auto;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.phone-list-item-cancel:hover {
  background-color: #ffebee;
}

.phone-list-item-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 验证码输入框样式 */
.captcha-input {
  padding: 10px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.captcha-input:focus {
  border-color: #0071e3;
  outline: none;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.action-button {
  flex: 1;
}

.delete-button {
  background-color: white;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
}

.delete-button:hover {
  background-color: #f5f5f7;
}

.mode-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background-color: white;
  font-size: 16px;
  color: #1d1d1f;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.mode-select:focus {
  border-color: #0071e3;
  outline: none;
}

.mode-select option {
  padding: 12px;
}

/* 添加弹窗样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: auto;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 20px 20px 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f5f5f7;
}

.modal-header i {
  font-size: 24px;
  color: #0071e3;
  margin-right: 12px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

.modal-body {
  padding: 20px;
  max-height: 50vh;
  overflow-y: auto;
}

.modal-body p {
  margin: 0;
  line-height: 1.6;
}

.modal-footer {
  padding: 10px 20px 20px;
  display: flex;
  justify-content: flex-end;
}

.modal-button {
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  width: auto;
}

.modal-button:hover {
  background-color: #0077ed;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #d2d2d7;
  }

  .main-content {
    padding: 16px;
  }
}

/* 添加下拉选择框样式 */
.select-container {
  flex: 1;
}

/* Turnstile 样式 */
.turnstile-container {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cf-turnstile {
  margin: 0 auto;
}

.turnstile-error {
  color: #d32f2f;
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
}

/* Turnstile 容器样式 */
.turnstile-container {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
