/* === Design Tokens === */
:root {
  --ink: #1A1A1A;
  --snow: #FAFAF8;
  --gold: #C9B99A;
  --stone: #555555;
  --silk: #F5F3EF;
  --mist: #E8E4DF;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-cn: 'Noto Serif SC', serif;

  --max-width: 1100px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--snow);
  line-height: 1.7;
  font-size: 15px;
}

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

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

/* === Typography === */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.2;
}

h1 { font-size: 3.2rem; letter-spacing: 3px; }
h2 { font-size: 2rem; letter-spacing: 1px; }
h3 { font-size: 1.4rem; }

.cn { font-family: var(--font-cn); }

.label {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--stone);
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(250, 250, 248, 0.97);
  box-shadow: 0 1px 0 var(--mist);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.nav-logo .cn {
  font-size: 0.95rem;
  color: var(--stone);
  margin-left: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.lang-toggle {
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--stone);
  cursor: pointer;
  padding: 4px 12px;
  border: 1px solid var(--mist);
  border-radius: 2px;
  background: none;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}

.lang-toggle:hover {
  border-color: var(--gold);
}

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

.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--snow);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 99;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--stone);
}

/* === Sections === */
.section {
  padding: 80px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--silk);
}

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

.section-header h2 {
  margin-top: 8px;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
}

.hero .label {
  margin-bottom: 12px;
}

.hero h1 {
  margin-bottom: 8px;
}

.hero .cn {
  font-size: 1.1rem;
  color: var(--stone);
}

.hero .credentials {
  font-size: 0.82rem;
  color: var(--stone);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-image {
  margin-top: 60px;
  width: 100%;
  max-width: 800px;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
}

/* === Featured Grid === */
.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.featured-card {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--mist);
  transition: border-color 0.2s;
}

.featured-card:hover {
  border-color: var(--gold);
}

.featured-card .label {
  margin-bottom: 12px;
}

.featured-card h3 {
  margin-bottom: 8px;
}

.featured-card p {
  font-size: 0.85rem;
  color: var(--stone);
}

/* === About === */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.9;
}

.about-content p {
  margin-bottom: 20px;
}

.about-portrait {
  max-width: 400px;
  margin: 0 auto 48px;
}

.about-portrait img {
  width: 100%;
}

/* === Media Page === */
.cd-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cd-cover {
  max-width: 400px;
}

.cd-cover img {
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cd-info h3 {
  margin-bottom: 16px;
}

.cd-info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-item {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

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

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  padding: 16px;
  font-family: var(--font-body);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* === Contact === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mist);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  height: 160px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  padding: 12px 40px;
  background: var(--ink);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--gold);
  color: var(--ink);
}

.contact-info {
  padding-top: 8px;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--stone);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--mist);
}

.footer p {
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 1px;
}

/* === Language Toggle === */
[lang="zh"] { display: none; }
body.zh [lang="en"] { display: none; }
body.zh [lang="zh"] { display: block; }
/* For inline elements */
body.zh span[lang="en"],
body.zh a[lang="en"] { display: none; }
body.zh span[lang="zh"],
body.zh a[lang="zh"] { display: inline; }

/* === Responsive === */
@media (max-width: 1024px) {
  .featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.6rem; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .section { padding: 60px 24px; }
  .hero { padding: 100px 24px 60px; }

  .featured {
    grid-template-columns: 1fr;
  }

  .cd-section {
    grid-template-columns: 1fr;
  }

  .cd-cover {
    margin: 0 auto;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

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

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