:root {
    --bg: #0a0c1a;
    --text: #d0d0e0;
    --text-dim: #70708a;
    --text-muted: #9090aa;
    --accent: #0071e3;
    --accent-glow: #00c8ff;
    --danger: #c0392b;
    --warning: #d97706;
    --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --taskbar-height: 48px;
    --window-radius: 12px;
    --window-bg: #f8f8fa;
    --window-border: #d0d0d8;
    --window-titlebar-height: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* ========== 背景粒子 ========== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(180, 200, 255, 0.5);
    border-radius: 50%;
    animation: float linear infinite;
}
@keyframes float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(30px); opacity: 0; }
}

/* ========== 渐变光晕 ========== */
.vignette {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(0, 20, 60, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(40, 0, 80, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 20%, rgba(0, 60, 100, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* ========== 桌面容器 ========== */
.desktop {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
}
.desktop-icons {
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 16px;
    padding: 30px 20px calc(20px + var(--taskbar-height));
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 76px;
    padding: 10px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    gap: 4px;
}
.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}
.desktop-icon.selected {
    background: rgba(0, 113, 227, 0.25);
    outline: 1px solid rgba(0, 113, 227, 0.5);
}
.desktop-icon .icon-img {
    font-size: 36px;
    line-height: 1.2;
}
.desktop-icon .icon-label {
    font-size: 12px;
    color: var(--text);
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    word-break: break-all;
    line-height: 1.4;
}

/* ========== 任务栏 ========== */
.taskbar {
    height: var(--taskbar-height);
    background: rgba(20, 20, 35, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 500;
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}
.taskbar-left,
.taskbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;          /* 右侧不被压缩 */
    padding-left: 8px;
}
.start-button {
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.start-button:hover {
    background: rgba(255, 255, 255, 0.15);
}
.taskbar-windows {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 2px;      /* 给滚动条留一点空间 */
    scrollbar-width: thin;    /* Firefox：细滚动条 */
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.taskbar-windows::-webkit-scrollbar {
    height: 3px;              /* 超细滚动条 */
}
.taskbar-windows::-webkit-scrollbar-track {
    background: transparent;  /* 透明轨道 */
}
.taskbar-windows::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
}
.taskbar-windows::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}
.taskbar-window-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    overflow: hidden;
}
.taskbar-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.taskbar-window-btn:hover {
    background: rgba(255,255,255,0.12);
}
.taskbar-window-btn.active {
    background: rgba(0, 113, 227, 0.3);
    border-color: rgba(0, 113, 227, 0.5);
}
.taskbar-window-btn.minimized {
    opacity: 0.5;
}
.taskbar-notification-area {
    cursor: pointer;
    color: #999;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.taskbar-notification-area:hover {
    color: #555;
    background: rgba(255,255,255,0.1);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 2px rgba(20, 20, 35, 0.9); /* 与任务栏同色的细环，让红点更精致 */
    pointer-events: none;
}

.taskbar-time {
    color: var(--text);
    font-size: 12px;
    text-align: right;
    line-height: 1.4;
    padding: 4px 8px;
    flex-shrink: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.taskbar-time:hover {
    background: rgba(255,255,255,0.1);
}

/* ========== 窗口容器与窗口 ========== */
.windows-container {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}
.app-window {
    position: absolute;
    pointer-events: auto;
    background: var(--window-bg);
    border: 1px solid var(--window-border);
    border-radius: var(--window-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 280px;
    min-height: 180px;
}

/* ========== 窗口标题栏 ========== */
.window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--window-titlebar-height);
    padding: 0 14px 0 16px;
    border-bottom: 1px solid #e0e0e5;
    flex-shrink: 0;
    cursor: grab;
    background: #f0f0f3;
}
.window-titlebar:active {
    cursor: grabbing;
}
.window-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    -webkit-font-smoothing: antialiased;
}

/* 深色窗口（天启通等） */
.app-window.dark-window {
    background: #0a0e1a;
    border-color: #0e1728;    /* 与天启通左侧栏背景一致 */
}
.app-window.dark-window .window-titlebar {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.07) 0%, transparent 100%), #0d1424;
    border-bottom-color: rgba(0, 212, 255, 0.08);
}
.app-window.dark-window .window-title {
    color: #e8edf5;
}
.app-window.dark-window .window-body iframe {
    background: #0a0e1a;
}

/* ========== 窗口控制按钮（iOS 风格） ========== */
.window-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 6px 4px;
    border-radius: 8px;
    cursor: default;
}
.win-btn {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background: #febc2e;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}
.win-btn.win-close {
    background: #ff5f57;
}
.win-btn::after {
    content: '';
    position: absolute;
    inset: -5px;
}
.win-btn:hover {
    filter: brightness(0.9);
}
.win-btn .btn-symbol {
    display: none;
    width: 10px;
    height: 10px;
    color: #522f07;
    pointer-events: none;
    user-select: none;
}
.win-btn.win-close .btn-symbol {
    color: #75440c;
}
.window-controls:hover .win-btn .btn-symbol {
    display: block;
}

/* ========== 窗口内容 ========== */
.window-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}
.window-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #f0f0f3;
}

/* ========== 窗口拉伸柄（无视觉提示） ========== */
.window-resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    z-index: 10;
    /* 无背景、无边框、无视觉提示 */
}

/* 拉伸中：禁用 iframe 指针事件，防止鼠标丢失 */
.app-window.resizing {
    user-select: none;
}

.app-window.resizing iframe {
    pointer-events: none;
}

/* ========== 文件夹内容 ========== */
.folder-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}
.folder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 10px 6px;
    border-radius: 8px;
    transition: background 0.2s;
    gap: 6px;
}
.folder-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
.folder-item .file-icon {
    font-size: 36px;
    line-height: 1.2;
}
.folder-item .file-name {
    font-size: 11px;
    color: #333;
    word-break: break-all;
    line-height: 1.4;
}
.folder-item .file-thumbnail {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
}

/* ========== 弹窗（窗口形式，按钮样式复用） ========== */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e8e8ec;
    flex-shrink: 0;
}
.modal-btn {
    padding: 7px 18px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    font-family: var(--font);
}
.modal-btn.primary {
    background: var(--accent);
    color: #fff;
}
.modal-btn.primary:hover {
    background: #0077ed;
}
.modal-btn.danger {
    background: var(--danger);
    color: #fff;
}
.modal-btn.danger:hover {
    background: #a93226;
}
.modal-btn.ghost {
    background: #f0f0f3;
    color: #333;
    border-color: #d0d0d8;
}
.modal-btn.ghost:hover {
    background: #e0e0e5;
}

/* ========== 重新开始弹窗 ========== */
.restart-modal-body {
    text-align: center;
    padding: 8px 0 0;
}

.restart-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.restart-modal-desc {
    font-size: 12.5px;
    color: #6b6b6b;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* ========== 开始菜单 ========== */
.start-menu {
    position: fixed;
    bottom: calc(var(--taskbar-height) + 8px);
    left: 8px;
    z-index: 600;
    background: rgba(25, 25, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    min-width: 200px;
    overflow: hidden;
    padding: 6px;
}
.start-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
}
.start-menu-item svg {
    flex-shrink: 0;
    color: var(--text-dim);
}
.start-menu-item:hover svg {
    color: var(--text);
}
.start-menu-item:hover {
    background: rgba(255,255,255,0.1);
}
.start-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 0;
}

/* ========== Lightbox ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

/* ========== Toast ========== */
.toast-container {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast-message {
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: auto;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 1.2s forwards;
    text-align: center;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

/* ========== 通用隐藏 ========== */
.hidden {
    display: none !important;
}

/* ========== 响应式 ========== */
@media (max-width: 700px) {
    .desktop-icons {
        padding: 16px 10px calc(10px + var(--taskbar-height));
        gap: 10px;
    }
    .desktop-icon {
        width: 64px;
        padding: 8px 4px;
    }
    .desktop-icon .icon-img {
        font-size: 28px;
    }
    .desktop-icon .icon-label {
        font-size: 10px;
    }
    .taskbar-windows {
        max-width: none;
        flex: 1;
        min-width: 0;
    }
    .taskbar-window-btn {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
    .taskbar-btn-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .folder-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== 桌面通知系统（带微妙渐变色） ========== */

/* ========== 通知卡片容器 ========== */
.notice-stack {
    position: fixed;
    right: 16px;
    bottom: 58px;
    z-index: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

/* ========== 通知卡片 ========== */
.notice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    background: linear-gradient(
        135deg,
        rgba(32, 34, 58, 0.94) 0%,
        rgba(22, 24, 42, 0.94) 55%,
        rgba(16, 18, 32, 0.94) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.38),
        0 0 24px rgba(90, 110, 170, 0.06);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.notice-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.notice-card.hiding {
    opacity: 0;
    transform: translateY(20px);
}

.notice-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        rgba(140, 155, 200, 0.16) 0%,
        rgba(90, 95, 140, 0.10) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notice-body {
    flex: 1;
    min-width: 0;
}
.notice-title {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0ec;
    margin-bottom: 2px;
}
.notice-subtitle {
    font-size: 12px;
    color: #9a9ab2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-preview {
    font-size: 11px;
    color: #70708a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.notice-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #9a9ab2;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    line-height: 1;
}
.notice-close:hover {
    background: rgba(255, 95, 87, 0.14);
    color: #ff6b63;
}

/* ========== 通知中心面板 ========== */
.notice-panel {
    position: fixed;
    right: 16px;
    bottom: 58px;
    width: 300px;
    max-height: 450px;
    background: linear-gradient(
        160deg,
        rgba(34, 36, 62, 0.96) 0%,
        rgba(22, 24, 44, 0.96) 50%,
        rgba(14, 16, 30, 0.96) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    z-index: 750;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.notice-panel.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.notice-panel-header {
    padding: 12px 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    background: linear-gradient(
        90deg,
        rgba(140, 155, 200, 0.08) 0%,
        transparent 60%
    );
}
.notice-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0ec;
}

.notice-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.notice-panel-list::-webkit-scrollbar {
    width: 4px;
}
.notice-panel-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
}

.notice-panel-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.notice-panel-item:last-child {
    border-bottom: none;
}
.notice-panel-item:hover {
    background: linear-gradient(
        90deg,
        rgba(140, 155, 200, 0.10) 0%,
        transparent 80%
    );
}

.notice-panel-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(140, 155, 200, 0.16) 0%,
        rgba(90, 95, 140, 0.10) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notice-panel-body {
    flex: 1;
    min-width: 0;
}
.notice-panel-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #e0e0ec;
    margin-bottom: 2px;
}
.notice-panel-item-subtitle {
    font-size: 11px;
    color: #9a9ab2;
    line-height: 1.5;
}
.notice-panel-item-preview {
    font-size: 11px;
    color: #76768e;
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-panel-item-time {
    font-size: 10px;
    color: #76768e;
    margin-top: 4px;
}

/* ========== 任务栏铃铛红点 ========== */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff6b63;
    box-shadow: 0 0 0 2px rgba(20, 20, 35, 0.9);
    pointer-events: none;
}

/* ========== 通关后模式：水牢配色 ========== */
body.post-ending {
    /* 背景：暖冷融合，比水牢页稍暗一档 */
    background:
        radial-gradient(ellipse 80% 60% at 18% 12%, rgba(200, 165, 100, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 90% 70% at 82% 88%, rgba(50, 110, 165, 0.18) 0%, transparent 65%),
        linear-gradient(150deg, #ece5d3 0%, #e3e6eb 50%, #d6dfe9 100%);
    background-attachment: fixed;

    --text: #1a2a3a;
    --text-dim: #5a6a7a;
    --text-muted: #8a95a5;
}

body.post-ending .particle {
    background: rgba(105, 105, 110, 0.55);
}

body.post-ending .vignette {
    background:
        radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(60, 70, 85, 0.14) 100%);
}

/* ========== 任务栏：青蓝玻璃 ========== */
body.post-ending .taskbar {
    background: rgba(82, 102, 114, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.post-ending .start-button {
    color: #ecf2f7;
}
body.post-ending .start-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.post-ending .taskbar-window-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ecf2f7;
}
body.post-ending .taskbar-window-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}
body.post-ending .taskbar-window-btn.active {
    background: rgba(120, 180, 230, 0.4);
    border-color: rgba(160, 210, 245, 0.6);
}
body.post-ending .taskbar-window-btn.minimized {
    opacity: 0.6;
}

body.post-ending .taskbar-time {
    color: #ecf2f7;
}
body.post-ending .taskbar-time:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.post-ending .taskbar-notification-area {
    color: #d0dae2;
}
body.post-ending .taskbar-notification-area:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* 通知红点：外环改成和新任务栏同色 */
body.post-ending .notification-badge {
    box-shadow: 0 0 0 2px rgba(147, 161, 171, 0.94);
}

/* ========== 桌面图标 ========== */
body.post-ending .desktop-icon {
    color: #1a2a3a;
}
body.post-ending .desktop-icon:hover {
    background: rgba(255, 255, 255, 0.5);
}
body.post-ending .desktop-icon.selected {
    background: rgba(74, 143, 200, 0.2);
    outline: 1px solid rgba(74, 143, 200, 0.5);
}
body.post-ending .desktop-icon .icon-label {
    color: #1a2a3a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.75);
}

/* ========== 开始菜单：深灰青蓝毛玻璃 ========== */
body.post-ending .start-menu {
    background: linear-gradient(
        160deg,
        rgba(72, 92, 104, 0.72) 0%,
        rgba(58, 76, 88, 0.78) 100%
    );
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 10px 40px rgba(20, 40, 55, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

body.post-ending .start-menu-item {
    color: #ecf2f7;
}
body.post-ending .start-menu-item svg {
    color: #b8c6d2;
}
body.post-ending .start-menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
}
body.post-ending .start-menu-item:hover svg {
    color: #ffffff;
}

body.post-ending .start-menu-divider {
    background: rgba(255, 255, 255, 0.14);
}

/* ========== 通知卡片：深灰青蓝毛玻璃 ========== */
body.post-ending .notice-card {
    background: linear-gradient(
        135deg,
        rgba(78, 98, 110, 0.72) 0%,
        rgba(62, 82, 94, 0.78) 100%
    );
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 24px rgba(20, 40, 55, 0.4),
        0 0 24px rgba(100, 140, 180, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

body.post-ending .notice-title {
    color: #ecf2f7;
}
body.post-ending .notice-subtitle {
    color: #c0ccd6;
}
body.post-ending .notice-preview {
    color: #9aa8b4;
}
body.post-ending .notice-icon {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.15);
}
body.post-ending .notice-close {
    background: rgba(255, 255, 255, 0.12);
    color: #c0ccd6;
}
body.post-ending .notice-close:hover {
    background: rgba(255, 95, 87, 0.28);
    color: #ffffff;
}

/* ========== 通知中心面板：深灰青蓝毛玻璃 ========== */
body.post-ending .notice-panel {
    background: linear-gradient(
        160deg,
        rgba(72, 92, 104, 0.74) 0%,
        rgba(58, 76, 88, 0.8) 100%
    );
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 10px 40px rgba(20, 40, 55, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

body.post-ending .notice-panel-header {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 60%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.post-ending .notice-panel-title {
    color: #ecf2f7;
}

body.post-ending .notice-panel-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.post-ending .notice-panel-item:hover {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 80%
    );
}

body.post-ending .notice-panel-item-title {
    color: #ecf2f7;
}
body.post-ending .notice-panel-item-subtitle {
    color: #c0ccd6;
}
body.post-ending .notice-panel-item-preview {
    color: #9aa8b4;
}
body.post-ending .notice-panel-item-time {
    color: #9aa8b4;
}
body.post-ending .notice-panel-icon {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.post-ending .notice-panel-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}

/* ========== 备忘录：柔和阴影，图标无阴影 ========== */
body.post-ending .notebook {
    box-shadow:
        0 0 0 1px rgba(150, 120, 60, 0.1),
        0 2px 6px rgba(80, 70, 50, 0.08),
        0 8px 20px rgba(80, 70, 50, 0.1);
}

body.post-ending .notebook-icon-emoji {
    filter: none;
}

body.post-ending .notebook-icon-label {
    text-shadow: none;
}