/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fff;
  color: #333;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 2vw;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left .brand {
  font-size: 1.5em;
  font-weight: normal;
  text-decoration: none;
  color: #333;
}

.brand .brand-bowen,
.brand .brand-fang {
  font-weight: bold;
}

.brand .brand-bowen {
  color: #1371A0;
}

.brand .brand-fang {
  color: #333;
}

.brand .brand-chinese {
  font-size: 0.8em;
  color: #333;
  font-weight: normal;
  margin-left: 0.3em;
}

.nav-right {
  display: flex;
  gap: 30px;
}

.nav-right a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-right a:hover {
  color: #000;
}

/* Active Navigation Link */
.nav-right a.active {
  color: #1371A0 !important;
  font-weight: 700 !important;
}


.hero-image {
  display: flex;
  justify-content: center;
  padding: 0 2vw;
  position: relative;
}

.hero-text {
  position: absolute;
  bottom: 2vw;
  left: 4vw;
  color: white;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-project-name {
  font-size: 1.4em;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero-project-location-year {
  font-size: 1.1em;
  opacity: 0.9;
  font-style: italic;
}

.hero-image img {
  width: 100%;
  max-width: 100vw;
  height: 88vh;
  max-height: calc(100vw * 0.75);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 1px;
}

.hero-carousel {
  width: 100vw;
  height: 45vw;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(.77,0,.18,1);
  will-change: transform;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.hero-carousel-img {
  width: 60vw;
  height: 45vw;
  max-width: 1200px;
  max-height: 900px;
  min-width: 240px;
  min-height: 180px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 0 0vw;
}

@media (max-width: 900px) {
  .hero-carousel {
    height: 60vw;
    max-height: 60vw;
  }
  .hero-carousel-img {
    width: 90vw;
    height: 67.5vw;
  }
}

@media (max-width: 600px) {
  .hero-carousel {
    height: 80vw;
    max-height: 80vw;
  }
  .hero-carousel-img {
    width: 120vw;
    height: 90vw;
  }
}

.hero-carousel-x {
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  position: relative;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carousel-x-track {
  display: flex;
  align-items: center;
  transition: transform 0.7s cubic-bezier(.77,0,.18,1);
  will-change: transform;
  height: 100%;
}
.hero-carousel-x-img {
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 1px;
}
@media (max-width: 900px) {
  .hero-carousel-x {
    height: 60vw;
  }
}
@media (max-width: 600px) {
  .hero-carousel-x {
    height: 80vw;
  }
}

/* Responsive project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 0 2vw;
  max-width: 1200px;
  margin: 0 auto;
}

.project-tile img {
  width: 100%;
  aspect-ratio: 1 / 1; /* 强制正方形 */
  object-fit: cover;
  border-radius: 1px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.project-tile img:hover {
  transform: scale(1.03);
}
.project-tile {
  position: relative;
  overflow: hidden;
}

.project-tile {
  position: relative;
  overflow: hidden;
}

.project-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1px;
  transition: transform 0.2s ease;
}

.project-tile:hover img {
  transform: scale(1.03);
}

.project-tile .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-tile .desc {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  text-align: center;
  color: #333;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-tile:hover .overlay,
.project-tile:hover .desc {
  opacity: 1;
}

.project-tile a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-tile a:hover img {
  transform: scale(1.03);
}

.project-tile a:hover .overlay,
.project-tile a:hover .desc {
  opacity: 1;
}

.desc-name {
  font-size: 1em;
  margin-bottom: 0.3em;
}

.desc-location {
  font-size: 1em;
  margin-bottom: 0.3em;
}

.desc-year {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

.hero-image-fill {
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #eee;
  position: relative;
}
.hero-fill-container {
  width: 100vw;
  height: 80vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(.77,0,.18,1);
}
.hero-fill-main {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
}
.hero-fill-side {
  position: absolute;
  top: 50%;
  z-index: 1;
  object-fit: cover;
  pointer-events: none;
}
.hero-fill-side#hero-prev {
  left: 0;
  transform: translateY(-50%);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.hero-fill-side#hero-next {
  right: 0;
  transform: translateY(-50%);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
@media (max-width: 900px) {
  .hero-fill-container {
    height: 60vw;
  }
}
@media (max-width: 600px) {
  .hero-fill-container {
    height: 80vw;
  }
}

.hero-text-link {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.hero-text-link:hover {
  opacity: 0.8;
}
