/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 桌面 */
.win98-desktop {
    background-color: #008080; /* Win98经典 teal 蓝色 */
    font-family: "Microsoft Sans Serif", Tahoma, Arial, sans-serif;
    font-size: 11px;
    height: 100vh;
    overflow: hidden;
    position: relative;
    user-select: none;
}

/* 桌面图标 */
.desktop-icon {
    position: absolute;
    width: 80px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 1px black;
    cursor: pointer;
    padding: 4px;
}

.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.desktop-icon img {
    display: block;
    margin: 0 auto 4px auto;
    image-rendering: pixelated;
}

/* 任务栏 */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background-color: #c3c3c3;
    border-top: 2px solid #dfdfdf;
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 1000;
}

.start-button {
    background-color: #c3c3c3;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    padding: 2px 8px;
    font-weight: bold;
    height: 22px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.start-button:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 2px;
    margin: 0 8px;
}

.taskbar-item {
    background-color: #c3c3c3;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    padding: 2px 12px;
    min-width: 120px;
    cursor: pointer;
}

.taskbar-item.active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #c3c3c3;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 2px 6px;
    height: 22px;
}

/* 开始菜单 */
.start-menu {
    position: fixed;
    bottom: 30px;
    left: 4px;
    width: 200px;
    background-color: #c3c3c3;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    display: none;
    z-index: 1001;
}

.start-menu-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 4px 8px;
    font-weight: bold;
}

.start-menu-item {
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.start-menu-item:hover {
    background-color: #000080;
    color: white;
}

.start-menu-separator {
    height: 2px;
    background-color: #808080;
    margin: 4px 0;
    border-top: 1px solid #dfdfdf;
}

/* 窗口样式（保持之前的但添加z-index支持） */
.win98-window {
    position: absolute;
    background-color: #c3c3c3;
    border: 2px solid;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    border-right-color: #808080;
    border-bottom-color: #808080;
    min-width: 300px;
    min-height: 200px;
    display: none;
}

.win98-window.active {
    display: block;
    z-index: 100;
}

.win98-window.maximized {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 30px;
    width: auto !important;
    height: auto !important;
}

/* 窗口内容样式保持不变，但确保有这些类 */
.title-bar, .menu-bar, .window-content, .status-bar {
    /* 保持之前提供的样式 */
}