h2 {
  text-align: center;
  color: #333;
}

label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #0073e6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #005bb5;
}

.error {
  background: #fee;
  color: #c00;
  padding: 10px;
  border-radius: 4px;
  margin-top: 20px;
}

.info {
  margin-top: 15px;
  color: #555;
}

/* 表格样式 */
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* 避免在小屏幕撑爆表格 */
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f0f0f0;
}

/* === Mobile 响应式优化 === */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h2 {
    font-size: 20px;
  }

  label {
    font-size: 14px;
  }

  input[type="text"],
  button {
    font-size: 15px;
    width: 100%;
  }

  table {
    font-size: 14px;
    min-width: unset;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  th,
  td {
    padding: 8px;
  }
}
