@charset "utf-8";

/* =========================================================
   服务案例列表页
   /skin/kxyqyservice/css/research-service-case.css
   版本：2026-08-07-03
   ========================================================= */

.rs-case-list-page {
  background: #f4f7f9;
}

.rs-case-page {
  --case-blue: #0a417b;
  --case-blue-dark: #062e58;
  --case-blue-mid: #155f91;
  --case-gold: #d2a65a;
  --case-muted: #6c7d8c;
  --case-line: #dbe5ed;
}

.rs-case-page *,
.rs-case-page *::before,
.rs-case-page *::after {
  box-sizing: border-box;
}

/* =========================================================
   顶部通栏
   ========================================================= */

.rs-case-page .rs-case-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 60px;
  background:
    radial-gradient(circle at 82% 34%, rgba(56,142,205,.24), transparent 25%),
    linear-gradient(126deg, #0a447f 0%, #073868 58%, #052b50 100%);
}

.rs-case-page .rs-case-hero::before {
  position: absolute;
  top: -250px;
  right: -120px;
  width: 590px;
  height: 590px;
  content: "";
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(255,255,255,.022),
    0 0 0 145px rgba(255,255,255,.015);
}

.rs-case-page .rs-case-hero .rs-wrap {
  position: relative;
  z-index: 2;
}

.rs-case-page .rs-case-hero .rs-breadcrumb {
  margin-bottom: 42px;
}

.rs-case-hero__layout {
  display: grid;
  grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr);
  gap: 78px;
  align-items: end;
}

.rs-case-hero__title {
  position: relative;
  padding-left: 22px;
}

.rs-case-hero__title::before {
  position: absolute;
  top: 3px;
  bottom: 4px;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(to bottom, var(--case-gold), rgba(210,166,90,.2));
}

.rs-case-page .rs-case-hero .rs-eyebrow {
  color: #e1bd78;
  letter-spacing: .2em;
}

.rs-case-page .rs-case-hero h1 {
  margin: 10px 0 0;
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 43px;
  line-height: 1.28;
  letter-spacing: .04em;
}

.rs-case-hero__desc {
  padding: 4px 0 4px 30px;
  border-left: 1px solid rgba(255,255,255,.18);
}

.rs-case-hero__desc p {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.95;
}

/* =========================================================
   主体
   ========================================================= */

.rs-case-main {
  padding: 52px 0 72px;
  background:
    linear-gradient(to bottom, #f4f7f9 0, #fff 180px);
}

/* =========================================================
   案例网格
   ========================================================= */

.rs-case-page .rs-case-grid--list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

.rs-case-page .rs-case-card--list {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--case-line);
  background: #fff;
  box-shadow: 0 6px 22px rgba(20,55,82,.045);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.rs-case-page .rs-case-card--list::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 4px;
  height: 0;
  content: "";
  background: linear-gradient(to bottom, var(--case-blue), #4c9fc2);
  transition: height .35s ease;
}

.rs-case-page .rs-case-card--list:hover {
  transform: translateY(-4px);
  border-color: #bdd1de;
  box-shadow: 0 15px 38px rgba(20,55,82,.1);
}

.rs-case-page .rs-case-card--list:hover::before {
  height: 100%;
}

/* =========================================================
   案例图片
   关键修复：
   - 不裁切
   - 不放大
   - 不变形
   ========================================================= */

.rs-case-page .rs-case-card__image {
  position: relative;
  display: flex;
  height: 230px;
  flex: 0 0 230px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  background: #f2f5f7;
  border-bottom: 1px solid #e5ebef;
}

.rs-case-page .rs-case-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  transition: none !important;
}

.rs-case-page .rs-case-card--list:hover .rs-case-card__image img {
  transform: none !important;
}

/* 没有标题图 */
.rs-case-page .rs-case-card__image.is-empty {
  background:
    radial-gradient(circle at 80% 25%, rgba(80,161,196,.28), transparent 26%),
    linear-gradient(135deg,#0c4a78,#073252);
}

.rs-case-page .rs-case-card__image.is-empty::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  content: "SERVICE CASE";
  color: rgba(255,255,255,.52);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  transform: translate(-50%,-50%);
  white-space: nowrap;
}

.rs-case-card__type {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
  display: inline-flex;
  min-height: 28px;
  padding: 0 11px;
  align-items: center;
  color: #fff;
  background: rgba(6,55,91,.9);
  border: 1px solid rgba(255,255,255,.23);
  font-size: 12px;
}

/* =========================================================
   卡片正文
   ========================================================= */

.rs-case-page .rs-case-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 23px 24px 22px;
}

.rs-case-page .rs-case-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: #8997a2;
  font-size: 12px;
}

.rs-case-page .rs-case-card__meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-case-page .rs-case-card--list h2 {
  display: -webkit-box;
  min-height: 60px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--case-blue-dark);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rs-case-page .rs-case-card--list h2 a {
  color: inherit;
}

.rs-case-page .rs-case-card--list h2 a:hover {
  color: var(--case-blue-mid);
}

.rs-case-card__summary {
  display: -webkit-box;
  min-height: 76px;
  margin: 0;
  overflow: hidden;
  color: var(--case-muted);
  font-size: 14px;
  line-height: 1.82;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rs-case-card__summary:empty {
  min-height: 0;
}

.rs-case-card__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--case-blue);
  border-top: 1px solid #edf2f5;
  font-size: 13px;
  font-weight: 700;
}

.rs-case-card__more b {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--case-blue);
  border-radius: 50%;
  font-family: Arial,sans-serif;
  font-size: 15px;
  font-weight: 400;
  transition: .2s ease;
}

.rs-case-card__more:hover {
  color: var(--case-blue-dark);
}

.rs-case-card__more:hover b {
  transform: translateX(3px);
  background: var(--case-blue-dark);
}

/* =========================================================
   分页
   ========================================================= */

.rs-case-pagination {
  margin-top: 38px;
  text-align: center;
}

.rs-case-pagination:empty {
  display: none;
}

.rs-case-pagination a,
.rs-case-pagination b {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  margin: 3px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  color: #526978;
  background: #fff;
  border: 1px solid #d6e1e8;
  font-size: 13px;
  font-weight: 500;
}

.rs-case-pagination a:hover,
.rs-case-pagination b {
  color: #fff;
  background: var(--case-blue);
  border-color: var(--case-blue);
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1100px) {
  .rs-case-hero__layout {
    gap: 45px;
  }

  .rs-case-page .rs-case-grid--list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 767px) {
  .rs-case-page .rs-case-hero {
    padding: 24px 0 44px;
  }

  .rs-case-page .rs-case-hero .rs-breadcrumb {
    margin-bottom: 30px;
  }

  .rs-case-hero__layout {
    display: block;
  }

  .rs-case-hero__title {
    padding-left: 17px;
  }

  .rs-case-page .rs-case-hero h1 {
    font-size: 31px;
  }

  .rs-case-hero__desc {
    margin-top: 22px;
    padding: 0;
    border-left: 0;
  }

  .rs-case-hero__desc p {
    font-size: 14px;
    line-height: 1.8;
  }

  .rs-case-main {
    padding: 34px 0 48px;
  }

  .rs-case-page .rs-case-grid--list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rs-case-page .rs-case-card__image {
    height: 220px;
    flex-basis: 220px;
    padding: 8px;
  }

  .rs-case-page .rs-case-card__body {
    padding: 19px 18px 18px;
  }

  .rs-case-page .rs-case-card--list h2 {
    min-height: 0;
    font-size: 18px;
  }

  .rs-case-card__summary {
    min-height: 0;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .rs-case-page .rs-case-card__meta > span {
    display: none;
  }
}