/* ========== 基础设置 ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Noto Sans SC', sans-serif;
  color: #333;
  background-color: #f8f6f3;
  line-height: 1.6;
}

/* ------------------ 导航栏 ------------------ */
nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
}

.logo a {
  display: flex;
  align-items: center;
  color: #1E4035;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 1.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 2px;
}

.logo img {
  height: clamp(32px, 3vw, 45px);
  margin-right: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
}

nav li a {
  text-decoration: none;
  color: #333;
  font-size: clamp(0.85rem, 0.9vw, 1rem);
  transition: 0.3s;
}

nav li a:hover,
nav li a.active {
  color: #C4A484;
}

.lang-selector {
  display: flex;
  gap: 0.6rem;
}

.lang-selector a {
  text-decoration: none;
  color: #555;
  font-size: clamp(0.85rem, 0.9vw, 1rem);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  transition: 0.3s background;
}

.lang-selector a:hover {
  background: #eee;
}

.lang-selector a.active {
  background: #1E4035;
  color: white;
}

/* ------------------ 主视觉区 ------------------ */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: calc(100vh - 80px); /* 自动适应高度 */
  margin-top: 80px; /* 导航栏占位 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero .content {
  position: relative;
  z-index: 2;
  width: min(85%, 900px);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: rgba(255,255,255,0.9);
}

/* ------------------ 页脚 ------------------ */
footer {
  background: #122820;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: clamp(0.8rem, 0.9vw, 1rem);
  width: 100%;
  margin-top: auto;
}

footer small {
  opacity: 0.8;
}

/* ------------------ 响应式调整 ------------------ */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    min-height: calc(100vh - 60px);
  }
  .hero p {
    margin: 0 5%;
  }
}
