/* 禁用水平滚动条 */
body {
    overflow-x: hidden;
}
/* 确保所有元素宽度不溢出 */
* {
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
/* 当屏幕宽度小于 768px 时的样式 */
@media screen and (max-width: 1024px) {
    .header {
        font-size: 16px;
        /* 新增以下三行代码，让header固定在顶部 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px; /* 根据实际情况调整header高度 */;
        background-color: #ffffff; /* 根据实际情况调整背景色 */
        z-index: 1000; /* 确保header在最上层 */
    }
    .main-content {
        width: 100%;
        margin: 0 auto;
        /* 为了避免内容被header遮挡，添加一个顶部外边距 */
        margin-top: 30px; /* 根据header的实际高度调整 */
    }
  
    /* 通用样式 */
    body {
        font-size: 16px; /* 基础字体大小 */
        line-height: 1.5; /* 行高 */
    }
  
    /* 顶部样式 */
    .top {
        padding: 10px; /* 内边距 */
    }
  
    .topone {
        display: flex;
        flex-direction: column; /* 手机端垂直排列 */
        align-items: center;
    }
  
    .toptwo {
        display: none;
        margin-bottom: 10px;
        text-align: center;
    }
  
    .topkong {
        display: none; /* 隐藏空白区域 */
    }
  
    .topthree {
        display: none;
        flex-direction: column;
        align-items: center;
    }
  
    .topthreeone {
        margin-bottom: 5px;
    }
  
    /* 头部样式 */
    .header {
        padding: 10px;
        background-color: #ffffff;
    }
  
    .navone {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
        padding: 0 10px;
    }
    
    .navone > * {
        flex: 0 0 auto;
    }
    
    .hamburger {
        order: 1;
        margin-right: auto;
    }
    
    .logo {
        order: 2;
        margin: 0 auto;
    }
    
    .shopcar {
        order: 3;
        margin-left: auto;
        margin-top: 0;
    }
  

    .logo img {
        width: 100px; /* 图片宽度占满 logo 容器 */
        height: auto; /* 高度自适应，保持图片比例 */
    }


    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
        overflow-y: auto; /* 允许垂直滚动，解决内容显示不下的问题 */
        max-height: calc(100vh - 50px); /* 最大高度为视口高度减去顶部导航栏高度 */
        background-color: #ffffff; /* 新增：导航链接背景色 */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 新增：导航链接阴影 */       
        margin-top: 45px; /* 新增：导航链接顶部外边距 */
    }
    
         /* 为导航链接容器设置样式 */
           .nav-links-1 {
            height: auto;
            width: calc(100% - 20px);
            background-color: #f5f5f7;
            margin: 0 auto;
            padding-left: 28px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            padding-top: 10px;
            padding-bottom: 10px;
            border-radius: 10px;
        }

        /* 为“我的账户”标题设置样式 */
       .nav-links-1-1 h5 {
            margin: 0;
        }

        /* 为“您好”和“请登陆”容器设置样式 */
       .nav-links-1-2 {
            display: flex;
            align-items: center;
            margin: 0;
        }

        /* 为“您好”段落设置样式 */
       .nav-links-1-2 p {
            margin: 0;
            margin-right: 5px; /* 可根据需要调整“您好”和“请登陆”之间的间距 */
        }

        /* 为“请登陆”链接设置样式 */
       .nav-links-1-2 a {
            text-decoration: none;
        }

        /* 为新增的垂直导航链接容器设置样式 */
       .nav-links-1-3 {
            display: flex;
            flex-direction: column;
            width: 100%;
            margin-top: 10px;
        }

        /* 为垂直导航链接项设置样式 */
       .profile-nav-item {
            display: block;
            padding: 10px 40px;
            text-decoration: none;
            color: #333;
            font-size: 14px;
            position: relative;
        }
        
        /* 创建上边线伪元素 */
       .profile-nav-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #e0e0e0;
        }
        
        /* 移动端上边线宽度设为屏幕宽度的80% */
        @media (max-width: 768px) {
           .profile-nav-item::before {
                width: 80vw;
                left: 45%;
                transform: translateX(-45%);
            }
        }

        /* 为垂直导航链接项悬停效果设置样式 */
       .profile-nav-item:hover {
            background-color: #f5f5f5;
        }

        .nav-links-2{
            width: 100%;
            height: auto;
            
        }
        
        .links1 {
            margin-left: 17px;
            width: 92%;
            border-bottom: 1px solid #000;
            padding: 5px 0;
        }
        .links1-1 {
            margin-top: 20px;
            margin-left: 17px;
            width: 100%;
        }

     /* 为 nav-links-3 容器设置样式 */
   .nav-links-3 {
    width: 100%;
    height: 300px; /* 高度自适应内容 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 内容靠左对齐 */
    padding: 20px; /* 添加内边距，使内容不紧贴边缘 */
    box-sizing: border-box; /* 确保内边距包含在宽度内 */
    background-color: #ffffff; /* 设置背景颜色 */
    border-top: 1px solid #e0e0e0; /* 添加顶部边框 */
}

/* 为 nav-links-3-1 容器设置样式 */
.nav-links-3-1 {
    width: 100%;
    margin-bottom: 15px; /* 底部外边距，分隔两个部分 */
}

/* 为 nav-links-3-1-1 容器设置样式 */
.nav-links-3-1-1 {
    margin-bottom: 5px; /* 底部外边距，分隔元素 */
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中对齐 */
}

/* 为 h6 标题设置样式 */
.nav-links-3-1-1 h6 {
    margin: 0;
    font-size: 14px;
    color: #0e0d0d;
}

/* 为 h5 标题和链接设置样式 */
.nav-links-3-1-1 h5 {
    margin: 0;
    font-size: 16px;
    color: #141414; /* 链接颜色 */
}

/* 为图片设置样式 */
.nav-links-3-1-1 img {
    width: 16px; /* 图片宽度 */
    height: 16px; /* 图片高度 */
    margin-right: 8px; /* 右侧外边距，分隔图片和文字 */
}

/* 为 nav-links-3-2 容器设置样式 */
.nav-links-3-2 {
    width: 100%;
}

/* 为 h5 标题设置样式 */
.nav-links-3-2 h5 {
    margin: 0;
    font-size: 12px;
    color: #0a0a0a;
}
.nav-links-3-3 {
    margin-top: 10px;
}

/* 为快速登陆按钮添加样式 */
.nav-links-3-3 button {
    background-color: red; /* 设置背景颜色为红色 */
    color: white; /* 设置文字颜色为白色 */
    border: none; /* 移除边框 */
    border-radius: 20px; /* 设置圆角，可根据需要调整 */
    padding: 10px 20px; /* 设置内边距，可根据需要调整 */
    font-size: 16px; /* 设置字体大小，可根据需要调整 */
    cursor: pointer; /* 设置鼠标指针样式为手型 */
    transition: background-color 0.3s ease; /* 添加背景颜色过渡效果 */
}

/* 鼠标悬停时的样式 */
.nav-links-3-3 button:hover {
    background-color: darkred; /* 悬停时背景颜色变为深红色 */
}

/* 洗车指数样式 */
.car-wash-index {
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f5f7;
    border-radius: 5px;
    width: 100%;
}

.car-wash-index h5 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

/* 天气位置显示样式 */
.weather-location {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    color: #333 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.weather-location i {
    margin-right: 5px !important;
    color: #ee131e !important;
    font-size: 12px !important;
    display: inline-block !important;
}

.weather-location span {
    font-weight: bold !important;
    color: #000 !important;
    font-size: 14px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 天气预报样式 */
.weather-forecast {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32%;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    font-size: 11px;
}

.forecast-date {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.forecast-icon {
    font-size: 24px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forecast-icon i {
    font-size: 24px;
    color: #333;
}

.forecast-temp {
    color: #666;
    margin-bottom: 3px;
}

.forecast-desc {
    color: #999;
    text-align: center;
}

/* 登录信息样式 */
.login-info {
    font-size: 14px;
    color: #666;
    margin-top: 50px;
    line-height: 1.5;
}

/* 洗车指数样式 */
.car-wash-index {
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f5f7;
    border-radius: 5px;
    width: 100%;
}

.car-wash-index h5 {
    margin: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
   

    .shopcar {
        margin-top: 10px;
    }
    @media (max-width: 760px) {
        .shopcar {
            position: relative;
            top: 0;
            right: 0;
            margin-left: auto;
        }
        .shopcar img{
            width: 20px;
            height: 100%;
        }
    }
    /* 正常屏幕宽度下，可根据需要设置购物车按钮样式 */
    .cart-button {
        /* 这里可以添加你在正常屏幕宽度下希望按钮有的样式 */
        border: 1px solid #ccc;
        background-color: #f0f0f0;
        padding: 10px 20px;
        cursor: pointer;
    }
  
    .cart-button {
        border: none;
        background-color: transparent;
        padding: 0;
        margin: 0;
        text-decoration: none;
        cursor: default;
        font-family: inherit;
        font-size: inherit;
        font-weight: inherit;
        color: inherit;
        outline: none;
    }
  
    /* 同时也可以处理按钮不同状态下的样式，确保完全清除 */
    .cart-button:hover,
    .cart-button:active,
    .cart-button:focus {
        border: none;
        background-color: transparent;
        text-decoration: none;
        outline: none;
    }
  
    /* 三条杠新增的样式 */
    .hamburger {
        display: none; /* 默认隐藏 */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        position: relative; /* 新增：为子元素定位 */
    }
    .hamburger div {
        width: 100%;
        height: 3px;
        background-color: black;
        transition: all 0.3s ease-in-out; /* 新增：过渡效果 */
        position: absolute; /* 绝对定位，方便精确控制位置 */
        top: 50%; /* 初始垂直居中 */
        transform-origin: center; /* 旋转中心点为中心 */
    }
    .hamburger div:nth-child(1) {
        transform: translateY(-8px); /* 第一条线向上移动 */
    }
    .hamburger div:nth-child(3) {
        transform: translateY(8px); /* 第三条线向下移动 */
    }
    @media (max-width: 768px) {
        .hamburger {
            display: flex; /* 小屏幕显示 */
            position: relative;
            top: 0;
            left: 0;
        }
  
        .nav-links {
            display: none; /* 初始隐藏导航链接 */
            flex-direction: column;
            width: 100%;
            height: auto;
            overflow-y: auto; /* 允许垂直滚动，解决内容显示不下的问题 */
            max-height: calc(100vh - 50px); /* 最大高度为视口高度减去顶部导航栏高度 */
        }
        .nav-links.show {
            display: flex; /* 显示导航链接 */
            flex-direction: column; /* 垂直排列子元素 */
            height: calc(100vh - 50px); /* 固定高度，从顶部导航栏下方到屏幕底部 */
            width: 100vw; /* 宽度与屏幕同宽 */
            margin: 0; /* 移除外边距 */
            padding: 0; /* 移除内边距 */
            position: fixed; /* 固定定位确保覆盖整个屏幕 */
            top: 50px; /* 顶部位置，与顶部导航栏高度匹配 */
            bottom: 0; /* 底部紧贴屏幕底部 */
            left: 0; /* 左对齐 */
            z-index: 1000; /* 确保在最上层 */
            box-sizing: border-box; /* 确保宽度计算包含内边距和边框 */
            overflow-x: hidden; /* 禁止左右滑动 */
            overflow-y: auto; /* 允许垂直滚动 */
            background-color: #ffffff; /* 确保背景色不透明 */
        }
        .nav-links span {
            display: none; /* 隐藏竖线 */
        }
    }
  
    /* 点击后将汉堡菜单转换为“×” */
    .hamburger.open div:nth-child(1) {
        transform: rotate(45deg); /* 旋转第一条线 */
    }
    .hamburger.open div:nth-child(2) {
        opacity: 0; /* 隐藏第二条线 */
    }
    .hamburger.open div:nth-child(3) {
        transform: rotate(-45deg); /* 旋转第三条线 */
    }
  }
  /* 当屏幕宽度在 768px 到 1024px 之间时的样式 */
  @media screen and (min-width: 768px) and (max-width: 1024px) {
    .header {
        font-size: 16px;
        /* 新增以下三行代码，让header固定在顶部 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px; /* 根据实际情况调整header高度 */;
        background-color: #ffffff; /* 根据实际情况调整背景色 */
        z-index: 1000; /* 确保header在最上层 */
    }
    .main-content {
        width: 100%;
        margin: 0 auto;
        /* 为了避免内容被header遮挡，添加一个顶部外边距 */
        margin-top: 30px; /* 根据header的实际高度调整 */
    }
  
    /* 通用样式 */
    body {
        font-size: 16px; /* 基础字体大小 */
        line-height: 1.5; /* 行高 */
    }
  
    /* 顶部样式 */
    .top {
        padding: 10px; /* 内边距 */
    }
  
    .topone {
        display: flex;
        flex-direction: column; /* 手机端垂直排列 */
        align-items: center;
    }
  
    .toptwo {
        display: none;
        margin-bottom: 10px;
        text-align: center;
    }
  
    .topkong {
        display: none; /* 隐藏空白区域 */
    }
  
    .topthree {
        display: none;
        flex-direction: column;
        align-items: center;
    }
  
    .topthreeone {
        margin-bottom: 5px;
    }
  
    /* 头部样式 */
    .header {
        padding: 10px;
        background-color: #ffffff;
    }
  
    .navone {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
  
    .logo {
        margin-bottom: 10px;
        position: absolute;  /* 使用绝对定位 */
        top: 15px;  /* 距离顶部为 0 */
        left: 50%;  /* 水平方向上距离左边为父容器宽度的 50% */
        transform: translateX(-50%);  /* 向左移动自身宽度的 50%，以实现水平居中 */
        width: 100px; /* 调整这个值可以改变 logo 容器的宽度，图片会相应缩小 */
    }
    .logo img {
        width: 100px; /* 图片宽度占满 logo 容器 */
        height: auto; /* 高度自适应，保持图片比例 */
    }


    .nav-links {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            height: auto;
            overflow-y: auto; /* 允许垂直滚动，解决内容显示不下的问题 */
            max-height: calc(100vh - 50px); /* 最大高度为视口高度减去顶部导航栏高度 */
            background-color: #ffffff; /* 新增：导航链接背景色 */
            border-radius: 0 0 3px 3px; /* 新增：导航链接圆角 - 只保留底部圆角 */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 新增：导航链接阴影 */       
            margin-top: 40px; /* 新增：导航链接顶部外边距 */
        }
    
         /* 为导航链接容器设置样式 */
           .nav-links-1 {
            height: auto;
            width: calc(100% - 20px);
            background-color: #f5f5f7;
            margin: 0 auto;
            padding-left: 28px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            padding-top: 10px;
            padding-bottom: 10px;
            border-radius: 10px;
        }

        /* 为“我的账户”标题设置样式 */
       .nav-links-1-1 h5 {
            margin: 0;
        }

        /* 为“您好”和“请登陆”容器设置样式 */
       .nav-links-1-2 {
            display: flex;
            align-items: center;
            margin: 0;
        }

        /* 为“您好”段落设置样式 */
       .nav-links-1-2 p {
            margin: 0;
            margin-right: 5px; /* 可根据需要调整“您好”和“请登陆”之间的间距 */
        }

        /* 为“请登陆”链接设置样式 */
       .nav-links-1-2 a {
            text-decoration: none;
        }

        .nav-links-2{
            width: 100%;
            height: auto;
            
        }
        
        .links1 {
            margin-left: 17px;
            width: 92%;
            border-bottom: 1px solid #000;
            padding: 5px 0;
        }
        .links1-1 {
            margin-top: 20px;
            margin-left: 17px;
            width: 100%;
        }

     /* 为 nav-links-3 容器设置样式 */
   .nav-links-3 {
    width: 100%;
    height: 300px; /* 高度自适应内容 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 内容靠左对齐 */
    padding: 20px; /* 添加内边距，使内容不紧贴边缘 */
    box-sizing: border-box; /* 确保内边距包含在宽度内 */
    background-color: #ffffff; /* 设置背景颜色 */
    border-top: 1px solid #e0e0e0; /* 添加顶部边框 */
}

/* 为 nav-links-3-1 容器设置样式 */
.nav-links-3-1 {
    width: 100%;
    margin-bottom: 15px; /* 底部外边距，分隔两个部分 */
}

/* 为 nav-links-3-1-1 容器设置样式 */
.nav-links-3-1-1 {
    margin-bottom: 5px; /* 底部外边距，分隔元素 */
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中对齐 */
}

/* 为 h6 标题设置样式 */
.nav-links-3-1-1 h6 {
    margin: 0;
    font-size: 14px;
    color: #0e0d0d;
}

/* 为 h5 标题和链接设置样式 */
.nav-links-3-1-1 h5 {
    margin: 0;
    font-size: 16px;
    color: #141414; /* 链接颜色 */
}

/* 为图片设置样式 */
.nav-links-3-1-1 img {
    width: 16px; /* 图片宽度 */
    height: 16px; /* 图片高度 */
    margin-right: 8px; /* 右侧外边距，分隔图片和文字 */
}

/* 为 nav-links-3-2 容器设置样式 */
.nav-links-3-2 {
    width: 100%;
}

/* 为 h5 标题设置样式 */
.nav-links-3-2 h5 {
    margin: 0;
    font-size: 12px;
    color: #0a0a0a;
}
.nav-links-3-3 {
    margin-top: 10px;
}

/* 为快速登陆按钮添加样式 */
.nav-links-3-3 button {
    background-color: red; /* 设置背景颜色为红色 */
    color: white; /* 设置文字颜色为白色 */
    border: none; /* 移除边框 */
    border-radius: 20px; /* 设置圆角，可根据需要调整 */
    padding: 10px 20px; /* 设置内边距，可根据需要调整 */
    font-size: 16px; /* 设置字体大小，可根据需要调整 */
    cursor: pointer; /* 设置鼠标指针样式为手型 */
    transition: background-color 0.3s ease; /* 添加背景颜色过渡效果 */
}

/* 鼠标悬停时的样式 */
.nav-links-3-3 button:hover {
    background-color: darkred; /* 悬停时背景颜色变为深红色 */
}
   

    .shopcar {
        margin-top: 10px;
    }
    @media (min-width: 760px) {
        .shopcar {
            position: absolute;
            top: 15px;
            right: 30px;
        }
        .shopcar img{
            width: 20px;
            height: 100%;
        }
    }
    /* 正常屏幕宽度下，可根据需要设置购物车按钮样式 */
    .cart-button {
        /* 这里可以添加你在正常屏幕宽度下希望按钮有的样式 */
        border: 1px solid #ccc;
        background-color: #f0f0f0;
        padding: 10px 20px;
        cursor: pointer;
    }
  
    .cart-button {
        border: none;
        background-color: transparent;
        padding: 0;
        margin: 0;
        text-decoration: none;
        cursor: default;
        font-family: inherit;
        font-size: inherit;
        font-weight: inherit;
        color: inherit;
        outline: none;
    }
  
    /* 同时也可以处理按钮不同状态下的样式，确保完全清除 */
    .cart-button:hover,
    .cart-button:active,
    .cart-button:focus {
        border: none;
        background-color: transparent;
        text-decoration: none;
        outline: none;
    }
  
    /* 三条杠新增的样式 */
    .hamburger {
        display: none; /* 默认隐藏 */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        position: relative; /* 新增：为子元素定位 */
    }
    .hamburger div {
        width: 100%;
        height: 3px;
        background-color: black;
        transition: all 0.3s ease-in-out; /* 新增：过渡效果 */
        position: absolute; /* 绝对定位，方便精确控制位置 */
        top: 50%; /* 初始垂直居中 */
        transform-origin: center; /* 旋转中心点为中心 */
    }
    .hamburger div:nth-child(1) {
        transform: translateY(-8px); /* 第一条线向上移动 */
    }
    .hamburger div:nth-child(3) {
        transform: translateY(8px); /* 第三条线向下移动 */
    }
    @media (min-width: 768px) and (max-width: 1024px) {
        .hamburger {
            display: flex; /* 小屏幕显示 */
            position: absolute;
            top: 20px;
            left: 20px;
        }
  
        .nav-links {
            display: none; /* 初始隐藏导航链接 */
            flex-direction: column;
            width: 100%;
            height: auto;
            overflow-y: auto; /* 允许垂直滚动，解决内容显示不下的问题 */
            max-height: calc(100vh - 50px); /* 最大高度为视口高度减去顶部导航栏高度 */
        }
        .nav-links.show {
            display: flex; /* 显示导航链接 */
            flex-direction: column; /* 垂直排列子元素 */
            height: calc(100vh - 50px); /* 固定高度，从顶部导航栏下方到屏幕底部 */
            width: 100vw; /* 宽度与屏幕同宽 */
            margin: 0; /* 移除外边距 */
            padding: 0; /* 移除内边距 */
            position: fixed; /* 固定定位确保覆盖整个屏幕 */
            top: 70px; /* 顶部位置，与顶部导航栏高度匹配 */
            bottom: 0; /* 底部紧贴屏幕底部 */
            left: 0; /* 左对齐 */
            z-index: 1000; /* 确保在最上层 */
            box-sizing: border-box; /* 确保宽度计算包含内边距和边框 */
            overflow-x: hidden; /* 禁止左右滑动 */
            overflow-y: auto; /* 允许垂直滚动 */
            background-color: #ffffff; /* 确保背景色不透明 */
        }
        .nav-links span {
            display: none; /* 隐藏竖线 */
        }
    }
  
    /* 点击后将汉堡菜单转换为“×” */
    .hamburger.open div:nth-child(1) {
        transform: rotate(45deg); /* 旋转第一条线 */
    }
    .hamburger.open div:nth-child(2) {
        opacity: 0; /* 隐藏第二条线 */
    }
    .hamburger.open div:nth-child(3) {
        transform: rotate(-45deg); /* 旋转第三条线 */
    }
  }
  /* 当屏幕宽度大于 1025px 时的样式 */
  /* 当屏幕宽度大于 1025px 时的样式 */
@media screen and (min-width: 1025px) {
    .nav-links-1{
        display: none;
    }
    .nav-links-3{
        display: none;
    }
    .toptwo1{
        display: none;
    }
    .topfour{
        display: none;
    }
    /* top样式 */
    .top{
        width: 100%;
        height: 40px;
        font-size: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #0a0909;
        background-color: #EEECEC;
    }
    .topone{
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }
    .toptwo{
        flex: 0 0 auto;
        height: 40px;
        font-size: 12px;
        display: flex;
        align-items: center;
    }
    .toptwo img{
        margin-left: 0;
        margin-top: 0;
        width: 15px;
        height: 15px;
        margin-right: 5px;
    }
    .topkong{
        flex: 0 0 50px;
    }
  
    .topthree{
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .topthreeone{
        flex: 0 0 auto;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 10px;
        white-space: nowrap;
    }
  
    .topthree a{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;  /* 确保父元素有明确的高度  */
        background-color: none;
    }
  
    /* 导航栏样式 */
    .header {
        font-size: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #0a0909;
        background-color: #ffffff;
    }
    .logo{
        width: 298px;
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .logo img{
        width: 100px;
        height: auto;
    }
    .nav{
        width: 100%;
        height: 90px;
        margin: 0 auto;
    }
    .navone{
        width: 1191px;
        height: 90px;
        display: flex;
        align-items: center;
        margin: 0 auto;
    }
  
    .nav-links-2{
        width: 100%;
        height: 90px;
        display: flex;
        align-items: center;
    }
    .links1{
        width: 125.4px;
        height: 90px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .links1-1{
        width: 125.4px;
        height: 90px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-links span {
        color: #0c0101;
    }
    .links1 a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;  /* 确保父元素有明确的高度  */
    }
    a {
        background-color: initial;  /* 初始背景色，通常为透明或父元素的背景色 */
    }
    .links1 a:hover {
        background-color: red;
        color: #ffffff;
        width: 125.4px;
        height: 90px;
    }
    /* 购物车模块  */
    .shopcar{
        width: 346px;
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cart-button {
        display: flex;
        align-items: center;
        justify-content: center;
        /* 移除背景、边框、阴影等样式 */
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    #cart-button-img{
        width: 20px;
        height: 20px;
        margin-right: 0; /* 移除右侧边距 */
    }

    /* 购物车按钮点击后的样式  */
    .cart-button.clicked:hover {
        background-color: transparent;  /* 点击后背景透明  */
        color: inherit;
    } 
} 
/* 购物车徽标数字的外观的样式  */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
}

.cart-button {
    position: relative;
}   
/* 当屏幕宽度小于 768px 时的样式 */
@media screen and (max-width: 768px) {
    /* 其他小屏幕样式... */

    /* 调整小屏幕下购物车徽标数字的样式 */
    .cart-badge {
        padding: 2px 6px; /* 减小内边距，让徽标更小 */
        font-size: 10px; /* 减小字体大小 */
        top: -6px; /* 微调垂直位置 */
        right: -6px; /* 微调水平位置 */
    }
}

/* 添加到购物车按钮样式 */
.add-to-cart-button {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.3s ease;
}

.add-to-cart-button:hover {
    background-color: #1baaec;
    color: #ffffff;
}

/* 小屏幕下加入购物车按钮样式 */
@media (max-width: 600px) {
    .add-to-cart-button {
        margin-top: 5px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

#cart-button-text {
    display: none;
}