.hardware-card .hardware-media {
  margin: 0 0 16px;
  min-width: 0;
}
.hardware-card .hardware-media img,
.company-project .client-brand-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(120, 136, 153, .2);
  border-radius: 8px;
  filter: none;
  mix-blend-mode: normal;
}
[data-view="cases"] .company-project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
[data-view="cases"] .company-project {
  display: flex;
  flex-direction: column;
}
[data-view="cases"] .client-logo-stage {
  height: 136px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 16px 16px 0 0;
}
html[data-theme] body [data-view="cases"] .company-project .client-brand-media img {
  width: 180px;
  height: 80px;
  max-width: 180px;
  max-height: 80px;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}
[data-view="cases"] .company-project .company-figure figcaption {
  padding: 12px 22px 0;
  font-size: 12px;
  line-height: 1.8;
}
[data-view="cases"] .company-project > div {
  flex: 1;
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
}
[data-view="cases"] .company-project h3 {
  font-size: 21px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
[data-view="cases"] .company-project p {
  margin-top: 12px;
  margin-bottom: 18px;
  line-height: 1.85;
}
[data-view="cases"] .company-project-type {
  margin-top: auto;
}
@media (max-width: 900px) {
  [data-view="cases"] .company-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  [data-view="cases"] .company-project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  [data-view="cases"] .client-logo-stage {
    height: 128px;
  }
}
.hardware-card .hardware-media figcaption {
  padding-top: 10px;
  color: var(--copy, var(--muted));
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.hardware-card:hover .hardware-media figcaption {
  color: inherit;
}
.hardware-card .hardware-media figcaption a {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hardware-card .hardware-media figcaption a:hover {
  color: inherit;
}

/* 仅统一硬件框体；明确优先级，避免主题、悬停和公共圆角层覆盖。 */
html[data-theme] body [data-view="hardware"] .hardware-grid > .hardware-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  box-shadow: none;
}
html[data-theme] body [data-view="hardware"] .hardware-grid > .hardware-card:not(:hover) {
  background: var(--surface);
}
html[data-theme] body [data-view="hardware"] .hardware-card .hardware-media img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  padding: 16px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(120, 136, 153, .2);
  border-radius: 16px;
}
