/* 基础样式 - 全局样式、布局、字体等 */

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #0d6efd;
    padding: 20px 15px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
    display: block;
    white-space: nowrap;
}

.logo i {
    margin-right: 5px;
}

.sidebar {
    background-color: #fff;
    height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar .nav-link {
    padding: 12px 20px;
    border-radius: 0;
    color: #333;
    font-size: 16px;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: #e9ecef;
    color: #0d6efd;
}

.content {
    margin-left: 200px;
    padding: 20px;
}

/* 加载提示 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

/* API状态指示器 */
.status-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.status-online {
    background-color: #198754;
    color: white;
}

.status-offline {
    background-color: #dc3545;
    color: white;
}
