* { box-sizing: border-box; }
body { margin: 0; background: #111318; color: #fff; font-family: Arial, "Noto Sans TC", sans-serif; }
header { padding: 35px 6%; }

.logo { font-size: 27px; font-weight: bold; letter-spacing: 2px; }
.logo span { color: #a78bfa; }
.hero { padding: 35px 6% 45px; }
.hero h1 { font-size: clamp(32px, 5vw, 55px); margin: 0 0 12px; }
.hero p { color: #9298a8; margin: 0; }
.gallery { padding: 0 6% 60px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.photo { position: relative; overflow: hidden; border-radius: 13px; aspect-ratio: 1; background: #242731; cursor: pointer; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.photo:hover img { transform: scale(1.07); }
.photo-number { position: absolute; bottom: 9px; left: 9px; background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: rgba(255, 255, 255, 0.95); font-size: 12px; padding: 5px 10px; border-radius: 6px; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.12); }
footer { padding: 25px 6%; border-top: 1px solid #292d38; text-align: center; color: #777f90; font-size: 13px; }

/* Lightbox 漸變效果 */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.87); display: flex; align-items: center; justify-content: center; z-index: 10; padding: 50px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .85s ease, visibility .95s ease; }
.lightbox.show { visibility: visible; opacity: 1; pointer-events: auto; }
.lightbox-content { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; opacity: 0; transition: opacity 0.5s ease, transform .85s ease; }
.lightbox.show .lightbox-content { opacity: 1; transform: scale(1); }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; border: 3px solid #fff; border-radius: 2px; cursor: pointer; }
.lightbox-number { color: #ccc; font-size: 14px; }
.image-error { color: #ff9b9b; font-size: 15px; text-align: center; }
.close, .prev, .next { position: absolute; background: #ffffff20; border: none; color: white; font-size: 30px; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; transition: background .25s ease, transform .25s ease, opacity .3s ease; opacity: 0; }
.lightbox.show .close, .lightbox.show .prev, .lightbox.show .next { opacity: 1; }
.close { top: 20px; right: 25px; }
.prev { left: 20px; }
.next { right: 20px; }
.close:hover, .prev:hover, .next:hover { background: #ffffff40; transform: scale(1.1); }
button:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }

@media(max-width: 900px) {
	.gallery { grid-template-columns: repeat(4, 1fr); }
}

@media(max-width: 600px) {
	header { padding: 25px 5%; }
	.hero { padding: 25px 5%; }
	.gallery { padding: 0 5% 40px; grid-template-columns: repeat(2, 1fr); gap: 9px; }
	.lightbox { padding: 15px; }
	.prev { left: 5px; }
	.next { right: 5px; }
	.lightbox img { max-width: 95vw; max-height: 78vh; }
}