@import url("detail-mobile-v1.css?v=20260831-10");

/* 案例详情页底部咨询入口。 */
body[data-page="cases"] .page-cta {
  margin-top: 25px;
  padding: 0 0 30px;
  background: #fbf8f4;
}

body[data-page="cases"] .page-cta .container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 152px;
  padding: 28px 44px 28px 140px;
  border-radius: 12px;
  background: #0b345e;
}

body[data-page="cases"] .page-cta .container::before {
  position: absolute;
  left: 44px;
  width: 70px;
  height: 70px;
  content: "";
  background: #f0bd5a;
  -webkit-mask: url("../images/icons/lucide/folder-open.svg") center / contain no-repeat;
  mask: url("../images/icons/lucide/folder-open.svg") center / contain no-repeat;
}

body[data-page="cases"] .page-cta h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.35;
}

body[data-page="cases"] .page-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  line-height: 1.7;
}

body[data-page="cases"] .page-cta .button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 56px;
  margin-left: auto;
  padding: 0 26px;
  border-radius: 8px;
  background: #e42020;
  color: #ffffff;
  white-space: nowrap;
}

body[data-page="cases"] .page-cta .button::after {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  content: "\2192";
  transition: transform .2s ease;
}

body[data-page="cases"] .page-cta .button:hover::after {
  transform: translateX(5px);
}

/* 案例详情首屏与网站的居中栏目标题保持同一视觉语言。 */
body[data-page="cases"] .case-detail-hero {
  position: relative;
  padding: 20px 0 0;
  text-align: center;
  background: #fbf8f4;
}

body[data-page="cases"] .case-detail-hero .container {
  max-width: 1060px;
}

body[data-page="cases"] .case-detail-hero .breadcrumb {
  display: none;
}

body[data-page="cases"] .case-detail-hero .card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 14px;
  color: #b6752d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

body[data-page="cases"] .case-detail-hero .card-label::before,
body[data-page="cases"] .case-detail-hero .card-label::after {
  width: 64px;
  height: 1px;
  content: "";
  background: #d5a14a;
}

body[data-page="cases"] .case-detail-hero h1 {
  max-width: none;
  margin: 0 0 14px;
  color: #102947;
  font-size: 42px;
  line-height: 1.3;
}

body[data-page="cases"] .case-detail-hero > .container > p:not(.card-label) {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: #667b91;
  font-size: 17px;
  line-height: 1.8;
}

body[data-page="cases"] .case-detail-hero .inner-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(calc(100vw - 80px), var(--container));
  margin-right: 0;
  margin-left: 50%;
  margin-top: 26px;
  transform: translateX(-50%);
}

/* 首屏操作保留原有视觉，只调整为跟随内容区，不能在超宽视口漂移。 */
body[data-page="cases"] .case-detail-hero .inner-hero-actions .button:first-child {
  position: static;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #b6752d;
  background: transparent;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

body[data-page="cases"] .case-detail-hero .inner-hero-actions .button:first-child::after {
  display: inline-block;
  margin-left: 18px;
  content: "\2192";
  font-size: 30px;
  font-weight: 400;
  line-height: .7;
  transition: transform .2s ease;
}

body[data-page="cases"] .case-detail-hero .inner-hero-actions .button:first-child:hover::after {
  transform: translateX(5px);
}

/* 所有案例详情的返回入口统一为首屏左上角的描边按钮。 */
body[data-page="cases"] .case-detail-hero .page-return-button {
  position: absolute;
  top: 20px;
  left: max(40px, calc((100vw - var(--container)) / 2));
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid #1673be;
  border-radius: 8px;
  color: #1673be;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
}

body[data-page="cases"] .case-detail-hero .page-return-button:hover {
  color: #ffffff;
  border-color: #1673be;
  background: #1673be;
}

body[data-page="cases"] .case-detail-hero .page-return-button::before {
  margin-right: 8px;
  content: "\2190";
}

/* 案例详情由首屏、概况、实景、咨询四部分组成，模块间固定保留 30px。 */
body[data-page="cases"] main > .case-detail-hero + .section,
body[data-page="cases"] main > .case-detail-hero + .section + .section {
  padding: 25px 0 0;
}


/* 项目概况与配置卡：统一圆角，并以圆环图标提高字段扫描效率。 */
body[data-page="cases"] .case-detail-summary .case-detail-panel {
  border-color: rgba(213, 161, 74, .72);
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(110, 75, 27, .05);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

body[data-page="cases"] .case-detail-summary .case-detail-panel:hover {
  border-color: #c78a35;
  box-shadow: 0 16px 30px rgba(110, 75, 27, .14);
  transform: translateY(-5px);
}

/* 第二模块：两列项目标题移至卡片上方，避免与卡片内容标题重复。 */
body[data-page="cases"] .case-summary-headings {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

body[data-page="cases"] .case-detail-summary .case-detail-panel-accent {
  background: #ffffff;
}

body[data-page="cases"] .case-summary-headings span,
body[data-page="cases"] .case-gallery-heading > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #b6752d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

body[data-page="cases"] .case-summary-headings span::before,
body[data-page="cases"] .case-summary-headings span::after,
body[data-page="cases"] .case-gallery-heading > span::before,
body[data-page="cases"] .case-gallery-heading > span::after {
  width: 64px;
  height: 1px;
  content: "";
  background: #d5a14a;
}

body[data-page="cases"] .case-detail-summary .case-detail-panel h2 {
  margin: 10px 0 22px;
  font-size: 24px;
  line-height: 1.4;
}

body[data-page="cases"] .case-detail-summary .case-detail-facts div {
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: center;
  margin-top: 8px;
  padding: 14px 12px;
  border-top-color: rgba(213, 161, 74, .68);
  border-radius: 8px;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

body[data-page="cases"] .case-detail-summary .case-detail-facts div:hover {
  background: #fffdf9;
  box-shadow: 0 8px 18px rgba(110, 75, 27, .1);
  transform: translateY(-2px);
}

body[data-page="cases"] .case-detail-summary .case-detail-facts dt,
body[data-page="cases"] .case-detail-summary .case-detail-panel-accent > h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5d6d7f;
  font-size: 17px;
  line-height: 1.55;
}

body[data-page="cases"] .case-detail-summary .case-detail-facts dd,
body[data-page="cases"] .case-detail-summary .case-equipment-list li,
body[data-page="cases"] .case-detail-summary .case-detail-panel small {
  font-size: 17px;
  line-height: 1.65;
}

body[data-page="cases"] .case-detail-summary .case-equipment-list {
  gap: 12px;
}

body[data-page="cases"] .case-detail-summary .case-equipment-list li {
  border-color: rgba(213, 161, 74, .72);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(110, 75, 27, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body[data-page="cases"] .case-detail-summary .case-equipment-list li:hover {
  border-color: #c78a35;
  box-shadow: 0 10px 20px rgba(110, 75, 27, .13);
  transform: translateY(-3px);
}

body[data-page="cases"] .case-detail-summary .case-detail-facts dd {
  color: #26384b;
  font-weight: 600;
}

body[data-page="cases"] .case-detail-summary .case-detail-facts dt::before,
body[data-page="cases"] .case-detail-summary .case-detail-panel-accent > h2::before {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  box-sizing: content-box;
  padding: 8px;
  border: 1.5px solid #d5a14a;
  border-radius: 50%;
  content: "";
}

body[data-page="cases"] .case-detail-summary .case-detail-facts dt::after,
body[data-page="cases"] .case-detail-summary .case-detail-panel-accent > h2::after {
  position: absolute;
  top: 50%;
  left: 9px;
  display: block;
  width: 42px;
  height: 42px;
  content: "";
  background-color: #b6752d;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 42px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 42px;
  transform: translateY(-50%);
}

body[data-page="cases"] .case-detail-summary .case-detail-facts div:nth-child(1) dt::after {
  -webkit-mask-image: url("../images/icons/lucide/badge-info.svg");
  mask-image: url("../images/icons/lucide/badge-info.svg");
}

body[data-page="cases"] .case-detail-summary .case-detail-facts div:nth-child(2) dt::after {
  -webkit-mask-image: url("../images/icons/lucide/users.svg");
  mask-image: url("../images/icons/lucide/users.svg");
}

body[data-page="cases"] .case-detail-summary .case-detail-facts div:nth-child(3) dt::after {
  -webkit-mask-image: url("../images/icons/lucide/map-pin.svg");
  mask-image: url("../images/icons/lucide/map-pin.svg");
}

body[data-page="cases"] .case-detail-summary .case-detail-facts div:nth-child(4) dt::after {
  -webkit-mask-image: url("../images/icons/lucide/compass.svg");
  mask-image: url("../images/icons/lucide/compass.svg");
}

body[data-page="cases"] .case-detail-summary .case-detail-panel-accent > h2::after {
  -webkit-mask-image: url("../images/icons/lucide/package.svg");
  mask-image: url("../images/icons/lucide/package.svg");
}

/* 项目基本信息与主要设备：单张横向信息卡，前两列各两项，配置占用第三列。 */
body[data-page="cases"] .case-project-info-card {
  display: grid;
  grid-template-areas: "name customer equipment" "region direction equipment";
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 185px;
  overflow: hidden;
  border: 1px solid rgba(213, 161, 74, .72);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 5px 14px rgba(110, 75, 27, .05);
}

body[data-page="cases"] .case-project-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 13px 22px;
  background: #fffdf9;
}

body[data-page="cases"] .case-project-info-item--name { grid-area: name; border-right: 1px solid rgba(213, 161, 74, .46); border-bottom: 1px solid rgba(213, 161, 74, .46); }
body[data-page="cases"] .case-project-info-item--customer { grid-area: customer; border-right: 1px solid rgba(213, 161, 74, .46); border-bottom: 1px solid rgba(213, 161, 74, .46); }
body[data-page="cases"] .case-project-info-item--region { grid-area: region; border-right: 1px solid rgba(213, 161, 74, .46); }
body[data-page="cases"] .case-project-info-item--direction { grid-area: direction; border-right: 1px solid rgba(213, 161, 74, .46); }
body[data-page="cases"] .case-project-info-item--equipment { grid-area: equipment; align-items: flex-start; justify-content: center; flex-direction: column; }

body[data-page="cases"] .case-project-info-label {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: #5d6d7f;
  font-size: 17px;
  line-height: 1.55;
}

body[data-page="cases"] .case-project-info-label::before {
  display: block;
  width: 42px;
  height: 42px;
  border: 1.5px solid #d5a14a;
  border-radius: 50%;
  content: "";
}

body[data-page="cases"] .case-project-info-label::after { position: absolute; top: 7px; left: 7px; width: 30px; height: 30px; background-color: #b6752d; content: ""; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; -webkit-mask-size: contain; mask-position: center; mask-repeat: no-repeat; mask-size: contain; }
body[data-page="cases"] .case-project-info-item--name .case-project-info-label::after { -webkit-mask-image: url("../images/icons/lucide/badge-info.svg"); mask-image: url("../images/icons/lucide/badge-info.svg"); }
body[data-page="cases"] .case-project-info-item--customer .case-project-info-label::after { -webkit-mask-image: url("../images/icons/lucide/users.svg"); mask-image: url("../images/icons/lucide/users.svg"); }
body[data-page="cases"] .case-project-info-item--region .case-project-info-label::after { -webkit-mask-image: url("../images/icons/lucide/map-pin.svg"); mask-image: url("../images/icons/lucide/map-pin.svg"); }
body[data-page="cases"] .case-project-info-item--direction .case-project-info-label::after { -webkit-mask-image: url("../images/icons/lucide/compass.svg"); mask-image: url("../images/icons/lucide/compass.svg"); }
body[data-page="cases"] .case-project-info-item--equipment .case-project-info-label::after { -webkit-mask-image: url("../images/icons/lucide/package.svg"); mask-image: url("../images/icons/lucide/package.svg"); }

body[data-page="cases"] .case-project-info-item strong {
  min-width: 0;
  margin: 0;
  color: #26384b;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  white-space: pre-line;
}

body[data-page="cases"] .case-project-info-item--equipment strong { align-self: stretch; margin-top: 8px; padding: 8px 12px; border: 1px solid rgba(213, 161, 74, .72); border-radius: 8px; background: #ffffff; box-shadow: 0 4px 12px rgba(110, 75, 27, .06); }
body[data-page="cases"] .case-product-link { color: #8c4b0b; text-decoration: underline; text-decoration-color: rgba(182, 117, 45, .5); text-underline-offset: 3px; }
body[data-page="cases"] .case-product-link:hover { color: #b6752d; text-decoration-color: currentColor; }
body[data-page="cases"] .case-project-info-item--equipment small { display: none; }

/* 第三模块：保持案例标题视觉语言，实景卡片使用产品页同规格正文。 */
body[data-page="cases"] .case-gallery-heading {
  margin-bottom: 30px;
}

body[data-page="cases"] .case-gallery-heading > span {
  margin-bottom: 12px;
}

body[data-page="cases"] .case-detail-gallery figure {
  border-color: rgba(213, 161, 74, .72);
  border-radius: 12px;
}

body[data-page="cases"] .case-detail-gallery .image-placeholder {
  border-bottom: 1px solid #d5a14a !important;
  background-position: center;
  background-size: cover !important;
}

body[data-page="cases"] .case-detail-gallery figcaption {
  padding: 18px 20px;
  font-size: 17px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  body[data-page="cases"] .page-cta .container {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 0;
    padding: 28px 24px 28px 92px;
  }

  body[data-page="cases"] .page-cta .container::before {
    top: 28px;
    left: 24px;
    width: 48px;
    height: 48px;
  }

  body[data-page="cases"] .page-cta h2 { font-size: 23px; }
  body[data-page="cases"] .page-cta p { font-size: 15px; }
  body[data-page="cases"] .page-cta .button { margin-left: 0; }
  body[data-page="cases"] .case-detail-hero { padding: 20px 0 0; }
  body[data-page="cases"] .case-detail-hero h1 { font-size: 30px; }
  body[data-page="cases"] .case-detail-hero .card-label { gap: 12px; font-size: 17px; }
  body[data-page="cases"] .case-detail-hero .card-label::before,
  body[data-page="cases"] .case-detail-hero .card-label::after { width: 42px; }
  body[data-page="cases"] .case-detail-hero .inner-hero-actions { justify-content: center; width: 100%; gap: 10px; margin-left: 0; margin-top: 20px; transform: none; }
  body[data-page="cases"] .case-detail-hero .inner-hero-actions .button:first-child { min-height: auto; padding: 0; font-size: 17px; }
  body[data-page="cases"] .case-detail-hero .page-return-button { top: 14px; left: 16px; min-height: 42px; padding: 0 12px; font-size: 14px; }
  body[data-page="cases"] .case-summary-headings { display: flex; }
  body[data-page="cases"] .case-summary-headings span,
  body[data-page="cases"] .case-gallery-heading > span { gap: 12px; font-size: 17px; }
  body[data-page="cases"] .case-summary-headings span::before,
  body[data-page="cases"] .case-summary-headings span::after,
  body[data-page="cases"] .case-gallery-heading > span::before,
  body[data-page="cases"] .case-gallery-heading > span::after { width: 42px; }
  body[data-page="cases"] main > .case-detail-hero + .section { padding: 25px 0 0; }
  body[data-page="cases"] main > .case-detail-hero + .section + .section { padding: 25px 0 0; }
  body[data-page="cases"] .case-detail-summary .case-detail-panel h2 { font-size: 22px; }
  body[data-page="cases"] .case-detail-summary .case-detail-facts div { grid-template-columns: 1fr; gap: 7px; }
  body[data-page="cases"] .case-detail-summary .case-detail-facts dt,
  body[data-page="cases"] .case-detail-summary .case-detail-facts dd,
  body[data-page="cases"] .case-detail-summary .case-equipment-list li,
  body[data-page="cases"] .case-detail-summary .case-detail-panel small { font-size: 16px; }
  body[data-page="cases"] .case-project-info-card { grid-template-areas: "name" "customer" "region" "direction" "equipment"; grid-template-columns: 1fr; min-height: 0; }
  body[data-page="cases"] .case-project-info-item { padding: 18px 20px; border-right: 0; border-bottom: 1px solid rgba(213, 161, 74, .46); }
  body[data-page="cases"] .case-project-info-item--equipment { border-bottom: 0; }
  body[data-page="cases"] .case-project-info-label,
  body[data-page="cases"] .case-project-info-item strong { font-size: 16px; }
}
