:root {
    /* 主色调 */
    --primary: #0078d4;
    --primary-dark: #005a9e;
    --primary-second: #4a6cf7;
    --primary-second-dark: #3a5ae0;
    --primary-light: #e8efff;

    /* 辅色 */
    --secondary: #6c63ff;
    --secondary-light: #f0efff;
    --accent: #00b894;
    --accent-light: #e0f8f3;

    /* 中性色 */
    --dark: #1e2a3a;
    --light: #f8f9fa;
    --light-surface: #ffffff;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --gray-dark: #495057;

    /* 状态色 */
    --success: #10b981;
    --success-light: #e0f7f0;
    --warning: #f59e0b;
    --warning-light: #fef3e2;
    --error: #ef4444;
    --error-light: #fee7e7;

    /* 渐变与阴影 */
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* 间距 */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
    overscroll-behavior: none;
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    background: var(--light);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-3);
    flex: 1;
}

/* 顶部导航栏 */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: var(--space-2) 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2);
}

.header-left,
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    width: 230px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: 10px;
}

.brand h1,
.workspace {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    color: white;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
    line-height: 1;
}

.brand h1:hover,
.workspace:hover {
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-subtitle {
    display: flex;
    flex-direction: row;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0 10px;
    min-width: 200px;
    align-items: center;
    justify-content: center;
}

.add-btn {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-right: auto;
    background-color: rgba(114, 257, 120, 0.3);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    font-size: 24px;
}

.logo-icon i {
    color: var(--primary-light);
}

.menu-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* 用户信息 */
.user-info {
    width: 220px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    padding: 0 var(--space-3) 0 0;
    border-radius: var(--radius-md);
    transition: background-color 0.3s;
}

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

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-2);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-name-container {
    display: flex;
    align-items: center;
    width: 160px;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.user-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    height: 20px;
    margin-left: auto;
    margin-right: 2px;
    width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.user-info.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) 0;
    z-index: 1001;
    display: none;
    min-width: 180px;
    margin-top: var(--space-1);
}

.user-dropdown.active {
    display: block;
}

.dropdown-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--light);
}

.dropdown-item i {
    margin-right: var(--space-2);
    width: 20px;
    text-align: center;
}

/* 侧边栏 */
.body-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
    width: 240px;
    background-color: white;
    border-right: 1px solid #e1e1e1;
    padding: 0;
}

.nav-item {
    padding: 14px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    height: 60px;
}

.nav-item:hover {
    background-color: #f0f7ff;
    color: #0078d4;
}

.nav-item.active {
    background-color: #e6f2ff;
    color: #0078d4;
    border-left-color: #0078d4;
    font-weight: 500;
}

/* 二级菜单 */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu.expanded {
    max-height: 200px;
}

.submenu-item {
    padding: 10px 20px 10px 50px;
    display: flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background-color: #f0f7ff;
    color: #0078d4;
}

.submenu-item i {
    width: 20px;
    font-size: 0.9rem;
    margin-right: 8px;
}

.submenu-item.active {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-item.has-submenu::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item.has-submenu.expanded::after {
    transform: rotate(180deg);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 16px 12px;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--dark);
    border-bottom: 1.5px solid #edebe9;
    height: 80px;
}

.sidebar-title-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.sidebar-actions {
    display: flex;
    align-items: center;
    margin: auto 0px auto 10px;
}

.sidebar-title-container .section-title {
    margin-bottom: 4px;
    line-height: 1.2;
}

.sidebar-title-container .section-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.3;
    margin-top: 2px;
}

/* 侧边栏切换按钮 */
.sidebar-toggle-btn {
    width: 32px;
    height: 48px;
    border: none;
    border-radius: 4px;
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(0, 120, 212, 0.2);
    transform: scale(1.1);
}

.sidebar-toggle-btn i {
    font-size: 16px;
}

/* 窄边模式 */
.sidebar.narrow {
    width: 70px;
}

.sidebar.narrow .section-title,
.sidebar.narrow .section-subtitle {
    visibility: hidden;
}

.sidebar.narrow .nav-item {
    padding: 14px 20px;
    justify-content: center;
}

.sidebar.narrow .nav-item span {
    display: none;
}

.sidebar.narrow .nav-item.has-submenu::after {
    display: none;
}

.sidebar.narrow .submenu {
    position: fixed;
    left: 70px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 1001;
}

.sidebar.narrow .submenu.expanded {
    max-height: none;
}

.sidebar.narrow .submenu-item {
    padding: 10px 16px;
    white-space: nowrap;
}

.sidebar.narrow .sidebar-toggle-btn {
    margin: 0 auto;
}

.sidebar.narrow .sidebar-toggle-btn .fa-chevron-left {
    transform: rotate(180deg);
}

.sidebar.narrow .sidebar-toggle-btn .fa-chevron-right {
    transform: rotate(0deg);
}

.sidebar.narrow .nav-item.has-submenu {
    position: relative;
}

.sidebar.narrow .nav-item.has-submenu::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid var(--gray);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* 状态栏 */
.status-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-1) var(--space-2);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-message {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    margin: var(--space-1) 0;
    text-align: center;
    display: none;
    font-size: 1.0rem;
}

.status-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.status-info {
    flex: 1;
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary);
    border: 1px solid rgba(74, 108, 247, 0.2);
    padding: 0 16px;
}

.status-info .status-icon {
    background-color: var(--primary-light);
    color: var(--primary);
}

.status-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-success .status-icon {
    background-color: var(--success-light);
    color: var(--success);
}

.status-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.status-warning .status-icon {
    background-color: var(--warning-light);
    color: var(--warning);
}

.status-title {
    font-size: 0.90rem;
    font-weight: 450;
    color: var(--dark);
    margin-bottom: 0;
}

.status-description {
    font-size: 0.80rem;
    color: var(--gray);
}

.status-actions {
    display: flex;
    gap: var(--space-2);
}

/* 功能区 */
.section {
    display: none;
}

.section.active {
    display: block;
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-6) var(--space-5) var(--space-6);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
}

#storagesSection {
    display: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    overflow: hidden;
}

.section-subtitle {
    color: var(--gray);
    font-size: 0.90rem;
    margin-top: var(--space-2);
    overflow: hidden;
}

.section-actions {
    display: flex;
    gap: var(--space-3);
}

/* 搜索框 */
.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* 网格与卡片 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-5);
}

.project-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-4);
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: var(--space-4);
}

.desktop-icon {
    background-color: var(--primary-light);
    color: var(--primary);
}

.storage-icon {
    background-color: var(--accent-light);
    color: var(--accent);
}

.project-info h3 {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-1);
}

.project-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

.project-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.project-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.stat-value {
    font-weight: 600;
    color: var(--dark);
}

/* 应用项 */
.app-item {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-3);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--gray-light);
}

.app-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.app-item:hover .app-icon {
    transform: scale(1.1);
}

.app-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
}

.app-description {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: var(--space-1);
}

.app-more {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
}

.app-more:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.app-more::after {
    content: "···";
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--gray);
}

/* 按钮 */
.btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

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

.btn-primary:hover {
    background: var(--primary-second);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(74, 108, 247, 0.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 0.8rem;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(74, 108, 247, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

/* 模态窗口 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-light);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 600;
}

.modal-body {
    padding: 0 24px 24px;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #edebe9;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--dark);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

/* 更多菜单 */
.more-menu {
    position: fixed;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) 0;
    z-index: 1001;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s;
}

.more-menu.show {
    opacity: 1;
    visibility: visible;
}

.more-menu.show.left-align {
    transform-origin: top left;
}

.more-menu.show.right-align {
    transform-origin: top right;
}

.more-menu-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--dark);
    transition: background-color 0.2s;
}

.more-menu-item:hover {
    background-color: var(--light);
}

/* 空间选择器 */
.space-selector {
    position: relative;
    min-width: 240px;
}

.space-selector-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    color: rgb(240, 240, 240);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.space-selector-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.current-space {
    font-weight: 500;
    font-size: 14px;
    width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.space-dropdown {
    position: absolute;
    font-size: 85%;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #edebe9;
    border-radius: 4px;
    box-shadow: 0 6.4px 14.4px rgba(0, 0, 0, 0.13), 0 1.2px 3.6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    margin-top: 4px;
}

.space-dropdown.active {
    display: block;
}

.space-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f2f1;
}

.space-option:hover {
    background-color: #f3f2f1;
}

.space-option.active {
    background-color: #e1f0ff;
    color: #0078d4;
}

.add-space-option {
    padding: 10px 12px;
    cursor: pointer;
    color: var(--primary);
    border-top: 1px solid #edebe9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-space-option:hover {
    background-color: #f3f2f1;
}

/* 全屏按钮 */
.fullscreen-btn {
    width: 40px;
    height: 40px;
    padding: 12px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.fullscreen-btn i {
    font-size: 1.1rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: var(--space-3);
    color: var(--gray-light);
}

.empty-state p {
    font-size: 1.1rem;
}

/* 页脚 */
footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: var(--space-6) 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    margin: 20px;
    font-size: 13px;
    opacity: 0.8;
}

.copyright a {
    color: inherit;
    text-decoration: none;
}

.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .body-container {
        flex-direction: column;
    }

    .sidebar {
        position: inherit;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e1e1e1;
    }

    .sidebar.narrow {
        width: 100%;
        height: auto;
    }

    .sidebar.narrow .nav-item span {
        display: inline;
    }

    .sidebar.narrow .sidebar-toggle-btn {
        display: none;
    }

    .sidebar.narrow .section-title,
    .sidebar.narrow .section-subtitle {
        visibility: visible;
    }

    .nav-list {
        display: flex;
        flex-wrap: wrap;
        overflow-x: auto;
    }

    .nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: #0078d4;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .search-container {
        width: 100%;
    }

    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .user-info {
        align-self: flex-end;
        margin-top: var(--space-3);
    }

    .container {
        padding: 0 var(--space-4);
    }

    .section,
    .status-bar {
        padding: var(--space-4);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .section-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 500px) {
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* 工具类 */
.hidden {
    display: none;
}