/* ================================================================
   case.css — 成功案例列表（work）+ 單篇案例（success-case）
================================================================ */

/* ── work 列表 ─────────────────────────────────────── */
.gc-work-list { padding: 40px 0 64px; }

/* 過濾 tabs */
.gc-work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.gc-work-filter {
  padding: 9px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--gc-surface);
  background: #fff;
  color: var(--gc-text);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--gc-ease), color var(--gc-ease), border-color var(--gc-ease);
}
.gc-work-filter:hover { border-color: var(--gc-blue); color: var(--gc-blue); }
.gc-work-filter.is-active { background: var(--gc-blue); border-color: var(--gc-blue); color: #fff; }

/* 案例網格 */
.gc-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gc-work-card {
  display: block;
  background: #fff;
  border: 1px solid var(--gc-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform var(--gc-ease), box-shadow var(--gc-ease);
}
.gc-work-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }

.gc-work-thumb { position: relative; overflow: hidden; line-height: 0; }
/* 分類徽章：圖片左上角 */
.gc-work-thumb .gc-work-type {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.gc-work-thumb img {
  width: 100%; height: auto;
  aspect-ratio: 750 / 400;
  object-fit: cover;
  transition: transform .35s ease;
}
.gc-work-card:hover .gc-work-thumb img:not(.gc-work-logo) { transform: scale(1.05); }
.gc-work-thumb-empty { width: 100%; aspect-ratio: 750/400; background: #fff; }

/* Logo 卡：上方白底 */
.gc-work-logo-wrap {
  width: 100%;
  aspect-ratio: 750 / 400;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-bottom: 1px solid var(--gc-surface);
}
.gc-work-logo { max-width: 75%; max-height: 76px; width: auto; height: auto; object-fit: contain; }

/* 下方資訊區：藍底 + 黃徽章 */
.gc-work-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--gc-blue);
}
.gc-work-type {
  align-self: flex-start;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;               /* 覆蓋 .gc-work-thumb 的 line-height:0，避免壓扁 */
  color: var(--gc-navy);
  background: var(--gc-yellow);
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
/* 圖片左上角版本：加陰影讓徽章在圖上更清楚 */
.gc-work-thumb .gc-work-type { box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.gc-work-card-title { font-size: 16px; font-weight: 600; color: #fff; line-height: 1.5; }
.gc-work-card:hover .gc-work-card-title { color: var(--gc-yellow); }

/* ── 單篇案例 ─────────────────────────────────────── */
.gc-case-head { padding: 36px 0 8px; }
.gc-case-head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
}
.gc-case-logo {
  flex-shrink: 0;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-case-logo img { max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.gc-case-logo--svg { background: var(--gc-surface); border-radius: 14px; padding: 20px; }
.gc-case-type {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--gc-blue);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.gc-case-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--gc-text);
  line-height: 1.4;
}

/* 案例內文 */
.gc-case-body { padding: 32px 0 56px; }
.gc-case-inner { max-width: 820px; margin-inline: auto; }
.gc-case-content { font-size: 17px; line-height: 2; color: #2d2f2d; }
.gc-case-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gc-blue);
  margin: 1.6em 0 .5em;
  padding-left: 14px;
  border-left: 6px solid var(--gc-blue);
}
.gc-case-content h2:first-child { margin-top: 0; }
.gc-case-content p { margin: 0 0 1.1em; text-align: justify; }
.gc-case-content a:not(.gc-btn):not(.gc-visit-btn) { color: var(--gc-blue); text-decoration: underline; text-underline-offset: 2px; }

/* ── 「查看網站」按鈕（PHP 抽出外部連結後獨立呈現）── */
.gc-case-visit { margin-top: 36px; }
.gc-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--gc-blue);
  color: #fff;
  border-radius: var(--gc-radius-pill);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,69,128,.22);
  transition: transform var(--gc-ease), box-shadow var(--gc-ease), background var(--gc-ease);
}
.gc-visit-btn:hover {
  background: var(--gc-blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,69,128,.30);
}
.gc-visit-globe { flex-shrink: 0; opacity: .9; }
.gc-visit-text { letter-spacing: 1px; }
.gc-visit-host {
  font-size: 13px;
  font-weight: 500;
  color: var(--gc-yellow);
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid rgba(255,255,255,.3);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gc-visit-arrow { flex-shrink: 0; transition: transform var(--gc-ease); }
.gc-visit-btn:hover .gc-visit-arrow { transform: translate(2px,-2px); }

/* ── 案例頁 CTA（左文右動作）── */
.gc-case-cta { text-align: left; padding: 56px 0; }
.gc-case-cta-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.gc-case-cta .gc-single-cta-title { margin-bottom: 16px; }
.gc-case-cta-lead { color: rgba(255,255,255,.9); line-height: 1.9; margin-bottom: 18px; }
.gc-case-cta-lead a { color: var(--gc-yellow); text-decoration: underline; text-underline-offset: 2px; }
.gc-case-cta-points { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.gc-case-cta-points li {
  position: relative;
  padding-left: 28px;
  color: rgba(255,255,255,.92);
  line-height: 1.6;
}
.gc-case-cta-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  background: var(--gc-yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.gc-case-cta-actions { display: flex; flex-direction: column; gap: 14px; }
.gc-cta-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform var(--gc-ease), box-shadow var(--gc-ease);
}
.gc-cta-action:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.gc-cta-action-title { display: block; font-size: 17px; font-weight: 700; line-height: 1.4; }
.gc-cta-action-sub   { display: block; font-size: 13px; opacity: .8; line-height: 1.5; }
/* 表單卡：黃底藍字 */
.gc-cta-action--form {
  flex-direction: column;
  align-items: flex-start;
  background: var(--gc-yellow);
  color: var(--gc-blue);
}
/* LINE 卡：綠底白字 */
.gc-cta-action--line { background: #00c200; color: #fff; }
.gc-cta-action--line svg { flex-shrink: 0; }
.gc-cta-action-body { display: flex; flex-direction: column; }
.gc-cta-more {
  align-self: flex-start;
  margin-top: 2px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  opacity: .9;
  transition: color var(--gc-ease);
}
.gc-cta-more:hover { color: var(--gc-yellow); opacity: 1; }

.gc-case-related { background: var(--gc-surface); padding: 56px 0 72px; }

/* ── RWD ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gc-work-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .gc-case-cta-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767px) {
  .gc-work-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-case-head-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .gc-case-logo { width: 140px; }
  .gc-case-content { font-size: 16px; }
  .gc-visit-btn { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px; }
  .gc-visit-host { max-width: 100%; }
}
@media (max-width: 480px) {
  .gc-work-grid { grid-template-columns: 1fr; }
}
