/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* 页面布局 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.app-sidebar {
    width: 220px;
    background-color: #2D3748;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    background-color: #1A202C;
    text-align: center;
    border-bottom: 1px solid #4A5568;
}

.sidebar-logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    color: #E2E8F0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background-color: #4A5568;
    border-left-color: #3B82F6;
}

.menu-item.active {
    background-color: #4A5568;
    border-left-color: #3B82F6;
    font-weight: 500;
}

.menu-item i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.app-main {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* 顶部导航栏 */
.app-header {
    background-color: #1E40AF;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-right .user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right .username {
    font-size: 14px;
    color: #fff;
}

.header-right .logout-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.header-right .logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb .separator {
    color: #999;
}

.breadcrumb .current {
    color: #1E40AF;
    font-weight: 500;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    color: #fff;
    background-color: #1E40AF;
    border-color: #1E40AF;
}

.btn-primary:hover {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
}

.btn-primary:active {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #333;
}

.form-input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.form-input:focus {
    outline: 0;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}