:root {
    --mainColor: #00c6ff; 
    --mainbColor: #00667f; 
    --boardColor:background: rgba(0, 0, 0, 0.5);   
    --buttonActive: #0080b0;
    --titleFontSize: 16px;
    --textFontSize: 14px;
    --textColor: #333;
    --dislabledtext: #ccc;
    --bodyColor: #eee;
    --buttonForeColor: #f4f4f4;
} 
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* 禁用高亮 */
    box-sizing: border-box; /* 排除边距 */
    margin: 0;  padding: 0;
    overflow: hidden; /* 隐藏超出 */
    font-family: Arial, sans-serif;
    user-select: none; /* 禁止选择 */
    font-size: var(--textFontSize);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
       
}

/* 主体样式 */
html,body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;padding: 0;
    width:100%;   height: 100%;
    background: linear-gradient(135deg,#883388, #1065a0 ,#883388)  ;
    color: white;  
    
}
   
.container {
    display: flex;
    flex-direction: column;
    width: 100%; height:100%; overflow: hidden;
    padding:12px;
}
.containerW {
    display: grid;
    grid-template-columns: auto 400px; 
    width: 100%; height:100%; overflow: hidden;
    padding:12px;
    margin: 0;
    align-items: center;
    background-blend-mode: multiply; /* 娣峰悎妯″紡 */
 
}

/* 输入字段 */
.input-field {
    flex: 1;
    border: none;
    border-radius: 4px;
    margin-left: 8px;
    margin-right: 2px;
    padding-top: 7px;
    padding-left: 10px;
    width: auto;
    height: auto;
    min-height: 32px;
    max-height: 90px;
    line-height: 1.3;
    color: #fff;
    outline: none;
}

.input-field:focus {
    outline: 2px solid #ffffff22;
}

.input-field * {
    vertical-align: middle;
}

.input-field:empty::before {
    content: "请输入聊天消息...";
    color: var(--dislabledtext);
}

.input-field:focus::before {
    content: "";
}


/* 管理员消息 */
.admin-message {
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 5px;
    text-align: left;
    color: var(--textColor);
}

/* 文件路径按钮 */
.bt {
    background-color: #fff;
}

.bt:active {
    background-color: #eee;
}

/* 系统消息 */
.smsg {
    all: initial;
    max-width: 75%;
    padding: 6px 10px 6px 8px;
    background-color: none;
    color: #ddd;
    border-radius: 2px;
    word-wrap: break-word;
    user-select: all !important;
}

.smsg * {
    vertical-align: middle;
}

/* 用户消息 */
.umsg {
    max-width: 100px;
    padding: 6px 3px 6px 8px;
    margin-right: 3px;
    background-color: #c57070;
    color: #ddd;
    border-radius: 5px;
    word-wrap: break-word;
    vertical-align: middle;
}

.umsg1 {
    max-width: 100px;
    padding: 6px 3px 6px 8px;
    margin-right: 3px;
    background-color: #5085bf;
    color: #fff;
    border-radius: 5px;
    word-wrap: break-word;
    vertical-align: middle;
}

/* 菜单 */
    
.back{
     position: absolute;
     display:flex;
     width: 100% ;   height: 100% ;
     margin: 0 ;padding: 0;
     overflow-y: auto;
     z-index: 10;
    background: linear-gradient(135deg,#883388, #1065a0 ,#883388)  ;
    
}   

.menu {
    position: absolute;
    display: flex;  flex-direction: column;
   
    width: 90%;  height:auto;
    min-width: 360px;  max-width: 100%;
    min-height: 70%;   max-height: 90%;

    border-radius: 10px;
    margin: 0px;  top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    
    font-size: 15px;
    color:black;  background-color:rgba(30,30,30,0.7);
     
   box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  
     
   flex-shrink: 0;  overflow: hidden;
     
}

/* 文件选择器 */
.filer {
    width: 98px;
    height: 48px;
    display: flex;
    padding: 4px 2px 4px 4px;
    align-items: center;
    margin: 2px 4px 10px 4px;
}

.filer:focus {
    outline: 2px solid #e95; /* 焦点时的轮廓效果 */
}

/* 文件框 */
.filebox {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;   align-content: flex-start;
    width: 100%; padding: 8px;
    background-color: #ddd;
    overflow-y: auto;
   
}
/* 文件图标 */
.fileico {
    width: 30px;
    min-width: 30px;
    height: 38px;
}

/* 文件名 */
.filen {
    width: 60px;
  
    min-height: 15px;
    max-height: 40px;
    padding: 3px 1px;
    color: #333;
    word-wrap: break-word;
    font-size: 13px;
    margin-left: 2px;
    align-content: center;
    justify-content: center;
    outline: none;
}

.filen:focus {
    outline: 1px solid #aaa; /* 焦点时的轮廓效果 */
}


/* 上下文菜单 */
.context-menu {
    position: absolute;
    display: flex;
    min-width: 100px;
    color:black;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 25;
    
}

.context-menu ul {
    list-style-type: none;
    width:100%;
    padding: 5px;
    margin: 0;
}

.context-menu ul li {
    padding: 5px 10px;
    margin: 5px 0;
    font-size: 14px;
    cursor: pointer; 
}

.context-menu ul li:hover {
    background-color: #f0faff;
}
.disabled {
    color: #999;
    background-color: #f4f4f4;
    cursor: not-allowed;
    pointer-events: none;
}



.adiv {
    width: 100%;
    display: grid;  grid-template-columns: repeat(7, 1fr);
    background-color: #00000000;
    list-style: none;
    justify-items: center;
    justify-content: center;
    padding: 6px 0;
}

.adiv div {
    display: flex;
    text-align: center;
    width: 100%;
    transition: 0.3s linear;
}

 
  
.btn {
    display: block;
    width: 100%;height:auto;
    border: none;  border-radius: 6px;
    padding: 8px;
    justify-items: center;  align-items: center;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;  font-size: 1.05rem;  font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
        
.btn:hover {
     box-shadow: 0 0px 15px rgba(0, 198, 255, 0.5);
 }
        
.btn:disabled {
    background: #555;
    cursor: not-allowed;
 }
        
       
        
.tdiv {
    display: flex;
    width: 100%;
    height: 34px;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    margin: 5px;
    background-color: #ffffff20;
   
    background-size: 35px 30px;
    background-position: center;
    color: #fff;
    cursor: pointer;
}
 

.tdiv:active {
     
      box-shadow: 0 0 8px #eeeeff80 ; 
     
}

        
   
 

/* 目录地址 */
.pathtext {
    cursor: pointer;
    padding: 5px;
}

.pathtext:active {
    color: var(--mainColor);
}
label {
    display: block;
    margin: 8px 0;
    font-size: 1.05rem;
    color: #00c6ff;
}
 
input[type="range"] {
    accent-color: var(--mainColor);
    background: #aaa !important; 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none; /* 移除焦点轮廓 */
}

input[type="range"]:focus {
    ime-mode: disabled;
    -webkit-user-select: none;
    user-select: none;
}

/* 复选框 */
input[type="checkbox"] {
    accent-color: var(--mainColor);
}


.tinput {
    display: flex;
    width:100%;height:42px;
    border-radius: 8px; border: 2px solid #0072ff;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    color: white;  font-size: 1rem;
    white-space:nowrap;    
 }
       
.tinput:focus {
    outline: none;
    border-color: #00c6ff;
    background: rgba(255, 255, 255, 0.15);
}
.tinput:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
  }
  
  /* 聚焦时移除 placeholder 样式 */
 .tinput:focus::before {
    content: none;
 }
