/* 首页入口层：3 题试玩按钮、深度标注，以及试玩页的草图样式。
   index.html 里排在 styles.css 之后加载，同特异性下覆盖基础按钮规则；
   独立成文件是为了不给 styles.css 换版本号，老访客不用重下整份样式。 */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions .hero-action { margin-top: 0; }

/* 次要按钮要在七套主题里都成立，所以用 currentColor 推导描边与悬停底色，
   并且把选择器写到 .hero-actions 下，才能压过 .home-hero .hero-action 这类
   (0,2,0) 的实心底色规则。 */
.hero-actions .hero-action--ghost {
  color: inherit;
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  box-shadow: none;
  font-weight: 700;
}

.hero-actions .hero-action--ghost:hover {
  color: inherit;
  background: color-mix(in srgb, currentColor 9%, transparent);
  border-color: color-mix(in srgb, currentColor 52%, transparent);
  box-shadow: none;
  transform: translateY(-2px);
}

.hero-action-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-depth {
  display: inline-block;
  margin: 14px 0 0;
  padding: 4px 10px 4px 9px;
  border-left: 2px solid var(--coral);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ---- 试玩页 ---- */

.trial-shell { max-width: 860px; }

.trial-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.trial-steps { display: flex; gap: 6px; }

.trial-step {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 100px;
  background: rgba(247, 240, 223, 0.18);
}

.trial-step--done { background: rgba(216, 232, 138, 0.5); }
.trial-step--current { background: var(--lime); }

.trial-counter {
  color: var(--muted);
  font: 500 0.76rem var(--mono);
  letter-spacing: 0.1em;
}

.trial-question-card h1 { margin-bottom: 34px; }

.trial-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.trial-text-button {
  border: 0;
  padding: 8px 2px;
  color: var(--muted);
  background: none;
  font: inherit;
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.trial-text-button:hover { color: var(--ink); }

.trial-sketch-card h1 { margin-bottom: 14px; }

.trial-caveat {
  margin: 0 0 22px;
  padding: 10px 13px;
  border-left: 3px solid var(--coral);
  background: rgba(255, 115, 90, 0.09);
  font-size: 0.85rem;
  line-height: 1.6;
}

.trial-dims {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trial-dim-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.trial-dim-name { font-weight: 700; }
.trial-dim-band { color: var(--muted); font-size: 0.78rem; }

.trial-dim-bar {
  overflow: hidden;
  height: 6px;
  margin-top: 7px;
  border-radius: 100px;
  background: rgba(247, 240, 223, 0.12);
}

.trial-dim-bar span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: var(--lilac);
}

.trial-dim--high .trial-dim-bar span { background: var(--lime); }
.trial-dim--low .trial-dim-bar span { background: var(--coral); }

.trial-candidate {
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.trial-candidate--empty { color: var(--muted); font-size: 0.85rem; }

.trial-candidate-label {
  color: inherit;
  opacity: 0.66;
  font: 700 0.7rem var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.trial-candidate-name {
  margin-top: 6px;
  font: 700 1.5rem/1.2 var(--display);
}

.trial-candidate-meta,
.trial-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.trial-note { margin-top: 18px; }

.trial-sketch-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.trial-sketch-actions .primary-action { margin-top: 0; }

@media (max-width: 720px) {
  .trial-step { width: 28px; }
  .trial-question-card h1 { margin-bottom: 24px; }
  .trial-sketch-actions { align-items: stretch; }
  .trial-sketch-actions .primary-action { width: 100%; }
}
