@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --primary-color: #00605f;
  --secondary-color: #017479;
  --text-dark: #0f172a;
  --text-light: #94a3b8;
  --white: #ffffff;
  --max-width: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(
      to right,
      rgba(2, 82, 89, 0.9),
      rgba(255, 255, 255, 0)
    ),
    url("assets/bg.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.container {
  max-width: var(--max-width);
  min-height: 100vh;
  margin: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
}

.nav__logo .logo-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/logo.png') center center / cover no-repeat;
  filter: blur(8px); /* 根据需要调整模糊程度 */
  border-radius: 50%;
  z-index: 0;
}

.nav__logo img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}



.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.link a {
  text-decoration: none;
  font-weight: 600;
  color: var(--white);
}

.search {
  width: 100%;
  max-width: 300px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--white);
  border-radius: 2rem;
  transition: 0.3s;
}

.search input {
  width: 100%;
  font-size: 1rem;
  color: var(--primary-color);
  outline: none;
  border: none;
}

.search input::placeholder {
  color: var(--secondary-color);
}

.search span {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.login {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 2rem;
  cursor: pointer;
  transition: 0.3s;
}

.login:hover {
  background-color: var(--secondary-color);
}

.login span {
  padding: 5px 8px;
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: var(--white);
  border-radius: 100%;
}

.destination__container {
  position: relative;
  padding: 5rem 0 5rem 5rem;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.bg__img__1 {
  position: absolute;
  top: 20px;
  left: 75%;
  transform: translateX(-100%);
  opacity: 0.6;
  z-index: -1;
}

.bg__img__2 {
  position: absolute;
  bottom: 2rem;
  right: 50%;
  transform: translateX(100%);
  opacity: 0.8;
  z-index: -1;
}

.socials {
  position: absolute;
  top: 25rem;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.socials a {
  text-decoration: none; /* 取消超链接的下划线样式 */
}

.socials img {
  width: 2rem; /* 设置图标的宽度 */
  height: 2rem; /* 设置图标的高度 */
  margin-right: 0.5rem; /* 可选：调整图标之间的间距 */
}

.content h1 {
  margin-bottom: 1rem;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--white);
}

.content h1 span {
  -webkit-text-stroke: 2px var(--white);
  -webkit-text-fill-color: transparent;
}

.content p {
  max-width: 350px;
  margin-bottom: 2rem;
  line-height: 1.5rem;
  color: var(--white);
}

.content .btn {
  padding: 0.75rem 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--secondary-color);
  cursor: pointer;
}

.destination__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.destination__card {
  height: 100%;
  background-color: var(--white);
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.7);
  position: relative; /* 使子元素的绝对定位相对于 .destination__card */
  padding-bottom: 60px; /* 为了给按钮留出空间，具体数值可以根据实际情况调整 */
}

.destination__card img {
  width: 100%;
}

/* 设置.card__content的内边距 */
.card__content {
  padding: 1rem;
}

/* 标题样式 */
.card__content h4 {
  margin-bottom: 0.5rem; /* 设置标题下边距 */
  font-size: 1.2rem; /* 设置标题字体大小 */
  font-weight: 600; /* 设置标题字体粗细 */
  color: var(--text-dark); /* 设置标题颜色 */
}

/* 段落样式 */
.card__content p {
  margin-bottom: 1rem; /* 设置段落下边距 */
  font-size: 0.9rem; /* 设置段落字体大小 */
  line-height: 1.5rem; /* 设置段落行高 */
  color: var(--text-light); /* 设置段落颜色 */
}

/* 按钮样式 */
.destination__card .btn {
  padding: 0.5rem 1rem; /* 设置按钮内边距 */
  outline: none; /* 移除按钮轮廓样式 */
  border: none; /* 移除按钮边框 */
  font-weight: 500; /* 设置按钮字体粗细 */
  color: var(--white); /* 设置按钮文字颜色 */
  background-color: var(--primary-color); /* 设置按钮背景颜色 */
  cursor: pointer; /* 设置鼠标悬停样式为手型 */
  position: absolute; /* 绝对定位 */
  bottom: 10px; /* 距离底部10px，可以根据需要调整 */
  left: 50%; /* 水平居中 */
  transform: translateX(-50%); /* 使按钮水平居中 */
  width: 80%; /* 按钮宽度为父容器的80%，可以根据需要调整 */
  text-align: center; /* 文字居中 */
  box-sizing: border-box; /* 确保 padding 不会影响 width */
}
.btn a {
    color: white;
    text-decoration: none;
}

.btn a:hover {
    text-decoration: underline;
}

@media (width < 1200px) {
  .search {
    max-width: 235px;
  }

  .destination__container {
    grid-template-columns: 1fr;
  }
}

@media (width < 900px) {
   .content h1 {
    font-size: 4rem;
  }

  .destination__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width < 600px) {
  .search {
    display: none;
  }

  .destination__container {
    padding-left: 3rem;
  }

  .content h1 {
    font-size: 3rem;
  }

  .destination__grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.modal {
            display: none;
            position: fixed;
            z-index: 1;
            padding-top: 60px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
        }

        .modal-content {
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 400px; /* 设置最大宽度 */
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        .responsive-image {
            width: 100%;
            height: auto;
        }


        .popup-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .popup-content {
            background: white;
            width: 100%;
            height: 100%;
            position: relative;
        }
        .close-btn {
            position: absolute;
            top: 8px;
            right: 12px;
            font-size: 24px;
            cursor: pointer;
            background-color: #FF6F61; /* 马卡龙红色背景 */
            color: white;
            border: none;
            border-radius: 5px;
            padding: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s, transform 0.3s;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .close-btn:hover {
            background-color: #E65C50; /* 悬停时稍深的马卡龙红色 */
            transform: scale(1.1);
        }
        @media (max-width: 600px) {
            .close-btn {
                font-size: 20px;
                width: 32px;
                height: 32px;
            }
        }
