a,
aside,
body,
div,
footer,
html,
i,
img,
li,
nav,
p,
section,
ul {
    padding: 0;
    margin: 0
}

li {
    list-style: none
}

a {
    text-decoration: none
}

body {
    font-size: 12px;
    color: #4d4d4d;
    font-family: "Noto Sans SC","Arial","Microsoft YaHei","SimHei","SimSun",sans-serif;
}

.container,
.main,
body {
    background: #5da2ac
    
}

.iconfont {
    color: #6b7386;
    padding-right: 4px
}

.container .left-bar {
    position: fixed;
    padding: 0 20px;
    background: #33505b;
    color: #6b7386;
    box-sizing: border-box;
    flex-direction: column;
    height: 100vh;
    display: flex;
    width: 248px;
    transition: all 0.25s;
}

.container .main {
   /*position: relative;使元素不可以溢出*/
    display: flex;
    flex-direction: column;
    -webkit-box-orient: vertical;
    margin-left: 248px
}

.container .main .iconfont {
    font-size: 18px;
    color: #000
}

.set-scroll {
    background-color: #494f5e;
    border-radius: 0;
    width: 4px
}

/*
.left-bar .title {
    color: #fff;
    font-size: 18px;
    height: 50px;
    line-height: 50px
}
*/

.left-bar .title p {
    text-align: center
}

.left-bar .nav {
    flex: 1;
    -webkit-box-flex: 1;
    flex-grow: 1
}

.left-bar .nav .item {
    height: 48px;
    line-height: 46px;
    border-top: 2px solid rgba(255, 255, 255, .04);
    border-bottom: 2px solid rgba(255, 255, 255, .04)
}

.left-bar .nav>.active {
    position: relative
}

.left-bar .nav>.active .line {
    position: absolute;
    right: 0;
    height: 30px;
    width: 3px;
    background: #28b0a6;
    z-index: 100000;
    margin-top: 10px
}

.left-bar .nav-item {
    min-height: 100vh;
    overflow-y: scroll
    
}

.left-bar .nav-item::-webkit-scrollbar-track {
    background-color: #5c6f7b;
    border-radius: 0;
    width: 4px
}

.left-bar .nav-item::-webkit-scrollbar-thumb {
    background-color: #5c6f7b;
    border-radius: 0;
    width: 4px
}

.left-bar .nav-item::-webkit-scrollbar {
    background-color: #5c6f7b;
    border-radius: 0;
    width: 4px
}
/* 左边栏菜单最大宽度 */
.left-bar .nav-item li {
    padding-left: 20px;
    height: 32px;
    line-height: 32px;
    display: flex;
    justify-content: space-between;
    width: 85px; 
}

.left-bar .nav-item li:hover a,
.left-bar .nav-item li:hover i,
.left-bar .nav-item li>.active,
.left-bar .nav-item li>.active i {
    color: #fda59d
}
/* 左边栏菜单 */
.left-bar .nav-item li a {
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    width: 100%;
    color: #9dacb3;
    font-weight: 500;
    display: flex;
}
/* 菜单空元素对其 */
.left-bar .nav-item li a span{
  flex: 1;
}

.nav .item a {
    /* 留言 */
    color: #9dacb3;
    font-size: 16px;
    margin-left: 20px;
}

.nav .comment {
    position: fixed;
    z-index: 100;
    bottom: 1px;
    width: 200px;
    background: #00000000
}

.main #mainContent {
    /* 右侧最大宽度 */
    max-width: 1280px
    
}

.main .box {/* 主容器 */
    overflow: hidden;
    margin: 20px 30px;
    background: #f8f9fa;
    padding-bottom: 20px;
    border-radius: 5px;
}

.main .box .sub-category>div {/* 子类别文本 */
    padding: 12px 0 0 2.1%;
    font-size: 18px
}

.main .box .item {/* 单个元素的样式 */
    

    box-shadow: 1px 2px 4px #f2f6f8;
    border-radius: 6px;
    background: #fff;
    padding: 10px;
   /*width: 100%;*/
    min-width: 80px;/*设置最小宽度*/
    margin: 1.5% 0 0 1.5%;/* 设置外边距，顶部为容器高度的1.5%，左侧为容器宽度的2.1%。*/
    float: left;
    overflow: hidden;
    transition: all .3s;
    display: flex; /* 让图片和文本水平排列 */
    align-items: center; /* 让整体垂直居中 */
    min-height: 50px; /* 最小高度 */
    max-height: 50px; /* 最大高度 */
}

/*鼠标悬停时的效果*/
.main .box .item:hover {
    transform: translateY(-5px);
    box-shadow: 1px 2px 20px #e9edef;
}
/*图标容器*/
.main .box .item .logo {
    width: 35px;
    height: 35px;
    flex-shrink: 0; /* 防止图片缩小 */
}
/* 图片样式 */
.main .box .item .logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    vertical-align: middle;
}
/* 文本容器 */
.main .box .item .desc {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 让文本整体居中 */
    margin-left: 10px; /* 设置图片和文本的间距 */
    overflow: hidden;
}
/* 标题样式 */
.main .box .item .desc .title {
    font-size: 14px;
    font-weight: 700;
    color: #3273dc;
    display: -webkit-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1; /* 避免额外间距 */
    margin-bottom: 2px; /* 让文本之间间距为 3px */
}
/* 描述文本样式 */
.main .box .item .desc div:last-child {
    color: gray;
    font-size: 12px;
    line-height: 1.2; /* 让文本更紧凑 */
    padding-top: 5px;
    overflow: hidden; /* 必须隐藏超出部分 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制最多显示 2 行 */
    -webkit-box-orient: vertical;
}

 /*页脚 */
.footer {
    overflow: hidden;
    margin: 20px 30px;
    background: #494f4200;
    padding-bottom: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 0 10px;
    white-space: nowrap
}

.footer .copyright {
    margin-left: 30px;
    color: #d5d5d5;
    font-weight: 500;
    font-style: italic;
    font-size: 17px;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 768px) {
    .footer .copyright {
        font-size: 14px;
        /* 在小屏幕上适当缩小字体 */
        margin-left: 10px;
        /* 调整左右间距 */
        white-space: normal;
        /* 允许文字换行 */
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer .copyright {
        font-size: 12px;
        /* 在更小屏幕上进一步缩小字体 */
    }
}

.footer .copyright a {
    text-decoration: none;
    color: #e6e6e6
}

.footer .copyright b {
    font-size: 12px;
    font-weight: 500;
    color: #ffbfb9
}
/* 修改后的CSS样式 */

#menu-box {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    @media (max-width: 768px) {
        display: block;
    }
}

#menu {
    width: 45px;
    height: 45px;
    background: rgba(26, 71, 82, 0.649);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed; /* 让元素固定在页面的特定位置，不随滚动条滚动 */
    right: 14px; /* 距离视口右侧 10px */
    bottom: 85px; /* 距离视口底部 30px */
    z-index: 9999; /* 设定较高的层级，保证元素不会被其他内容遮挡 */
    box-shadow: 0 0 10px #00000030; /* 添加柔和的阴影，提高立体感 */
    cursor: pointer; /* 鼠标悬停时变为手型，表示可点击 */
}

#menu label.menu-spin {
    width: 24px;
    height: 24px;
    position: relative;
    display: block;
}

#menu .line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #ffffffd0;
    left: 0;
    transition: all 0.3s;
}

#menu .line-1 {
    top: 4px;
}

#menu .horizontal {
    top: 50%;
    margin-top: -1.5px; /* 垂直居中 */
}

#menu .line-2 {
    bottom: 4px;
}

/* 展开状态：将两条线都居中后旋转 */
#menu input[type="checkbox"]:checked ~ .menu-spin .line-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 28px;
}
#menu input[type="checkbox"]:checked ~ .menu-spin .line-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 28px;
}
#menu input[type="checkbox"]:checked ~ .menu-spin .horizontal {
    opacity: 0;
}

/* 隐藏默认html input 样式 */
#menu input[type="checkbox"] {
    display: none;
}


.download a,
.download i {
    color: #3c5e6b !important
}
#fixedBar {/* 回到顶部 */
    padding: 10px;
    border-radius: 50%;
    background: #ffa69e;
    width: 25px;
    height: 25px;
    position: fixed;
    right: 14px;
    bottom: 30px;
    z-index: 9999;
    box-shadow: 0 0 20 #eee;
    box-shadow: 0 0 10px #00000030;
    cursor: pointer;
    display: none
}

#fixedBar svg {
    color: #fff
}

@media screen and (max-width:481px) {/* 最大为480px的设备*/
    .main .box {/* 主容器 */
        margin: 10px 10px;
    }
    .container .box .item,.bookmark-item{
        width: 42%;
        min-width: 140px;/*设置最小宽度*/
       transform: scale(0.96);  /*  0.8 表示缩小至 80% */
    margin: 1.5% 0 0 1.5%;/* 设置外边距，顶部为容器高度的1.5%，左侧为容器宽度的2.1%。*/

        
    }

    .container .main {
        margin-left: 0
    }

    .container .left-bar {
        z-index: 999;
        left: -249px
    }

    #menu-box {
        display: block
    }
}

@media screen and (min-width:481px) {/* 少为481px的设备*/
    .container .left-bar {
        left: 0
    }
}

@media screen and (min-width:482px) and (max-width:789px) {/*宽度在482px到789px之间的设备*/
    .container .box .item,.bookmark-item {
        width: 90%
    }

    .container .left-bar {
        left: 0
    }
}

@media screen and (min-width:790px) and (max-width:1039px) {/*宽度在790px到1039px之间的设备*/
    .container .box .item,.bookmark-item {
        width: 43%
    }
}

@media screen and (min-width:1040px) and (max-width:1920px) {/*宽度在1040px到1920px之间的设备*/
    .container .box .item,.bookmark-item {
        width: 21.5%
    }
}

.brand {
    /* 左上角标题logo样式 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    margin-top: 22px;
    margin-bottom: 11px;

}

.brand span {
    color: #5da2ac;
    font-weight: 200;
}

.brand span.flag {
    color: #e2e2e2;
    background: #5da2ac;
    border-radius: 0.25rem;
    font-size: 10px;
    font-weight: 500;
    display: inline-block;
    padding: 0 4px;
    margin-left: 5px;
    line-height: 25px;
}

a {
    /* 定义a样式 */
    color: #e2e2e2;
    /* 设置超链接颜色为白色 */
    text-decoration: none;
    /* 移除下划线 */
}



/* 自定义书签 */
.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
  }
  .icon-diy {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #fff;;
  }
  .buttons { 
    display: flex; 
    gap: 5px; 
  }
  
  .bookmark-item { 
    box-shadow: 1px 2px 4px #f2f6f8;
    border-radius: 6px;
    background: #fff;
    padding: 10px;
   /*width: 100%;*/
    min-width: 160px;/*设置最小宽度*/
    min-height: 30px; /* 最小高度 */
    max-height: 30px; /* 最大高度 */
    margin: 1% 0 0 1%;/* 设置外边距，顶部为容器高度的1.5%，左侧为容器宽度的2.1%。*/
    float: left;
    overflow: hidden;
    transition: all .3s;
    display: flex; /* 让图片和文本水平排列 */
    text-align: center; /* 文本水平居中 */
    align-items: center; /* 让整体垂直居中 */

  }

  /*鼠标悬停时的效果*/
.bookmark-item:hover {
    transform: translateY(-5px);
    box-shadow: 1px 2px 20px #e9edef;
}
  .bookmark-link { 
    text-decoration: none; 
    color: #fea59d; 
    flex-grow: 1; 
  }

  .title { 
    font-weight: bold; 
  }

  button { 
    background: none; 
    border: none; 
    padding: 8px; 
    cursor: pointer; 
    font-size: 16px; 
    color: #666; 
  }
  .options-menu { 
    position: fixed; 
    background: #fff; 
    border-radius: 4px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);min-width: 120px; 
    z-index: 1000; 
    animation: fadeIn 0.15s ease-out; 
  }
  @keyframes fadeIn { 
    from { opacity: 0; } 
  to { opacity: 1; } 
}
  .options-menu button { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    padding: 8px 12px; 
    border: none; 
    background: none; 
    color: #444; 
    font-size: 14px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    text-align: center; 
  }
  .options-menu button:hover { 
    background: #f5f5f5; 
    color: #007bff; 
  }
  .options-menu button:not(:last-child) {
    border-bottom: 1px solid #eee; 
  }


  
/* 关于 */
  .about {/* 子类别文本 */
    padding: 20px 0 0 3.5%;
    font-size: 16px;
    line-height: 2;
    color: #000000c2;
}








/* 搜索框 */

.search-container {
    position: relative;
    width: 500px;
    margin: 30px auto 0; /* 关键改动：上下边距30px，水平自动居中 */
    display: flex;
    flex-direction: column;
    align-items: center;

    justify-content: center;    

  }

  .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .search-input {
    height: 20px;
    line-height: 20px;
    width: 150px;
    padding: 14px 50px 14px 50px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(.35,.08,.09,.97); /* 添加贝塞尔曲线 */
  }
/* 提示字样式控制 */
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8); /* 正常浅白色 */
    transition: color 0.2s ease;
  }

  /* 悬停状态 */
  .search-input:hover::placeholder {
    color: rgba(0, 0, 0, 0.601); /* 深灰色 */
  }

  /* 聚焦状态 */
  .search-input:focus::placeholder {
    color: transparent ; 
  }

  .search-input:hover,
  .search-input:focus {
    width: 500px;
    background: rgba(255, 255, 255, 0.6);
  }

  .search-input:focus {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    outline: none;
  }

/* 搜索按钮 */
    .search-action-icon {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.1s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
    cursor: pointer;
    pointer-events: none;
    z-index: 2;
  }

  .search-wrapper:focus-within .search-action-icon {
    opacity: 1;
    pointer-events: auto;
  }

  .search-wrapper:focus-within .search-action-icon:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.05);
  }
/* 菜单按钮 */
  .search-menu-icon {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.1s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
    cursor: pointer;
    pointer-events: none;
    z-index: 2;
  }

  .search-wrapper:focus-within .search-menu-icon {
    opacity: 1;
    pointer-events: auto;
  }

  .search-wrapper:focus-within .search-menu-icon:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.05);
  }

  /* 修改清除按钮样式 */
  .search-clear-icon {
    position: absolute;
    right: 47px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 2;
  }
      /* 清除按钮图标颜色 */
      .search-clear-icon svg {
    fill: rgba(0, 0, 0, 0.244); /* 灰色 */
    transition: fill 0.2s ease; /* 添加颜色过渡效果 */
  }
  .search-clear-icon:hover svg {
    fill: #0000007a; /* 蓝色色值 */
  }


  .search-engine-menu {
    position: absolute;
    top: 60px;
    left: 15px;
    background: rgba(43, 61, 68, 0.98);
    border-radius: 12px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    min-width: 160px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
    opacity: 0;
  }

  .search-engine-menu.open {
    max-height: 200px;
    opacity: 1;
  }

  .search-engine-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
  }

  .search-engine-menu li {
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #a8a8a8;
    position: relative;
  }

  .search-engine-menu li:hover {
    background: rgba(40, 176, 167, 0.129);
    color: #28b0a6;
  }

  .search-engine-menu li.active {
    color: #28b0a6;
    font-weight: 500;
  }

  .search-engine-menu li.active::after {
    content: "✓";
    position: absolute;
    right: 12px;
    color: #28b0a6;
  }
/* 建议列表样式 */
  .suggestions-container {
    position: absolute;
    top: 100%;
    width: 90%;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 8px;
  }

  .suggestions-container::-webkit-scrollbar {
    display: none;
  }

  .suggestion-item {
    padding: 12px 28px 12px 20px;
    margin-right: -8px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    text-align: left;
    
  }

  .suggestion-item:hover {
    background: rgba(40, 176, 167, 0.1);
  }

  .suggestion-highlight {
    color: #b07e28;
    font-weight: 500;
  }
  .main #mainContent {
    max-width: 1280px;
    /* 移除之前添加的 flex 相关属性 */
    display: block; /* 确保恢复默认块级布局 */
    width: auto; /* 恢复默认宽度 */
}
@media (max-width: 600px) {
    .search-container {
        width: 90%; /* 移动端宽度自适应 */
        max-width: none;
    }
    .search-input:hover,
    .search-input:focus {
        width: 100%; /* 移动端输入框展开优化 */
    }
}
