.cases-page {
  background: #fff;
}

.cases-page .button-light {
  min-width: 150px;
  color: var(--primary);
  background: #fff;
}

.cases-page .site-nav a.is-active::after {
  bottom: -22px;
}

.cases-hero {
  padding: 118px 0 64px;
}

.cases-hero-copy h1 {
  margin: 0;
  color: #000;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.01em;
}

.cases-hero-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, #3f82ff 0%, #a070ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-detail-title h1 {
  margin: 0;
  color: #000;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.01em;
}

.case-detail-title h1 span {
  color: transparent;
  background: linear-gradient(90deg, #3f82ff 0%, #a070ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cases-hero-copy p {
  margin-top: 12px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.cases-hero-subtitle {
  display: block;
  min-height: 1.75em;
}

/* Featured 置顶大图案例 */
.cases-featured {
  margin-top: 40px;
  border-radius: 18px;
  overflow: hidden;
}

.cases-featured-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease;
}

.cases-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 52px rgba(18, 32, 62, 0.16);
}

.cases-featured-link {
  display: block;
}

.cases-featured-link img {
  width: 100%;
  aspect-ratio: 1280 / 480;
  object-fit: cover;
  transition: transform 0.48s ease;
}

.cases-featured-card:hover .cases-featured-link img {
  transform: scale(1.03);
}

.cases-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.12) 0%, rgba(8, 14, 28, 0.04) 36%, rgba(8, 14, 28, 0.68) 78%, rgba(8, 14, 28, 0.84) 100%);
}

.cases-featured-body {
  position: absolute;
  left: 40px;
  bottom: 36px;
  right: 40px;
  z-index: 2;
  color: #fff;
}

.cases-featured-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

.cases-featured-body h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.cases-featured-title-link {
  color: #fff;
  transition: opacity 0.24s ease;
}

.cases-featured-title-link:hover,
.cases-featured-title-link:focus-visible {
  opacity: 0.82;
}

.cases-featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.cases-featured-meta time {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.cases-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  margin-bottom: 32px;
}

.cases-list-header h2 {
  margin: 0;
  color: #080b16;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cases-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.cases-pill {
  min-width: 96px;
  height: 44px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: #F0F2F5;
  color: rgba(0, 0, 0, 0.7);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease;
}

.cases-pill:hover,
.cases-pill:focus-visible {
  transform: translateY(-1px);
  color: #2d5fff;
}

.cases-pill.is-active {
  background: linear-gradient(90deg, #2f80ff 0%, #9668ff 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(75, 109, 255, 0.24);
}

.cases-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 36px;
}

.cases-list-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.cases-load-more.is-hidden {
  display: none;
}

.cases-list-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e8ebf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 41, 82, 0.04);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.cases-list-card.is-hidden {
  display: none;
}

.cases-list-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(18, 28, 54, 0) 0%, rgba(18, 28, 54, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cases-list-card:hover,
.cases-list-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(67, 125, 255, 0.24);
  box-shadow: 0 24px 46px rgba(23, 41, 82, 0.1);
}

.cases-list-card:hover::before,
.cases-list-card:focus-within::before {
  opacity: 1;
}

.cases-list-card img {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition:
    transform 0.42s ease,
    filter 0.42s ease,
    box-shadow 0.3s ease;
}

.cases-list-card:hover img,
.cases-list-card:focus-within img {
  transform: scale(1.04) translateY(-4px);
  filter: saturate(1.03);
  box-shadow: 0 24px 48px rgba(26, 45, 92, 0.16);
}

.cases-list-image-link {
  display: block;
  overflow: hidden;
}

.cases-list-body {
  position: relative;
  z-index: 2;
  padding: 22px 22px 26px;
}

/* 卡片标签 */
.cases-card-tag {
  display: inline-block;
  color: rgba(0, 0, 0, 0.4);
  font-size: 13px;
  font-weight: 500;
}

/* 卡片元信息 */
.cases-card-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: #b0b4bd;
  font-size: 13px;
  min-height: 20px;
}

.cases-card-meta time {
  color: #8d929e;
}

.cases-card-detail-link {
  position: absolute;
  right: 0;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3c83ff;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-8px);
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease,
    transform 0.24s ease,
    color 0.24s ease;
  pointer-events: none;
}

.cases-card-detail-link img {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.24s ease;
}

.cases-card-detail-link::after {
  content: none !important;
}

.cases-list-body h2,.cases-list-body h2 a {
  margin: 10px 0 0;
  color: rgba(0, 0, 0, 0.9);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: -0.01em;
  transition: color 0.24s ease;
}

.cases-list-title-link {
  display: inline;
  color: inherit;
  transition: color 0.24s ease;
}

.case-detail-breadcrumb {
  margin-bottom: 22px !important;
  color: #8c91a0 !important;
  font-size: 16px !important;
}

.case-detail-breadcrumb a {
  color: #3c83ff;
}

.case-detail-hero {
  width: 100%;
  padding: 0 0 40px;
}

.case-detail-shell {
  padding-bottom: 24px;
  margin-top: 112px;
}

.case-detail-main {
  width: 100%;
}

.case-detail-cover {
  display: inline-block;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 34px;
  box-shadow: 0 24px 52px rgba(32, 56, 112, 0.12);
}

.case-detail-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.case-detail-content {
  width: 100%;
  max-width: none;
}

.case-detail-content-full {
  width: 100%;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  justify-content: center;
}

.case-detail-body {
  width: min(100%, 800px);
}

.case-detail-sidebar {
  position: sticky;
  top: 108px;
  align-self: start;
}

.case-detail-sidebar-inner {
  position: relative;
  max-height: calc(100vh - 132px);
  overflow: auto;
  padding: 22px 20px;
  border: 1px solid #edf0f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 42px rgba(23, 41, 82, 0.06);
}

.case-detail-sidebar-title {
  margin: 0 0 18px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.case-detail-nav {
  display: grid;
  gap: 10px;
}

.case-detail-nav a {
  position: relative;
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition:
    color 0.24s ease,
    background-color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.case-detail-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f80ff 0%, #a070ff 100%);
  transform: translateY(-50%);
  transition: height 0.24s ease;
}

.case-detail-nav a:hover,
.case-detail-nav a:focus-visible {
  color: #1A75FF;
  background: rgba(63, 130, 255, 0.08);
  transform: translateX(3px);
}

.case-detail-nav a.is-active {
  color: #1A75FF;
  font-size: 16px;
  background: rgba(63, 130, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(63, 130, 255, 0.08);
}

.case-detail-nav a.is-active::before {
  height: 24px;
}

.case-detail-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;
  line-height: 1.7;
}

.case-detail-content h2 {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.9);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  scroll-margin-top: 118px;
}

.case-detail-content p {
  margin: 0 0 10px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;
  line-height: 1.95;
  font-weight: 350;
}

.case-detail-highlight {
  font-weight: 800;
  color: transparent;
  background: linear-gradient(90deg, #2f80ff 0%, #a070ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-detail-list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.case-detail-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.9;
}

.case-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f80ff 0%, #a070ff 100%);
}

.case-detail-section {
  padding-top: 2px;
  scroll-margin-top: 118px;
}

.case-detail-section + .case-detail-section {
  margin-top: 8px;
}

.case-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 48px;
}

.cases-list-card:hover .cases-list-body h2,
.cases-list-card:focus-within .cases-list-body h2 {
  color: #3f82ff;
}

.cases-list-card:hover .cases-card-detail-link,
.cases-list-card:focus-within .cases-card-detail-link {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.cases-list-card:hover .cases-card-detail-link img,
.cases-list-card:focus-within .cases-card-detail-link img {
  transform: translateX(3px);
}

.cases-list-card:not(:hover):not(:focus-within) .cases-card-detail-link {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.cases-list-card:not(:hover):not(:focus-within) .cases-list-body h2 {
  color: #20242d !important;
}

.case-detail-sidebar-title {
  margin: 0 0 18px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.case-detail-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.case-detail-nav a {
  display: block;
  padding: 14px 16px;
  border: 1px solid #edf0f6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.case-detail-nav a::before {
  display: inline-block;
  margin-right: 8px;
  color: rgba(0, 0, 0, 0.2);
  transition: color 0.24s ease;
}

.case-detail-nav a:hover,
.case-detail-nav a:focus-visible {
  background: rgba(47, 128, 255, 0.045);
  border-color: rgba(47, 128, 255, 0.25);
  color: rgba(0, 0, 0, 0.9);
}

.case-detail-nav a.is-active {
  background: rgba(47, 128, 255, 0.08);
  border-color: rgba(47, 128, 255, 0.35);
  color: #2f80ff;
  font-weight: 600;
}

.case-detail-nav a.is-active::before {
  color: #2f80ff;
}

.case-detail-breadcrumb {
  margin-bottom: 22px !important;
  color: #8c91a0 !important;
  font-size: 16px !important;
}

.case-detail-breadcrumb a {
  color: #3c83ff;
  text-decoration: none;
}

.case-detail-hero {
  margin-bottom: 24px;
}

.case-detail-shell {
  padding-bottom: 24px;
  margin-top: 112px;
}

.case-detail-main {
  width: 100%;
  max-width: none;
}

.case-detail-cover {
  margin: 48px 0;
  border-radius: 18px;
  overflow: hidden;
}

.case-detail-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.case-detail-content {
  width: 100%;
  max-width: none;
}

.case-detail-content-full {
  width: 100%;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  justify-content: center;
}

.case-detail-body {
  min-width: 0;
}

.case-detail-sidebar {
  position: sticky;
  top: 96px;
}

.case-detail-sidebar-inner {
  position: relative;
  max-height: calc(100vh - 132px);
  overflow: auto;
  padding: 22px 20px;
  border: 1px solid #edf0f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 42px rgba(23, 41, 82, 0.06);
}

@media (max-width: 1100px) {
  .cases-hero-copy h1 {
    font-size: 36px;
  }

  .cases-featured-link img {
    aspect-ratio: 4 / 3;
  }

  .cases-featured-body {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .cases-featured-body h2 {
    font-size: 26px;
  }

  .cases-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-detail-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 960px) {
  .cases-hero {
    padding-top: 108px;
  }

  .cases-hero-copy h1 {
    font-size: 34px;
  }

  .cases-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
  }

  .cases-filter {
    gap: 14px;
    margin-top: 44px;
  }

  .cases-pill {
    min-width: auto;
    padding: 0 24px;
    font-size: 15px;
  }

  .cases-list-grid {
    grid-template-columns: 1fr;
  }

  .case-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-detail-shell {
    margin-top: 92px;
  }

  .case-detail-body {
    width: 100%;
  }

  .case-detail-sidebar-inner {
    max-height: none;
    overflow: visible;
    padding: 18px;
  }

  .case-detail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {
  .cases-hero {
    padding-top: 96px;
    padding-bottom: 44px;
  }

  .cases-hero-copy h1 {
    font-size: 30px;
    line-height: 1.34;
  }

  .cases-hero-copy p {
    margin-top: 0;
    font-size: 14px;
  }

  .cases-featured {
    margin-top: 28px;
  }

  .cases-featured-link img {
    aspect-ratio: 1 / 1;
  }

  .cases-featured-body {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .cases-featured-body h2 {
    font-size: 20px;
  }

  .cases-filter {
    gap: 10px;
    margin-top: 32px;
  }

  .cases-pill {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
  }

  .cases-list-grid {
    margin-top: 28px;
    gap: 16px;
  }

  .cases-list-actions {
    margin-top: 28px;
  }

  .cases-list-body {
    padding: 18px 18px 22px;
  }

  .cases-list-body h2 {
    font-size: 17px;
  }

  .case-detail-sidebar-title {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .case-detail-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-detail-nav a {
    padding: 12px 14px;
    font-size: 14px;
  }

  .case-detail-content h2 {
    font-size: 24px;
  }

  .case-detail-content p {
    font-size: 15px;
  }

  .case-detail-list li {
    font-size: 15px;
  }
}
