:root {
    --primary: #6366f1; /* 靛蓝色作为主色调 */
    --secondary: #f472b6; /* 粉色作为辅助色 */
    --accent: #10b981; /* 绿色作为强调色 */
    --dark: #1e293b; /* 深色文本 */
    --light: #f8fafc; /* 浅色背景 */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f9fafb;
    color: #334155;
}

.navbar {
    background-color: white;
    z-index: 1000;
}

.sidebar {
    background-color: white;
    transition: all 0.3s ease;
    overflow-y: auto;
    z-index: 900;
}

.main-content {
    transition: margin 0.3s ease;
}

.nav-item {
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: #f3f4f6;
}

.nav-item.active {
    background-color: #eff6ff;
    border-left: 4px solid var(--primary);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #4b5563;
    text-decoration: none;
}

.nav-icon {
    margin-right: 12px;
    width: 24px;
    color: var(--primary);
}

.nav-text {
    font-weight: 500;
}

.app-iframe {
    border: none;
    border-radius: 0; /* 移除圆角 */
    transition: all 0.3s ease;
    width: 100%;
    height: calc(100vh - 64px); /* 调整高度，去除多余边距 */
    background-color: #fff; /* 设置白色背景，消除色差 */
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: #4b5563;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 64px;
        left: 0;
        height: calc(100vh - 64px);
        width: 260px;
        z-index: 1100;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .app-iframe {
        height: calc(100vh - 64px); /* 移动端高度统一 */
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* 自定义工具类 */
.sidebar-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}