* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    /* 弹性布局 */
    flex-direction: column;
    /* 主轴为垂直方向 */
    justify-content: center;
    /* 垂直居中 */
    align-items: center;
    /* 水平居中 */
    width: 100vw;
    font-family: "微软雅黑";
    font-size: 14px;
}

/*公共样式*/
.w {
    width: 1300px;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    /*去掉下划线*/
    color: inherit;
    /* 去除字体颜色 */
}

/* <!-- 版心1200px ，最大宽度1400px -->
<!-- 常用字体颜色 ：#323232 ， #646464 ， #999999 -->
<!-- 设计尺寸规范
网页宽度：1920px
首屏高度：700-750px
主体内容区域：1200px

字体规范
常用中文字体：宋体、微软雅黑、苹方
常用英文字体：Arial、sans

中文字符常用尺寸：
导航文字14px、16px、18px、20px；
本文内容12px，14px；
标题22px、24px、26px、28px、30px；
辅助信息12px，14px。

英文字符常用尺寸：
标题10-16px；
本文内容10-16px；
底部信息最小10px。 --> */

/*==============================================================一锅粥导航栏开始==============================================================*/

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    /*vw表示视窗宽度*/

    height: 410px;
    background: linear-gradient(to right, #acecea, #f3d9e4);
}


/*==============================================================一锅粥导航栏导航标题开始========================================================*/

.nav-title {
    width: 1300px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    /* 固定定位 */
    top: 0;
    left: 50%;
    z-index: 999;
    transform: translateX(-50%);
    /* 居中 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.hidden {
            top: -60px; /* 隐藏导航栏 */
        }
.nav-left {
    width: 100px;
    height: 75px;
    /* background-color: #fff; */
}

.nav-left img {
    width: 100%;
    height: 100%;
}

.nav-user {
    margin-right: 20px;
}

.nav-user::before {
    content: "";
    display: block;
    background: url(../img/user.svg) no-repeat center center;
    margin: 5px auto 5px;
    width: 20px;
    height: 20px;
}

.nav-right {
    height: 60px;
    /* 整体向右移动 */
    margin-left: 510px;
    /* background-color: #fff; */
}

.nav-right ul {
    /* 所有li在一行显示 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right ul li {
    margin: 20px 15px 20px 20px;
    /*四个5px代表上下左右的间距*/
}

.nav-right ul li a {
    font-size: 16px;
}

.nav-right ul li a:hover {
    color: #323232;
}

/*==============================================================一锅粥导航栏导航标题结束========================================================*/

.tip {
    position: absolute;
    top: 65px;
    right: 120px;
    width: 500px;
    height: 20px;
    /* background-color: #fff; */
}

/*==============================================================一锅粥导航栏结束==============================================================*/

/*主题色切换按钮位置*/
.mode {
    position: fixed;
    bottom: 150px;
    right: 10px;
    background-color: rgb(0, 0, 0, 0.2);
}


/*2024年9/15日更新*/

/*==============================================================一锅粥简介区域开始=============================================================*/
.content-intro {
    width: 100%;
    height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f3f3f3;
}

.content-intro ul {
    box-sizing: border-box;
    width: 100%;
    height: 88px;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #323232;
}

.content-intro ul p {
    text-align: left;

    margin: 10px 50px 0px 0px;
    /*依次为上右下左的外边距*/
    font-size: 12px;
}

/*==============================================================一锅粥简介区域结束=============================================================*/





/*====================================================一锅粥精彩推荐轮播图区域开始=============================================================*/
.content-lunbo {
    width: 100%;
    height: 450px;
    display: flex;
    margin-top: 30px;
}

.lunbo {
    width: 866px;
    height: 450px;
    position: relative;
}

/*设置轮播图的图片大小*/
.lunbo img {
    width: 866px;
    height: 450px;

}



/*设置轮播图的按钮*/
.lunbo-btn {
    position: absolute;
    bottom: 40px;
    left: 10%;
    transform: translateX(-50%);
    display: flex;
    /*设置按钮为行内块元素*/
    justify-content: space-between;
    /*按钮两端对齐*/
    width: 100px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.active {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    /*设置圆形按钮*/
    /* 按钮上下左右在span元素内居中 */
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 5px;
    margin-right: 5px;
    background-color: orange;
}

.lunbo-btn span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
}

.lunbo-btn span:hover {
    background-color: #fff;
    transform: scale(1.5);
}

.lunbo-btn-prev {

    position: absolute;
    /*绝对定位*/
    top: 50%;
    /*按钮距离顶部距离*/
    left: 20px;
    /*按钮距离左侧距离*/
    transform: translateY(-50%);
    cursor: pointer;

}

/* 按钮显示 */
.lunbo-btn-prev span {
    transform: rotate(180deg);
}

.lunbo-btn-next {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    right: 20px;
}

/* 一锅粥精彩推荐右边推荐区域开始 */
.lunbo-right {
    display: flex;
    flex-direction: column;
    /*设置子元素为垂直方向*/
    justify-content: space-around;
    /* float: right; */
    width: 430px;
    height: 450px;
    margin-left: 8px;
    background: linear-gradient(to right, #acecea, #f3d9e4);

}

.lunbo-right ul {
    box-sizing: border-box;
    margin-left: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.lunbo-right ul li {
    margin: 10px 0px;
    font-size: 14px;
}

/* 一锅粥精彩推荐右边推荐区域结束 */

/*====================================================一锅粥精彩推荐轮播图区域结束=============================================================*/


/* 2024年9/24日更新 */
/*====================================================一锅粥tab标签区域开始区域开始=============================================================*/
.tab {
    display: flex;
    height: 490px;
    margin-top: 30px;
}

/* 新的标签按钮样式 */
.tablinks {
    display: flex;
    height: 500px;
    flex-direction: column;
}

/* 标签按钮样式 */
.tab button {
    display: flex;
    justify-content: center;
    background-color: #f3d9e4;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    margin-bottom: 10px;
    /* 修改此处来设置标签的间距 */
}

/* 将按钮设置为初始激活状态 */
.tab button.activea {
    background-color: #acecea;
}

/* 内容区域样式 */
.tabcontent {
    display: flex;
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    flex: 1;
}

.tab-ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;

}

.tab-ul ul {
    display: flex;
    width: 370px;
    height: 200px;
    margin: 10px;
    background-color: #acecea;
}

.tab-ul ul img {
    width: 100%;
    height: 100%;
}

/* 设置标签内容ul的样式为可换行 */
/* 当按钮激活时显示内容 */
.tab button.activea+.tabcontent {
    display: block;
}

/*====================================================一锅粥tab标签区域开始区域结束=============================================================*/

/*====================================================一锅粥预告区域开始=======================================================================*/

.trailer {
    display: flex;
    justify-content: center;
    /*水平居中*/
    align-items: center;
    /*垂直居中*/
    height: 400px;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}

.trailer ul li {
    width: 200px;
    height: 300px;
    margin: 0 auto;
    padding: 50px;
    font-size: 18px;
}

.trailer-left {
    width: 450px;
    height: 400px;
    background: linear-gradient(to right, #b2fbf8, #b0f6f3);
}

.trailer-center {
    width: 400px;
    height: 450px;
    background: linear-gradient(to right, #b0f6f3, #def7f6);
}

.trailer-right {
    width: 450px;
    height: 400px;
    background: linear-gradient(to right, #def7f6, #f3d9e4);
}

.UpdateLog {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -35px;
}

/*====================================================一锅粥预告区域结束=======================================================================*/

.test {
    display: flex;
    justify-content: center;
    align-items: center;
}

.test img {
    width: 1300px;
    height: 100%;
    margin-top: 25px;
}

footer {
    width: 100%;
    height: 250px;
    background-color: #000;
    color: #fff;
    margin-top: 25px;
}

footer p {
    /* height: 100px; */
    line-height: 250px;
    font-size: 30px;
    text-align: center;
    align-items: center;
}

/* 底部滚动图片测试区域开始 */
.container1 {
    width: 800px; /* 容器宽度 */
    position: relative; /* 相对定位 */
    overflow: hidden; /* 溢出隐藏 */
    margin-top: 50px;
}

.image-list { /* 特定类名 */
    width: 800px; /* 列表宽度 */
    height: 150px; /* 列表高度 */
    overflow: hidden; /* 溢出部分隐藏 */
    display: flex; /* 使用Flexbox布局 */
    position: relative; /* 位置相对 */
}

.image-item { /* 特定类名 */
    list-style: none; /* 移除列表标志 */
    height: 100%; /* 项目高度100% */
    padding-right: 20px; /* 项目间距 */
}

.image-item img { /* 图片样式 */
    width: 200px; /* 图片宽度 */
    height: 150px; /* 图片高度 */
    object-fit: cover; /* 保持原有尺寸比例，裁切长边 */
    object-position: center; /* 图片定位正中间 */
}

.btns {
    display: flex; /* 使用Flexbox布局 */
    justify-content: center; /* 居中按钮 */
    padding-top: 50px; /* 上方内边距 */
}

.btn {
    color: #000; /* 字体颜色 */
    border: 1px solid #ddd; /* 边框样式 */
    padding: 5px 15px; /* 内边距 */
    margin: 0 15px; /* 外边距 */
    border-radius: 3px; /* 圆角效果 */
    font-size: 14px; /* 字体大小 */
    cursor: pointer; /* 鼠标指针样式 */
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.2); /* 悬停效果 */
}
/* 底部滚动图片测试区域结束 */



/* 侧边栏样式开始 */
.container{
    width: 10px;
    height: 600px;
    /* 绝对固定定位 */
    position: fixed;
    right: 0;
    /* 垂直居中 */
    top: 50%;
    transform: translateY(-50%);
    /* 设置背景色为透明 */
    background-color: #222;
    /* 右上右下圆角 */
    border-radius: 15px 0 0 15px;
    overflow: hidden;
    /* 动画过渡 */
    transition: 0.3s;
    /* 鼠标手形样式  */
    cursor: pointer;
}
.container:hover{
    /* 鼠标移入，展开+改变圆角大小 */
    width: 70px;
    border-radius: 15px 0 0 15px;
}
.container:hover li a{
    /* 鼠标移入，改变字体颜色 */
    color: #fff;
}
.container::before{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: lightseagreen;
}
.container .top{
    width: calc(100% - 30px);
    margin-left: 30px;
    height: 20%;
    background-color: #222;
    border-radius: 0 0 0 20px;
    /* 动画过渡 */
    transition: 0.2s;
}
.container .middle{
    width: calc(100% - 60px);
    height: 10%;
    background-color: lightseagreen;
    margin-left: 40px;
    border-radius: 20px;
}
.container .bottom{
    width: calc(100% - 30px);
    height: 100%;
    margin-left: 30px;
    background-color: #222;
    border-radius: 20px 0 0 0;
}
.container li{
    /* 绝对定位 */
    position: absolute;
    /* 通过var函数调用自定义属性--t */
    top: var(--t);
    width: 100%;
    height: 10%;
    font-size: 15px;
    /* 弹性布局 水平垂直居中 */
    display: flex;
    justify-content: center;
    align-items: center;
}
.container li a{
    /* 字体颜色透明 */
    color: transparent;
    /* 动画过渡 */
    transition: 0.3s;
}
/* 分别为每一个li元素设置.top的高度 */
/* ~是兄弟选择器 */
.container li:nth-child(1):hover ~ .top{
    height: 20%;
}
.container li:nth-child(2):hover ~ .top{
    height: 30%;
}
.container li:nth-child(3):hover ~ .top{
    height: 40%;
}
.container li:nth-child(4):hover ~ .top{
    height: 50%;
}
.container li:nth-child(5):hover ~ .top{
    height: 60%;
}
.container li:nth-child(6):hover ~ .top{
    height: 70%;
}


/* 侧边栏样式结束 */