body, h1, h2, h3, h4, h5, h6, p, ul, ol, li {
    margin: 0;
    padding: 0;
}

/* 主内容区域样式 */
.member-main {
    min-height: 100vh;
    height: fit-content;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 20px;
    background-image: linear-gradient(to left, #1FA2FF, #CFA6FF);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 玻璃容器样式 */
.glass-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 成员卡片网格容器 - 核心修改：限制最多4排并添加滚动 */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    /* 计算4排卡片的最大高度（假设每排高度约为320px，包含间距） */
    max-height: calc(4 * 320px);
    overflow-y: auto;
    padding: 10px 5px;
}

/* 自定义滚动条样式 */
.members-grid::-webkit-scrollbar {
    width: 8px;
}

.members-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.members-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.members-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 成员卡片样式 */
.member-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 头像样式 */
.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-card:hover .avatar-img {
    transform: scale(1.05);
}

/* 成员信息文字样式 */
.member-name {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.member-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.member-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 毛玻璃对话框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Markdown内容样式 */
.modal-content h1, .modal-content h2, .modal-content h3 {
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
}
/* 优化Markdown列表样式 */
.modal-content ul, .modal-content ol {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    padding-left: 1.8rem;
    line-height: 1.7; /* 增加行高提升可读性 */
}

.modal-content ul {
    list-style-type: disc;
    list-style-position: inside; /* 列表符号与文本对齐更自然 */
    padding-left: 0.5rem;
}

.modal-content ol {
    list-style-type: decimal;
    list-style-position: inside;
    padding-left: 0.5rem;
}

.modal-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem; /* 为列表项增加左侧空间 */
}

/* 为无序列表项添加自定义符号样式 */
.modal-content ul li::before {
    content: "•";
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    left: 0;
}

/* 优化Markdown链接样式 */
.modal-content a {
    color: #a8c8ff; /* 稍亮的蓝色，更贴合整体渐变 */
    text-decoration: none; /* 移除默认下划线 */
    border-bottom: 1px solid rgba(168, 200, 255, 0.5); /* 半透明下划线 */
    padding-bottom: 0.1rem;
    transition: all 0.3s ease;
}

.modal-content a:hover {
    color: #ffffff; /* hover时变为白色 */
    border-bottom-color: rgba(255, 255, 255, 0.8); /* 下划线更明显 */
    background-color: rgba(255, 255, 255, 0.1); /* 轻微背景色突出 */
    padding: 0 0.2rem 0.1rem;
    border-radius: 2px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content ul, .modal-content ol {
        padding-left: 1rem;
        margin-bottom: 1rem;
    }
    
    .modal-content li {
        margin-bottom: 0.6rem;
        padding-left: 0.8rem;
    }
    .glass-container {
        padding: 20px 15px;
    }
    
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
        /* 调整移动设备上4排的最大高度 */
        max-height: calc(4 * 280px);
    }
    
    .member-avatar {
        width: 100px;
        height: 100px;
    }
    
    .modal {
        padding: 20px;
        max-height: 75vh;
    }

    
    .member-main {
    height: fit-content;
     }
}

@media (max-width: 480px) {
    .member-main {
        padding: 20px 10px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
        /* 进一步调整小屏幕上4排的最大高度 */
        max-height: calc(4 * 260px);
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .member-main {
    height: fit-content;
     }
}


.filter-container {
    margin-bottom: 20px;
    text-align: center;
}

.role-filter {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.role-filter:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.role-filter option {
    background: #333;
    color: #fff;
}

/* 适配移动端筛选控件 */
@media (max-width: 768px) {
    .role-filter {
        width: 80%;
        max-width: 300px;
        padding: 10px 15px;
    }
}