/* ==========================================================================
   客户案例页 · 2026 版
   83 个代表案例 / 7 个分组 / 9 类客户
   加载顺序：site.css → v2.css → clients-v2.css
   ========================================================================== */

/* ---------- Hero ---------- */

.clients-hero {
  --hero-photo: url("../images/clients-hero.jpg");
}

.clients-hero .eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(19, 102, 236, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.clients-hero .page-hero__sub {
  max-width: 760px;
}

.clients-hero .page-hero__meta {
  gap: 14px 42px;
}

.clients-hero .page-hero__meta strong {
  font-family: var(--font-num);
  letter-spacing: -0.04em;
}

/* ---------- 筛选工具栏 ---------- */

.clients-toolbar-wrap {
  scroll-margin-top: calc(var(--header-h) + 20px);
  padding: 14px 0;
  background: rgba(247, 250, 255, 0.93);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px -28px rgba(9, 32, 58, 0.45);
}

.clients-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.clients-toolbar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.clients-toolbar__intro {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}

.clients-toolbar__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.clients-toolbar__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(19, 102, 236, 0.08);
}

.clients-toolbar__count {
  margin: 0;
  color: var(--muted-2);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.client-search {
  flex: 0 0 300px;
}

.client-search input {
  height: 40px;
  background: #fff;
  border-color: rgba(13, 41, 70, 0.12);
  box-shadow: 0 2px 10px rgba(9, 32, 58, 0.03);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 8px 13px;
  font-size: var(--fs-xs);
  border-radius: 9px;
}

.filter-btn span {
  font-family: var(--font-num);
  font-size: var(--fs-2xs);
  letter-spacing: 0;
}

.filter-btn[aria-pressed="true"] {
  box-shadow: 0 8px 18px -6px rgba(19, 102, 236, 0.5);
}

/* ---------- 列表主体 ---------- */

.clients-page {
  padding: 30px 0 96px;
}

.clients-sections {
  display: block;
}

.client-group {
  margin-top: 48px;
  scroll-margin-top: calc(var(--header-h) + 128px);
}

.client-group:first-child {
  margin-top: 4px;
}

.client-group[hidden] {
  display: none !important;
}

.client-group__head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.client-group__intro {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.client-group__num {
  color: transparent;
  background: linear-gradient(120deg, #2e7cf6 0%, #6366f1 52%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-num);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.client-group h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.client-group__count {
  color: var(--muted-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0;
}

.client-group__count b {
  color: var(--blue);
  font-family: var(--font-num);
  font-size: var(--fs-base);
  font-weight: 700;
}

.client-group p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.client-group__line {
  flex: 1;
  height: 1px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(19, 102, 236, 0.18), rgba(19, 102, 236, 0));
}

.clients-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- 卡片 ---------- */

.client-card__button {
  border-radius: 16px;
  border-color: rgba(13, 41, 70, 0.08);
  box-shadow: 0 2px 10px rgba(9, 32, 58, 0.03);
}

.client-card__button:hover {
  transform: translateY(-3px);
  border-color: rgba(19, 102, 236, 0.26);
  box-shadow: 0 18px 34px -10px rgba(9, 32, 58, 0.16);
}

.client-card__media {
  aspect-ratio: 4 / 3;
  background: #e7eef6;
}

.client-card__media::after {
  background: linear-gradient(180deg, rgba(4, 17, 32, 0.06) 0%, rgba(4, 17, 32, 0) 34%, rgba(4, 17, 32, 0.56) 100%);
}

.client-card__badge {
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: var(--fs-2xs);
  font-weight: 650;
  line-height: 1.5;
}

.client-card__badge--amber {
  color: #ffe8bb;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(96, 60, 4, 0.58);
}

.client-card__badge--slate {
  color: #dbe7f6;
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.62);
}

.client-card__region {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(4, 17, 32, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1.5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.client-card__index {
  right: 10px;
  bottom: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-num);
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
}

.client-card__body {
  padding: 13px 14px 14px;
}

.client-card__name {
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.4;
}

.client-card__service {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.client-card__foot {
  margin-top: 10px;
  padding-top: 9px;
  color: var(--muted-2);
  font-size: var(--fs-xs);
}

.client-card__foot span:last-child {
  color: var(--blue-deep);
  font-weight: 650;
}

/* ---------- 提示与空状态 ---------- */

.client-note {
  margin-top: 30px;
  border-radius: 14px;
}

.client-note--top {
  margin: 0 0 24px;
}

.empty-state {
  margin-top: 8px;
}

/* ---------- 详情弹窗 ---------- */

.pill--amber {
  color: #8a5b0f;
  background: #fff2d9;
}

.pill--slate {
  color: #334155;
  background: #e9eef6;
}

.client-modal__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.client-modal__facts div {
  min-width: 0;
}

.client-modal__facts dt {
  color: var(--muted-2);
  font-size: var(--fs-2xs);
  line-height: 1.5;
}

.client-modal__facts dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-modal__label {
  margin-top: 20px;
}

.client-modal__media img {
  object-position: center;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1120px) {
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .clients-toolbar__head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .client-search {
    flex-basis: auto;
    width: 100%;
  }

  .clients-toolbar-wrap {
    padding-top: 12px;
  }
}

@media (max-width: 820px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .client-group {
    margin-top: 38px;
    scroll-margin-top: calc(var(--header-h) + 170px);
  }

  .client-group__num {
    font-size: 30px;
  }

  .client-group h3 {
    font-size: var(--fs-lg);
  }

  .client-group__head {
    margin-bottom: 14px;
  }

  .client-group__line {
    display: none;
  }
}

@media (max-width: 760px) {
  .clients-page {
    padding-bottom: 72px;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .clients-hero .page-hero__meta {
    gap: 10px 24px;
  }

  .client-modal__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .client-card__media {
    aspect-ratio: 4 / 3;
  }

  .client-card__name {
    font-size: var(--fs-base);
  }

  .client-group__intro {
    align-items: flex-start;
  }

  .client-group__num {
    font-size: 26px;
    margin-top: 2px;
  }

  .client-group p {
    font-size: var(--fs-xs);
  }
}
