/* === 基础样式 === */

h2 {
  color: #333;
}

form label {
  display: block;
  margin: 10px 0;
}

input[type="text"],
input[type="date"],
input[type="number"],
select {
  padding: 8px;
  width: 100%;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

button {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #005bb5;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

th,
td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

thead {
  background-color: #f0f0f0;
}

.error-box {
  background-color: #ffe6e6;
  border: 1px solid #ff5c5c;
  padding: 15px;
  margin: 20px 0;
  border-radius: 6px;
  color: #cc0000;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
  min-width: 800px;
}

th,
td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

thead {
  background-color: #f0f0f0;
}
/* === Mobile 适配 (≤768px) === */

@media (max-width: 768px) {
  input[type="text"],
  input[type="date"],
  input[type="number"],
  select {
    font-size: 15px;
    padding: 10px;
  }

  button {
    width: 100%;
    font-size: 15px;
  }

  table {
    font-size: 14px;
    min-width: unset; /* 让它可以压缩 */
  }

  th,
  td {
    white-space: nowrap;
  }
}
