/* 婳阳WebOS系统 - 增强版样式文件 */

/* 基础重置与变量 */
:root {
    /* 主色调 */
    --primary-color: #5d78ff;
    --primary-light: #8fa3ff;
    --primary-dark: #4a5fcc;
    --secondary-color: #ff7b9c;
    --accent-color: #6bcd9f;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --spreadsheet-color: #4CAF50;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* 文本色 */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-light: #f8f9fa;
    
    /* 边框色 */
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --border-dark: #ced4da;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.25);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* 过渡 */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* 字体 */
    --font-sans: 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Roboto Mono', 'Consolas', monospace;
    
    /* 布局 */
    --header-height: 40px;
    --taskbar-height: 50px;
    --sidebar-width: 240px;
    --window-header-height: 40px;
    
    /* Z-index层级 */
    --z-desktop: 1;
    --z-window: 10;
    --z-menu: 100;
    --z-modal: 1000;
    --z-notification: 10000;
    --z-spreadsheet: 100;
}

/* 深色主题变量 */
.dark-theme {
    --bg-primary: #1a1d21;
    --bg-secondary: #212529;
    --bg-tertiary: #2d333b;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;
    --border-color: #495057;
    --border-light: #343a40;
    --border-dark: #6c757d;
    --spreadsheet-color: #81C784;
}

/* 字体大小 */
.font-small {
    --font-size-base: 12px;
    --font-size-sm: 10px;
    --font-size-lg: 14px;
    --font-size-xl: 16px;
}

.font-medium {
    --font-size-base: 14px;
    --font-size-sm: 12px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
}

.font-large {
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
}

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

html {
    font-size: var(--font-size-base);
    height: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* 背景壁纸 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: background-image var(--transition-normal);
}

body[data-wallpaper="default"]::before {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

body[data-wallpaper="nature"]::before {
    background-image: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

body[data-wallpaper="abstract"]::before {
    background-image: url('https://images.unsplash.com/photo-1550684376-efcbd6e3f031?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

body[data-wallpaper="gradient"]::before {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

body[data-wallpaper="dark"]::before {
    background: linear-gradient(135deg, #2c3e50 0%, #4a235a 100%);
}

/* 动画 */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 登录界面 */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(0, 0, 0, 0.3);
    animation: fadeIn var(--transition-normal);
}

.login-box {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.login-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
}

.login-header p {
    opacity: 0.9;
    font-weight: 300;
    font-size: var(--font-size-sm);
    position: relative;
}

.login-form {
    padding: 40px 30px 30px;
}

.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(93, 120, 255, 0.2);
    background: var(--bg-primary);
}

.input-group input:focus + .input-icon {
    color: var(--primary-color);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 120, 255, 0.3);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    text-align: center;
    font-size: var(--font-size-sm);
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.login-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.system-info {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: var(--font-size-sm);
    opacity: 0.9;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

/* 桌面环境 */
.desktop {
    height: 100vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.1);
}

/* 顶部菜单栏 */
.menu-bar {
    background: rgba(255, 255, 255, 0.95);
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
    z-index: var(--z-menu);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .menu-bar {
    background: rgba(33, 37, 41, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-left, .menu-right {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 5px;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.logo:hover {
    background: rgba(93, 120, 255, 0.1);
}

.logo i {
    font-size: 22px;
}

.menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    gap: 8px;
    border-radius: var(--radius-sm);
}

.menu-item:hover {
    background: rgba(93, 120, 255, 0.1);
    color: var(--primary-color);
}

.menu-item.active {
    background: rgba(93, 120, 255, 0.15);
    color: var(--primary-color);
}

.menu-item .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: var(--z-modal);
    padding: 8px 0;
    border: 1px solid var(--border-color);
}

.menu-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    gap: 12px;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: rgba(93, 120, 255, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.separator {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

/* 系统状态 */
.system-status {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 20px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.05);
}

.dark-theme .status-item {
    background: rgba(255, 255, 255, 0.05);
}

.time-display {
    font-family: var(--font-mono);
    font-weight: 600;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    background: rgba(93, 120, 255, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.user-info {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    gap: 10px;
}

.user-info:hover {
    background: rgba(93, 120, 255, 0.1);
}

.user-info i {
    font-size: 24px;
    color: var(--primary-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

/* 桌面图标区域 */
.desktop-icons {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 20px;
    user-select: none;
}

.desktop-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: var(--radius-md);
    padding: 10px;
    z-index: var(--z-desktop);
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
}

.desktop-icon.selected {
    background: rgba(93, 120, 255, 0.3);
    outline: 2px solid var(--primary-color);
}

.desktop-icon.dragging {
    opacity: 0.8;
    z-index: var(--z-window);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.desktop-icon i {
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.desktop-icon span {
    color: white;
    text-align: center;
    font-size: var(--font-size-sm);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    word-break: break-word;
    max-width: 100%;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.3);
}

/* 右键菜单 */
.context-menu {
    position: fixed;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: var(--z-modal);
    display: none;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.context-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.context-item:hover {
    background: rgba(93, 120, 255, 0.1);
    color: var(--primary-color);
}

.context-item i {
    width: 20px;
    color: var(--text-secondary);
}

.context-item:hover i {
    color: var(--primary-color);
}

/* 任务栏 */
.taskbar {
    height: var(--taskbar-height);
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: var(--z-menu);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .taskbar {
    background: rgba(33, 37, 41, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.taskbar-left, .taskbar-center, .taskbar-right {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 10px;
}

.start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 20px;
}

.start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(93, 120, 255, 0.3);
}

.quick-launch {
    display: flex;
    gap: 8px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid var(--border-light);
}

.quick-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(93, 120, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--primary-color);
    font-size: 16px;
}

.quick-icon:hover {
    background: rgba(93, 120, 255, 0.2);
    transform: translateY(-2px);
}

.running-apps {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.running-app {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(93, 120, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 8px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    max-width: 200px;
    min-width: 100px;
}

.running-app:hover {
    background: rgba(93, 120, 255, 0.2);
}

.running-app.active {
    background: rgba(93, 120, 255, 0.25);
    border-left: 3px solid var(--primary-color);
}

.running-app i {
    color: var(--primary-color);
    font-size: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    width: 400px;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 120, 255, 0.2);
    background: var(--bg-primary);
}

.search-box i {
    color: var(--text-muted);
    margin-right: 10px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.system-tray {
    display: flex;
    gap: 12px;
    margin-right: 20px;
}

.tray-icon {
    position: relative;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.tray-icon:hover {
    color: var(--primary-color);
    background: rgba(93, 120, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.datetime {
    text-align: right;
    margin-right: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.datetime:hover {
    background: rgba(93, 120, 255, 0.1);
}

.date {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.time {
    font-size: var(--font-size-lg);
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--primary-color);
}

.show-desktop {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(93, 120, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--primary-color);
    font-size: 16px;
}

.show-desktop:hover {
    background: rgba(93, 120, 255, 0.2);
    transform: translateY(-2px);
}

/* 开始菜单 */
.start-menu {
    position: fixed;
    bottom: calc(var(--taskbar-height) + 10px);
    left: 15px;
    width: 520px;
    height: 650px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-menu);
    display: none;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp var(--transition-normal);
}

.dark-theme .start-menu {
    background: rgba(33, 37, 41, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.start-menu-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile i {
    font-size: 60px;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.user-details .user-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.user-details .user-status {
    opacity: 0.9;
    font-size: var(--font-size-sm);
}

.start-menu-apps {
    padding: 20px;
    height: calc(100% - 180px);
    overflow-y: auto;
}

.app-section {
    margin-bottom: 30px;
}

.app-section h3 {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid transparent;
}

.app-item:hover {
    background: rgba(93, 120, 255, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.app-item i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.app-item span {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.start-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .start-menu-footer {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.power-options {
    display: flex;
    justify-content: space-around;
}

.power-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 10px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.power-option:hover {
    background: rgba(93, 120, 255, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.power-option i {
    font-size: 24px;
    margin-bottom: 5px;
}

.power-option span {
    font-size: var(--font-size-sm);
}

/* 通知中心 */
.notification-center {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 15px;
    width: 380px;
    height: 500px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-menu);
    display: none;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInDown var(--transition-normal);
}

.dark-theme .notification-center {
    background: rgba(33, 37, 41, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.notification-actions button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    font-size: var(--font-size-sm);
}

.notification-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-list {
    padding: 20px;
    height: calc(100% - 70px);
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    background: var(--bg-secondary);
    border-left: 4px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.notification-item.unread {
    border-left-color: var(--primary-color);
    background: rgba(93, 120, 255, 0.1);
}

.notification-icon {
    margin-right: 15px;
    font-size: 20px;
    display: flex;
    align-items: flex-start;
}

.notification-icon.success {
    color: var(--accent-color);
}

.notification-icon.info {
    color: var(--primary-color);
}

.notification-icon.warning {
    color: var(--warning-color);
}

.notification-icon.error {
    color: var(--danger-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.notification-message {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* 应用窗口 */
.window {
    position: absolute;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 600px;
    min-height: 400px;
    z-index: var(--z-window);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    resize: both;
    overflow: auto;
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-fast);
}

.window:hover {
    box-shadow: var(--shadow-xl);
}

.window.maximized {
    width: 100% !important;
    height: calc(100vh - var(--taskbar-height) - var(--header-height)) !important;
    top: var(--header-height) !important;
    left: 0 !important;
    border-radius: 0;
    resize: none;
}

.window.minimized {
    display: none;
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: var(--window-header-height);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: move;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: 10px;
    font-size: var(--font-size-base);
}

.window-title i {
    font-size: 16px;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-control {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    color: white;
}

.window-control:hover {
    background: rgba(255, 255, 255, 0.2);
}

.window-control.close:hover {
    background: var(--danger-color);
}

.window-content {
    flex: 1;
    padding: 0;
    overflow: auto;
    background: var(--bg-secondary);
}

.window-content .app-content {
    height: 100%;
}

/* 模态窗口 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: calc(var(--z-modal) - 1);
    display: none;
    backdrop-filter: blur(5px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    z-index: var(--z-modal);
    display: none;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-size-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(93, 120, 255, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-success {
    background: var(--accent-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-spreadsheet {
    background: var(--spreadsheet-color);
    color: white;
}

.btn-spreadsheet:hover {
    background: #3d8b40;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-lg);
}

/* 应用特定样式 */
.file-manager {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.file-toolbar {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.file-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}

.file-item:hover {
    background: rgba(93, 120, 255, 0.1);
}

.file-item.selected {
    background: rgba(93, 120, 255, 0.2);
    border-left: 3px solid var(--primary-color);
}

.file-item i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.file-name {
    flex: 1;
    font-weight: 500;
}

.file-size {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-right: 20px;
    font-family: var(--font-mono);
}

.file-date {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-right: 20px;
}

.file-actions {
    opacity: 0;
    display: flex;
    gap: 8px;
    transition: opacity var(--transition-fast);
}

.file-item:hover .file-actions {
    opacity: 1;
}

.file-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.file-action:hover {
    color: var(--primary-color);
    background: rgba(93, 120, 255, 0.1);
}

/* 文本编辑器 */
.text-editor {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

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

#editor {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: var(--font-size-base);
    line-height: 1.6;
    padding: 20px;
    resize: none;
    outline: none;
}

#editor:focus {
    outline: none;
}

/* 电子表格应用 */
.spreadsheet-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.spreadsheet-header {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 50px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.spreadsheet-name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spreadsheet-name i {
    color: var(--spreadsheet-color);
}

.spreadsheet-name input {
    border: none;
    background: transparent;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    width: 300px;
}

.spreadsheet-name input:focus {
    background: var(--bg-secondary);
    outline: none;
}

.spreadsheet-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 15px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.spreadsheet-toolbar-group {
    display: flex;
    gap: 5px;
    padding-right: 15px;
    border-right: 1px solid var(--border-light);
}

.spreadsheet-toolbar-group:last-child {
    border-right: none;
}

.spreadsheet-content {
    flex: 1;
    overflow: auto;
    position: relative;
}

#spreadsheet {
    width: 100%;
    height: 100%;
    background: white;
}

.dark-theme #spreadsheet {
    background: #2d333b;
}

/* Handsontable自定义样式 */
.handsontable {
    font-size: var(--font-size-base);
    font-family: var(--font-sans);
}

.handsontable th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.handsontable td {
    border-color: var(--border-light);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.handsontable .htRight {
    text-align: right;
}

.handsontable .htCenter {
    text-align: center;
}

.handsontable .htLeft {
    text-align: left;
}

.handsontable .htBold {
    font-weight: bold;
}

.handsontable .htItalic {
    font-style: italic;
}

.handsontable .htUnderline {
    text-decoration: underline;
}

.handsontable .currentRow {
    background-color: rgba(93, 120, 255, 0.1) !important;
}

.handsontable .currentCol {
    background-color: rgba(93, 120, 255, 0.05) !important;
}

.handsontable .area {
    background-color: rgba(93, 120, 255, 0.15) !important;
}

/* 电子表格侧边栏 */
.spreadsheet-sidebar {
    width: 300px;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 15px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.property-item {
    margin-bottom: 15px;
}

.property-item label {
    display: block;
    margin-bottom: 5px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.property-item input,
.property-item select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.property-item input:focus,
.property-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 120, 255, 0.2);
}

.property-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.format-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.format-btn {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.format-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.format-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

/* 公式编辑器 */
.formula-editor {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 40px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}

.formula-label {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.formula-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: var(--font-size-base);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.formula-input:focus {
    outline: none;
    background: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(93, 120, 255, 0.2);
}

.formula-functions {
    display: flex;
    gap: 5px;
}

.formula-btn {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.formula-btn:hover {
    background: var(--spreadsheet-color);
    color: white;
    border-color: var(--spreadsheet-color);
}

/* 表格管理 */
.spreadsheet-manager {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spreadsheet-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.spreadsheet-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-left: 4px solid var(--spreadsheet-color);
}

.spreadsheet-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.spreadsheet-item i {
    margin-right: 15px;
    color: var(--spreadsheet-color);
    font-size: 24px;
}

.spreadsheet-info {
    flex: 1;
}

.spreadsheet-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.spreadsheet-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: var(--text-muted);
}

.spreadsheet-actions {
    opacity: 0;
    display: flex;
    gap: 8px;
    transition: opacity var(--transition-fast);
}

.spreadsheet-item:hover .spreadsheet-actions {
    opacity: 1;
}

.spreadsheet-form {
    padding: 20px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

/* 图表生成器 */
.chart-generator {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.chart-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-preview {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chart-canvas {
    max-width: 100%;
    max-height: 100%;
}

/* 任务管理器 */
.task-manager {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border-left: 4px solid var(--border-color);
    transition: all var(--transition-fast);
}

.task-item:hover {
    transform: translateX(5px);
    background: var(--bg-tertiary);
}

.task-item.completed {
    opacity: 0.7;
    border-left-color: var(--accent-color);
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-checkbox {
    margin-right: 15px;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.task-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.task-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: var(--text-muted);
}

.task-actions {
    opacity: 0;
    display: flex;
    gap: 8px;
    transition: opacity var(--transition-fast);
}

.task-item:hover .task-actions {
    opacity: 1;
}

.task-form {
    padding: 20px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(93, 120, 255, 0.2);
}

/* 设置面板 */
.settings-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.settings-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.settings-tab {
    padding: 15px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.settings-tab:hover {
    color: var(--primary-color);
    background: rgba(93, 120, 255, 0.05);
}

.settings-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-primary);
}

.settings-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 40px;
}

.settings-section h3 {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.settings-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.setting-item .setting-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: 5px;
}

.setting-item select,
.setting-item input[type="text"],
.setting-item input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.wallpaper-preview {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-md);
    margin-top: 10px;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.wallpaper-preview:hover {
    transform: scale(1.02);
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.wallpaper-option {
    height: 100px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.wallpaper-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.wallpaper-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 120, 255, 0.3);
}

/* 系统监控 */
.system-monitor {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.monitor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.stat-card.cpu {
    border-left-color: var(--primary-color);
}

.stat-card.memory {
    border-left-color: var(--accent-color);
}

.stat-card.disk {
    border-left-color: var(--secondary-color);
}

.stat-title {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.stat-progress {
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.cpu .stat-progress-bar {
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
}

.memory .stat-progress-bar {
    background: linear-gradient(to right, var(--accent-color), #5ab58e);
}

.disk .stat-progress-bar {
    background: linear-gradient(to right, var(--secondary-color), #ff7b9c);
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: var(--z-notification);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    display: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    min-width: 300px;
    max-width: 400px;
    z-index: var(--z-notification);
    animation: slideInRight 0.3s ease-out;
    transform: translateX(0);
    border-left: 4px solid;
    border-left-color: var(--primary-color);
}

.notification.success {
    border-left-color: var(--accent-color);
}

.notification.info {
    border-left-color: var(--primary-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification i {
    margin-right: 15px;
    font-size: 24px;
    flex-shrink: 0;
}

.notification.success i {
    color: var(--accent-color);
}

.notification.info i {
    color: var(--primary-color);
}

.notification.warning i {
    color: var(--warning-color);
}

.notification.error i {
    color: var(--danger-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.notification-message {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-close {
    margin-left: 15px;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: 16px;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
}


/* 计算器按钮激活状态 */
.calc-btn.active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 确保计算器显示区域正确 */
.calc-display {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    word-break: break-all;
    overflow: hidden;
}

.calc-expression {
    font-size: 14px;
    color: var(--text-muted);
    min-height: 20px;
    opacity: 0.8;
}

.calc-result {
    font-size: 32px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}






/* 响应式设计 */
@media (max-width: 1200px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .chart-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .menu-item span:not(.logo span) {
        display: none;
    }
    
    .menu-item i {
        margin-right: 0;
    }
    
    .search-box {
        width: 300px;
    }
    
    .start-menu {
        width: 400px;
        height: 500px;
    }
    
    .settings-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-icons {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }
    
    .menu-bar {
        padding: 0 10px;
    }
    
    .system-status {
        display: none;
    }
    
    .search-box {
        width: 200px;
    }
    
    .start-menu {
        width: 320px;
        height: 450px;
    }
    
    .notification-center {
        width: 320px;
        height: 400px;
    }
    
    .spreadsheet-sidebar {
        display: none;
    }
    
    .monitor-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .login-box {
        max-width: 320px;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-form {
        padding: 30px 20px 20px;
    }
    
    .menu-bar {
        padding: 0 5px;
    }
    
    .logo span {
        display: none;
    }
    
    .search-box {
        display: none;
    }
    
    .start-menu {
        width: 280px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .window {
        min-width: 300px;
        min-height: 250px;
    }
    
    .spreadsheet-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

/* 打印样式 */
@media print {
    .menu-bar,
    .taskbar,
    .start-menu,
    .notification-center,
    .window-controls,
    .file-toolbar,
    .editor-toolbar,
    .spreadsheet-header,
    .spreadsheet-toolbar,
    .formula-editor {
        display: none !important;
    }
    
    .window {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .window-content {
        height: auto !important;
        overflow: visible !important;
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #ff00ff;
        --accent-color: #00ff00;
        --spreadsheet-color: #008000;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
    
    .dark-theme {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-color: #ffffff;
    }
}