body {
  font-family: "Noto Sans TC", Arial, sans-serif;
  background: #f7f7fa;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 32px 24px 40px 24px;
}
h1 {
  text-align: center;
  margin-bottom: 32px;
  color: #2d3a4b;
}
.mode-switch {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  font-size: 1.2em;
}
.mode-switch label {
  cursor: pointer;
}
form#rp-form {
  margin-bottom: 32px;
}
input, select, button, textarea {
  font-size: 1em;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #bfc4c9;
  margin: 4px 0;
}
input[type="number"] {
  width: 60px;
}
button {
  background: #2d8cf0;
  color: #fff;
  border: none;
  padding: 8px 24px;
  margin-top: 16px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s;
}
button:hover {
  background: #1765ad;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fafbfc;
}
th, td {
  border: 1px solid #e0e3e8;
  padding: 8px 6px;
  text-align: center;
}
th {
  background: #f0f4f8;
  color: #2d3a4b;
}
tr:nth-child(even) {
  background: #f7f9fa;
}
.result-highlight {
  color: #e67e22;
  font-weight: bold;
}
@media (max-width: 600px) {
  .container {
    padding: 10px 2vw;
  }
  table, th, td {
    font-size: 0.95em;
  }
}