/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    user-select: none;
}

/* 桌面容器 */
#desktop {
    position: relative;
    width: 100vw;
    height: calc(100vh - 40px);
    overflow: hidden;
    background: transparent;
}

/* 背景叠加层 */
#background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    z-index: -1;
}

/* 桌面图标 */
.desktop-icon {
    width: 80px;
    height: 80px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px black;
    margin: 30px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
}

.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.desktop-icon.selected {
    background-color: rgba(0, 123, 255, 0.3);
    border: 2px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

/* 重命名输入框样式 */
.rename-input {
    position: absolute;
    z-index: 100;
    background-color: white;
    border: 1px solid #007bff;
    border-radius: 4px;
    padding: 2px 4px;
    text-align: center;
    font-size: 12px;
    color: black;
}

.desktop-icon i {
    font-size: 40px;
    margin-bottom: 5px;
}

/* SVG图标样式 */
.desktop-icon .svg-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 5px;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5));
}

.desktop-icon span {
    font-size: 12px;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
    max-height: 2.4em;
}

/* 任务栏 */
#taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #333; /* Slightly more transparent */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle top border */
    color: white;
    display: flex;
    align-items: center;
    padding: 0; /* Remove padding, handle it in children */
    box-sizing: border-box;
    z-index: 1000; /* 确保在最上层 */
}

#start-menu-button, #search-menu-button {
    background-color: transparent;
    color: white;
    border: none;
    height: 100%; /* Fill taskbar height */
    width: 45px; /* Fixed width */
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 0; /* No rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
#start-menu-button:hover, #search-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
#search-menu-button {
    margin-left: 2px;
}
#start-menu-button i {
    font-size: 20px; /* Adjust icon size */
}

/* 搜索按钮 */
#search-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 5px;
}

#search-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#taskbar-apps {
    display: flex;
    height: 100%;
    padding-left: 5px;
}
.taskbar-app-icon {
    padding: 0 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-right: 1px solid #555;
    height: 100%;
    color: white;
    font-size: 12px;
    max-width: 150px;
    gap: 5px;
    transition: all 0.2s ease;
}
.taskbar-app-icon:hover {
    background-color: rgba(255,255,255,0.2);
}
.taskbar-app-icon.active {
    background-color: rgba(255,255,255,0.3);
}

.taskbar-app-icon i {
    font-size: 16px;
}

.taskbar-app-icon img.taskbar-svg-icon {
    width: 16px;
    height: 16px;
}

.taskbar-app-icon span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 任务栏右侧 */
#taskbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

#taskbar-system-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 5px; /* 避免时钟紧贴边缘 */
}

#taskbar-network-icon {
    color: white;
    font-size: 16px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#taskbar-network-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#clock {
    color: white;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
    padding: 0 10px; /* Ensure padding is here */
    border-radius: 6px;
    cursor: pointer; /* Make it look clickable */
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 60px;
}

#clock:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 应用窗口 */
.app-window {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    overflow: hidden;
    min-width: 500px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all 0.3s ease;
}

.title-bar {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
    height: 50px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.title-bar-text {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.title-bar-text i {
    font-size: 14px;
}

.title-bar-text img.window-icon {
    width: 16px;
    height: 16px;
}

.title-bar-controls {
    display: flex;
    gap: 6px;
}

.title-bar-controls button {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.title-bar-controls button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.title-bar-controls .close:hover {
    background: #e74c3c;
    color: white;
}

.title-bar-controls .minimize:hover {
    background: #f39c12;
    color: white;
}

.title-bar-controls .maximize:hover {
    background: #27ae60;
    color: white;
}

.close-btn:hover {
    background-color: #e74c3c !important;
}

.window-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.window-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* iframe调整大小时的遮罩层 */
.iframe-resize-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1000;
    pointer-events: auto;
}

/* 开始菜单 */
#start-menu {
    position: absolute;
    bottom: 50px;
    left: 10px;
    width: 600px;
    height: 500px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    overflow: hidden;
    z-index: 1000;
    color: white;
}

.start-menu-sidebar {
    width: 120px;
    background-color: rgba(0,0,0,0.2);
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.start-menu-user {
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.start-menu-user i {
    font-size: 24px;
    margin-right: 10px;
}
.start-menu-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}
.start-menu-sidebar ul li {
    padding: 10px 5px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
}
.start-menu-sidebar ul li:hover {
    background-color: rgba(255,255,255,0.1);
}
.start-menu-sidebar ul li i {
    margin-right: 8px;
    font-size: 16px;
}
.start-menu-sidebar hr {
    border-color: #555;
}
.start-menu-power {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}
.start-menu-power button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}
.start-menu-power button:hover {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.start-menu-main {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}
.start-menu-main h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #ccc;
}
#start-menu-apps-list {
    /* 应用列表项样式 */
}
#start-menu-apps-list .app-item-sm {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    cursor: pointer;
    border-radius: 3px;
}
#start-menu-apps-list .app-item-sm:hover {
    background-color: rgba(255,255,255,0.1);
}
#start-menu-apps-list .app-item-sm i {
    margin-right: 10px;
    font-size: 18px;
}

#start-menu.hidden {
    display: none;
}

#start-menu-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#start-menu-username {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

#start-menu-apps {
    padding: 10px;
    max-height: 350px;
    overflow-y: auto;
}

#start-menu-apps-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.app-item-sm {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
}

.app-item-sm:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.app-item-sm i {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
}

.app-item-sm img.menu-svg-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.app-item-sm span {
    font-size: 11px;
    line-height: 1.2;
    max-width: 70px;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 搜索菜单样式 */
#search-menu {
    position: absolute;
    bottom: 50px;
    left: 60px;
    width: 400px;
    height: 500px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.search-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-type-tabs {
    display: flex;
    margin-top: 12px;
    gap: 4px;
}

.search-tab {
    flex: 1;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.search-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.search-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.search-tab.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    z-index: 1;
}

#search-menu.hidden {
    display: none;
}

#search-input-container {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

#search-input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#search-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.search-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-no-results p {
    margin: 0;
    font-size: 14px;
}

#search-apps-list, #search-files-list {
    padding: 0 10px;
}

.search-file-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    position: relative;
}

.search-file-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.search-file-item .file-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 16px;
}

.search-file-item .file-info {
    flex: 1;
    min-width: 0;
}

.search-file-item .file-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-file-item .file-path {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-file-item .file-size {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 8px;
    white-space: nowrap;
}

.search-file-item .context-menu-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 6px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 12px;
}

.search-file-item:hover .context-menu-btn {
    opacity: 1;
}

.search-file-item .context-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

#search-results {
    max-height: 400px;
    overflow-y: auto;
}

#search-apps-list {
    padding: 10px;
}

.search-app-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-decoration: none;
}

.search-app-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.search-app-item img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 4px;
}

.search-app-item .app-info {
    flex: 1;
}

.search-app-item .app-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.search-app-item .app-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.app-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.search-no-results-text {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Date Time Popup */
#date-time-popup {
    position: absolute;
    bottom: 45px; /* Above taskbar */
    right: 5px;
    width: 350px; /* A bit wider */
    background-color: #1f1f1f; /* Darker background like win10 */
    color: white;
    border: 1px solid #555;
    border-radius: 8px; /* Slightly more rounded corners */
    padding: 20px;
    z-index: 1600; /* Above start menu */
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif; /* Windows fonts */
}

.time-section {
    text-align: left;
}

#date-time-popup .current-time-large {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 5px;
}

#date-time-popup .current-date-large {
    font-size: 16px;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 15px;
}

#date-time-popup .popup-divider {
    border: 0;
    border-top: 1px solid #444;
    margin: 15px 0;
}

/* Calendar Styles */
.calendar-section {
    margin-top: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#current-month-year {
    font-size: 18px;
    font-weight: 600;
}

.calendar-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.calendar-nav button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}
.calendar-weekdays span{
    font-weight: normal;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-grid div {
    padding: 6px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    height: 42px;
    transition: background-color 0.2s;
    border: 2px solid transparent; /* For smooth selection transition */
}

.calendar-day:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.calendar-day.other-month {
    color: #666;
}

.calendar-day.other-month:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.calendar-day.today {
    background-color: #0078d4;
    color: white;
}

.calendar-day.selected {
    border-color: #0078d4;
    background-color: transparent;
}

.calendar-day.today.selected {
    background-color: #0078d4;
    border-color: #fff; /* White border on top of blue background */
}

.lunar-date {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

.calendar-day.today .lunar-date {
    color: #ddd;
}

.popup-footer {
    margin-top: 20px;
    text-align: left;
}

.popup-footer a {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 14px;
}

.popup-footer a:hover {
    text-decoration: underline;
}

#date-time-popup.hidden {
    display: none;
}

#popup-time-display {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#popup-current-time {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

#popup-current-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

#calendar-container {
    padding: 15px;
}

#calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#current-month-year {
    font-size: 16px;
    font-weight: 600;
}

#prev-month, #next-month {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#prev-month:hover, #next-month:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 10px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px;
    font-weight: 500;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.calendar-day.today {
    background-color: #007bff;
    color: white;
    font-weight: 600;
}

.calendar-day.other-month {
    color: rgba(255, 255, 255, 0.4);
}

/* 右键菜单 */
#context-menu {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #333;
    z-index: 3000;
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#context-menu.hidden {
    display: none;
}

#context-menu ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

#context-menu li {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#context-menu li:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

#context-menu li.hidden {
    display: none;
}

#context-menu li i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* 加载器 */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader.hidden {
    display: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 桌面通知中心样式 */
.notification-center {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    overflow: hidden;
}

.notification-center.show {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

.notification-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.notification-item-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    flex: 1;
}

.notification-item-time {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

.notification-item-message {
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.notification-empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.notification-empty-text {
    font-size: 14px;
    margin: 0;
}

/* 通知中心图标样式 */
.taskbar-notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.taskbar-notification-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-notification-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4444;
    color: #fff;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    min-width: 12px;
}

.notification-badge.hidden {
    display: none;
}

/* 滚动条样式 */
.notification-content::-webkit-scrollbar {
    width: 6px;
}

.notification-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notification-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.notification-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 保持桌面图标原来大小，不进行响应式调整 */
    
    #start-menu {
        width: 280px;
        left: 5px;
    }
    
    #search-menu {
        width: 350px;
        left: 60px;
    }
    
    #date-time-popup {
        width: 280px;
        right: 5px;
    }
    
    .app-window {
        min-width: 250px;
        min-height: 180px;
    }
    
    #taskbar {
        padding: 0 5px;
    }
    
    .taskbar-app-icon {
        padding: 4px 6px;
        font-size: 11px;
        max-width: 120px;
    }
    
    #clock {
        font-size: 10px;
        min-width: 50px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 选择框样式 */
.desktop-selection-box {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.8);
    background: rgba(0, 123, 255, 0.1);
    pointer-events: none;
    z-index: 100;
}

/* 拖放样式 */
#desktop.drag-over {
    background-color: rgba(0, 123, 255, 0.1);
}

#desktop.drag-over::after {
    content: '拖放文件到此处上传到桌面';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    z-index: 1000;
    pointer-events: none;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}
