.xm-case-page {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(246, 247, 249, 0.98) 42%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  overflow-x: hidden;
}

.xm-case-page .case-workspace {
  max-width: 100rem;
  margin: 0 auto;
  padding: 24px 16px 0;
}

.xm-case-page .case-breadcrumb {
  margin-bottom: 18px;
}

.xm-case-page .case-breadcrumb > div {
  flex-wrap: wrap;
}

.xm-case-page .case-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 172, 48, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 208, 132, 0.38), rgba(255, 208, 132, 0) 36%),
    linear-gradient(135deg, #fff8eb 0%, #fff2d8 54%, #fff8ef 100%);
  box-shadow: 0 12px 28px rgba(214, 149, 24, 0.1);
}

.xm-case-page .case-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -64px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 166, 0, 0.08);
  pointer-events: none;
}

.xm-case-page .case-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 68rem;
}

.xm-case-page .case-hero-title {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.xm-case-page .case-hero-description {
  color: #9a5710;
  font-size: 14px;
  line-height: 1.85;
}

.xm-case-page .case-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 174, 33, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: #8a5b22;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.xm-case-page .case-hero-stat [data-target] {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #111c2b;
}

.xm-case-page .case-search-panel,
.xm-case-page .case-results-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #e4e8ef;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.04), 0 10px 28px rgba(15, 17, 17, 0.05);
}

.xm-case-page .case-search-shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.xm-case-page .case-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f5;
}

.xm-case-page .case-tab-strip .search-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d9e2ec;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  color: #465466;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.xm-case-page .case-tab-strip .search-tab:hover {
  transform: translateY(-1px);
}

.xm-case-page .case-tab-strip .search-tab.active {
  border-color: rgba(255, 150, 0, 0.34);
  color: #111c2b;
  box-shadow: inset 0 -2px 0 #ffb12a;
}

.xm-case-page .case-search-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.xm-case-page .case-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #dbe2eb;
  background: #f8fafc;
  color: #223042;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.xm-case-page .case-search-input::placeholder {
  color: #8e98a8;
}

.xm-case-page .case-search-input:focus {
  outline: none;
  background: #fff;
  border-color: #ff9600;
  box-shadow: 0 0 0 4px rgba(255, 150, 0, 0.12);
}

.xm-case-page .case-search-btn {
  min-width: 132px;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(230, 118, 0, 0.18);
}

.xm-case-page .case-results-head {
  margin-bottom: 14px;
}

.xm-case-page .case-results-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  color: #111c2b;
}

.xm-case-page .case-results-title i {
  color: #ff9600;
}

.xm-case-page .case-results-body {
  min-width: 0;
}

.xm-case-page .case-pagination {
  margin-top: 18px;
}

.xm-case-page #casePagination .pagination-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.xm-case-page #casePagination button {
  min-width: 40px;
  min-height: 40px;
}

@media (max-width: 980px) {
  .xm-case-page .case-workspace {
    padding: 18px 12px 0;
  }

  .xm-case-page .case-hero,
  .xm-case-page .case-search-panel,
  .xm-case-page .case-results-panel {
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .xm-case-page .case-workspace {
    padding: 14px 10px 0;
  }

  .xm-case-page .case-breadcrumb {
    margin-bottom: 14px;
  }

  .xm-case-page .case-hero,
  .xm-case-page .case-search-panel,
  .xm-case-page .case-results-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .xm-case-page .case-hero-title {
    margin-bottom: 12px;
    font-size: 26px;
  }

  .xm-case-page .case-hero-description {
    font-size: 13px;
    line-height: 1.75;
  }

  .xm-case-page .case-hero-stat {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    font-size: 12px;
  }

  .xm-case-page .case-hero-stat [data-target] {
    font-size: 24px;
  }

  .xm-case-page .case-tab-strip {
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .xm-case-page .case-tab-strip .search-tab {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }

  .xm-case-page .case-search-row {
    flex-direction: column;
  }

  .xm-case-page .case-search-input,
  .xm-case-page .case-search-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
  }

  .xm-case-page .case-search-input {
    padding: 0 14px;
    font-size: 14px;
  }

  .xm-case-page .case-search-btn {
    min-width: 0;
    font-size: 14px;
  }

  .xm-case-page .case-results-title {
    font-size: 16px;
  }

  .xm-case-page #casePagination .pagination-shell {
    gap: 6px;
  }

  .xm-case-page #casePagination button {
    min-width: 36px;
    min-height: 36px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }
}
