@import "./bootstrap-icons.css";
@import "./base.css";

:root {
    --text: #000;
    --text2: #444;
    --bg: #ffffff;
    --bg50: #ffffff80;
    --bg70: #ffffffa0;
    --sd: #22222230;
    --card: #efefef55;
    --hover: #ffffff65;
    --hover-half: #ffffff40;
    --hover-b: #1111110f;
    --bggrey: #ddd;
    --fill: #d3d3d370;
    --bgul: url('./bgnew/Nature-Forest-Landscape-Night-Scene.jpg');
    --mm: #ffffffc0;
    --cm: #fafafabb;
    --bar: #efefef37;
    --hr: #ccc;
    --unfoc: #eaeaea;
    --msg: #ffffffe7;
    --theme-1: #ad6eca;
    --theme-2: #3b91d8;
    --href: #2983cc;
    --bd: #8f8f8f30;
    --s3d: #99999947;
    --mica: linear-gradient(215deg, #ffe7f6, #a9c3ff);
}

:root.dark {
    --text: #ddd;
    --text2: #aaa;
    --bg: #000000;
    --bg50: #00000060;
    --bg70: #00000090;
    --sd: #000000a0;
    --card: #72727240;
    --hover: #aaaaaa15;
    --hover-half: #ffffff0a;
    --hover-b: #eeeeee0f;
    --bggrey: #444;
    --fill: #54545470;
    --bgul: url('./bgnew/Twinkling-Stars.svg');
    --mm: #ffffff50;
    --cm: #252525bb;
    --bar: #7272722a;
    --hr: #333;
    --unfoc: #202020;
    --msg: #303030d0;
    --bd: #ffffff06;
    --s3d: #11111150;
    --mica: linear-gradient(215deg, #2d161c, #102d53);
}

:root.nobr *,
:root.nobr *::before,
:root.nobr *::after,
:root.nobr *::-webkit-scrollbar,
:root.nobr *::-webkit-scrollbar-thumb {
    border-radius: 0 !important;
}

:root.notrans *,
:root.notrans *::before,
:root.notrans *::after {
    transition: none !important;
    animation: none !important;
}

:root.nosd {
    --sd: none;
}

:root.moreblur .window:not(.foc) {
    background-color: var(--bg70);
    backdrop-filter: blur(30px);
}

body,
p {
    transition: 100ms;
}

p {
    margin: 0;
}

html {
    position: fixed;
    width: 100%;
}

body {
    background: var(--bgul) center;
    background-size: cover;
    height: 100%;
    font-size: 15.5px;
    color: var(--text);
    user-select: none;
}

.a {
    color: var(--text);
    text-decoration: none !important;
    cursor: pointer;
}

.jump {
    cursor: alias !important;
    /* text-decoration: underline; */
    color: var(--href);
}

.jump:hover {
    color: #999;
}

.jump:active {
    color: #666;
}

hr {
    background-color: #afafaf50;
}

::-webkit-scrollbar {
    border-radius: 7px;
    height: 14px;
    width: 14px;
}

::-webkit-scrollbar:hover {
    background-color: var(--card);
}

::-webkit-scrollbar-thumb {
    background: #7f7f7f70;
    background-clip: padding-box;
    border: 6px solid transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    border: 4px solid transparent;
}

::-webkit-scrollbar-corner {
    display: none;
}

.act,
list:not(.new)>a,
#cs>list>a,
.wg>.titbar>.more,
.wg.calc>.content>.b,
.button {
    transition: 80ms, transform 400ms cubic-bezier(0.14, 1.02, 0.17, 0.03) !important;
}

.act:active,
list:not(.new)>a:active,
#cs>list>a:active,
.wg>.titbar>.more:active,
.wg.calc>.content>.b:active,
.button:active {
    transform: scale(0.93);
    /* filter: blur(0.5px); */
    filter: opacity(0.75);
    /* transition: transform 500ms cubic-bezier(0.24, 0.86, 0.36, 0.44) !important; */
}

#dock-box {
    position: fixed;
    bottom: 10px;
    height: 40px;
    display: flex;
    width: 100%;
    z-index: 92;
    padding: 0 5px;
    justify-content: center;
    transition: bottom 400ms;
}

#dock-box.hide {
    bottom: -60px;
}

.dock {
    border-radius: 8px;
    height: 100%;
    background-color: var(--cm);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 1px 2px #44444460, 0px 3px 25px 1px var(--sd);
    padding: 7px 6px;
    margin: 0 3px;
    display: flex;
    transition: 200ms, transform 300ms cubic-bezier(0.14, 1.02, 0.17, 0.03), backdrop-filter, -webkit-backdrop-filter 0ms;
    bottom: 0;
    /* transform: scale(1); */
    /* border: 1.5px solid #6f6f6f30; */
}

.dock>* {
    padding-left: 3px;
    padding-right: 3px;
}

/* .dock.about:hover, */
.dock.theme:hover,
.dock.date:hover {
    backdrop-filter: blur(20px) saturate(1.5) brightness(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.5) brightness(1.2);
}

#toolbar {
    display: flex;
}

#taskbar {
    padding: 3px 2px;
    transition: 80ms;
    overflow: hidden;
    width: 0;
}

#taskbar>a {
    border-radius: 10px;
    height: 34px;
    width: 38px;
    transition: 100ms;
    padding: 4px 5px;
    display: block;
    margin: 0;
    background-clip: padding-box;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
}

#taskbar>a:hover {
    background-color: var(--hover);
}

#taskbar>a:active>img {
    transform: scale(0.8);
}

#taskbar>a>img {
    width: 26px;
    height: 26px;
    transition: 100ms;
    margin: -1px 0 0 -0.5px;
}

#taskbar>a:not(.min)>img {
    animation: task-show 800ms;
}

@keyframes task-show {
    0% {
        margin-top: -1px;
        margin-bottom: 0;
    }

    40% {
        margin-top: -6px;
        margin-bottom: 5px;
        transform: scaleY(1.1);
        transform-origin: bottom;
    }

    60% {
        margin-top: 1px;
        margin-bottom: -2px;
        transform: scaleY(0.8);
        transform-origin: bottom;
    }

    100% {
        margin-top: -1px;
        margin-bottom: 0;
    }
}

#taskbar>a.min>img {
    animation: task-hide 800ms;
}

@keyframes task-hide {
    0% {
        margin-top: -1px;
        margin-bottom: 0;
    }

    40% {
        /* margin-top: 3px;
        margin-bottom: -4px; */
        margin-top: 0px;
        margin-bottom: -1px;
        transform: scaleY(0.8);
        transform-origin: bottom;
    }

    70% {
        margin-top: -2px;
        margin-bottom: 1px;
        transform: scaleY(1.05);
        transform-origin: bottom;
    }

    100% {
        margin-top: -1px;
        margin-bottom: 0;
    }
}

#taskbar>a::after {
    content: '';
    display: block;
    width: 18px;
    background: linear-gradient(90deg, var(--theme-1), var(--theme-2));
    height: 4px;
    border-radius: 2px;
    position: relative;
    bottom: 4px;
    left: 3.2px;
    transition: 150ms;
}

#taskbar>a:not(.foc)::after {
    background: linear-gradient(90deg, #7f7f7f, #7f7f7f);
    width: 12px;
    left: 6px;
}

#taskbar>a:not(.foc):hover:after {
    width: 16px;
    left: 4.2px;
}

#taskbar>a.foc:hover:after {
    width: 22px;
    left: 1.2px;
}

#taskbar>a.min:hover:after {
    width: 18px;
    left: 3.2px;
}

.dock.date {
    width: 100px;
    padding: 0px 5px;
    display: block;
    text-align: center;
    overflow: hidden;
}

.dock.date:active {
    transform: scale(0.9);
    filter: opacity(0.6) !important;
}

.dock.control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0 5px;
}

.dock.control>icon {
    font-size: 17px;
}

.dock.control>* {
    margin: 0 -2px 0 -1px;
}

.dock.control:active {
    transform: scale(0.9);
    filter: opacity(0.6) !important;
}

/* 等级指示器样式 */
.level-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* 覆盖父级的负 margin，确保自身居中 */
    margin: 0 !important;
    flex-shrink: 0;
}

.level-indicator:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(39, 171, 143, 0.4);
    box-shadow: 0 0 15px rgba(39, 171, 143, 0.3);
}

.level-bar {
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    overflow: hidden;
}

.level-bar-fill {
    /* width: 0%;  */ /* 移除这行，改用动画控制 */
    height: 100%;
    background: linear-gradient(90deg, #27ab8f 0%, #43c7a8 50%, #27ab8f 100%);
    background-size: 200% 100%;
    border-radius: 7px;
    position: relative;
    overflow: hidden;
    /* 默认显示 demo 动画（未登录状态） */
    animation: levelProgress 2s ease-in-out infinite alternate, gradientMove 3s linear infinite;
    box-shadow: 0 0 8px rgba(39, 171, 143, 0.6);
    transition: width 0.6s ease;
}

/* 未登录状态：初始宽度为 0%，由动画控制 */
.level-indicator:not(.logged-in) .level-bar-fill {
    width: 0%;
    animation: levelProgress 2s ease-in-out infinite alternate, gradientMove 3s linear infinite;
}

/* 登录后的状态：使用真实进度，停止 demo 动画 */
.level-indicator.logged-in .level-bar-fill {
    animation: gradientMove 3s linear infinite;
    /* width 由 JavaScript 动态设置 */
}

@keyframes levelProgress {
    0% {
        width: 30%;
    }
    100% {
        width: 95%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.level-bar-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmerMove 1.5s ease-in-out infinite;
}

@keyframes shimmerMove {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.level-bar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 70%
    );
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

.dock.date>.date {
    margin-top: -8px;
}

.dock.theme {
    width: 40px;
    padding-left: 3.5px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0 6px 1px var(--sd);
}

.dock.theme:active {
    transform: scale(0.9);
    filter: opacity(0.6) !important;
}

.dock.theme>.dark {
    position: absolute;
    height: 30px;
    width: 30px;
    top: 5px;
    left: 40px;
    transition: 200ms cubic-bezier(0.9, 0, 0.1, 1);
    opacity: 0;
}

.dock.theme>.light {
    height: 30px;
    width: 30px;
    position: absolute;
    top: 5px;
    left: 5px;
    transition: 200ms cubic-bezier(0.9, 0, 0.1, 1);
    opacity: 1;
}

.dock.theme.dk>.dark {
    left: 5px;
    opacity: 1;
}

.dock.theme.dk>.light {
    left: -30px;
    opacity: 0;
}

.dock-btn {
    transition: 200ms;
    width: 32px;
    height: 26px;
    overflow: hidden;
}

.dock-btn:hover,
.dock-btn.show {
    filter: brightness(1.2);
}

#start-btn>svg.menu {
    position: relative;
    top: 27px;
    transition: 200ms;
}

#start-btn.show>svg.menu {
    top: 0;
    transition-delay: 200ms;
}

#start-btn>.ico {
    position: relative;
    top: -32px;
    left: 0;
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: transform 200ms, top 200ms 100ms, left 200ms;
    /* transition-delay: 100ms; */
}

#start-btn.show>.ico {
    transform: scale(0.5);
    top: -26px;
}

#search-btn>img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

#search-btn>svg.in {
    position: relative;
    display: block;
    top: -29.6px;
    left: 2.5px;
    width: 16px;
    height: 16px;
    transition: 200ms;
}

#search-btn:active {
    transform: scale(0.85);
}

#search-btn.show>svg.in {
    transform: scale(1.1) rotate(360deg);
    filter: saturate(2) brightness(1.1);
}

#widgets-btn>svg {
    display: block;
}

#widgets-btn:active {
    transform: scale(0.85);
}

#widgets-btn>.wid2 {
    margin-top: -19px;
    margin-left: 10.5px;
    height: 20px;
    transition: 150ms cubic-bezier(0.8, 0, 0.2, 1);
    transition-delay: 0ms;
}

#widgets-btn>.wid3 {
    margin-top: 13px;
    margin-left: -2px;
    height: 31px;
    transition: 100ms cubic-bezier(0.8, 0, 0.2, 1);
    transition-delay: 100ms;
}

#widgets-btn>.wid4 {
    margin-top: 4px;
    margin-left: 11.5px;
    height: 12px;
    transition: 200ms cubic-bezier(0.8, 0, 0.2, 1);
    transition-delay: 180ms;
}

#widgets-btn.show>.wid2 {
    margin-top: -28px;
}

#widgets-btn.show>.wid3 {
    margin-top: -20.5px;
}

#widgets-btn.show>.wid4 {
    margin-top: -14px;
}

#copilot-btn>img {
    width: 24px;
    transition: 200ms cubic-bezier(0, 0, 0, 1);
}

#copilot-btn:active {
    transform: scale(0.85) rotate(-20deg);
}

#copilot-btn.show:active {
    transform: scale(0.85) rotate(20deg);
}

#copilot-btn.show>img {
    transform: rotate(420deg);
}

#copilot-btn.show>img.directional-icon {
    width: 26px;
    height: 26px;
    transform: none;
}

#start-menu {
    display: none;
    position: fixed;
    bottom: -600px;
    //height: 594px;
    height: 350px;
    max-height: calc(100% - 120px);
    //width: 900px;
    width: 300px;
    left: calc(50% - 150px);
    border-radius: 20px;
    background: var(--bg50);
    backdrop-filter: blur(80px) saturate(1.3);
    -webkit-backdrop-filter: blur(80px) saturate(1.3);
    opacity: 0.5;
    transition: 200ms;
    box-shadow: 3px 3px 25px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
    z-index: 91;
    padding: 2px 4px;
}

#start-menu.show-begin {
    display: flex;
}

#start-menu.show {
    display: flex;
    bottom: calc(50% - 175px);
    opacity: 1;
}

#start-menu.max {
    left: 0;
    bottom: -100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    transition: 200ms cubic-bezier(0.9, 0, 0.1, 1);
}

#start-menu.max>#s-m-l>#s-m-user {
    margin-bottom: 60px;
    top: 10px;
}

#start-menu.max>#s-m-r>.tuijian>.apps>* {
    width: 25%;
}

#start-menu.max.show {
    bottom: 0;
}

#s-m-l {
    min-width: 310px;
    height: 100%;
    padding: 0 5px 0 10px;
    transition: 400ms;
    display: flex;
    flex-direction: column;
}

#start-menu.max>#s-m-l {
    min-width: 300px;
    width: 22%;
}

#s-m-l>.input {
    padding-left: 30px;
}

input-before {
    display: block;
    font-size: 15px;
    height: 0;
    margin-top: -29px;
    margin-left: 8px;
    margin-bottom: 10px;
    color: var(--text);
}

.window>.resize-bar {
    z-index: 1 !important;
}

.window.max>.resize-bar {
    display: none !important;
}

.window>.resize-bar>.resize-knob {
    position: absolute;
}

.window>.resize-bar>.resize-knob.top {
    left: 7px;
    top: 0px;
    height: 7px;
    width: calc(100% - 14px);
    cursor: ns-resize;
}

.window>.resize-bar>.resize-knob.bottom {
    left: 7px;
    bottom: 0px;
    height: 7px;
    width: calc(100% - 14px);
    cursor: ns-resize;
}

.window>.resize-bar>.resize-knob.left {
    top: 7px;
    left: 0px;
    height: calc(100% - 14px);
    width: 7px;
    cursor: ew-resize;
}

.window>.resize-bar>.resize-knob.right {
    top: 7px;
    right: 0px;
    height: calc(100% - 14px);
    width: 7px;
    cursor: ew-resize;
}

.window>.resize-bar>.resize-knob.top-left {
    top: 0px;
    left: 0px;
    width: 7px;
    height: 7px;
    cursor: nwse-resize;
}

.window>.resize-bar>.resize-knob.bottom-right {
    bottom: 0px;
    right: 0px;
    width: 7px;
    height: 7px;
    cursor: nwse-resize;
}

.window>.resize-bar>.resize-knob.bottom-left {
    bottom: 0px;
    left: 0px;
    width: 7px;
    height: 7px;
    cursor: nesw-resize;
}

.window>.resize-bar>.resize-knob.top-right {
    top: 0px;
    right: 0px;
    width: 7px;
    height: 7px;
    cursor: nesw-resize;
}

#s-m-l>list {
    margin-left: 5px;
    margin-top: 40px;
    flex-grow: 1;
    overflow: auto;
    padding-bottom: 40px;
}

#s-m-l>list>a {
    padding: 3px 5px 3px 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

#s-m-l>list>a>p {
    margin: 5px 0 5px 10px;
}

#s-m-l>list>a>img {
    height: 28px;
    width: 28px;
}

#s-m-l>list>.text {
    padding-left: 10px;
    font-size: 16px;
    height: 35px;
}

#s-m-r {
    flex-grow: 1;
    overflow: hidden;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
}

#s-m-r>* {
    opacity: 0;
    transition: transform 200ms cubic-bezier(0, 0, 0, 1), opacity 200ms 30ms;
    transform: translate(0, 50px);
}

#start-menu.show>#s-m-r>* {
    transform: none;
    opacity: 1;
}

#s-m-r>.row1 {
    display: flex;
    transition-delay: 200ms;
}

#s-m-r>.row1>.tool {
    width: 200px;
    padding: 5px 10px 0 0;
    transition: 300ms;
}

#s-m-r>.row1>.tool>* {
    float: right;
}

#s-m-r>.row1>.tool>.btn-icon.power {
    overflow: hidden;
    display: flex;
    padding-left: 0;
}

#s-m-r>.row1>.tool>.btn-icon.power:active {
    padding: 1px 0;
    font-size: 23px;
}

#s-m-r>.row1>.tool>.btn-icon.show {
    width: 100px;
    background-color: var(--card);
    box-shadow: 3px 3px 6px var(--sd);
}

#s-m-r>.row1>.tool>.btn-icon.show:hover {
    background-color: var(--card);
}

#s-m-r>.row1>.tool>.btn-icon.power>.bi {
    position: relative;
    height: 33px;
    padding-left: 5px;
    padding-right: 5px;
    transition: 200ms;
}

#s-m-r>.row1>.tool>.btn-icon.power>i.bi-power {
    border-radius: 10px 0 0 10px;
}

#s-m-r>.row1>.tool>.btn-icon.power>i.bi-arrow-counterclockwise {
    border-radius: 0 10px 10px 0;
}

#s-m-r>.row1>.tool>.btn-icon>.bi-arrow-counterclockwise::before {
    position: relative;
    top: 1.15px;
}

#s-m-r>.row1>.tool>.btn-icon>.bi-power::before {
    position: relative;
    top: -2px;
}

#s-m-r>.row1>.tool>.btn-icon.show>.bi-power::before {
    position: relative;
    top: 0;
}

#s-m-r>.row1>.tool>.btn-icon.show>.bi {
    top: -2px;
}

#s-m-r>.row1>.tool>.btn-icon.show>i {
    background-color: var(--card);
}

#s-m-r>.row1>.tool>.btn-icon.show>i:hover {
    background-color: var(--hover);
}

#start-menu.max>#s-m-r>.row1>.tool {
    margin-left: 100px;
    margin-right: 50px;
}

#s-m-r>.row1>.folder,
#s-m-r>.pinned,
#s-m-r>.tuijian {

}

#s-m-r>.row1>.folder {
    display: flex;
    padding: 10px 10px;
    margin: 15px 15px;
    flex-grow: 1;
}

#s-m-r>.row1>.folder>.sm-app {
    height: 72px;
}

#s-m-r>.pinned {
    padding: 10px 5px;
    //margin-right: 10px;
   // margin-left: 15px;
    transition-delay: 300ms;
    //height: 220px;
    height: 340px;
    display: flex;
    flex-direction: column;
}

#s-m-r>.pinned>.apps {
    display: flex;
    flex-wrap: wrap;
    padding-left: 10px;
    overflow: auto;
    flex-grow: 1;
}


#s-m-r>.pinned>.title {
    // padding: 5px 0 5px 10px;
    font-size: 18px;
    font-weight: 530;
    display: flex;
}

#s-m-r>.pinned>.title>* {
    width: 100%;
}

#s-m-r>.tuijian {
    padding: 10px 10px;
    margin: 15px 10px 0 15px;
    transition-delay: 450ms;
    flex-grow: 1;
    display: flex;
    overflow: hidden;
    flex-direction: column;
}

#s-m-r>.tuijian>.apps {
    display: flex;
    flex-wrap: wrap;
    padding-left: 15px;
    overflow: auto;
}

#s-m-r>.tuijian>.apps>* {
    transition: 80ms;
}

#s-m-r>.tuijian>.title {
    padding: 5px 0 5px 10px;
    font-size: 18px;
    font-weight: 530;
    display: flex;
}

#s-m-r>.tuijian>.title>* {
    width: 100%;
}

#s-m-user {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    position: relative;
    top: -50px;
    left: calc(50% - 50px);
    background-color: var(--bggrey);
    font-size: 80px;
    box-shadow: 3px 3px 6px var(--sd);
    transition: 200ms 100ms;
}

#s-m-user>svg {
    position: relative;
    top: -8px;
    left: 15px;
    width: 70px;
    height: 70px;
}

.more-btn {
    background-image: linear-gradient(100deg, var(--theme-1), var(--theme-2));
    color: #fff;
    padding: 0;
    border-radius: 5px;
    font-size: 12px;
    float: right;
    padding: 4px 5px;
    transition: 100ms;
    outline: 0 solid var(--text);
}

.more-btn:hover {
    filter: brightness(0.94);
    outline-width: 2px;
    outline-offset: 1px;
}

.more-btn>.bi {
    font-size: 10px;
}

.sm-app {
    width: 85px;
    height: 80px;
    border-radius: 10px;
    text-align: center;
    transition: 80ms;
    padding: 0 3px;
    color: #888;
    cursor: inherit;
}

.sm-app.enable {
    color: var(--text);
    cursor: pointer;
}

.sm-app.enable:hover {
    background-color: var(--hover);
}

.sm-app.enable>*:first-child {
    filter: brightness(1);
}

.sm-app>*:first-child {
    height: 40px;
    width: 40px;
    margin-top: 8px;
    transition: 80ms;
    filter: contrast(0.3) brightness(0.7);
    text-shadow: 3px 3px 5px var(--sd);
}

.sm-app>*:last-child {
    margin-top: -3px;
    transition: 80ms;
    font-size: 10px;
    line-height: 13px;
}

.sm-app:hover {
    background-color: unset;
}

.sm-app:active>*:first-child {
    transform: scale(0.8);
}

.sm-app.enable:active>*:first-child {
    filter: brightness(0.8) opacity(0.8);
}

.tj-obj {
    width: 50%;
    height: 55px;
    border-radius: 10px;
    transition: 80ms;
    padding: 0 3px;
    display: flex;
    padding: 10px 3px 10px 10px;
    overflow: hidden;
}

.tj-obj>img {
    height: 35px;
    width: 35px;
    transition: 200ms;
}

.tj-obj>div>*:first-child {
    margin: 3px 0 2px 5px;
    font-size: 15px;
    line-height: 13px;
    white-space: nowrap;
}

.tj-obj>div>*:last-child {
    font-size: 10px;
    line-height: 13px;
    margin-left: 6px;
    color: #7f7f7f;
}

.tj-obj:hover {
    background-color: var(--hover);
}

#search-win {
    display: none;
    position: fixed;
    bottom: -500px;
    height: 500px;
    max-height: calc(90% - 120px);
    width: 600px;
    left: calc(50% - 300px);
    border-radius: 20px;
    background-color: var(--bg50);
    backdrop-filter: blur(80px) saturate(1.3);
    -webkit-backdrop-filter: blur(80px) saturate(1.3);
    opacity: 0.8;
    transition: 200ms;
    box-shadow: 3px 3px 15px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
    z-index: 91;
    padding: 10px;
}

#search-win.show-begin {
    display: flex;
    flex-direction: column;
}

#search-win.show {
    max-height: calc(100% - 120px);
    height: 594px;
    display: flex;
    flex-direction: column;
    bottom: 60px;
    opacity: 1;
}

#search-win>.input {
    padding-left: 30px;
}

#search-win>.tab {
    display: flex;
    margin-top: 25px;
    margin-bottom: 10px;
}

#search-win>.tab>a {
    padding: 4px 7px 3px 7px;
    margin: 0 1px;
    text-align: center;
    border-radius: 10px;
    transition: 100ms;
}

#search-win>.tab>a:hover,
#search-win>.tab>a.now {
    background-color: var(--hover);
}

#search-win>.tab>a.now::after {
    content: '';
    display: block;
    position: relative;
    bottom: 0;
    background-image: linear-gradient(90deg, var(--theme-1), var(--theme-2));
    width: calc(100% - 6px);
    left: 3px;
    height: 3px;
    border-radius: 10px;
}

#search-win>.ans {
    display: flex;
    flex-grow: 1;
    overflow-y: auto;
}

#search-win>.ans>.list {
    width: 250px;
    height: 100%;
    margin-right: 5px;
    overflow: auto;
}

#search-win>.ans>.list>list>a {
    padding: 5px 5px 0px 10px;
    display: flex;
}

#search-win>.ans>.list>list>a:active {
    transform: scale(0.97);
}

#search-win>.ans>.list>list>a>.bi {
    display: block;
    margin-right: 3px;
    font-size: 24px;
    margin-top: -5px;
    background-image: linear-gradient(100deg, var(--theme-1), var(--theme-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#search-win>.ans>.list>list>a>img {
    height: 25px;
    width: 25px;
    margin: 0px 5px 7px 0;
}

#search-win>.ans>.view {
    flex-grow: 1;
    border-radius: 10px;
    background: var(--card);
    padding: 3px;
    box-shadow: 2px 2px 5px var(--sd);
    border: 1.5px solid #6f6f6f30;
    display: none;
    overflow: auto;
    margin: 2px 5px 5px 0;
}

#search-win>.ans>.view.show {
    display: block;
}

#search-win>.ans>.view>.fname>.bi {
    font-size: 70px;
    display: block;
    margin: 30px 0 5px 0;
    text-align: center;
}

#search-win>.ans>.view>.fname>.name {
    font-size: 18px;
    text-align: center;
}

#search-win>.ans>.view>.fname>.type {
    font-size: 13px;
    text-align: center;
    opacity: 0.5;
    margin-bottom: 5px;
}

#search-win>.ans>.view>.option>list {
    margin: 10px;
}

#search-win>.ans>.view>.option>list>a {
    border-radius: 6px;
    transition: 70ms !important;
    padding: 4px 12px;
    font-size: 14px;
}

#search-win>.ans>.view>.option>list>a:active {
    transform: scale(0.97);
}

#widgets {
    display: none;
    position: fixed;
    bottom: -600px;
    height: 600px;
    max-height: calc(90% - 50px);
    width: 1000px;
    left: calc(50% - 500px);
    border-radius: 20px;
    background-color: var(--bg50);
    backdrop-filter: blur(80px) saturate(1.3);
    -webkit-backdrop-filter: blur(80px) saturate(1.3);
    transition: 200ms;
    box-shadow: 3px 3px 15px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
    z-index: 91;
    padding: 10px 0;
}

#widgets.show-begin {
    display: flex;
}

#widgets.show {
    bottom: 60px;
}

#widgets>div {
    width: calc(50% - 0.5px);
    padding: 0 10px;
}

#widgets>.hr {
    width: 1px;
    height: calc(100% - 20px);
    margin-top: 10px;
    background-color: var(--hover-b);
}

#widgets>div>.bar {
    height: 32px;
    display: flex;
    background-color: var(--bar);
    box-shadow: 0 1px 3px var(--sd);
    border-radius: 10px;
    padding-left: 10px;
    justify-content: space-between;
    align-items: center;
}

#widgets>div>.bar>.tit {
    width: 100px;
    font-size: 18px;
}

#widgets>div>.content {
    height: calc(100% - 35px);
    margin-top: 8px;
}

#widgets>.widgets>.content {
    overflow: auto;
}

#widgets>.widgets>.content>.grid {
    display: grid;
    justify-content: center;
    gap: 10px;
    grid-template-columns: repeat(5, 83px);
    grid-template-rows: repeat(5, 83px);
    height: max-content;
    grid-auto-flow: row;
}

#widgets>.widgets>.content>.grid>.wg {
    background: var(--card);
    transition: 100ms;
}

#widgets>.widgets>.content>.template {
    display: none;
}


#widgets>.news>.content {
    overflow: auto;
    display: grid;
    justify-content: center;
    gap: 10px;
    grid-template-columns: repeat(5, 83px);
    grid-template-rows: repeat(11, 83px);
}

#widgets>.news>.content>.card {
    border-radius: 10px;
    transition: 10ms;
}

#widgets>.news>.content>.card:hover {
    box-shadow: 1px 1px 7px var(--sd);
    filter: brightness(0.95);
}

#widgets>.news>.content>.card>.tit {
    font-size: 18px;
    line-height: 1.2;
    margin: 30px 0 0 10px;
    transition: 100ms;
}

#widgets>.news>.content>.card>.a {
    color: var(--href);
}

#widgets>.news>.content>.card>.a:hover {
    border-bottom: 2px solid;
}

#control {
    display: none;
    position: fixed;
    bottom: -430px;
    height: 430px;
    width: 350px;
    border-radius: 20px;
    background-color: var(--bg50);
    backdrop-filter: blur(80px) saturate(1.3);
    -webkit-backdrop-filter: blur(80px) saturate(1.3);
    transition: 200ms;
    box-shadow: 3px 3px 15px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
    z-index: 91;
    padding: 10px;
}

#control {
    height: 250px;
}

.dock.control * {
    fill: var(--text);
    color: var(--text) !important;
}

#control>.cont>.top {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: auto auto auto;
    gap: 15px;
    height: 160px;
    margin-top: 10px;
    padding: 0px 7.5px 0px 7.5px;
}

#control>.cont>.top>div {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 70% 30%;
    gap: 5px;
}

#control>.cont>.top>div>.icon {
    width: 100%;
    height: 100%;
    background-color: var(--bg70);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 70ms, transform 400ms cubic-bezier(0.14, 1.02, 0.17, 0.03);
}

#control>.cont>.top>div>.icon.active {
    background-image: linear-gradient(120deg, var(--theme-1), var(--theme-2));
}

#control>.cont>.top>div>.icon.active>icon {
    color: #ffffff;
}

#control icon {
    background-image: linear-gradient(120deg, var(--theme-1), var(--theme-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 18px;
}

#control>.cont>.top>div>.tit {
    font-size: 85%;
    text-align: center;
}

#control>.cont>.top>div>.icon:hover {
    filter: brightness(1.1);
}

#control>.cont>.top>div>.icon:hover {
    background-color: var(--card);
}

#control>.cont>.top>div>.icon:active {
    transform: scale(0.93);
}

#control>.cont>.bottom>.brightness>.icon {
    margin-right: 10px;
    vertical-align: -0.3em;
    display: inline-block;
}

#control>.cont>.bottom>.brightness>.icon>icon {
    font-size: 20px !important;
}

#control>.cont>.bottom {
    margin-top: 15px;
}

#control>.cont>.bottom>.brightness>.range-container {
    width: calc(100% - 43px);
    height: 4.5px;
    background-image: linear-gradient(100deg, var(--theme-1), var(--theme-2));
    border-radius: 7px;
    display: inline-block;
}

#control>.cont>.bottom>.brightness>.range-container>.after {
    border-radius: 0px 7px 7px 0px !important;
}

#control>.cont>.bottom>.brightness>.range-container>.after {
    height: 4.5px;
    position: relative;
    background-color: var(--bg70);
    bottom: 0px;
    width: 0px;
    border-radius: 7px;
}

#control>.cont>.bottom>.brightness>.range-container>.slider-btn {
    height: 17px;
    border-radius: 3.5px;
    background-image: linear-gradient(to top, var(--theme-1), var(--theme-2));
    position: relative;
    width: 7px;
    bottom: 10.5px;
    margin-left: 100%;
    transform: translateX(-3.5px);
    transition: filter 100ms;
}

#control>.cont>.bottom>.brightness>.range-container>.slider-btn:hover,
#control>.cont>.bottom>.brightness>.range-container.active>.slider-btn {
    filter: brightness(0.8);
}

#control.show-begin {
    display: flex;
    flex-direction: column;
}

#control.show {
    display: flex;
    flex-direction: column;
    bottom: 60px;
}

#desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    z-index: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    transition: 30ms;
    justify-content: center;
    align-items: flex-start;
}

#desktop>div {
    width: 85px;
    height: 84px;
    text-overflow: ellipsis;
    border-radius: 5px;
    text-align: center;
    margin: 8px 10px 2px 10px;
    padding: 0 3px 3px 3px;
    z-index: 3;
    transition: transform .2s ease;
}

/* Keep icon images and labels stable when hover scaling ends; leave mobile feedback unchanged. */
@media (min-width:768px) and (hover:hover) and (pointer:fine) {
    #desktop > div[appname]:not(.choose) {
        will-change:transform;
    }
}

#desktop>div:hover {
    backdrop-filter: blur(15px) saturate(0.9) brightness(1.4);
    transform: scale(1.08);
}

#desktop>div:active {
    backdrop-filter: blur(5px) brightness(1.5);
}

#desktop>div>img {
    width: 65px;
    height: 65px;
}

#desktop>div.b>img {
    width: 40px;
    height: 40px;
    margin: 5px;
}

#desktop>div>p {
    line-height: 15px;
    font-size: 13px;
    color: #fff;
    text-shadow: 2px 2px 4px var(--sd), 0 0 3px #000;
    margin-top: -6px;
}

#desktop>.choose {
    position: fixed;
    border: 2px solid var(--href);
    /* border-image: linear-gradient(120deg, var(--theme-1), var(--theme-2)) 4; */
    border-radius: 5px;
    background-color: var(--hover-half);
    display: none;
}

/* ===== 移动端：iOS 主屏幕风格 ===== */
/* 注意断点是 767：iPad Mini 竖屏正好 768px，应走桌面端样式 */
@media (max-width: 767px) {
    #desktop {
        align-content: flex-start;  /* iOS 从顶部开始排，不垂直居中 */
        justify-content: flex-start; /* 不满 4 个的最后一排靠左，而不是居中 */
        padding-top: 24px;
        padding-bottom: 12px;
        /* 图标多/屏幕矮时（如 iPhone SE）允许纵向滚动，避免最后一行被任务栏裁掉 */
        overflow-y: auto;
        scrollbar-width: none;      /* Firefox */
    }
    #desktop::-webkit-scrollbar {
        display: none;              /* Chrome / Safari / Edge */
    }

    #desktop>div {
        /* 百分比宽 = 任何手机都正好 4 列；border-box 防止 padding 把第 4 个挤下去 */
        box-sizing: border-box;
        width: 25%;
        height: 92px;
        margin: 6px 0;
    }

    /* 图标加大 + squircle 圆角（对方形图生效，透明异形图不受影响） */
    #desktop>div>img {
        width: 60px;
        height: 60px;
        border-radius: 22%;
    }

    #desktop>div.b>img {
        width: 52px;
        height: 52px;
        margin: 4px;
        border-radius: 22%;
    }

    /* 文字更小更秀气 */
    #desktop>div>p {
        font-size: 12px;
        line-height: 14px;
    }

    /* 触屏反馈：按下变暗，替代 PC 的毛玻璃 */
    #desktop>div:active {
        backdrop-filter: none;
        opacity: 0.6;
        transform: none;
    }
}

#desktop-widgets {
    display: grid;
    /* justify-content: center; */
    gap: 10px;
    grid-template-columns: repeat(auto-fill, 83px);
    grid-template-rows: repeat(auto-fill, 83px);
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: calc(100% - 50px);
    /* width: max-content; */
    grid-auto-flow: row;
    direction: rtl;
    padding: 20px;
    pointer-events: none;
}

#desktop-widgets * {
    direction: ltr;
    pointer-events: auto;
}

#desktop-widgets>* {
    background-color: var(--bg70);
    backdrop-filter: blur(180px) saturate(1.5);
    filter: none;
    -webkit-backdrop-filter: blur(80px) saturate(1.5);
    box-shadow: 3px 3px 20px 3px var(--sd);
    transition: all 500ms;
}

#desktop-widgets>*.moving {
    transition: none;
}

#desktop-widgets>*.moving>.content {
    opacity: 0.5;
}

#desktop-widgets>*.notrans {
    transition: none !important;
}

#desktop-widgets>.widgets-move {
    display: none;
    background-color: #3daee922;
    border: 1px solid #3daee9;
    border-radius: 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

#desktop-widgets>.widgets-move.show {
    display: block;
}

#desktop-widgets.edit>* .content * {
    pointer-events: none;
}

#desktop-widgets.edit>* {
    cursor: grab;
}

#desktop-widgets.edit>*>.content {
    transition: opacity 500ms;
}


#desktop-widgets.edit>*>.content:hover {
    opacity: 0.5;
}

#desktop-editbar-container {
    width: 100%;
    position: fixed;
    top: -50px;
    left: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: top 500ms;
}

#desktop-editbar-container.show {
    top: 0px;
}

#desktop-editbar {
    background-color: var(--bg70);
    backdrop-filter: blur(180px) saturate(1.5);
    filter: none;
    -webkit-backdrop-filter: blur(80px) saturate(1.5);
    box-shadow: 3px 3px 20px 3px var(--sd);
    border-radius: 0px 0px 8px 8px;
    display: flex;
    gap: 13px;
    padding: 4px 20px;
}

#desktop-editbar>* {
    transition: background-color 80ms;
    padding: 1px 7px;
    border-radius: 5px;
}

#desktop-editbar>*:hover {
    background-color: var(--hover);
}

.input {
    background-color: var(--bg50);
    border: none;
    border-bottom: 2.5px solid;
    border-bottom-color: #7f7f7f7f;
    border-radius: 7px;
    padding: 3px 5px 3px 8px;
    outline: medium;
    width: 100%;
    color: var(--text);
    transition: 100ms, border 0s;
    box-shadow: 0 1px 2px var(--s3d);
}

.input:hover {
    background: var(--cm);
}

.input:focus {
    background-color: var(--bg);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(var(--bg), var(--bg)), linear-gradient(90deg, var(--theme-1), var(--theme-2));
    border-bottom-color: transparent;
    box-shadow: 0 1px 10px var(--s3d);
    opacity: 1;
}

.btn {
    border: 0px solid;
    border-radius: 10px;
    padding: 7px 10px;
    transition: 100ms;
    background-color: #00000000;
}

.btn-icon {
    border: 0px solid;
    border-radius: 10px;
    padding: 1px 5px;
    background-color: #00000000;
    font-size: 23px;
    height: 33px;
    width: 33px;
}

.btn-icon.big {
    padding: 3px 7px;
    font-size: 19px;
}

.btn:hover {
    background: var(--hover);
}

.btn:active {
    transform: scale(0.9);
    opacity: 0.5;
}

.button {
    background-color: #9f9f9f40;
    border-radius: 10px;
    padding: 5px 10px;
    cursor: pointer;
}

.button:hover {
    filter: brightness(1.2);
}

.button:active {
    filter: brightness(1.2) opacity(0.8);
}

input.foc {
    display: block;
    height: 0;
    width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: none;
}

#cm {
    display: none;
    position: absolute;
    z-index: 101;
    border-radius: 10px;
    border: 1.5px solid #6f6f6f30;
    background: var(--cm);
    backdrop-filter: blur(25px) saturate(2);
    min-width: 200px;
    overflow: hidden;
    padding: 0px 6px;
    max-height: 0;
    width: max-content;
    transition: 110ms, max-height 200ms ease-in-out, top 100ms, left 100ms, padding 200ms ease-in-out, box-shadow 1s;
    opacity: 0;
}

#cm.show {
    max-height: 100%;
    padding: 6px;
    box-shadow: 3px 3px 25px 0px var(--sd);
    opacity: 1;
}

#cm>list {
    transform: translate(0, -50%);
    opacity: 0;
    transition: transform 200ms ease-in-out, opacity 150ms 50ms;
}

#cm.show>list {
    opacity: 1;
    transform: none;
}

#cm.show-begin {
    display: block;
}

#cm>list>a {
    padding: 4.5px 12px;
    margin: 0 0;
    border-radius: 6px;
    font-size: 15px;
    display: flex;
    line-height: 19px;
}

#cm>list>a>.bi {
    font-size: 17px;
    margin-right: 10px;
    display: block;
}

#cm>list>*:not(hr):hover {
    background-color: var(--hover-b);
}

#dp {
    display: none;
    position: absolute;
    box-shadow: 3px 3px 6px 1px var(--sd);
    z-index: 101;
    border-radius: 10px;
    border: 1.5px solid #6f6f6f30;
    background: var(--cm);
    backdrop-filter: blur(20px) saturate(2);
    min-width: 200px;
    overflow: hidden;
    transition: max-height 200ms ease-in-out;
    padding: 4px;
    max-height: 0;
}

#dp.show-begin {
    display: block;
    transition: max-height 200ms ease-in-out;
}

#dp.show {
    max-height: 100%;
}

#dp>list>a {
    padding: 4.5px 10px;
    margin: 0;
    transition: 80ms;
    border-radius: 7px;
    font-size: 14px;
    display: flex;
    line-height: 19px;
}

#dp>list>a>info {
    float: right;
    text-align: end;
    color: #888;
    flex-grow: 1;
}

#dp>list>a>.bi {
    font-size: 19px;
    margin-right: 4px;
    display: block;
}

#dp>list>*:not(hr):hover {
    background-color: var(--hover-b);
}

#descp {
    position: fixed;
    background: var(--cm);
    border-radius: 6px;
    box-shadow: 2px 2px 10px var(--sd);
    z-index: 102;
    border: 1.5px solid #4f4f4f30;
    backdrop-filter: blur(15px) saturate(2);
    font-size: 13px;
    padding: 4px 7px;
    margin: 0;
    transition: opacity 100ms;
    opacity: 0;
    display: none;
}

#descp.show {
    opacity: 1;
}

#descp.show-begin {
    display: block;
}

list {
    display: block;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 7px;
}

list>* {
    width: 100%;
    color: var(--text);
    text-align: inherit;
    border-radius: 7px;
    position: relative;
    display: block;
    padding: 2px 20px;
}

list:not(.new)>a {
    transition: 80ms, transform 400ms cubic-bezier(0.14, 1.02, 0.17, 0.03);
}

list:not(.new)>a:active {
    transform: scale(0.95);
}

list.new>a {
    transition: 50ms, opacity 80ms;
}

list.new>a:active {
    opacity: 0.7;
}

list>a:hover {
    color: var(--text);
    background-color: var(--hover-half);
    text-decoration: none;
    box-shadow: 0 1px 2px var(--s3d);
}

list>hr {
    width: calc(100% - 12px);
    padding: 0 !important;
    margin: 2px 6px;
    background-color: #7f7f7f7f;
    border-radius: 5px;
    height: 0.75px;
    cursor: inherit;
}

list>hr:hover {
    background-color: #7f7f7f7f;
}

list>.text {
    margin: 0;
    cursor: inherit;
    border: none;
}

list>.text:hover {
    background-color: unset;
    border: none;
}

list>span.focs {
    display: block;
    width: 4px;
    height: 20px;
    background: linear-gradient(0deg, var(--theme-1), var(--theme-2));
    background-size: cover;
    padding: 0;
    border-radius: 2px;
    position: relative;
    margin: -30px 7px 0 7px;
    z-index: 1;
    transition: 500ms cubic-bezier(1, 0, 0, 1);
    /* transform-origin: top; */
}

list>span.focs.cl {
    animation: fcl 200ms cubic-bezier(1, 0.8, 0, 0.2) 160ms;
}

@keyframes fcl {
    0% {
        transform: none;
    }

    50% {
        transform: scaleY(2.5);
    }

    100% {
        transform: none;
    }
}

.msg {
    background-color: var(--bg50);
    backdrop-filter: blur(50px) saturate(130%);
    position: fixed;
    right: -430px;
    bottom: 60px;
    width: 430px;
    min-height: 150px;
    z-index: 100;
    border-radius: 10px;
    box-shadow: 3px 3px 6px 1px var(--sd);
    padding: 10px 20px;
    font-size: 15px;
    display: flex;
    transition: 400ms 200ms cubic-bezier(0.9, 0, 0.1, 1), transform 200ms;
    cursor: pointer;
    border: 1.5px solid #6f6f6f30;
    transform: scale(0.9);
}

.msg:hover {
    transition: 80ms;
    background-color: var(--hover-half);
}

.msg.show {
    right: 20px;
    transform: none;
}

.msg>.main {
    flex-grow: 1;
}

.msg>.hide {
    height: 35px;
    width: 35px;
    min-width: 35px;
    padding-left: 6px;
    margin-right: -5px;
    border-radius: 5px;
    font-size: 23px;
    transition: 100ms;
}

.msg>.hide:hover {
    padding-left: 0;
}

.msg>.hide:active {
    padding-left: 25px;
    transform: scale(0.9);
}

.msg:not(.show)>.hide {
    padding-left: 25px;
}

.msg>.main>.tit {
    font-size: 20px;
    margin-bottom: 5px;
    transition: 100ms;
}

.msg>.main>.cont {
    padding-left: 10px;
    transition: 100ms;
}

#notice-back {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    position: fixed;
    z-index: 99;
    justify-content: center;
    align-items: center;
    display: none;
    padding: 20px;
}

#notice-back.show {
    display: flex;
}

#notice {
    position: relative;
    box-sizing: border-box;
    width: 600px;
    max-width: 100%;
    max-height: 85vh;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.94) translateY(20px);
}

#notice.show {
    opacity: 1;
    transform: none;
}

#notice>.cnt {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

#notice>.cnt::-webkit-scrollbar {
    width: 8px;
}

#notice>.cnt::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

#notice>.cnt::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#notice>.cnt::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

#notice>.cnt>.tit {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.95);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#notice>.cnt>list {
    margin-top: 10px;
}

#notice>.cnt>list>* {
    padding: 6px 12px;
}

#notice>.cnt>list>a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#notice>.cnt>p {
    color: rgba(0, 0, 0, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

#notice>.cnt>p a {
    color: #0067b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

#notice>.cnt>p a:hover {
    color: #005a9e;
    text-decoration: underline;
}

#notice>.btns {
    min-height: 60px;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 12px 20px;
    gap: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

#notice>.btns>.btn {
    margin-left: 0;
    background-color: rgba(0, 0, 0, 0.05);
    min-width: 100px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.15s ease;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.9);
}

#notice>.btns>.btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

#notice>.btns>.btn:active {
    transform: none;
    opacity: 0.7;
}

#notice>.btns>.btn.main {
    color: #fff;
    background-color: #0067b8;
    border-color: #0067b8;
}

#notice>.btns>.btn.main:hover {
    background-color: #005a9e;
    border-color: #005a9e;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    #notice {
        width: 93vw;
        max-height: 80vh;
    }

    #notice>.cnt {
        padding: 16px;
    }

    #notice>.cnt>.tit {
        font-size: 16px;
        margin-bottom: 12px;
    }

    #notice>.cnt>p {
        font-size: 13px;
    }

    #notice>.btns {
        padding: 10px 16px;
    }

    #notice>.btns>.btn {
        min-width: 80px;
        padding: 7px 14px;
        font-size: 12px;
    }
}

@media (max-width: 540px) {
    #notice-back {
        padding: 10px;
    }

    #notice {
        width: 100%;
        max-height: 90vh;
    }

    #notice>.cnt {
        padding: 14px;
    }

    #notice>.cnt>.tit {
        font-size: 15px;
    }

    #notice>.btns {
        flex-wrap: wrap;
        gap: 6px;
    }

    #notice>.btns>.btn {
        flex: 1;
        min-width: 60px;
    }
}

.window {
    position: absolute;
    height: 80%;
    width: 70%;
    transform: scale(0.7);
    background-color: var(--unfoc);
    border-radius: 10px;
    border: 1.5px solid #6f6f6f30;
    display: none;
    opacity: 0;
    transition: cubic-bezier(0.9, 0, 0.1, 1) 200ms;
    overflow: hidden;
    box-shadow: 2px 2px 5px var(--sd);
    z-index: 90;
}

:root.mica .window.foc {
    /* background: url(bg-dark-mica.jpg) no-repeat fixed center; */
    background: var(--mica) no-repeat fixed center;
    background-size: cover;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: unset;
    background-color: var(--unfoc);
}

.window.foc>.titbar {
    opacity: 1;
}

.window.foc {
    background-color: var(--bg70);
    backdrop-filter: blur(180px) saturate(1.5);
    filter: none;
    -webkit-backdrop-filter: blur(80px) saturate(1.5);
    box-shadow: 3px 3px 20px 3px var(--sd);
}

.window.webapp {
    background: none;
    backdrop-filter: none;
}

.window.webapp>.titbar {
    outline: var(--href) solid 2px;
    margin-bottom: 1px;
    background-color: var(--unfoc);
    opacity: 1;
}

.window.webapp.load,
.window.webapp.content {
    background: var(--unfoc);
}

.window.webapp.foc>.titbar {
    background-color: var(--bg70);
    backdrop-filter: blur(80px) saturate(1.3);
    --webkit-backdrop-filter: blur(80px) saturate(1.3);
}

:root.mica .window.webapp.foc>.titbar {
    background: none;
    backdrop-filter: none;
    --webkit-backdrop-filter: none;
}

.window.min {
    top: calc(95%) !important;
    left: 15% !important;
    transform: scale(0.3) !important;
    transition: cubic-bezier(0.9, 0, 0.1, 1) 200ms, top 200ms 100ms, backdrop-filter background-color 0s;
}

.window.show-begin {
    display: flex;
    flex-direction: column;
}

.window.show {
    transform: none;
    height: 80%;
    width: 70%;
    opacity: 1;
    display: flex;
    flex-direction: column;
}

.window>.loadback {
    height: 100%;
    width: 100%;
    position: absolute;
    display: none;
}

.window>.loadback>.icon {
    height: 90px;
    width: 90px;
    top: calc(50% - 45px);
    left: calc(50% - 45px);
    position: absolute;
}

.window.load>.loadback {
    display: block;
}

.window.load>.content {
    opacity: 0;
}

.window.calc {
    height: 395px;
    width: 262px;
}

.window.notepad-fonts {
    height: 500px;
    width: 430px;
}

.window.run {
    width: 420px;
    height: 220px;
    left: 20px;
    bottom: 60px;
}

.window.notrans {
    transition: none !important;
}

.window>.titbar,
.window.webapp>.titbar,
.window.foc.webapp>.titbar {
    min-height: 38px;
    /* background-color: green; */
    padding: 0 0 0 9px;
    display: flex;
    position: initial;
    color: var(--text);
    opacity: 0.5;
    overflow: hidden;
}

.window>.titbar>p {
    font-size: 15px;
    margin-top: 9px;
    flex-grow: 1;
}

.window>.titbar>.icon {
    margin: 9px 8px 0 3px;
    height: 22px;
    width: 22px;
}

.window>.titbar>div {
    width: max-content;
    min-width: max-content;
}

.window>.content {
    width: 100%;
    height: 100%;
    min-height: 0px !important;
}

.window.max {
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0;
    border: none;
    transition: cubic-bezier(0.9, 0, 0.1, 1) 200ms, top 200ms 100ms, backdrop-filter, background 0ms;
}

.window.left {
    left: 0 !important;
    top: 0 !important;
    width: 50% !important;
    height: 100% !important;
}

.window.right {
    left: 50% !important;
    top: 0 !important;
    width: 50% !important;
    height: 100% !important;
}

.wbtg {
    /* height: 100%; */
    height: 33px;
    float: right;
    width: 45px;
    text-align: center;
    padding-top: 6px;
    font-size: 13px;
    transition: 50ms;
    border-radius: 3px;
}

.wbtg.red {
    border-top-right-radius: 10px;
}

.wbtg:hover {
    background-color: var(--hover-b);
}

.wbtg:active {
    opacity: 0.6;
}

.wbtg.red:hover {
    background-color: #d80d1c;
    color: #fff;
}

.window.max .wbtg.red {
    border-top-right-radius: 3px;
}

#window-fill {
    background-color: var(--fill);
    backdrop-filter: blur(25px);
    display: none;
    position: fixed;
    transition: all 200ms;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
}

#window-fill.top {
    width: 0;
    height: 0;
    top: 0;
    left: 50%;
    display: block;
}

#window-fill.top.fill {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 0;
    left: 0;
}

#window-fill.left {
    width: 0;
    height: 0;
    top: 50%;
    left: 0;
    display: block;
}

#window-fill.left.fill {
    width: calc(50% - 20px);
    height: calc(100% - 20px);
    top: 0;
    left: 0;
}

#window-fill.right {
    width: 0;
    height: 0;
    top: 50%;
    left: 100%;
    display: block;
}

#window-fill.right.fill {
    width: calc(50% - 20px);
    height: calc(100% - 20px);
    top: 0;
    left: 50%;
}

.buttons {
    display: inline-block;
    position: absolute;
    bottom: 20px;
    right: 15px;
}

.buttons>* {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    margin: 0px 4px;
    transition: transform 400ms cubic-bezier(0.14, 1.02, 0.17, 0.03) !important;
    /* box-shadow: 2px 2px 4px var(--sd); */
    box-shadow: 0 1px 2px 1px var(--s3d);
    min-width: 55px;
    text-align: center;
}

.buttons>*:hover {
    filter: brightness(1.2);
}

.buttons>*:active {
    transform: scale(0.85);
}

.buttons>.submit {
    background-image: linear-gradient(120deg, var(--theme-1), var(--theme-2));
    color: #fff;
}

.buttons>.cancel {
    background-color: var(--bggrey);
}

/* 一些奇怪的东西 */

.window.whiteboard>.titbar>p {
    color: #000 !important;
    ;
}

:root.dark .window.whiteboard>.titbar>p {
    text-shadow: 0 0 5px #fff, 0 0 5px #fff;
}

.save-item {
    white-space: nowrap;
    padding: 5px;
    border-radius: 5px;
    padding-top: 3px;
}

.save-item:hover {
    background-color: #aaa;
    cursor: pointer;
    transition: .3s;
}


.setting-card {
    background: var(--card);
    border-radius: 10px;
    margin-bottom: 10px;
}

.setting-card>.setting-list {
    padding-bottom: 5px;
}

#caidan2 {
    display: none;
    position: fixed;
    bottom: -600px;
    //height: 594px;
    height: 350px;
    max-height: calc(100% - 120px);
    //width: 900px;
    width: 300px;
    left: calc(50% - 150px);
    border-radius: 20px;
    background: var(--bg50);
    backdrop-filter: blur(80px) saturate(1.3);
    -webkit-backdrop-filter: blur(80px) saturate(1.3);
    opacity: 0.5;
    transition: 200ms;
    box-shadow: 3px 3px 25px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
    z-index: 91;
    padding: 2px 4px;
}

#caidan2.show-begin {
    display: flex;
}

#caidan2.show {
    display: flex;
    bottom: calc(50% - 175px);
    opacity: 1;
}

#caidan2.max {
    left: 0;
    bottom: -100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    transition: 200ms cubic-bezier(0.9, 0, 0.1, 1);
}

#caidan2.max>#s-m-l>#s-m-user {
    margin-bottom: 60px;
    top: 10px;
}

#caidan2.max>#s-m-r>.tuijian>.apps>* {
    width: 25%;
}

#caidan2.max.show {
    bottom: 0;
}

#caidan2.max>#s-m-l {
    min-width: 300px;
    width: 22%;
}

#caidan2.show>#s-m-r>* {
    transform: none;
    opacity: 1;
}

#caidan2.max>#s-m-r>.row1>.tool {
    margin-left: 100px;
    margin-right: 50px;
}

#caidan3 {
    display: none;
    position: fixed;
    bottom: -600px;
    //height: 594px;
    height: 350px;
    max-height: calc(100% - 120px);
    //width: 900px;
    width: 300px;
    left: calc(50% - 150px);
    border-radius: 20px;
    background: var(--bg50);
    backdrop-filter: blur(80px) saturate(1.3);
    -webkit-backdrop-filter: blur(80px) saturate(1.3);
    opacity: 0.5;
    transition: 200ms;
    box-shadow: 3px 3px 25px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
    z-index: 91;
    padding: 2px 4px;
}

#caidan3.show-begin {
    display: flex;
}

#caidan3.show {
    display: flex;
    bottom: calc(50% - 175px);
    opacity: 1;
}

#caidan3.max {
    left: 0;
    bottom: -100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    transition: 200ms cubic-bezier(0.9, 0, 0.1, 1);
}

#caidan3.max>#s-m-l>#s-m-user {
    margin-bottom: 60px;
    top: 10px;
}

#caidan3.max>#s-m-r>.tuijian>.apps>* {
    width: 25%;
}

#caidan3.max.show {
    bottom: 0;
}

#caidan3.max>#s-m-l {
    min-width: 300px;
    width: 22%;
}

#caidan3.show>#s-m-r>* {
    transform: none;
    opacity: 1;
}

#caidan3.max>#s-m-r>.row1>.tool {
    margin-left: 100px;
    margin-right: 50px;
}

#caidan0 {
    display: none;
    position: fixed;
    bottom: -600px;
    //height: 594px;
    height: 350px;
    max-height: calc(100% - 120px);
    //width: 900px;
    width: 300px;
    left: calc(50% - 150px);
    border-radius: 20px;
    background: var(--bg50);
    backdrop-filter: blur(80px) saturate(1.3);
    -webkit-backdrop-filter: blur(80px) saturate(1.3);
    opacity: 0.5;
    transition: 200ms;
    box-shadow: 3px 3px 25px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
    z-index: 91;
    padding: 2px 4px;
}

#caidan0.show-begin {
    display: flex;
}

#caidan0.show {
    display: flex;
    bottom: calc(50% - 175px);
    opacity: 1;
}

#caidan0.max {
    left: 0;
    bottom: -100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    transition: 200ms cubic-bezier(0.9, 0, 0.1, 1);
}

#caidan0.max>#s-m-l>#s-m-user {
    margin-bottom: 60px;
    top: 10px;
}

#caidan0.max>#s-m-r>.tuijian>.apps>* {
    width: 25%;
}

#caidan0.max.show {
    bottom: 0;
}

#caidan0.max>#s-m-l {
    min-width: 300px;
    width: 22%;
}

#caidan0.show>#s-m-r>* {
    transform: none;
    opacity: 1;
}

#caidan0.max>#s-m-r>.row1>.tool {
    margin-left: 100px;
    margin-right: 50px;
}

#caidan5 {
    display: none;
    position: fixed;
    bottom: -600px;
    //height: 594px;
    height: 350px;
    max-height: calc(100% - 120px);
    //width: 900px;
    width: 300px;
    left: calc(50% - 150px);
    border-radius: 20px;
    background: var(--bg50);
    backdrop-filter: blur(80px) saturate(1.3);
    -webkit-backdrop-filter: blur(80px) saturate(1.3);
    opacity: 0.5;
    transition: 200ms;
    box-shadow: 3px 3px 25px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
    z-index: 91;
    padding: 2px 4px;
}

#caidan5.show-begin {
    display: flex;
}

#caidan5.show {
    display: flex;
    bottom: calc(50% - 175px);
    opacity: 1;
}

#caidan5.max {
    left: 0;
    bottom: -100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    transition: 200ms cubic-bezier(0.9, 0, 0.1, 1);
}

#caidan5.max>#s-m-l>#s-m-user {
    margin-bottom: 60px;
    top: 10px;
}

#caidan5.max>#s-m-r>.tuijian>.apps>* {
    width: 25%;
}

#caidan5.max.show {
    bottom: 0;
}

#caidan5.max>#s-m-l {
    min-width: 300px;
    width: 22%;
}

#caidan5.show>#s-m-r>* {
    transform: none;
    opacity: 1;
}

#caidan5.max>#s-m-r>.row1>.tool {
    margin-left: 100px;
    margin-right: 50px;
}

#caidan6 {
    display: none;
    position: fixed;
    bottom: -600px;
    //height: 594px;
    height: 350px;
    max-height: calc(100% - 120px);
    //width: 900px;
    width: 300px;
    left: calc(50% - 150px);
    border-radius: 20px;
    background: var(--bg50);
    backdrop-filter: blur(80px) saturate(1.3);
    -webkit-backdrop-filter: blur(80px) saturate(1.3);
    opacity: 0.5;
    transition: 200ms;
    box-shadow: 3px 3px 25px 1px var(--sd);
    border: 1.5px solid #6f6f6f30;
    z-index: 91;
    padding: 2px 4px;
}

#caidan6.show-begin {
    display: flex;
}

#caidan6.show {
    display: flex;
    bottom: calc(50% - 175px);
    opacity: 1;
}

#caidan6.max {
    left: 0;
    bottom: -100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    transition: 200ms cubic-bezier(0.9, 0, 0.1, 1);
}

#caidan6.max>#s-m-l>#s-m-user {
    margin-bottom: 60px;
    top: 10px;
}

#caidan6.max>#s-m-r>.tuijian>.apps>* {
    width: 25%;
}

#caidan6.max.show {
    bottom: 0;
}

#caidan6.max>#s-m-l {
    min-width: 300px;
    width: 22%;
}

#caidan6.show>#s-m-r>* {
    transform: none;
    opacity: 1;
}

#caidan6.max>#s-m-r>.row1>.tool {
    margin-left: 100px;
    margin-right: 50px;
}

/* Leaderboard overlay - Windows Properties Style */
#leaderboard-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 130;
}

#leaderboard-overlay.show {
    display: flex;
}

#leaderboard-overlay .leaderboard-card {
    position: relative;
    box-sizing: border-box;
    width: 500px;
    max-width: 95vw;
    max-height: 85vh;
    background: rgba(32, 32, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#leaderboard-overlay .leaderboard-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 10;
}

#leaderboard-overlay .leaderboard-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

#leaderboard-overlay .leaderboard-close:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

.leaderboard-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.leaderboard-head .chip {
    padding: 6px 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #0078d4, #005a9e);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.leaderboard-head .chip.clickable {
    cursor: pointer;
}

.leaderboard-head .chip.clickable:hover {
    background: linear-gradient(135deg, #1084d8, #0067b8);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.4);
}

.leaderboard-head .chip.clickable:active {
    transform: scale(0.98);
}

.leadercard-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.leadercard-body::-webkit-scrollbar {
    width: 8px;
}

.leadercard-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.leadercard-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.leadercard-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.leaderboard-row {
    margin-bottom: 16px;
}

.leaderboard-row:last-child {
    margin-bottom: 0;
}

.leaderboard-row .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    font-weight: 400;
}

.leaderboard-row .value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    min-height: 36px;
}

.leaderboard-row .value.address {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    color: rgba(255, 255, 255, 0.9);
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.leaderboard-row .value.balance {
    flex-wrap: wrap;
    padding: 14px 12px;
}

.leaderboard-row .value .balance-main {
    font-size: 20px;
    font-weight: 600;
    color: #4ec9b0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.leaderboard-row .note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    line-height: 1.5;
}

.leaderboard-row .ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 400;
}

.leaderboard-row .ghost-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.leaderboard-row .ghost-btn:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.98);
}

@media (max-width: 540px) {
    #leaderboard-overlay .leaderboard-card {
        width: 93vw;
        max-height: 80vh;
    }

    .leaderboard-head {
        padding: 12px 16px;
    }

    .leaderboard-head .eyebrow {
        font-size: 11px;
    }

    .leadercard-body {
        padding: 16px;
    }

    .leaderboard-row {
        margin-bottom: 14px;
    }

    .leaderboard-row .value {
        padding: 8px 10px;
    }

    .leaderboard-row .value.address {
        font-size: 11px;
    }

    .leaderboard-row .value .balance-main {
        font-size: 18px;
    }

    .leaderboard-row .ghost-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}


/* ============================================= */
/* 等级系统样式 */
/* ============================================= */

/* 等级区域容器 */
.leaderboard-row.level-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 经验进度条 */
.level-progress {
    margin-top: 0;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: visible;
    position: relative;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c6fb 0%, #005bea 50%, #00c6fb 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(0, 198, 251, 0.4),
        0 0 40px rgba(0, 91, 234, 0.2);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 进度条流光效果 */
.progress-fill .progress-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.5),
        transparent
    );
    animation: shimmerMove 2.5s ease-in-out infinite;
}

@keyframes shimmerMove {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* 进度条发光效果 */
.progress-fill .progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 70%
    );
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* 进度条边框高亮 */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        rgba(0, 198, 251, 0.5),
        rgba(0, 91, 234, 0.5),
        rgba(0, 198, 251, 0.5)
    );
    background-size: 200% 100%;
    animation: borderGlow 3s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 进度文本 */
.progress-text {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    font-weight: 500;
}

/* 统计信息 */
.level-stats {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-item i {
    color: #4ec9b0;
    font-size: 12px;
}

.stat-item strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .level-stats {
        flex-direction: column;
        gap: 8px;
    }

    .stat-item {
        font-size: 10px;
        padding: 5px 10px;
    }

    .progress-bar {
        height: 14px;
    }

    .progress-text {
        font-size: 10px;
    }
}

/* 确保等级区域正确显示 */
.leaderboard-row.level-section {
    display: block;
}

/* ============================================= */
/* 2026-07-16 视觉刷新：Glass UI / GNOME / tvOS */
/* 仅调整：配色、圆角、阴影、悬停效果、液态毛玻璃 */
/* 窗口/任务栏/开始菜单的尺寸与定位保持原逻辑 */
/* ============================================= */

/* 全局玻璃色调 */
:root {
    --text: #1d1d1f;
    --text2: #6e6e73;
    --bg: #ffffff;
    --bg50: rgba(255, 255, 255, 0.52);
    --bg70: rgba(255, 255, 255, 0.78);
    --sd: rgba(0, 0, 0, 0.12);
    --card: rgba(255, 255, 255, 0.32);
    --hover: rgba(255, 255, 255, 0.55);
    --hover-half: rgba(255, 255, 255, 0.35);
    --hover-b: rgba(0, 0, 0, 0.06);
    --bggrey: #e5e5ea;
    --fill: rgba(255, 255, 255, 0.55);
    --bgul: url('./bgnew/Nature-Forest-Landscape-Night-Scene.jpg');
    --mm: rgba(255, 255, 255, 0.75);
    --cm: rgba(255, 255, 255, 0.72);
    --bar: rgba(255, 255, 255, 0.32);
    --hr: rgba(0, 0, 0, 0.10);
    --unfoc: rgba(245, 245, 247, 0.68);
    --msg: rgba(255, 255, 255, 0.88);
    --theme-1: #ad6eca;
    --theme-2: #3b91d8;
    --href: #0066cc;
    --bd: rgba(255, 255, 255, 0.40);
    --s3d: rgba(0, 0, 0, 0.08);
    --mica: linear-gradient(215deg, #fff0f8, #d6e4ff);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 22px 60px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

:root.dark {
    --text: #f5f5f7;
    --text2: #a1a1a6;
    --bg: #000000;
    --bg50: rgba(20, 20, 23, 0.55);
    --bg70: rgba(28, 28, 32, 0.78);
    --sd: rgba(0, 0, 0, 0.45);
    --card: rgba(255, 255, 255, 0.10);
    --hover: rgba(255, 255, 255, 0.14);
    --hover-half: rgba(255, 255, 255, 0.08);
    --hover-b: rgba(255, 255, 255, 0.08);
    --bggrey: #3a3a3c;
    --fill: rgba(50, 50, 55, 0.70);
    --bgul: url('./bgnew/Twinkling-Stars.svg');
    --mm: rgba(255, 255, 255, 0.20);
    --cm: rgba(28, 28, 32, 0.72);
    --bar: rgba(255, 255, 255, 0.10);
    --hr: rgba(255, 255, 255, 0.10);
    --unfoc: rgba(44, 44, 48, 0.70);
    --msg: rgba(35, 35, 38, 0.88);
    --href: #5ac8fa;
    --bd: rgba(255, 255, 255, 0.12);
    --s3d: rgba(0, 0, 0, 0.30);
    --mica: linear-gradient(215deg, #2d161c, #102d53);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* 窗口：玻璃质感、圆角、阴影 */
.window {
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
}

.window.foc {
    background-color: var(--bg70);
    backdrop-filter: blur(50px) saturate(1.8);
    -webkit-backdrop-filter: blur(50px) saturate(1.8);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.22),
        0 12px 32px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.window.webapp,
.window.webapp.foc {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* iframe 窗口加载完成前也要有可见边框与背景 */
.window.webapp {
    background-color: var(--unfoc);
    border: 1.5px solid rgba(127, 127, 127, 0.35);
}

.window.webapp.foc {
    background-color: var(--bg70);
    border-color: rgba(255, 255, 255, 0.35);
}

.window.webapp>.titbar {
    outline: none;
}

.window.max,
.window.left,
.window.right {
    border-radius: 0;
    border-color: transparent;
    box-shadow: none;
}

/* 标题栏：玻璃感、不透明度 */
.window>.titbar {
    opacity: 0.85;
    transition: opacity 200ms, background-color 200ms;
}

.window.foc>.titbar {
    opacity: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 100%);
}

.wbtg {
    transition: 150ms;
    color: var(--text2);
}

.wbtg:hover {
    color: var(--text);
    background-color: var(--hover-b);
}

.wbtg.red:hover {
    background-color: #ff453a;
    color: #fff;
}

/* 窗口拖拽占位 */
#window-fill {
    border-radius: 18px;
    border-color: var(--glass-border);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.20);
}

/* 任务栏 / Dock：更接近 macOS 控制中心的统一玻璃面板 */
.dock {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.48));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

:root.dark .dock {
    background: linear-gradient(180deg, rgba(55, 55, 60, 0.72), rgba(35, 35, 40, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dock.theme:hover,
.dock.date:hover {
    backdrop-filter: blur(25px) brightness(1.05);
    -webkit-backdrop-filter: blur(25px) brightness(1.05);
}

.dock-btn:hover,
.dock-btn.show {
    filter: brightness(1.15);
}

#taskbar>a:hover {
    background-color: var(--hover);
    box-shadow: 0 8px 20px var(--sd);
    transition: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 开始菜单：液态毛玻璃 */
#start-menu {
    background: linear-gradient(160deg, var(--bg70), var(--bg50));
    border: 1px solid var(--glass-border);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.22),
        0 12px 36px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(40px) saturate(1.9);
    -webkit-backdrop-filter: blur(40px) saturate(1.9);
    overflow: hidden;
    isolation: isolate;
}

#start-menu::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.14), transparent 45%);
    animation: liquid-gloss 6s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

#start-menu::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 0 50px rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: -1;
}

@keyframes liquid-gloss {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(6%, 4%) scale(1.08);
    }
}

/* iframe / WebApp 窗口标题栏改为不透明，和内置应用一致 */
.window.webapp>.titbar,
.window.webapp.foc>.titbar {
    background-color: var(--bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    border-bottom: 1px solid var(--glass-border);
}

/*
 * 简约涂鸦动漫视觉皮肤
 * 仅覆盖色彩、描边、阴影与材质；不修改窗口、Dock 或菜单的尺寸和布局。
 */
:root {
    --doodle-ink: rgba(39, 43, 73, 0.72);
    --doodle-ink-soft: rgba(39, 43, 73, 0.30);
    --doodle-line: transparent;
    --doodle-paper: rgba(255, 250, 238, 0.95);
    --doodle-highlight: rgba(255, 255, 255, 0.92);
    --doodle-peach: rgba(255, 150, 172, 0.52);
    --doodle-sky: rgba(107, 191, 255, 0.52);
    --doodle-shadow: rgba(45, 48, 88, 0.28);
}

:root.dark {
    --doodle-ink: rgba(237, 239, 255, 0.76);
    --doodle-ink-soft: rgba(237, 239, 255, 0.28);
    --doodle-line: transparent;
    --doodle-paper: rgba(31, 34, 58, 0.96);
    --doodle-highlight: rgba(255, 255, 255, 0.14);
    --doodle-peach: rgba(255, 124, 160, 0.46);
    --doodle-sky: rgba(89, 168, 255, 0.42);
    --doodle-shadow: rgba(0, 0, 0, 0.56);
}

/* 应用窗口：手绘墨线、纸张般的柔和双色底与轻盈悬浮感。 */
.window {
    background-color: var(--doodle-paper);
    background-image:
        linear-gradient(135deg, var(--doodle-highlight), transparent 45%),
        radial-gradient(circle at 94% 8%, var(--doodle-peach), transparent 28%),
        radial-gradient(circle at 7% 100%, var(--doodle-sky), transparent 33%);
    border-color: var(--doodle-line);
    box-shadow: none;
}

.window.foc {
    background-color: var(--doodle-paper);
    background-image:
        linear-gradient(135deg, var(--doodle-highlight), transparent 45%),
        radial-gradient(circle at 94% 8%, var(--doodle-peach), transparent 28%),
        radial-gradient(circle at 7% 100%, var(--doodle-sky), transparent 33%);
    border-color: var(--doodle-line);
    box-shadow: none;
}

.window.webapp>.titbar,
.window.foc.webapp>.titbar {
    background-color: var(--doodle-paper);
    background-image: linear-gradient(100deg, var(--doodle-sky), transparent 34%, var(--doodle-peach));
    outline-color: var(--doodle-line);
}

.window>.titbar,
.window.foc>.titbar {
    background-color: rgba(255, 255, 255, 0.16);
    background-image: linear-gradient(90deg, var(--doodle-sky), transparent 38%, var(--doodle-peach));
    box-shadow: none;
}

.wbtg {
    color: var(--text2);
    text-shadow: 0 1px 0 var(--doodle-highlight);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.wbtg:hover {
    background-color: var(--doodle-sky);
    color: var(--text);
}

.wbtg.red:hover {
    background-color: #ff7f79;
}

.wbtg.red {
    background-color: rgba(255, 127, 121, 0.38);
    color: #742f3b;
}

/* 任务栏：保留原始 Dock 几何，只换成贴纸式的半透明材质。 */
.dock {
    background-color: var(--doodle-paper);
    background-image: linear-gradient(105deg, var(--doodle-sky), transparent 38%, var(--doodle-peach));
    box-shadow: none;
}

#taskbar>a:hover {
    background-color: var(--doodle-sky);
    box-shadow: none;
}

#taskbar>a::after {
    background: linear-gradient(90deg, #ff9f9a, #83c8ff);
    box-shadow: 0 1px 0 var(--doodle-highlight);
}

#taskbar>a:not(.foc)::after {
    background: var(--doodle-ink);
}

#taskbar>a.foc {
    background-color: rgba(255, 255, 255, 0.26);
    box-shadow: none;
}

/* 开始菜单与五个分类菜单：统一为同一张轻薄的“手帐卡片”。 */
:is(#start-menu, #caidan0, #caidan2, #caidan3, #caidan5, #caidan6) {
    background-color: var(--doodle-paper);
    background-image:
        linear-gradient(135deg, var(--doodle-highlight), transparent 48%),
        radial-gradient(circle at 100% 0%, var(--doodle-peach), transparent 32%),
        radial-gradient(circle at 0% 100%, var(--doodle-sky), transparent 36%);
    border-color: var(--doodle-line);
    box-shadow: none;
}

:is(#start-menu, #caidan0, #caidan2, #caidan3, #caidan5, #caidan6) :is(.sm-app:hover, #s-m-l>list>a:hover) {
    background-color: var(--doodle-sky);
    box-shadow: none;
}

:is(#start-menu, #caidan0, #caidan2, #caidan3, #caidan5, #caidan6) :is(.btn-icon.show, .btn-icon.show>i) {
    background-color: var(--doodle-peach) !important;
    box-shadow: none;
}

/* Liquid Glass experiment — 可整体删除此标记块以回退到不透明卡片版本。 */
:root {
    --liquid-glass: rgba(255, 250, 238, 0.66);
    --liquid-glass-top: rgba(255, 255, 255, 0.38);
    --liquid-webapp-title: rgba(255, 250, 238, 0.88);
}

:root.dark {
    --liquid-glass: rgba(31, 34, 58, 0.68);
    --liquid-glass-top: rgba(220, 232, 255, 0.10);
    --liquid-webapp-title: rgba(31, 34, 58, 0.88);
}

.window:not(.max):not(.left):not(.right):not(.webapp),
.window.foc:not(.max):not(.left):not(.right):not(.webapp) {
    background-color: var(--liquid-glass);
    background-image:
        linear-gradient(180deg, var(--liquid-glass-top), transparent 34%),
        radial-gradient(circle at 94% 8%, var(--doodle-peach), transparent 28%),
        radial-gradient(circle at 7% 100%, var(--doodle-sky), transparent 33%);
    backdrop-filter: blur(34px) saturate(1.55);
    -webkit-backdrop-filter: blur(34px) saturate(1.55);
}

.window.foc:not(.max):not(.left):not(.right):not(.webapp) {
    backdrop-filter: blur(46px) saturate(1.7);
    -webkit-backdrop-filter: blur(46px) saturate(1.7);
}

.dock,
:is(#start-menu, #caidan0, #caidan2, #caidan3, #caidan5, #caidan6) {
    background-color: var(--liquid-glass);
    background-image:
        linear-gradient(180deg, var(--liquid-glass-top), transparent 36%),
        linear-gradient(105deg, var(--doodle-sky), transparent 38%, var(--doodle-peach));
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
}

.window.webapp>.titbar,
.window.foc.webapp>.titbar {
    background-color: var(--liquid-glass);
    background-image:
        linear-gradient(180deg, var(--liquid-glass-top), transparent 45%),
        linear-gradient(100deg, var(--doodle-sky), transparent 34%, var(--doodle-peach));
    backdrop-filter: blur(28px) saturate(1.55);
    -webkit-backdrop-filter: blur(28px) saturate(1.55);
}

/* 内置应用的标题栏与 Whiteboard 内容层使用同一套玻璃材质。 */
.window:not(.max):not(.left):not(.right):not(.webapp)>.titbar {
    background-color: var(--liquid-glass);
    background-image:
        linear-gradient(180deg, var(--liquid-glass-top), transparent 48%),
        linear-gradient(100deg, var(--doodle-sky), transparent 34%, var(--doodle-peach));
}

/* 标题栏不单独采样背景，避免与窗口主体的玻璃层叠加时出现 GPU 合成闪烁。 */
.window>.titbar,
.window.webapp>.titbar,
.window.foc.webapp>.titbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* WebApp 主体保持透明，标题栏单独提高材质不透明度以匹配内置应用。 */
.window.webapp>.titbar,
.window.foc.webapp>.titbar {
    background-color: var(--liquid-webapp-title);
}

#win-whiteboard>canvas {
    background-color: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

:root.dark #win-whiteboard>canvas {
    background-color: rgba(91, 106, 145, 0.34);
}

#win-whiteboard>.toolbar>.tools {
    background-color: var(--liquid-glass);
    backdrop-filter: blur(22px) saturate(1.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
}

/* macOS 控制中心风格 Dock 最终覆盖：去掉粉蓝渐变，换成统一浅蓝玻璃面板 */
#dock-box .dock {
    background: linear-gradient(180deg, rgba(230, 244, 255, 0.78), rgba(205, 233, 255, 0.66));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 30px rgba(0, 60, 120, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

:root.dark #dock-box .dock {
    background: linear-gradient(180deg, rgba(45, 65, 95, 0.78), rgba(28, 42, 68, 0.68));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 移动端将同一个任务栏视觉上移出底部 Dock，保留既有窗口状态与动态任务项。 */
@media (max-width: 767px) {
    #taskbar>.mobile-taskbar-mini-icon {
        display: none;
    }

    #taskbar {
        position: fixed;
        right: auto;
        bottom: calc(62px + env(safe-area-inset-bottom));
        left: 16px;
        z-index: 1;
        box-sizing: border-box;
        width: calc(100% - 32px) !important;
        max-width: none;
        min-height: 44px;
        height: 44px;
        margin: 0;
        padding: 4px;
        align-items: center;
        gap: 5px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-shadow: 0 3px 12px var(--sd), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        transition: left 200ms cubic-bezier(0.2, 0.8, 0.2, 1), width 200ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }

    #taskbar::-webkit-scrollbar {
        display: none;
    }

    #dock-box #taskbar.mobile-mini {
        left: calc(50% - 32px);
        width: 64px !important;
        padding: 0;
        gap: 0;
        overflow: hidden;
        cursor: pointer;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #taskbar.mobile-mini.mobile-taskbar-entering {
        opacity: 0;
        pointer-events: none;
        transform: translateY(5px) scale(0.95);
        transition: none !important;
    }

    #taskbar.mobile-mini.mobile-taskbar-closing {
        opacity: 0;
        pointer-events: none;
        transform: translateY(5px) scale(0.95);
    }

    #taskbar.mobile-mini.mobile-taskbar-closing[count="0"] {
        display: flex !important;
        transition: left 120ms ease, width 120ms ease, opacity 120ms ease, transform 120ms ease,
            background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    }

    #taskbar.mobile-mini::before {
        content: '';
        position: absolute;
        z-index: 0;
        top: 10px;
        left: 3px;
        width: 58px;
        height: 24px;
        border: 1px solid var(--glass-border);
        border-radius: 999px;
        background: linear-gradient(180deg, var(--liquid-glass-top), var(--liquid-glass));
        box-shadow: 0 2px 8px var(--sd), inset 0 1px 0 rgba(255, 255, 255, 0.38);
        animation: mobile-taskbar-mini-breathe 2.8s ease-in-out infinite;
        pointer-events: none;
    }

    #taskbar.mobile-mini::after {
        content: attr(count);
        position: absolute;
        z-index: 2;
        top: 12px;
        left: 33px;
        min-width: 18px;
        height: 20px;
        color: var(--text);
        font-family: ui-rounded, "SF Pro Rounded", "Segoe UI Variable", "Segoe UI", sans-serif;
        font-size: 11px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.01em;
        line-height: 20px;
        text-align: center;
        pointer-events: none;
    }

    #taskbar.mobile-mini>a {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.8);
    }

    #taskbar.mobile-mini>.mobile-taskbar-mini-icon {
        position: absolute;
        z-index: 2;
        top: 13px;
        left: 14px;
        display: block;
        width: 15px;
        height: 18px;
        color: var(--text);
        font-size: 15px;
        line-height: 18px;
        text-align: center;
        pointer-events: none;
    }

    #taskbar>a {
        position: relative;
        box-sizing: border-box;
        flex: 0 0 auto;
        width: 92px;
        min-width: 92px;
        height: 36px;
        margin: 0;
        padding: 3px 6px 4px 5px;
        display: flex;
        align-items: center;
        gap: 5px;
        overflow: hidden;
        transition: opacity 160ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    #taskbar>a>img {
        order: 0;
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        margin: 0;
    }

    #taskbar>a::before {
        content: attr(win12_title);
        order: 1;
        min-width: 0;
        overflow: hidden;
        color: var(--text);
        font-size: 10px;
        font-weight: 600;
        line-height: 1.2;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #taskbar>a::after {
        position: absolute;
        bottom: 2px;
        left: calc(50% - 10px);
        width: 20px;
        height: 2px;
    }

    #taskbar>a:not(.foc)::after {
        left: calc(50% - 5px);
        width: 10px;
    }

    #taskbar>a:not(.foc):hover::after,
    #taskbar>a.min:hover::after {
        left: calc(50% - 7px);
        width: 14px;
    }

    #taskbar>a.foc:hover::after {
        left: calc(50% - 12px);
        width: 24px;
    }

    /* 普通窗口预留切换栏与间距；特殊尺寸窗口及已有全屏状态保持原样。 */
    .window.show:not(.max):not(.min):not(.left):not(.right):not(.run):not(.calc):not(.notepad-fonts) {
        height: auto;
        bottom: calc(116px + env(safe-area-inset-bottom));
    }

    #descp,
    #descp.show,
    #descp.show-begin {
        display: none !important;
    }

    #dock-box.hide #taskbar {
        opacity: 0;
        pointer-events: none;
        transform: translateY(56px);
    }

    @keyframes mobile-taskbar-mini-breathe {
        0%,
        100% {
            transform: translateY(0);
            box-shadow: 0 2px 8px var(--sd), inset 0 1px 0 rgba(255, 255, 255, 0.38);
        }

        50% {
            transform: translateY(-1px);
            box-shadow: 0 4px 13px var(--sd), inset 0 1px 0 rgba(255, 255, 255, 0.48);
        }
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    #taskbar,
    #taskbar>a,
    #taskbar>a>img,
    #taskbar.mobile-mini::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================= */
/* 涂鸦风启动页 #loadback */
/* 保留 .fade-in-out 动画；未改动钱包相关代码 */
/* ============================================= */
#loadback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #18102e 0%, #090514 60%, #03020a 100%);
    overflow: hidden;
    box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.65);
}

#loadback::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.30) 0%, rgba(120, 200, 255, 0.16) 22%, transparent 50%),
        conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.10) 18deg, rgba(120, 200, 255, 0.08) 45deg, transparent 75deg);
    filter: blur(45px);
    animation: boot-spotlight-spin 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes boot-spotlight-spin {
    to {
        transform: rotate(360deg);
    }
}

.boot-ring,
.boot-ring::before,
.boot-ring::after {
    display: none;
}

#loadbacksvg {
    position: relative;
    z-index: 2;
    width: 340px;
    height: 340px;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.5));
}

.boot-text {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Segoe UI', sans-serif;
    text-shadow:
        3px 3px 0 #ff5aa4,
        -2px -2px 0 #4ec9ff,
        0 0 30px rgba(255, 255, 255, 0.25);
}

.boot-dots {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    display: flex;
    gap: 12px;
}

.boot-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: boot-bounce 1.2s infinite ease-in-out;
}

.boot-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.boot-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes boot-bounce {
    0%, 80%, 100% {
        transform: scale(0.5);
        opacity: 0.35;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 移动端启动页适配 */
@media (max-width: 540px) {
    #loadbacksvg {
        width: 220px;
        height: 220px;
    }

    .boot-text {
        font-size: 28px;
        letter-spacing: 3px;
        margin-top: 16px;
    }

    .boot-dots {
        margin-top: 14px;
    }
}

/* ============================================= */
/* 通知弹窗 #notice：仅改配色为简约涂鸦风 + iOS 毛玻璃 */
/* 保留原有尺寸、圆角、布局、点击逻辑不变 */
/* ============================================= */
#notice-back {
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#notice {
    background-color: var(--doodle-paper);
    background-image:
        linear-gradient(180deg, var(--doodle-highlight), transparent 40%),
        linear-gradient(105deg, var(--doodle-sky), transparent 38%, var(--doodle-peach));
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

:root.dark #notice {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#notice>.cnt>.tit {
    color: var(--doodle-ink);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

#notice>.cnt>p {
    color: var(--doodle-ink);
}

#notice>.cnt>p a {
    color: #2b7de1;
}

#notice>.btns {
    background: rgba(0, 0, 0, 0.02);
    border-top-color: rgba(0, 0, 0, 0.06);
}

#notice>.btns>.btn {
    background: #e6f4ff;
    border-color: #9ecae8;
    color: #1a3a5c;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 40, 90, 0.1);
}

#notice>.btns>.btn:hover {
    background: #d4ecff;
    border-color: #7ab6e6;
    color: #1a3a5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 40, 90, 0.18);
}

#notice>.btns>.btn:active {
    transform: scale(0.96);
}

:root.dark #notice>.btns>.btn {
    background: #2a4368;
    border-color: #4a6fa5;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

:root.dark #notice>.btns>.btn:hover {
    background: #34527a;
    border-color: #6a9ad0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

#notice>.btns>.btn.main {
    background: linear-gradient(135deg, #5aa8ff, #ff7ca0);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

#notice>.btns>.btn.main:hover {
    background: linear-gradient(135deg, #2563c8, #1e3a8a);
    color: #fff;
    filter: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 40, 120, 0.35);
}

:root.dark #notice>.btns>.btn.main {
    background: linear-gradient(135deg, #3b7acc, #c4527a);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

:root.dark #notice>.btns>.btn.main:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    filter: none;
    box-shadow: 0 10px 28px rgba(0, 20, 80, 0.5);
}

#notice>.btns>.puso-headlines-dismiss {
    position: relative;
}

#notice .puso-headlines-close-trigger {
    appearance: none;
    min-width: 100px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, #5aa8ff, #ff7ca0);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: transform 150ms, box-shadow 150ms, background 150ms;
}

#notice .puso-headlines-close-trigger:hover {
    background: linear-gradient(135deg, #2563c8, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 40, 120, 0.35);
}

#notice .puso-headlines-close-trigger:active {
    transform: scale(0.96);
}

#notice .puso-headlines-close-trigger i {
    transition: transform 150ms;
}

#notice .puso-headlines-dismiss.open .puso-headlines-close-trigger i {
    transform: rotate(180deg);
}

#notice .puso-headlines-dismiss-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 3;
    width: max-content;
    min-width: 220px;
    max-width: calc(100vw - 64px);
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px) scale(0.98);
    transform-origin: right bottom;
    transition: opacity 150ms, visibility 150ms, transform 150ms;
}

#notice .puso-headlines-dismiss.open .puso-headlines-dismiss-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

#notice .puso-headlines-dismiss-menu button {
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 7px;
    display: block;
    color: #1a2433;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

#notice .puso-headlines-dismiss-menu button:hover,
#notice .puso-headlines-dismiss-menu button:focus-visible {
    color: #123a67;
    background: #e6f4ff;
    outline: none;
}

:root.dark #notice .puso-headlines-close-trigger {
    background: linear-gradient(135deg, #3b7acc, #c4527a);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

:root.dark #notice .puso-headlines-close-trigger:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 28px rgba(0, 20, 80, 0.5);
}

:root.dark #notice .puso-headlines-dismiss-menu {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(30, 34, 48, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

:root.dark #notice .puso-headlines-dismiss-menu button {
    color: #f3f6ff;
}

:root.dark #notice .puso-headlines-dismiss-menu button:hover,
:root.dark #notice .puso-headlines-dismiss-menu button:focus-visible {
    color: #fff;
    background: #34527a;
}

@media (max-width: 540px) {
    #notice>.btns>.puso-headlines-dismiss,
    #notice .puso-headlines-close-trigger {
        width: 100%;
    }

    #notice .puso-headlines-dismiss-menu {
        right: 0;
        left: 0;
        width: auto;
        min-width: 0;
        max-width: none;
        transform-origin: center bottom;
    }
}

/* ============================================= */
/* 排行榜弹窗 #leaderboard-overlay .leaderboard-card */
/* 复用钱包登录的暗紫灰毛玻璃风格              */
/* 仅改配色，尺寸/布局/点击逻辑不变             */
/* ============================================= */
#leaderboard-overlay .leaderboard-card {
    background-color: rgba(55, 48, 78, 0.5);
    backdrop-filter: blur(40px) saturate(1.3);
    -webkit-backdrop-filter: blur(40px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#leaderboard-overlay .leaderboard-head {
    background: rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

#leaderboard-overlay .leaderboard-head .chip {
    background: linear-gradient(135deg, #8b7fd4, #c47aa3);
    color: #fff;
}

#leaderboard-overlay .leaderboard-head .chip.clickable:hover {
    background: linear-gradient(135deg, #9d91e0, #d68ab0);
    box-shadow: 0 2px 8px rgba(196, 122, 163, 0.4);
}

#leaderboard-overlay .leaderboard-row .label {
    color: rgba(255, 255, 255, 0.75);
}

#leaderboard-overlay .leaderboard-row .value {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

#leaderboard-overlay .leaderboard-row .value.address {
    color: rgba(255, 255, 255, 0.95);
}

#leaderboard-overlay .leaderboard-row .note {
    color: rgba(255, 255, 255, 0.55);
}

#leaderboard-overlay .leaderboard-row .ghost-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

#leaderboard-overlay .leaderboard-row .ghost-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

#leaderboard-overlay .leaderboard-close {
    color: rgba(255, 255, 255, 0.7);
}

#leaderboard-overlay .leaderboard-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ============================================= */
/* Dock：市场恐惧与贪婪指数小部件                 */
/* ============================================= */
#market-sentiment-overlay,
#market-sentiment-overlay * {
    box-sizing: border-box;
}

#market-sentiment-overlay {
    --market-fear: #e66767;
    --market-neutral: #d2a23d;
    --market-greed: #3987e5;
    --market-text: #ffffff;
    --market-text-secondary: #c3c2b7;
    --market-text-muted: #898781;
    --market-divider: rgba(255, 255, 255, 0.1);
    --market-safe-top: 18px;
    position: fixed;
    inset: 0;
    z-index: 5;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s 260ms;
}

#market-sentiment-overlay.open {
    visibility: visible;
    transition-delay: 0s;
}

#market-sentiment-widget {
    position: absolute;
    width: clamp(410px, 38vw, 468px);
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - var(--market-safe-top) - 70px);
    max-height: calc(100dvh - var(--market-safe-top) - 70px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    color: var(--market-text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    outline: none;
    background:
        radial-gradient(circle at 8% 0%, rgba(57, 135, 229, 0.18), transparent 35%),
        linear-gradient(145deg, rgba(28, 34, 47, 0.88), rgba(11, 15, 23, 0.82));
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.34),
        inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(28px) saturate(1.35);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top right;
    pointer-events: none;
    transition:
        opacity 220ms ease,
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 180ms ease;
}

#market-sentiment-overlay.open #market-sentiment-widget {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

#market-sentiment-widget:hover,
#market-sentiment-widget:focus-within {
    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.4),
        inset 0 1px rgba(255, 255, 255, 0.09);
}

#market-sentiment-widget.dragging {
    cursor: grabbing;
    transition: none;
}

#market-sentiment-widget p,
#market-sentiment-widget h2,
#market-sentiment-widget h3 {
    margin: 0;
}

.market-sentiment-header {
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px 7px 14px;
    border-bottom: 1px solid var(--market-divider);
    background: rgba(255, 255, 255, 0.025);
}

.market-sentiment-heading,
.market-sentiment-actions,
.market-sentiment-window-actions,
.market-sentiment-data-state {
    display: flex;
    align-items: center;
}

.market-sentiment-heading {
    min-width: 0;
    gap: 9px;
}

.market-sentiment-heading-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #b7d3f6;
    border: 1px solid rgba(183, 211, 246, 0.2);
    border-radius: 9px;
    background: rgba(57, 135, 229, 0.14);
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, transform 100ms ease;
}

.market-sentiment-heading-icon:hover {
    background: rgba(57, 135, 229, 0.28);
    border-color: rgba(183, 211, 246, 0.45);
}

.market-sentiment-heading-icon:active { transform: scale(0.92); }

.market-sentiment-heading-icon svg {
    width: 17px;
    height: 17px;
}

.market-sentiment-eyebrow {
    color: var(--market-text-muted);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.12em;
}

#market-sentiment-title {
    margin-top: 2px !important;
    color: var(--market-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.15;
}

.market-sentiment-actions {
    flex: 0 0 auto;
    gap: 5px;
}

.market-sentiment-window-actions {
    gap: 4px;
    opacity: 0;
    transform: translateX(4px);
    pointer-events: none;
    transition: opacity 150ms ease, transform 180ms ease;
}

#market-sentiment-widget:hover .market-sentiment-window-actions,
#market-sentiment-widget:focus-within .market-sentiment-window-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.market-sentiment-data-state {
    gap: 6px;
    color: var(--market-text-muted);
    font-size: 9px;
    font-weight: 650;
    white-space: nowrap;
}

.market-sentiment-state-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--market-text-muted);
    box-shadow: 0 0 0 4px rgba(137, 135, 129, 0.1);
}

.market-sentiment-action {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    padding: 0;
    color: var(--market-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.065);
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 100ms ease;
}

.market-sentiment-action:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.13);
}

.market-sentiment-action:active {
    transform: scale(0.92);
}

.market-sentiment-heading-icon:focus-visible,
.market-sentiment-action:focus-visible,
#market-sentiment-widget:focus-visible,
#market-sentiment-toggle:focus-visible {
    outline: 2px solid #86b6ef;
    outline-offset: 2px;
}

.market-sentiment-action:disabled {
    cursor: wait;
    opacity: 0.68;
}

.market-sentiment-action svg,
.market-sentiment-action i {
    width: 15px;
    height: 15px;
}

.market-sentiment-action i {
    display: grid;
    place-items: center;
    font-size: 15px;
    line-height: 1;
}

.market-sentiment-drag {
    cursor: grab;
    touch-action: none;
}

.market-sentiment-drag:active {
    cursor: grabbing;
}

.market-sentiment-refresh.loading i {
    animation: market-sentiment-refresh-spin 700ms linear infinite;
}

@keyframes market-sentiment-refresh-spin {
    to { transform: rotate(360deg); }
}

.market-sentiment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.market-sentiment-card {
    min-width: 0;
    padding: 13px 14px 12px;
}

.market-sentiment-card + .market-sentiment-card {
    border-left: 1px solid var(--market-divider);
}

.market-sentiment-card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.market-sentiment-card-label h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--market-text-secondary);
    font-size: 12px;
    font-weight: 650;
}

.market-sentiment-symbol {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    color: #fff;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.market-sentiment-source {
    overflow: hidden;
    color: var(--market-text-muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-sentiment-gauge-row {
    display: grid;
    grid-template-columns: minmax(0, 132px) minmax(66px, 1fr);
    align-items: end;
    gap: 3px;
}

.market-sentiment-gauge,
.market-sentiment-gauge svg {
    width: 100%;
    height: 82px;
}

.market-sentiment-gauge svg {
    display: block;
    overflow: visible;
}

.market-sentiment-gauge-track,
.market-sentiment-gauge-scale {
    fill: none;
    stroke-linecap: round;
}

.market-sentiment-gauge-track {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 12;
}

.market-sentiment-gauge-scale {
    stroke-width: 8;
}

.market-sentiment-gauge-endpoint {
    fill: var(--market-text-muted);
    font-size: 7px;
    font-weight: 650;
    letter-spacing: 0.05em;
}

.market-sentiment-needle {
    opacity: 1;
    transform: rotate(-90deg);
    transform-origin: 70px 70px;
    transition: opacity 180ms ease, transform 900ms cubic-bezier(0.34, 1.3, 0.64, 1);
}

.market-sentiment-needle.no-data {
    opacity: 0;
}

.market-sentiment-needle line {
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.market-sentiment-needle circle {
    fill: #151922;
    stroke: #fff;
    stroke-width: 2;
}

.market-sentiment-reading {
    min-width: 0;
    padding-bottom: 12px;
}

.market-sentiment-value {
    color: var(--market-text);
    font-size: 34px;
    font-weight: 350;
    line-height: 1;
    letter-spacing: -0.04em;
}

.market-sentiment-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px !important;
    overflow: hidden;
    color: var(--market-text-secondary);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.market-sentiment-status span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-sentiment-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--market-text-muted);
}

.market-sentiment-updated {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 3px;
    color: var(--market-text-muted);
    font-size: 8px;
}

.market-sentiment-updated span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-sentiment-updated span:last-child {
    flex: 0 0 auto;
}

.market-sentiment-scale {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 9px;
    color: var(--market-text-muted);
    border-top: 1px solid var(--market-divider);
    font-size: 8px;
}

.market-sentiment-scale > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.market-sentiment-scale > span:nth-child(2) {
    justify-content: center;
}

.market-sentiment-scale > span:last-child {
    justify-content: flex-end;
}

.market-sentiment-scale-swatch {
    width: 12px;
    height: 3px;
    display: inline-block;
    flex: 0 0 12px;
    border-radius: 2px;
}

.market-sentiment-scale-swatch.fear {
    background: var(--market-fear);
}

.market-sentiment-scale-swatch.greed {
    background: var(--market-greed);
}

#market-sentiment-toggle {
    --mini-tone: #898781;
    --mini-ink: #273344;
    --mini-muted: #536b80;
    --mini-track: #b7c7d4;
    --mini-ticks: #73899d;
    position: relative;
    box-sizing: border-box;
    width: 100px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    user-select: none;
}

:root.dark #market-sentiment-toggle {
    --mini-ink: #f5f8fc;
    --mini-muted: #b8cbe0;
    --mini-track: #667e99;
    --mini-ticks: #9db3ca;
}

#market-sentiment-toggle .market-sentiment-mini {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    pointer-events: none;
}

#market-sentiment-toggle[data-style="halo"] .market-sentiment-mini-halo {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 5px 2px 4px;
}

.market-mini-halo-ring,
.market-mini-halo-ring svg {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.market-mini-halo-ticks { stroke: var(--mini-ticks); opacity: 0.7; }
.market-mini-halo-track { stroke: var(--mini-track); }
.market-mini-halo-progress { stroke: var(--mini-tone); stroke-dasharray: 0 100; }
.market-mini-halo-center { fill: var(--mini-tone); }

.market-mini-halo-info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 20px 3px;
    align-items: center;
    flex: 1;
    min-width: 0;
    color: var(--mini-ink);
    text-align: left;
}

#market-mini-halo-value {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

#market-mini-halo-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    color: var(--mini-muted);
    font-size: 7px;
    font-weight: 700;
    white-space: nowrap;
}

.market-mini-halo-leds {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 3px;
}

.market-mini-halo-leds i {
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--mini-track);
}

#market-sentiment-toggle[data-style="precision"] .market-sentiment-mini-precision {
    display: block;
}

.market-mini-precision-ticks {
    stroke: var(--mini-ticks);
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.78;
}

.market-mini-precision-track { stroke: var(--mini-track); }
.market-mini-precision-progress { stroke: var(--mini-tone); stroke-dasharray: 0 100; }
.market-mini-precision-marker { fill: #fff; stroke: var(--mini-tone); stroke-width: 1.6; }
.market-mini-precision-value { fill: var(--mini-ink); font: 700 18px "Segoe UI", sans-serif; }
.market-mini-precision-status { fill: var(--mini-muted); font: 700 6px "Segoe UI", sans-serif; letter-spacing: 1.2px; }

#market-sentiment-toggle.no-data .market-mini-halo-progress,
#market-sentiment-toggle.no-data .market-mini-halo-center,
#market-sentiment-toggle.no-data .market-mini-precision-progress,
#market-sentiment-toggle.no-data .market-mini-precision-marker { opacity: 0; }

#market-sentiment-toggle[aria-expanded="true"] {
    background-color: rgba(57, 135, 229, 0.17);
    box-shadow:
        0 8px 30px rgba(0, 60, 120, 0.16),
        inset 0 0 0 1px rgba(57, 135, 229, 0.22);
}

@media (hover: none), (pointer: coarse) {
    .market-sentiment-window-actions {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 767px) {
    #market-sentiment-overlay {
        z-index: 9998;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        padding-left: max(12px, env(safe-area-inset-left));
        background: rgba(4, 7, 13, 0.64);
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
        opacity: 0;
        transition:
            opacity 220ms ease,
            backdrop-filter 300ms ease,
            -webkit-backdrop-filter 300ms ease,
            visibility 0s 300ms;
    }

    #market-sentiment-overlay.open {
        opacity: 1;
        pointer-events: auto;
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
        transition-delay: 0s;
    }

    #market-sentiment-widget {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: min(100%, 480px);
        max-width: none;
        max-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 26px;
        background:
            radial-gradient(circle at 12% 0%, rgba(57, 135, 229, 0.28), transparent 32%),
            radial-gradient(circle at 100% 100%, rgba(232, 103, 103, 0.15), transparent 34%),
            linear-gradient(155deg, rgba(30, 38, 54, 0.96), rgba(8, 12, 20, 0.94));
        box-shadow:
            0 28px 80px rgba(0, 0, 0, 0.52),
            inset 0 1px rgba(255, 255, 255, 0.1);
        transform: translateY(28px) scale(0.96);
        transform-origin: center bottom;
        scrollbar-width: none;
    }

    #market-sentiment-widget::-webkit-scrollbar {
        display: none;
    }

    #market-sentiment-overlay.open #market-sentiment-widget {
        transform: none;
    }

    .market-sentiment-header {
        position: sticky;
        top: 0;
        z-index: 2;
        min-height: 88px;
        align-items: flex-start;
        padding: 16px 16px 34px;
        background: rgba(19, 25, 37, 0.88);
        backdrop-filter: blur(22px) saturate(1.25);
        -webkit-backdrop-filter: blur(22px) saturate(1.25);
    }

    .market-sentiment-heading-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 11px;
    }

    .market-sentiment-eyebrow {
        font-size: 8.5px;
    }

    #market-sentiment-title {
        font-size: 15px;
    }

    .market-sentiment-actions {
        gap: 7px;
    }

    .market-sentiment-data-state {
        position: absolute;
        left: 17px;
        bottom: 12px;
        font-size: 9px;
    }

    .market-sentiment-action {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 11px;
    }

    .market-sentiment-action svg,
    .market-sentiment-action i {
        width: 17px;
        height: 17px;
    }

    .market-sentiment-action i {
        font-size: 17px;
    }

    .market-sentiment-drag {
        display: none;
    }

    .market-sentiment-window-actions {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .market-sentiment-grid {
        grid-template-columns: 1fr;
        padding: 6px 12px;
        gap: 8px;
    }

    .market-sentiment-card {
        padding: 15px 16px 13px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.045);
    }

    .market-sentiment-card + .market-sentiment-card {
        border-left: 1px solid rgba(255, 255, 255, 0.09);
    }

    .market-sentiment-card-label h3 {
        font-size: 13px;
    }

    .market-sentiment-source {
        font-size: 9px;
    }

    .market-sentiment-gauge-row {
        grid-template-columns: 150px minmax(0, 1fr);
        justify-content: center;
        gap: 10px;
    }

    .market-sentiment-gauge,
    .market-sentiment-gauge svg {
        width: 150px;
        height: 88px;
    }

    .market-sentiment-reading {
        padding-bottom: 11px;
    }

    .market-sentiment-value {
        font-size: 42px;
    }

    .market-sentiment-status {
        font-size: 12px;
    }

    .market-sentiment-updated {
        font-size: 9px;
    }

    .market-sentiment-scale {
        margin-top: 4px;
        padding: 10px 16px 13px;
        font-size: 8px;
    }
}

@media (max-width: 359px) {
    .market-sentiment-gauge-row {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 4px;
    }

    .market-sentiment-gauge,
    .market-sentiment-gauge svg {
        width: 140px;
    }

    .market-sentiment-card {
        padding-right: 12px;
        padding-left: 12px;
    }

    .market-sentiment-scale {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #market-sentiment-overlay,
    #market-sentiment-widget,
    .market-sentiment-window-actions,
    .market-sentiment-needle,
    .market-sentiment-action {
        transition: none !important;
    }

    .market-sentiment-refresh.loading i {
        animation: none;
    }
}



