/*body {
  font-family: "Microsoft Yahei", serif;
  margin: 0;
  padding: 0;
  background-image: url('../img/background/background.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
 background: linear-gradient(135deg, #2C5364, #203A43, #0F2027);

  height: 100%;
}*/

html,
body {
  font-family: "Microsoft Yahei", serif;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background-image: url('../img/background/background.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  /*display: flex; */
  align-items: center;
  justify-content: center;
   /* flex-direction: column;*/  
}


/* Heading Styles */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 50px; /* 调整下方间距的数值 */
}

#main_title {
    margin-right: 10px;
}

/* Form Styles */
#addButton {
    font-size: 32px;
    border: none;
    background-color: #007bff;
    color: #fff;
    width: 53px;
    height: 53px;
    max-width: 53px;
    min-width: 53px;
    max-height: 53px;
    min-height: 53px;
    border-radius: 50%;
    /*cursor: pointer;*/
}

#addCategoryButton {
    font-size: 32px;
    border: none;
    background-color: #4CAF50;
    color: #fff;
    width: 53px;
    height: 53px;
    max-width: 53px;
    min-width: 53px;
    max-height: 53px;
    min-height: 53px;
    border-radius: 50%;
    /*cursor: pointer;*/
}


.admin_type {
    flex: 1;
    padding: 5px 10px;
    border: none;
    background-color: #4CAF50;
    color: #fff;
    /*cursor: pointer;*/
    border-radius: 5px;
    margin: 0 10px;
     max-width: 57px;
    min-width: 57px;
    max-height: 57px;
    min-height: 57px;
    /* border-radius: 50%; */
}




.popup-content {
    background-color: #fff;
    width: 500px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    /*下面四行直接水平垂直居中*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;    
}




.popup-content h2 {
    text-align: center;
    margin-bottom: 45px;
}



.label_box {
    display: inline-block;
    width: 60px;
    height: 28px;
}

.input_box {
    width: 280px;
    padding: 5px;
    height: 28px;
}

.button-group {
    text-align: center;
}

.button-group button {
    margin: 5px;
    padding: 5px 10px;
}

#categoryContainer{
    display: flex;
    flex-wrap: wrap;
    
    justify-content: center;
}

.site-container {
    flex-wrap: wrap;
    display: flex;
    justify-content: flex-start;
}

.site-container > div,
.category-item {
    margin: 10px;
    text-align: center;
    cursor: pointer;
}

.site-container_2{
    max-width:64px;
    min-width: 64px;
}

.site-container p{
     margin: 3px 0;
    font-family: "微软雅黑", serif;

}
.category-item h4 {
    text-align: left;
    margin-bottom: 7px;
    margin-top: 5px;
    margin-left: 16px;
    padding: 2px 2px 2px 2px;
    /*background-color: rgba(255, 255, 255, 0.22);;*/
    /**/
    /*color: #cccccc;*/
}

.class_contextMenu {
    display: none;
    position: fixed;
    padding: 5px;
    z-index: 1000;
    border-radius: 10px;
    background: #2c302f;
    color: #ffffff;
    opacity: 1.0;
    font-size: 14px;
}

.class_contextMenu ul {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.class_contextMenu ul li {
    cursor: pointer;
    padding-top: 8px;
    padding-bottom: 8px;
    
}


/* Popup 2 Styles */
#popup2 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    z-index: 9999;
}

#popup2 h2 {
    margin-top: 0;
}

#popup2 label {
    display: block;
    margin-bottom: 10px;
}

#popup2 input[type="text"] {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

#popup2 button[type="submit"] {
    background-color: #4CAF50;
    color: #fff;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
}

.category-item {
    padding: 0 0;
    
    background-color: rgba(255, 255, 255, 0.26);
    /*opacity: 0.6;*/
    color: rgba(0, 0, 0, 1); /* 将颜色和透明度替换为您需要的值 */
    /* or: rgba(0, 123, 255, 1); */ 
    border-radius: 4px;
    margin: 10px 22px;
    min-width: 260px;
    max-width: 420px;

}

.button-container {
    /*display: flex;*/
    /*justify-content: space-between;*/
    margin-top: 20px;
}

.button-container button {
    border: none;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.button-square {
    display: flex;
}


.button-square button:first-child {
    margin-left: 0;
}

.button-square button:last-child {
    margin-right: 0;
}

.button-container {
    justify-content: center;
}

.button-container .button-square {
    margin: 20px 20px; /* 在按钮之间添加10像素的水平间距 */
}

.search-button {
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
    width: 100px;
    height: 100px;
}
/*fdj2.png*/



/* CSS for the search container */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 650px;
    margin: 140px auto;
    position: relative;
    top: 4%;
    transform: translateY(-50%);
    border-radius:17px;
    overflow: hidden;
    height: 50px;
	 
}




#searchInput {
    outline: none;
    padding: 12px;
    border: none;
    background-color: #F7F7F7;
    /*width: 86px;*/
    font-size: 18px;
    /*font-family: "微软雅黑", serif;*/
    padding-left: 18px;
    flex: 1;
    font-family: inherit;
      
    /*background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(100% - 1px), rgba(140,140,140,0.5) 100%);*/
}





.search-container select,
.search-container input,
.search-container button {
    height: 100%; /* Set the child elements to occupy full height */
    /* Add any other styles you want for the child elements */
}

.app_ico {
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    border-radius: 14px;
    /*background-color: #ccc; !* Optional: Set a background color if no image is present *!*/
}

a {
    color: #ffffff;
    text-decoration: none;
}


#adminTools{
    padding-left: 60px;
    padding-right: 60px;
    border-color: #007bff;
    min-width: 160px;
    opacity: 1;
}

.popup_button{
    padding: 5px 10px;
    width: 88px;
    height: 38px;
    margin-left: 30px;
    margin-right: 30px;
}


.button-group-popup{
    text-align: center;
    margin-top: 45px;
    margin-bottom: 50px;

}

#searchEngineSelect {
    outline: none;
    /*padding: 0px 8px; !* Adjust the padding values as needed *!*/
    border: none;
    background-color: #F7F7F7;
    width: 90px;
    font-size: 19px;
    font-family: "微软雅黑", serif;
    -webkit-appearance: none;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(100% - 1px), rgba(140,140,140,0.5) 100%);
    background-position: right;
    background-repeat: no-repeat;
    padding-left: 16px;
    /* color: #333;  */
}

#searchButton {
    padding: 10px 20px;
    background-color:  #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width:98px;
    font-family: '微软雅黑 Light', serif;
    font-size: 17px;
    padding-right: 21px;
    letter-spacing: 3px;
}
.select_category {
    width: 290px; /* 与input_box一致 */
    padding: 5px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
}

  /* 隐藏模板元素 */
  .template {
      display: none;
  }
  #err_add_group {
      color: green; /* Set text color to green */
      display: none; /* Hide the element */
    }


/* .search-container {
    border: 1px solid #007bff; 
}
#searchEngineSelect{
    color:#007bff;

} */

/* 登录按钮 样式 */
#loginBtn {
    font-size: 18px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.18);
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 16px;
    padding: 8px 22px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s, border 0.2s;
    min-width: 111px;
    min-height:42px;
    max-width: 111px;
    max-height:42px;
}



.class-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    border-radius: 5px;
    position: fixed;
}


.login-btn-container {
    position: absolute;
    top: 32px;
    right: 48px;
    z-index: 1001;

}







 #popupLogin .login-popup_button {
    /* width: 100%;
    height: 48px;
    background:  #007bff; 
    border-radius: 10px;
    font-size: 18px; 

    border: none;
    color: #fff;
    box-shadow: 0 15px 15px rgba(79,140,255,0.25);
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s, transform 0.18s;
    font-weight: normal; */
    height: 48px;
    width: 336px;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.18);
    color: #000000;
    border: 1px solid #000000;
    border-radius: 8px;
    padding: 8px 22px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    /* transition: background 0.2s, color 0.2s, border 0.2s; */
    transition: .3s;
}
/* 2357d5 */


#popupLogin {
  display: none;
  position: fixed;
  inset: 0;                   /* 等价于 top:0;right:0;bottom:0;left:0; */
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
}

.login-popup-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
    max-width: 1500px;

    padding: 60px 60px 60px 60px;
    text-align: center;
    position: relative;
    animation: popup-fade-in 0.35s cubic-bezier(.25,.8,.25,1);
    position: fixed;               /* 或者 absolute，但相对 #popupLogin */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}  

.login-close-x {
    position: absolute;
    top: 18px;
    
    right: 22px;
    font-size: 34px;
    color: #b0b3b8;
    cursor: pointer;
    transition: color 0.18s, transform 0.18s;
    z-index: 2;
    /* font-weight: bold; */
    user-select: none;
    font-weight: normal
}

.login-close-x:hover {
    color: #007bff;
}

/* 输入框 上层 元素 */
.login-input-group {
    margin-bottom: 20px;
    margin-top: 20px;

}

/* 按钮的 上层 元素*/
.login-button-group-popup{
    text-align: center;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* 输入框 */
.login-input_box {
    caret-color: #007bff;
    position: relative;
    z-index: 17;
    box-sizing: border-box;
    display: block;
    padding: 10px 20px;
    margin: 0;
    height: 48px;
    line-height: 20px;
    width: 336px;
    border: 1px solid #b8b8b8;
    font-size: 17px;
    color: #1f1f1f;
    transition: .3s;
    font-family: PingFangSC-Regular, Tahoma, Helvetica, "Microsoft Yahei", "微软雅黑", Arial, STHeiti;
    border-radius: 8px;
} 

.login-input_box:focus {
    border-color: #4f8cff;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
}

#login-lable{
    /* font-family: "Microsoft Yahei", serif; */
    margin-bottom: 50px;
    margin-top: 20px;
    font-size: 28px;
    /* font-weight: normal; */
    font-weight: 600;
    color: #000000;
    text-align: left; /* ← 设置左对齐 */
    font-family: inherit;
}

.login-middle{
    margin-top: 70px;
}

.login-options-row {
  display: flex;
  justify-content: space-between;  /* 左右分布 */
  align-items: center;
  margin-top: 1px;
  margin-bottom: 36px;
  font-size: 14px;
  color: #333;

   /* margin-bottom: 30px; */
}

.show-password label,
.forgot-password a {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.login-popup-content {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}


.login-popup_button {
  border: 1.5px solid #007bff;
  background: #fff;
  color: #007bff;
  font-weight: 500;
  transition: 0.2s;
}
.login-popup_button:hover {
  background: #0e66da;
  color: #fff;
} 


.error-message {
            color: #f44336;
            font-size: 14px;
            /* margin-top: 10px; */
            text-align: center;
            visibility: hidden; /* Initially hidden */
        }



/* 外部站点元素 css*/
 #NocategoryContainer{
    display: flex;
    flex-wrap: wrap;
    
    justify-content: center;
   
}

.no_category{
    margin: 10px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0);
    max-width: 1300px;
    margin-bottom: 30px;
    /* cursor: pointer; */
}


.button-item {
    text-align: center; /* 让按钮和文字居中 */
    margin: 10px; /* 给按钮和文字间添加间距 */
}

.button-label {
    display: block;
    margin-top: 5px; /* 按钮和文字之间的间距 */
    font-size: 15px; /* 设置字体大小 */
    color: #333; /* 设置文字颜色 */
}





.input-group {
    margin-top: 30px;
    height: auto;
    display: flex;
    justify-content: center;
} 

.icon-option-list {
    
    justify-content: center;
    padding: 10px 10px 10px 10px;
    /* padding-bottom: 10px; */
     /* margin-top: 20px;
     margin-bottom: 20px; */
    margin-top: 20px;
   border-radius: 26px;
     background-color: rgba(221, 218, 218, 0.2);
}  

.site-container_2.selected {
    border: 2px solid #4CAF50; /* 选中状态时的绿色边框 */
    /* box-shadow: 0 0 10px rgba(0, 255, 0, 0.5); 选中时的光晕效果 */
    padding: 5px;
    margin: 3px;
}

.site-container_2.selected .app_ico {
    transform: scale(1.1); 
}

/* 
#iconSelection {
    background-color:   #007bff
    
} */







