/* 应用案例列表 / 详情 */

.g-cases-page .g-main {
  background-color: #f5f5f5;
}

.g-cases-page .g-cases-hero {
  position: relative;
  aspect-ratio: 1920/388;
  background: #2c3e50;
}
.g-cases-page .g-cases-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.g-cases-page .g-cases-hero__inner {
  position: relative;
  z-index: 1;
  padding: 3.75vw 0 2.5vw;
  color: #fff;
}

.g-cases-page .g-cases-hero__title {
  margin: 0;
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25vw, 3vw, 2.5vw);
  letter-spacing: 0.04em;
}

.g-cases-page .g-cases-hero__search {
  margin-top: 1.67vw;
  max-width: 35vw;
}
.g-case-detail-hr{
 border: 1px solid;
  color: #eee;   /* 这里 color 会影响边框颜色，因为 border 没有指定颜色时会继承 color */
}

.g-cases-page .g-cases-hero__search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.g-cases-page .g-cases-hero__search-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 52.03vw;
  padding: 14px 2.71vw 14px 1.15vw;
  font-size: 1.25vw;
  background: #fff;
  color: #2b2b2b;
  outline: none;
  box-shadow: 0 6px 1.04vw rgba(0, 0, 0, 0.15);
}

.g-cases-page .g-cases-hero__search-input::placeholder {
  color: #888;
}

.g-cases-page .g-cases-hero__search-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.08vw;
  height: 2.08vw;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.g-cases-page .g-cases-hero__search-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

/* 案例详情 Banner：居中标题 + 白底圆角搜索（与参考稿一致） */
.g-case-detail-page .g-case-detail-banner {
  /* height: clamp(380px, 52vw, 556px); */
}

.g-case-detail-page .g-case-detail-banner .g-products-banner__overlay {
  background: rgba(0, 0, 0, 0.2);
}

.g-case-detail-page .g-case-detail-banner__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3.75vw, 14vh, 6.25vw) 1.25vw 2.08vw;
  text-align: center;
  box-sizing: border-box;
}

.g-case-detail-page .g-case-detail-banner__title {
  margin: 0 0 clamp(16.00px, 3vw, 2.5vw);
  max-width: 46.67vw;
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  font-size: clamp(1vw, 3.5vw, 2.08vw);
  line-height: 1.28;
  color: #fff;
  letter-spacing: 0.02em;
}

.g-case-detail-page .g-case-detail-banner__search {
  position: relative;
  width: 100%;
  max-width: 35vw;
  margin: 0;
}

.g-case-detail-page .g-case-detail-banner__search-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 52.03vw;
  padding: 16px 2.92vw 16px 1.25vw;
  font-size: 1.04vw;
  background: #fff;
  color: #2b2b2b;
  outline: none;
  box-shadow: 0 8px 1.46vw rgba(0, 0, 0, 0.14);
}

@media (max-width: 1236px) {
  .g-case-detail-page .g-case-detail-banner__search-input {
    padding: 10px 16px;
  }
}

.g-case-detail-page .g-case-detail-banner__search-input::placeholder {
  color: #888;
}

.g-case-detail-page .g-case-detail-banner__search-submit {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.08vw;
  height: 2.08vw;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.g-case-detail-page .g-case-detail-banner__search-submit:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.g-case-detail-page .g-case-detail-banner__search-submit iconify-icon {
  font-size: 1.67vw;
}

.g-case-detail-page .g-case-detail-main {
  padding: clamp(1.35vw,2vw,2.08vw) 0 clamp(1.35vw,2vw,2.08vw);
  background: #f5f5f7;
}

/* 案例详情主区域：参考 container 1200px 居中 + padding 20px（覆盖 Bootstrap .container 断点宽度） */
.g-case-detail-page .g-case-detail-main > .container.g-case-detail-container {
  
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  
}

@media (min-width: 992px) {
  .g-case-detail-page .g-case-detail-main {

  }
}

@media (max-width: 991px) {
  .g-case-detail-page .g-case-detail-main {
    padding-bottom: calc(5vw + env(safe-area-inset-bottom, 0px));
  }
}

/* 主文卡片（移动端全宽居中；lg+ 与侧栏同排 max 600px） */
.g-case-detail-article {
  
  max-width: min(62.5vw, 100%);
  margin-left: auto;
  margin-right: auto;

  border-radius: 12px;
  
}
.article-c{
  border-radius: 12px;
  background: #fff;
  padding: clamp(1.04vw, 3vw, 4.17vw);
}
.g-case-detail-h1 {
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  font-size: clamp(1.13vw, 3vw, 2.08vw);
  color: #333;
  margin: 0 0 1.61vw;
  line-height: 1.3;
  text-align: left;
}

.g-case-detail-spec {
  margin: 12.00px 0 0;
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  color: #f5a200;
}

/* 发布时间 + 标签（设计稿：左侧时间，右侧标签胶囊） */
.g-case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 1.25vw;

}

.g-case-detail-related-container{
  padding: 0 clamp(1.04vw, 3vw, 4.17vw) 1.04vw;
  background: #fff;
  border-radius: 12px;
}
.g-case-detail-meta__date {
  flex: 0 0 auto;
  font-size: 0.94vw;
  line-height: 1.4;
  color: #888;
}

.g-case-detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;

 
  min-width: 0;
}

@media (max-width: 575px) {
  .g-case-detail-tags {
    justify-content: flex-start;
  }
  .g-case-detail-meta {
    margin-top: 0;
  }
}

.g-case-detail-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #2b2b2b;
  font-size: 13.00px;
  line-height: 1.35;
  font-weight: 500;
}

.g-case-detail-thumb {
  margin: 1.67vw 0 0;
  padding: 0;
}

.g-case-detail-thumb__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.g-case-detail-page .g-case-detail-content {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  max-width: 100%;
  margin: 1.09vw 0 0;
}

/* 桌面：正文居中 + 右侧侧栏（与正文间距 25px），高度随正文撑开 */
@media (min-width: 992px) {
  .g-case-detail-layout .g-case-detail-article {
    max-width: 85vw;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.g-case-detail-page .g-case-detail-content img {
  max-width: 100%;
  height: auto;
}

.g-cases-list-grid {
  display: flex;
  flex-wrap: wrap;
  
  padding: 1.67vw 0 3.33vw;
  justify-content: flex-start;
}

.g-cases-list-card {
  flex: 0 0 calc(15.1vw - 1.04vw);
  min-width: 15.1vw;
  max-width: calc(15.1vw - 1.04vw);
}

@media (max-width: 1236px) {
  .g-cases-list-grid {
   
  }

  .g-cases-list-card {
    flex: 0 0 calc((100% - 2.5% * 2 - 16px * 2) / 3);
    min-width: 15.1vw;
    max-width: calc((100% - 2.5% * 2 - 16px * 2) / 3);
  }
}

@media (max-width: 991px) {
  .g-cases-list-card {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: 15.1vw;
    max-width: calc((100% - 16px) / 2);
  }
  .g-case-detail-page .g-case-detail-content{
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .g-cases-list-grid {
    width: 100%;
    padding-inline: 0;
    justify-content: center;
  }
.g-case-detail-h1{
    margin-bottom: 16px;
  }
  .g-cases-list-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

.g-cases-list-card:hover {
  box-shadow: 0 8px 1.46vw rgba(0, 0, 0, 0.08);
}

.g-cases-list-card__media {
  display: block;
  position: relative;
  padding-top: 56%;
  background: #f5f5f5;
  overflow: auto;
  border-radius: 8px;
}

.g-cases-list-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-cases-list-card__body {
  padding: 16px;
}

.g-cases-list-card__title {
  margin: 0;
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  font-size: 0.94vw;
}

.g-cases-list-card__title a {
  color: #2b2b2b;
  text-decoration: none;
}

.g-cases-list-card__title a:hover {
  color: #f5a200;
}

.g-cases-list-card__spec {
  margin-top: 8px;
  font-size: 0.89vw;
  color: #f5a200;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g-cases-list-card__spec-icon img{
  width: 1.35vw;
  height: 1.35vw;
  object-fit: cover;
}
/* 地图样式见 common-global.css（.g-global-map） */

/* 应用案例列表 — 案例分类侧栏 */

.g-cases-page .g-cases-sidebar .g-products-sidebar__inner {
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  
}

.g-cases-page .g-cases-sidebar .g-products-sidebar__header {
  background: #4b4d5e;
  border-radius: 10px 10px 0 0;
}

.g-cases-page .g-cases-sidebar .g-products-sidebar__toggle {
  padding: 0.94vw 1.25vw;
  font-size: 1.04vw;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.g-cases-page .g-cases-sidebar .g-products-sidebar__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.g-cases-page .g-cases-sidebar .g-products-sidebar__arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.g-cases-page .g-cases-sidebar .g-products-sidebar__toggle[aria-expanded="true"] .g-products-sidebar__arrow {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .g-cases-page .g-cases-sidebar .g-products-sidebar__icon {
    display: none;
  }
  
}

.g-cases-page .g-cases-sidebar .g-products-sidebar__content {
  padding: 0;
}

.g-cases-page .g-cases-sidebar__row {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e5e5e5;
  background-color: #fff;
}

.g-cases-page .g-cases-sidebar__row:last-child {
  border-bottom: none;
}

.g-cases-page .g-cases-sidebar__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 16px 1.25vw;
  font-family: 'Exo', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.15s ease;
}

.g-cases-page .g-cases-sidebar__link:hover {
  background: #f7f7f8;
  color: #1a1a1a;
}

.g-cases-page .g-cases-sidebar__link.is-active {
  font-weight: 600;
  color: #f5a200;
}

.g-cases-page .g-cases-sidebar__row.is-active {
  background: #fff;
}

/* 分类数量样式 */
.g-cases-page .g-cases-sidebar__count {
  display: inline-block;
  margin-left: 8px;
  font-weight: 400;
  font-size: 14px;
  color: #999999;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .g-products-breadcrumb {
    display: none;
  }
}

/* 案例页 ≤992：侧栏与列表上下排布，主区接近全宽 */
@media (max-width: 991.98px) {
  .g-cases-page .g-products-layout__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
  }

  .g-cases-page .g-products-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .g-products-sidebar__arrow {
    display: block;
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .g-products-sidebar__arrow svg {
    display: block;
  }

  .g-products-sidebar__toggle[aria-expanded="true"] .g-products-sidebar__arrow {
    transform: rotate(180deg);
  }
}

/* 案例列表布局 */
.g-cases-layout .g-products-layout__content {
  flex: 1 1 0;
  min-width: 0;
}

.g-cases-layout .g-cases-list-grid {
  padding: 0;
}

/* 案例列表与分页间距 */
.g-cases-layout .g-cases-list-grid {
  margin: 0 auto;
  margin-bottom: 1.67vw;
}
.g-case-fenge{
  margin-top: 3.13vw;
}

@media (max-width: 767px) {
  .g-case-fenge{
    margin-top: 1.67vw;
  
  }
  .g-products-layout{
    display: flex;
    justify-content: center;
  }
}
