/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #3490dc;
}

a:hover {
    color: #1c638d;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header .logo {
    float: left;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.header .user-info {
    float: right;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #343a40;
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 20px;
    background-color: #2c3136;
    text-align: center;
}

.sidebar-header h3 {
    color: #fff;
    margin-bottom: 10px;
}

.sidebar-menu {
    padding: 10px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 20px;
    color: #c2c7d0;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: #fff;
    background-color: #3490dc;
}

.sidebar-menu .submenu {
    padding-left: 20px;
    display: none;
}

.sidebar-menu .has-submenu.open .submenu {
    display: block;
}

.sidebar-menu .has-submenu > a:after {
    content: "\f107";
    font-family: "FontAwesome";
    float: right;
}

.sidebar-menu .has-submenu.open > a:after {
    content: "\f106";
}

/* 内容区域样式 */
.content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
    color: #3490dc;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.card-body {
    padding: 15px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #3490dc;
    outline: none;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3490dc;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #1c638d;
}

.btn-primary {
    background-color: #3490dc;
}

.btn-success {
    background-color: #38c172;
}

.btn-danger {
    background-color: #e3342f;
}

.btn-warning {
    background-color: #f6993f;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table,
.table th,
.table td,
.table th *,
.table td * {
    color: #333 !important;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(even),
.table tbody tr:nth-of-type(odd),
.table tbody tr:nth-of-type(even) {
    background-color: #fff !important;
}

.table .badge {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.table .text-muted {
    color: #6c757d !important;
}

.table td a {
    color: #3490dc !important;
}

.table td a.btn,
.table td button.btn {
    color: #fff !important;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* 提示消息 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 分页样式 */
.pagination {
    display: flex;
    list-style: none;
    margin: 20px 0;
}

.pagination li {
    margin-right: 5px;
}

.pagination a {
    display: block;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination a:hover {
    background-color: #f8f9fa;
}

.pagination .active a {
    background-color: #3490dc;
    color: #fff;
    border-color: #3490dc;
}

/* 登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 24px;
    color: #333;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        z-index: 1000;
    }
    
    .sidebar.active {
        width: 250px;
    }
    
    .content {
        margin-left: 0;
    }
    
    .content.active {
        margin-left: 250px;
    }
    
    .toggle-btn {
        display: block;
    }
} 