body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: #f5f7fb;
  color: #222;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  background-color: #ffffff;
  border-bottom: 1px solid #e3e7f0;
  box-shadow: 0 2px 4px rgba(15, 35, 95, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: #1f3b8f;
}

.nav a {
  margin-left: 16px;
  text-decoration: none;
  color: #4b587a;
  font-size: 14px;
}

.nav a:hover {
  color: #1f3b8f;
}

.container {
  max-width: 1040px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(15, 35, 95, 0.06);
}

h1, h2 {
  margin-top: 0;
  color: #1f2a44;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #d0d7e6;
  font-size: 14px;
}

button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  background-color: #1f3b8f;
  color: #ffffff;
}

button:hover {
  background-color: #163077;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.table thead {
  background-color: #f1f4fb;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e3e7f0;
  font-size: 14px;
}

.table tr:hover {
  background-color: #f8f9ff;
}

.link-button {
  background: none;
  color: #1f3b8f;
  border: none;
  padding: 0;
  cursor: pointer;
}

.code-block {
  background-color: #0b1020;
  color: #e5f0ff;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  overflow-x: auto;
}

/* Toast 通知样式 */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 500px;
  padding: 14px 16px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast-show {
  opacity: 1;
  transform: translateX(0);
}

.toast-hide {
  opacity: 0;
  transform: translateX(100%);
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 12px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2a44;
  word-break: break-word;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s;
}

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

/* Toast 类型样式 */
.toast-success {
  border-left: 4px solid #00aa3b;
}

.toast-success .toast-icon {
  background-color: #00aa3b;
  color: #ffffff;
}

.toast-error {
  border-left: 4px solid #ec0000;
}

.toast-error .toast-icon {
  background-color: #ec0000;
  color: #ffffff;
}

.toast-warning {
  border-left: 4px solid #ff9800;
}

.toast-warning .toast-icon {
  background-color: #ff9800;
  color: #ffffff;
}

.toast-info {
  border-left: 4px solid #1f3b8f;
}

.toast-info .toast-icon {
  background-color: #1f3b8f;
  color: #ffffff;
}

