/* ============================================================
   portfolio.css — 作品案例列表頁 / 作品案例詳情頁
   簡實制所 Lessary Studio
   ============================================================ */

/* ── 作品案例列表頁 Hero ── */
.port-hero {
  padding: calc(var(--nav-h) + 64px) 80px 0;
  text-align: center;
  position: relative; overflow: hidden;
  background: var(--bg);
}


.port-hero-bottom-space { padding-bottom: 56px; }

.ph-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; }
.ph-title { font-size: clamp(36px,4.5vw,58px); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.ph-sub { font-size: 15px; color: var(--text-muted); line-height: 1.9; }

/* ── 作品案例列表 section ── */
.port-list-section { background: var(--white); padding:40px 100px; }
.port-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  font-size: 14px; display: none;
}
.port-empty.show { display: block; }

/* ── 作品案例詳情頁 ── */
.pd-hero {
  padding: calc(var(--nav-h) + 48px) 80px 60px;
  background: var(--bg); position: relative; overflow: hidden;
}
.pd-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.pd-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--illust-fill-dark); background: var(--illust-fill-soft);
  padding: 6px 16px; border-radius: 30px; margin-bottom: 18px;
}
.pd-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: var(--primary); line-height: 1.35; margin-bottom: 18px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 6px; }
.pd-meta div { font-size: 13px; color: var(--text-muted); }
.pd-meta strong { display: block; font-size: 13px; color: var(--primary); font-weight: 700; margin-bottom: 2px; }

.pd-cover {
  max-width: 1040px; margin: 0 auto; padding: 0 80px;
  transform: translateY(48px);
}
.pd-cover img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 24px; box-shadow: 0 30px 60px rgba(42,50,75,0.16); display: block;
}

.pd-body { max-width: 760px; margin: 0 auto; padding: 8px 80px 40px; }
.pd-body h2 {
  font-size: 20px; font-weight: 700; color: var(--primary);
  margin: 44px 0 14px; display: flex; align-items: center; gap: 10px;
}
.pd-body h2:first-child { margin-top: 0; }
.pd-body p { font-size: 15px; line-height: 2; color: var(--text-muted); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-tags .tag { background: var(--bg); }

/* Gallery — 單欄，可點放大 */
.pd-gallery {
  max-width: 760px; margin: 0 auto; padding: 0 80px 100px;
  display: flex; flex-direction: column; gap: 24px;
}
.pd-gallery img {
  width: 100%; border-radius: 16px; display: block;
  box-shadow: 0 10px 30px rgba(42,50,75,0.08);
  cursor: zoom-in; transition: transform .25s, box-shadow .25s;
}
.pd-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(42,50,75,0.14);
}

/* Lightbox */
.pd-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.pd-lightbox.open { display: flex; }
.pd-lightbox img {
  max-width: 100%; max-height: 90vh; border-radius: 12px;
  object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  cursor: default;
}
.pd-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pd-lightbox-close:hover { background: rgba(255,255,255,0.25); }

.pd-nav {
  max-width: 760px; margin: 0 auto; padding: 0 80px 100px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(42,50,75,0.08); padding-top: 32px;
}
.pd-nav a {
  font-size: 13px; font-weight: 700; color: var(--primary);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  opacity: .75; transition: opacity .2s;
}
.pd-nav a:hover { opacity: 1; color: var(--illust-fill-dark); }


/* CTA SECTION */
.cta-section { background: var(--accent); text-align: center; padding: 100px 80px; }
.cta-section h2 { font-size: clamp(26px,3vw,40px); font-weight: 900; color: var(--primary); margin-bottom: 16px; }
.cta-section p { font-size: 15px; color: var(--primary); opacity: .7; margin-bottom: 40px; }


@media (max-width: 900px) {
  .port-hero, .port-list-section, .pd-hero, .pd-nav { padding-left: 24px; padding-right: 24px; }
  .pd-body { padding: 80px 24px 40px; }
  .pd-cover { padding: 0 24px; }
  .pd-gallery { padding: 0 24px 80px; }
  .pd-meta { gap: 16px; }
  .cta-section { padding: 64px 28px; }
}

/*-Preview Web --*/

.pd-preview-wrap {
  max-width: 1040px; margin:80px auto; padding: 20px 80px 0;
  display: flex; justify-content: flex-end; 
}
.pd-preview-btn { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
  .pd-preview-wrap { padding: 16px 24px 0; justify-content: center; }
}