﻿
* {
box-sizing: border-box;
}

body {
padding: 0;
margin: 0;
min-width: 767px;

}

body, input, table {
font-size: 14px;
font-family: sans-serif;
}

/*** Header Star ***/

header {
width:100%;
min-height: 50px;
background:#FFF;
/*background: linear-gradient(135deg, #d1c6fe, #e7e9fe, #e5e0ff);*/
white-space: nowrap; /* 禁止换行 */
display: grid;
grid-template-columns: max-content auto auto; 
box-shadow: 0 2px 4px rgba(0,0,0,0.1),
0 8px 16px rgba(0,0,0,0.05);
}

header > .left {
display: flex;
justify-content: flex-start; /* 靠左 */
align-items: center; /* 垂直居中（可选） */
padding:0 10px; /* 给点内边距，避免贴边 */
}

   
header > .left h1 {
margin: 0;
display: inline;
font-size: 15px;
text-align: left;
padding: 5px 35px;
border-radius: 15px;
border: 1px solid rgba(180,100,255,0.5);
letter-spacing: 1px;
}
header > .left h1 a {
background: linear-gradient(90deg, rgba(180, 100, 255, 1), rgba(45, 125, 255,1));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}


header > .middle {
display: flex; /* 中间依然用 flex 来对齐内容   */
justify-content: center; /*flex-start 靠左 */
align-items: flex-end; /* 靠下 */
padding: 10px;
}
header nav{
width:100%;
}
header nav ul {
width:100%;
display: flex;
gap:0 10px;
position: relative;
margin: 0;
padding: 0;
}

header nav ul > li {
list-style: none;
position: relative;
flex:0.5 1 auto;
}

header nav ul > li > a {
width:100%;
text-decoration: none;
color: #333;
padding: 8px ;
display: block;
border-radius: 5px;
text-align:center;
font-size:14px;

}



/* 下拉菜单 */
header nav ul li ul {
display: none;
position: absolute;
top: 100%; /* 下方展开 */
left: 0;
margin: 0;
z-index: 1000;
border-radius:5px;
min-width:max-content;
background: linear-gradient(135deg, #d1c6fe, #e7e9fe, #e5e0ff);
padding:5px 0;
border:1px solid rgba(70,100,255,0.3);
}

header nav ul li ul li {
list-style: none;
min-width:max-content;
padding:2px 5px;
}

header nav ul li ul li a {
display: block;
padding: 8px 40px;
text-decoration: none;
color:#000;
border-radius:5px;
text-align:center;
font-size:15px;
}

header nav ul li ul li  a:hover {
background: linear-gradient(90deg,rgba(180,100,255,0.3),rgba(45,125,255,0.3));
color: #000;
}

header nav ul li:hover ul {
display: block;
}



header nav > ul > li > a.selected {
background: linear-gradient(90deg,rgba(180,100,255,1),rgba(45,125,255,1));
color: #FFF;
}

header nav > ul > li > ul > li > a.selected {
background: linear-gradient(90deg,rgba(180,100,255,0.7),rgba(45,125,255,0.7));
color: #FFF;
}

header nav a:active, header nav a.selected:active {
background: linear-gradient(90deg,rgba(180,100,255,1),rgba(45,125,255,1));
color: #fff;
}

header > .right {
        
}


/*** Header End  ****/



/* 整体布局 */
#mainSidebar {
display: flex;
flex-direction: row;
min-height:500px;
}

#mainSidebar main {
flex: 1;
border-radius:15px;
margin:2%;
}





#mainSidebar sidebar {
display:none;
background:#d7ebff;
padding:1%;
flex-direction: column;
transition: all 0.3s ease;
}

#mainSidebar sidebar #sidebar_button {

}
#mainSidebar sidebar #sidebar_button > span{
user-select: none;
width: 40px;
height:40px; 
border-radius: 5px;
cursor: pointer;
font-size: 25px; 
display: grid; 
justify-content:center;
border :1px solid rgba(0,0,0,.25);
color:rgba(0,0,0,.5);
}
#mainSidebar sidebar #sidebar_button > span:hover{
border :1px solid #333;
background:#FFF;
color:#333;
}
#mainSidebar sidebar #sidebar_button > span:active{
border :1px solid #333;
background:#888;
color:#FFF;
}

#mainSidebar sidebar #sidebar_content {
padding:20px 10px 0 10px;
flex: 1;
}

/* 电脑右侧显示 */
@media (min-width: 768px) {
#mainSidebar {
flex-direction: row;
}
#mainSidebar sidebar {
width: 380px;
position:sticky;
top:0;
margin-top:10px;
z-index:100; 
}
#mainSidebar sidebar.collapsed {
width: 70px;
}
#mainSidebar sidebar.collapsed #sidebar_button > span{
transform: rotate(180deg);
}

#mainSidebar sidebar.collapsed #sidebar_content{
display:none;
}

}

/* 手机底部显示 */
@media (max-width: 767px) {
#mainSidebar {
flex-direction: column;
}
#mainSidebar sidebar {
width: 100%;
min-height: 200px;
}
#mainSidebar sidebar.collapsed {
height: 40px;
}
}









footer {
margin:2%;
color:#888;
text-align: center;
line-height:2;
}

footer .beiAn {
text-align: center;
padding-top: 10px;
}

footer .safe{
color:#F33;
background:#EEE;
border-radius:15px;
font-size:13px;
padding:12px 20px;
}


/*------------     整体结束     -------------*/
/*------------     公共小组件开始     -------------*/


/* 默认链接 */
a, .a {
color: #515151;
text-decoration: none;
cursor: pointer;
}

a:hover, .a:hover {
color: #7511f4;
text-decoration: underline;
}

a:visited, .a:visited {
}

a:active, .a:active {
color: #4e00ff;
outline: 1px dashed #4e00ff;
}



.bt1 {
padding: 8px 25px;
background: #8e3af8;
color: #FFF;
border: 0;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
transition: all 0.2s ease;
}

.bt1:hover {
background: #7511f4;
box-shadow: 0 0 5px 0px #BBB;
}

.bt2 {
padding: 12px 150px;
font-size: 18px;
border: 1px solid #EEE;
background: linear-gradient(90deg,rgba(180,100,255,1),rgba(45,125,255,1));
color: #FFF;
cursor: pointer;
border-radius: 30px;
letter-spacing: 1px;
user-select: none;
transition: all 0.1s ease;
}

.bt2:hover {
box-shadow: 0 0 10px 1px #AAA;
letter-spacing: 2px;
}

.bt2a {
padding: 9px 15px;
border: 1px solid #9639f7;
color: #9639f7;
cursor: pointer;
border-radius: 1px;
letter-spacing: 1px;
font-size: 15px;
user-select: none;
}

.bt2a:hover {
color: #9639f7;
box-shadow: 0 0 10px 1px #AAA;
}





.bt3 {
background: #fb2d53;
color: #FFF;
border: 1px solid #FFF;
cursor: pointer;
border-radius: 5px;
letter-spacing: 1px;
user-select: none;
font-size: 15px;
padding: 10px 15px;
}

.bt3:hover {
box-shadow: 0 0 10px 1px #ffadad;
}

.bt4 {
background: #d3c0ff;
border: none;
border-radius: 5px;
font-size: 15px;
font-weight: bold;
color: #393939;
padding: 5px 25px;
cursor: pointer;
text-decoration: none;
}

.bt4:hover {
color: #FFF;
background: #7511f4;
text-decoration: none;
}

.bt5 { /*下载*/
display:flex;
justify-content:center;
text-align:center;
border-radius: 5px;
padding: 8px 16px;
border: none;
cursor: pointer;
text-decoration: none;
font-size: 18px;
transition: all 0.1s ease;
letter-spacing:2px;
color: #FFF;
background: #a055ff;
text-decoration: none;
}
.bt5 svg{
    height:25px;
    width:40px;
}
.bt5:hover {
box-shadow: 0 0 10px 1px #AAA;
letter-spacing: 3px;
}


.bt6{  /* 重来 */
display:flex;
justify-content:center;
text-align:center;
border-radius: 5px;
padding: 8px 16px;
border: none;
cursor: pointer;
text-decoration: none;
font-size: 18px;
transition: all 0.1s ease;
letter-spacing:2px;
color: #a055ff;
border:1px solid #a055ff;
background: #FFF7F7;
text-decoration: none;
}
.bt6 svg{
     height:25px;
    width:40px;
}
.bt6:hover {
box-shadow: 0 0 10px 1px #AAA;
letter-spacing: 3px;
}

/* 两个上传文件按钮 */

/*  消息盒子  */
#messageBox {
letter-spacing: 1px;
font-size: 15px;
line-height: 160%;
display: none;
position: fixed;
top: 20%;
left: 35%;
background-color: #d3e3fd;
border: 1px solid #be8bff;
padding: 10px 80px 10px 50px;
border-radius: 3px;
box-shadow: 0 0 20px 2px #999;
max-height: 500px;
overflow-y: auto;
z-index: 1000;
}

#messageBox label.close {
position: absolute;
color: #F66;
width: 20px;
height: 20px;
border: none;
top: 0;
right: 0;
font-size: 15px;
background: transparent;
}

#messageBox label.close:hover {
color: #F00;
}


/* 整体选项卡容器样式 开始 */
.tab {
overflow: hidden;
background-color: #ebeef1;
}

/* 选项卡导航栏样式 */
.tab .tab_nav {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
}

.tab .tab_item {
padding: 10px 20px;
cursor: pointer;
font-size: 14px;
letter-spacing: 1px;
}

.tab .tab_item:hover {
text-decoration: underline;
}


.tab .tab_item.active {
background-color: #FFF;
border-bottom: 1px solid #FFF;
font-weight: bold;
}

.tab .tab_panel {
background-color: #FFF;
padding: 10px 0 0 10px;
display: none;
border-right: 1px solid #eee;
}

.tab .tab_panel.active {
display: block;
}




.tip {
display: inline-block;
position: relative;
cursor: pointer;
display: inline-flex;
justify-content: center;
align-items: center;
color: rgba(0,130,218,0.6);
border: 1px solid rgba(0,130,218,0.6);
border-radius: 50%;
transition: all 0.05s ease;
font-family:Arial;
font-weight:normal;
margin:0 5px;
width:2.8ch;
height: 2.8ch;
font-size:13px;
line-height:1;
padding:1px 0 0 0;
}
.tip > .content{
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%) translateY(0px);
background: #edfce2;
border: 1px solid #6c7c4a;
color: #2c3e50;
padding: 8px 16px;
border-radius: 8px;
font-size: 13px;
width: 200px;
min-width: 300px;
max-width: 350px;
opacity: 0;
visibility: hidden;
transition: all 0.02s ease;
z-index: 100;
text-align: left;
line-height: 1.5;
box-shadow:2px 2px 5px #6c7c4a;
}
.tip:hover{
background: rgba(0,130,218,0.6);
color:#fff;
border-color:rgba(0,130,218,1);
}

.tip:hover > .content{
opacity:1;
visibility:visible;
}

.hot{
  position: absolute;
  top: 5px;
  right:5px;
  background: #f00;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 5px;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
  opacity: 0.9;
  font-weight:normal;
}

.hot2{
  background: #f33;
  color: white;
  font-size: 12px;
  padding: 1px 4px;
  border-radius: 5px;
  opacity: 0.8;
  margin:0 5px;
  text-decoration:none;
  font-weight:normal;
}

#h1_title{
    text-align: center;
}

#h1_title > span {

}




/*------------     标题     -------------*/

h1.t1 {
color: #4d6bff;
text-align: center;
}



/*------------     上传按钮     -------------*/

#for_upload {
margin: 2%;
padding: 5%;
display: block;
color: rgba(70,100,255,0.6);
cursor: pointer;
border-radius: 5px;
border: 1px solid rgba(144,140,230,0.5);
transition: all 0.1s ease; /* 缩短过渡时间 */
transform: translateY(0); /* 为transform变化做准备 */
background: linear-gradient(45deg, rgba(210,215,255,1),rgba(212,225,255,0.2),rgba(215,235,255,1),rgba(215,235,255,1));
box-shadow: 0 0 5px rgba(170,180,255,0.8);
line-height:1.6;
}

#for_upload_topic {
display: block;
text-align: center;
color: rgba(70,100,255,0.8);
letter-spacing: 1px;
font-weight: bold;
font-size: 30px;
}
#for_upload_topic > span{
    padding:12px;
    border:1px dashed rgba(70,100,255,0.5);
    border-radius:10px;
    text-shadow:1px 1px 1px rgba(255,255,255.0.8);
}
#for_upload_topic b.shape {
    font-size: 1cm;
    margin: 0 15px 0 0;
    border-radius:50%;
    aspect-ratio: 1/1;
    width:1.7ch;
    height:1.7ch;
    letter-spacing:0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center; 
    padding:0 0 3px 0; 
    line-height: 1;
    font-family:sans-serif;
    transition: all 0.2s ease;
    transform: translateX(10px);
    border:1px solid rgba(70, 100, 255, 1);
}
#for_upload:hover #for_upload_topic{
    letter-spacing:2px;
    transition: all 0.2s ease;
}
#for_upload:hover #for_upload_topic b.shape {
    color: #FFF;
    background: rgba(70, 100, 255, 0.8);
    transform: translateX(-0px);
    letter-spacing:0;
}



#for_upload img.icon {
max-width: 50px;
}

#for_upload img.muti-icon {
max-width: 35px;
}

#for_upload img.connection {
max-width: 25px;
}

#for_upload img.muti-connection {
max-width: 25px;
}

#for_upload #for_upload_annotation {
display: block;
font-size: 19px;
color: rgba(70,100,255,0.8);
font-weight: 200;
font-size:14px;
word-break: break-all; 
}


#for_upload.simple {
padding:5px;
font-size: 25px;
font-weight: bold;
border-radius: 0;
box-shadow: none;
}





/*------------     上传按钮内的图片     -------------*/



#for_upload_imgCollection {
display:flex;
justify-content:center;
align-items:center;
padding: 2% 0;
gap:30px;
}

#for_upload_imgCollection > font.leftCollection {
display:flex;
flex-direction:row;
justify-content:center;
gap:10px;
}

#for_upload_imgCollection > font.leftCollection img{
max-width: 60px;
filter:drop-shadow(1px 1px 2px rgba(70,100,255,0.5));
}

#for_upload_imgCollection > font.muti img{
max-width: 35px;
}

#for_upload_imgCollection > img.connection{
max-width: 22px;
}

#for_upload_imgCollection > img.right {
max-width:60px;
filter:drop-shadow(1px 1px 2px rgba(70,100,255,0.5));
}




#for_upload_annotation {
display: block;
text-align: center;
font-size: 19px;
color: rgba(70,100,255,0.8);
font-weight: 200;
}


#for_upload.simple {
margin: 2% 0;
padding:5px;
font-size: 25px;
font-weight: bold;
border-radius: 0;
box-shadow: none;
}

#for_upload.simple #for_upload_annotation, #for_upload.simple #for_upload_imgCollection {
display: none;
}

#for_upload.simple #for_upload_topic {
padding:0;
}








#for_upload.simple #for_upload_annotation, #for_upload.simple #for_upload_imgCollection {
display: none;
}












/* 第三方 sortable */
.sortable-chosen {
opacity: 0.9;
background: #e6ebff;
}
.sortable-ghost {
opacity: 1;
border: 1px dashed #6ea0ff;
}

/* 在 itemCollection 中的上传 */
#for_upload2{
cursor:pointer;
display:inline-block;
color:rgba(70,100,255,0.8);
font-weight:bold;
outline:1px dashed rgba(70,100,255,0.8);
background:  #d9e5ff;
}
#for_upload2 b.shape {
    font-size:0.5cm;
    margin: 0 10px 0 0;
    border-radius:50%;
    aspect-ratio: 1/1;
    width:1.8ch;
    height:1.8ch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding:0 1px 0 0; 
    line-height: 1;
    letter-spacing:0;
    font-family:sans-serif;
    transition: all 0.2s ease;
    transform: translateX(5px);
    border:1px solid rgba(70, 100, 255, 1);
}

#for_upload2:hover b.shape {
color: #FFF;
background: rgba(70, 100, 255, 0.8);
transform: translateX(-0px);
letter-spacing:0;
}
