body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

input[type="text"], select, textarea {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 5px rgba(74,144,226,0.5);
}

textarea {
  flex-basis: 100%;
  min-height: 80px;
}

button {
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4a90e2, #357ab8);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background: linear-gradient(135deg, #357ab8, #2d6394);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f7f7f7;
}

.section {
  margin-top: 1rem;
}

#remainCount {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4a90e2;
}

/* 表格容器允许横向滚动 */
.section table {
  width: 100%;
  display: block;
  overflow-x: auto;
}

/* 按钮点击区域增大，方便移动端操作 */
button {
  padding: 0.3em 0.6em;
  font-size: 0.9em;
  margin-left: 4px;
}