/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-hover: #1e1e1e;
  --color-border: #2a2a2a;
  --color-text: #f0f0f0;
  --color-text-muted: #888;
  --color-accent: #c8a45a;
  --color-accent-hover: #dbb96a;
  --color-white: #ffffff;
  --font-sans: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-white);
}

.logo span {
  color: var(--color-accent);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-list a {
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-list a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(30,30,30,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-zh {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.hero-en {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 24px;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.875rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-primary {
  margin-top: 40px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title.left {
  text-align: left;
}

.section-title .zh {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.section-title .en {
  display: block;
  font-size: 0.875rem;
  color: var(--color-accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .caption {
  transform: translateY(0);
}

.caption .zh-cap {
  font-size: 0.9rem;
  font-weight: 600;
}

.caption .en-cap {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ===== About ===== */
.about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--color-border), var(--color-bg));
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh-text {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 20px;
  color: var(--color-text);
}

.en-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s;
}

.contact-card:hover {
  border-color: var(--color-accent);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 16px;
  transition: color 0.3s;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-accent);
}

.lightbox-close {
  top: 16px;
  right: 24px;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .gallery-item {
    aspect-ratio: 1 / 1;
    border: none;
  }

  .gallery-item:hover {
    transform: none;
    box-shadow: none;
  }

  .gallery-item .caption {
    padding: 8px;
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
  }

  .caption .zh-cap {
    font-size: 0.7rem;
  }

  .caption .en-cap {
    font-size: 0.6rem;
    margin-top: 2px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-card {
    padding: 20px 16px;
    border: none;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .contact-card:first-child {
    border-top: 1px solid var(--color-border);
  }

  .contact-icon {
    font-size: 1.2rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .contact-icon svg {
    width: 24px;
    height: 24px;
  }

  .contact-card h3 {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .contact-card p {
    font-size: 0.8rem;
  }

  .contact-info {
    min-width: 0;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .hero-zh {
    letter-spacing: 2px;
  }

  .hero-en {
    letter-spacing: 3px;
  }

  .section {
    padding: 60px 0;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .gallery-item .caption {
    display: none;
  }
}
