/* `Basic HTML
----------------------------------------------------------------------------------------------------*/
* {
    box-sizing: border-box;
    font-family: 微软雅黑;
    outline: none;
}

html, body {
    overflow: hidden;
}

body {
    background: #000;
    font: 12px/1 'Lucida Grande', Arial, 'Liberation Sans', FreeSans, sans-serif;
}

body,
body *:not(input):not(textarea):not(select):not(option) {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}


a {
    text-decoration: none;
}

li {
    list-style: none;
}

.overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clearfix {
    clear: both;
}

.abs {
    position: absolute !important;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
}

.align_center {
    text-align: center;
}

.align_right {
    text-align: right;
}

.float_left {
    float: left;
}

.float_right {
    float: right;
}

.font-bold{
    font-weight: bold;
}

.ui-resizable-se {
    background: url(../../images/gui/window_corner.gif) no-repeat right bottom;
    font-size: 0;
    overflow: hidden;
    width: 15px;
    height: 15px;
    right: 0;
    bottom: 0;
}

div.ui-resizable-handle {
    display: none !important;
    visibility: hidden !important;
}

.pointer {
    cursor: pointer;
}

#cont {
    display: block;
    width: 100%;
    height: 100%;
}

#dialog_alert {
    display: none;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    backdrop-filter: blur(2px);
    z-index: 999;
}

.dialog_alert_body {
    display: block;
    width: 400px;
    min-height: 0px;
    left: calc(50% - 200px);
    top: calc(50% - 124px);
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #000;
    padding: 1px;
}

.dialog_alert_top {
    display: block;
    background: #333 url(../../images/gui/bar_bottom.png) repeat-x;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #fff;
    font-weight: bold;
    overflow: hidden;
    line-height: 30px;
    padding: 0 10px;
    text-shadow: #000 0 1px 1px;
    height: 30px;
}

.dialog_alert_top img {
    display: block;
    float: left;
    margin: 6px 5px 0 0;
}

.dialog_alert_content {
    display: block;
    font-size: 14px;
    line-height: 20px;
    padding: 10px;
    overflow: auto;
    word-break: break-word;
}

#dialog_confirm {
    display: none;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    backdrop-filter: blur(2px);
    z-index: 999;
}

.dialog_confirm_body {
    display: block;
    width: 400px;
    min-height: 0px;
    left: calc(50% - 200px);
    top: calc(50% - 124px);
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #000;
    padding: 1px;
}

.dialog_confirm_top {
    display: block;
    background: #333 url(../../images/gui/bar_bottom.png) repeat-x;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #fff;
    font-weight: bold;
    overflow: hidden;
    line-height: 30px;
    padding: 0 10px;
    text-shadow: #000 0 1px 1px;
    height: 30px;
}

.dialog_confirm_top img {
    display: block;
    float: left;
    margin: 6px 5px 0 0;
}

.dialog_confirm_content {
    display: block;
    font-size: 14px;
    line-height: 20px;
    padding: 10px;
    overflow: auto;
    word-break: break-word;
}

#dialog_confirm button {
    display: block;
    width: 80px;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    padding: 0px;
    border: none;
    margin: 10px;
    background-color: #fff;
    color: #333;
    border-radius: 2px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#dialog_confirm button:hover {
    background-color: #9B0801;
    color: #fff;
}

#dialog_confirm button:active {
    padding-top: 1px;
}

#dialog_verify {
    display: none;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    backdrop-filter: blur(2px);
    z-index: 999;
}

.dialog_verify_body {
    display: block;
    width: 200px;
    min-height: 0px;
    left: calc(50% - 100px);
    top: calc(50% - 124px);
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #000;
    padding: 1px;
}

.dialog_verify_top {
    display: block;
    background: #333 url(../../images/gui/bar_bottom.png) repeat-x;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #fff;
    font-weight: bold;
    overflow: hidden;
    line-height: 30px;
    padding: 0 10px;
    text-shadow: #000 0 1px 1px;
    height: 30px;
}

.dialog_verify_top img {
    display: block;
    float: left;
    margin: 6px 5px 0 0;
}

.dialog_verify_content input{
    display: block;
    width : calc(100% - 20px);
    font-size: 12px;
    line-height: 15px;
    margin: 10px;
    text-align: center;
}

#dialog_verify button {
    display: block;
    width: calc(100% - 20px);
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    padding: 0px;
    border: none;
    margin:10px;
    background-color: #fff;
    color: #333;
    border-radius: 2px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#dialog_verify button:hover {
    background-color: #9B0801;
    color: #fff;
}

#dialog_verify button:active {
    padding-top: 1px;
}

#loading {
    display: none;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    backdrop-filter: blur(2px);
    z-index: 1000;
}

#loading img {
    display: block;
    width: 32px;
    left: calc(50% - 16px);
    top: calc(50% - 16px);
    animation: spin 2s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.win_loading{
    pointer-events: none;
    filter: blur(2px);
}
/* `Icons
----------------------------------------------------------------------------------------------------*/

.icon {
    background: url(../../images/gui/trans_white.png) no-repeat -99999px -99999px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.3;
    padding: 6px 1px 6px;
    text-align: center;
    text-shadow: #000 0 1px 2px;
    width: 80px;
    height: 68px;
}

.icon .notify_dot{
    display: block;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 4px;
    position: absolute;
    right: 18px;
    top: 5px;
}

.icon.active {
    background: url(../../images/gui/trans_black.png);
}

.icon img {
    background: url(../../images/gui/trans_black.png) no-repeat -99999px -99999px;
    display: block;
    margin: 0 auto 5px;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.icon span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.icon:hover,
.icon.ui-draggable-dragging {
    background-position: 0 0;
    background-repeat: repeat;
    border: 1px solid #fff;
    padding: 5px 0 5px;
}

.icon.ui-draggable-dragging {
    z-index: 20;
}

/* `Windows
----------------------------------------------------------------------------------------------------*/

.window {
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #000;
    display: none;
    width: 720px;
    height: 360px;
    top: 30px;
    left: 120px;
    z-index: 2;
}

.window.window_stack,
.window.ui-draggable-dragging {
    z-index: 10;
}

.window.ui-draggable-dragging {
    opacity: 0.9;
}

.window.ui-draggable-dragging .window_content,
.window.ui-draggable-dragging .window_bottom {
    display: block;
}

.window_full.ui-draggable-dragging {
    opacity: 1;
}

.window_full.ui-draggable-dragging .window_content,
.window_full.ui-draggable-dragging .window_bottom {
    display: block;
}

.window_full {
    border: 0;
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    -webkit-background-clip: padding-box;
    width: 100%;
    height: 100%;
}

.window_full .ui-resizable-se {
    display: none;
}

.window_top {
    background: #333 url(../../images/gui/bar_bottom.png) repeat-x;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #fff;
    font-weight: bold;
    overflow: hidden;
    line-height: 30px;
    padding: 0 10px;
    text-shadow: #000 0 1px 1px;
    height: 30px;
}

.window_top > span:first-of-type {
    width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window_top img {
    float: left;
    margin: 6px 5px 0 0;
}

.window_bottom {
    background: #fff url(../../images/gui/bar_top.png) repeat-x left bottom;
    border-top: 1px solid #bbb;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-bottomright: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-background-clip: padding-box;
    font-size: 11px;
    font-weight: bold;
    line-height: 20px;
    overflow: hidden;
    text-align: center;
    text-shadow: #fff 0 1px 1px;
    height: 20px;
    left: 1px;
    right: 1px;
    bottom: 1px;
}

.window_min,
.window_resize,
.window_close {
    background: url(../../images/gui/window_buttons.gif) no-repeat;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    -webkit-background-clip: padding-box;
    float: left;
    font-size: 0;
    margin: 6px 0 0 5px;
    width: 28px;
    height: 15px;
}

.window_min:hover {
    background-position: 0 -15px;
}

.window_resize {
    background-position: -28px 0;
}

.window_resize:hover {
    background-position: -28px -15px;
}

.window_close {
    background-position: -56px 0;
}

.window_close:hover {
    background-position: -56px -15px;
    box-shadow: #f00 0 0 10px;
    -moz-box-shadow: #f00 0 0 10px;
    -webkit-box-shadow: #f00 0 0 10px;
}

.window_min:hover,
.window_resize:hover {
    box-shadow: #09f 0 0 10px;
    -moz-box-shadow: #09f 0 0 10px;
    -webkit-box-shadow: #09f 0 0 10px;
}

.window_inner {
    padding: 1px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.window_content {
    line-height: 1.5;
    overflow: auto;
    top: 32px;
    left: 1px;
    right: 1px;
    bottom: 23px;
}

.window_aside {
    float: left;
    font-size: 11px;
    width: 150px;
    position: fixed;
}

.window_main {
    background: #fff;
    width: 100%;
    min-height: 100%;
    position: relative;
}

.window_full .window_top,
.window_full .window_bottom {
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    -webkit-background-clip: padding-box;
}

.window_full .window_inner {
    bottom: -1px;
}

/* `Table >> Data
----------------------------------------------------------------------------------------------------*/

table.data {
    width: 100%;
    white-space: nowrap;
}

table.data th,
table.data td {
    padding: 5px 10px;
    vertical-align: middle;
}

table.data th {
    background: #fff url(../../images/gui/bar_top.png) repeat-x left bottom;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    font-weight: bold;
    text-shadow: #fff 0 1px 1px;
    white-space: nowrap;
}

table.data th:first-child {
    border-left: 0;
}

table.data img {
    display: block;
}

table.data tbody tr:nth-child(even) td {
    background: #def;
}

table.data tbody tr.active td {
    background: #06c url(../../images/gui/bar_top_link.png) repeat-x;
    color: #fff;
}

th.shrink {
    width: 1%;
}

/* `Bar >> Top + Bottom
----------------------------------------------------------------------------------------------------*/

#bar_top,
#bar_bottom {
    font-weight: bold;
    padding: 0 10px;
    left: 0;
    right: 0;
}

#bar_top {
    background: #fff url(../../images/gui/bar_top.png) repeat-x left bottom;
    color: #000;
    line-height: 25px;
    padding-right: 20px;
    text-shadow: #fff 0 1px 1px;
    height: 25px;
    top: 0;
}

#bar_bottom {
    background: #333 url(../../images/gui/bar_bottom.png) repeat-x;
    border-top: 1px solid #222;
    color: #fff;
    font-size: 13px;
    line-height: 30px;
    overflow-y: hidden;
    padding-top: 5px;
    padding-bottom: 5px;
    text-shadow: #000 0 1px 1px;
    height: 41px;
    bottom: 0;
}


/* `Bar >> Links
----------------------------------------------------------------------------------------------------*/

#bar_top li,
#bar_bottom li {
    float: left;
}

#bar_top li a,
#bar_bottom li a {
    display: block;
    padding: 0 10px;
}

.menu_logo {
    display: block;
    height: 25px;
}

.menu_logo:hover {
    opacity: 0.8;
}

#bar_bottom li {
    display: none;
    margin: 0 0 10px 5px;
    min-width: 150px;
}

#bar_bottom li a {
    background: #333;
}

#bar_bottom a {
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #fff;
    overflow: hidden;
    padding: 0 10px;
    height: 30px;
}

#bar_bottom a:hover {
    background: #000;
}

#bar_bottom a:active {
    background: #9B0801;
    border: 1px solid #fff;
    padding: 0 9px;
}

#bar_bottom li a img {
    float: left;
    margin: 4px 5px 0 -5px;
}

#bar_bottom .float_left img,
#bar_bottom .float_right img {
    display: block;
    padding: 4px 0 0;
}

#dock {
    display: flex;
    flex-wrap: nowrap; /* 不换行 */
    justify-content: flex-start; /* 默认靠左对齐 */
    align-items: center;
    gap: 0; /* 有间距就留意会占宽，可按需设置 */
    width: calc(100% - 42px);
    overflow: hidden; /* 超出时不换行而是让子项收缩 */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 子项 */
#dock li {
    /* 关键：不增长、允许收缩、默认宽度 140px */
    flex: 0 1 140px; /* grow=0, shrink=1, basis=140px */
    max-width: 140px; /* 在空间富余时不超过 140px（保持固定宽度） */
    min-width: 58px;
}

#dock span {
    display: inline-block;
    width: calc(100% - 22px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/* `Wrapper + Wallpaper + Desktop
----------------------------------------------------------------------------------------------------*/

#wallpaper {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

#desktop {
    overflow: hidden;
    top: 26px;
    left: 0;
    right: 0;
    bottom: 41px;
}
#wrapper {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-width: 700px;
    min-height: 500px;
}

#login_panel {
    display: block;
    width: 100%;
    height: 240px;
    top: calc(50% - 120px);
}

.login_btn {
    display: block;
    width: 240px;
    height: 240px;
    left: calc(50% - 120px);
}

.login_btn::before,
.login_btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../../images/gui/login_btn_bkg.png");
    background-size: 240px;
}

.login_btn::before {
    background-position: 0 -240px;
    opacity: 1;
    transition: opacity 0.5s;
}

.login_btn::after {
    background-position: 0px 0px;
    opacity: 0;
    transition: opacity 0.5s;
}

.login_btn:hover::before {
    opacity: 0;
}

.login_btn:hover::after {
    opacity: 1;
}

.login_input_div {
    display: block;
    width: 440px;
    height: 40px;
    padding: 0px 20px;
}

.login_input_div img {
    display: block;
    width: 20px;
    margin-top: 10px;
}

.login_input_div input {
    display: block;
    width: 360px;
    height: 40px;
    line-height: 40px;
    background-color: transparent;
    color: #fff;
    font-size: 12px;
    border: none;
    padding: 0 10px;
    margin-left: 20px;
    text-align: center;
}

.login_go {
    display: block;
    width: 40px;
    height: 40px;
    top: 30px;
    right: 0px;
}

.login_go::before,
.login_go::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../../images/gui/go_bkg.png");
    background-size: 40px;
}

.login_go::before {
    background-position: 0px 0px;
    opacity: 1;
    transition: opacity 0.5s;
}

.login_go::after {
    background-position: 0px -40px;
    opacity: 0;
    transition: opacity 0.5s;
}

.login_go:hover::before {
    opacity: 0;
}

.login_go:hover::after {
    opacity: 1;
}

.login_inner {
    display: block;
    width: 480px;
    height: 100px;
    top: 10px;
    left: calc(50% - 240px);
    transform: scaleX(0);
    transform-origin: center center;
    transition: transform 0.2s ease-out;
}

.login_inner_show {
    transform: scaleX(1);
}

/* ---- DROP DOWN UPLOAD FILES ---- */
:root {
    --brand: #3b82f6;
    --muted: #6b7280;
}

.drop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(59, 130, 246, .10);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
    z-index: 9999;
}

.drop-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drop-msg {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 600;
}

.tray {
    position: fixed;
    right: 16px;
    bottom: 60px;
    width: 380px;
    overflow: auto;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 5px;
    padding: 10px;
    display: none;
    z-index: 10000;
    left: auto;
    top: auto;
    height: 200px;
}

.tray .caption {
    display: block;
    margin: 6px 6px 18px;
    font-size: 12px;
}

#list {
    display: block;
    width: 100%;
}

.item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 6px;
}

.name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar {
    width: 150px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.bar > div {
    height: 100%;
    width: 0%;
    background: var(--brand);
    transition: width .12s linear;
}

.status {
    font-size: 12px;
    color: var(--muted);
    min-width: 70px;
    text-align: right;
}

.err .bar > div {
    background: #ef4444;
}

.ctx-menu {
    position: fixed;
    min-width: 120px;
    background: #fff;
    border-radius: 4px;
    padding: 6px 0;
    z-index: 998;
    font-size: 12px;
    border:1px solid #000;
}

.ctx-menu[hidden] {
    display: none;
}

.ctx-item {
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.ctx-item:hover {
    background: #f3f4f6;
}

.ctx-sep {
    height: 1px;
    margin: 6px 0;
    background: #e5e7eb;
}

.icon_rename_input{
    display: block;
    width:100%;
    text-align: center;
    font-size:11px;
}


/* 选中态高亮 */
.icon.selected {
    background-position: 0 0;
    background-repeat: repeat;
    border: 1px solid #fff;
    padding: 5px 0 5px;
    background: url(../../images/gui/trans_white.png);
}


/* 拖拽时的“堆叠幽灵” */
.drag-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    background-position: 0 0;
    background-repeat: repeat;
    border: 1px solid #fff;
    background: url(../../images/gui/trans_black.png);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -webkit-background-clip: padding-box;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    width: 40px;
    height : 40px;
}

/* 多选框 */
#marquee {
    position: absolute;
    border: 1px dashed #60a5fa;
    background: rgba(59,130,246,.1);
    pointer-events: none;
    display: none;
    z-index: 999;
}

/* 通用可被拖入样式 */
.ui-droppable-hover {
    outline: 2px dashed #ef4444;
}