/* ---------------- 页面容器 ---------------- */
.container {
  max-width: 700px; /* 页面最大宽度 */
  margin: 0 auto;   /* 居中 */
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-family: "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---------------- 卡片 ---------------- */
.card {
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ---------------- 标题 ---------------- */
h1 {
  font-weight: 700;
  font-size: 1.8rem;
}

p {
  font-size: 0.95rem;
}

/* ---------------- 表格 ---------------- */
.table thead {
  background-color: #0d6efd;
  color: white;
}

.table th, .table td {
  padding: 0.5rem; /* 表格更紧凑 */
  font-size: 0.9rem;
  text-align: center;
  vertical-align: middle;
}

/* 输入框大小 */
.table input {
  height: 1.6rem;
  font-size: 0.85rem;
  padding: 0.2rem 0.3rem;
  max-width: 80px;
}

/* 调整列宽 */
.table th:nth-child(3),
.table td:nth-child(3), /* 限选人数 */
.table th:nth-child(4),
.table td:nth-child(4)  /* 已选人数 */
{
  width: 90px;  /* 更窄 */
}

.table th:nth-child(6),
.table td:nth-child(6) /* 推荐投点 */
{
  width: 80px;  /* 更窄 */
}

.table th:nth-child(5),
.table td:nth-child(5) /* 推荐投点 */
{
  width: 80px;  /* 更窄 */
}

.table th:nth-child(7),
.table td:nth-child(7)  /* 选中概率 */
{
  width: 100px; /* 更宽 */
}

/* 序号列、操作列 */
.table th:nth-child(2), .table td:nth-child(2),
.table th:nth-child(8), .table td:nth-child(8) {
  width: 70px;
}

/* ---------------- 按钮 ---------------- */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* 每行操作按钮 */
.row-actions {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

/* ---------------- 输出结果 ---------------- */
#resultCard pre {
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------------- 提示信息 ---------------- */
#hint {
  font-size: 0.85rem;
}

/* ---------------- 计算按钮 ---------------- */
.btn-calc {
  background-color: #0d6efd;      /* 主色蓝色 */
  color: white;                   /* 文字白色 */
  border: 2px solid #a5c8ff;      /* 淡蓝色边框 */
  padding: 0.6rem 2rem;           /* 上下左右间距 */
  font-size: 1.2rem;              /* 文字大小 */
  border-radius: 0.5rem;          /* 圆角矩形 */
  transition: background-color 0.2s, transform 0.1s;
}

.btn-calc:hover {
  background-color: #0b5ed7;      /* 悬停加深蓝色 */
  color: white;                   /* 文字颜色不变 */
  transform: translateY(-2px);    /* 悬停微微抬起 */
}
