.experiments-index {
  padding-top: 36px;
}

.experiment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.experiment-card + .experiment-card {
  margin-top: 12px;
}

.experiment-card:hover {
  border-color: var(--accent);
  background: var(--tint);
}

.experiment-card h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 400;
  line-height: 1.25;
}

.experiment-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.experiment-card-arrow {
  color: var(--accent);
  font-size: 22px;
}

.experiment-header {
  padding-block: clamp(28px, 5vw, 52px) clamp(22px, 4vw, 38px);
  border-bottom: 1px solid var(--line);
}

.experiment-header h1 {
  margin-block: 8px;
  font-family: var(--serif);
  font-size: clamp(35px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.experiment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 14px;
}

.experiment-meta a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.experiment-context {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(28px, 4vw, 54px);
}

.experiment-section {
  margin-block: clamp(28px, 4vw, 48px);
}

.experiment-context > .experiment-section {
  margin: 0;
}

.experiment-section .section-heading {
  margin-bottom: 12px;
}

.experiment-copy,
.experiment-note {
  color: var(--muted);
  font-size: 14px;
}

.experiment-note {
  font-size: 13px;
}

.experiment-source {
  margin-top: 10px;
  font-size: 13px;
}

.experiment-source a,
.experiment-table a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.experiment-journal {
  margin-top: 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--copper);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.experiment-journal h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
}

.experiment-journal p + p {
  margin-top: 6px;
}

.experiment-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.55;
}

.experiment-table th,
.experiment-table td {
  padding: 8px clamp(7px, 1.2vw, 14px);
  border-bottom: 1px solid var(--line);
  text-align: start;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.experiment-table th {
  font-weight: 600;
}

.experiment-table thead {
  background: var(--tint);
}

.experiment-table thead th:first-child {
  width: 25%;
}

.experiment-prompt {
  margin: 14px 0 7px;
  padding: 8px 12px;
  border-left: 2px solid var(--copper);
  background: var(--surface);
  font-size: 14px;
}

.experiment-frames {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 16px;
}

.experiment-frame {
  container-type: inline-size;
  border: 1px solid var(--line);
  background: var(--surface);
}

.experiment-frame-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.experiment-frame-header h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
}

.experiment-frame-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.experiment-frame-actions a,
.experiment-frame-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.experiment-frame-actions button[hidden] {
  display: none;
}

.experiment-frame-actions :is(a, button):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.experiment-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* 按各自画布比例计算高度，并留出原始页面的边距与控制区。 */
.experiment-frame--gpt iframe {
  height: 380px;
  height: calc(52cqw + 105px);
  background: #f5f1e5;
}

.experiment-frame--gemini iframe {
  height: 560px;
  height: calc(56.25cqw + 285px);
  background: #e0f2fe;
}

@container (max-width: 430px) {
  .experiment-frame--gemini iframe {
    height: 630px;
  }
}

.experiment-frame iframe:fullscreen {
  width: 100%;
  height: 100%;
}

.experiment-frame-note {
  margin-top: 10px;
}

.experiment-fullscreen-status:not(:empty) {
  padding: 6px 12px;
}

.experiment-conclusion {
  margin-block: 16px 6px;
  max-width: 72ch;
  font-size: 15px;
}

@media (max-width: 940px) {
  .experiment-frames {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .experiment-context {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .experiment-frames {
    margin-inline: -8px;
  }

  .experiment-frame-header {
    padding-inline: 10px;
  }
}
