/* 项目案例 — Hero（仅 .cases-hero） */
.cases-hero {
  min-height: 520px;
  height: clamp(520px, 72vh, 680px);
}

.cases-hero img {
  object-position: center 55%;
}

.cases-hero .page-hero-copy {
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(
    90deg,
    rgba(10, 14, 12, 0.62) 0%,
    rgba(10, 14, 12, 0.38) 42%,
    rgba(10, 14, 12, 0.08) 72%,
    rgba(10, 14, 12, 0) 100%
  );
}

.cases-hero-wrap {
  width: min(var(--wrap), calc(100% - 80px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

.cases-hero .hero-chip {
  margin-bottom: 22px;
  height: auto;
  min-height: 32px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  max-width: 100%;
}

.cases-hero-title {
  margin: 0;
  max-width: 640px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
}

.cases-hero-title .line-main {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.35;
  color: #fff;
}

.cases-hero-title .line-sub {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.35;
  color: #e4c89a;
}

.cases-hero .lead {
  margin-top: 22px;
  max-width: 560px;
  text-align: left;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
}

.cases-hero-stats {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  max-width: 720px;
  margin-top: 36px;
  padding: 28px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  gap: 0;
}

.cases-hero-stat-item {
  flex: 1 1 0;
  position: relative;
  padding: 4px 20px;
  text-align: center;
}

.cases-hero-stat-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.22);
}

.cases-hero-stats b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.cases-hero-stats span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .cases-hero.page-hero.is-tall {
    min-height: 520px;
    height: auto;
    overflow: visible;
  }

  .cases-hero .page-hero-copy {
    justify-content: flex-end;
    padding-bottom: 28px;
    background: linear-gradient(
      180deg,
      rgba(10, 14, 12, 0.35) 0%,
      rgba(10, 14, 12, 0.55) 45%,
      rgba(10, 14, 12, 0.82) 100%
    );
  }

  .cases-hero-wrap {
    width: calc(100% - 32px);
    margin: 0 auto;
    align-items: stretch;
  }

  .cases-hero-stats {
    flex-direction: row;
    align-self: stretch;
    width: 100%;
    max-width: none;
    margin-top: 24px;
    padding: 16px 8px;
    gap: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 22, 20, 0.52);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  }

  .cases-hero-stat-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 6px;
  }

  .cases-hero-stat-item:not(:first-child) {
    border-top: 0;
    padding-top: 4px;
  }

  .cases-hero-stat-item:not(:first-child)::before {
    display: block;
    height: 40px;
  }

  .cases-hero-stats b {
    font-size: clamp(22px, 6.5vw, 30px);
    line-height: 1.15;
  }

  .cases-hero-stats span {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
  }

  .cases-hero .lead {
    font-size: 13px;
    line-height: 1.85;
  }
}

/* 列表区 */
.case-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.case-toolbar h2 {
  font-size: 22px;
}

.case-toolbar p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.search-box {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.search-box input {
  height: 40px;
  width: 240px;
  border: 1px solid #ddd6c8;
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--green);
}

.search-box button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #ddd6c8;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.filter-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.filter-row .lab {
  width: 72px;
  flex-shrink: 0;
  font-size: 13px;
  padding-top: 8px;
  color: var(--ink-2);
}

.filter-row .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 0;
  height: 32px;
  padding: 0 12px;
  background: #efe8dc;
  color: #5a5a5a;
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
}

.pill.is-on {
  background: var(--green);
  color: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.case-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #f2ede4;
}

.case-card.is-hide {
  display: none;
}

.case-card .thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 22px 22px 20px;
  background: #f2ede4;
}

.case-card .case-place {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #8c867a;
  font-weight: 400;
}

.case-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.case-card .case-summary {
  margin: 0;
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.65;
  flex: 1;
}

.case-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 4px;
  font-size: 13px;
  color: #5c5c5c;
}

.case-card .meta span {
  flex: 1;
  min-width: 0;
}

.case-card .meta a {
  flex-shrink: 0;
  color: #2d5a3f;
  font-weight: 500;
  text-decoration: none;
}

.case-card .meta a:hover {
  color: var(--green);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pager span {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}

.pager .is-on {
  background: var(--green);
  color: #fff;
}

.empty-tip {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.empty-tip.is-show {
  display: block;
}

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

  .case-toolbar {
    flex-direction: column;
  }

  .search-box input {
    width: 180px;
  }
}

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

  .filter-row {
    flex-direction: column;
    gap: 8px;
  }
}
