/* Case study detail pages (e.g. story-retail-chain.html) */

.oh-f-cs-page {
  padding-top: 102px;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 28%);
  position: relative;
  overflow-x: clip;
}

.oh-f-cs-inner {
  width: var(--inner);
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 8vw, 5.5rem);
}

.oh-f-cs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  color: var(--c-blue, #0051d7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.oh-f-cs-kicker svg {
  flex-shrink: 0;
  color: var(--c-blue);
}

.oh-f-cs-hero h1 {
  margin: 0 0 0.65rem;
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-text);
}

.oh-f-cs-hero__sub {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-orange, #f08200);
}

.oh-f-cs-hero__img {
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 81, 215, 0.08);
  box-shadow: 0 16px 48px rgba(0, 42, 194, 0.1);
}

.oh-f-cs-hero__img img {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 460px);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 720px) {
  .oh-f-cs-hero__img img {
    height: clamp(200px, 52vw, 340px);
  }
}

.oh-f-cs-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 1000px) {
  .oh-f-cs-layout {
    grid-template-columns: 1fr min(340px, 32%);
  }
}

.oh-f-cs-h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--c-text);
}

.oh-f-cs-h2__bar {
  width: 4px;
  height: 1.35em;
  border-radius: 2px;
  background: var(--c-purple);
  flex-shrink: 0;
}

.oh-f-cs-main p {
  margin: 0 0 1rem;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-body);
}

.oh-f-cs-main p:last-child {
  margin-bottom: 0;
}

.oh-f-cs-section {
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
}

.oh-f-cs-section:last-child {
  margin-bottom: 0;
}

.oh-f-cs-challenges {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .oh-f-cs-challenges {
    grid-template-columns: repeat(2, 1fr);
  }
}

.oh-f-cs-challenge {
  padding: 1.15rem 1.15rem 1.15rem 1.1rem;
  border-radius: 16px;
  background: #eef4ff;
  border: 1px solid rgba(0, 81, 215, 0.1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.oh-f-cs-challenge__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.oh-f-cs-challenge h3 {
  margin: 0 0 0.35rem;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--c-text);
}

.oh-f-cs-challenge p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-muted);
}

.oh-f-cs-challenge__text {
  min-width: 0;
}

.oh-f-cs-solutions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oh-f-cs-solutions li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.oh-f-cs-solutions li:last-child {
  margin-bottom: 0;
}

.oh-f-cs-sol__ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(240, 130, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-orange, #f08200);
  flex-shrink: 0;
}

.oh-f-cs-solutions h3 {
  margin: 0 0 0.35rem;
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
}

.oh-f-cs-solutions p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-body);
}

.oh-f-cs-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.oh-f-cs-results {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.5rem 1.35rem 3.25rem;
  background: linear-gradient(160deg, #824bfb 0%, #6b3df0 40%, #5b2fd9 100%);
  box-shadow: 0 14px 40px rgba(91, 47, 217, 0.28);
  color: #fff;
}

.oh-f-cs-results h3 {
  margin: 0 0 1.25rem;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.oh-f-cs-res__metric {
  margin-bottom: 1.35rem;
}

.oh-f-cs-res__metric:last-of-type {
  margin-bottom: 0.5rem;
}

.oh-f-cs-res__rule {
  height: 0;
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.45);
  margin: 0 0 0.75rem;
}

.oh-f-cs-res__num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.4rem;
}

.oh-f-cs-res__k {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.oh-f-cs-res__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.oh-f-cs-res__plain {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.oh-f-cs-res__plain + .oh-f-cs-res__plain {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

.oh-f-cs-results__deco {
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  width: 100px;
  height: 90px;
  opacity: 0.12;
  pointer-events: none;
}

.oh-f-cs-quote {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(165deg, #f0f6ff 0%, #e4edff 100%);
  border: 1px solid rgba(0, 81, 215, 0.1);
}

.oh-f-cs-quote blockquote {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.65;
  font-style: italic;
  color: var(--c-text);
}

.oh-f-cs-quote footer {
  margin-top: 1rem;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: var(--c-blue);
}

.oh-f-cs-quote__deco {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  width: 72px;
  height: 72px;
  opacity: 0.08;
  color: var(--c-blue);
  pointer-events: none;
}
