/* 基础样式 */
body {
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* 隐藏水平滚动条 */
    background-color: white;
}

/* 通用按钮样式 */
button {
    border: none;
    cursor: pointer;
}

/* 通用按钮样式 - 蓝色 */
.btn-primary, .btn-secondary, .btn-selectstyle, .btn-save, .style-btn-enter, .btn-enter {
    background-color: #3490de;
    color: white;
    font-weight: bold;
    border-radius: 6px;
}

/* 通用按钮样式 - 绿色 */
.btn-edit, .style-btn-enter, .btn-enter {
    background-color: #009900;
}

/* 编辑按钮 */
.btn-edit {
    color:white;
    border-radius: 6px;
    font-weight: bold;
}

/* 通用按钮样式 - 红色 */
.btn-danger, .btn-close, .btn-cancel, .style-btn-cancel, .btn-logout {
    background-color: #cc0000;
    color: white;
    font-weight: bold;
    border-radius: 6px;
}

/* 通用按钮样式 - 黄色 */
.btn-filesselect, .btn-all {
    background-color: #ffc107;
    color: black;
    font-weight: bold;
    border-radius: 6px;
}

/* 通用按钮样式 - 尺寸 */
.btn-filesselect, .btn-selectstyle, .btn-logout, .btn-primary,
.btn-all, .btn-enter, .btn-cancel, .btn-save, .btn-edit, .btn-close,
.style-btn-enter, .style-btn-cancel,.btn-new {
    font-size: 16px;
    padding: 8px 12px;


}

/* 按钮样式*/
.btn-new {
background-color: #79449d;
border-radius: 6px;
color:white;
font-weight: bold;
}


/* 特殊按钮样式 */
.style-btn-enter, .style-btn-cancel {
    padding: 8px 22px;
}

.btn-secondary {
    font-size: 22px;
    border-radius: 15px;
    width: 34%;
    height: 100px;
}

.btn-danger {
    font-size: 22px;
    border-radius: 15px;
    width: 100%;
    height: 68%;
}

.btn-edit.editing {
    background-color: #ffc107;
    color: black;
     font-weight: bold;
}

/* 单选按钮样式 */
.custom-radio {
    display: none; /* 隐藏默认的单选按钮 */
}

.custom-radio-label {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.light-style-radio:checked + .light-style-label {
    background-color: #e0e0e0;
    border-color: #008800;
    color: #000;
}

.dark-style-radio:checked + .dark-style-label {
    background-color: #333;
    border-color: #008800;
    color: #fff;
}

/* 登录框样式 */
.login-modal-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.0);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loginmodal-content {
    position: absolute;
    top: 150px;
    width: 60%;
    max-width: 300px;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.0s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

.loginmodal-content input {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.0s ease;
}

.loginmodal-content input:focus {
    border-color: #3490de;
    outline: none;
}

.input-error {
    border: 1px solid #FF0000;
    box-shadow: inset 0 0 5px red;
}

.loginmodal-content button {
    width: 100%;
    padding: 12px;
    background-color: #3490de;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* 通知样式 */
.tongzhi {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 35px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    display: none;
    z-index: 9999;
}

/* 主页容器样式 */
.container-fluid {
    flex-grow: 1;
}

.fixed-top-buttons {
    display: flex;
    top: 0px;
    left: 0px;
    right: 0px;
    justify-content: space-between;
    align-items: center;
}

/* 样式设置弹出窗口样式 */
.style-modal-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.style-modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    position: absolute;
    top: 110px;
    left: 5px;
    right: 5px;
    bottom: 120px;
}

.style-modal-title {
    text-align: center;
    margin-bottom: 10px;
    color: #000;
    font-size: 20px;
    font-weight: bold;
}

.style-model-neirong {
    width: 100%;
    height: 100%;
    border: 1px solid #FF0000;
}

.style-btn-bottom {
    bottom: 20px;
    left: 0px;
    right: 0px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
}

/* 自定义下拉列表样式 */
.overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9995;
    display: none;
}

.custom-select-button {
    margin-top: 15px;
    left: 5px;
    right: 5px;
    height: 36px;
    position: absolute;
    padding: 0px 3px;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #DD0000;
    border: 2px solid #008800;
    border-radius: 15px;
    background-color: #e5fff2;
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 18px;
    display: flex;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    z-index: 9996;
}

.custom-select-options {
    display: none;
    position: absolute;
    border: 2px solid #008800;
    border-top: none;
    border-radius: 15px;
    background-color: white;
    z-index: 9995;
    box-sizing: border-box;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-select-options::-webkit-scrollbar {
    display: none;
}

.custom-select-option {
    padding: 5px;
    padding-left: 20px;
    cursor: pointer;
    color: #008800;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
}

/* 文件选择弹出框样式 */
.filemodal {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9997;
}

/* 删除确认模态框样式 */
#deleteConfirmModal {
    z-index: 9999;
}

#deleteConfirmModal .filemodal-content {
    z-index: 10000;
    width:280px;
height:260px;
    margin:auto;
    
}

/* 文件菜单弹出框内容区域 */
.filemodal-content {
    background: white;
    padding: 15px 15px;
    border-radius: 15px;
    text-align: center;
    position: absolute;
    left: 5px;
    right: 5px;
    top: 50px;
    bottom: 120px;
    display: flex;
    flex-direction: column;

    overflow: hidden;
}

/* 目录导航样式 */
.directory-nav {
    display: flex;
    padding: 0px;
    gap: 10px;

    margin-bottom: 4px;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    box-sizing: border-box;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    overflow-y: hidden;
    overflow-x: auto;

}

.dir-btn {
    padding: 6px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: all 0.3s ease;
    height: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0px 8px;
}

.dir-btn.active {
    background-color: #3490de;
    color: white;
    border-color: #3490de;
    font-weight: bold;
}



/* 文件列表区域样式 */
.file-selection-area {
    display: flex;
    flex-grow: 1;
    overflow-y: hidden;
    overflow-x: hidden;
    max-height: 100%;
    flex: 1;
    overflow: hidden;
  
}

.file-checkbox-list {
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ccc;

}

.file-item {
    padding: 3px 6px;
    font-size: 18px;
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* 字母导航样式 */
.container {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-left: 8px;
    overflow-y: hidden;
    overflow-x: hidden;
    width: 32px;
    user-select: none;
    background-color: #fafafa;
    
}

.container.dh-container {
   
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: none;
    
}

.container.dh-container::-webkit-scrollbar {
    display: none;
}

.letter {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    color: #2196F3;
    min-height: 10px;
}

.letter:last-child {
    border-bottom: none;
}

.letter.active {
    background-color: #DD0000;
    color: white;
    font-size: 30px;
    min-height: 30px;
}

/* 文件列表高亮样式 */
.highlight {
    background-color: #DD0000;
    color: #FFF;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* 底部按钮区域样式 */
.btn-bottom {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    flex-shrink: 0;
    
}

/* 编辑窗口样式 */
.filemodal-edit {
    position: fixed;
    top: 0;
    left: 0;
    right:0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    animation: fadeIn 0.2s ease;
}

.filemodal-content-edit {
    background: white;
    padding: 15px 15px;
    text-align: center;
    position: absolute;
    left: 5px;
    right: 5px;
    font-weight: bold;
    top: 5px;
    bottom: 5px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    
}

.file-modal-filename-input {
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #DD0000;
    border: none;
    border-bottom: 2px solid #DD0000;
    background: transparent;
    text-align: center;
    outline: none;
}

#fileContentTextarea {
    border: none;
    outline: none;
    width: 100%;
    height: 90%;
    font-size: 22px;
    padding: 0px 10px;
    font-weight: bold;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 主内容区域样式 */
.listbox {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

#fileContentList {
    flex-grow: 1;
    position: absolute;
    top: 110px;
    bottom: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 15px;
    left: 5px;
    right: 5px;
}

.listbox div {
    padding: 0px 15px;
    background-color: white;
    border-bottom: 1px solid #ccc;
    display: flex;
    font-size: 24px;
    font-weight: bold;
    height: 36px;
    align-items: center;
}

.listbox div.active {
    background-color: #71b3ff;
    color: white;
}

/* 底部固定区域样式 */
.fixed-bottom-buttons {
    position: fixed;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 100px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.middle-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 28%;
    height: 100%;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 20px;
}

input[type="checkbox"] {
    transform: scale(1.4);
    margin-right: 10px;
}

.btn-delete {
    background-color: #009900;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.btn-del{
background-color: #009900;

    font-size: 16px;
    padding: 8px 15px;
    color: white;
border-radius: 6px;
font-weight: bold;

}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    margin: 16px;
    text-align: center;
}

.modal-body {
    
    text-align: center;
    font-size:16px;
}
