/* 客户案例落地页：header / footer 走 site-shell */
:root {
  --cust-blue: #165dff;
  --cust-ink: #333;
  --cust-muted: #666;
  --cust-surface: #f8f9fd;
  --content: 1280px;
  --page-gutter: clamp(40px, 6vw, 108px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body[data-page="customers-v2"] {
  margin: 0;
  color: var(--cust-ink);
  background: var(--cust-surface);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body[data-page="customers-v2"] img { display: block; max-width: 100%; }
body[data-page="customers-v2"] a { text-decoration: none; }
body[data-page="customers-v2"] a.enter-button,
body[data-page="customers-v2"] a.primary-button,
body[data-page="customers-v2"] .final-cta__buttons a.secondary-button {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
body[data-page="customers-v2"] .cust-hero-actions a.secondary-button,
body[data-page="customers-v2"] .cust-more a.secondary-button {
  color: var(--cust-blue);
  -webkit-text-fill-color: var(--cust-blue);
}
body[data-page="customers-v2"] h1,
body[data-page="customers-v2"] h2,
body[data-page="customers-v2"] h3,
body[data-page="customers-v2"] h4,
body[data-page="customers-v2"] p { margin: 0; }
body[data-page="customers-v2"] .cust-cases__title,
body[data-page="customers-v2"] .cust-logos__title {
  margin-bottom: 64px;
}

.cust-container {
  width: min(var(--content), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

/* Hero */
.cust-hero {
  position: relative;
  overflow: hidden;
  height: 880px;
  min-height: 880px;
  background: #f3f9ff url("/static/website-v2/figma-export/customers-assets/hero-visual.jpg") center / cover no-repeat;
}
.cust-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: calc(1142 / 1920 * 100%);
  height: 100%;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
  pointer-events: none;
}
.cust-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding-top: 228px;
}
body[data-page="customers-v2"] .cust-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(640px, 100%);
  gap: 68px;
}
body[data-page="customers-v2"] .cust-hero h1 {
  background: linear-gradient(100deg, #053f8b 3%, #0551ff 98%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 64px;
  line-height: 1.4;
  font-weight: 700;
}
body[data-page="customers-v2"] .cust-hero-copy > p {
  max-width: 507px;
  color: #003eca;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 500;
}
.cust-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.cust-hero-actions .primary-button,
.cust-hero-actions .secondary-button {
  min-width: 190px;
  min-height: 64px;
  padding: 0 48px;
  border-radius: 15px;
  font-size: 24px;
  font-weight: 500;
}

/* 筛选区 */
.cust-filters {
  padding: 88px 0 0;
}
.cust-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 16px;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 47px;
}
.cust-search__field {
  display: flex;
  align-items: center;
  gap: 17px;
  flex: 1;
  min-width: 0;
}
.cust-search__field svg {
  flex: 0 0 14px;
  color: #979797;
}
.cust-search__field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #979797;
  font-size: 14px;
  line-height: 24px;
  outline: none;
}
.cust-search__field input::placeholder { color: #979797; }
.cust-search__btn {
  flex: 0 0 auto;
  padding: 4px 16px;
  border: 0;
  border-radius: 46px;
  background: var(--cust-blue);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.cust-filter-group {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}
.cust-filter-group:last-child { margin-bottom: 0; }
.cust-filter-group__label {
  flex: 0 0 80px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}
.cust-filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.cust-filter-tag {
  padding: 4px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cust-ink);
  font-size: 14px;
  line-height: 24px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.cust-filter-tag:hover { color: var(--cust-blue); }
.cust-filter-tag.is-active {
  background: rgba(22, 93, 255, 0.2);
  color: var(--cust-blue);
}

/* 案例列表 */
.cust-cases {
  padding: 64px 0;
}
.cust-cases__title {
  color: #1a1d2c;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}
.cust-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.cust-case-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 30px rgba(171, 182, 209, 0.25);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.cust-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(171, 182, 209, 0.35);
}
.cust-case-card.is-hidden { display: none; }
.cust-case-card__photo {
  width: 100%;
  height: 248px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.cust-case-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.cust-case-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cust-case-card__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cust-case-card__brand img {
  flex: 0 0 auto;
  max-height: 28px;
  width: auto;
  object-fit: contain;
}
.cust-case-card__brand h3 {
  color: #1d2129;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.cust-case-card__tag {
  flex: 0 0 auto;
  padding: 2px 12px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.4;
}
.cust-case-card__tag--jewelry {
  background: #ffdbd0;
  color: #ff0000;
}
.cust-case-card__tag--medical {
  background: rgba(0, 145, 0, 0.2);
  color: #009100;
}
.cust-case-card__tag--food {
  background: rgba(0, 145, 0, 0.2);
  color: #009100;
}
.cust-case-card__tag--default {
  background: rgba(22, 93, 255, 0.1);
  color: var(--cust-blue);
}
.cust-case-card__desc {
  color: var(--cust-ink);
  font-size: 16px;
  line-height: 1.6;
}
.cust-case-card__metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cust-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.cust-metric__value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cust-metric__value img {
  width: 10px;
  height: 10px;
}
.cust-metric__value b {
  color: var(--cust-blue);
  font-family: DIN, "Arial Narrow", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}
.cust-metric__value span {
  color: var(--cust-blue);
  font-family: DIN, "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.cust-metric__label {
  color: var(--cust-muted);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}
.cust-more {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}
.cust-more .secondary-button {
  min-height: 0;
  padding: 16px 48px;
  border: 2px solid transparent;
  border-radius: 15px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(-43deg, #0551ff 2%, #87bbff 100%) border-box;
  font-size: 24px;
  font-weight: 500;
}
.cust-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  color: var(--cust-muted);
  font-size: 16px;
  text-align: center;
}
.cust-empty.is-hidden { display: none; }

/* 列表页 */
body.cust-page--list .cust-list-head {
  padding: 120px 0 32px;
  background: var(--cust-surface);
}
body.cust-page--list .cust-breadcrumb {
  margin-bottom: 0;
  color: var(--cust-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
body.cust-page--list .cust-breadcrumb a {
  color: var(--cust-muted);
}
body.cust-page--list .cust-breadcrumb a:hover {
  color: var(--cust-blue);
}
body.cust-page--list .cust-breadcrumb [aria-current="page"] {
  color: var(--cust-blue);
  font-weight: 500;
}
body.cust-page--list .cust-filters {
  padding-top: 0;
}
body.cust-page--list .cust-cases {
  padding-top: 64px;
}
body.cust-page--list .cust-cases__title {
  margin-bottom: 16px;
  color: #1a1d2c;
  font-size: 42px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}
body.cust-page--list .cust-list-lead {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--cust-muted);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}
body.cust-page--list .cust-list-count {
  margin-bottom: 48px;
  color: var(--cust-muted);
  font-size: 14px;
  text-align: center;
}
body.cust-page--list .cust-list-count b {
  color: var(--cust-blue);
  font-weight: 700;
}

/* Logo 墙 */
.cust-logos {
  padding: 64px 0;
  background: #fff;
}
.cust-logos__title {
  color: var(--cust-ink);
  font-size: 42px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
}
.cust-logos__title em {
  font-style: normal;
  color: var(--cust-blue);
}
.cust-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.cust-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(171, 182, 209, 0.25);
}
.cust-logo-card img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .cust-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cust-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --page-gutter: clamp(20px, 5vw, 40px); }
  .cust-hero {
    height: auto;
    min-height: 0;
    padding-bottom: 48px;
  }
  .cust-hero-inner { padding-top: 120px; }
  body[data-page="customers-v2"] .cust-hero h1 { font-size: 36px; }
  body[data-page="customers-v2"] .cust-hero-copy > p { font-size: 18px; }
  .cust-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .cust-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --page-gutter: 16px; }
  .cust-hero-inner { padding-top: 88px; }
  body[data-page="customers-v2"] .cust-hero h1 { font-size: 24px; }
  body[data-page="customers-v2"] .cust-hero-copy > p { font-size: 14px; }
  .cust-hero-actions {
    justify-content: flex-start;
    flex-direction: row;
    gap: 10px;
    width: auto;
  }
  .cust-hero-actions a {
    flex: 0 0 auto;
    width: auto;
    min-width: 112px;
    max-width: 136px;
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
  }
  .cust-filters { padding: 24px 0 0; }
  .cust-search { margin-bottom: 0; }
  .cust-filter-group { display: none !important; }
  .cust-cases { padding: 28px 0 40px; }
  .cust-cases__title { font-size: 20px; margin-bottom: 16px; }
  body.cust-page--list .cust-cases { padding-top: 28px; }
  body.cust-page--list .cust-cases__title { font-size: 20px; }
  .cust-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cust-case-card {
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(171, 182, 209, 0.22);
  }
  a.cust-case-card:hover { transform: none; }
  .cust-case-card__photo {
    height: 96px;
    border-radius: 10px 10px 0 0;
  }
  .cust-case-card__body {
    gap: 6px;
    padding: 10px;
  }
  .cust-case-card__head {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .cust-case-card__brand { gap: 6px; }
  .cust-case-card__brand img {
    max-height: 18px;
  }
  .cust-case-card__brand h3 {
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cust-case-card__tag {
    padding: 1px 6px;
    font-size: 10px;
    border-radius: 10px;
    max-width: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cust-case-card__desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .cust-case-card__metrics { display: none; }
}
