/* ============================================================
   MacOS-Web-UI Framework CSS
   Flattened from SCSS .vue components + app.css + animation.css
   ============================================================ */

/* ------------------------------------------------------------
   1. Global Styles (app.css)
   ------------------------------------------------------------ */

body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.space {
    flex-grow: 1;
}

@font-face {
    font-family: 'Gotham-Book';
    src: url('/static/fonts/Gotham-Book.woff2');
}

* {
    font-family: 'Gotham-Book';
    background-attachment: fixed;
    outline: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

input,
textarea {
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    -khtml-user-select: text;
    user-select: text;
}

audio {
    position: relative;
    z-index: 99;
}

[v-cloak] {
    visibility: hidden !important;
}

/* ------------------------------------------------------------
   1a. Scrollbar Styles
   ------------------------------------------------------------ */

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-button {
    background-color: transparent;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* ------------------------------------------------------------
   1b. Element Plus Global Overrides
   ------------------------------------------------------------ */

.el-dropdown-menu__item {
    font-size: 13px !important;
    color: #333;
    margin: 3px 5px;
    border-radius: 5px;
    padding: 0px 12px;
    display: flex;
    align-items: center;
    line-height: 2;
}

.el-scrollbar {
    width: 100%;
}

.el-table__body-wrapper>.el-scrollbar {
    width: 100%;
}

.el-dropdown__popper.el-popper[role=tooltip] {
    top: 32px !important;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
}

.el-dropdown-menu__item:hover {
    background-color: #4b9efb !important;
    color: white !important;
}

.el-dropdown-menu__item span:hover {
    color: white !important;
}

.el-dropdown-menu {
    padding: 0 !important;
    background: transparent !important;
}

.el-dropdown-menu__item.line {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0px 15px;
}

.el-dropdown-menu__item span {
    color: #aaa;
}

.el-popper__arrow,
.el-popper__arrow::before {
    content: '' !important;
    width: 0;
    height: 0;
    opacity: 0;
    display: none !important;
}

.el-tag__close {
    position: absolute !important;
    right: 3px !important;
    top: 6px !important;
}

/* ------------------------------------------------------------
   2. Animation Keyframes & Transition Classes (animation.css)
   ------------------------------------------------------------ */

.fade-enter-active {
    animation: fade-in 1s;
}

.fade-leave-active {
    animation: fade-out 1s;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.fade-window-enter-active {
    opacity: 1;
}

.fade-window-leave-active {
    animation: fade-window-out .8s;
}

@keyframes fade-window-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-window-out {
    0% {
        opacity: 1;
    }

    30% {
        opacity: 0.8;
        left: 30%;
        right: 30%;
    }

    100% {
        opacity: 0;
        left: 100%;
        right: 100%;
        top: 100%;
    }
}

.fade-menu-enter-active {
    animation: fade-menu-in .1s;
}

.fade-menu-leave-active {
    animation: fade-menu-out .1s;
}

@keyframes fade-menu-in {
    0% {
        width: 0px;
        opacity: 0;
    }

    100% {
        width: 200px;
        opacity: 1;
    }
}

@keyframes fade-menu-out {
    0% {
        width: 200px;
        opacity: 1;
    }

    100% {
        width: 0px;
        opacity: 0;
    }
}

@keyframes jumpAnimation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes dockTitleAnimation {
    0% {
        opacity: 0;
        top: 0;
    }

    100% {
        opacity: 1;
        top: -66px;
    }
}

@keyframes loginErrorAnimation {
    0% {
        margin-left: -30px;
    }

    50% {
        margin-left: 30px;
    }

    100% {
        margin-left: 0;
    }
}

/* ------------------------------------------------------------
   3. MacOS.vue Root (.mac-os)
   ------------------------------------------------------------ */

.mac-os {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/* ------------------------------------------------------------
   4. Bg.vue (.macos-bg)
   ------------------------------------------------------------ */

.macos-bg {
    background-color: #000;
    position: fixed;
    object-fit: cover;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ------------------------------------------------------------
   5. Loading.vue (.macos-loading)
   ------------------------------------------------------------ */

.macos-loading {
    background-color: #000;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: -100px;
    z-index: 99999;
}

.macos-loading .logo .iconfont {
    font-size: 120px;
}

.macos-loading .progress {
    margin-top: 50px;
    width: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.macos-loading .progress div {
    width: 20%;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

/* ------------------------------------------------------------
   6. Login.vue (.macos-login)
   ------------------------------------------------------------ */

.macos-login ::-webkit-input-placeholder {
    color: #fff;
}

.macos-login ::-moz-placeholder {
    color: #fff;
}

.macos-login :-ms-input-placeholder {
    color: #fff;
}

.macos-login {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: -100px;
    z-index: 99999;
    backdrop-filter: blur(100px);
}

.macos-login .head {
    background-size: 40% auto;
    background-position: center center;
    height: 150px;
    width: 150px;
    border-radius: 100%;
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.1);
    margin-top: -50px;
}

.macos-login .message {
    margin-top: 20px;
    font-size: 20px;
    text-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.3);
    color: #eee;
    margin-bottom: 50px;
}

.macos-login .form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.macos-login .form .error {
    animation: loginErrorAnimation 0.2s ease 3;
}

.macos-login .form .item {
    vertical-align: middle;
    position: relative;
    width: 250px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.macos-login .form .item input {
    color: white;
    outline: none;
    border: none;
    margin: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 8px 24px;
    border-radius: 20px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.macos-login .form .item .password-in {
    width: 155px;
}

.macos-login .form .item .password {
    transition: width 0.3s;
}

.macos-login .form .item .login-button {
    position: absolute;
    top: 5px;
    right: -50px;
    transition: right 0.3s;
}

.macos-login .form .item .iconfont {
    vertical-align: middle;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    border-radius: 100%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.macos-login .form .item .iconfont:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.macos-login .form .item .click-enable {
    right: 0;
}

/* ------------------------------------------------------------
   7. DeskTop.vue (.macos-desktop) - Scoped Styles
   ------------------------------------------------------------ */

.macos-desktop {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    color: white;
    overflow: hidden;
    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}

/* --- Top Bar --- */

.macos-desktop .top {
    height: 28px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: row;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    padding: 0px 5px;
    z-index: 100;
}

.macos-desktop .top .logo {
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0px 15px;
    cursor: pointer;
    position: relative;
    display: flex;
}

.macos-desktop .top .logo .iconfont {
    font-size: 16px;
    margin-top: -3px;
}

.macos-desktop .top .logo .el-select {
    position: absolute;
    opacity: 0;
}

.macos-desktop .top .logo:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.macos-desktop .top .space {
    flex-grow: 1;
}

/* --- Menu --- */

.macos-desktop .top .menu {
    display: flex;
    flex-direction: row;
    font-size: 13px;
    height: 100%;
    font-weight: 500;
}

.macos-desktop .top .menu .item {
    font-size: 13px;
    padding: 0px 15px;
    display: flex;
    flex-grow: 1;
    cursor: pointer;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.macos-desktop .top .menu .item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Status Bar --- */

.macos-desktop .top .status {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.macos-desktop .top .status .audio {
    cursor: pointer;
    padding: 0px 10px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.macos-desktop .top .status .audio .iconfont {
    font-size: 20px;
}

.macos-desktop .top .status .audio .el-slider {
    position: absolute;
    top: 40px;
    height: 80px;
}

.macos-desktop .top .status .audio:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.macos-desktop .top .status .datetime {
    cursor: pointer;
    padding: 0px 10px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.macos-desktop .top .status .datetime .el-calendar {
    color: #333;
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 40px;
    right: 20px;
    width: 500px;
    border-radius: 10px;
}

.macos-desktop .top .status .datetime:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.macos-desktop .top .status .notification {
    cursor: pointer;
    padding: 0px 10px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.macos-desktop .top .status .notification .iconfont {
    font-size: 20px;
}

.macos-desktop .top .status .notification:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Body --- */

.macos-desktop .body {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* --- Desktop App Grid --- */

.macos-desktop .body .desktop-app {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 20px;
    flex-wrap: wrap-reverse;
}

.macos-desktop .body .desktop-app .app-item {
    padding: 10px 0px;
    flex-direction: column;
    text-align: center;
    text-shadow: 0px 0px 2px rgb(0 0 0 / 50%);
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid transparent;
    justify-content: center;
    align-items: center;
    width: 80px;
}

.macos-desktop .body .desktop-app .app-item .icon {
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.macos-desktop .body .desktop-app .app-item .iconfont {
    font-size: 28px;
    border-radius: 10px;
    padding: 8px;
}

.macos-desktop .body .desktop-app .app-item .title {
    font-size: 12px;
    margin-top: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.macos-desktop .body .desktop-app .app-item:hover {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* --- Context Menu --- */

.macos-desktop .body .contextmenu {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 30%);
    color: #333;
    font-size: 14px;
    text-align: left;
    width: 200px;
    overflow: hidden;
    padding: 2px 0px;
    text-shadow: none;
    z-index: 100;
}

.macos-desktop .body .contextmenu hr {
    border: none;
    border-top: 1px solid #ddd;
}

.macos-desktop .body .contextmenu div {
    cursor: pointer;
    font-size: 13px !important;
    color: #333;
    border-radius: 5px;
    line-height: 2;
    padding: 0px 12px;
    display: flex;
    align-items: center;
    margin: 3px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.macos-desktop .body .contextmenu div:hover {
    background: #4b9efb;
    color: white;
    border-radius: 5px;
}

/* --- Footer --- */

.macos-desktop .footer {
    display: flex;
    z-index: 100;
}

/* --- DeskTop.vue Unscoped / Global Element Plus Overrides --- */

.top .el-dropdown {
    color: white !important;
    height: 100% !important;
}

.top .el-calendar-day {
    height: 30px !important;
}

.top .is-today {
    background: #4b9efb !important;
    color: white !important;
}

/* ------------------------------------------------------------
   8. App.vue / AppWindow (.macos-movebg)
   ------------------------------------------------------------ */

.macos-movebg {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/* --- isTop state --- */

.macos-movebg .isTop .box-center-center {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5) !important;
    filter: none !important;
}

/* --- isMaxShowing state --- */

.macos-movebg .isMaxShowing {
    left: -5px !important;
    right: -5px !important;
    top: 23px !important;
    bottom: 41px !important;
}

/* --- isFullScreen state --- */

.macos-movebg .isFullScreen {
    position: fixed !important;
    z-index: 999 !important;
    bottom: -5px !important;
    top: -5px !important;
}

/* --- Max/Full border-radius reset --- */

.macos-movebg .isMaxShowing .box-center-center,
.macos-movebg .isFullScreen .box-center-center {
    border-radius: 0px !important;
}

/* --- Box animation transitions --- */

.macos-movebg .box-animation {
    transition: width 0.1s, height 0.1s, left 0.1s, right 0.1s, top 0.1s, bottom 0.1s;
}

/* --- Resize disabled (default cursors) --- */

.macos-movebg .resize-disabled .box-top,
.macos-movebg .resize-disabled .box-top-left,
.macos-movebg .resize-disabled .box-top-center,
.macos-movebg .resize-disabled .box-top-right,
.macos-movebg .resize-disabled .box-left,
.macos-movebg .resize-disabled .box-center-left,
.macos-movebg .resize-disabled .box-center-right,
.macos-movebg .resize-disabled .box-right,
.macos-movebg .resize-disabled .box-bottom,
.macos-movebg .resize-disabled .box-bottom-left,
.macos-movebg .resize-disabled .box-bottom-center,
.macos-movebg .resize-disabled .box-bottom-right {
    cursor: default !important;
}

/* --- Box CSS Custom Properties --- */

.macos-movebg .box {
    --resize: 5px;
    --resize-bg: transparent;
    --resize-main: transparent;
    --resize-bg-main: transparent;
}

/* --- Box layout --- */

.macos-movebg .box {
    display: flex;
    flex-direction: column;
    position: absolute;
    pointer-events: auto;
}

/* --- Box Top Row (resize handles) --- */

.macos-movebg .box .box-top {
    display: flex;
    flex-direction: row;
}

.macos-movebg .box .box-top-left {
    width: var(--resize);
    height: var(--resize);
    background: var(--resize-bg);
    cursor: nw-resize;
}

.macos-movebg .box .box-top-center {
    height: var(--resize);
    background: var(--resize-bg-main);
    cursor: n-resize;
    flex-grow: 1;
}

.macos-movebg .box .box-top-right {
    width: var(--resize);
    height: var(--resize);
    background: var(--resize-bg);
    cursor: ne-resize;
}

/* --- Box Center Row --- */

.macos-movebg .box .box-center {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}

.macos-movebg .box .box-center .loader {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    width: 100%;
}

.macos-movebg .box .box-center-left {
    width: var(--resize);
    height: 100%;
    background: var(--resize-bg-main);
    cursor: w-resize;
}

.macos-movebg .box .box-center-center {
    height: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0px 0px 3px #999;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    overflow: hidden;
    filter: grayscale(1) brightness(0.9);
}

.macos-movebg .box .box-center-right {
    width: var(--resize);
    height: 100%;
    background: var(--resize-bg-main);
    cursor: e-resize;
}

/* --- App Bar (title bar) --- */

.macos-movebg .box .box-center-center .app-bar {
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.macos-movebg .box .box-center-center .app-bar .title {
    flex-grow: 1;
    text-align: center;
    margin-right: 84px;
    font-weight: 500;
    text-shadow: none;
    font-size: 13px;
    cursor: move;
    color: #333;
}

.macos-movebg .box .box-center-center .app-bar .controll {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
}

.macos-movebg .box .box-center-center .app-bar .controll div {
    border-radius: 100%;
    height: 14px;
    width: 14px;
    margin-right: 8px;
    cursor: pointer;
}

.macos-movebg .box .box-center-center .app-bar .controll .close {
    background: #fc605c;
}

.macos-movebg .box .box-center-center .app-bar .controll .close:hover {
    background: #cc2c26;
}

.macos-movebg .box .box-center-center .app-bar .controll .min {
    background: #fcbb40;
}

.macos-movebg .box .box-center-center .app-bar .controll .min:hover {
    background: #c28719;
}

.macos-movebg .box .box-center-center .app-bar .controll .full {
    background: #34c648;
}

.macos-movebg .box .box-center-center .app-bar .controll .full:hover {
    background: #1f942e;
}

.macos-movebg .box .box-center-center .app-bar .controll .full-disabled {
    background: #ccc !important;
}

/* --- App Body --- */

.macos-movebg .box .box-center-center .app-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 0;
}

/* --- Box Bottom Row (resize handles) --- */

.macos-movebg .box .box-bottom {
    display: flex;
    flex-direction: row;
}

.macos-movebg .box .box-bottom-left {
    width: var(--resize);
    height: var(--resize);
    background: var(--resize-bg);
    cursor: sw-resize;
}

.macos-movebg .box .box-bottom-center {
    height: var(--resize);
    background: var(--resize-bg-main);
    cursor: s-resize;
    flex-grow: 1;
}

.macos-movebg .box .box-bottom-right {
    width: var(--resize);
    height: var(--resize);
    background: var(--resize-bg);
    cursor: se-resize;
}

/* ------------------------------------------------------------
   9. Dock.vue (.macos-dock)
   ------------------------------------------------------------ */

.macos-dock {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    flex-direction: row;
    display: flex;
    padding: 2px;
    z-index: 99990;
}

.macos-dock .item {
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.macos-dock .item .iconfont {
    cursor: pointer;
    padding: 2px;
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 30px;
    width: 30px;
    text-align: center;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, margin 0.3s;
}

.macos-dock .item:hover .iconfont {
    transform: scale(2) translateY(-10px);
    margin: 0px 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.macos-dock .item:hover .title {
    position: absolute;
    display: inherit;
    word-break: keep-all;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 12px;
    animation: dockTitleAnimation 0.5s ease 1 forwards;
}

.macos-dock .title {
    display: none;
}

.macos-dock .dot {
    width: 3px;
    height: 3px;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    bottom: 0px;
    border-radius: 5px;
    display: inline-block;
    font-size: 0;
}

.macos-dock .jump {
    animation: jumpAnimation 0.8s ease 1;
}

/* ------------------------------------------------------------
   10. LaunchPad.vue (.macos-launchpad)
   ------------------------------------------------------------ */

.macos-launchpad {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: -100px;
    z-index: 99900;
    backdrop-filter: blur(100px);
}

.macos-launchpad .body {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
}

.macos-launchpad .body .launchpad-app {
    position: fixed;
    left: 10%;
    right: 5%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 100px;
    flex-wrap: wrap;
}

.macos-launchpad .body .launchpad-app .app-item {
    padding: 10px 0px;
    flex-direction: column;
    text-align: center;
    text-shadow: 0px 0px 2px rgb(0 0 0 / 50%);
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid transparent;
    justify-content: center;
    align-items: center;
    width: 180px;
}

.macos-launchpad .body .launchpad-app .app-item .icon {
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.macos-launchpad .body .launchpad-app .app-item .iconfont {
    font-size: 100px;
    border-radius: 10px;
    padding: 8px;
}

.macos-launchpad .body .launchpad-app .app-item .title {
    font-size: 12px;
    margin-top: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.macos-launchpad .footer {
    display: flex;
    z-index: 100;
    bottom: 0;
}

/* ------------------------------------------------------------
   11. Widget.vue (.macos-widget)
   ------------------------------------------------------------ */

.macos-widget {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    width: 200px;
    height: 100%;
}

/* ------------------------------------------------------------
   12. Footer Layout (.macos-footer)
   ------------------------------------------------------------ */

.macos-footer {
    display: flex;
    z-index: 100;
}

/* ============================================================
   13. Responsive / Mobile / Tablet Adaptations
   ============================================================ */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    .macos-launchpad .body .launchpad-app {
        padding: 40px;
    }

    .macos-launchpad .body .launchpad-app .app-item {
        width: 120px;
    }

    .macos-launchpad .body .launchpad-app .app-item .iconfont {
        font-size: 60px;
    }

    .macos-desktop .body .desktop-app .app-item {
        width: 80px;
    }

    .macos-desktop .body .desktop-app .app-item .iconfont {
        font-size: 42px;
    }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {

    /* Top menu bar taller for touch */
    .macos-desktop .top {
        height: 38px;
    }

    .macos-desktop .top .logo {
        padding: 0 10px;
    }

    .macos-desktop .top .logo img {
        height: 20px;
        width: 20px;
    }

    .macos-desktop .top .status .datetime {
        font-size: 12px;
    }

    /* Force all windows to full screen on mobile */
    .macos-movebg .box {
        left: 0 !important;
        right: 0 !important;
        top: 38px !important;
        bottom: 60px !important;
    }

    .macos-movebg .box .box-center-center {
        border-radius: 0 !important;
    }

    /* Hide resize handles */
    .macos-movebg .box .box-top,
    .macos-movebg .box .box-bottom,
    .macos-movebg .box .box-center-left,
    .macos-movebg .box .box-center-right {
        display: none !important;
    }

    /* Adjust title bar - taller for touch */
    .macos-movebg .box .box-center-center .app-bar {
        height: 42px;
        cursor: default;
    }

    .macos-movebg .box .box-center-center .app-bar .title {
        margin-right: 60px;
        font-size: 13px;
    }

    /* Bigger close/min/max buttons for touch */
    .macos-movebg .box .box-center-center .app-bar .controll div {
        height: 18px;
        width: 18px;
        margin-right: 8px;
    }

    .macos-movebg .box .box-center-center .app-bar .controll {
        margin-left: 12px;
    }

    /* Dock bigger for touch */
    .macos-dock {
        border-radius: 14px;
        padding: 4px 8px;
    }

    .macos-dock .item .iconfont {
        height: 40px;
        width: 40px;
        font-size: 28px;
        border-radius: 10px;
    }

    .macos-dock .item .title {
        font-size: 9px;
    }

    .macos-dock .item:hover .iconfont {
        transform: scale(1.15) translateY(-3px);
        margin: 0 3px;
    }

    .macos-footer {
        padding-bottom: 6px;
    }

    /* Desktop icons grid */
    .macos-desktop .body .desktop-app {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    }

    .macos-desktop .body .desktop-app .app-item {
        width: 75px;
    }

    .macos-desktop .body .desktop-app .app-item .icon .iconfont {
        font-size: 40px;
        height: 50px;
        width: 50px;
        line-height: 50px;
    }

    .macos-desktop .body .desktop-app .app-item .title {
        font-size: 11px;
    }

    /* Launchpad grid */
    .macos-launchpad .body .launchpad-app {
        left: 5%;
        right: 5%;
        padding: 20px;
    }

    .macos-launchpad .body .launchpad-app .app-item {
        width: 85px;
    }

    .macos-launchpad .body .launchpad-app .app-item .icon .iconfont {
        font-size: 44px;
        height: 54px;
        width: 54px;
        line-height: 54px;
    }

    .macos-launchpad .body .launchpad-app .app-item .title {
        font-size: 11px;
    }

    /* Menu bar responsive */
    .macos-desktop .top .top-menu {
        overflow-x: auto;
    }
}

/* --- Small Phone (≤480px) --- */
@media (max-width: 480px) {
    .macos-desktop .top {
        height: 36px;
    }

    .macos-dock .item .iconfont {
        height: 36px;
        width: 36px;
        font-size: 24px;
    }

    .macos-dock .item {
        padding: 3px;
    }

    /* Keep close button visible, hide min/full on very small screens */
    .macos-movebg .box .box-center-center .app-bar .controll .min,
    .macos-movebg .box .box-center-center .app-bar .controll .full {
        display: none;
    }

    .macos-movebg .box .box-center-center .app-bar .controll div {
        height: 16px;
        width: 16px;
    }

    .macos-launchpad .body .launchpad-app .app-item {
        width: 72px;
    }

    .macos-launchpad .body .launchpad-app .app-item .icon .iconfont {
        font-size: 38px;
        height: 48px;
        width: 48px;
        line-height: 48px;
    }

    .macos-desktop .body .desktop-app .app-item {
        width: 68px;
    }

    .macos-desktop .body .desktop-app .app-item .icon .iconfont {
        font-size: 36px;
        height: 46px;
        width: 46px;
        line-height: 46px;
    }
}

/* ============================================================
   14. App Content Common Styles
   ============================================================ */

/* Scrollable app body */
.macos-movebg .box .box-center-center .app-body {
    overflow: auto;
    justify-content: flex-start;
    align-items: stretch;
}

/* Common app content padding */
.app-content {
    padding: 16px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    background: #f5f5f7;
    color: #333;
    text-shadow: none;
    font-size: 13px;
}

/* Section cards */
.app-content .section-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
}

.app-content .section-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1d1d1f;
}

/* Stat cards grid */
.app-content .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.app-content .stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    text-align: center;
}

.app-content .stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.app-content .stat-card .stat-label {
    font-size: 11px;
    color: #86868b;
}

.app-content .stat-card .stat-trend {
    font-size: 11px;
    margin-top: 4px;
}

.app-content .stat-card .stat-trend.positive {
    color: #34c759;
}

.app-content .stat-card .stat-trend.negative {
    color: #ff3b30;
}

/* Chart container */
.app-content .chart-box {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
}

.app-content .chart-box h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1d1d1f;
}

.app-content .chart-box .chart-area {
    width: 100%;
    height: 280px;
}

/* Charts grid */
.app-content .charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* Form items */
.app-content .form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.app-content .form-group:last-child {
    border-bottom: none;
}

.app-content .form-group label {
    font-size: 13px;
    color: #1d1d1f;
    flex: 1;
}

.app-content .form-group .hint {
    font-size: 11px;
    color: #86868b;
    margin-top: 2px;
}

/* Review items */
.app-content .review-item {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 8px;
    border: 1px solid #e5e5e5;
}

.app-content .review-item .badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.app-content .review-item .badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.app-content .review-item .badge-style {
    background: #e8def8;
    color: #6750a4;
}

.app-content .review-item .badge-persona {
    background: #d1e7dd;
    color: #0f5132;
}

.app-content .review-item .badge-general {
    background: #e2e3e5;
    color: #41464b;
}

.app-content .review-item .badge-id {
    background: #f0f0f0;
    color: #666;
}

/* Action buttons row */
.app-content .action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Tab bar */
.app-content .tab-bar {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 12px;
}

.app-content .tab-bar .tab-item {
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #86868b;
    transition: color 0.2s, border-color 0.2s;
}

.app-content .tab-bar .tab-item.active {
    color: #007aff;
    border-bottom-color: #007aff;
}

/* Text diff highlight */
.text-diff-new {
    background: #d4edda;
    color: #155724;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Loading spinner */
.app-content .loading-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #86868b;
}

/* Empty state */
.app-content .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
}

.app-content .empty-state .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* QQ/GitHub links footer */
.app-content .social-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    padding: 12px;
}

.app-content .social-links a {
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11px;
    color: #fff;
    transition: opacity 0.2s;
}

.app-content .social-links a:hover {
    opacity: 0.85;
}

.app-content .social-links .qq-link {
    background: #12b7f5;
}

.app-content .social-links .gh-link {
    background: #24292e;
}

/* Filter bar */
.app-content .filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

/* Pagination */
.app-content .pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 12px;
    color: #86868b;
}

/* Persona card grid */
.app-content .persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* Mobile overrides for app content */
@media (max-width: 768px) {
    .app-content {
        padding: 10px;
        font-size: 12px;
    }

    .app-content .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .app-content .charts-grid {
        grid-template-columns: 1fr;
    }

    .app-content .chart-box .chart-area {
        height: 200px;
    }

    .app-content .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .app-content .persona-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   15. Dark Mode (body[data-theme="dark"])
   ============================================================ */

body[data-theme="dark"] .macos-desktop .top {
    background-color: rgba(0, 0, 0, 0.6);
}

body[data-theme="dark"] .macos-desktop .top .status .datetime .el-calendar {
    color: #e0e0e0;
    background: rgba(40, 40, 42, 0.98);
}

/* Element Plus dropdowns */
body[data-theme="dark"] .el-dropdown__popper.el-popper[role=tooltip] {
    background: rgba(40, 40, 42, 0.9);
    backdrop-filter: blur(20px);
}

body[data-theme="dark"] .el-dropdown-menu__item {
    color: #e0e0e0;
}

body[data-theme="dark"] .el-dropdown-menu__item span {
    color: #999;
}

body[data-theme="dark"] .el-dropdown-menu__item.line {
    background: rgba(255, 255, 255, 0.1);
}

/* Context menu */
body[data-theme="dark"] .macos-desktop .body .contextmenu {
    background: rgba(40, 40, 42, 0.95);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

body[data-theme="dark"] .macos-desktop .body .contextmenu hr {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .macos-desktop .body .contextmenu div {
    color: #e0e0e0;
}

/* App window */
body[data-theme="dark"] .macos-movebg .box .box-center-center {
    background: rgba(30, 30, 32, 0.9);
    box-shadow: 0px 0px 3px #000;
}

body[data-theme="dark"] .macos-movebg .box .box-center-center .app-bar {
    background: rgba(50, 50, 52, 0.8);
}

body[data-theme="dark"] .macos-movebg .box .box-center-center .app-bar .title {
    color: #e0e0e0;
}

/* Dock */
body[data-theme="dark"] .macos-dock {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .macos-dock .dot {
    background: rgba(255, 255, 255, 0.7);
}

/* App content area */
body[data-theme="dark"] .app-content {
    background: #1c1c1e;
    color: #e0e0e0;
}

body[data-theme="dark"] .app-content .section-card {
    background: #2c2c2e;
    border-color: #3a3a3c;
}

body[data-theme="dark"] .app-content .section-card h3 {
    color: #f0f0f0;
}

body[data-theme="dark"] .app-content .stat-card {
    background: #2c2c2e;
    border-color: #3a3a3c;
}

body[data-theme="dark"] .app-content .stat-card .stat-number {
    color: #f0f0f0;
}

body[data-theme="dark"] .app-content .stat-card .stat-label {
    color: #98989d;
}

body[data-theme="dark"] .app-content .chart-box {
    background: #2c2c2e;
    border-color: #3a3a3c;
}

body[data-theme="dark"] .app-content .chart-box h4 {
    color: #f0f0f0;
}

body[data-theme="dark"] .app-content .form-group {
    border-bottom-color: #3a3a3c;
}

body[data-theme="dark"] .app-content .form-group label {
    color: #e0e0e0;
}

body[data-theme="dark"] .app-content .form-group .hint {
    color: #98989d;
}

body[data-theme="dark"] .app-content .review-item {
    background: #2c2c2e;
    border-color: #3a3a3c;
}

body[data-theme="dark"] .app-content .tab-bar {
    border-bottom-color: #3a3a3c;
}

body[data-theme="dark"] .app-content .tab-bar .tab-item {
    color: #98989d;
}

body[data-theme="dark"] .app-content .tab-bar .tab-item.active {
    color: #0a84ff;
    border-bottom-color: #0a84ff;
}

body[data-theme="dark"] .app-content .filter-bar {
    background: #2c2c2e;
    border-color: #3a3a3c;
}

body[data-theme="dark"] .app-content .loading-center {
    color: #98989d;
}

body[data-theme="dark"] .app-content .empty-state {
    color: #98989d;
}

body[data-theme="dark"] .app-content .pagination-bar {
    color: #98989d;
}

/* Scrollbar in dark mode */
body[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Element Plus dark overrides */
body[data-theme="dark"] .el-input__wrapper {
    background-color: #3a3a3c;
    box-shadow: 0 0 0 1px #48484a inset;
}

body[data-theme="dark"] .el-input__inner {
    color: #e0e0e0;
}

body[data-theme="dark"] .el-textarea__inner {
    background-color: #3a3a3c;
    box-shadow: 0 0 0 1px #48484a inset;
    color: #e0e0e0;
}

body[data-theme="dark"] .el-select .el-input__wrapper {
    background-color: #3a3a3c;
    box-shadow: 0 0 0 1px #48484a inset;
}

body[data-theme="dark"] .el-switch__core {
    background-color: #48484a;
    border-color: #48484a;
}

body[data-theme="dark"] .el-button--default {
    background-color: #3a3a3c;
    border-color: #48484a;
    color: #e0e0e0;
}

body[data-theme="dark"] .el-dialog {
    background: #2c2c2e;
    color: #e0e0e0;
}

body[data-theme="dark"] .el-dialog__title {
    color: #e0e0e0;
}

body[data-theme="dark"] .el-dialog__header {
    border-bottom-color: #3a3a3c;
}

body[data-theme="dark"] .el-table {
    background-color: #2c2c2e;
    color: #e0e0e0;
}

body[data-theme="dark"] .el-table th.el-table__cell {
    background-color: #3a3a3c;
    color: #e0e0e0;
}

body[data-theme="dark"] .el-table tr {
    background-color: #2c2c2e;
}

body[data-theme="dark"] .el-table--enable-row-hover .el-table__body tr:hover>td {
    background-color: #3a3a3c;
}

body[data-theme="dark"] .el-table td.el-table__cell {
    border-bottom-color: #3a3a3c;
}

body[data-theme="dark"] .el-table__inner-wrapper::before {
    background-color: #3a3a3c;
}

body[data-theme="dark"] .el-pagination {
    color: #98989d;
}

body[data-theme="dark"] .el-pagination button {
    background-color: #3a3a3c;
    color: #e0e0e0;
}

body[data-theme="dark"] .el-pager li {
    background-color: #3a3a3c;
    color: #e0e0e0;
}

body[data-theme="dark"] .el-tag {
    background-color: #3a3a3c;
    border-color: #48484a;
    color: #e0e0e0;
}

body[data-theme="dark"] .el-card {
    background-color: #2c2c2e;
    border-color: #3a3a3c;
    color: #e0e0e0;
}

body[data-theme="dark"] .el-form-item__label {
    color: #e0e0e0;
}

body[data-theme="dark"] .el-upload-dragger {
    background-color: #2c2c2e;
    border-color: #48484a;
}

body[data-theme="dark"] .el-message-box {
    background: #2c2c2e;
    border-color: #3a3a3c;
}

body[data-theme="dark"] .el-message-box__title {
    color: #e0e0e0;
}

body[data-theme="dark"] .el-message-box__content {
    color: #e0e0e0;
}

/* Text diff in dark mode */
body[data-theme="dark"] .text-diff-new {
    background: #1e3a2e;
    color: #6ee7b7;
}