/* ---------- 通用基础样式 ---------- */
body {
  margin: 0;
  font-family: "Helvetica Neue", system-ui, sans-serif;
}

header {
  background-color: #003366;
  padding: 1em;
  color: white;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.8em;
  color: white;
  text-align: left; 
}


nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1em;
  align-items: center;
}

nav ul li a,
nav ul li select {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ---------- Hero 区域 ---------- */
#hero {
  position: relative;
}

#hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: -5px;
}

#hero .overlay {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1em 2em;
  border-radius: 8px;
  width: 75%;
  max-width: 700px;
  color: white;
  font-size: 2.2em;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
  z-index: 2;
}

/* ---------- AI Caption 样式 ---------- */
.ai-caption {
  text-align: center;
  color: #777;
  margin-top: 0.5em;
  font-size: 0.8em;
}

/* ---------- 品牌故事正文 ---------- */
.brand-story {
  background-color: #fff;
  padding: 3em 1.5em;
  font-size: 1.125em;
  line-height: 1.8;
  max-width: 960px;
  margin: auto;
}

.brand-story h2 {
  margin-top: 0.2em;
  font-size: 1.6em;
  margin-bottom: 2em;
  text-align: center;
}

.brand-story p {
  margin-bottom: 1.2em;
}

/* ---------- 语言选择器样式 ---------- */
select#language-selector {
  padding: 0.4em 1em;
  font-size: 1em;
  font-weight: bold;
  color: #003366;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  appearance: none;
}

/* ---------- 移动端优化 ---------- */
@media (max-width: 768px) {
  nav {
  text-align: left;
  padding-left: 1em;
}
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.8em;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li select {
    margin-top: 0.5em;
  }

  select#language-selector {
    width: 100px;
    max-width: 100%;
  }

  #hero .overlay {
    bottom: 20px !important;
    font-size: 0.9em !important;
    padding: 0.8em !important;
    width: 88% !important;
    max-width: 88% !important;
    box-sizing: border-box;
  }


  .ai-caption {
    font-size: 0.5em;
    margin-top: 0.8em;
    padding: 0 1em;
    line-height: 1.4;
  }

  .brand-story {
    padding: 2em 1em;
    font-size: 1em;
  }

  .brand-story h2 {
    font-size: 1.3em;
    margin-top: -0.9em;
    margin-bottom: 1em;
  }
}

/* ---------- 页脚 ---------- */
footer {
  text-align: center;
  background-color: #003366;
  color: white;
  padding: 1em;
}
