:root {
    --primary-color: #0A4A7C;
    --secondary-color: #FF6B35;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --light-color: #F5F7FA;
    --dark-color: #333333;
    --gray-color: #9E9E9E;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f0f2f5;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 28px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-subtext {
    font-size: 14px;
    color: var(--gray-color);
    margin-left: 8px;
}

.user-area {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 10px;
}

.role-selector {
    position: relative;
    margin-right: 20px;
}

.role-btn {
    background-color: var(--light-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 8px 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.role-btn i {
    margin-left: 5px;
    transition: var(--transition);
}

.role-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    display: none;
    z-index: 100;
}

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

.role-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

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

.role-item.active {
    background-color: rgba(10, 74, 124, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.role-item i {
    margin-right: 10px;
    width: 20px;
}

.notification {
    position: relative;
    margin-right: 20px;
    font-size: 20px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航样式 */
.navbar {
    background-color: var(--primary-color);
    color: white;
}

.nav-container {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--secondary-color);
}

/* 主要内容区域 */
.main-content {
    padding: 10px 0;
    min-height: calc(100vh - 160px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.dashboard-subtitle {
    font-size: 16px;
    color: var(--gray-color);
    margin-top: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

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

.btn-primary:hover {
    background-color: #0d5a9a;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f9f9f9;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 5px;
    margin-bottom: 10px;
    transition: var(--transition);
    
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* 网格布局 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.stat-card {
    text-align: center;
    padding: 25px 15px;
}

.stat-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.stat-change {
    font-size: 14px;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* 项目列表表格 */
.table-responsive {
    overflow-x: auto;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
}

.project-table th {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
}

.project-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.project-table tr:hover {
    background-color: #f8f9fa;
}

.project-name {
    font-weight: 600;
    color: var(--primary-color);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.status-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #b08c00;
}

.status-closing {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--secondary-color);
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-value {
    height: 100%;
    border-radius: 4px;
}

.progress-78 {
    width: 78%;
    background-color: var(--primary-color);
}

.progress-92 {
    width: 92%;
    background-color: var(--success-color);
}

.progress-45 {
    width: 45%;
    background-color: var(--warning-color);
}

/* 地图区域 */
.map-container {
    height: 300px;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-point {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.map-marker .map-point {
    position: static;
    transform: none;
}

.map-point.active {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 0 4px rgba(10, 74, 124, 0.3);
}

.map-tooltip {
    position: absolute;
    background-color: white;
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 10;
    display: none;
    min-width: 200px;
}

.map-label {
    margin-top: 6px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    white-space: nowrap;
}

/* 任务列表 */
.task-list {
    list-style: none;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.task-item:last-child {
    border-bottom: none;
}

.task-checkbox {
    margin-right: 15px;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.task-time {
    font-size: 14px;
    color: var(--gray-color);
}

.task-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .btn {
        flex: 1;
    }
    
    .user-info {
        display: none;
    }
}

/* 角色特定样式 */
.role-view {
    display: none;
}

.role-view.active {
    display: block;
}

/* 项目详情页 */
.project-detail {
    display: none;
}

.project-detail.active {
    display: block;
}

.back-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 5px 0;
}

.back-button i {
    margin-right: 8px;
}

.project-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.project-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-color);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.project-tab:hover, .project-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
