﻿﻿/* ============================================================
   style-case.css —— 项目案例（cc- 列表 / cd- 详情）
   列表页对应设计稿 3-项目案例，详情页对应 4-项目案例-详情
   共享 style2.css + style-product1.css + style-inner.css
   数值按设计稿 1920 宽实测
   ============================================================ */

/* ---------------- 案例列表 ---------------- */
.cc-page .pc1-hero__bg { background-image: url("../images/cc_hero.jpg"); }
.cc-page .pc1-body { padding-bottom: 88px; }
.cc-page .pc1-title { margin: 45px 0 58px; }

.cc-rows { margin-top: 0; }
.cc-row + .cc-row { margin-top: 96px; }

.cc-row__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 46px;
}

.cc-card { display: block; border-bottom: 2px solid var(--gc-teal); padding-bottom: 20px;}
.cc-card__pic {
  display: block;
  overflow: hidden;
  aspect-ratio: 497 / 334;
}
.cc-card__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.cc-card:hover .cc-card__pic img { transform: scale(1.045); }

.cc-card__title {
  margin: 37px 0 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 40px;
  color: var(--gc-teal);
}
.cc-card:hover .cc-card__title { color: var(--gc-teal-deep); }

.cc-card__desc {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 30px;
  color: #666;
}
.cc-card__more {
  margin-left: 26px;
  font-size: 15px;
  color: var(--gc-teal);
  white-space: nowrap;
}
.cc-card__more:hover { text-decoration: underline; }

/* 整行通栏青色分隔线（设计稿 x 170–1749） */
.cc-row__rule {
  display: block;
  height: 2px;
  margin-top: 23px;
  background: var(--gc-teal);
}

/* 加载更多按钮 */
.cc-more {
  display: flex;
  justify-content: center;
  margin-top: 78px;
}
.cc-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  padding: 0 28px;
  border-radius: 25px;
  background: var(--gc-teal);
  font-size: 18px;
  color: #fff;
  transition: background .3s;
}
.cc-more a:hover { background: var(--gc-teal-deep); }

/* ---------------- 案例详情 ---------------- */
.cd-page .pc1-hero__bg { background-image: url("../images/cd_hero.jpg"); }
.cd-page .pc1-title { margin: 45px 0 59px; }
.cd-page .pc1-body { padding-bottom: 113px; }
.cd-page .ic-art__title { color: #666; }

/* 首段图文块：图 790 + 间距 58 + 文 732 */
.cd-intro {
  display: flex;
  align-items: flex-start;
  gap: 58px;
  margin-top: 46px;
}
.cd-intro__pic {
  flex: 0 0 50%;
  overflow: hidden;
}
.cd-intro__pic img {
  display: block;
  width: 100%;
  aspect-ratio: 790 / 437;
  object-fit: cover;
}
.cd-intro__txt {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 4px;
}
.cd-intro__title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 53px;
  color: #333;
}
.cd-intro__lead {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 35px;
  color: #b3b3b3;
}
.cd-intro__text {
  margin: 36px 0 0;
  font-size: 16px;
  line-height: 32px;
  color: #333;
}

/* 图文块之后的通栏段落 */
.cd-paras { margin-top: 74px; }
.cd-paras p { margin-bottom: 29px; }
.cd-paras p:last-child { margin-bottom: 0; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1500px) {
  .cc-row + .cc-row { margin-top: 72px; }
  .cc-row__grid { column-gap: 36px; }
  .cc-card__title { margin-top: 26px; font-size: 24px; line-height: 34px; }
  .cc-card__desc { font-size: 16px; line-height: 28px; }
  .cc-card__more { font-size: 16px; margin-left: 18px; }
  .cc-row__rule { margin-top: 20px; }
  .cc-more { margin-top: 60px; }

  .cd-intro { gap: 40px; }
  .cd-intro__title { font-size: 36px; line-height: 44px; }
  .cd-intro__lead { font-size: 18px; line-height: 30px; margin-top: 16px; }
  .cd-intro__text { font-size: 17px; line-height: 30px; margin-top: 26px; }
  .cd-paras { margin-top: 56px; }
}

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

@media (max-width: 1024px) {
  .cc-row__grid { column-gap: 28px; }
  .cc-row + .cc-row { margin-top: 54px; }
  .cc-card__title { font-size: 22px; line-height: 32px; }

  .cd-intro {
    flex-direction: column;
    gap: 28px;
    margin-top: 34px;
  }
  .cd-intro__pic { flex: none; width: 100%; }
  .cd-intro__txt { padding-top: 0; }
  .cd-paras { margin-top: 36px; }
}

@media (max-width: 640px) {
  .cc-row__grid { grid-template-columns: 1fr; row-gap: 34px; }
  .cc-row + .cc-row { margin-top: 40px; }
  .cc-card__title { margin-top: 18px; font-size: 20px; line-height: 30px; }
  .cc-card__desc { font-size: 15px; line-height: 26px; }
  .cc-row__rule { margin-top: 16px; }
  .cc-more { margin-top: 40px; }
  .cc-more a { height: 42px; font-size: 16px; padding: 0 22px; }

  .cd-page .pc1-title { margin-bottom: 34px; }
  .cd-intro__title { font-size: 24px; line-height: 32px; }
  .cd-intro__lead { font-size: 16px; line-height: 26px; }
  .cd-intro__text { font-size: 15px; line-height: 26px; }
}
