/* Project case studies page */

.case-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0c1438;
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/项目案例/矩形 628 拷贝 2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.case-hero .container {
  position: relative;
  z-index: 1;
  padding: 96px 24px 88px;
}

.case-hero-label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
}

.case-hero-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  max-width: 560px;
}

.case-main {
  padding: 48px 0 72px;
  background: #f3f4f8;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.case-filter {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.case-filter:hover:not(.is-active) {
  color: #313695;
  border-color: #c5cce0;
}

.case-filter.is-active {
  color: #ffffff;
  background: #313695;
  border-color: #313695;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef1f6;
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.case-card:hover {
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.case-card[hidden] {
  display: none;
}

.case-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ecf2;
}

.case-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.case-card-body p.case-card-cat {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: #ef7300;
  margin-bottom: 8px;
  line-height: 1.4;
}

.case-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
  margin-bottom: 10px;
}

.case-card-body p.case-card-specs {
  flex: none;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.case-card-body p {
  flex: 1;
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 16px;
}

.case-card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #313695;
  text-decoration: none;
  margin-top: auto;
}

.case-card-more:hover {
  color: #ef7300;
}

.case-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.case-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.case-page-btn:hover:not(:disabled) {
  color: #313695;
}

.case-page-btn.is-active {
  color: #ffffff;
  background: #313695;
}

.case-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.case-page-btn--arrow {
  font-size: 18px;
  line-height: 1;
}

.case-main .cta-section {
  margin-top: 72px;
}

@media (max-width: 1100px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .case-hero {
    margin-top: 72px;
    min-height: 440px;
  }

  .case-main {
    padding: 36px 0 56px;
  }

  .case-filter {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 9px 10px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* Case detail page */

.case-article {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eef1f6;
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.06);
  padding: 40px 48px 48px;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #313695;
  margin-bottom: 24px;
}

.case-back:hover {
  color: #ef7300;
}

.case-article-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
  margin-bottom: 16px;
}

.case-article .case-card-cat {
  font-size: 13px;
  font-weight: 600;
  color: #ef7300;
  margin-bottom: 8px;
}

.case-article .case-card-specs {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.case-article-figure {
  margin: 24px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8ecf2;
}

.case-article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.case-article-body {
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
}

.case-article-body p {
  margin-bottom: 18px;
}

.case-article-body h2,
.case-article-body h3,
.case-article-body h4 {
  color: #111111;
  line-height: 1.3;
  margin: 28px 0 12px;
}

.case-article-body h2 { font-size: 22px; }
.case-article-body h3 { font-size: 18px; }
.case-article-body h4 { font-size: 16px; }

.case-article-body ul,
.case-article-body ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

.case-article-body ul { list-style: disc; }
.case-article-body ol { list-style: decimal; }

.case-article-body li {
  margin-bottom: 8px;
}

.case-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.case-article-body a {
  color: #313695;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .case-article {
    padding: 28px 22px 32px;
  }

  .case-article-figure {
    margin: 20px 0 24px;
  }
}

/* Products block on case listing */

.case-products {
  padding: 64px 0 80px;
  background: #ffffff;
}

.case-products-head {
  margin-bottom: 40px;
}

.case-products-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

.cnc-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.cnc-part-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef1f6;
  background-color: #ffffff;
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cnc-part-card:hover {
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.cnc-part-card > a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ecf2;
}

.cnc-part-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cnc-part-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.cnc-part-tag {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ef7300;
  margin-bottom: 6px;
}

.cnc-part-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 14px;
}

.cnc-part-body h3 a {
  color: inherit;
}

.cnc-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  padding: 6px 0;
  border-bottom: 1px dotted #e2e8f0;
}

.cnc-spec-row:last-child {
  border-bottom: none;
}

.cnc-spec-row span:last-child {
  color: #334155;
  font-weight: 500;
  text-align: right;
}

@media (max-width: 768px) {
  .cnc-parts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cnc-parts-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-11-28 移动端复核：案例首屏与筛选触控 */
@media (max-width:768px){
  .case-hero{min-height:340px}
  .case-hero-title{font-size:32px;line-height:1.2}
  .case-filter{min-height:44px;padding:10px 16px;font-size:13px}
  .case-filters{gap:8px}
}
