/* app.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

.mi-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #1a1a1a;
}

h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #1a1a1a;
}

.mi-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mi-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.mi-btn:hover {
  border-color: #4096ff;
  color: #4096ff;
}

.mi-btn-primary {
  background: #4096ff;
  border-color: #4096ff;
  color: #fff;
}

.mi-btn-primary:hover {
  background: #69b1ff;
  border-color: #69b1ff;
  color: #fff;
}

.mi-btn-ghost.active {
  background: #e6f4ff;
  border-color: #4096ff;
  color: #4096ff;
}

label {
  margin-right: 12px;
  font-size: 14px;
}

select, input[type="number"] {
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  margin-right: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

th {
  background: #fafafa;
  font-weight: 600;
  color: #555;
}

tr:hover {
  background: #f9f9f9;
}

#pager {
  text-align: center;
}

#pager button {
  min-width: 36px;
}

pre {
  background: #fafafa;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}

#currentScore {
  color: #4096ff;
  font-weight: 500;
}

#clickDetail {
  color: #555;
}


/* 分页控件（窗口式页码） */
.pager-ell { display: inline-block; padding: 0 6px; color: #999; }
.pager-jump { display: inline-block; margin-left: 12px; font-size: 14px; color: #555; }
.pager-jump input { width: 64px; margin: 0 6px; }

/* 自定义策略输入框 */
.code-input {
  width: 100%; min-height: 96px; margin-top: 8px;
  padding: 10px; border: 1px solid #d9d9d9; border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px; line-height: 1.6; resize: vertical; box-sizing: border-box;
}
.code-input:focus { border-color: #4096ff; outline: none; }
.tip { font-size: 13px; color: #666; margin-bottom: 4px; }
.tip code { background: #f0f0f0; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
