body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 520px;
  background: #fff;
  margin: 30px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 输入框只适用于文本、数字、日期等控件，不设为100% */
.container input[type="number"],
.container input[type="text"],
.container input[type="date"] {
  width: 140px;  /* 你可以根据需要设置更合适的宽度 */
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}

/* 下拉框保持宽度100%以适应布局 */
.container select {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* 按钮保持宽度100%以便手机端操作 */
.container button {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.container button:hover {
  background: #0056b3;
}

.result {
  margin-top: 20px;
}

.custom-select select {
  appearance: none;
  background-color: white;
  padding-right: 35px;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* 表格样式 */
table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

table th, table td {
  padding: 6px;
  border: 1px solid #ddd;
}

.highlight {
  background: #ffefc4;
  font-weight: bold;
}

@media (max-width: 600px) {
  .container {
    margin: 15px;
    padding: 15px;
  }

  /* 手机端输入框可以拉宽 */
  .container input[type="number"],
  .container input[type="text"],
  .container input[type="date"] {
    width: 100%;
  }
}

/* 帮助按钮样式 */
.help-button {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  background-color: #007bff;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  width: auto !important;
  max-width: 200px;
  display: inline-block !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.help-button:hover {
  background-color: #0056b3;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 80px auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
}

.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}