.case-page {
  background: #050505;
  color: #ffffff;
}

.case-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid #2f3336;
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.92) 42%, rgba(5, 5, 5, 0.62) 100%),
    var(--case-hero-image);
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  opacity: 0.72;
}

.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.case-wrap {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 24px;
}

.case-hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 24px 72px;
}

.case-kicker,
.case-label,
.case-index {
  color: #b7c900;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-title {
  max-width: 860px;
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.12;
  font-weight: 200;
  text-wrap: pretty;
}

.case-lead {
  max-width: 760px;
  margin-top: 24px;
  padding-left: 18px;
  border-left: 2px solid #b7c900;
  color: #c7c8ae;
  font-size: 18px;
  line-height: 1.8;
  text-wrap: pretty;
}

.case-main {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, #050505 0%, #101010 46%, #050505 100%);
}

.case-shell {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.case-sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid #2f3336;
  background: #131313;
}

.case-sidebar-head {
  padding: 22px 20px;
  border-bottom: 1px solid #2f3336;
}

.case-sidebar-title {
  margin-top: 6px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.case-list {
  display: flex;
  flex-direction: column;
}

.case-item {
  position: relative;
  display: block;
  padding: 20px 20px 20px 24px;
  border-bottom: 1px solid #2f3336;
  color: #e5e2e1;
  transition: background-color 160ms ease, color 160ms ease;
}

.case-item:last-child {
  border-bottom: 0;
}

.case-item:hover,
.case-item.is-active {
  background: #1c1b1b;
  color: #ffffff;
}

.case-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #b7c900;
}

.case-item-title {
  display: block;
  margin-top: 8px;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.case-item-meta {
  display: block;
  margin-top: 6px;
  color: #a0a0a0;
  font-size: 12px;
  line-height: 1.55;
}

.case-content {
  min-width: 0;
}

.case-js .case-content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.case-js.case-is-ready .case-content {
  opacity: 1;
  transform: translateY(0);
}

.case-js.case-is-loading .case-content {
  opacity: 0.36;
  transform: translateY(6px);
  pointer-events: none;
}

.case-js.case-is-loading .case-shell::after {
  content: "切换案例中...";
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 80;
  transform: translateX(-50%);
  padding: 10px 16px;
  border: 1px solid #d8ea16;
  background: #b7c900;
  color: #050505;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.case-panel {
  border: 1px solid #2f3336;
  background: #131313;
}

.case-panel-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid #2f3336;
}

.case-panel-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.68;
}

.case-panel-media span {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: #b7c900;
  font-size: 12px;
  font-weight: 700;
}

.case-article {
  padding: 36px;
}

.case-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.case-meta-card {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #2f3336;
  background: #0e0e0e;
}

.case-meta-card .material-symbols-outlined,
.case-check .material-symbols-outlined,
.case-solution-icon .material-symbols-outlined {
  color: #b7c900;
}

.case-meta-card .material-symbols-outlined {
  font-size: 18px;
}

.case-meta-card b {
  display: block;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
}

.case-meta-card div span {
  display: block;
  margin-top: 2px;
  color: #a0a0a0;
  font-size: 12px;
  line-height: 1.6;
}

.case-section {
  padding: 34px 0;
  border-top: 1px solid #2f3336;
}

.case-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.case-section h2,
.case-cta h2 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}

.case-section p,
.case-cta p {
  margin-top: 16px;
  color: #c7c8ae;
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}

.case-checklist {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.case-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #2f3336;
  background: #0e0e0e;
  color: #e5e2e1;
  line-height: 1.75;
}

.case-check .material-symbols-outlined {
  font-size: 20px;
  margin-top: 4px;
}

.case-check strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
}

.case-check small {
  display: block;
  margin-top: 6px;
  color: #c7c8ae;
  font-size: 14px;
  line-height: 1.75;
}

.case-solution-grid,
.case-result-grid,
.case-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.case-solution-card,
.case-result,
.case-related-card {
  padding: 22px;
  border: 1px solid #2f3336;
  background: #0e0e0e;
}

.case-solution-card {
  min-height: 190px;
}

.case-solution-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(183, 201, 0, 0.42);
}

.case-solution-card h3,
.case-related-card strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.case-solution-card p,
.case-related-card span {
  display: block;
  margin-top: 12px;
  color: #c7c8ae;
  font-size: 14px;
  line-height: 1.75;
}

.case-result {
  min-height: 180px;
}

.case-result strong {
  display: block;
  color: #b7c900;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
}

.case-result em {
  display: block;
  margin-top: 14px;
  color: #ffffff;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.case-result span {
  display: block;
  margin-top: 10px;
  color: #e5e2e1;
  font-size: 13px;
  line-height: 1.75;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.case-tag {
  padding: 7px 10px;
  border: 1px solid rgba(183, 201, 0, 0.42);
  color: #b7c900;
  font-size: 12px;
  font-weight: 700;
}

.case-note {
  padding: 22px;
  border: 1px dashed rgba(183, 201, 0, 0.48);
  background: rgba(183, 201, 0, 0.06);
}

.case-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid #2f3336;
  background: #0e0e0e;
}

.case-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.case-button.primary {
  border-color: #b7c900;
  background: #b7c900;
  color: #050505;
}

.case-button:hover {
  border-color: #b7c900;
  color: #b7c900;
}

.case-button.primary:hover {
  background: #c9db00;
  color: #050505;
}

.case-related-card:hover {
  border-color: #b7c900;
}

@media (max-width: 900px) {
  .case-hero {
    min-height: 360px;
  }

  .case-hero-inner {
    padding: 72px 20px 48px;
  }

  .case-lead {
    font-size: 16px;
  }

  .case-main {
    padding: 40px 0 72px;
  }

  .case-wrap {
    padding: 0 16px;
  }

  .case-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .case-sidebar {
    position: static;
    width: 100%;
  }

  .case-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .case-item {
    border-right: 1px solid #2f3336;
    border-bottom: 0;
  }

  .case-article {
    padding: 24px;
  }

  .case-meta-card,
  .case-button-row,
  .case-button {
    width: 100%;
  }

  .case-solution-grid,
  .case-result-grid,
  .case-related-grid {
    grid-template-columns: 1fr;
  }

  .case-cta {
    align-items: stretch;
  }
}
