.wmp-case-archive-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.wmp-case-archive {
  --wmp-case-white: #fff;
  --wmp-case-navy: #0c2648;
  --wmp-case-navy-deep: #071a32;
  --wmp-case-orange: #f5a623;
  --wmp-case-orange-soft: #fff3df;
  --wmp-case-text: #40536a;
  --wmp-case-muted: #6a7889;
  --wmp-case-border: #dfe6ee;
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--wmp-case-white);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.wmp-case-archive,
.wmp-case-archive * {
  box-sizing: border-box;
}

.wmp-case-archive__decoration {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 16%, rgba(245, 166, 35, 0.075), transparent 25%),
    radial-gradient(circle at 94% 82%, rgba(12, 38, 72, 0.055), transparent 28%),
    #fff;
}

.wmp-case-archive::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1480px, calc(100% - 64px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.65), transparent);
}

.wmp-case-archive__container {
  width: min(1540px, calc(100% - 64px));
  margin: 0 auto;
  padding: 76px 0 82px;
}

.wmp-case-archive__header {
  max-width: 880px;
  margin: 0 auto 43px;
  text-align: center;
}

.wmp-case-archive__eyebrow {
  margin: 0 0 10px;
  color: var(--wmp-case-orange);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wmp-case-archive__header h1 {
  margin: 0;
  color: var(--wmp-case-navy);
  font-size: clamp(32px, 3.2vw, 45px);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.wmp-case-archive__header h1 span {
  color: var(--wmp-case-orange);
}

.wmp-case-archive__description {
  max-width: 790px;
  margin: 17px auto 0;
  color: var(--wmp-case-text);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 500;
}

.wmp-case-archive__description p {
  margin: 0;
}

.wmp-case-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.wmp-case-card {
  min-width: 0;
  margin: 0;
}

.wmp-case-card__figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--wmp-case-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(12, 38, 72, 0.075);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.wmp-case-card__figure:hover,
.wmp-case-card__figure:focus-within {
  border-color: rgba(245, 166, 35, 0.72);
  box-shadow: 0 22px 48px rgba(12, 38, 72, 0.13);
  transform: translateY(-6px);
}

.wmp-case-card__viewer {
  position: relative;
  width: 100%;
  height: 530px;
  display: block;
  overflow: hidden;
  color: inherit;
  background: #edf1f5;
  cursor: ns-resize;
  outline: none;
  text-decoration: none;
}

.wmp-case-card__viewer:focus-visible {
  outline: 3px solid var(--wmp-case-orange);
  outline-offset: -3px;
}

.wmp-case-card__browser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 31px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #dfe5eb;
  background: rgba(247, 249, 252, 0.96);
  backdrop-filter: blur(7px);
  pointer-events: none;
}

.wmp-case-card__browser i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #c3cbd5;
}

.wmp-case-card__browser i:first-child {
  background: var(--wmp-case-orange);
}

.wmp-case-card__browser b {
  margin-left: auto;
  color: #718095;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
}

.wmp-case-card__screen {
  position: absolute;
  top: 31px;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  overflow: hidden;
  background: #f3f5f7;
}

.wmp-case-card__screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  user-select: none;
  pointer-events: none;
}

.wmp-case-card__viewer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 55px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(12, 38, 72, 0.1));
  pointer-events: none;
}

.wmp-case-card__open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--wmp-case-navy-deep);
  background: var(--wmp-case-orange);
  box-shadow: 0 8px 20px rgba(7, 26, 50, 0.18);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.wmp-case-card__viewer:hover .wmp-case-card__open,
.wmp-case-card__viewer:focus-visible .wmp-case-card__open {
  opacity: 1;
  transform: translateY(0);
}

.wmp-case-card__caption {
  min-height: 82px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--wmp-case-border);
  background: #fff;
}

.wmp-case-card__number {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 166, 35, 0.42);
  border-radius: 10px;
  color: var(--wmp-case-orange);
  background: var(--wmp-case-orange-soft);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.wmp-case-card__caption-text {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
}

.wmp-case-card__caption-text a {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  color: var(--wmp-case-navy);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wmp-case-card__caption-text a:hover,
.wmp-case-card__caption-text a:focus-visible {
  color: var(--wmp-case-orange);
}

.wmp-case-card__caption-text small {
  display: block;
  overflow: hidden;
  color: var(--wmp-case-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wmp-case-pagination-wrap {
  margin-top: 48px;
}

.wmp-case-pagination-wrap .navigation.pagination {
  margin: 0;
}

.wmp-case-pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.wmp-case-pagination-wrap .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wmp-case-border);
  border-radius: 8px;
  color: var(--wmp-case-navy);
  background: #fff;
  box-shadow: 0 7px 20px rgba(12, 38, 72, 0.055);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.wmp-case-pagination-wrap a.page-numbers:hover,
.wmp-case-pagination-wrap a.page-numbers:focus-visible,
.wmp-case-pagination-wrap .page-numbers.current {
  border-color: var(--wmp-case-orange);
  color: var(--wmp-case-navy-deep);
  background: var(--wmp-case-orange);
  transform: translateY(-2px);
}

.wmp-case-pagination-wrap .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.wmp-case-pagination-wrap .prev,
.wmp-case-pagination-wrap .next {
  gap: 7px;
  min-width: 96px;
}

.wmp-case-archive__empty {
  padding: 70px 24px;
  border: 1px dashed var(--wmp-case-border);
  border-radius: 14px;
  text-align: center;
  background: #f8fafc;
}

.wmp-case-archive__empty h2 {
  margin: 0 0 10px;
  color: var(--wmp-case-navy);
  font-size: 26px;
}

.wmp-case-archive__empty p {
  margin: 0;
  color: var(--wmp-case-muted);
}

@media (max-width: 1100px) {
  .wmp-case-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wmp-case-card__viewer {
    height: 510px;
  }
}

@media (max-width: 760px) {
  .wmp-case-archive__container {
    width: calc(100% - 40px);
    padding: 60px 0 62px;
  }

  .wmp-case-archive__header {
    margin-bottom: 35px;
  }

  .wmp-case-archive__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wmp-case-card__viewer {
    height: 550px;
    cursor: pointer;
  }

  .wmp-case-card__open {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .wmp-case-archive__container {
    width: calc(100% - 28px);
    padding: 48px 0 50px;
  }

  .wmp-case-archive__header h1 {
    font-size: 29px;
  }

  .wmp-case-archive__description {
    font-size: 14px;
    line-height: 1.75;
  }

  .wmp-case-card__viewer {
    height: 450px;
  }

  .wmp-case-card__browser b {
    display: none;
  }

  .wmp-case-card__caption {
    min-height: 76px;
    padding: 14px;
  }

  .wmp-case-pagination-wrap {
    margin-top: 36px;
  }

  .wmp-case-pagination-wrap .nav-links {
    gap: 7px;
  }

  .wmp-case-pagination-wrap .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 11px;
  }

  .wmp-case-pagination-wrap .prev,
  .wmp-case-pagination-wrap .next {
    min-width: 40px;
  }

  .wmp-case-pagination-wrap .prev span:last-child,
  .wmp-case-pagination-wrap .next span:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wmp-case-card__figure,
  .wmp-case-card__open,
  .wmp-case-pagination-wrap .page-numbers {
    transition: none;
  }
}

/* Current-category case-tag filters. Tags remain internal elsewhere. */
.wmp-case-tag-filter {
  width: 100%;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wmp-case-tag-filter__button {
  min-height: 42px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  color: var(--wmp-case-navy);
  background: #f0f3f8;
  box-shadow: 0 7px 20px rgba(12, 38, 72, 0.045);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.wmp-case-tag-filter__button:hover,
.wmp-case-tag-filter__button:focus-visible,
.wmp-case-tag-filter__button.is-active {
  border-color: var(--wmp-case-navy);
  color: #fff;
  background: var(--wmp-case-navy);
  box-shadow: 0 10px 24px rgba(12, 38, 72, 0.16);
  transform: translateY(-2px);
}

.wmp-case-tag-filter__button:focus-visible {
  outline: 2px solid var(--wmp-case-orange);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .wmp-case-tag-filter {
    margin-top: 22px;
    gap: 8px;
  }

  .wmp-case-tag-filter__button {
    min-height: 40px;
    padding: 0 17px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .wmp-case-tag-filter {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .wmp-case-tag-filter__button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wmp-case-tag-filter__button {
    transition: none;
  }
}
