/* 客户案例 page-cases.css */

.filter-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.filter-nav a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.2rem; color: var(--ink-soft); font-size: .9rem; }
.filter-nav a:hover, .filter-nav a.active { border-color: var(--brass); color: var(--brass-deep); background: rgba(165,132,76,.08); }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.case-note { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1.4rem 1.6rem; color: var(--muted); font-size: .9rem; margin-top: 2rem; }
.case-note strong { color: var(--ink); }
.case-note a { color: var(--brass-deep); }
.case-note a:hover { text-decoration: underline; }

/* ---------- 案例详情页：版心 ---------- */
.case-detail { max-width: 980px; margin: 0 auto; }

/* ---------- 案例详情页：图下文字介绍 ---------- */
.case-intro { margin-top: 2.6rem; }
.case-intro .section-title { margin-bottom: 1.1rem; }
.case-intro p { color: var(--ink-soft); font-size: 1rem; }
.case-intro .case-lead { color: var(--ink); }
.case-intro a:not(.btn) { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; }
.case-intro a:not(.btn):hover { color: var(--brass); }
.case-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* ---------- 案例详情页：项目信息 ---------- */
.case-facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.5rem; margin-top: 1.8rem; }
.case-facts .info-row .k { width: 88px; }

/* ---------- 案例图片展示：大图 + 缩略图行（自动轮播、悬停暂停） ---------- */
.zone-list { display: grid; gap: 3.2rem; margin-top: 2.6rem; }
.zone-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; text-align: left;
  gap: .5rem 1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem;
}
.zone-title { font-size: 1.12rem; letter-spacing: .02em; }
.zone-desc { color: var(--ink-soft); font-size: .92rem; }

.zone-gallery { position: relative; }
.zone-stage {
  position: relative; aspect-ratio: 16 / 9; max-height: 54vh; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.zone-stage-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .38s ease, transform .38s ease;
}
.zone-stage-img.is-switching { opacity: 0; transform: scale(.985); }
.zone-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.88);
  color: var(--ink); cursor: pointer; padding: 0;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.zone-nav:hover { background: #fff; border-color: var(--brass); color: var(--brass-deep); }
.zone-nav svg { width: 19px; height: 19px; }
.zone-prev { left: .8rem; }
.zone-next { right: .8rem; }

/* 大图下方的缩略图行 */
.zone-thumbbar { display: flex; align-items: center; gap: .45rem; margin-top: .9rem; }
.zone-thumbs {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: row; gap: .6rem; padding: 2px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(100,116,139,.35) transparent;
}
.zone-thumbs::-webkit-scrollbar { width: 8px; height: 8px; }
.zone-thumbs::-webkit-scrollbar-thumb { background: rgba(100,116,139,.35); border-radius: 999px; }
.zone-thumbs::-webkit-scrollbar-track { background: transparent; }
.zone-thumb {
  flex: 0 0 auto; width: 100px; aspect-ratio: 16 / 10; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  cursor: pointer; opacity: .6;
  transition: opacity .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.zone-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zone-thumb:hover { opacity: 1; }
.zone-thumb.is-active { opacity: 1; border-color: var(--brass); box-shadow: 0 0 0 2px rgba(165,132,76,.22); }

.thumb-nav {
  flex: 0 0 auto; width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.thumb-nav:hover { border-color: var(--brass); color: var(--brass-deep); }
.thumb-nav svg { width: 16px; height: 16px; }
.thumb-nav[disabled] { opacity: .3; cursor: default; }
.thumb-nav[disabled]:hover { border-color: var(--line-strong); color: var(--ink); }
.thumb-nav[hidden] { display: none; }

.zone-nav:focus-visible, .zone-thumb:focus-visible, .thumb-nav:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}

/* 案例列表页变体：缩略图竖排在左侧，高度与大图一致（宽屏） */
.zone-gallery-side { padding-left: 112px; }
.zone-gallery-side .zone-thumbbar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 96px;
  flex-direction: column; gap: .45rem; margin: 0;
}
.zone-gallery-side .zone-thumbs { flex-direction: column; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.zone-gallery-side .zone-thumb { width: 100%; }
.zone-gallery-side .thumb-nav { width: 100%; height: 28px; border-radius: 999px; }
.zone-gallery-side .thumb-nav svg { transform: rotate(90deg); }

@media (max-width: 960px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 窄屏：左侧竖排缩略图回到大图下方，横向排布 */
@media (max-width: 760px) {
  .zone-gallery-side { padding-left: 0; }
  .zone-gallery-side .zone-thumbbar { position: static; width: auto; flex-direction: row; margin-top: .9rem; }
  .zone-gallery-side .zone-thumbs { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .zone-gallery-side .zone-thumb { width: 84px; }
  .zone-gallery-side .thumb-nav { width: 32px; height: 32px; border-radius: 50%; }
  .zone-gallery-side .thumb-nav svg { transform: none; }
}

@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; }
  .zone-list { gap: 2.6rem; }
  .zone-nav { width: 36px; height: 36px; }
  .zone-nav svg { width: 16px; height: 16px; }
  .zone-prev { left: .45rem; }
  .zone-next { right: .45rem; }
  .zone-thumb { width: 76px; }
  .zone-gallery-side .zone-thumb { width: 76px; }
  .thumb-nav { width: 30px; height: 30px; }
  .thumb-nav svg { width: 14px; height: 14px; }
  .zone-gallery-side .thumb-nav { width: 28px; height: 28px; }
}
