@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Dark gothic theme inspired by the original site */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  background: #0d0f11;
  color: #cdd6d6;
  font-family: 'Noto Serif TC','Noto Serif CJK TC','Times New Roman', serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Navigation bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(15,18,20,0.86);
  border-bottom: 1px solid #262c2f;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  font-weight: 600;
  letter-spacing: .02em;
}
.tabs {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 14px;
  letter-spacing: .04em;
}
.tabs a {
  opacity: .6;
  color: #cdd6d6;
}
.tabs a.active,
.tabs a:hover {
  opacity: 1;
  color: #e2ecee;
}
.subnav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 0;
  color: #889092;
  font-size: 12px;
  letter-spacing: .08em;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 80px;
}

/* Headings */
.h1 {
  font-size: 44px;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 12px 0 24px;
  color: #e2ecee;
  font-family: 'Inter', sans-serif;
}

/* Reveal animation (for fade-in effect) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Gallery grid */
.gallery-grid {
  column-width: 220px;
  column-gap: 20px;
  width: 100%;
  margin-top: 24px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #2a2f34;
}
.gallery-caption {
  margin-top: 6px;
  font-size: 12px;
  color: #7f8a8f;
  line-height: 1.4;
}

/* Work page layout */
.work {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 320px;
  align-items: start;
}
@media (max-width: 900px) {
  .work {
    grid-template-columns: 1fr;
  }
}
.work-hero {
  background: #171a1c;
  border: 1px solid #2a2f34;
  overflow: hidden;
}
.work-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.work-title {
  font-size: 36px;
  margin: 0 0 8px;
  color: #e2ecee;
  font-family: 'Inter', sans-serif;
}
.work-data {
  font-size: 13px;
  color: #7f8a8f;
}
.work-desc {
  margin-top: 16px;
  font-size: 14px;
  color: #9fa8ab;
}

/* Comments section */
#comments-section {
  margin-top: 32px;
}
/* Comments section */
#comments-section {
  max-width: 820px;
  margin: 56px auto 80px;
  padding: 24px 24px 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 55%)
    #111315;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}

#comments-section h2 {
  font-size: 18px;
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e2ecee;
  font-family: 'Inter', sans-serif;
}

.comment-description {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  color: #9fa8ab;
  opacity: 0.85;
}

/* Google form */
#comments-section iframe {
  width: 100%;
  height: 560px; /* 高/矮可以微調 */
  border: none;
  border-radius: 10px;
  background: rgba(10, 11, 13, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 45px rgba(0, 0, 0, 0.85);
}


/* Custom cursor styles */
[data-custom-cursor] {
  cursor: none;
}
[data-custom-cursor] * {
  cursor: none !important;
}
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
#custom-cursor img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s ease;
  pointer-events: none;
}
#custom-cursor.hovering img {
  transform: rotate(180deg) scale(1.2);
}