﻿
/* 主要内容 */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 内容布局 */
.content-container {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

/* 左侧导航 */
.side-nav {
    flex: 0 0 250px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.nav-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
}

.nav-items {
    list-style: none;
}

.nav-item {
    border-bottom: 1px solid var(--gray);
}

    .nav-item:last-child {
        border-bottom: none;
    }

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(76, 175, 80, 0.1);
        color: var(--primary);
        padding-left: 25px;
    }

        .nav-link.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: var(--accent);
        }

    .nav-link i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

/* 右侧内容 */
.content-area {
    flex: 1;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.content-header {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    font-size: 20px;
    font-weight: 600;
}

.content-body {
    padding: 25px;
}

/* 富文本内容样式 */
.rich-text {
    line-height: 1.8;
}

    .rich-text h3 {
        color: var(--primary-dark);
        margin: 20px 0 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--gray);
    }

    .rich-text p {
        margin-bottom: 15px;
        color: var(--text);
    }

    .rich-text ul, .rich-text ol {
        margin: 15px 0;
        padding-left: 20px;
    }

    .rich-text li {
        margin-bottom: 8px;
    }

/* 人员查询样式 */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.staff-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

    .staff-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.staff-photo {
    height: 180px;
    background-color: var(--gray);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%234caf50" opacity="0.2"/><path d="M50,30 A20,20 0 1,1 50,70 A20,20 0 1,1 50,30 M30,85 A40,40 0 1,0 70,85 Z" fill="%234caf50"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 60px;
}

.staff-info {
    padding: 15px;
}

.staff-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.staff-id {
    color: var(--text-light);
    font-size: 14px;
    font-family: monospace;
}


/* 响应式设计 */
@media (max-width: 992px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        margin-bottom: 15px;
    }

    .search-bar {
        max-width: 100%;
        margin: 10px 0 15px;
    }

    .content-container {
        flex-direction: column;
    }

    .side-nav {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
   

    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {

    .staff-grid {
        grid-template-columns: 1fr 1fr;
    }
}
