/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #b8860b;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-buttons .btn-login,
.nav-buttons .btn-book {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #b8860b;
    color: #fff;
    transition: background-color 0.3s ease;
}

.nav-buttons .btn-login:hover,
.nav-buttons .btn-book:hover {
    background-color: #d4af37;
}

/* 酒店轮播图区域样式（主轮播图） */
.hotel-carousel-section {
    margin-top: 80px; /* 适应固定导航栏的高度 */
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
}

#hotelCarousel {
    width: 1500px; /* 固定宽度 */
    height: 600px; /* 固定高度 */
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* 居中显示 */
}

#hotelCarousel .carousel-inner,
#hotelCarousel .carousel-item {
    height: 100%;
}

#hotelCarousel .hotel-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 自定义过渡效果 - 酒店轮播图 */
#hotelCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#hotelCarousel .active.carousel-item-start,
#hotelCarousel .active.carousel-item-end {
    transform: translateX(-100%);
}

#hotelCarousel .carousel-item-next.carousel-item-start,
#hotelCarousel .carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

/* 活动轮播图区域样式（现主轮播图） */
.carousel-section {
    margin-top: 50px; /* 与酒店轮播图的间距 */
    margin-bottom: 10px; /* 与下方内容的间距 */
    width: 100%;
    display: flex;
    justify-content: center;
}

.carousel-container {
    width: 1360px; /* 固定宽度 */
    height: 904px; /* 固定高度 */
    position: relative;
    overflow: hidden;
}

#mainCarousel,
#mainCarousel .carousel-inner,
#mainCarousel .carousel-item {
    height: 100%;
}

#mainCarousel .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 自定义过渡效果 - 活动轮播图 */
#mainCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#mainCarousel .active.carousel-item-start,
#mainCarousel .active.carousel-item-end {
    transform: translateX(-100%);
}

#mainCarousel .carousel-item-next.carousel-item-start,
#mainCarousel .carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

/* 自定义按钮样式 - 活动轮播图（现主轮播图） */
#mainCarousel .carousel-control-prev-icon,
#mainCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

/* 按钮位置偏左 - 酒店轮播图 */
#hotelCarousel .carousel-control-prev {
    left: 10px; /* 向左偏移 */
}

#hotelCarousel .carousel-control-next {
    right: auto; /* 不设置右偏移 */
    left: 60px; /* 根据需要调整 */
}

/* 按钮位置偏左 - 活动轮播图 */
#mainCarousel .carousel-control-prev {
    left: 10px; /* 向左偏移 */
}

#mainCarousel .carousel-control-next {
    right: auto; /* 不设置右偏移 */
    left: 60px; /* 根据需要调整 */
}

/* 调整轮播图指标（小圆点） */
#hotelCarousel .carousel-indicators button,
#mainCarousel .carousel-indicators button {
    background-color: #fff;
    border: none;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#hotelCarousel .carousel-indicators .active,
#mainCarousel .carousel-indicators .active {
    background-color: #b8860b;
}
/* 颜色区块样式 */
#colorBlock {
    display: flex;
    flex-direction: row; /* 横向布局 */
    align-items: center;       /* 水平居中对齐子元素 */
    justify-content: space-between; /* 两端对齐 */
    max-width: 2000px;
    height: 400px;
    background-color:#ECE8DD;
    padding: 40px 20px;
    gap: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* 左侧内容容器样式 */
.left-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

/* 文本容器样式 */
.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;   /* 水平居中对齐 */
    text-align: center;    /* 文字居中 */
}
/* 手机图片样式 */
.phone-image {
    width: 150px;    /* 根据需要调整 */
    height: 300px;   /* 根据需要调整 */
    height: auto; /* 保持比例 */
    left: 100px;      /* 距离颜色区块左侧20px */
    top: 2500px;       /* 距离颜色区块顶部20px */
    margin-right: 20px; /* 添加适当的间距 */
}

/* 标题图片样式 */
.title-image {
    width: 300px;   /* 设置宽度为100px */
    height: 150px;   /* 设置高度为50px */
    height: auto; /* 保持比例 */
    top: 2450px;       /* 距离顶部20px，可根据需要调整 */
    left: 50%;
    transform: none; /* 移除 translateX 函数 */
    margin-bottom: 20px; /* 添加适当的下边距 */
    margin-right: 20px; /* 添加适当的间距 */
}
/* 文字段落基础样式 */
.journey-text-1,
.journey-text-2,
.journey-text-3,
.journey-text-4 {
    text-align: center;
    line-height: 1.5;
    max-width: 600px;
    margin-top: 20px;
    color: gray; /* 默认颜色 */
}
/* 第一段文字 */
.journey-text-1 {
    font-size: 2.5rem;
    color: #b0acac;              /* 深灰色字体颜色 */
}

/* 第二段文字 */
.journey-text-2 {
    font-size: 1.2rem;
    color: #4a4949;              /* 中灰色字体颜色 */
}

/* 第三段文字 */
.journey-text-3 {
    font-size: 1.2rem;             /* 较小的字体大小 */
    color: #4a4949;              /* 浅灰色字体颜色 */
}

/* 第四段文字 */
.journey-text-4 {
    font-size: 1.2rem;           /* 最小的字体大小 */
    color: #4a4949;               /* 更浅的灰色字体颜色 */
    margin-bottom: 0;            /* 移除最后一段文字的下边距 */
}
/* 右侧按钮容器样式 */
.right-content {
    display: flex;
    flex-direction: column;                  /* 垂直排列按钮 */
    align-items: flex-end;                       /* 水平居中按钮 */
    gap: 10px; 
    margin-left: auto; /* 推到右侧 */                              
}
/* Google Play 按钮样式 */
.google-play-button,
.app-store-button {
    width: 150px; /* 根据需要调整大小 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.google-play-button:hover,
.app-store-button:hover {
    transform: scale(1.05); /* 鼠标悬停时放大按钮 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
}
/* 新增标题“生命之树”样式 */
.tree-of-life-container {
    text-align: center; /* 居中容器内容 */
    margin: 40px 0; /* 添加上下间距 */
}

.tree-of-life-title {
    font-size: 3rem; /* 根据需要调整字体大小 */
    color: #333; /* 标题颜色 */
    font-weight: bold; /* 加粗字体 */
}
/* 新增描述文字样式 */
.tree-of-life-description {
    font-size: 1.2rem; /* 根据需要调整字体大小 */
    color: #555; /* 描述文字颜色 */
    max-width: 800px; /* 限制最大宽度，保持可读性 */
    margin: 20px auto 0; /* 上边距20px，底部无额外间距，水平居中 */
    line-height: 1.6; /* 行高增加可读性 */
    text-align: center; /* 文字居中对齐 */
}
/* 新增环保图片容器样式 */
.environment-image-container {
    margin-top: 30px; /* 添加上边距以分隔标题描述和图片 */
}

.environment-image {
    width: 100%; /* 图片宽度占满容器 */
    max-width: 2000px; /* 限制最大宽度，保持可读性 */
    height: auto; /* 保持图片比例 */
    display: block; /* 将图片作为块级元素 */
    margin: 0 auto; /* 水平居中 */
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}
/* 新增深色页脚样式 */
.footer {
    background-color: #1d2124; /* 深色背景 */
    color: #ecf0f1; /* 浅色文字 */
    padding: 40px 20px;
    height: 630px; /* 设置高度为2000px */
    max-width: 2000px;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* 响应式折叠 */
}

.footer-content {
    flex: 1;
    min-width: 200px;
    margin: 10px 20px;
}
.footer-content h3 {
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 1rem;
}

.footer-content a {
    display: inline-block;
    margin-right: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}
/* 主内容容器布局 */
.main-content {
    display: flex;
    flex-direction: row;
    padding: 20px;
}

/* 侧边栏样式 */
.sidebar {
    width: 200px;
    background-color: #1d2124; /* 与页脚区块同步的深色背景 */
    padding: 20px;
    border-right: 1px solid #dee2e6;
}

.sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ecf0f1; /* 确保标题颜色一致 */
}

.country-list {
    list-style-type: none; /* 去除默认列表样式 */
    padding: 0;
    margin: 0;
}

.country-list li {
    margin-bottom: 10px;
}
.country-list li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.country-list li a:hover {
    color: #ffffff; /* 鼠标悬停时颜色变化 */
}

/* 主要内容区域 */
.main-content .content {
    flex: 1;
    padding-left: 20px;
}
/* 响应式设计 */
@media (max-width: 1400px) {
    .carousel-container,
    #mainCarousel,
    .hotel-carousel-section #hotelCarousel {
        width: 100%;
        height: auto;
    }

    #hotelCarousel .hotel-carousel-image,
    #mainCarousel .carousel-image {
        height: auto;
    }

    /* 调整颜色区块在大屏幕下的上边距 */
    #colorBlock {
        margin: 12px auto; /* 从25px缩减为12px */
    }
}
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-menu {
        gap: 1rem;
        display: none; /* 假设在小屏幕使用汉堡菜单 */
    }

    .carousel-section {
        margin-top: 60px;
        margin-bottom: 5px; /* 从30px缩减为15px */
    }

    .carousel-container,
    #mainCarousel,
    #hotelCarousel {
        width: 100%;
        height: auto;
    }

    #hotelCarousel .hotel-carousel-image,
    #mainCarousel .carousel-image {
        height: auto;
    }

     /* 酒店轮播图调整 */
     #hotelCarousel .carousel-inner .carousel-item {
        height: 200px;
    }

    /* 活动轮播图调整 */
    #mainCarousel .carousel-inner .carousel-item {
        height: 200px;
    }

  /* 调整颜色区块在小屏幕下的高度和上边距 */
  #colorBlock {
    height: 200px;
    margin: 5px auto; /* 缩减为5px */
    padding-top: 10px; /* 根据需要调整 */
    }

    .nav-buttons .btn-login,
    .nav-buttons .btn-book {
        padding: 0.4rem 0.8rem;
    }

    #hotelCarousel .carousel-caption h5,
    #mainCarousel .carousel-caption h5 {
        font-size: 1.2rem;
    }

    #hotelCarousel .carousel-caption p,
    #mainCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
    .title-image {
        width: 120px;            /* 调整宽度 */
        margin-bottom: 15px;     /* 减少与第一段文字的间距 */
    }

    /* 调整文字样式 */
    .journey-text-1 {
        font-size: 1.2rem;         /* 调整字体大小适应小屏幕 */
    }

    .journey-text-2 {
        font-size: 1rem;           /* 调整字体大小适应小屏幕 */
    }

    .journey-text-3 {
        font-size: 0.9rem;         /* 调整字体大小适应小屏幕 */
    }

    .journey-text-4 {
        font-size: 0.8rem;         /* 调整字体大小适应小屏幕 */
    }
     /* 手机图片在小屏幕下调整大小 */
     .phone-image {
        width: 80px;    /* 根据需要调整 */
        height: 80px;   /* 根据需要调整 */
    }

   /* 标题图片在小屏幕下调整大小 */
   #colorBlock .title-image {
    max-width: 70%; /* 增大小屏幕下的图片宽度 */
    }
   /* 标题图片在小屏幕下调整大小 */
   #colorBlock .title-image {
    width: 100px;   /* 保持相同大小 */
    height: 50px;
    }
}
