/* ============================================================
   产品列表页（productlist.html）页面私有样式
   主体结构参考 longshine.com/solution.html：左侧分类 + 右侧卡片网格 + 顶部搜索
   颜色 / 圆角 / 阴影 / 断点全部遵循 DESIGN.md（格云官网设计规范）
   ============================================================ */

.gy-pl {
  padding: 5.75rem 0 6.5rem;
  background: linear-gradient(180deg, #F2FAF5 0%, #FFFFFF 100%);
}

/* 注意：凡是「渐变实底 + 1px 边框」的元素，渐变后面必须跟 background-origin: border-box。
   默认值是 padding-box，渐变图只铺到内边距盒，最右/最下的 1px 边框区会重复渐变起点色
   （品牌蓝 #00439A），贴边出现一条蓝线。 */

/* ---------- 顶部：标题 + 搜索 ---------- */
.gy-pl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 3rem;
}

.gy-pl-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25em;
  color: var(--color-ys);
}

.gy-pl-search {
  display: flex;
  align-items: center;
  width: 21.875%;
  min-width: 17.5rem;
  height: 3.5rem;
  padding-left: 1.5rem;
  background: #fff;
  border: 1px solid rgba(51, 175, 112, .22);
  border-radius: 3.125rem;
  box-shadow: 0 1.25rem 2.75rem rgba(11, 90, 51, .08);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.gy-pl-search:focus-within {
  border-color: var(--color-zt);
  box-shadow: 0 0 0 .1875rem rgba(51, 175, 112, .14);
}

.gy-pl-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--color-ys);
  outline: none;
}

.gy-pl-search input::placeholder {
  color: #8A9091;
}

.gy-pl-search button {
  width: 3.5rem;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-zt);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform .3s ease, color .3s ease;
}

.gy-pl-search button:hover {
  color: #006E29;
  transform: scale(1.08);
}

/* ---------- 主体两栏 ---------- */
.gy-pl-body {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

/* 左侧分类 */
.gy-pl-side {
  width: 16.5%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* 左侧分类：默认白底绿描边、深色字；悬停/选中暗绿填充（2026-11-10 用户要求） */
.gy-pl-cat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3.25rem;
  padding: .75em 1.125em;
  background: #fff;
  border: 1px solid rgba(51, 175, 112, .4);
  border-radius: 1rem;
  font-size: 1.0625rem;
  line-height: 1.5em;
  color: #1C1F1F;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .3s ease, color .3s ease;
}

.gy-pl-cat i {
  flex-shrink: 0;
  font-size: .875rem;
  color: rgba(28, 31, 31, .5);
}

/* 悬停/键盘聚焦/选中：绿色填充 + 白字（2026-11-10 用户要求，
   并压过全站 a:hover 变色规则） */
.gy-pl-side .gy-pl-cat:hover,
.gy-pl-side .gy-pl-cat:focus-visible,
.gy-pl-side .gy-pl-cat.on {
  background: var(--color-zt);
  border-color: var(--color-zt);
  color: #fff;
}

.gy-pl-side .gy-pl-cat:hover i,
.gy-pl-side .gy-pl-cat:focus-visible i,
.gy-pl-side .gy-pl-cat.on i {
  color: rgba(255, 255, 255, .85);
}

/* 展开分组的箭头转为 90°（状态指示，无过渡） */
.gy-pl-group.open .gy-pl-cat i {
  transform: rotate(90deg);
}

.gy-pl-cat:focus-visible,
.gy-pl-sub a:focus-visible {
  outline: 2px solid var(--color-zt);
  outline-offset: 2px;
}

.gy-pl-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* 展开的分组：绿色填充 */
.gy-pl-group.open .gy-pl-cat {
  background: var(--color-zt);
  border-color: var(--color-zt);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 .5rem 1.25rem rgba(11, 90, 51, .16);
}

/* 子菜单：即时显示/隐藏，不做高度动画 */
.gy-pl-sub {
  display: none;
}

.gy-pl-sub-in {
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
}

.gy-pl-group.open .gy-pl-sub {
  display: block;
}

.gy-pl-sub a {
  position: relative;
  padding: .5em 0 .5em 1rem;
  font-size: 1rem;
  line-height: 1.6em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  cursor: pointer;
  background-image: var(--grad-zt);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}

.gy-pl-sub a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: .375rem;
  height: .375rem;
  margin-top: -.1875rem;
  border-radius: 50%;
  background: rgba(51, 175, 112, .35);
}

.gy-pl-sub a:hover {
  font-weight: 600;
}

.gy-pl-sub a:hover::before,
.gy-pl-sub a.on::before {
  background: var(--color-zt);
}

.gy-pl-sub a.on {
  font-weight: 600;
}

/* 右侧卡片网格 */
.gy-pl-main {
  flex: 1;
  min-width: 0;
}

.gy-pl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gy-pl-item {
  display: flex;
  min-width: 0;
}

.gy-pl-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(51, 175, 112, .14);
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.gy-pl-card:hover,
.gy-pl-card:focus-visible {
  transform: translateY(-.375rem);
  border-color: rgba(51, 175, 112, .35);
  box-shadow: 0 1.5rem 2.75rem rgba(11, 90, 51, .12);
}

.gy-pl-card:focus-visible {
  outline: 2px solid var(--color-zt);
  outline-offset: 2px;
}

/* 图片区 */
.gy-pl-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
}

.gy-pl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gy-pl-card:hover .gy-pl-media img {
  transform: scale(1.06);
}

/* 压暗蒙版（DESIGN.md §2.3 案例卡蒙版同款色系） */
.gy-pl-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 28, .5) 0%, rgba(7, 18, 28, .28) 45%, rgba(7, 18, 28, .55) 100%);
}

/* 图上文字 */
.gy-pl-cap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 1rem;
  text-align: center;
}

.gy-pl-cap-tit {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25em;
  color: #fff;
}

.gy-pl-tag {
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 1em;
  border: 1px solid rgba(126, 231, 172, .75);
  border-radius: 3.125rem;
  background: rgba(7, 18, 28, .25);
  font-size: .875rem;
  line-height: 2em;
  color: #CFF5DE;
  transition: color .4s ease, border-color .4s ease;
}

.gy-pl-tag::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--grad-zt);
  background-origin: border-box;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.4, 0, 0, 1);
  pointer-events: none;
}

.gy-pl-card:hover .gy-pl-tag,
.gy-pl-card:focus-visible .gy-pl-tag {
  border-color: transparent;
  color: #fff;
}

.gy-pl-card:hover .gy-pl-tag::before,
.gy-pl-card:focus-visible .gy-pl-tag::before {
  transform: scaleX(1);
}

/* 图下文字区：只有标题，居中 */
.gy-pl-txt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem 1.375rem;
  text-align: center;
}

.gy-pl-tit {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25em;
  color: #232626;
  transition: color .4s ease;
}

/* 字号 / 颜色对齐案例列表标题（.case-content .case-list .tit） */
.gy-pl-tit span {
  display: initial;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.gy-pl-card:hover .gy-pl-tit,
.gy-pl-card:focus-visible .gy-pl-tit {
  color: var(--color-zt);
}

.gy-pl-card:hover .gy-pl-txt{
  border-top: 1px solid #33af70;
}
/* ---------- 空状态 ---------- */
.gy-pl-empty {
  padding: 5rem 0 3rem;
  text-align: center;
  color: #8A9091;
}

.gy-pl-empty[hidden] {
  display: none;
}

.gy-pl-empty-ic svg {
  width: 3.5rem;
  height: 3.5rem;
  color: rgba(51, 175, 112, .45);
}

.gy-pl-empty-tit {
  margin: 1.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ys);
}

.gy-pl-empty-sub {
  margin: .5rem 0 0;
  font-size: 1rem;
  line-height: 1.7em;
}

.gy-pl-empty-sub a {
  color: var(--color-zt);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.gy-pl-empty-sub a:hover {
  color: #006E29;
}

.gy-pl-empty-sub a:focus-visible {
  outline: 2px solid var(--color-zt);
  outline-offset: 2px;
  border-radius: .25rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1366px) {
  .gy-pl-search {
    width: 26%;
    min-width: 15rem;
  }
}

/* 平板：侧栏置顶整行，分类横向滑动 */
@media (max-width: 990px) {
  .gy-pl {
    padding: 2.5rem 0 3.5rem;
  }

  .gy-pl-top {
    margin-bottom: 2rem;
  }

  .gy-pl-title {
    font-size: 1.75rem;
  }

  .gy-pl-search {
    width: 100%;
    min-width: 0;
  }

  .gy-pl-body {
    flex-direction: column;
    gap: 1.75rem;
  }

  .gy-pl-side {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
  }

  .gy-pl-group {
    flex-shrink: 0;
  }

  /* 「全部产品」是 .gy-pl-side 的直接子项，必须禁止收缩：
     它带 overflow: hidden（渐变扫过层需要），在横向 flex 里 min-width 会退化成 0，
     不锁死宽度就会被压成只剩一个字 */
  .gy-pl-side > .gy-pl-cat {
    flex-shrink: 0;
  }

  .gy-pl-cat {
    min-height: 2.875rem;
    white-space: nowrap;
  }

  .gy-pl-sub {
    display: none !important;
  }

  .gy-pl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* 手机 */
@media (max-width: 768px) {
  .gy-pl-grid {
    grid-template-columns: 1fr;
  }

  .gy-pl-cap-tit {
    font-size: 1.25rem;
  }

  .gy-pl-txt {
    padding: 1.125rem 1.25rem 1.25rem;
  }
}

/* ---------- 降级：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .gy-pl .wow {
    visibility: visible !important;
    animation: none !important;
  }

  .gy-pl-search,
  .gy-pl-search button,
  .gy-pl-cat,
  .gy-pl-cat i,
  .gy-pl-cat::before,
  .gy-pl-sub,
  .gy-pl-sub-in,
  .gy-pl-sub a,
  .gy-pl-card,
  .gy-pl-media img,
  .gy-pl-tag,
  .gy-pl-tag::before,
  .gy-pl-tit span {
    transition: none !important;
  }

  .gy-pl-card:hover,
  .gy-pl-card:focus-visible {
    transform: none;
  }

  .gy-pl-card:hover .gy-pl-media img {
    transform: none;
  }
}

/* 侧栏层级缩进（2026-11-20 用户要求）：父级「全部产品」最左，二级分组整体缩进一档，
   三级子项在分组内再进一档（沿用原有 .gy-pl-sub-in 的 1.5rem 内缩，即相对分组卡片左边缘再进 1.5rem）。
   卡片样式/配色/圆角不变；仅在桌面（>990px）生效，990 及以下侧栏是横向滑动条、不做缩进。
   注：本站根字号为 calc(100vw / 120)，1.5rem 在 1440 宽=18px、1920 宽=24px，随版心缩放。 */
@media (min-width: 991px) {
  .gy-pl-side .gy-pl-group {
    margin-left: 1.5rem;
  }
}


