/* 消除 body 默认边距（最常见元凶！）*/
body {
  margin: 0;
  padding: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #406b56; /* 纯绿色（green 的十六进制等效值） */
  display: flex;
  display: flex;                /* 启用 Flex 布局 */
  justify-content: center;      /* 关键：让所有 li 水平居中对齐 */
  flex-wrap: wrap;              /* 可选：小屏幕自动换行（增强响应式） */
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 30px 40px;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-family: sans-serif;
}

nav a:hover {
  background-color: #25dda0; /* 深一点的绿色，提供悬停反馈 */
}

main {
  padding: 0;
}

.hero {
    background-image: url("img/bg.jpg");
  background-size: contain;
  background-position: top center;
    background-repeat: no-repeat; /* ❗ 必加！否则默认平铺，可能看不出效果 */
  background-color: #091403;
  padding: 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.carousel {
  position: relative;
  width: min(900px, 92vw);
  margin: 3rem auto 4rem;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.2);
}

.carousel-track {
  display: flex;
  transition: transform 500ms ease;
}

.carousel-track img {
  width: 100%;
  flex: 0 0 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.carousel-dot.active {
  background: #fff;
}

.home-title{
  margin-top: 6vh;
  margin-bottom: 20px;
  font-size: 7em;
}

.hero p {
  margin-top: 1.2em;
}

.hero-section p {
  width: 70%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.home-title h1 {
  text-shadow: 2px 2px 4px rgba(177, 177, 177, 0.5);
}

footer {
  text-align: center; 
  padding: 1.5rem 1rem; 
  background-color: #98C2AF; 
}

.functional-list {
  margin-top: 2rem;        /* ✅ 与上方轮播图留出明显空白 */
  margin-bottom: 2rem;
  text-align: center;      /* 居中显示 span（可选） */
}

.functional-list span {
  display: inline-block;   /* ✅ 让 span 可设宽高、间距 */
  padding: 0.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  color: white;
  font-size: 0.95rem;
  margin: 0 0.6rem 0.8rem; /* 横向间距 + 底部间距（防文字紧贴） */
  transition: all 0.3s ease;
}

.functional-list span:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.contentbox {
  margin: 0 auto;
  padding: 0 3rem;
  width: 70%;
  max-width: 1200px;
  /* height: 100vh; */
  min-height: 100vh;
  background-color: #98c2af6e;

}

.contentbox img {
  max-width: 100%;   
  height: auto;       
  display: block;     
  margin: 1.5rem 0;   
}

.page-title{
  margin-top: 1em;
  font-size: 3.5em;
}

.contentbox p,
.contentbox ul{
  font-size: 1.2em;
  margin:2em 0;
  line-height: 1.6;
  text-align: left;
}

.contentbox h2{
  font-size: 2em;
  margin-top: 1em;
}