/* 星屑畫廊 */
.gx-banner { aspect-ratio: auto; padding: 132px 0 64px; background-position: center 30%; }
.gx-banner .hero-overlay { background: linear-gradient(180deg, rgba(10,14,42,.35) 0%, rgba(10,14,42,.78) 70%, var(--color-bg-deep) 100%); }
.gx-stats { list-style: none; margin: 30px 0 0; padding: 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.gx-stats li { display: flex; flex-direction: column; align-items: center; min-width: 108px; padding: 12px 22px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(255,255,255,.05); backdrop-filter: blur(6px); }
.gx-stats b { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-accent-teal); line-height: 1.2; }
.gx-stats span { font-size: .85rem; color: var(--color-text-muted); }

.gx-section { padding-top: 44px; }

/* 作品牆:縮圖一律裁成 9:16 的整齊格子;點開看圖則是完整原比例 */
.gx-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gx-card { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; background: var(--color-bg-navy); aspect-ratio: 9 / 16; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; font: inherit; color: inherit; }
.gx-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease, opacity .4s ease; opacity: 0; }
.gx-card img.is-loaded { opacity: 1; }
.gx-card:hover, .gx-card:focus-visible { transform: translateY(-4px); border-color: rgba(45,212,197,.65); box-shadow: 0 10px 34px rgba(0,0,0,.45), var(--shadow-glow); outline: none; }
.gx-card:hover img { transform: scale(1.05); }
.gx-card[hidden] { display: none; }
.gx-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg, transparent, rgba(6,9,30,.9)); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.gx-cap b { font-size: .9rem; line-height: 1.35; }
.gx-cap i { font-style: normal; font-size: .75rem; letter-spacing: .06em; color: var(--color-accent-teal); }
.gx-card:hover .gx-cap, .gx-card:focus-visible .gx-cap { opacity: 1; transform: none; }
.gx-note { text-align: center; color: var(--color-text-muted); font-size: .85rem; margin: 34px 0 0; }

.gx-cta { padding-top: 10px; }
.gx-cta-card { text-align: center; padding: 44px 24px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: radial-gradient(ellipse at 50% 0%, rgba(45,212,197,.18), rgba(255,255,255,.04) 70%); }
.gx-cta-card h2 { margin: 0 0 8px; font-size: 1.6rem; }
.gx-cta-card p { margin: 0 0 22px; color: var(--color-text-muted); }

/* lightbox */
.gx-lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(5,7,24,.93); backdrop-filter: blur(8px); padding: 16px; }
.gx-lightbox[hidden] { display: none; }
.gx-x, .gx-nav { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--color-border); background: rgba(255,255,255,.08); color: var(--color-text); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .15s ease; padding: 0; }
.gx-x:hover, .gx-nav:hover { background: rgba(45,212,197,.3); }
.gx-x { top: 16px; right: 16px; font-size: 1.1rem; }
.gx-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; padding-bottom: 4px; }
.gx-prev { left: 18px; } .gx-next { right: 18px; }
.gx-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.gx-phone { position: relative; width: fit-content; max-width: 92vw; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 18px 60px rgba(0,0,0,.6), 0 0 50px rgba(45,212,197,.12); background: #0b1030; touch-action: pan-y; }
.gx-phone img { display: block; width: auto; height: auto; max-height: min(78vh, 760px); max-width: 92vw; user-select: none; -webkit-user-drag: none; }
.gx-chat { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 58px 12px 12px; pointer-events: none; }
.gx-phone.is-chat .gx-chat { display: flex; }
.gx-phone.is-chat::before { content: "奧可托"; position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px; font-weight: 700; background: rgba(12,20,44,.92); z-index: 1; }
.gx-b { max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.4; }
.gx-in { align-self: flex-start; background: rgba(18,52,92,.94); box-shadow: inset 0 0 0 1px rgba(110,190,255,.28); border-bottom-left-radius: 4px; }
.gx-out { align-self: flex-end; background: linear-gradient(135deg,#1c6fc0,#17a8cc); border-bottom-right-radius: 4px; }
.gx-stage figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(92vw, 520px); }
.gx-title { display: flex; flex-direction: column; min-width: 0; }
.gx-title b { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-title span { font-size: .8rem; color: var(--color-text-muted); }
.gx-actions { display: flex; gap: 10px; flex: none; }
.gx-actions .btn { padding: 11px 18px; font-size: .88rem; cursor: pointer; font-family: inherit; }
.gx-actions .btn-ghost[aria-pressed="true"] { background: rgba(45,212,197,.2); border-color: var(--color-accent-teal); }
body.gx-lock { overflow: hidden; }

@media (max-width: 1100px) { .gx-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .gx-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 560px) {
  .gx-banner { padding: 104px 0 40px; }
  .gx-stats { gap: 8px; flex-wrap: nowrap; } .gx-stats li { min-width: 0; flex: 1; padding: 10px 8px; } .gx-stats b { font-size: 1.25rem; }
  .gx-chip { padding: 8px 11px; font-size: .84rem; white-space: nowrap; }   .gx-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gx-cap { opacity: 1; transform: none; padding-top: 28px; }   .gx-nav { display: none; }
  .gx-phone img { max-height: min(70vh, 640px); }
  .gx-stage figcaption { flex-direction: column; align-items: stretch; }
  .gx-actions { justify-content: stretch; } .gx-actions .btn { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .gx-card, .gx-card img, .gx-cap { transition: none; } }
