body {
    max-width: 540px;
    min-width: 320px;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000;
    background: #f2f2f2;
    margin: 0 auto;
    overflow-x: hidden;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #222;
}

/* 顶部搜索 */

.search-index {
    display: flex;
    align-items: center;
    /* transform: translateX(-50%); */
    /* 固定盒子必须有宽度 */
    /* 如果依据窗口fixed定位较为麻烦 */
    width: 100%;
    /* max-width: 540px;
    min-width: 320px; */
    height: 44px;
    position: relative;
}

.search-index input {
    padding-left: 30px;
    flex: 1;
    margin-right: 5px;
   
}

.search-index::before {
    content: "";
    background-image: url("../images/search.png");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width:20px;
    height: 20px;
}

.search-index img {
    width: 25px;
    height: auto;
}

/* 轮播 */

.focus {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-inner {
    display: flex;
    width: 100%;
}

.carousel-inner img {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* 局部导航 */

.local-nav {
    display: flex;
    height: 64px;
    background-color: hsl(0, 33%, 99%);
    border-radius: 8px;
    margin: 3px 0;

}

.local-nav li {
    flex: 1;
}

.local-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: linear-gradient(45deg, red, yellow);

    margin: 1px;
}

.local-nav img {
    width: 32px;
    height: auto;
    margin-top: 5px;
}

/* 主导航栏 */
nav {
    overflow: hidden;
    margin: 2px 0;
    border-radius: 8px;
}

nav .nav-common {
    display: flex;
    height: 88px;
}

nav .nav-common:nth-child(2) {
    margin: 2px 0;
}

/* 第一行酒店背景 */
nav .nav-common:nth-child(1) .nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: url(../images/jiudian2.jpg) no-repeat;
    background-size: 100% auto;
}

/* 第二行机票背景 */
nav .nav-common:nth-child(2) .nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: url(../images/CA.png) no-repeat center;
    background-size: contain; /* 改为 contain 确保图片完整显示 */
}

/* 第三行旅游背景 */
nav .nav-common:nth-child(3) .nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: url(../images/haiwailvyou1.jpg) no-repeat;
    background-size: 100% auto;
}

.nav-items a {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px #000;
}

.nav-items a:nth-child(1) {
    border-bottom: 1px solid rgb(255, 255, 255);
}

.nav-common .nav-items:nth-child(1) {
    position: relative;
    display: flex;
    justify-content: center;
}

.nav-common .nav-items:nth-child(1) a {
    border: 0;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);

}

/* 前两个 */
nav .nav-items:nth-child(-n+2) {
    border-right: 2px solid #fff;
}

/* 功能导航栏 */
.subnav-entry {
    border-radius: 8px;
    background-image: linear-gradient(45deg, #3d94ff, #59c2ff);
    display:flex;
    flex-wrap: wrap;
    margin:2px 0;
}
.subnav-entry li{
    flex:20%;
}
.subnav-entry li a{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.subnav-icon img{
    width: 40px;
    height:auto;
}
/* sales */
.sales{
    display: flex;
    height:250px;
}
.sales .left{
    flex:60%;
    background-color: #f6f9f6;
    display: flex;
    flex-direction: column;
    justify-content:space-around;
    align-items: center;
    margin-right: 3px;
}
.sales .left video{
    flex:70%;
    
}
.sales .left span{
    flex:30%;
    padding: 10px;
}
#red{
    padding-left: 85px;
    color:red;
}
.sales .right{
    flex:40%;
    display: flex;
    flex-direction: column;
}

.right .right-items:nth-child(1){
    flex:1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f6f9f6;
    margin-bottom: 3px;
    overflow: hidden;
}
.right .right-items:nth-child(2){
    flex:1;
    display: flex;
    background-color: #f6f9f6; 
    overflow: hidden;
}
.right video{
    width:50px;
}
.right span{
    color: #ff0000;
    font-weight: 800;
}

.right-items:nth-child(2) div{
    flex:1;
}
.bottom0{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.bottom0 img{
    width:50px;
    
}
.bottom1{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.bottom1 span{
    flex:30%;
}
.bottom1 img{
    width: 70px;    
}