header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}

.head-logo {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
  color: #000000;
}

.head-logo span {
  color: #ffd0d0;
}

.nav-items {
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin: 20px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.nav-items::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  height: 2px;
  width: 100%;
  background-color: #F1F8E9;
  transition: 0.3s;
  box-shadow: 0 0 3px #F1F8E9;
}

.nav-items:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-items:hover {
  text-shadow: 0 0 10px #F1F8E9;
}

.header-cta-btn {
  font-size: 1.2rem;
  font-weight: bold;
  background-color: transparent;
  border: 1px solid #F1F8E9;
  padding: 10px 40px;
  border-radius: 25px;
  margin-left: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.header-cta-btn:hover {
  background-color: #ffd0d0;
  border-color: #ffd0d0;
  box-shadow: 0 0 50px #ffd0d0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; /* 新增：列间距，避免内容贴紧 */
  height: calc(100% - 80px); /* 新增：占满剩余高度 */
  align-items: center;
}

.left {
  flex-direction: column;
  align-items: start;
}

.main-text {
  font-size: 6rem;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
}

.main-text span {
  color: #ffd0d0;
}

.sub-text {
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-weight: 400;
  color: rgba(241, 248, 233, 0.8);
  margin-bottom: 50px;
}

.hero-cta-btn {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  padding: 15px 50px;
  background-color: #ffd0d0;
  color: #424242;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 30px;
  margin-right: 20px;
}

.btn2 {
  background-color: #F1F8E9;
}

.hero-cta-btn:hover {
  box-shadow: 0 0 80px #ffd0d0;
}

.btn2:hover {
  box-shadow: 0 0 80px #F1F8E9;
}

.right img {
  width: 85%;
  filter: drop-shadow(0 0 20px #ffd0d0);
  animation: 30s treeScale linear infinite;
  pointer-events: none;
}

.social i {
  height: 40px;
  width: 40px;
  font-size: 1.2rem;
  border: 1px solid #F1F8E9;
  border-radius: 25px;
  margin: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.social i:hover {
  border-color: #ffd0d0;
  box-shadow: 0 0 25px #ffd0d0;
  text-shadow: 0 0 25px #ffd0d0;
  transform: rotate(360deg);
  color: #ffd0d0;
}

/* ========== 新增响应式设计（核心） ========== */
/* 1. 平板横向/大屏手机 (≤ 992px) */
@media (max-width: 992px) {
  .main-text {
    font-size: 4rem; /* 缩小主标题字体 */
    margin-bottom: 20px;
  }

  .sub-text {
    font-size: 1rem; /* 缩小副标题字体 */
    margin-bottom: 30px;
  }

  .hero-cta-btn {
    padding: 12px 40px; /* 缩小按钮内边距 */
    font-size: 1rem;
    margin-right: 15px;
  }

  .head-logo {
    font-size: 1.8rem; /* 缩小logo字体 */
  }

  .nav-items {
    font-size: 1rem; /* 缩小导航字体 */
    margin: 15px;
  }
}

/* 2. 平板竖向/中屏手机 (≤ 768px) */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr; /* 改为单列布局 */
    grid-template-rows: auto auto; /* 两行：文字在上，图片在下 */
    gap: 30px;
    height: auto; /* 取消高度限制 */
    margin-top: 20px;
  }

  .left {
    align-items: center; /* 文字居中，适配小屏 */
    text-align: center;
  }

  .main-text {
    font-size: 3rem;
    line-height: 1.1;
  }

  .social {
    margin-top: 30px; /* 增加社交图标间距 */
    justify-content: center;
  }

  .right img {
    width: 70%; /* 缩小图片宽度 */
    margin: 20px 0;
  }

  /* 隐藏导航项（可选，如需保留可调整为汉堡菜单） */
  .nav-items:not(.head-logo) {
    display: none;
  }

  .header-cta-btn {
    padding: 8px 30px;
    font-size: 0.9rem;
  }
}

/* 3. 小屏手机 (≤ 576px) */
@media (max-width: 576px) {
  .main-text {
    font-size: 2.2rem; /* 进一步缩小主标题 */
    margin-bottom: 15px;
  }

  .sub-text {
    font-size: 0.9rem;
    padding: 0 10px; /* 增加左右内边距，避免文字贴边 */
  }

  .hero-cta-btn {
    padding: 10px 30px;
    font-size: 0.9rem;
    margin-right: 0;
    margin-bottom: 15px; /* 按钮垂直排列 */
    display: block;
    width: 80%; /* 按钮宽度占比 */
    text-align: center;
  }

  .social i {
    height: 35px;
    width: 35px;
    font-size: 1rem; /* 缩小社交图标 */
    margin: 8px;
  }

  .head-logo {
    font-size: 1.5rem; /* 进一步缩小logo */
  }

  .right img {
    width: 80%; /* 调整图片宽度，适配手机 */
  }
}