body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-image: url(https://pic1.imgdb.cn/item/690c45d93203f7be00db8a24.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    padding-top: 100px;
}

/* 确保导航栏在最上层 */
.nav {
    z-index: 114514;
}

.profile-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    /* 低于导航栏 */
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    /* 低于导航栏 */
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    z-index: 1;
    /* 低于导航栏 */
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3498db;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
}

.user-name {
    font-size: 2em;
    color: #2c3e50;
    margin: 15px 0 10px 0;
    font-weight: bold;
}

.user-role {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.user-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #495057;
    min-width: 120px;
}

.info-value {
    color: #6c757d;
    flex: 1;
    text-align: right;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 5px;
}

.badge-teacher {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-student {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.badge-default {
    background: #95a5a6;
    color: white;
}

/* 移动端适配 */
@media (max-width: 750px) {
    body {
        padding-top: 110px;
    }

    .profile-card {
        padding: 25px 15px;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }

    .user-name {
        font-size: 1.5em;
    }

    .user-role {
        font-size: 1em;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .info-value {
        text-align: left;
    }
}

.input {
    width: 300px;
    height: 10px;
    border-radius: 5px;
    padding: 30px;
}

#realname {
    width: 300px;
    height: 20px;
    border-radius: 5px;
    padding: 10px;
}

#phonenum {
    width: 300px;
    height: 20px;
    border-radius: 5px;
    padding: 10px;
}

#username {
    width: 300px;
    height: 20px;
    border-radius: 5px;
    padding: 10px;
}

#password {
    width: 300px;
    height: 20px;
    border-radius: 5px;
    padding: 10px;
}

#repassword {
    width: 300px;
    height: 20px;
    border-radius: 5px;
    padding: 10px;
}