h2 {
  margin-top: 0;
  color: #2c3e50;
}

form {
  margin-bottom: 30px;
}

form input,
form select {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
  box-sizing: border-box;
}

/* 表格容器用于横向滑动 */
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

table,
th,
td {
  border: 1px solid #ddd;
}

th {
  background-color: #f0f0f0;
  padding: 10px;
  text-align: left;
}

td {
  padding: 10px;
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  h2 {
    font-size: 20px;
    text-align: center;
  }

  form input,
  form select {
    font-size: 14px;
  }

  table {
    font-size: 14px;
    min-width: unset;
  }

  th,
  td {
    padding: 8px;
    white-space: nowrap;
  }

  .table-wrapper {
    overflow-x: auto;
  }
}

/* 统一按钮与链接风格 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  vertical-align: middle;
  line-height: 1.5;
  color: white;
}

/* 主按钮样式 */
.btn-primary {
  background-color: #3498db;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

/* 取消按钮样式 */
.btn-cancel {
  background-color: #6c757d;
}

.btn-cancel:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
}

.btn-edit {
  background-color: #28a745;
}

.btn-edit:hover {
  background-color: #218838;
  transform: translateY(-1px);
}

.btn-delete {
  background-color: #dc3545;
}

.btn-delete:hover {
  background-color: #c82333;
  transform: translateY(-1px);
}
