/* Customer stories: shared navigation, independently scoped editorial content. */
.case-stories-page { background: #fff; color: #17191c; }
.case-stories-page .stories-main { padding-top: 0; }
.case-stories-page .stories-wrap { width: min(var(--site-safe-width), calc(100% - 192px)); margin-inline: auto; }
.case-stories-page button, .case-stories-page input { font-family: inherit; }
.case-stories-page button { cursor: pointer; }
.case-stories-page [hidden] { display: none !important; }
.case-stories-page .stories-hero { min-height: 610px; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 64px; background: linear-gradient(180deg, #fff 24%, #f1f9fd 100%); }
.case-stories-page .stories-intro { padding-block: 84px 50px; text-align: center; }
.case-stories-page .stories-eyebrow { margin: 0; color: #73777e; font-size: 14px; font-weight: 400; line-height: 1.5; }
.case-stories-page .stories-intro h1 { margin: 20px 0 24px; font-size: 48px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; text-wrap: balance; }
.case-stories-page .stories-intro-desc { margin: 0 0 28px; color: #73777e; font-size: 16px; line-height: 1.8; }
.case-stories-page .stories-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.case-stories-page .stories-hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 192px !important; min-width: 192px !important; max-width: 192px !important; min-height: 44px; padding: 11px 22px; border-radius: 6px; background: #edf0f2; color: #25282b; font-size: 14px; line-height: 1.5; white-space: nowrap; text-decoration: none; transition: background .2s, transform .2s; }
.case-stories-page .stories-hero-button:hover { background: #e2e7eb; transform: translateY(-2px); }
.case-stories-page .stories-hero-primary { color: #fff; background: var(--blue); }
.case-stories-page .stories-hero-primary:hover { background: #174b99; }
.case-stories-page .stories-client-strip { overflow: hidden; width: 100%; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.case-stories-page .stories-client-track { display: flex; width: max-content; animation: stories-clients-drift 64s linear infinite; }
.case-stories-page .stories-client-group { display: flex; gap: 20px; padding-right: 20px; }
.case-stories-page .stories-client-logo { display: grid; place-items: center; flex: 0 0 128px; width: 128px; height: 128px; padding: 10px; border: 1px solid #e1e6e9; border-radius: 8px; background: #fff; }
.case-stories-page .stories-client-logo img { width: 128%; max-width: none; height: auto; object-fit: contain; clip-path: inset(4%); }
.case-stories-page .stories-client-strip:is(:hover,:focus-within) .stories-client-track { animation-play-state: paused; }
.case-stories-page #customer-stories { scroll-margin-top: 104px; }
@keyframes stories-clients-drift { to { transform: translateX(-50%); } }
.case-stories-page .stories-outline { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 22px; min-height: 44px; border: 1px solid #bfc2c6; border-radius: 6px; background: transparent; color: #282b30; font-size: 14px; font-weight: 400; line-height: 1.5; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.case-stories-page .stories-outline:hover { border-color: var(--blue); color: var(--blue); background: #f7f9fc; }
.case-stories-page .stories-library { width: min(1300px, calc(100% - 192px)); max-width: 1300px; padding: 30px 0 100px; }
.case-stories-page .stories-library-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.case-stories-page .stories-library-heading h2 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.025em; }
.case-stories-page .stories-library-heading p { margin: 0; color: #858a91; font-size: 14px; }
.case-stories-page .stories-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 0; margin-bottom: 20px; }
.case-stories-page .stories-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.case-stories-page .stories-filters button { padding: 8px 18px; border: 0; border-radius: 6px; background: transparent; color: #6e737a; font-size: 14px; line-height: 1.5; white-space: nowrap; transition: background .2s, color .2s; }
.case-stories-page .stories-filters button:hover { background: #f2f3f4; color: #17191c; }
.case-stories-page .stories-filters button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.case-stories-page .stories-search { display: flex; align-items: center; gap: 10px; flex: 0 0 290px; min-width: 0; padding: 10px 16px; border: 1px solid #d7dce1; border-radius: 6px; background: transparent; color: #747a83; }
.case-stories-page .stories-search:focus-within { border-color: var(--blue); }
.case-stories-page .stories-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.case-stories-page .stories-search input { min-width: 0; width: 100%; border: 0; padding: 0; background: transparent; outline: none; color: #222; font-size: 14px; line-height: 1.5; }
.case-stories-page .stories-search input::placeholder { color: #888d94; }
.case-stories-page .stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 62px 38px; }
.case-stories-page .story-card { position: relative; min-width: 0; }
.case-stories-page .story-card-media { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; background: #f2f3f4; }
.case-stories-page .story-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-stories-page .story-card:hover .story-card-media img { transform: scale(1.035); }
.case-stories-page .story-card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 6px; color: #82878e; font-size: 14px; line-height: 1.6; }
.case-stories-page .story-card-meta span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.case-stories-page .story-card-meta span:last-child { flex-shrink: 0; }
.case-stories-page .story-card h3 { margin: 15px 0 0; font-size: 20px; line-height: 1.5; font-weight: 500; letter-spacing: -.015em; }
.case-stories-page .story-card h3 button { border: 0; padding: 0; text-align: left; background: none; font: inherit; color: inherit; }
.case-stories-page .story-card h3 button::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.case-stories-page .story-card h3 button:hover { color: var(--blue); }
.case-stories-page .story-card h3 button:focus-visible { outline: none; }
.case-stories-page .story-card h3 button:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 6px; }
.case-stories-page .stories-more { margin-top: 56px; text-align: center; }
.case-stories-page .stories-more .stories-outline { min-width: 150px; }
.case-stories-page .stories-empty { padding: 72px 24px; text-align: center; background: #f8f9fa; border-radius: 12px; }
.case-stories-page .stories-empty h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; }
.case-stories-page .stories-empty p { margin: 0 0 24px; color: #73777e; font-size: 15px; line-height: 1.8; }
.case-stories-page .story-dialog { position: fixed; inset: 0; width: min(860px, calc(100% - 40px)); max-height: calc(100dvh - 64px); margin: auto; padding: 0; border: 0; border-radius: 12px; overflow-y: auto; background: #fff; color: #17191c; box-shadow: 0 24px 80px #0003; }
.case-stories-page .story-dialog::backdrop { background: rgba(15,20,26,.6); backdrop-filter: blur(4px); }
.case-stories-page .story-dialog-image { display: block; width: 100%; max-height: 360px; aspect-ratio: 16 / 7; object-fit: cover; background: #f2f3f4; }
.case-stories-page .story-dialog-copy { padding: 36px 44px 44px; }
.case-stories-page .story-dialog-copy h2 { margin: 16px 0 24px; font-size: 30px; line-height: 1.5; font-weight: 600; }
.case-stories-page .story-dialog-desc { margin: 0 0 32px; font-size: 16px; line-height: 2; color: #666d76; white-space: pre-line; }
.case-stories-page .story-dialog-close { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #e5e7eb; border-radius: 50%; background: #fff; color: #333; font-size: 28px; line-height: 1; }
.case-stories-page :is(a,button):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (max-width: 1100px) {
  .case-stories-page .compact-footer { padding-bottom: 76px; }
  .case-stories-page .stories-wrap { width: calc(100% - 64px); }
  .case-stories-page .stories-toolbar { align-items: flex-start; flex-direction: column; }
  .case-stories-page .stories-search { flex-basis: auto; width: 100%; max-width: 360px; }
  .case-stories-page .stories-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .case-stories-page .stories-main { padding-top: 0; }
  .case-stories-page .stories-wrap { width: calc(100% - 40px); }
  .case-stories-page .stories-intro { padding-block: 52px 10px; }
  .case-stories-page .stories-hero { min-height: 530px; padding-bottom: 40px; }
  .case-stories-page .stories-client-logo { flex-basis: 96px; width: 96px; height: 96px; padding: 6px; }
  .case-stories-page .stories-client-group { gap: 12px; padding-right: 12px; }
  .case-stories-page .stories-intro h1 { font-size: 34px; line-height: 1.35; margin-top: 16px; }
  .case-stories-page .stories-intro-desc { max-width: 310px; margin-inline: auto; font-size: 15px; }
  .case-stories-page .stories-library { padding: 30px 0 64px; }
  .case-stories-page .stories-library-heading { margin-bottom: 24px; gap: 12px; }
  .case-stories-page .stories-library-heading h2 { font-size: 26px; }
  .case-stories-page .stories-filters { gap: 6px; }
  .case-stories-page .stories-filters button { padding: 6px 13px; }
  .case-stories-page .stories-toolbar { gap: 20px; padding-bottom: 0; margin-bottom: 20px; }
  .case-stories-page .stories-search { max-width: none; }
  .case-stories-page .stories-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .case-stories-page .story-card h3 { font-size: 19px; }
  .case-stories-page .story-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 32px); }
  .case-stories-page .story-dialog-copy { padding: 28px 24px; }
  .case-stories-page .story-dialog-copy h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-stories-page *, .case-stories-page *::before, .case-stories-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Match the product-center banner: the fixed navigation overlays this 670px region. */
.case-stories-page .stories-hero { height: calc(var(--site-primary-banner-height) - 80px); min-height: 0; max-height: none; box-sizing: border-box; padding-bottom: 12px; }
.case-stories-page .stories-intro { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 12px; }
.case-stories-page .stories-intro h1 { margin: 0 0 12px; }
.case-stories-page .stories-intro-desc { margin-bottom: 16px; }
.case-stories-page .stories-client-strip { flex-shrink: 0; }
.case-stories-page .stories-hero > .stories-intro,
.case-stories-page .stories-hero > .stories-client-strip { position: relative; top: -20px; }
.case-stories-page .stories-client-logo { height: clamp(64px, 12vh, 128px); }
@media (max-width: 640px) {
  .case-stories-page .stories-hero { height: auto; min-height: 530px; }
  .case-stories-page .stories-intro h1 { font-size: 26px; }
  .case-stories-page .stories-intro-desc { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
}

/* Match the homepage white navigation styling. */
.case-stories-page .fh-header {
  background: #fff;
  color: #1a1a1a;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}
.case-stories-page .fh-header .fh-logo img { scale: .792; transform-origin: left center; }
.case-stories-page .fh-header .fh-nav,
.case-stories-page .fh-header .fh-nav > a { color: #1a1a1a; font-size: 14px; }
.case-stories-page .fh-header .fh-search input,
.case-stories-page .fh-header .fh-search input::placeholder,
.case-stories-page .fh-header .fh-language-trigger { font-size: 14px; }
/* Match the homepage hero typography at the same viewport sizes. */
@media (max-width: 800px) {
  .case-stories-page .stories-intro h1 { font-size: clamp(24px, 4.7vw, 38px); }
  .case-stories-page .stories-intro-desc { font-size: 14px; }
}
@media (max-height: 780px) and (min-width: 801px) {
  .case-stories-page .stories-intro h1 { font-size: 40px; }
  .case-stories-page .stories-intro-desc { font-size: 14px; }
}
