* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 10px;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 20px 25px;
  margin: 0 0 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.user-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-info span {
  font-weight: 500;
  color: #555;
}

.user-info button {
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-info button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.login-container {
  max-width: 420px;
  margin: 100px auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.login-container h1 {
  text-align: center;
  font-size: 28px;
  color: #333;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-container form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-container label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #333;
}

.login-container input {
  margin-top: 8px;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.login-container input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-container button {
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

#msg {
  color: #e74c3c;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

section h2 {
  color: #333;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

input, select, button {
  margin: 6px;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input:focus, select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

button:active {
  transform: translateY(0);
}

pre {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #667eea;
  overflow-x: auto;
  max-height: 250px;
  overflow-y: auto;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}

.domain-item {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-left: 5px solid #667eea;
  padding: 15px;
  margin: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.domain-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.domain-item b {
  flex: 1;
  font-weight: 700;
  color: #333;
  font-size: 15px;
}

.domain-item span {
  color: #666;
  font-size: 13px;
  margin-right: 15px;
}

.domain-item button {
  margin-left: 8px;
  padding: 8px 14px;
  font-size: 12px;
  min-width: 80px;
}

.domain-item .btn-run {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.domain-item .btn-run:hover {
  box-shadow: 0 6px 16px rgba(86, 171, 47, 0.4);
}

.domain-item .btn-delete {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.domain-item .btn-delete:hover {
  box-shadow: 0 6px 16px rgba(235, 51, 73, 0.4);
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.98);
  padding: 30px;
  border-radius: 12px;
  width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  color: #333;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.close {
  color: #999;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .user-info {
    justify-content: center;
    width: 100%;
  }

  section {
    padding: 18px;
  }

  .domain-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .domain-item button {
    margin-top: 10px;
    margin-left: 0;
  }

  .modal-content {
    width: 90%;
    max-width: 420px;
  }
}


