:root {
    --primary-color: #c7000b;
    --secondary-color: #ffcb05;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --bg-dark: #b71c1c;
}

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 顶部导航栏 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* 主导航栏 */
.main-header {
    background: url("https://cee.hutb.edu.cn/r/cms/jsjxy/default/images/header.jpg") no-repeat center center;
    background-size: cover;
    color: var(--light-text);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

 main {
    background-color: #fff;
    flex: 1;
}

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

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

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #9E020B;
}

.detail-info {
    color: #9E020B;
    font-size: 1.2rem;
    margin-left: 10px;
    font-weight: bold;
}

/* 修改导航菜单样式 */
.nav {
    margin-left: auto;
}

.nav ul {
    display: flex;
}

.nav li {
    margin-left: 30px;
    position: relative;
}

.nav li a {
    padding: 10px 0;
    font-size: 1.1rem;
    transition: color 0.3s;
    color: #9E020B;
}

.nav li a:hover {
    color: #9E020B;
}

.nav li.active a {
    color: #9E020B;
    font-weight: bold;
}

.nav li.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #9E020B;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 2px 0;
    transition: all 0.3s;
}


/* 用户信息卡片 */

/* 身份标签样式 */
.identity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.identity-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: #c7000b;
    color: white;
    border-radius: 15px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.identity-tag.formal {
    background-color: #9E020B;
    color: white;
}

.identity-tag.assistant {
    background-color: #01903d;
    color: white;
}


.identity-tag.probationary {
    background-color: #f44336;
    color: white;
}

.identity-tag.secretary {
    background-color: #3f51b5;
    color: white;
}

.identity-tag.committee {
    background-color: #2196f3;
    color: white;
}

.identity-tag.admin {
    background-color: #424242; /* 系统管理员 - 深灰色 */
}

.user-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex-grow: 1;
}

.user-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.info-item {
    margin-bottom: 5px;
    display: flex;
}

.info-item .label {
    font-weight: bold;
    width: 80px;
}

.info-item .value {
    color: #666;
}

/* 功能区域 */
.function-area {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.function-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

.function-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.function-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.function-name {
    font-size: 1rem;
    color: #333;
    text-align: center;
}

/* 底部导航栏 */
.footer {
    background-image: url('../images/footer.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}


/* 友情链接部分 */
.footer-links {
    padding: 15px 0;
    position: relative;
    z-index: 2;
}

.links-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.links-title {
    font-weight: bold;
    color: #D7C1C1;
    margin-right: 10px;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.6;
    padding: 0;
    margin-bottom: 5px;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.links-list a {
    color: #D7C1C1;
    margin: 0 10px 5px;
    transition: opacity 0.3s;
    display: inline-block;
    line-height: 1.6;
    padding: 0;
}

.links-list a:hover {
    opacity: 0.8;
}

/* 底部信息部分 */
.footer-info {
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

.copyright {
    text-align: center;
    width: 100%;
    padding: 20px 0;
    font-size: 0.9rem;
    line-height: 1.8;
}


/* 响应式样式 */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .nav {
        width: 100%;
        display: none;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* 用户信息卡片移动端适配 */
    .user-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .info-item {
        justify-content: center;
    }
    
    /* 功能区域移动端适配 */
    .function-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .function-item {
        padding: 10px;
    }
    
    .function-icon {
        width: 40px;
        height: 40px;
    }
    
    .function-name {
        font-size: 0.9rem;
    }
    
    .user-card {
        flex-direction: column;
        text-align: left;
    }

    .user-info h2 {
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .info-item {
        justify-content: flex-start;
    }
    
    .function-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .function-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .function-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .links-wrapper {
        flex-direction: column;
    }
    
    .links-title {
        margin-bottom: 10px;
    }
    
    .links-list {
        justify-content: center;
    }
    
    .identity-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .function-grid {
        grid-template-columns: 1fr;
    }
}

/* 修改密码模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.modal-content h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.9;
}