/* 首页采用单列主任务布局：示例随题型变化，开始按钮直接位于配置下方。 */
.home-page {
  max-width: 560px;
  margin: 0 auto;
}
.home-intro {
  padding: 32px 0 22px;
}
.home-intro h1 {
  margin-top: 8px;
  font: 36px/1.3 var(--serif);
  letter-spacing: -.04em;
}
.practice-panel {
  padding: 25px 26px 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
}
.selected-practice {
  text-align: center;
  padding: 2px 0 22px;
}
.selected-caption {
  color: var(--green);
  font-size: 12px;
}
.focus-example {
  margin: 13px 0 10px;
  color: var(--green);
  font: 42px/1.2 var(--numbers);
  white-space: nowrap;
}
.focus-example span {
  color: #a5b29f;
}
.selected-rule {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.field-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--muted);
}
.field-caption span {
  font-size: 10px;
  color: #9aa391;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.type-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.type-card:last-child {
  grid-column: 1 / -1;
}
.type-name {
  font-size: 12px;
  line-height: 1.5;
}
.type-card.selected {
  border-color: var(--green);
  color: var(--green);
  background: var(--mint);
  box-shadow: inset 0 0 0 .5px var(--green);
}
.selection-dot {
  position: relative;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border: 1px solid #c8d0c1;
  border-radius: 50%;
}
.selected .selection-dot {
  background: var(--green);
  border-color: var(--green);
}
.selected .selection-dot:after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--surface);
}
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  margin-top: 2px;
}
.quantity-row .field-caption {
  margin: 0;
}
.count-options {
  display: flex;
  gap: 6px;
}
.count-option {
  min-width: 55px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 17px var(--numbers);
}
.count-option.selected {
  border-color: #8ea083;
  background: var(--mint);
  color: var(--green);
}
.start-button {
  min-height: 52px;
  justify-content: space-between;
}
/* 记录入口紧跟开始按钮，使用次级样式，不与练习主操作争夺视觉重点。 */
.records-button {
  margin-top: 10px;
  min-height: 44px;
  font-weight: 500;
  font-size: 12px;
}
.start-hint {
  text-align: center;
  margin-top: 11px;
  font-size: 10px;
  color: var(--muted);
}
.home-bank-note {
  margin-top: 11px;
  text-align: center;
  color: #8e998a;
  font-size: 10px;
  line-height: 1.7;
}
.home-page .continue-card {
  margin-bottom: 17px;
}
@media (max-width: 700px) {
  .home-intro {
    padding: 22px 0 18px;
  }
  .home-intro h1 {
    font-size: 30px;
  }
  .practice-panel {
    padding: 19px 18px 17px;
    border-radius: 17px;
  }
  .selected-practice {
    padding: 0 0 18px;
  }
  .focus-example {
    font-size: 35px;
    margin-block: 10px 8px;
  }
  .type-card {
    padding: 9px 10px;
  }
  .type-name {
    font-size: 11px;
  }
  .quantity-row {
    padding-block: 14px;
  }
  .home-page .continue-card {
    padding: 15px;
  }
  html[lang=en] .home-intro h1 {
    font-size: 27px;
  }
  html[lang=en] .type-name {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .focus-example {
    font-size: 30px;
  }
  .count-option {
    min-width: 44px;
  }
  .type-card {
    padding-inline: 9px;
  }
  .type-name {
    font-size: 10px;
  }
}
