:root {
  color: #16233a;
  background: #edf3fb;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

.experiment {
  width: min(900px, calc(100% - 48px));
  margin: 48px auto;
}

.experiment-header {
  padding: 36px 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #155eaa, #6947ba);
  border-radius: 24px 24px 8px 8px;
}

.eyebrow {
  margin: 0;
  color: #dcecff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  margin-top: 0;
  color: #174d86;
}

.intro {
  margin: 0;
  font-size: 1.15rem;
}

.content-card,
.interaction-card,
.steps-card {
  padding: 28px 40px;
  background: #ffffff;
  border: 1px solid #d9e5f3;
  box-shadow: 0 12px 28px rgb(22 35 58 / 8%);
}

.interaction-card {
  background: #fff8e7;
  border-color: #f3d28a;
}

.interaction-card h2 {
  color: #a35005;
}

.steps-card {
  border-radius: 8px 8px 24px 24px;
}

button {
  padding: 12px 28px;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #e46d25;
  border: 0;
  border-radius: 999px;
  transition:
    transform 0.2s,
    background 0.2s;
}

button:hover {
  background: #c8510c;
  transform: translateY(-2px);
}

button:focus-visible {
  outline: 3px solid #155eaa;
  outline-offset: 3px;
}

.result {
  min-height: 2em;
  margin-bottom: 0;
  font-weight: 700;
  color: #9a4100;
}

@media (max-width: 600px) {
  .experiment {
    width: min(100% - 28px, 900px);
    margin: 20px auto;
  }

  .experiment-header,
  .content-card,
  .interaction-card,
  .steps-card {
    padding: 24px;
  }
}
