/* =====================================================
   千木云集 - 案例效果页样式
   ===================================================== */

/* ---------- Hero ---------- */
.cs-hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  background: linear-gradient(rgba(15,8,4,.35), rgba(15,8,4,.45)),
    url('') center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.cs-hero-top { padding-top: 17vh; }
.cs-hero-top h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 10px;
  text-shadow: 0 3px 16px rgba(0,0,0,.5);
}
.cs-hero-top p {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 4px;
  line-height: 1.9;
  color: rgba(255,255,255,.92);
}
.cs-brand { position: absolute; bottom: 9%; left: 0; right: 0; }
.cs-brand b {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.cs-brand b svg { width: 26px; height: 26px; fill: var(--green-light); }
.cs-brand p { margin-top: 12px; font-size: 13px; letter-spacing: 4px; color: rgba(255,255,255,.85); }

/* ---------- 案例摘要卡 ---------- */
.summary-sec { background: var(--bg-gray); padding: 64px 0 70px; }
.summary-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  display: flex;
  gap: 34px;
  padding: 26px;
  position: relative;
}
.summary-card > img {
  width: 320px; height: 212px;
  object-fit: cover;
  flex-shrink: 0;
}
.sum-body { flex: 1; text-align: center; padding: 8px 30px; position: relative; }
.sum-body h3 { font-size: 22px; letter-spacing: 4px; font-weight: 700; }
.sum-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 22px 0 16px;
  font-size: 13px;
  color: #777;
}
.sum-meta b { color: var(--green); font-weight: 700; }
.sum-idea {
  font-size: 14px;
  color: #1c1c1c;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 10px 0 12px;
  padding: 8px 16px;
  background: #f4faf6;
  border-left: 3px solid var(--green);
  display: inline-block;
}
.sum-desc { font-size: 13px; color: #999; line-height: 2; }
.sum-icon {
  position: absolute;
  top: 0; right: 0;
  color: var(--green);
}
.sum-icon svg { width: 26px; height: 26px; fill: var(--green); }

/* ---------- 案例效果（筛选 + 卡片网格） ---------- */
.gallery-sec { padding: 84px 0 100px; }

/* 标题 */
.gs-head { text-align: center; margin-bottom: 36px; }
.gs-en {
  font-size: 14px;
  color: #b0b0b0;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.gs-cn {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  letter-spacing: 6px;
  margin: 0;
  position: relative;
  display: inline-block;
}
.gs-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--green);
  margin: 8px auto 0;
}

/* 筛选区 */
.gs-filters { margin-bottom: 24px; border-top: 0px solid #eee; border-bottom: 1px solid #eee; }
.gs-filter-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.gs-filter-row:last-child { border-bottom: none; }
.gs-label {
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  letter-spacing: 1px;
  width: 42px;
}
.gs-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  transition: max-height .3s ease;
  position: relative;
}
/* 默认 collapsed：只显示一行 */
.gs-options.collapsed {
  max-height: 32px;
  overflow: hidden;
}
/* 展开状态：自适应高度 */
.gs-options.expanded {
  max-height: none;
  overflow: visible;
}

.gs-chip {
  border: none;
  background: transparent;
  font-size: 13px;
  color: #666;
  padding: 4px 14px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
  transition: all .2s;
  font-family: inherit;
}
.gs-chip:hover { color: var(--green); }
.gs-chip.active {
  background: var(--green);
  color: #fff;
}
.gs-chip-more {
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--green);
  padding: 4px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: inherit;
  letter-spacing: 1px;
}
.gs-more-wrap{ width: 60px;}
.gs-chip-more svg { width: 8px; height: 8px; transition: transform .25s; }
.gs-options.expanded + .gs-more-wrap .gs-chip-more svg,
.gs-chip-more.expanded svg { transform: rotate(180deg); }

/* 颜色色块（内嵌 img，来自 productList.Imgurls[0].Imgurl） */
.gs-color-options { gap: 10px; }
.gs-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: all .2s;
  flex-shrink: 0;
  background: #eee;
}
.gs-color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gs-color-swatch:hover { transform: scale(1.08); border-color: var(--green); }
.gs-color-swatch.active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(63,174,95,.18);
}

/* 排序/搜索 */
.gs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 16px;
}
.gs-sort { display: flex; gap: 6px; }
.gs-sort-btn {
  border: 1px solid var(--green);
  background: #fff;
  color: var(--green);
  padding: 5px 18px;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.gs-sort-btn:hover { background: #f0f8f3; }
.gs-sort-btn.active {
  background: var(--green);
  color: #fff;
}
.gs-search {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--green);
  overflow: hidden;
}
.gs-search input {
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  color: #333;
  width: 240px;
  outline: none;
  background: #fff;
  font-family: inherit;
}
.gs-search button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.gs-search button:hover { background: var(--green-dark, #1f7a3e); }

/* 卡片网格 */
.gs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gs-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .3s, transform .3s;
}
.gs-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.gs-card-img {
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
}
.gs-card-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.gs-card:hover .gs-card-img img { transform: scale(1.03); }

.gs-card-body { text-align: center; padding: 20px 16px 24px; }
.gs-card-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  letter-spacing: 3px;
  margin: 0 0 14px;
  position: relative;
}
/* h4 下方短横线 */
.gs-card-body h4::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: #aaa;
  margin: 10px auto 0;
}
.gs-card-meta {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  margin: 0 0 16px;
}
.gs-card-btn {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 12px;
  letter-spacing: 3px;
  padding: 4px 18px;
  transition: all .2s;
}
.gs-card:hover .gs-card-btn {
  background: var(--green);
  color: #fff;
}

@media (max-width: 1200px) {
  .summary-card > img { width: 280px; height: 180px; }
  .sum-body { padding: 6px 18px; }
  .gs-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .gs-card-img img { height: 220px; }
  .gs-search input { width: 180px; }
}
@media (max-width: 992px) {
  .cs-hero { height: auto; min-height: 480px; padding: 100px 0 80px; }
  .cs-hero-top { padding-top: 8vh; }
  .cs-hero-top h1 { font-size: 26px; letter-spacing: 6px; }
  .cs-hero-top p { font-size: 13px; letter-spacing: 3px; }
  .cs-brand b { font-size: 22px; letter-spacing: 4px; }
  .cs-brand p { font-size: 12px; letter-spacing: 3px; }
  .summary-card { flex-direction: column; padding: 20px; }
  .summary-card > img { width: 100%; height: 220px; }
  .sum-body { padding: 16px 6px 8px; }
  .sum-meta { gap: 8px 18px; font-size: 12px; }
  .sum-idea { font-size: 12px; padding: 6px 12px; }
  .sum-desc { font-size: 12px; line-height: 1.9; }

  .gallery-sec { padding: 64px 0 70px; }
  .gs-cn { font-size: 26px; letter-spacing: 4px; }
  .gs-filter-row { gap: 12px; padding: 12px 0; }
  .gs-label { width: 36px; font-size: 13px; }
  .gs-chip { font-size: 12px; padding: 3px 10px; }
  .gs-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gs-search input { width: 200px; }
}
@media (max-width: 576px) {
  .cs-hero { min-height: 380px; padding: 80px 0 60px; }
  .cs-hero-top h1 { font-size: 19px; letter-spacing: 4px; }
  .cs-hero-top p { font-size: 11px; letter-spacing: 2px; line-height: 1.7; }
  .cs-brand b { font-size: 17px; letter-spacing: 3px; }
  .cs-brand b svg { width: 18px; height: 18px; }
  .cs-brand p { font-size: 10px; letter-spacing: 2px; }
  .summary-card { padding: 14px; gap: 16px; }
  .summary-card > img { height: 180px; }
  .sum-body { padding: 8px 4px 4px; }
  .sum-body h3 { font-size: 17px; letter-spacing: 2px; }
  .sum-meta { gap: 6px 12px; margin: 12px 0 10px; font-size: 11px; }
  .sum-idea { font-size: 11px; padding: 5px 10px; }
  .sum-desc { font-size: 11px; line-height: 1.8; }
  .sum-icon svg { width: 20px; height: 20px; }

  .gallery-sec { padding: 50px 0 60px; }
  .gs-en { font-size: 12px; letter-spacing: 2px; }
  .gs-cn { font-size: 22px; letter-spacing: 3px; }
  .gs-head { margin-bottom: 24px; }
  .gs-filter-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }
  .gs-label {
    width: 100%;
    margin-bottom: 2px;
    font-size: 12px;
    color: #888;
  }
  .gs-options { gap: 6px; }
  .gs-chip { font-size: 11px; padding: 3px 8px; letter-spacing: 0; }
  .gs-color-swatch { width: 18px; height: 18px; }
  .gs-toolbar { flex-direction: column; align-items: stretch; }
  .gs-sort { justify-content: center; }
  .gs-search { width: 100%; }
  .gs-search input { flex: 1; width: auto; font-size: 12px; }

  .gs-grid { grid-template-columns: repeat(1, 1fr); gap: 18px; }
  .gs-card-img img { height: 220px; }
  .gs-card-body h4 { font-size: 15px; letter-spacing: 2px; }
  .gs-card-meta { font-size: 11px; }
  .gs-card-btn { font-size: 11px; padding: 3px 14px; }
}
