.interior-page--research {
  --research-heading-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
}

.interior-page--research :is(#introduction, #capabilities) h2,
.interior-page--research main [data-research-technology] > h2 {
  font-size: var(--research-heading-size);
}

.interior-page--research .research-stack__card h2 {
  /* 覆盖公共内页样式在窄屏设置的固定字号。 */
  font-size: var(--research-heading-size) !important;
}

.technology-panels {
  display: grid;
}

.technology-panel {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
}

.technology-panel.is-active {
  visibility: visible;
  pointer-events: auto;
}

.technology-panel .technology-number {
  color: rgb(255 255 255 / 60%);
}

/* Overlapping grid cells reserve the tallest panel's natural content height. */
.interior-page--research main .technology-panel h2 {
  margin-bottom: 2.5rem;
  font-size: var(--research-heading-size);
  line-height: 1.25;
}

.technology-panel .flow-copy {
  max-width: 47rem;
  font-size: 1rem;
  line-height: 1.875rem;
}

.technology-panel .design-text__break { display: none; }

.technology-tabs > button {
  min-width: 0;
  min-height: 2.75rem;
  padding: 1.75rem 0.5rem;
  border: 0;
  border-radius: 3rem;
  color: inherit;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5rem;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.technology-tabs > button:hover { background: #ffffff1a; }
.technology-tabs > button[aria-selected="true"] { background: var(--design-gold); }
.technology-tabs > button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
}
.technology-panel:focus-visible {
  outline: 2px solid #ffffff80;
  outline-offset: 0.75rem;
}

@media (max-width: 1400px) {
  .technology-tabs > button { font-size: 0.875rem; }
}
@media (max-width: 1000px) {
  .interior-page--research main .technology-panel h2 {
    line-height: 1.35;
  }
}
@media (max-width: 700px) {
  .technology-tabs > button { padding: 1rem 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .technology-tabs > button { transition: none; }
}
