/* 基础样式 */
:root {
    --win11-bg: #f3f3f3;
    --win11-accent: #0078d7;
    --win11-text: #323130;
    --win11-light-text: #605e5c;
    --win11-border: #e5e5e5;
    --win11-hover: #f5f5f5;
    --win11-active: #e5e5e5;
    --win11-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.win11-style {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--win11-bg);
    color: var(--win11-text);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

/* 任务栏样式 */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background-color: rgba(243, 243, 243, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -1px 0 0 var(--win11-border);
    z-index: 1000;
}

.start-menu {
    display: flex;
    align-items: center;
}

.start-button {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: none;
    background: none;
    color: var(--win11-text);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.start-button:hover {
    background-color: var(--win11-hover);
}

.search-box {
    margin-left: 10px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--win11-border);
}

.search-box i {
    color: var(--win11-light-text);
    margin-right: 8px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 150px;
}

.taskbar-icons {
    display: flex;
    height: 100%;
}

.taskbar-icon {
    height: 100%;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    position: relative;
}

.taskbar-icon i {
    font-size: 16px;
    margin-bottom: 2px;
}

.taskbar-icon:hover {
    background-color: var(--win11-hover);
}

.taskbar-icon.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background-color: var(--win11-accent);
}

.system-tray {
    display: flex;
    align-items: center;
}

.tray-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.tray-icon:hover {
    background-color: var(--win11-hover);
}

/* 桌面和窗口样式 */
.desktop {
    height: calc(100vh - 48px);
    padding: 20px;
    overflow: auto;
}

.window {
    width: 800px;
    min-height: 500px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--win11-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

.window.active {
    z-index: 100;
}

.title-bar {
    height: 32px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid var(--win11-border);
}

.title {
    font-size: 12px;
    font-weight: 600;
}

.window-controls {
    display: flex;
}

.window-controls button {
    width: 46px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--win11-text);
}

.window-controls button:hover {
    background-color: var(--win11-hover);
}

.window-controls .close:hover {
    background-color: #e81123;
    color: white;
}

.window-content {
    flex: 1;
    padding: 20px;
    overflow: auto;
}

/* Win11风格按钮 */
.win11-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    background-color: var(--win11-hover);
    color: var(--win11-text);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.win11-btn i {
    margin-right: 8px;
}

.win11-btn:hover {
    background-color: var(--win11-active);
}

.win11-btn.primary {
    background-color: var(--win11-accent);
    color: white;
}

.win11-btn.primary:hover {
    background-color: #106ebe;
}

.action-buttons {
    margin-top: 20px;
}