body:has(.project-cases) {
  --md-primary-fg-color: #202c42;
  --md-accent-fg-color: #4165d5;
}
body:has(.project-cases) .md-main { background: #f5f6fa; }
body:has(.project-cases) .md-main__inner { width: 100%; max-width: 64rem; margin: 0 auto; }
body:has(.project-cases) .md-content__inner {
  max-width: none;
  margin: 0;
  padding: 1.8rem clamp(.85rem, 3vw, 1.6rem) 2.5rem;
}
body:has(.project-cases) .md-content__inner::before { display: none; }
body:has(.project-cases) .md-tabs__item--active .md-tabs__link { color: #fff; box-shadow: 0 2px #91aaff; }
.project-cases { --pc-ink: #253149; --pc-line: #e0e5ef; color: var(--pc-ink); }
.pc-cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .3rem 0 1.5rem;
  border-bottom: 1px solid var(--pc-line);
}
.pc-eyebrow { color: #526eaf; font-size: .7rem; letter-spacing: .1em; }
.pc-cover h1 { margin: .45rem 0 .55rem; color: #202c42; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 750; letter-spacing: -.04em; }
.pc-cover p { margin: 0; color: #657086; font-size: .8rem; line-height: 1.8; }
.pc-cover-note { flex-shrink: 0; padding: .3rem 0 .3rem 1rem; border-left: 2px solid #b8c7f4; color: #768097; font-size: .7rem; line-height: 2; }
.pc-cover-note strong { color: #465570; font-weight: 500; font-size: .8rem; }
.pc-heading { display: flex; align-items: center; gap: .55rem; margin: 1.25rem 0 .85rem; }
.pc-heading h2 { margin: 0; font-size: .95rem; font-weight: 650; }
.pc-total { padding: .12rem .45rem; border-radius: 1rem; background: #e8edfa; color: #4d63a0; font-size: .65rem; }
.pc-hint { margin-left: auto; font-size: .7rem; color: #798398; }
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.pc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: .6rem;
  background: white;
  box-shadow: 0 2px 6px #23355304;
  transition: box-shadow .2s, border-color .2s;
}
.pc-card:hover { border-color: #becbf0; box-shadow: 0 .3rem 1rem #23355310; }
.pc-media { position: relative; border-bottom: 1px solid #e7ebf3; background: #eef1f8; }
.pc-preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; cursor: zoom-in; }
.pc-preview img { position: absolute; inset: .65rem; display: block; width: calc(100% - 1.3rem); height: calc(100% - 1.3rem); object-fit: contain; }
.pc-expand { position: absolute; top: .4rem; right: .4rem; padding: .18rem .38rem; border: 1px solid #e1e7f0; border-radius: .25rem; background: #fffffff2; color: #586884; font-size: .65rem; }
.pc-image-nav { position: absolute; bottom: .4rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .15rem; padding: .05rem .2rem; border: 1px solid #e0e5ef; border-radius: 1rem; background: #fffffff5; box-shadow: 0 1px 6px #23355310; }
.pc-counter { min-width: 2.3rem; text-align: center; font-size: .7rem; font-variant-numeric: tabular-nums; }
.pc-details { display: flex; flex: 1; flex-direction: column; align-items: stretch; padding: .8rem; }
.pc-details h3 { margin: 0 0 .4rem; color: #253149; font-size: .9rem; font-weight: 650; line-height: 1.5; letter-spacing: 0; }
.pc-details p { margin: 0 0 .75rem; font-size: .8rem; line-height: 1.75; color: #687388; overflow-wrap: anywhere; }
/* 独立的标签容器避免主题的列表缩进和 li 外边距影响对齐。 */
.pc-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem .4rem; margin-top: auto; }
.project-cases .pc-details .pc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0; padding: 0; }
.project-cases .pc-tags > span { display: inline-flex; align-items: center; margin: 0; padding: .15rem .4rem; border: 0; border-radius: .25rem; background: #f0f3fa; color: #5e6e8e; font-size: .65rem; line-height: 1.5; }
.project-cases .pc-download { margin: 0 0 0 auto; }
.pc-download button { display: inline-flex; align-items: center; gap: .2rem; padding: .32rem .55rem; border-radius: .3rem; background: #e9eefc; color: #3e5ca3; font-size: .7rem; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.pc-download button:hover { background: #dbe5ff; }
.pc-download svg { width: .85rem; height: .85rem; }
.pc-footer { display: grid; justify-items: center; gap: .5rem; margin-top: 1.2rem; }
.pc-status { margin: 0; color: #798398; font-size: .7rem; }
.pc-retry, .pc-more { padding: .4rem .8rem; border: 1px solid #d8dfed; border-radius: .35rem; background: white; color: #465f9c; font-size: .75rem; cursor: pointer; }
.project-cases [hidden] { display: none !important; }
.project-cases button:focus-visible { outline: 3px solid #6584df; outline-offset: -3px; }
.pc-dialog { width: min(64rem, 95vw); max-height: 95dvh; margin: auto; padding: 0; border: 0; border-radius: .6rem; background: white; color: var(--pc-ink); box-shadow: 0 1rem 4rem #111b3455; }
.pc-dialog::backdrop { background: #172139cc; }
body:has(.pc-dialog[open]) { overflow: hidden; }
.pc-dialog header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; font-size: .85rem; }
.pc-dialog strong { overflow-wrap: anywhere; }
.pc-stage { position: relative; display: grid; place-items: center; height: 72dvh; padding: .5rem; background: #eef1f8; }
.pc-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pc-image-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; color: #687388; background: #eef1f8; font-size: .8rem; }
.pc-dialog-nav { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .4rem; }
.pc-prev, .pc-next, .pc-close { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; cursor: pointer; color: #4c65a4; }
.project-cases :is(.pc-prev, .pc-next, .pc-close):hover { background: #e9eefb; }
.project-cases svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
@media (max-width: 55rem) {
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-cover-note { display: none; }
}
@media (max-width: 34rem) {
  .pc-grid { grid-template-columns: 1fr; gap: .8rem; }
  .pc-hint { display: none; }
  .pc-stage { height: 65dvh; }
}
@media (prefers-reduced-motion: reduce) { .pc-card { transition: none; } }
